/* ============================================
   PorchLights 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: 460px;
  aspect-ratio: 420/360;
}

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

/* ─── Device Animations ───
   Calm, premium treatment: the LED breathes opacity (very gentle),
   shield badge floats, blocked toast breathes scale/release, and the
   ripple rings expand outward. Entrance + parallax are driven by
   GSAP in app.js. The device itself stays still like a studio product
   shot — only the supporting elements move. */
@keyframes ledBreath {
  0%, 100% { opacity: 0.78; }
  50% { opacity: 1; }
}

@keyframes floatBadge {
  0%, 100% { transform: translate(36px, 78px); }
  50%      { transform: translate(36px, 74px); }
}

@keyframes floatToast {
  0%, 100% { transform: translate(252px, 66px); }
  50%      { transform: translate(252px, 72px); }
}

@keyframes ripple {
  0%   { transform: scale(.6); opacity: 0; }
  20%  { opacity: .8; }
  100% { transform: scale(1.6); opacity: 0; }
}

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

.float-badge { animation: floatBadge 5.2s ease-in-out infinite; }

.float-toast { animation: floatToast 6s ease-in-out infinite; }

.ripple-ring {
  transform-origin: 210px 185px;
  transform-box: fill-box;
  animation: ripple 3.6s ease-out infinite;
}

.ripple-ring-delay {
  animation-delay: 1.8s;
}

@media (prefers-reduced-motion: reduce) {
  .glow-halo,
  .float-badge,
  .float-toast,
  .ripple-ring {
    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;
}

.solution-lead {
  max-width: 640px;
  font-size: clamp(1rem, 1.6vw, 1.0625rem);
}

.box-grid {
  display: grid;
  gap: 0.875rem;
  margin-top: 2rem;
  grid-template-columns: repeat(2, 1fr);
}

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

.box-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1rem 1.125rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

@media (hover: hover) and (pointer: fine) {
  .box-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
  }
}

.box-item h3 {
  font-size: 0.9375rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
  margin: 0.625rem 0 0.25rem;
  color: var(--ink);
}

.box-item p {
  font-size: 0.8125rem;
  color: var(--text-2);
  margin: 0;
  line-height: 1.45;
}

.box-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.box-icon svg { width: 28px; height: 28px; }

/* ─── 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: 1.5rem;
  margin-top: 2rem;
}

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

.wedge-block {
  padding: 1.25rem 1.375rem 1.5rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-lg);
}

.wedge-block h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
  color: #fff;
  margin-bottom: 0.875rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.wedge-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.9375rem;
  color: rgba(255,255,255,.85);
  line-height: 1.5;
}

.wedge-marker {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  border-radius: 999px;
}

.wedge-marker-block {
  background: var(--success);
  color: #fff;
}

.wedge-marker-never {
  background: rgba(252,165,165,.14);
  color: #FCA5A5;
  border: 1px solid rgba(252,165,165,.35);
}

.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 1rem;
  text-align: center;
  position: relative;
}

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem 1.5rem; }
  /* Subtle vertical rules between the four numbers on desktop only */
  .stats-grid > .stat-cell + .stat-cell {
    border-left: 1px solid rgba(255,255,255,.08);
  }
}

.stat-cell {
  padding: 0 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.2vw, 3rem);
  font-weight: 700;
  color: var(--success-bright);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 768px) {
  .stat-cell:nth-child(1) .stat-number { color: var(--pale); }
  .stat-cell:nth-child(2) .stat-number { color: var(--success-bright); }
  .stat-cell:nth-child(3) .stat-number { color: var(--success-bright); }
  .stat-cell:nth-child(4) .stat-number { color: var(--pale); }
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,.78);
  line-height: 1.45;
  max-width: 200px;
}

.stats-source {
  text-align: center;
  margin-top: 2.25rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,.55);
  letter-spacing: 0.02em;
}

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

.stats-source a:hover { text-decoration-color: var(--pale); }

/* ─── Founder Story ─── */
.founder-heading-text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.5rem;
  max-width: 720px;
  text-wrap: balance;
}

.founder-quote {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.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-wrap { text-align: center; }
.pricing-lead { max-width: 480px; margin: 0 auto 0.5rem; }

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

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

.pricing-card {
  background: var(--card);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 2rem 1.875rem 2.25rem;
  display: flex;
  flex-direction: column;
  text-align: left;
  position: relative;
  box-shadow: 0 8px 32px rgba(53,106,78,.10), 0 0 0 4px rgba(53,106,78,0);
  transition: box-shadow var(--transition), transform var(--transition);
}

@media (hover: hover) and (pointer: fine) {
  .pricing-card:hover { transform: translateY(-3px); box-shadow: 0 16px 48px rgba(53,106,78,.15); }
}

.pricing-card.featured { /* same treatment; the class keeps the spec selectors happy */ }

.pricing-mark {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(53,106,78,.30);
}

.pricing-card h3 {
  font-size: 0.8125rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-weight: 700;
  color: var(--text-2);
  margin: 0.75rem 0 0.75rem;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 0.375rem;
}

.price-main {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 3.4rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}

.price-meta {
  font-size: 0.9375rem;
  color: var(--text-2);
  font-weight: 500;
}

.price-note {
  font-size: 0.875rem;
  color: var(--text-2);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.price-india-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 1.5rem;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(168,201,127,.18) 0%, rgba(168,201,127,.30) 100%);
  border: 1px solid rgba(53,106,78,.22);
  border-radius: var(--radius-md);
}

.price-india-flag {
  font-size: 1.15rem;
  line-height: 1.25;
  margin-top: 1px;
}

.price-india-body { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.price-india-line { font-size: 0.9375rem; color: var(--ink); line-height: 1.4; }
.price-india-line strong { font-weight: 700; color: var(--primary-dark); }
.price-india-sub { font-size: 0.75rem; color: var(--text-2); }

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.pricing-features li {
  padding: 4px 0 4px 1.625rem;
  position: relative;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.5;
}

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

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

.early-bird {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-align: center;
  margin: 1.5rem auto 0;
  font-size: 0.9375rem;
  color: var(--primary-dark);
  font-weight: 600;
  padding: 8px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.early-bird-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(53,106,78,.18);
  animation: earlyBirdPing 2.4s ease-in-out infinite;
}

@keyframes earlyBirdPing {
  0%, 100% { box-shadow: 0 0 0 4px rgba(53,106,78,.18); }
  50% { box-shadow: 0 0 0 8px rgba(53,106,78,0); }
}

.early-bird a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.money-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-align: center;
  margin: 0.875rem auto 0;
  font-size: 0.875rem;
  color: var(--text-2);
}

.money-back-icon {
  color: var(--success-strong);
  font-weight: 700;
  font-size: 1.05rem;
}

/* ─── 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);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item.open {
  border-color: var(--primary);
  box-shadow: 0 6px 24px rgba(53,106,78,.10);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.375rem;
  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 250ms ease, color var(--transition);
}

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

.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.375rem 1.25rem;
}

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

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

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

.waitlist-section::before {
  /* Soft glow behind the form for visual interest, tied to the brand color */
  content: '';
  position: absolute;
  top: 4%;
  left: 50%;
  transform: translateX(-50%);
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(126,190,165,.16) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.waitlist-section .container { position: relative; z-index: 1; }

.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: 13px 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), box-shadow 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);
  box-shadow: 0 0 0 4px rgba(126,190,165,.20);
  /* Aesthetic focus halo for the dark band; keep global :focus-visible ring */
}

.form-group input[aria-invalid="true"] {
  border-color: var(--danger);
  background: rgba(220,38,38,.15);
}

.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,.55);
  margin-top: 0.75rem;
  letter-spacing: 0.01em;
}

.btn.is-loading { /* submit while the request is in flight */
  position: relative;
  color: rgba(255,255,255,.85);
  cursor: wait;
  pointer-events: none;
}

.btn.is-loading::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 10px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: -2px;
  animation: btnSpin 0.8s linear infinite;
}

@keyframes btnSpin { to { transform: rotate(360deg); } }

/* 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: 2.25rem 2rem;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.05);
  text-align: center;
  animation: formStateIn 360ms ease-out;
}

@keyframes formStateIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.form-state.success {
  border: 1px solid rgba(52,211,153,.45);
  background: rgba(52,211,153,.08);
}

.form-state.error {
  border: 1px solid rgba(220,38,38,.55);
  background: rgba(220,38,38,.10);
}

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

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

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

.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,.85);
  text-align: center;
}

/* ─── 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%;
  }
}
