/* =====================================================================
   COACH SIR — landing.css
   Aesthetic: editorial sports-poster meets Mumbai gym at golden hour.
   WhatsApp dark theme (green-on-dark) with kohl gold pulled from the coach light.
   ===================================================================== */

:root {
  /* PALETTE — WhatsApp dark theme. The coach photo brings the warm light. */
  --ink:        #0b141a;            /* WhatsApp dark mode background */
  --ink-deep:   #060a0d;            /* deeper void */
  --ink-card:   #1f2c34;            /* WA incoming bubble bg / card surface */
  --ink-soft:   #2a3942;            /* WA divider / hover surface */
  --paper:      #e9edef;            /* WA off-white text */
  --paper-mute: #8696a0;            /* WA muted text */
  --accent:     #25d366;            /* WA primary green */
  --accent-d:   #1ab856;            /* deeper green */
  --accent-dd:  #00a884;            /* WA teal-green */
  --accent-glow: rgba(37, 211, 102, 0.32);
  --check:      #53bdeb;            /* WA check-mark blue */
  --kohl:       #ffd876;            /* warm gold pulled from the coach light — italic accent only */

  --hair:       rgba(233, 237, 239, 0.10);
  --hair-2:     rgba(233, 237, 239, 0.18);
  --glass:      rgba(11, 20, 26, 0.55);
  --glass-edge: rgba(233, 237, 239, 0.10);

  /* TYPE — Instrument Serif (sharp editorial italic) + Geist (UI) + Geist Mono */
  --serif:  "Instrument Serif", "Georgia", serif;
  --sans:   "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:   "Geist Mono", ui-monospace, "SFMono-Regular", monospace;

  /* SCALE */
  --rad-sm: 8px;
  --rad:    14px;
  --rad-lg: 22px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--ink-deep);
  color: var(--paper);
  scroll-behavior: auto; /* Lenis handles smooth */
}
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  background: var(--ink-deep);
  color: var(--paper);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }

::selection { background: var(--accent); color: var(--paper); }
img { max-width: 100%; display: block; }

/* =====================================================================
   ATMOSPHERIC LAYERS — grain, embers canvas, vignette
   ===================================================================== */
.grain {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 200;
  opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}
#embers {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 3;                 /* above bg-img + veil, below text (z-index 10) */
  width: 100%; height: 100%;
  opacity: 0.40;              /* keep them atmospheric, not loud */
  mix-blend-mode: screen;     /* additive look without smothering */
}

/* =====================================================================
   LOADER
   ===================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 9000;
  background: var(--ink-deep);
  display: grid; place-items: center;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.loader.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.loader-mark {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(48px, 7vw, 88px);
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1;
  color: var(--paper); letter-spacing: -0.04em; line-height: 1;
}
.loader-mark em {
  font-style: italic; color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  margin-right: 8px;
}
.loader-bar {
  width: 240px; height: 1px;
  background: rgba(245, 237, 217, 0.12); overflow: hidden;
}
.loader-bar span {
  display: block; width: 0; height: 100%;
  background: linear-gradient(90deg, var(--kohl), var(--accent));
  animation: loadbar 1.4s ease forwards;
}
@keyframes loadbar { to { width: 100%; } }
.loader-tag {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--paper-mute); margin: 0;
}

/* =====================================================================
   VERTICAL RAIL — brand mark + live IST clock
   ===================================================================== */
.rail {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 30px; z-index: 100;
  display: flex; flex-direction: column; justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  pointer-events: none;
  mix-blend-mode: difference;
}
.rail-top, .rail-bot {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--paper-mute);
}
.rail-vmark {
  letter-spacing: 0.15em;
  white-space: nowrap;
  font-weight: 500;
  color: var(--paper);
}
.rail-bot {
  display: flex; flex-direction: column; gap: 22px; align-items: center;
}
.rail-clock { color: var(--paper); }
.rail-status { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; }
.rail-status .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #2ecc71; box-shadow: 0 0 12px #2ecc71aa;
  writing-mode: horizontal-tb;
  animation: pulse 1.6s ease-in-out infinite;
}
.rail-status .dot.is-asleep { background: var(--kohl); box-shadow: 0 0 12px rgba(255, 216, 118, 0.6); }
@keyframes pulse { 50% { transform: scale(1.5); opacity: 0.7; } }
@media (max-width: 900px) { .rail { display: none; } }

/* =====================================================================
   NAV
   ===================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 36px 22px 36px;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }

.brand {
  display: inline-flex; align-items: baseline; gap: 6px;
  text-decoration: none;
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: 24px; letter-spacing: -0.03em; line-height: 1;
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1;
}
.brand-mark { color: var(--accent); }
.brand-name { color: var(--paper); }

.nav-links {
  display: flex; gap: 28px; align-items: center;
}
.nav-links a {
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--paper-mute); text-decoration: none;
  position: relative; padding: 8px 2px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav-links a::before {
  content: ""; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(233, 237, 239, 0.22);
  transition: background 0.25s, border-color 0.25s, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dd));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav-links a:hover {
  color: var(--paper);
}
.nav-links a:hover::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  transform: scale(1.2);
}
.nav-links a:hover::after { transform: scaleX(1); }

.brand { cursor: pointer; }
.brand-mark, .brand-name { transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); display: inline-block; }
.brand:hover .brand-mark { transform: translateX(-2px); }
.brand:hover .brand-name { transform: translateX(2px); }

.nav-cta {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 20px;
  text-decoration: none;
  font-family: var(--sans); font-weight: 600; font-size: 13px;
  letter-spacing: -0.005em;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, #34e07a 0%, var(--accent) 50%, var(--accent-d) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.40),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 6px 14px -6px rgba(37, 211, 102, 0.5),
    0 1px 2px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s, filter 0.2s, box-shadow 0.25s;
}
.nav-cta .arrow {
  font-family: var(--serif); font-style: italic; font-size: 16px;
  transition: transform 0.25s;
}
.nav-cta:hover {
  filter: brightness(1.08); transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.50),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 10px 22px -8px rgba(37, 211, 102, 0.6),
    0 1px 2px rgba(0, 0, 0, 0.3);
}
.nav-cta:hover .arrow { transform: translateX(3px); }

@media (max-width: 900px) {
  .nav { padding: 16px 20px; }
  .nav-links { display: none; }
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
}
.hero-bg-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  transform: scale(1.08);
  will-change: transform;
}
@media (max-width: 900px) {
  .hero-bg-img { background-position: 75% center; }
}

/* Left-heavy veil so text reads on top of the painted background */
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(95deg,
      rgba(6, 7, 14, 0.96) 0%,
      rgba(6, 7, 14, 0.92) 24%,
      rgba(6, 7, 14, 0.74) 42%,
      rgba(6, 7, 14, 0.45) 60%,
      rgba(6, 7, 14, 0.18) 78%,
      rgba(6, 7, 14, 0.05) 100%),
    linear-gradient(180deg,
      rgba(6, 7, 14, 0.55) 0%,
      rgba(6, 7, 14, 0.0)  18%,
      rgba(6, 7, 14, 0.0)  70%,
      rgba(6, 7, 14, 0.85) 100%);
}
@media (max-width: 900px) {
  .hero-veil { background:
    linear-gradient(180deg,
      rgba(6, 7, 14, 0.92) 0%,
      rgba(6, 7, 14, 0.70) 32%,
      rgba(6, 7, 14, 0.45) 55%,
      rgba(6, 7, 14, 0.85) 100%);
  }
}
.hero-vignette {
  position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(120% 80% at 60% 60%, transparent 30%, rgba(6, 7, 14, 0.55) 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative; z-index: 10;
  max-width: 1440px; margin: 0 auto;
  padding: 132px 56px 120px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  min-height: 100vh; min-height: 100dvh;
}
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding: 120px 28px 80px;
    gap: 44px;
  }
}
@media (max-width: 600px) {
  .hero-grid { padding: 110px 20px 60px; }
}
/* Short viewports: tall card states (done / welcome-back) overflow a
   vertically-centered grid and push the primary CTA below the fold.
   Anchor to the top so everything stays reachable by scrolling. */
@media (max-height: 820px) {
  .hero-grid {
    align-items: start;
    min-height: 0;
    padding-top: 108px;
    padding-bottom: 72px;
  }
}

/* — hero left copy — */
.hero-copy { max-width: 640px; }

.kicker {
  margin: 0 0 24px;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--paper-mute);
}
.kicker-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}

.display {
  font-family: "Unbounded", var(--sans);
  font-style: normal; font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--paper);
  font-feature-settings: "ss01", "ss02", "tnum";
  margin: 0;
}
.display-xl {
  font-size: clamp(44px, 6.6vw, 96px);
  font-weight: 800;
}
.display .line {
  display: block;
  overflow: hidden;
  padding: 0.08em 0.02em 0.06em;
  white-space: nowrap;            /* keep "tera coach." together on one line */
}
.display em {
  font-style: normal; font-weight: 900; color: var(--paper);
}
.display .accent em,
.display .hl-accent {
  font-style: normal; font-weight: 900;
  color: var(--accent);
  text-shadow: 0 0 90px rgba(37, 211, 102, 0.55);
}

.lede {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.55;
  color: var(--paper-mute);
  max-width: 58ch;
  margin: 28px 0 0;
}
.lede em { color: var(--kohl); font-style: italic; }
.lede strong { color: var(--paper); font-weight: 600; }
.lede-small { font-size: 14.5px; }

.hero-meta {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
/* Liquid glass pills */
.meta-pill {
  position: relative;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--paper-mute);
  padding: 9px 14px;
  border: 1px solid rgba(233, 237, 239, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 60%),
    rgba(11, 20, 26, 0.40);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.30),
    0 2px 8px -4px rgba(0, 0, 0, 0.5);
  transition: border-color 0.2s, color 0.2s;
}
.meta-pill:hover { border-color: rgba(37, 211, 102, 0.4); color: var(--paper); }
.meta-pill b { font-family: var(--sans); font-weight: 600; color: var(--paper); text-transform: none; letter-spacing: -0.005em; margin-right: 5px; }

.hero-cta-row {
  margin-top: 36px;
  display: flex; align-items: center; gap: 22px;
}
.cta-ghost {
  display: inline-flex; align-items: center;
  align-self: center;
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--paper-mute); text-decoration: none;
  padding: 0;
  position: relative;
  transition: color 0.2s;
}
.cta-ghost::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--hair-2);
  background-image: linear-gradient(90deg, var(--hair-2) 50%, transparent 50%);
  background-size: 8px 1px;
}
.cta-ghost:hover { color: var(--paper); }
.cta-ghost:hover::after { background: var(--accent); background-image: none; }

/* — scroll cue — */
.scroll-cue {
  position: absolute; left: 56px; bottom: 36px; z-index: 12;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--paper-mute);
}
.scroll-cue-line {
  position: relative; display: inline-block;
  width: 90px; height: 1px; background: var(--hair-2);
  overflow: hidden;
}
.scroll-cue-line::after {
  content: ""; position: absolute; left: 0; top: 0; width: 30%; height: 100%;
  background: var(--paper);
  animation: scrollline 1.8s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}
@keyframes scrollline {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(330%); }
  100% { transform: translateX(330%); }
}
@media (max-width: 900px) { .scroll-cue { left: 20px; bottom: 16px; } }

/* — bottom ticker — */
.ticker {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 11;
  padding: 14px 0;
  border-top: 1px solid var(--hair);
  background: linear-gradient(180deg, transparent, rgba(6, 7, 14, 0.85));
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-track {
  display: flex; gap: 52px; width: max-content; align-items: center;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 15px;
  color: var(--paper-mute);
  letter-spacing: -0.01em;
  animation: ticker 90s linear infinite;
  white-space: nowrap;
}
.ticker-track .t-item {
  display: inline-flex; align-items: center; gap: 8px;
  opacity: 0.7;
}
.ticker-track .t-ic {
  font-style: normal;
  font-size: 14px;
  line-height: 1;
  filter: saturate(0.85);
  display: inline-block;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* =====================================================================
   FORM CARD — floating glass on the hero
   ===================================================================== */
.hero-signup { display: flex; justify-content: flex-end; align-items: center; }

/* Apple Liquid Glass — multi-layered translucent surface with refractive
   highlights, generous blur, and soft inner/outer light. */
.form-card {
  position: relative;
  width: 100%; max-width: 460px;
  padding: 32px 32px 28px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(233, 237, 239, 0.05) 0%, rgba(233, 237, 239, 0.01) 50%, rgba(233, 237, 239, 0.04) 100%),
    rgba(6, 10, 13, 0.86);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(233, 237, 239, 0.10);
  box-shadow:
    /* Inner top highlight — light catching the lip of the glass */
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    /* Inner bottom shadow — depth */
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    /* Drop shadow — the card sits on something */
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 8px 24px -8px rgba(0, 0, 0, 0.4),
    0 30px 70px -30px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.form-card:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 14px 30px -10px rgba(0, 0, 0, 0.5),
    0 40px 90px -32px rgba(0, 0, 0, 0.9);
}
/* Refractive highlight — diagonal sheen across the top */
.form-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  background:
    /* Warm light leak from window-light direction */
    radial-gradient(80% 60% at 0% 0%, rgba(214, 161, 74, 0.14), transparent 60%),
    /* Faint red echo bottom right */
    radial-gradient(70% 60% at 100% 100%, rgba(207, 31, 51, 0.08), transparent 60%);
}
/* Card header — WhatsApp trust badge + meta */
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 18px; padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.wa-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 60%),
    rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.30);
  border-radius: 999px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
}
.wa-logo {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}
.card-head-meta {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--paper-mute);
}

.cta-wa-mark {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  position: relative; z-index: 2;
}

/* Specular top-edge highlight — the glass catches light along the rim */
.form-card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 60%;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.10) 0%,
    rgba(255, 255, 255, 0.025) 40%,
    transparent 100%);
  border-radius: 28px 28px 0 0;
  mix-blend-mode: overlay;
}

.step-kicker {
  margin: 0 0 22px;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--paper);
}
.step-kicker .num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; padding: 4px 8px;
  font-family: var(--mono); font-weight: 500; font-size: 10.5px;
  color: var(--accent);
  border: 1px solid rgba(37, 211, 102, 0.32);
  background: rgba(37, 211, 102, 0.08);
  border-radius: 6px;
  letter-spacing: 0.1em;
}

.field { display: block; margin-bottom: 18px; position: relative; }
.field-label {
  display: block;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--paper-mute); margin-bottom: 8px;
}
.field-counter {
  position: absolute; right: 12px; bottom: 10px;
  font-family: var(--mono); font-size: 10.5px;
  color: var(--paper-mute);
  background: rgba(6, 7, 14, 0.6);
  padding: 2px 6px; border-radius: 4px;
}

input[type="tel"], input[type="text"], textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--sans); font-weight: 500; font-size: 16px;
  color: var(--paper);
  background: rgba(6, 7, 14, 0.55);
  border: 1px solid var(--hair-2);
  border-radius: var(--rad);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  caret-color: var(--accent);
  outline: none;
  font-feature-settings: "tnum";
}
textarea { resize: vertical; min-height: 110px; font-weight: 400; line-height: 1.5; }
input:focus, textarea:focus {
  border-color: var(--accent);
  background: rgba(11, 20, 26, 0.82);
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.18);
}
input::placeholder, textarea::placeholder { color: rgba(245, 237, 217, 0.35); }

.phone-input {
  display: flex; align-items: stretch;
  background: rgba(6, 7, 14, 0.55);
  border: 1px solid var(--hair-2);
  border-radius: var(--rad); overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.phone-input:focus-within {
  border-color: var(--accent);
  background: rgba(11, 20, 26, 0.82);
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.18);
}
.phone-input .cc {
  display: inline-flex; align-items: center; padding: 0 16px;
  font: 500 15px var(--mono); color: var(--accent);
  background: rgba(11, 20, 26, 0.72);
  border-right: 1px solid var(--hair);
  letter-spacing: 0.04em;
}
.phone-input input { border: 0; border-radius: 0; flex: 1; background: transparent; }
.phone-input input:focus { box-shadow: none; background: transparent; }

/* ============================================================
   Country code picker — replaces the hardcoded +91 chip
   ============================================================ */
.phone-input .cc-btn {
  appearance: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 12px 0 14px;
  font: 500 14px var(--mono);
  color: var(--paper);
  background: rgba(11, 20, 26, 0.72);
  border: 0;
  border-right: 1px solid var(--hair);
  cursor: pointer;
  transition: background 0.18s;
  letter-spacing: 0.02em;
  white-space: nowrap;
  min-width: 0;
}
.phone-input .cc-btn:hover { background: rgba(11, 20, 26, 0.92); }
.phone-input .cc-btn[aria-expanded="true"] { background: rgba(37, 211, 102, 0.08); }
.phone-input .cc-flag {
  font-size: 18px;
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
  font-family:
    "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji",
    "Twemoji Mozilla", emoji;
}
.phone-input .cc-dial { color: var(--accent); }
.phone-input .cc-caret {
  font-size: 9px; line-height: 1; margin-left: 1px; opacity: 0.7;
  transition: transform 0.18s;
}
.phone-input .cc-btn[aria-expanded="true"] .cc-caret { transform: rotate(180deg); }

.field { position: relative; }

.cc-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(420px, 96vw);
  max-height: 360px;
  background: rgba(11, 14, 22, 0.96);
  border: 1px solid var(--hair-2);
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 22px 60px -18px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  z-index: 60;
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: cc-pop-in 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes cc-pop-in {
  from { opacity: 0; transform: translateY(-4px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.cc-popover[hidden] { display: none; }

.cc-search {
  appearance: none;
  border: 0;
  border-bottom: 1px solid var(--hair);
  background: transparent;
  color: var(--paper);
  padding: 14px 16px;
  font: 400 14px var(--sans);
  letter-spacing: -0.005em;
  outline: none;
  border-radius: 0;
}
.cc-search::placeholder { color: rgba(245, 237, 217, 0.42); }
.cc-search:focus { box-shadow: none; background: rgba(37, 211, 102, 0.04); }

.cc-list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.cc-list::-webkit-scrollbar { width: 6px; }
.cc-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.cc-item {
  appearance: none;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 12px;
  background: transparent;
  border: 0;
  color: var(--paper);
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  font: 400 14px var(--sans);
  letter-spacing: -0.005em;
}
.cc-item:hover, .cc-item.is-highlighted {
  background: rgba(37, 211, 102, 0.08);
}
.cc-item-flag {
  font-size: 18px;
  line-height: 1;
  font-family:
    "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji",
    "Twemoji Mozilla", emoji;
}
.cc-item-name {
  font-weight: 500;
  color: var(--paper);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cc-item-dial {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* Primary CTA — Liquid Glass over WhatsApp green */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 15px 22px; margin-top: 6px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  letter-spacing: -0.005em;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, #34e07a 0%, var(--accent) 50%, var(--accent-d) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  cursor: pointer; text-decoration: none;
  position: relative; overflow: hidden; isolation: isolate;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.40),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 10px 24px -10px var(--accent-glow),
    0 24px 50px -28px rgba(37, 211, 102, 0.5);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
              filter 0.2s;
}
.cta:disabled { opacity: 0.55; cursor: not-allowed; }
.cta::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 50%);
  mix-blend-mode: overlay;
  border-radius: inherit;
}
.cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.50),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 14px 30px -10px var(--accent-glow),
    0 32px 60px -28px rgba(37, 211, 102, 0.6);
}
.cta:active { transform: translateY(0); filter: brightness(0.97); }
.cta-label { position: relative; z-index: 2; }
.cta-arrow {
  position: relative; z-index: 2;
  font-family: var(--serif); font-style: italic; font-size: 18px;
  transition: transform 0.25s;
}
.cta:hover .cta-arrow { transform: translateX(4px); }
.cta-primary { width: auto; padding: 16px 28px; }
.cta-big {
  width: auto; padding: 22px 40px; font-size: 16px;
  border-radius: 18px;
}
.cta-wa {
  /* Same liquid glass green, with WA mark inside */
  margin-top: 14px;
}

.microcopy { margin: 14px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--paper-mute); }

.otp-sent {
  margin: 0 0 18px; padding: 10px 14px;
  background: rgba(214, 161, 74, 0.08);
  border: 1px solid rgba(214, 161, 74, 0.22);
  border-radius: 10px;
  font-family: var(--sans); font-size: 13.5px; color: var(--paper);
}
.otp-sent strong { font-family: var(--mono); color: var(--kohl); font-weight: 500; }

.form-foot {
  display: flex; justify-content: space-between; align-items: center; margin-top: 14px;
}
.ghost {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--paper-mute);
  background: transparent; border: 0; cursor: pointer;
  padding: 4px 0;
  text-decoration: underline; text-underline-offset: 4px;
  text-decoration-color: var(--hair-2);
  transition: color 0.2s, text-decoration-color 0.2s;
}
.ghost:hover { color: var(--kohl); text-decoration-color: var(--kohl); }

.form-err {
  margin: 16px 0 0; padding: 12px 14px;
  background: rgba(207, 31, 51, 0.12);
  border: 1px solid rgba(207, 31, 51, 0.4);
  color: #ffb4be;
  border-radius: 10px; font-size: 13.5px;
}

/* working step */
.step-working { text-align: center; padding: 20px 0 8px; }
.spinner {
  width: 42px; height: 42px; margin: 6px auto 18px;
  border: 2px solid var(--hair-2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.working-title {
  margin: 0 0 6px;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 26px; line-height: 1.05; letter-spacing: -0.025em; color: var(--paper);
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1;
}
.working-sub { margin: 0; color: var(--paper-mute); font-size: 13px; }

/* done step */
.step-done { text-align: left; }
.done-badge {
  width: 46px; height: 46px; margin: 0 0 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #2ecc71, #1ab866);
  color: var(--ink); font-weight: 800; font-size: 22px;
  border-radius: 14px;
  box-shadow: 0 12px 30px -14px #1ab866cc;
}
.done-title {
  margin: 0 0 10px;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 40px; line-height: 1; letter-spacing: -0.03em; color: var(--paper);
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
}
.done-sub { margin: 0 0 14px; color: var(--paper-mute); font-size: 14.5px; }

.me-title {
  margin: 8px 0 6px;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 32px; line-height: 1.02; letter-spacing: -0.025em; color: var(--paper);
  font-variation-settings: "opsz" 144, "SOFT" 70, "WONK" 1;
}
.me-sub {
  margin: 0 0 16px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--paper-mute);
}
.me-transcript {
  list-style: none; margin: 0 0 18px; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
  max-height: 220px; overflow: hidden;
  border-top: 1px solid var(--hair); padding-top: 14px;
}
.me-msg {
  display: grid; grid-template-columns: 44px 1fr; gap: 10px;
  font-size: 13px; line-height: 1.45;
}
.me-msg-who {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--paper-mute);
  align-self: start; padding-top: 2px;
}
.me-msg-you .me-msg-body { color: var(--paper); }
.me-msg-sir .me-msg-body { color: var(--accent); }
.me-msg-empty {
  font-family: var(--mono); font-size: 12px; color: var(--paper-mute);
  text-align: center; padding: 12px 0;
}
.me-logout {
  background: none; border: none; padding: 12px 0 0;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--paper-mute);
  cursor: pointer; align-self: flex-start;
}
.me-logout:hover { color: var(--paper); }

@media (max-width: 540px) {
  .form-card { padding: 24px 22px 22px; }
}

/* =====================================================================
   MANIFESTO
   ===================================================================== */
.manifesto {
  position: relative;
  padding: clamp(80px, 14vh, 180px) 56px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--ink-deep), #08091160);
  isolation: isolate;
}
.manifesto-bg-num {
  position: absolute; right: -4vw; top: 50%; transform: translateY(-50%);
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1;
  font-size: clamp(380px, 60vw, 820px);
  line-height: 0.8;
  color: rgba(245, 237, 217, 0.03);
  pointer-events: none;
  letter-spacing: -0.05em;
  z-index: 0;
}
.manifesto-inner {
  position: relative; z-index: 1;
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 900px) {
  .manifesto { padding: 80px 24px; }
  .manifesto-inner { grid-template-columns: 1fr; gap: 48px; }
}

.manifesto-statement { position: relative; }
.big-statement {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1;
  font-size: clamp(40px, 5.5vw, 84px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--paper);
  margin: 16px 0 22px;
}
.big-statement .line { display: block; overflow: hidden; padding: 0.05em 0.01em; }
.big-statement em { color: var(--kohl); }
.big-statement-2 { color: var(--paper-mute); }
.big-statement-2 .accent em { color: var(--accent); }
.big-statement .hl {
  background: linear-gradient(180deg, transparent 62%, rgba(207, 31, 51, 0.55) 62%, rgba(207, 31, 51, 0.55) 92%, transparent 92%);
  padding: 0 0.08em;
  color: var(--paper);
}

.manifesto-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 540px) { .manifesto-grid { grid-template-columns: 1fr; } }
/* Liquid Glass manifesto cards */
.m-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 50%),
    rgba(31, 44, 52, 0.55);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(233, 237, 239, 0.10);
  border-radius: 22px;
  padding: 28px 26px 24px;
  isolation: isolate;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.20),
    0 18px 40px -22px rgba(0, 0, 0, 0.7);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.3s, box-shadow 0.3s;
}
.m-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(80% 80% at 0% 0%, rgba(37, 211, 102, 0.14), transparent 55%);
  transition: opacity 0.3s;
}
.m-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 211, 102, 0.30);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.20),
    0 24px 50px -22px rgba(0, 0, 0, 0.8);
}
.m-card:hover::before { opacity: 1; }
.m-num {
  display: inline-block; margin-bottom: 16px;
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1;
  font-size: 28px; line-height: 1; color: var(--accent);
  letter-spacing: -0.02em;
}
.m-card h3 {
  margin: 0 0 8px;
  font-family: var(--sans); font-weight: 700; font-size: 19px;
  color: var(--paper); letter-spacing: -0.015em;
}
.m-card p { margin: 0; color: var(--paper-mute); font-size: 14.5px; line-height: 1.55; }

/* =====================================================================
   THREAD — sample WhatsApp conversation
   ===================================================================== */
.thread {
  padding: clamp(60px, 12vh, 140px) 56px;
  background: var(--ink-deep);
}
.thread-inner { max-width: 980px; margin: 0 auto; text-align: center; }
.thread-inner .kicker, .thread-inner .section-title { text-align: left; }
.section-title {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.95; letter-spacing: -0.035em;
  color: var(--paper);
  margin: 14px 0 48px;
  text-align: left;
}
.section-title .line { display: block; overflow: hidden; padding: 0.04em 0.01em; }
.section-title em { color: var(--kohl); }

/* Liquid Glass phone frame */
.thread-frame {
  position: relative;
  max-width: 540px; margin: 0 auto;
  padding: 36px 30px 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 40%),
    linear-gradient(180deg, rgba(31, 44, 52, 0.85) 0%, rgba(11, 20, 26, 0.85) 100%);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(233, 237, 239, 0.14);
  border-radius: 36px;
  text-align: left;
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.30),
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 30px 80px -32px rgba(0, 0, 0, 0.9);
}
.thread-frame::before {
  content: ""; position: absolute; left: 50%; top: 12px;
  transform: translateX(-50%);
  width: 90px; height: 4px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 999px;
}
.thread-bubble {
  display: block;
  max-width: 88%;
  padding: 10px 14px 18px;
  font-size: 14.5px; line-height: 1.45;
  color: var(--paper);
  border-radius: 14px;
  margin-bottom: 12px;
  position: relative;
}
.thread-bubble p { margin: 0; }
.thread-bubble em { color: var(--kohl); font-style: italic; }
.thread-bubble .t {
  position: absolute; bottom: 5px; right: 12px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em;
  color: rgba(245, 237, 217, 0.4);
}
.bubble-them {
  /* WhatsApp dark incoming bubble */
  background: #1f2c34;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-right: auto;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.4);
}
.bubble-me {
  /* WhatsApp dark outgoing bubble — that classic deep teal-green */
  background: #005c4b;
  margin-left: auto;
  border-bottom-right-radius: 4px;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.4);
}

@media (max-width: 700px) { .thread, .manifesto, .how, .niches, .cta-end { padding-left: 22px; padding-right: 22px; } }

/* =====================================================================
   HOW IT WORKS
   ===================================================================== */
.how {
  padding: clamp(80px, 14vh, 160px) 56px;
  background:
    linear-gradient(180deg, var(--ink-deep), #07080f);
}
.how-inner { max-width: 1280px; margin: 0 auto; }
.how-steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 22px;
}
.how-step {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 40px;
  padding: 36px 32px;
  border-top: 1px solid var(--hair);
  align-items: baseline;
}
.how-step:last-child { border-bottom: 1px solid var(--hair); }
.how-step:hover { background: linear-gradient(90deg, rgba(214, 161, 74, 0.04), transparent 60%); }
.how-step-num {
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1;
  font-size: clamp(56px, 6vw, 96px);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.035em;
}
.how-step-body h3 {
  margin: 0 0 8px;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1;
  font-size: clamp(26px, 2.8vw, 38px);
  letter-spacing: -0.025em; color: var(--paper);
  line-height: 1.05;
}
.how-step-body p {
  margin: 0; max-width: 56ch;
  color: var(--paper-mute); font-size: 15px; line-height: 1.55;
}
@media (max-width: 700px) {
  .how-step { grid-template-columns: 1fr; gap: 6px; padding: 26px 12px; }
  .how-step-num { font-size: 52px; }
}

/* =====================================================================
   NICHES — chip cloud
   ===================================================================== */
.niches {
  padding: clamp(80px, 14vh, 160px) 56px;
  background: var(--ink-deep);
  text-align: center;
}
.niches-inner { max-width: 1240px; margin: 0 auto; }
.niches-inner .kicker, .niches-inner .section-title { text-align: left; }
.chip-cloud {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin: 36px 0 18px;
}
/* Liquid Glass niche chips */
.chip {
  position: relative;
  display: inline-flex; align-items: center;
  padding: 12px 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 55%),
    rgba(31, 44, 52, 0.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(233, 237, 239, 0.22);
  border-radius: 999px;
  color: var(--paper);
  font-family: var(--sans); font-weight: 500; font-size: 14.5px;
  letter-spacing: -0.005em;
  cursor: pointer;
  will-change: transform;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 2px 4px rgba(0, 0, 0, 0.3);
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.chip-lg { font-size: 17px; padding: 14px 22px; }
.chip-xl {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 24px; padding: 14px 24px; letter-spacing: -0.01em;
  color: var(--accent);
  background: rgba(37, 211, 102, 0.07);
  border-color: rgba(37, 211, 102, 0.28);
}
.chip:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, #34e07a 0%, var(--accent) 50%, var(--accent-d) 100%);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--ink);
  transform: translateY(-3px) rotate(-1deg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(0, 0, 0, 0.20),
    0 8px 20px -8px rgba(37, 211, 102, 0.5);
}
.chip-xl:hover { transform: translateY(-3px) rotate(1deg); }
.chip-foot { text-align: center; margin-top: 20px; }

/* =====================================================================
   CTA-END
   ===================================================================== */
.cta-end {
  position: relative;
  padding: clamp(110px, 22vh, 240px) 56px;
  text-align: center;
  background:
    radial-gradient(60% 80% at 50% 50%, rgba(207, 31, 51, 0.18), transparent 60%),
    radial-gradient(80% 80% at 50% 100%, rgba(214, 161, 74, 0.15), transparent 60%),
    var(--ink-deep);
  overflow: hidden;
}
.cta-end-inner { max-width: 1100px; margin: 0 auto; }
.cta-end .kicker { justify-content: center; display: inline-flex; }
.cta-end-title { margin: 16px 0 40px; line-height: 0.88; }
.cta-end-title .line { display: block; overflow: hidden; padding: 0.04em 0.01em; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
  padding: 44px 56px;
  border-top: 1px solid var(--hair);
  background: var(--ink-deep);
  color: var(--paper-mute);
  font-size: 13px;
}
.footer-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  margin-bottom: 8px;
}
.footer-mark {
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1;
  font-size: 22px; letter-spacing: -0.03em;
  color: var(--paper);
}
.footer-mark em { color: var(--accent); margin-right: 4px; }
.footer-meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.footer-tag { margin: 0; font-size: 13px; max-width: 60ch; }

/* =====================================================================
   FX HELPERS — used by JS / fallback
   ===================================================================== */
[data-fx] { will-change: transform, opacity; }
.display .line, .section-title .line, .big-statement .line {
  position: relative;
}
.fx-prep [data-fx="words"] .line > * { transform: translateY(110%); }
.fx-prep [data-fx="up"] { opacity: 0; transform: translateY(20px); }
.fx-prep [data-fx="card"] { opacity: 0; transform: translateY(40px) rotateX(8deg); }
.fx-prep [data-fx="bubble"] { opacity: 0; transform: translateY(14px) scale(0.96); }
.fx-prep [data-fx="m-card"] { opacity: 0; transform: translateY(40px); }
.fx-prep [data-fx="step"] { opacity: 0; transform: translateY(40px); }
.fx-prep [data-fx="chip"] { opacity: 0; transform: scale(0.6) rotate(-4deg); }
.fx-prep [data-fx="phone"] { opacity: 0; transform: translateY(60px) scale(0.96); }
.fx-prep [data-fx="num"] { opacity: 0; transform: translate(40px, -50%) scale(0.94); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
  }
  [data-fx] { opacity: 1 !important; transform: none !important; }
}


/* ============================================================
   Authed mode — full-bleed WhatsApp-style chat
   ============================================================ */
body.is-authed { overflow: hidden; }
body.is-authed .loader,
body.is-authed .nav,
body.is-authed .rail,
body.is-authed .ticker,
body.is-authed .scroll-cue,
body.is-authed .hero,
body.is-authed #manifesto,
body.is-authed #thread,
body.is-authed #how,
body.is-authed #niches,
body.is-authed #cta-end,
body.is-authed .footer { display: none !important; }

.chat-app {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1100px 700px at 50% -200px, #1b2434 0%, transparent 60%),
    linear-gradient(180deg, #0b1422 0%, #0a0f1c 100%);
  color: #e8e6df;
  font-family: var(--ui, "Geist", system-ui, sans-serif);
  /* subtle WhatsApp-ish doodle backdrop, very dim */
  background-image:
    radial-gradient(circle at 8% 12%, rgba(37,211,102,0.04), transparent 22%),
    radial-gradient(circle at 78% 88%, rgba(37,211,102,0.05), transparent 26%),
    linear-gradient(180deg, #0b1422 0%, #0a0f1c 100%);
}

/* Header */
.ca-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(180deg, #142036 0%, #0e1828 100%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 1px 0 rgba(0,0,0,0.4), 0 8px 18px -10px rgba(0,0,0,0.5);
  flex-shrink: 0;
}
.ca-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ca-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #0a0c14;
  border: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.ca-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.ca-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ca-name {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 19px;
  letter-spacing: 0.01em;
  color: #f1efe7;
}
.ca-status {
  font-size: 11.5px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
}
.ca-actions { display: flex; align-items: center; gap: 4px; position: relative; }
.ca-iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 0; background: transparent;
  color: rgba(255,255,255,0.7);
  border-radius: 50%;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.ca-iconbtn:hover { background: rgba(255,255,255,0.07); color: #fff; }

.ca-menu-pop {
  position: absolute;
  top: 44px; right: 0;
  min-width: 180px;
  background: #1a2538;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  box-shadow: 0 16px 30px -10px rgba(0,0,0,0.6);
  padding: 6px;
  flex-direction: column;
  z-index: 5;
}
.ca-menu-pop:not([hidden]) { display: flex; }
.ca-menu-pop[hidden] { display: none !important; }
.ca-menu-pop a, .ca-menu-pop button {
  text-align: left;
  background: transparent;
  border: 0;
  padding: 9px 12px;
  font: 500 13px var(--ui, "Geist", system-ui, sans-serif);
  color: #e8e6df;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
}
.ca-menu-pop a:hover, .ca-menu-pop button:hover { background: rgba(255,255,255,0.06); }

/* Thread */
.ca-thread {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 18px clamp(14px, 4vw, 28px) 12px;
  display: flex; flex-direction: column;
  gap: 4px;
  scroll-behavior: smooth;
}
.ca-thread > * {
  width: 100%;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.ca-thread .ca-row { display: flex; }
.ca-thread .ca-row.from-sir { justify-content: flex-start; }
.ca-thread .ca-row.from-you { justify-content: flex-end; }
.ca-thread::-webkit-scrollbar { width: 6px; }
.ca-thread::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }

.ca-day-sep {
  align-self: center;
  margin: 12px 0 6px;
}
.ca-day-sep span {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.55);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
}

.ca-row {
  display: flex;
  margin: 1px 0;
}
.ca-row.from-sir { justify-content: flex-start; }
.ca-row.from-you { justify-content: flex-end; }

.ca-bubble {
  max-width: 78%;
  padding: 8px 10px 6px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 1px 1px rgba(0,0,0,0.18);
  position: relative;
  word-wrap: break-word;
}
.ca-row.from-sir .ca-bubble {
  background: #1f2c40;
  color: #e8efff;
  border-top-left-radius: 4px;
}
.ca-row.from-you .ca-bubble {
  background: #075e54;
  background: linear-gradient(180deg, #0c7d6c 0%, #075e54 100%);
  color: #f1fff5;
  border-top-right-radius: 4px;
}
/* WhatsApp-style tails */
.ca-row.from-sir .ca-bubble::before,
.ca-row.from-you .ca-bubble::before {
  content: "";
  position: absolute;
  top: 0;
  width: 8px; height: 12px;
}
.ca-row.from-sir .ca-bubble::before {
  left: -7px;
  background: #1f2c40;
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}
.ca-row.from-you .ca-bubble::before {
  right: -7px;
  background: #0c7d6c;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.ca-bubble-text { white-space: pre-wrap; }
.ca-bubble-image {
  display: block;
  max-width: 100%;
  border-radius: 8px;
  margin: 0 0 4px;
}
.ca-bubble-audio { width: 100%; margin: 4px 0; }

.ca-bubble-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  float: right;
  margin-left: 12px;
  font-size: 10.5px;
  color: rgba(255,255,255,0.55);
  font-family: "Geist Mono", ui-monospace, monospace;
}
.ca-bubble-tick { color: #61d2ff; font-size: 12px; line-height: 1; }
.ca-row.from-sir .ca-bubble-meta { color: rgba(255,255,255,0.5); }

.ca-empty {
  margin: auto;
  text-align: center;
  color: rgba(255,255,255,0.55);
  font-size: 14px;
}
.ca-empty .dim { color: rgba(255,255,255,0.35); font-size: 12.5px; margin-top: 4px; }

.ca-sys {
  align-self: center;
  background: rgba(207,31,51,0.14);
  color: #ff9aa6;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  margin: 4px 0;
}

/* Typing indicator — handled in chat.css (#chatApp .ca-typing). The legacy
   `.ca-typing-bubble span { width:6px;height:6px }` rule was collapsing the
   shimmer text span to a dot, so it's removed. */

/* Input bar */
.ca-input {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 10px clamp(14px, 4vw, 28px);
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: transparent;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.ca-input::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 96px;
  background: linear-gradient(180deg, rgba(11,20,34,0) 0%, #0a0f1c 70%);
  pointer-events: none;
  z-index: -1;
}
.chat-app .ca-input { position: relative; }
.ca-input textarea {
  flex: 1;
  appearance: none;
  background: #1c2638;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 11px 14px;
  font: 400 14.5px var(--ui, "Geist", system-ui, sans-serif);
  color: #f1efe7;
  resize: none;
  min-height: 42px;
  max-height: 140px;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ca-input textarea:focus {
  border-color: rgba(37,211,102,0.5);
  box-shadow: 0 0 0 3px rgba(37,211,102,0.12);
}
.ca-input textarea::placeholder { color: rgba(255,255,255,0.35); }

.ca-send {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 0;
  background: linear-gradient(180deg, #2ade7a 0%, #0fa056 100%);
  color: #06231a;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 10px -3px rgba(15,160,86,0.5);
  transition: transform 0.1s, filter 0.1s;
}
.ca-send:hover { filter: brightness(1.07); }
.ca-send:active { transform: scale(0.96); }
.ca-send svg { transform: translateX(1px); }

@media (max-width: 640px) {
  .ca-bubble { max-width: 84%; font-size: 14.5px; }
  .ca-header { padding: 10px 12px; }
  .ca-name { font-size: 17px; }
  .ca-thread { padding: 14px 10px 6px; }
}

/* ============================================================
   Reactions — picker on hover, chips below bubble
   ============================================================ */
.ca-bubble { position: relative; }

.ca-react-picker {
  position: absolute;
  top: -36px;
  left: 0;
  display: none;
  gap: 2px;
  padding: 4px 6px;
  background: rgba(20, 24, 32, 0.96);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  box-shadow: 0 10px 22px -10px rgba(0,0,0,0.7);
  z-index: 4;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: react-in 0.16s ease-out;
}
.ca-row.from-you .ca-react-picker { left: auto; right: 0; }

@keyframes react-in {
  from { opacity: 0; transform: translateY(4px) scale(0.94); }
  to   { opacity: 1; transform: none; }
}

.ca-row.from-sir .ca-bubble:hover > .ca-react-picker,
.ca-bubble.picker-open > .ca-react-picker {
  display: inline-flex;
}

.ca-react-pick-btn {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.12s, background 0.15s;
}
.ca-react-pick-btn:hover {
  background: rgba(255,255,255,0.08);
  transform: scale(1.18);
}

.ca-reactions {
  margin-top: 4px;
  margin-left: -2px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.ca-react-chip {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(20,24,32,0.85);
  color: inherit;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12.5px;
  line-height: 1.3;
  cursor: pointer;
  transition: transform 0.12s, background 0.15s, border-color 0.15s;
  backdrop-filter: blur(6px);
}
.ca-react-chip:hover {
  background: rgba(40,46,58,0.95);
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-1px);
}
.ca-react-chip.from-sir {
  cursor: default;
  border-color: rgba(199,154,91,0.45);
  background: rgba(199,154,91,0.12);
}

/* Touch: picker doesn't show on hover; rely on long-press → picker-open */
@media (hover: none) {
  .ca-row.from-sir .ca-bubble:hover > .ca-react-picker { display: none; }
}
