/* ============================================================
   sections.css - Page-section layout
   ------------------------------------------------------------
   Goal: arrange the reusable components from components.css into
   the page's sections. This file owns layout/positioning that is
   specific to a section (the nav bar incl. the mobile menu sheet,
   the hero canvas, the card grids, pricing, the FAQ columns, the
   final CTA, the footer) - not the look of the components
   themselves.

   Authored MOBILE-FIRST: base styles are the phone layout and
   min-width queries enhance upward (the canonical breakpoint
   scale is documented in tokens.css; min-width uses value + 1).
   Each media query is kept next to the rules it modifies.

   Depends on: tokens.css + components.css (loads LAST so section
   layout can sit on top of the component styles).
   ============================================================ */

/* ─── 1. Nav - white header, Belo-style logo in Rausch.
   MOBILE (base): a persistent compact bar, visible from page load -
   logo left, compact "Get started" + hamburger right. The hamburger
   (js/mobile_nav.js) toggles .is-menu-open on .nav, which drops the
   .nav-sheet panel (the .nav-links column + a sheet-only CTA) under
   the bar.
   DESKTOP (min-width: 745px): the bar starts HIDDEN - position:fixed
   (out of flow, so the hero sits at the top of the viewport),
   opacity:0, pointer-events:none. js/nav_reveal.js adds .is-revealed
   once the visitor reaches the Industries section; that flips
   position back to sticky and fades the bar in over
   --nav-reveal-duration. The .nav-sheet wrapper becomes
   display:contents, so the rendered desktop nav is exactly the
   classic logo / links / button row. ─── */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-bg-tertiary);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3);
  padding: 0 24px; height: var(--nav-height-mobile);
}
.nav .logo {
  display: inline-flex; align-items: center; gap: var(--logo-gap);
  margin-right: auto;   /* mobile: pushes the CTA + hamburger right */
}
/* On the very smallest screens (under the 360px design minimum) the bar
   shows only logo + hamburger; the menu sheet's own CTA stands in for the
   bar CTA (mobile-nav spec A.1 fallback). */
.nav-inner > .btn { display: none; }
@media (min-width: 360px) {
  .nav-inner > .btn { display: inline-flex; }
}

/* The menu sheet: closed by default; .is-menu-open drops it as a
   full-width panel directly under the sticky bar. */
.nav-sheet { display: none; }
.nav.is-menu-open .nav-sheet {
  display: block;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-bg-tertiary);
  box-shadow: var(--shadow-md);
  padding: var(--space-2) var(--space-4) var(--space-4);
}
.nav-links { display: flex; flex-direction: column; gap: var(--space-1); }
.nav-links a {
  display: flex; align-items: center;
  min-height: var(--tap-target-min);
  color: var(--color-ink); font-size: 16px; line-height: 20px; font-weight: 600;
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-md);
  transition: background var(--motion-fast) var(--ease-standard);
}
.nav-links a:hover { background: var(--color-bg-secondary); }
.nav-links a.is-active {
  color: var(--color-rausch);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.nav-links .muted { color: var(--color-ink-secondary); font-weight: 500; }
/* the sheet's own prominent "Get started" (hidden on desktop) */
.nav-sheet > .btn {
  display: flex; width: 100%;
  min-height: var(--tap-target-min);
  margin-top: var(--space-2);
}
.nav .btn { padding: 12px 18px; font-size: 14px; line-height: 18px; }

@media (min-width: 745px) {
  .nav {
    position: fixed; top: 0; left: 0; right: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--nav-reveal-duration) var(--ease-out);
  }
  .nav.is-revealed {
    position: sticky;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-inner { padding: 0 40px; height: var(--nav-height); }
  .nav .logo { margin-right: 0; }
  .nav-inner > .btn { display: inline-flex; }
  /* the sheet wrapper vanishes from layout; its CTA is mobile-only */
  .nav-sheet, .nav.is-menu-open .nav-sheet { display: contents; }
  .nav-sheet > .btn { display: none; }
  .nav-links { flex-direction: row; gap: 8px; align-items: center; }
  .nav-links a {
    min-height: 0;
    font-size: 14px; line-height: 18px;
    padding: 12px 16px; border-radius: var(--radius-pill);
  }
}
@media (min-width: 1129px) {
  .nav-inner { padding: 0 80px; }
}

/* ─── anchor landing - keep a jumped-to section clear of the sticky bar ─── */
#benefits, #industries, #pricing, #faq {
  scroll-margin-top: var(--nav-height-mobile);
}
@media (min-width: 745px) {
  #benefits, #industries, #pricing, #faq {
    scroll-margin-top: var(--nav-height);
  }
}

/* ─── 2. Hero - white canvas, photographic, rounded-pill status badge ─── */
.hero {
  background: var(--color-bg);
  color: var(--color-ink);
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 40px 24px 0;
}
.hero-inner > .hero-portrait { margin-bottom: 0; }
/* Soft warm wash behind the portrait - restrained, no neon */
.hero-wave {
  position: absolute; inset: 0;
  background:
    radial-gradient(56% 48% at 18% 6%,  rgba(255,56,92,0.07),  transparent 70%),
    radial-gradient(50% 50% at 90% 30%, rgba(0,166,153,0.06), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 880px; margin: 0 auto; }
.hero-h1 {
  font-family: var(--font-cereal);
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--color-ink);
  margin-bottom: 12px;
}
.hero-h1 em { color: var(--color-rausch); font-style: normal; font-weight: 800; }
.hero-sub {
  font-family: var(--font-cereal);
  font-size: clamp(18px, 2.2vw, 22px); line-height: 1.3;
  color: var(--color-ink-secondary);
  font-weight: 400;
  margin-bottom: 40px;
}
/* phone: capped at 312px but never wider than the viewport allows
   (robust down to 320px); desktop: the fluid 364-598px clamp. */
.hero-portrait {
  position: relative;
  width: min(312px, 100%);
  margin: 0 auto;
  z-index: 3;
}
.hero-photo-maya { display: block; width: 100%; height: auto; }
@media (min-width: 745px) {
  .hero { padding: 64px 24px 0; }
  .hero-portrait { width: clamp(364px, 47vw, 598px); }
}

/* ─── 3 + 4. Benefits & Industries - staged card grids:
   1 column on phones, 2 on tablets (md), 3 on desktop (lg). ─── */
.feat-grid, .ind-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 16px; }
@media (min-width: 745px) {
  .feat-grid, .ind-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 961px) {
  .feat-grid, .ind-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─── 5. Pricing - a feature checklist beside a compact price card.
   Stacked and centered by default; from xxl (min-width: 1241px) the two
   columns sit side by side and the checklist hugs its widest no-wrap
   line (max-content). Green checks, the "Unlimited/FREE" highlights and
   the guarantee all use --color-go. ─── */
#pricing { background: var(--color-bg); color: var(--color-ink); }
#pricing .container { max-width: 1280px; }
#pricing h2 {
  color: var(--color-ink); text-align: center;
  font-weight: 700; font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.01em; margin-bottom: 36px;
}
/* stacked single-column group; widths capped so the rows read well */
#pricing .wrap {
  display: grid; grid-template-columns: 1fr;
  gap: 34px; align-items: center;
  justify-content: stretch; justify-items: center;
}
#pricing .wrap ul { width: 100%; max-width: 680px; }
#pricing .wrap .pricebox { width: 100%; max-width: 420px; }
/* benefit checklist - green check + "heading - description", divided rows */
#pricing ul { list-style: none; }
#pricing ul li {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 0; border-bottom: 1px solid var(--color-divider);
}
#pricing ul li:last-child { border-bottom: none; }
#pricing ul li .num { flex: 0 0 auto; color: var(--color-go); font-weight: 900; font-size: 19px; line-height: 1; }
#pricing ul b { color: var(--color-ink); font-weight: 700; font-size: 16px; }
#pricing ul small { color: var(--color-ink-secondary); font-size: 16px; line-height: 1.45; }
#pricing ul small::before { content: " - "; color: var(--color-ink-secondary); }
/* compact price card */
#pricing .pricebox {
  position: relative; overflow: visible;
  text-align: center; border: 1px solid var(--color-divider);
  border-radius: 18px; padding: 40px 30px;
  background: var(--color-bg); box-shadow: var(--shadow-card);
}
/* founding-member scarcity label sitting just above the price. The -16px
   top lift pulls this first pink row toward the card's top edge; the
   matching +16px added to the bottom margin pushes the price back to its
   original spot, so only the label appears to move and the card's overall
   height stays the same. */
#pricing .pd-cd { margin: -16px 0 calc(var(--space-4) + 16px); text-align: center; }
#pricing .pd-cd-label {
  display: block;
  font-family: var(--font-cereal);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-rausch);
  letter-spacing: 0.01em;
}
/* the price line: a 1fr / auto / 1fr grid keeps the big $99 dead-centered,
   with the struck $199 and the /mo on its baseline either side */
#pricing .pricebox .p {
  font-size: 72px; font-weight: 900; letter-spacing: -0.03em; line-height: 1;
  color: var(--color-ink);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline;
}
#pricing .pd-was {
  justify-self: end; margin-right: 10px;
  font-size: 20px; font-weight: 700; color: var(--color-ink-secondary);
  text-decoration: line-through; text-decoration-color: var(--color-rausch);
  white-space: nowrap;
}
#pricing .pricebox .p .per {
  justify-self: start;
  font-size: 22px; font-weight: 700; letter-spacing: 0; color: var(--color-ink-secondary);
}
/* tagline styled in the green ".hl" highlight colour, like "Unlimited" */
#pricing .pricebox .tagline { color: var(--color-go); font-weight: 700; font-size: 15px; line-height: 1.4; margin-top: 10px; }
/* the stat table is set apart inside the card: equal 32px gaps above it
   (from the tagline) and below it (down to the CTA), so price+tagline /
   specs / CTA read as three clean groups. */
#pricing .pricebox .nums { margin-top: var(--space-6); display: flex; flex-direction: column; gap: 10px; text-align: left; font-size: 14px; }
#pricing .pricebox .nums div {
  display: flex; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid var(--color-divider); padding-bottom: 8px;
  color: var(--color-ink-secondary); white-space: nowrap;
}
#pricing .pricebox .nums b { color: var(--color-ink); font-weight: 700; }
#pricing .pricebox .nums b.hl { color: var(--color-go); }
#pricing .pricebox .nums div span { color: var(--color-ink); font-weight: 400; }
/* setup-fee "was" price, struck through next to FREE in the numbers list */
#pricing .pd-setup-was {
  margin-right: 6px;
  color: var(--color-ink-secondary);
  text-decoration: line-through;
  text-decoration-color: var(--color-rausch);
}
#pricing .pricebox .btn { margin-top: var(--space-6); width: 100%; font-weight: 700; }
#pricing .pricebox .moneyback { margin-top: 18px; color: var(--color-go); font-weight: 700; font-size: 14px; line-height: 1.2; }
#pricing .pricebox .guarantee { margin-top: 10px; color: var(--color-ink-secondary); font-size: 13px; line-height: 1.4; }
/* closing sign-off in the left column under the checklist - left-aligned,
   filling the space beside the taller price card */
#pricing .closer { text-align: left; margin-top: 28px; font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--color-ink); }
#pricing .closer .accent { font-weight: 700; }
/* from xxl there is room for the wide single-line checklist - two columns */
@media (min-width: 1241px) {
  #pricing .wrap {
    grid-template-columns: max-content 360px;
    gap: 48px; justify-content: center; justify-items: stretch;
  }
  #pricing .wrap ul { width: auto; max-width: none; }
  #pricing .wrap .pricebox { width: auto; max-width: none; }
  #pricing ul li { white-space: nowrap; }
}

/* ─── 6. FAQ - wrapper + the two-column accordion layout (one column on
   phones; two from md up). ─── */
.faq { margin-top: 16px; }
.faq--2col { display: grid; grid-template-columns: 1fr; column-gap: 0; align-items: start; }
@media (min-width: 745px) {
  .faq--2col { grid-template-columns: 1fr 1fr; column-gap: 56px; }
}

/* ─── 7. Final CTA + footer ─── */
.cta-final {
  background: var(--color-bg);
  padding-top: 0;
}
.cta-final .container { padding-top: 80px; padding-bottom: 96px; }
.cta-final h2 { margin-bottom: 12px; }

.footer { background: var(--color-bg-secondary); border-top: 1px solid var(--color-divider); }
.footer-grid {
  display: flex; flex-wrap: wrap;
  flex-direction: column; align-items: flex-start; justify-content: space-between;
  gap: 32px;
  padding-top: 24px; padding-bottom: 24px;
  text-align: left;
}
.footer .logo {
  display: inline-flex; align-items: center; gap: var(--logo-gap);
}
.footer-tag { color: var(--color-ink-secondary); font-size: 14px; line-height: 18px; margin-top: 6px; }
.footer-cols { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.footer-cols a {
  color: var(--color-ink); font-size: 14px; line-height: 18px;
  transition: text-decoration var(--motion-fast) var(--ease-standard);
  /* phone: comfortable tap rows; desktop resets to the compact link */
  display: inline-flex; align-items: center;
  min-height: var(--tap-target-min);
}
.footer-cols a:hover { text-decoration: underline; }
.footer-copy { color: var(--color-ink-secondary); font-size: 14px; line-height: 18px; text-align: left; white-space: nowrap; }
@media (min-width: 745px) {
  .footer-grid { flex-direction: row; align-items: center; }
  .footer-cols a { min-height: 0; }
  .footer-copy { text-align: right; }
}
