/* ─────────────────────────────────────────
   SHARED INNER-PAGE STYLES
   Applies to all pages except index.html
───────────────────────────────────────── */

/* ── PAGE HERO (small header, not full-height)
 *
 * Shared by every AysPageHero consumer (pricing, about, why, faq,
 * referral). Mirrors the Home hero's `--ays-color-primary-950 →
 * primary-900` gradient + atmospheric glow so the hero band is
 * visually identical across the whole site. The only difference
 * vs `.ays-home-hero` is geometry: this variant is a compact
 * header, not the full-height landing hero. */
.page-hero {
  padding: 168px 48px 84px;
  background: linear-gradient(
    180deg,
    var(--ays-color-primary-950) 0%,
    var(--ays-color-primary-900) 100%
  );
  color: var(--ays-text-inverse-primary);
  border-bottom: 0.5px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -5%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(60.56% 0.2189 292.72 / 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .container {
  position: relative;
  max-width: var(--ays-legal-max-width);
  margin: 0 auto;
}
/* Scoped tag override: Figma /why hero spec (188:1747).
 * Larger, lighter than the global .section-label eyebrow used elsewhere
 * — the hero tag is a primary content element, not a section preamble. */
.page-hero .section-label {
  font-size: var(--fs-p2);
  font-weight: var(--fw-p-regular);
  letter-spacing: 0.04em;
  color: var(--ays-color-purple-400);
  margin-bottom: 4px;
}
/* Scoped to `.page-hero` AND the `.bds-h1` class so the rule's
 * specificity (0,3,0) beats BDS's `[data-scale="marketing"] .bds-h1`
 * (0,2,1). Without this, BDS's `margin: 0` wins and the title–subtitle
 * gap collapses to whatever the line-height permits. */
.page-hero .page-title.bds-h1 {
  letter-spacing: var(--ls-tight);
  margin-bottom: 16px;
  max-width: var(--ays-legal-max-width);
}
.page-title em {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-subtitle {
  color: var(--ays-text-inverse-tertiary);
  max-width: 820px;
}
.page-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 24px;
}

/* ── INNER CTA (bottom of every page) ──
 * Dark purple gradient block used by AysCTASection. Structure mirrors
 * Figma node 188:366 exactly:
 *   inner-cta            (section, padding 84/48, gradient bg)
 *     inner-cta-container (max 724px, flex-col, gap 48px)
 *       inner-cta-main    (flex-col, gap 16px) — title + sub
 *       inner-cta-actions (flex-col, gap 12px) — CTA + badges + microcopy
 *
 * Title font-size is 60px per Figma — overrides BDS h2 because the
 * compound `.inner-cta .section-title.bds-h2` selector is specificity
 * (0,3,0) vs BDS's (0,2,0). */
.inner-cta {
  background: linear-gradient(
    180deg,
    var(--ays-color-primary-900) 0%,
    var(--ays-color-primary-950) 100%
  );
  text-align: center;
  padding: 84px 48px;
  position: relative;
  overflow: hidden;
}
.inner-cta-container {
  max-width: 724px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}
.inner-cta-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.inner-cta .section-title.bds-h1 {
  letter-spacing: var(--ls-tight);
  color: var(--ays-text-inverse-primary);
  max-width: none;
  margin: 0;
  text-align: center;
}
.inner-cta .section-title em {
  font-style: italic;
  color: var(--ays-color-purple-400);
}
.inner-cta .section-sub.bds-p1 {
  color: var(--ays-text-inverse-primary);
  max-width: none;
  margin: 0;
  text-align: center;
}
.inner-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.inner-cta .btn-primary {
  background: linear-gradient(180deg, var(--ays-button-bg-primary), var(--ays-button-bg-primary-bottom));
  font-size: 18px;
  padding: 16px 32px;
  box-shadow: 0 8px 24px oklch(54.18% 0.2112 314.87 / 0.4);
}
.inner-cta-trial {
  color: var(--ays-color-neutral-500);
  margin: 0;
}

@media (max-width: 768px) {
  .inner-cta {
    padding: 72px 24px;
  }
  .inner-cta-container {
    gap: 36px;
  }
}

/* ─────────────────────────────────────────
   WHY ALL YOUR SENSES — redesigned page
   Light-theme content surface (.ays-light wrapper) with 6 stacked
   narrative sections matching Figma /why structure (canvas
   188:2326). Each section is a top-level <section> direct child
   of .ays-light, scoped under its own `.ays-why-{name}` block
   class so inspecting the DOM tells you exactly which section
   you're in:
     ays-why-begin     — "Where we begin"     (Figma Container 1A)
     ays-why-context   — "Our context"        (Figma 1B, tinted)
     ays-why-audio     — "Why audio"          (Figma 2A)
     ays-why-approach  — "Our approach"       (Figma 2B, tinted)
     ays-why-tech      — "The technology"     (Figma Section 5)
     ays-why-roadmap   — "What's next"        (Figma Section 6, tinted)

   Element classes follow `.ays-why-{section}-{element}` (container,
   grid, col, heading, title, subtitle, prose, quote, h6, cards) so
   every piece of every section is locally identifiable. Shared
   visual rules are grouped via selector lists.
───────────────────────────────────────── */

/* Tinted sections — full-bleed alternating contrast. */
.ays-why-context,
.ays-why-approach,
.ays-why-roadmap {
  background: var(--ays-color-black-004);
}

/* Container — 820px max, matched to AysPageHero. */
.ays-why-begin-container,
.ays-why-context-container,
.ays-why-audio-container,
.ays-why-approach-container,
.ays-why-tech-container,
.ays-why-roadmap-container {
  max-width: 820px;
}

/* 2-col grids: title+prose left, supporting prose/cards right. */
.ays-why-begin-grid,
.ays-why-approach-grid,
.ays-why-roadmap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

/* Titled split: title spans both columns at the top, prose left,
   cards right. Only the context section uses this shape. */
.ays-why-context-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.ays-why-context-grid > .ays-why-context-heading {
  grid-column: 1 / -1;
}

/* Column wrappers — let the grid track shrink instead of forcing overflow. */
.ays-why-begin-col,
.ays-why-context-col,
.ays-why-approach-col,
.ays-why-roadmap-col {
  min-width: 0;
}

/* Heading wrapper (label + title + optional subtitle). Single
   margin-bottom provides the gap between the heading block and
   the section body; flex `gap` controls internal stacking. */
.ays-why-begin-heading,
.ays-why-context-heading,
.ays-why-audio-heading,
.ays-why-approach-heading,
.ays-why-tech-heading,
.ays-why-roadmap-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

/* Section title — ink color, tight letter-spacing. */
.ays-why-begin-title,
.ays-why-context-title,
.ays-why-audio-title,
.ays-why-approach-title,
.ays-why-tech-title,
.ays-why-roadmap-title {
  color: var(--ays-text-primary);
  margin: 0;
  letter-spacing: var(--ls-tight);
}

/* Subtitle (audio section's parenthetical "Yes, we said it."). */
.ays-why-audio-subtitle {
  color: var(--ays-text-secondary);
  font-style: italic;
  margin: 0;
}

/* Prose (paragraph stack with consistent spacing). */
.ays-why-begin-prose,
.ays-why-context-prose,
.ays-why-audio-prose,
.ays-why-approach-prose,
.ays-why-tech-prose,
.ays-why-roadmap-prose {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ays-why-begin-prose > p,
.ays-why-context-prose > p,
.ays-why-audio-prose > p,
.ays-why-approach-prose > p,
.ays-why-tech-prose > p,
.ays-why-roadmap-prose > p {
  color: var(--ays-text-secondary);
  margin: 0;
}

/* Begin section's italic purple quote (the "studies range from
   55-75%" statistic that follows the opening paragraph). */
.ays-why-begin-quote {
  font-family: var(--font-marketing-heading);
  font-style: italic;
  color: var(--ays-text-brand);
  font-size: var(--fs-p1);
  line-height: var(--lh-body);
  margin: 0;
}

/* Context section's bold sub-heading ("We're reclaiming that
   narrative."). */
.ays-why-context-h6 {
  color: var(--ays-text-primary);
  margin: 8px 0 0;
}

/* Card grids — each section's shape. */

/* Context: 3 stacked cards on the right of the titled split. */
.ays-why-context-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ays-why-context-cards .feature-card {
  border: none;
}

/* Audio: featured 1+2 grid (large card on top, 2 below). */
.ays-why-audio-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.ays-why-audio-cards > :first-child {
  grid-column: 1 / -1;
}
.ays-why-audio-cards .feature-card {
  border: none;
}

/* Tech: 3-col grid for 6 mini-feature cards (3x2). */
.ays-why-tech-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
/* Borderless cards: the icon carries the visual weight. The card's own
   16px flex gap already spaces the icon above the body. */
.ays-why-tech-cards .feature-card {
  border: none;
}

/* Roadmap: 3 stacked cards on the right of the 2-col split. */
.ays-why-roadmap-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* Borderless, horizontal layout: icon on the left, eyebrow + text on
   the right. DOM order (icon then body) already places the icon first,
   so no `order` override is needed. The card's 16px flex gap spaces
   the two columns. */
.ays-why-roadmap-cards .feature-card {
  border: none;
  flex-direction: row;
  align-items: center;
}
.ays-why-roadmap-cards .feature-card-body {
  flex: 1;
}
.ays-why-roadmap-cards .feature-card-icon {
  flex-shrink: 0;
}

/* Collapse all multi-column layouts to single column on mobile. */
@media (max-width: 768px) {
  .ays-why-begin-grid,
  .ays-why-context-grid,
  .ays-why-approach-grid,
  .ays-why-roadmap-grid,
  .ays-why-audio-cards,
  .ays-why-tech-cards {
    grid-template-columns: 1fr;
  }
  .ays-why-audio-cards > :first-child {
    grid-column: auto;
  }
}

/* ─────────────────────────────────────────
   RESPONSIVE: INNER PAGES
───────────────────────────────────────── */
@media (max-width: 768px) {
  .page-hero {
    padding: 120px 24px 64px;
  }
}
