*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary-hover);
}

h1, h2, h3 {
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 var(--sp-4);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
}

.hero h1 {
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  font-weight: 700;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: var(--sp-2);
}

p {
  margin: 0 0 var(--sp-4);
  color: var(--text-muted);
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: var(--on-primary);
  padding: var(--sp-2) var(--sp-4);
  z-index: 1000;
}

.skip-link:focus {
  left: var(--sp-4);
  top: var(--sp-4);
  color: var(--on-primary);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: var(--sp-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.brand:hover {
  color: inherit;
}

.brand-logo {
  display: block;
  height: 70px;
  width: auto;
  max-width: 170px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

.nav-link:hover,
.nav-item.is-open > .nav-link {
  color: var(--text);
}

.nav-link svg {
  width: 10px;
  height: 10px;
  opacity: 0.7;
}

.nav-item {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 16rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  z-index: 60;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-item.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav-dropdown a {
  display: block;
  padding: 0.55rem 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 400;
  border-radius: var(--r-sm);
}

.nav-dropdown a:hover {
  background: var(--off-white);
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 0;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  margin: 5px auto;
}

/* Buttons */

.btn-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.85rem 1.25rem;
  border-radius: var(--r-md);
  text-decoration: none;
  border: 0;
  transition: background var(--transition-fast);
}

.btn-start:hover,
.btn-start:focus-visible {
  background: var(--primary-hover);
  color: var(--on-primary);
}

.btn-start:active {
  background: var(--primary-active);
  color: var(--on-primary);
}

.btn-start-sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.9375rem;
}

.text-link {
  font-weight: 500;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-link:hover {
  color: var(--primary);
}

.section-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-subtle);
  margin: 0 0 var(--sp-3);
}

.section-label-accent {
  color: var(--primary);
}

/* Hero — left-aligned, gradient used once */

.hero {
  position: relative;
  isolation: isolate;
  padding: var(--sp-20) 0 var(--sp-24);
  background: radial-gradient(
    ellipse 85% 70% at 18% 0%,
    #e8f5ee 0%,
    #f7f5f3 62%
  );
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 60% 50% at 88% 8%,
    rgba(232, 245, 238, 0.9) 0%,
    transparent 68%
  );
}

#how-it-works,
#whatsapp,
#channels {
  scroll-margin-top: 104px;
}

.hero-rule {
  width: min(12rem, 40%);
  height: 3px;
  margin: var(--sp-5) 0 var(--sp-6);
  border-radius: 2px;
  background: var(--gradient);
}

.hero-sub {
  max-width: 38rem;
  font-size: 1.125rem;
  margin-bottom: var(--sp-8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-5) var(--sp-6);
}

.hero-stage {
  margin: var(--sp-12) 0 0;
  max-width: 52rem;
}

.hero-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transform: rotate(1.4deg);
  transform-origin: 60% 80%;
  box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.25);
  animation: hero-settle 600ms ease-out both;
}

.hero-frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  background: #f1efed;
  border-bottom: 1px solid var(--border);
}

.hero-frame-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4d0cc;
}

.hero-frame img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

@keyframes hero-settle {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97) rotate(1.4deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(1.4deg);
  }
}

/* WhatsApp — primary weight, full-width tint */

.wa-core {
  background: var(--primary-soft);
  padding: var(--sp-20) 0;
}

.wa-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: var(--sp-12) var(--sp-16);
  align-items: start;
}

.wa-copy h2 {
  max-width: 16ch;
}

.wa-copy p {
  max-width: 36rem;
  font-size: 1.0625rem;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3) var(--sp-8);
}

.feature-list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.feature-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-subtle);
}

/* Channels — grouped, secondary, smaller */

.channels {
  padding: var(--sp-16) 0 var(--sp-20);
}

.channels h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  max-width: 22ch;
}

.channels-body {
  max-width: 40rem;
  font-size: 1rem;
  margin-bottom: var(--sp-6);
}

.channel-group {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.channel-item {
  padding: var(--sp-5) var(--sp-6);
}

.channel-item + .channel-item {
  border-left: 1px solid var(--border);
}

.channel-item h3 {
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: var(--sp-2);
}

.channel-item p {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

/* How it works — numbered sequence */

.how {
  padding: 0 0 var(--sp-20);
}

.how h2 {
  margin-bottom: var(--sp-8);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 40rem;
}

.steps li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: var(--sp-4);
  align-items: start;
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--border);
}

.steps li:last-child {
  border-bottom: 1px solid var(--border);
}

.step-num {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--primary);
  line-height: 1.4;
}

.steps p {
  margin: 0;
  color: var(--text);
  font-size: 1.0625rem;
}

/* Ownership — navy statement */

.ownership {
  background: var(--deep-navy);
  color: var(--on-primary);
  padding: var(--sp-20) 0;
}

.ownership h2 {
  color: var(--on-primary);
  max-width: 18ch;
  margin-bottom: var(--sp-5);
}

.ownership p {
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.125rem;
  margin: 0;
}

/* Closing CTA */

.close-cta {
  padding: var(--sp-20) 0;
}

.close-cta h2 {
  max-width: 20ch;
  margin-bottom: var(--sp-6);
}

/* Footer */

.site-footer {
  background: var(--midnight);
  color: rgba(255, 255, 255, 0.72);
  padding: var(--sp-12) 0 var(--sp-10);
  font-size: 0.875rem;
}

.company-footer-credit {
  color: inherit;
  opacity: 0.78;
  margin: 0 0 var(--sp-2);
  max-width: 36rem;
}

.company-footer-meta {
  color: inherit;
  opacity: 0.6;
  margin: 0 0 var(--sp-5);
  max-width: 36rem;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.company-footer-meta a {
  color: inherit;
  opacity: 0.85;
  text-decoration: none;
}

.company-footer-meta a:hover {
  opacity: 1;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  margin-bottom: var(--sp-5);
}

.footer-nav a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: #fff;
}

.footer-contact {
  margin: 0;
}

/* Legal pages */

.legal {
  padding: var(--sp-16) 0 var(--sp-20);
}

.legal-doc {
  max-width: 42rem;
}

.legal-doc h1 {
  max-width: none;
  margin-bottom: var(--sp-3);
}

.legal-updated {
  font-size: 0.9375rem;
  color: var(--text-subtle);
  margin-bottom: var(--sp-8);
}

.legal-doc h2 {
  font-size: 1.25rem;
  margin: var(--sp-8) 0 var(--sp-3);
}

.legal-doc ul {
  margin: 0 0 var(--sp-4);
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.legal-doc li {
  margin-bottom: var(--sp-2);
}

.legal-doc p,
.legal-doc li {
  font-size: 1rem;
}

.legal-end {
  margin-top: var(--sp-10);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--text-subtle);
}

/* Error pages */

.error-page {
  padding: var(--sp-24) 0;
  min-height: 50vh;
}

.error-page h1 {
  max-width: none;
}

/* Breadcrumbs */

.breadcrumb-nav {
  margin-bottom: var(--sp-6);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--text-subtle);
}

.breadcrumb-list li:not(:last-child)::after {
  content: '/';
  margin-left: 0.5rem;
  color: var(--border-strong, #CBD5E1);
}

.breadcrumb-list a {
  color: var(--text-subtle);
  text-decoration: none;
}

.breadcrumb-list a:hover {
  color: var(--text);
}

.legal-doc .breadcrumb-nav {
  margin-bottom: var(--sp-8);
}

/* Feature pages */

.page-hero {
  padding: var(--sp-16) 0 var(--sp-12);
}

.page-headline {
  max-width: 18ch;
  margin-bottom: var(--sp-4);
}

.page-subtitle {
  max-width: 40rem;
  font-size: 1.125rem;
  margin-bottom: var(--sp-8);
}

.problem-section {
  padding: 0 0 var(--sp-16);
}

.problem-section h2 {
  max-width: 20ch;
}

.problem-body {
  max-width: 40rem;
  font-size: 1.0625rem;
}

.feature-tiles {
  padding: 0 0 var(--sp-16);
}

.tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.tile {
  padding: var(--sp-5) var(--sp-6);
}

.tile + .tile {
  border-left: 1px solid var(--border);
}

.tile h3 {
  font-size: 0.9375rem;
  font-weight: 500;
}

.tile p {
  font-size: 0.875rem;
  margin: 0;
}

a.tile-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

a.tile-link:hover {
  background: var(--off-white);
  color: inherit;
}

a.tile-link:hover h3 {
  color: var(--primary);
}

.how-feature {
  padding: 0 0 var(--sp-16);
}

.how-feature .steps h3 {
  font-size: 1.0625rem;
  font-weight: 500;
  margin: 0 0 var(--sp-1);
  color: var(--text);
}

.how-feature .steps p {
  font-size: 1rem;
  color: var(--text-muted);
}

.faq-section {
  padding: 0 0 var(--sp-12);
}

.faq-list {
  max-width: 42rem;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 500;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}

.faq-question svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-subtle);
  transition: transform var(--transition-base);
}

.faq-item.is-open .faq-question svg {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 0 var(--sp-4);
  font-size: 1rem;
  color: var(--text-muted);
}

.cta-body {
  max-width: 36rem;
  margin-bottom: var(--sp-6);
}

/* Responsive */

@media (max-width: 900px) {
  .wa-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .channel-group {
    grid-template-columns: 1fr;
  }

  .channel-item + .channel-item {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .tile-grid {
    grid-template-columns: 1fr;
  }

  .tile + .tile {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: var(--sp-4) 1.25rem var(--sp-6);
    gap: var(--sp-4);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 0 0.75rem;
    min-width: 0;
    display: none;
  }

  .nav-item.is-open .nav-dropdown {
    display: block;
  }

  .nav-item:hover .nav-dropdown,
  .nav-item:focus-within .nav-dropdown {
    display: none;
  }

  .nav-item.is-open:hover .nav-dropdown,
  .nav-item.is-open:focus-within .nav-dropdown,
  .nav-item.is-open .nav-dropdown {
    display: block;
  }

  .nav-dropdown a {
    padding: 0.4rem 0;
  }

  .hero,
  .wa-core,
  .ownership,
  .close-cta {
    padding-top: var(--sp-12);
    padding-bottom: var(--sp-12);
  }

  .hero-stage {
    margin-top: var(--sp-8);
  }

  .hero-frame {
    transform: none;
    animation-name: hero-settle-flat;
  }

  @keyframes hero-settle-flat {
    from {
      opacity: 0;
      transform: translateY(12px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  .channels,
  .how,
  .legal {
    padding-bottom: var(--sp-12);
  }

  h1 {
    max-width: none;
  }
}
