/* ---- Landing-specific styles ---- */

/* Override app layout defaults for landing */
body {
  background: var(--surface-ground);
}

/* Skip link (inherits from main.css .skip-link) */

/* ---- Header / Navbar ---- */
.landing-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: transparent;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.landing-header.scrolled {
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.landing-logo .logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--terracotta), #D4845E);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.landing-logo .logo-mark svg {
  width: 18px;
  height: 18px;
  color: white;
}

.landing-logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-inverse);
  letter-spacing: -0.02em;
  transition: color var(--transition-base);
}

.landing-header.scrolled .landing-logo-text {
  color: var(--text-primary);
}

.landing-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.landing-header .theme-toggle {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
}

.landing-header.scrolled .theme-toggle {
  border-color: var(--border);
  color: var(--text-secondary);
}

.landing-header .btn--ghost {
  color: rgba(255, 255, 255, 0.9);
}

.landing-header.scrolled .btn--ghost {
  color: var(--terracotta);
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  background: var(--surface-sidebar);
  background-image:
    linear-gradient(30deg, rgba(255,255,255,0.015) 25%, transparent 25%),
    linear-gradient(-30deg, rgba(255,255,255,0.015) 25%, transparent 25%);
  background-size: 20px 36px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(194, 112, 78, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(15, 118, 110, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  animation: heroReveal 0.4s ease-out;
}

@keyframes heroReveal {
  from { transform: translateY(6px); }
  to { transform: translateY(0); }
}

.hero-logo {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--terracotta), #D4845E);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  box-shadow: 0 8px 32px rgba(194, 112, 78, 0.3);
}

.hero-logo svg {
  width: 36px;
  height: 36px;
  color: white;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.25rem);
  font-weight: 700;
  color: var(--text-inverse);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  color: var(--text-inverse-muted);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2.5rem;
  min-height: 52px;
  background: var(--terracotta-hover, #A85A3A);
  color: white;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(168, 90, 58, 0.4);
}

.hero-cta:hover {
  background: #9B5535;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(155, 85, 53, 0.5);
}

.hero-cta:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}

.hero-cta svg {
  width: 18px;
  height: 18px;
}

.hero-cta--outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  min-height: 52px;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.hero-cta--outline:hover {
  border-color: rgba(255, 255, 255, 0.7);
  color: white;
}

.hero-cta--outline:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}

.hero-cta--outline svg {
  width: 18px;
  height: 18px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.25);
  animation: pulse 2s ease-in-out infinite;
}

.hero-scroll-hint svg {
  width: 24px;
  height: 24px;
}

/* ---- Trust Bar ---- */
.trust-bar {
  background: var(--surface-card);
  border-bottom: 1px solid var(--border);
  padding: 2rem;
}

.trust-bar-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.trust-stat {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--terracotta);
  letter-spacing: -0.02em;
}

.trust-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 260px;
}

.trust-label strong {
  color: var(--text-primary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .trust-bar {
    padding: 1.5rem;
  }
  .trust-bar-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* ---- Competitor one-liner ---- */
.competitor-bar {
  background: var(--surface-ground);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 2rem;
  text-align: center;
}

.competitor-bar p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 760px;
  margin: 0 auto;
}

.competitor-bar strong {
  color: var(--text-primary);
  font-weight: 600;
}

.competitor-bar .competitor-highlight {
  color: var(--terracotta);
  font-weight: 600;
}

/* ---- Sections shared ---- */
.landing-section {
  padding: 5rem 2rem;
}

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ---- Features Grid ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-base);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--terracotta-light);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-icon--terracotta {
  background: var(--terracotta-faint);
  color: var(--terracotta);
}

.feature-icon--teal {
  background: var(--teal-light);
  color: var(--teal);
}

.feature-icon--success {
  background: var(--success-light);
  color: var(--success);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- How It Works ---- */
.how-section {
  background: var(--surface-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.666% + 28px);
  right: calc(16.666% + 28px);
  height: 2px;
  background: var(--border);
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface-ground);
  border: 2px solid var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--terracotta);
  position: relative;
  z-index: 1;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 260px;
  margin: 0 auto;
}

/* ---- CTA Section ---- */
.cta-section {
  text-align: center;
  background: var(--surface-sidebar);
  background-image:
    linear-gradient(30deg, rgba(255,255,255,0.015) 25%, transparent 25%),
    linear-gradient(-30deg, rgba(255,255,255,0.015) 25%, transparent 25%);
  background-size: 20px 36px;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(194, 112, 78, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--text-inverse);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.cta-subtitle {
  font-size: 1rem;
  color: var(--text-inverse-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.cta-legal {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 1.25rem;
  line-height: 1.5;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Footer ---- */
.landing-footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--surface-ground);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--terracotta);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .landing-header {
    padding: 0.875rem 1.25rem;
  }

  .hero {
    padding: 5rem 1.5rem 3rem;
    min-height: 90vh;
  }

  .hero-logo {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    margin-bottom: 1.5rem;
  }

  .hero-logo svg {
    width: 30px;
    height: 30px;
  }

  .landing-section {
    padding: 3.5rem 1.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .steps::before {
    display: none;
  }

  .hero-scroll-hint {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 4.5rem 1rem 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta,
  .hero-cta--outline {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .landing-section {
    padding: 3rem 1rem;
  }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .hero-content {
    animation: none;
  }
  .feature-card:hover,
  .hero-cta:hover {
    transform: none;
  }
}

/* ---- Dark mode tweaks ---- */
[data-theme="dark"] .hero {
  background: var(--surface-sidebar);
  background-image:
    linear-gradient(30deg, rgba(255,255,255,0.02) 25%, transparent 25%),
    linear-gradient(-30deg, rgba(255,255,255,0.02) 25%, transparent 25%);
  background-size: 20px 36px;
}

[data-theme="dark"] .how-section {
  background: var(--surface-card);
}

[data-theme="dark"] .step-number {
  background: var(--surface-ground);
}

[data-theme="dark"] .landing-logo .logo-mark {
  background: linear-gradient(135deg, var(--terracotta), #E8A88C);
}

[data-theme="dark"] .hero-logo {
  background: linear-gradient(135deg, var(--terracotta), #E8A88C);
}
