/* ==========================================================================
   I'm In — marketing site (home page only)
   Scoped to index.html. Sub-pages (privacy/terms/support) keep using styles.css.

   Token discipline (5 visible colors):
     --ink     #0d1411  · dark sections (hero, values, closer)
     --cream   #f5f3ee  · cream sections (Acts I–IV)
     --text    #171F1A  · body text on cream
     --mint    #8FDBB8  · italic-serif accent, dot, glow
     --cta     #2F7045  · primary CTA fill
   All other shades are rgba() of these.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=DM+Serif+Display:ital@0;1&family=JetBrains+Mono:wght@400;500&family=Source+Sans+3:wght@400;500;600&display=swap');

:root {
  /* core 5-token palette */
  --ink:    #0d1411;
  --cream:  #f5f3ee;
  --text:   #171F1A;
  --mint:   #8FDBB8;
  --cta:    #2F7045;

  /* derived shades — all rgba of ink */
  --ink-text-on-dark:    rgba(255, 255, 255, 0.94);
  --ink-text-mid:        rgba(255, 255, 255, 0.62);
  --ink-text-dim:        rgba(255, 255, 255, 0.42);
  --ink-line:            rgba(255, 255, 255, 0.10);
  --ink-line-soft:       rgba(255, 255, 255, 0.06);
  --text-muted:          rgba(23, 31, 26, 0.62);
  --text-mid:            rgba(23, 31, 26, 0.42);
  --line-on-cream:       rgba(13, 20, 17, 0.10);
  --line-on-cream-soft:  rgba(13, 20, 17, 0.06);
  --mint-glow:           rgba(143, 219, 184, 0.28);
  --mint-soft:           rgba(143, 219, 184, 0.10);
  --cta-hover:           #245A37;

  /* type stacks */
  --font-display: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif:   "DM Serif Display", "DM Sans", serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;

  /* layout */
  --pad-x:        clamp(24px, 5vw, 80px);
  --content-max:  1280px;
}

/* ----- reset (scoped to .lp-marketing-v2 body) ----- */
body.lp-marketing-v2 {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.lp-marketing-v2 * { box-sizing: border-box; }
body.lp-marketing-v2 a { color: inherit; text-decoration: none; }
body.lp-marketing-v2 img { max-width: 100%; display: block; }

/* serif italic mint accent — used per-heading on the payoff word */
.serif-it {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--mint);
  letter-spacing: -0.01em;
}

/* reveal-on-scroll baseline */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(.2, .7, .2, 1), transform 1s cubic-bezier(.2, .7, .2, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad-x);
  background: rgba(13, 20, 17, 0);
  transition: background .35s ease, backdrop-filter .35s ease, padding .25s ease;
}
.nav.scrolled {
  background: rgba(13, 20, 17, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding-top: 14px; padding-bottom: 14px;
  border-bottom: 1px solid var(--ink-line);
}
/* Use body.lp-marketing-v2 prefix to outweigh the generic `body a { color: inherit }` rule. */
body.lp-marketing-v2 .brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #ffffff;
  transition: color .25s ease;
}
body.lp-marketing-v2 .brand-icon {
  width: 24px;
  height: 24px;
  display: block;
  flex: 0 0 auto;
}
body.lp-marketing-v2 .brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: inherit;
  line-height: 1;
}
body.lp-marketing-v2 .foot.brand-mark,
body.lp-marketing-v2 .foot .brand-mark { color: rgba(255, 255, 255, 0.78); }
body.lp-marketing-v2 .foot .brand-mark:hover,
body.lp-marketing-v2 .foot.brand-mark:hover { color: #ffffff; }
body.lp-marketing-v2 .foot .brand-icon { width: 20px; height: 20px; }
body.lp-marketing-v2 .foot .brand-text { font-size: 14px; }
.nav-links {
  display: flex;
  gap: 36px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--ink-text-mid);
}
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--ink-text-on-dark); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: -0.005em;
  color: var(--ink);
  background: var(--mint);
  box-shadow: 0 8px 20px rgba(143, 219, 184, 0.20);
  transition: transform .2s, box-shadow .25s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(143, 219, 184, 0.32);
}
.nav-cta svg { width: 14px; height: 14px; }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--ink);
  color: var(--ink-text-on-dark);
  overflow: hidden;
  padding: 80px var(--pad-x) 160px;     /* bottom reserves space for absolute ticker + scrollhint */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(80% 60% at 50% 0%, rgba(143, 219, 184, 0.08), transparent 70%),
    radial-gradient(120% 80% at 50% 100%, rgba(0, 0, 0, 0.45), transparent 60%);
  mix-blend-mode: screen;
  opacity: .9;
}
.hero-glow {
  position: absolute;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  left: -150px;
  top: 30%;
  background: radial-gradient(circle, var(--mint-glow), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  opacity: .55;
  animation: heroFloat 18s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(60px, -40px); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}
.hero-copy { min-width: 0; }

/* ============================================================
   HERO SCENE — single phone, Out → In, In Now fills (9s loop)
   ============================================================ */
.hero-scene {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  place-items: center;
}
.hero-scene-glow {
  position: absolute;
  inset: -10%;
  background: radial-gradient(60% 50% at 50% 45%, rgba(143, 219, 184, 0.28), transparent 70%);
  filter: blur(50px);
  z-index: 0;
  pointer-events: none;
  animation: heroSceneGlowPulse 9s ease-in-out infinite;
}
@keyframes heroSceneGlowPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* single phone, centered with a subtle tilt */
.mini-phone {
  position: absolute;
  width: 240px;
  z-index: 3;
}
.phone-self {
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(-2deg);
}

.mp-bezel {
  width: 100%;
  aspect-ratio: 1290 / 2796;
  background: #0d1411;
  border-radius: 34px;
  padding: 4px;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.45),
    0 18px 36px rgba(0, 0, 0, 0.30),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}
.mp-screen-img {
  position: absolute;
  inset: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  object-fit: cover;
  border-radius: 30px;
  display: block;
}

/* Out screenshot underneath, In screenshot crossfades on top */
.phone-self .mp-screen-img-out { z-index: 1; opacity: 1; }
.phone-self .mp-screen-img-in {
  z-index: 2;
  opacity: 0;
  animation: selfFlipIn 9s ease-in-out infinite;
}
@keyframes selfFlipIn {
  0%, 17%   { opacity: 0; }
  28%, 90%  { opacity: 1; }
  96%, 100% { opacity: 0; }
}

/* Overlay clipped to the screen image's rounded edge — keeps the mask and
   HTML avatars from bleeding onto the dark phone bezel. All percentages
   inside this container are relative to the screen image, not the bezel. */
.mp-overlay {
  position: absolute;
  inset: 4px;
  border-radius: 30px;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}

/* In Now overlay: solid white mask permanently hides the screenshot's
   friend slots; HTML avatars pop into them one at a time. The mask stays
   on across both Out and In states so the row never reverts to the
   screenshot's original avatars. */
.ino-mask {
  position: absolute;
  left: 22%; right: 0;
  top: 67%; height: 13%;
  background: #ffffff;
  z-index: 4;
}

.ino-avatar {
  position: absolute;
  width: 14.4%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 11px/1 -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
  color: #0d1411;
  letter-spacing: -0.02em;
  z-index: 5;
  /* white inner gap + green outer ring — matches the real app */
  box-shadow:
    0 0 0 1.5px #ffffff,
    0 0 0 2.75px #5CB85C;
  top: 72.5%;
  translate: -50% -50%;
  opacity: 0;
  transform: scale(0.5);
}
.ino-a1 { left: 33%; background: linear-gradient(135deg, #f4a88b, #e89070); animation: inoPop1 9s ease-out infinite; }
.ino-a2 { left: 53%; background: linear-gradient(135deg, #f6c879, #e5a93d); animation: inoPop2 9s ease-out infinite; }
.ino-a3 { left: 73%; background: linear-gradient(135deg, #f4a88b, #e89070); animation: inoPop3 9s ease-out infinite; }
.ino-a4 { left: 93%; background: linear-gradient(135deg, #f0a086, #d97a5e); animation: inoPop4 9s ease-out infinite; }

@keyframes inoPop1 {
  0%, 33%   { opacity: 0; transform: scale(0.5); }
  39%, 92%  { opacity: 1; transform: scale(1); }
  98%, 100% { opacity: 0; transform: scale(0.5); }
}
@keyframes inoPop2 {
  0%, 44%   { opacity: 0; transform: scale(0.5); }
  50%, 92%  { opacity: 1; transform: scale(1); }
  98%, 100% { opacity: 0; transform: scale(0.5); }
}
@keyframes inoPop3 {
  0%, 56%   { opacity: 0; transform: scale(0.5); }
  62%, 92%  { opacity: 1; transform: scale(1); }
  98%, 100% { opacity: 0; transform: scale(0.5); }
}
@keyframes inoPop4 {
  0%, 67%   { opacity: 0; transform: scale(0.5); }
  73%, 92%  { opacity: 1; transform: scale(1); }
  98%, 100% { opacity: 0; transform: scale(0.5); }
}

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 48px; }
  .hero-scene { max-width: 480px; aspect-ratio: 1.1 / 1; }
  .mini-phone { width: 200px; }
  .ino-avatar { font-size: 9px; }
}
@media (max-width: 560px) {
  .hero-scene { max-width: 420px; }
  .mini-phone { width: 168px; }
  .ino-avatar { font-size: 8px; }
}

/* Reduced-motion fallback: freeze on the In end-state with all four avatars
   fully visible. The mask is always-on, so it needs no override. */
@media (prefers-reduced-motion: reduce) {
  .hero-scene-glow,
  .phone-self .mp-screen-img-in,
  .ino-avatar { animation: none !important; }

  .phone-self .mp-screen-img-in { opacity: 1; }
  .ino-avatar { opacity: 1; transform: scale(1); }
}

.hero-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  margin: 0 0 28px;
  max-width: 14ch;
  color: #fafaf7;
}
.hero-display-stack { line-height: 0.92; }

.hero-subhead {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.1rem, 1.4vw, 1.4rem);
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: #fafaf7;
  max-width: 42ch;
  margin: 0 0 20px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  transition: transform .2s ease, background .2s, border-color .2s, box-shadow .25s;
  cursor: pointer;
  border: 0;
}
.btn-pill.big { height: 60px; padding: 0 28px; font-size: 15.5px; }
.btn-pill.primary {
  background: #fafaf7;
  color: var(--ink);
  box-shadow:
    0 12px 30px rgba(143, 219, 184, 0.18),
    inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.btn-pill.primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 38px rgba(143, 219, 184, 0.26),
    inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.btn-pill.ghost {
  background: rgba(255, 255, 255, 0.04);
  color: #fafaf7;
  border: 1px solid var(--ink-line);
}
.btn-pill.ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
}
.btn-pill svg { transition: transform .2s; }
.btn-pill:hover svg { transform: translateX(2px); }

/* TICKER — plans you weren't told about */
.ticker {
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
  padding: 22px 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 16px;
}
.ticker-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-text-mid);
  text-transform: lowercase;
  letter-spacing: 0.02em;
  flex: 0 0 auto;
  padding-left: 4px;
}
.ticker-track-wrap {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.ticker-track {
  display: inline-flex;
  gap: 28px;
  white-space: nowrap;
  animation: tickerScroll 48s linear infinite;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink-text-on-dark);
  align-items: center;
}
.ticker-track:hover { animation-play-state: paused; }
.t-item b {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--mint);
  margin-right: 4px;
}
.hero-ticker {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: calc(100% - 2 * var(--pad-x));
  max-width: var(--content-max);
  margin: 0;
}
.t-sep {
  color: var(--ink-text-dim);
  font-family: var(--font-mono);
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.dot-live {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(143, 219, 184, 0.6);
  animation: liveDot 2s ease-out infinite;
  flex: 0 0 auto;
}
.dot-live.small { width: 5px; height: 5px; }
@keyframes liveDot {
  0% { box-shadow: 0 0 0 0 rgba(143, 219, 184, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(143, 219, 184, 0); }
  100% { box-shadow: 0 0 0 0 rgba(143, 219, 184, 0); }
}

/* scroll hint — sits at the very bottom, beneath the ticker */
.hero-scrollhint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-text-dim);
  z-index: 3;
}
.scroll-rail {
  width: 1px;
  height: 24px;
  background: var(--ink-line);
  position: relative;
  overflow: hidden;
}
.scroll-rail i {
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 12px;
  background: var(--mint);
  animation: scrollRail 2.4s ease-in-out infinite;
}
@keyframes scrollRail {
  0% { top: -12px; }
  100% { top: 36px; }
}

/* ==========================================================================
   ACTS — shared
   ========================================================================== */
.act {
  position: relative;
  padding: clamp(96px, 14vh, 180px) var(--pad-x);
  max-width: 100%;
}
.act-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 80px;
}
.act-grid.act-grid-solo {
  grid-template-columns: 1fr;
  max-width: 920px;
  margin-bottom: 64px;
}
.act-grid-solo .act-main { max-width: 100%; }
.act-grid-solo .act-title { max-width: 22ch; }
.act-grid-solo .act-lead { max-width: 56ch; }

/* centered solo variant — used by Act III and Act IV */
.act-main-center { text-align: center; margin-left: auto; margin-right: auto; }
.act-main-center .act-title,
.act-main-center .act-lead { margin-left: auto; margin-right: auto; }

.act-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.4vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--text);
  margin: 0 0 24px;
  max-width: 18ch;
}
.act-lead {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.3vw, 1.18rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0;
}
.act-lead-stack {
  font-size: clamp(1.15rem, 1.5vw, 1.45rem);
  line-height: 1.55;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.012em;
  max-width: 40ch;
}
.act-lead-stack .serif-it { color: var(--cta); }

/* ==========================================================================
   ACT I — THE ESSAY
   ========================================================================== */
.act-essay {
  background: var(--cream);
  padding-top: clamp(120px, 18vh, 220px);
  padding-bottom: clamp(60px, 10vh, 120px);
  position: relative;
}
.act-essay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 40% at 50% 0%, rgba(13, 20, 17, 0.04), transparent 70%);
  pointer-events: none;
}
.essay-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
  position: relative;
  padding-bottom: clamp(80px, 12vh, 140px);
}
.essay-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--text);
  margin: 0 0 56px;
}
.essay-body p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.18rem, 1.5vw, 1.35rem);
  line-height: 1.7;
  color: rgba(23, 31, 26, 0.82);
  margin: 0 0 28px;
  max-width: 60ch;
}
.essay-body p:last-child {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 1.7vw, 1.55rem);
  line-height: 1.5;
  color: var(--text);
  letter-spacing: -0.012em;
  border-top: 1px solid var(--line-on-cream);
  padding-top: 28px;
  margin-top: 12px;
}
.essay-body p em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--cta);
  letter-spacing: 0.005em;
}

/* ==========================================================================
   ACT I — Friday strip (data evidence)
   ========================================================================== */
.friday-strip {
  max-width: var(--content-max);
  margin: 0 auto;
  background: #fafaf7;
  border: 1px solid var(--line-on-cream-soft);
  border-radius: 28px;
  padding: 32px clamp(24px, 4vw, 48px) 28px;
  box-shadow: 0 30px 80px rgba(13, 20, 17, 0.06);
}
.strip-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--line-on-cream-soft);
  padding-bottom: 18px;
  margin-bottom: 28px;
}
.strip-day {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.025em;
  color: var(--text);
}
.strip-dim {
  color: var(--text-mid);
  font-weight: 500;
}
.strip-key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.key-dot {
  width: 10px; height: 10px;
  background: rgba(13, 20, 17, 0.18);
  border-radius: 3px;
}

.strip-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  height: 220px;
  gap: 0;
}
.strip-hour {
  border-left: 1px dashed rgba(13, 20, 17, 0.08);
  padding: 0 0 6px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mid);
  position: relative;
}
.strip-hour:first-child { border-left: 1px solid rgba(13, 20, 17, 0.18); }

.ghost-plan {
  position: absolute;
  top: calc(40px + var(--lane) * 56px);
  left: calc(var(--start) * 1%);
  width: calc((var(--end) - var(--start)) * 1%);
  height: 50px;
  background: rgba(13, 20, 17, 0.04);
  border: 1px dashed rgba(13, 20, 17, 0.18);
  border-radius: 12px;
  padding: 7px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  transition: background .3s, border-color .3s;
}
.ghost-plan:hover {
  background: rgba(143, 219, 184, 0.10);
  border-color: rgba(92, 184, 92, 0.4);
}
.gp-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gp-meta {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.strip-foot {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--line-on-cream-soft);
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
}
.strip-stat b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  margin-right: 4px;
  letter-spacing: -0.02em;
}
.strip-stat-em b { color: #c14a4a; }
.strip-sep {
  width: 4px; height: 4px;
  background: rgba(13, 20, 17, 0.2);
  border-radius: 50%;
}

/* ==========================================================================
   ACT II — THE SIGNAL (toggle)
   ========================================================================== */
.act-signal {
  background: #fafaf7;
  border-top: 1px solid var(--line-on-cream-soft);
}
.signal-stage {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 0 20px;
}
.signal-toggle {
  position: relative;
  display: inline-flex;
  width: clamp(280px, 44vw, 520px);
  height: clamp(80px, 12vw, 120px);
  background: #eceae3;
  border-radius: 999px;
  padding: 6px;
  cursor: pointer;
  user-select: none;
  box-shadow: inset 0 2px 8px rgba(13, 20, 17, 0.06);
  transition: background .4s ease, box-shadow .4s ease;
}
.signal-toggle.in {
  background: linear-gradient(135deg, #8FDBB8, #5CB85C);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.04), 0 24px 60px rgba(92, 184, 92, 0.32);
}
.signal-knob {
  position: absolute;
  top: 6px;
  left: 50%;            /* default (out): knob on right, over "i'm out" */
  width: calc(50% - 6px);
  height: calc(100% - 12px);
  background: #fafaf7;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(13, 20, 17, 0.14);
  transition: left .45s cubic-bezier(.45, 1.6, .45, 1);
}
.signal-toggle.in .signal-knob { left: 6px; }   /* in: knob on left, over "i'm in" */
.signal-label {
  flex: 1;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 30px);
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
  transition: color .35s, opacity .35s;
}
/* default (out): "i'm out" sits on the white knob (dark, active),
   "i'm in" sits on grey track (muted). */
.signal-in  { color: var(--text-muted); }
.signal-out { color: var(--text); }
/* in: "i'm in" sits on the white knob (dark, active),
   "i'm out" sits on the green track (white, less prominent). */
.signal-toggle.in .signal-in  { color: var(--text); }
.signal-toggle.in .signal-out { color: rgba(255, 255, 255, 0.95); }

.signal-caption {
  margin-top: 36px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.caption-mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--cta);
  text-transform: lowercase;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  background: var(--mint-soft);
  border-radius: 999px;
}

/* ==========================================================================
   ACT III — THE PLAN ANIMATION (3-phase auto-cycle)
   creation (0–3s) → voting (3–6s) → locked (6–9s) → repeat
   ========================================================================== */
.act-plan {
  background: #f3f1ea;
  position: relative;
  overflow: hidden;
}
.plan-skybox {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 40% at 20% 30%, rgba(143, 219, 184, 0.22), transparent 70%),
    radial-gradient(40% 30% at 80% 70%, rgba(92, 184, 92, 0.14), transparent 70%);
  pointer-events: none;
}
.act-plan > * { position: relative; z-index: 2; }

.plan-stage {
  max-width: 600px;
  margin: 16px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.plan-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.plan-phone {
  position: relative;
  width: min(340px, 80vw);
  aspect-ratio: 9 / 19.3;
  background: var(--ink);
  border-radius: 44px;
  padding: 7px;
  box-shadow:
    0 60px 120px rgba(13, 20, 17, 0.28),
    0 30px 60px rgba(13, 20, 17, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: transform .25s ease;
  user-select: none;
}
.plan-phone:hover { transform: translateY(-2px); }
.plan-phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 28px;
  background: #000;
  border-radius: 16px;
  z-index: 5;
}
.plan-phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #f5f5f7;
}
.plan-phone-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity .55s ease;
}
.plan-phone-screen img.active { opacity: 1; }

/* phase indicator + label (JS-driven) */
.plan-steps {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  text-transform: lowercase;
  letter-spacing: 0.04em;
}
.plan-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(13, 20, 17, 0.18);
  cursor: pointer;
  border: 0;
  padding: 0;
  transition: background .3s, transform .3s;
}
.plan-step-dot:hover { background: rgba(13, 20, 17, 0.32); }
.plan-step-dot.active { background: var(--cta); transform: scale(1.18); }

.plan-step-label {
  position: relative;
  height: 20px;
  width: 14ch;
  text-align: left;
}
.plan-step-label span {
  position: absolute;
  inset: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  letter-spacing: -0.005em;
  text-transform: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .4s ease, transform .4s ease;
}
.plan-step-label span.active { opacity: 1; transform: translateY(0); }

/* small "tap to advance" hint placed above the phone */
.plan-tap-hint {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-mid);
  letter-spacing: 0.04em;
  text-transform: lowercase;
  margin: 0;
  opacity: .7;
}

/* reduced-motion: skip transitions but keep the carousel functional */
@media (prefers-reduced-motion: reduce) {
  .plan-phone-screen img,
  .plan-step-dot,
  .plan-step-label span {
    transition-duration: 0s;
  }
}

/* ==========================================================================
   ACT IV — PLANS. NOT POSTS. (chat phone)
   ========================================================================== */
.act-screen { background: var(--cream); }
.phone-stage {
  position: relative;
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 20px 0 40px;
  isolation: isolate;
}
.phone-plinth {
  position: absolute;
  width: min(80%, 600px);
  height: 60px;
  background: radial-gradient(ellipse at center, rgba(13, 20, 17, 0.18) 0%, transparent 70%);
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(8px);
  z-index: -1;
}
.phone-frame {
  width: 320px;
  height: 660px;
  background: var(--ink);
  border-radius: 44px;
  padding: 8px;
  box-shadow:
    0 60px 120px rgba(13, 20, 17, 0.28),
    0 30px 60px rgba(13, 20, 17, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  position: relative;
}
.phone-frame::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 28px;
  background: #000;
  border-radius: 16px;
  z-index: 5;
}
.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 36px;
  display: block;
}

/* ==========================================================================
   ACT V — VALUES (3-up)
   ========================================================================== */
.act-values {
  background: var(--ink);
  color: var(--ink-text-on-dark);
  padding: clamp(96px, 14vh, 160px) var(--pad-x);
  position: relative;
  overflow: hidden;
}
.act-values::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 50% 0%, rgba(143, 219, 184, 0.10), transparent 70%);
  pointer-events: none;
}
.values-grid {
  position: relative;
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) {
  .values-grid { grid-template-columns: 1fr; }
}
.vcard {
  padding: 36px 32px;
  border: 1px solid var(--ink-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .25s, border-color .25s, transform .25s;
}
.vcard:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(143, 219, 184, 0.3);
  transform: translateY(-2px);
}
.v-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mint);
  letter-spacing: 0.06em;
  margin-bottom: 32px;
}
.v-h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: #fafaf7;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}
.v-p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-text-mid);
  margin: 0;
}

/* ==========================================================================
   CLOSER (single CTA — no redundant ghost)
   ========================================================================== */
.closer {
  position: relative;
  background: var(--ink);
  color: var(--ink-text-on-dark);
  padding: clamp(96px, 14vh, 180px) var(--pad-x) 0;
  overflow: hidden;
}
.closer-glow {
  position: absolute;
  width: 1100px;
  height: 1100px;
  border-radius: 50%;
  left: 50%;
  top: 60%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--mint-glow) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
  opacity: .55;
}
.closer-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.eyebrow-mono {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  padding: 8px 14px;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink-text-mid);
}
.closer-mono {
  background: var(--mint-soft);
  border-color: rgba(143, 219, 184, 0.3);
  color: var(--mint);
  margin-bottom: 28px;
}
.closer-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7.4vw, 6rem);
  line-height: 1;
  letter-spacing: -0.045em;
  color: #fafaf7;
  margin: 0 0 28px;
}
.closer-lead {
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.6;
  color: var(--ink-text-mid);
  margin: 0 0 40px;
}
.closer-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.closer-fineprint {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-text-dim);
  letter-spacing: 0.04em;
  margin: 0;
  text-transform: lowercase;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.foot {
  position: relative;
  max-width: var(--content-max);
  margin: 100px auto 0;
  padding: 28px 0 32px;
  border-top: 1px solid var(--ink-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-text-dim);
}
.foot img {
  height: 18px;
  filter: brightness(0) invert(1);
  opacity: .8;
}
.foot-r {
  display: flex;
  gap: 26px;
}
.foot-r a {
  color: var(--ink-text-dim);
  transition: color .2s;
}
.foot-r a:hover { color: var(--ink-text-on-dark); }

@media (max-width: 600px) {
  .foot { flex-direction: column; gap: 18px; }
  .foot-r { flex-wrap: wrap; justify-content: center; gap: 18px; }
  .ticker { grid-template-columns: 1fr; gap: 12px; }
}

/* ==========================================================================
   GLOBAL REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .hero-glow,
  .ticker-track,
  .dot-live,
  .scroll-rail i {
    animation: none;
  }
}
