/* ============================================
   Porchlight Landing Page — Styles
   Version: 1.0
   ============================================ */

/* ─── Design Tokens ───
   Matcha air palette — IVORY #F8F4E6 · WILLOW #A8C97F · CELADON #7EBEA5 · PALE GREEN #D6E9CA */
:root {
  --ivory: #F8F4E6;
  --willow: #A8C97F;
  --celadon: #7EBEA5;
  --pale: #D6E9CA;

  --primary: #356A4E;        /* deep matcha green — buttons, links, accents (4.5:1+ on ivory/pale) */
  --primary-dark: #2C5842;   /* hover */
  --ink: #243B2E;            /* deep forest — headings, dark bands, footer */
  --success: #16A34A;        /* porch glow */
  --success-strong: #116B33; /* green text on light — 5.6:1 on pale tint, 6.6:1 on white (was #15803D: 4.25:1 on the comparison-table's translucent bg-light) */
  --success-bright: #34D399; /* glow inner, stats on dark */
  --warning: #CA8A04;
  --danger: #DC2626;
  --bg: #E9F1DC;             /* soft pale-green — pills, chips, table headers */
  --card: #FFFDF7;           /* warm white — cards */
  --text: #243B2E;
  --text-2: #556854;         /* muted sage — passes 4.5:1 on ivory & pale */
  --border: #D2DCC4;         /* sage border */

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(36,59,46,.08);
  --shadow-md: 0 4px 20px rgba(36,59,46,.06);
  --shadow-lg: 0 12px 40px rgba(36,59,46,.10);

  --transition: 200ms ease-out;
  --transition-slow: 300ms ease-out;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Book Antiqua", "Times New Roman", serif;
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth; /* no-JS / no-Lenis fallback */
  -webkit-text-size-adjust: 100%;
  background: var(--ivory); /* fallback while the ambient gradient paints */
}

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

/* ─── Lenis smooth scroll (JS-enabled) ───
   Lenis adds `lenis lenis-smooth` to <html>; these rules keep the CSS
   smooth-scroll fallback from fighting Lenis' own animation, and keep
   native scroll behavior when Lenis is stopped or absent. */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Matcha air ambient background — soft IVORY base with WILLOW / CELADON /
   PALE-GREEN blobs, plus a whisper of paper grain. Fixed so the composition
   stays put while the page scrolls over it; kept behind content (z-index -1). */
body::before {
  content: '';
  position: fixed;
  inset: -14px;
  z-index: -1;
  background: radial-gradient(72% 58% at 16.0% 82.0%, #F8F4E6 0%, #F8F4E6 22%, #F8F4E600 72%),
              radial-gradient(56% 72% at 78.0% 26.0%, #A8C97F 0%, #A8C97F 22%, #A8C97F00 72%),
              radial-gradient(78% 62% at 88.0% 84.0%, #7EBEA5 0%, #7EBEA5 22%, #7EBEA500 72%),
              radial-gradient(50% 44% at 24.0% 16.0%, #D6E9CA 0%, #D6E9CA 22%, #D6E9CA00 72%),
              radial-gradient(130% 120% at 30% 20%, #F8F4E6, #F8F4E6);
  filter: blur(7px);
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url('assets/grain.png') repeat;
  background-size: 256px 256px;
  image-rendering: pixelated;
  mix-blend-mode: overlay;
  opacity: 0.03;
  pointer-events: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ─── Skip Link ─── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 12px;
}

/* ─── Typography ─── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-2);
}

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

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

/* ─── Layout ─── */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  section {
    padding: 5rem 0;
  }
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  min-height: 44px;
  min-width: 44px;
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(53,106,78,.28);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    box-shadow: 0 4px 12px rgba(53,106,78,.38);
  }

  .btn-secondary:hover {
    background: var(--bg);
    color: var(--ink);
  }
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-full {
  width: 100%;
}

/* ─── Cards ─── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }
}

/* ─── Pills / Chips ─── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
}

.pill svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,253,247,.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition), padding var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* env() is 0 on desktop and in portrait Safari — adds notch clearance in
     landscape / standalone (viewport-fit=cover). */
  padding: calc(0.875rem + env(safe-area-inset-top)) 1.25rem;
  max-width: 1140px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}

.logo svg {
  width: 28px;
  height: 28px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-cta {
  display: inline-flex;
  padding: 10px 16px;
  font-size: 0.875rem;
}

.cta-label-short {
  display: none;
}

@media (max-width: 419px) {
  .cta-label-full {
    display: none;
  }
  .cta-label-short {
    display: inline;
  }
}

/* ─── Hero ─── */
.hero {
  padding: 3rem 0 4rem;
  background: transparent; /* let the matcha ambient gradient show through */
  overflow: hidden;
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.hero-content {
  order: 2;
}

.hero-visual {
  order: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-content { order: 1; }
  .hero-visual { order: 2; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 1.25rem;
}

.eyebrow svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.hero h1 {
  margin-bottom: 1rem;
  text-wrap: balance; /* even, deliberate line breaks */
}

.hero-subhead {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  color: var(--text-2);
  margin-bottom: 1.5rem;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 1.75rem;
}

/* ─── Device Visual ─── */
.device-visual {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 420/340;
}

.device-visual svg {
  width: 100%;
  height: 100%;
}

/* ─── Device Animations ───
   Calm, premium treatment: the only motion is the status LED's gentle
   opacity breath. No floating, no ripples, no pulsing badges — the device
   sits still like a studio product shot. (Entrance + parallax are driven
   by GSAP in app.js.) */
@keyframes ledBreath {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}

.glow-halo {
  animation: ledBreath 3.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .glow-halo {
    animation: none;
  }
}

/* ─── Trust Strip ─── */
.trust-strip {
  background: var(--ink);
  color: #fff;
  padding: 1rem 0;
}

.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  font-size: 0.875rem;
  font-weight: 500;
}

.trust-strip-inner span {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.trust-strip-inner svg {
  width: 16px;
  height: 16px;
  color: var(--success-bright);
  flex-shrink: 0;
}

/* ─── Section Backgrounds ───
   Translucent tints so the ambient matcha gradient glows through every
   section while preserving the light/dark rhythm. Cards stay solid. */
.bg-light { background: rgba(216,233,202,.5); }
.bg-white { background: rgba(255,253,247,.6); }
.bg-dark {
  background: var(--ink);
  color: #fff;
}
.bg-dark h2,
.bg-dark h3 {
  color: #fff;
}
.bg-dark p {
  color: rgba(255,255,255,.75);
}
.bg-dark .section-label {
  color: var(--pale); /* light mint — primary is ~1.8:1 on the forest band */
}

/* ─── Cards Grid ─── */
.cards-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ─── Problem Section ─── */
.problem-punchline {
  text-align: center;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--ink);
  margin-top: 2.5rem;
}

.source-line {
  font-size: 0.75rem;
  color: var(--text-2);
  font-style: italic;
  margin-top: 0.75rem;
  display: block;
}

/* ─── Solution / In the Box ─── */
.box-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.5rem;
}

/* Long labels (e.g. the device pill) must wrap at small widths instead of
   forcing horizontal scroll — pills default to white-space: nowrap. */
.box-strip .pill {
  white-space: normal;
  text-align: center;
}

/* ─── Steps ─── */
.steps-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.step {
  position: relative;
  padding-left: 3.5rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.step h3 {
  margin-bottom: 0.25rem;
}

.honesty-note {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* ─── Wedge Section ─── */
.wedge-columns {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .wedge-columns {
    grid-template-columns: 1fr 1fr;
  }
}

.wedge-block h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wedge-block ul {
  list-style: none;
  padding: 0;
}

.wedge-block li {
  padding: 6px 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9375rem;
  color: rgba(255,255,255,.8);
}

.wedge-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.wedge-blocks li::before {
  background: var(--success);
}

.wedge-never li::before {
  background: var(--danger);
}

.pause-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,.06);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
}

.pause-line svg {
  width: 20px;
  height: 20px;
  color: var(--warning);
  flex-shrink: 0;
}

/* ─── Comparison Table ─── */
.comparison-table-wrap {
  overflow-x: auto;
  margin-top: 2rem;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  font-weight: 600;
  color: var(--ink);
  background: var(--bg);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.comparison-table td:last-child {
  color: var(--success-strong);
  font-weight: 500;
}

.comparison-footnote {
  font-size: 0.75rem;
  color: var(--text-2);
  margin-top: 0.75rem;
}

/* Mobile comparison cards */
.comparison-cards {
  display: none;
  gap: 1rem;
  margin-top: 2rem;
}

.comp-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.comp-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.comp-card .instead {
  font-size: 0.875rem;
  color: var(--text-2);
  margin-bottom: 0.75rem;
}

.comp-card .instead strong {
  color: var(--danger);
}

.comp-card .porchlight-alt {
  font-size: 0.875rem;
  color: var(--success-strong);
  font-weight: 500;
}

@media (max-width: 639px) {
  .comparison-table-wrap {
    display: none;
  }
  .comparison-cards {
    display: grid;
  }
}

/* ─── Quotes ─── */
.quote-card {
  position: relative;
  padding: 1.75rem;
  border-left: 3px solid var(--primary);
}

.quote-card blockquote {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 1rem;
  font-style: italic;
}

.quote-card cite {
  font-size: 0.8125rem;
  color: var(--text-2);
  font-style: normal;
  font-weight: 500;
}

.quote-caption {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9375rem;
  color: var(--text-2);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Stats Band ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--success-bright);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,.75);
  line-height: 1.4;
}

.stats-source {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,.6);
}

.stats-source a {
  color: var(--pale);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── Founder Story ─── */
.founder-quote {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.founder-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 1rem;
  font-style: italic;
}

.founder-quote cite {
  font-size: 0.875rem;
  color: var(--text-2);
  font-style: normal;
  font-weight: 500;
}

/* ─── Pricing ─── */
.pricing-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 480px));
  }
}

.pricing-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(53,106,78,.12);
}

.pricing-card h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-2);
  margin-bottom: 0.5rem;
}

.price {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.price-note {
  font-size: 0.875rem;
  color: var(--text-2);
  margin-bottom: 1.25rem;
}

/* India-only price — clear callout under the worldwide price */
.price-india {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 6px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.pricing-features li {
  padding: 6px 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9375rem;
  color: var(--text-2);
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.pricing-footnote {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9375rem;
  color: var(--text-2);
}

.early-bird {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--primary);
  font-weight: 600;
}

.money-back {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-2);
}

/* ─── Gift Section ─── */
.gift-section {
  text-align: center;
}

.gift-section p {
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

/* ─── FAQ Accordion ─── */
.faq-list {
  max-width: 760px;
  margin: 2rem auto 0;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--card);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background var(--transition);
}

@media (hover: hover) and (pointer: fine) {
  .faq-question:hover {
    background: var(--bg);
  }
}

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

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 1.25rem 1.25rem;
}

.faq-answer p {
  font-size: 0.9375rem;
  color: var(--text-2);
  margin-bottom: 0.75rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ─── Waitlist Form ─── */
.waitlist-section {
  text-align: center;
}

.waitlist-section h2 {
  color: #fff;
}

.waitlist-section > .container > p {
  max-width: 520px;
  margin: 0 auto 2rem;
  color: rgba(255,255,255,.75);
}

.waitlist-form-wrap {
  max-width: 480px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition), background var(--transition);
}

.form-group input::placeholder {
  color: rgba(255,255,255,.4);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
  background: rgba(255,255,255,.12);
  /* Keep the global :focus-visible ring (no outline: none) */
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='rgba(255,255,255,0.6)' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-group select option {
  background: var(--ink);
  color: #fff;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.form-microcopy {
  font-size: 0.75rem;
  color: rgba(255,255,255,.5);
  margin-top: 0.75rem;
}

/* Inline validation hint — visible, immediate feedback instead of a silent rejection */
.form-error-text {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #FCA5A5; /* light red on the forest band — passes 4.5:1 */
}

.form-state {
  display: none;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.06);
}

.form-state.active {
  display: block;
}

.form-state.success {
  border: 1px solid var(--success);
}

.form-state.error {
  border: 1px solid var(--danger);
}

.form-state h3 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.form-state p {
  color: rgba(255,255,255,.8);
  margin-bottom: 0;
}

.form-state a,
.noscript-fallback a {
  color: var(--pale); /* light mint — passes 4.5:1 on the forest band */
}

.form-state a:hover,
.noscript-fallback a:hover {
  color: #fff;
}

.noscript-fallback {
  padding: 1rem;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  color: rgba(255,255,255,.8);
}

/* ─── Footer ─── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  /* env() adds home-indicator clearance on notched phones (viewport-fit=cover). */
  padding: 3rem 0 calc(1.5rem + env(safe-area-inset-bottom));
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-col p {
  font-size: 0.875rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 0.75rem;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,.7);
  padding: 4px 0;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: #fff;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-brand svg {
  width: 24px;
  height: 24px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,.55); /* 5.5:1 on the dark band */
}

.footer-bottom a {
  color: rgba(255,255,255,.75);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.footer-bottom a:hover {
  color: #fff;
}

/* ─── Scroll Reveal ───
   Hidden state is gated behind `.js` (added by an inline head script at
   parse time, before first paint) so content stays fully readable when
   JavaScript is disabled (spec §13.7).

   Motion: when GSAP is present, app.js drives the reveal with tweens
   (it neutralizes this CSS transition during playback and restores the
   `.visible` state after). Without GSAP, app.js falls back to toggling
   `.visible` and this transition does the easing. */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}

/* Hero entrance — same gate, so the GSAP entrance starts from a hidden
   state instead of flashing visible-then-hidden. GSAP animates these via
   explicit fromTo() tweens; the no-GSAP fallback adds `.visible`.

   .hero-reveal-nofade stays PAINTED from first paint (opacity 1, just
   offset) — the headline is the page's LCP element, so it should render
   immediately and only slide into place, never wait on the JS stack. */
.js .hero-reveal {
  opacity: 0;
  transform: translateY(26px);
}

.js .hero-reveal-nofade {
  opacity: 1;
}

/* The device visual also stays painted — it's the page's LCP element. It
   only slides (no scale): scaling the LCP element re-records LCP at the end
   of the animation and pushes the metric out. */
.js .hero-reveal.visible {
  opacity: 1;
  transform: none;
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .hero-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ─── Utility ─── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }

/* ─── Mobile touch targets ───
   Nav-like links get the 44px tap minimum on touch devices (footer nav,
   brand logo, standalone links). Inline links mid-sentence (footer-bottom
   "Privacy", form email) are WCAG 2.5.8-exempt; the honeypot is hidden. */
@media (max-width: 1023px) {
  .logo {
    padding: 9px 0;
  }
  .footer-col a {
    padding: 11px 0;
  }
  .card a,
  .stats-source a {
    display: inline-block;
    padding: 13px 0;
  }
}

/* ─── Responsive Tweaks ─── */
@media (max-width: 374px) {
  .header-cta {
    padding: 10px 14px;
    font-size: 0.875rem;
  }
  .hero-ctas {
    flex-direction: column;
  }
  .hero-ctas .btn {
    width: 100%;
  }
}
