/* The homepage (2026-09-27 overhaul): one idea per screen, the app's own orb
   as the opening, big type, nothing on screen that is not doing a job.
   Scoped to body.landing; the night tokens come from home.css. */

body.landing {
  --gold: #d6ad7c;
  --gold-soft: rgb(214 173 124 / 0.14);
  --dim: #8c8981;
  overflow-x: clip;
}
body.landing main section { padding-top: 0; }

/* ---- the orb: the app icon, alive ---- */
.orb { position: relative; width: min(380px, 70vw); aspect-ratio: 1; margin: 0 auto; color: rgb(237 235 230 / 0.34); }
.orb.small { width: 180px; margin-bottom: 36px; }
.orb-glow { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgb(214 173 124 / 0.30), rgb(214 173 124 / 0.08) 45%, transparent 70%); filter: blur(24px); animation: orb-breathe 6s ease-in-out infinite; }
.orb-orbit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: orb-turn 90s linear infinite; }
.orb-dot.w { fill: #f4f2ee; }
.orb-dot.g { fill: var(--gold); filter: drop-shadow(0 0 14px rgb(214 173 124 / 0.9)); }
.orb-ring { position: absolute; inset: 25%; border-radius: 50%; border: 2px solid var(--gold); box-shadow: 0 0 60px -6px rgb(214 173 124 / 0.55), inset 0 0 40px -10px rgb(214 173 124 / 0.4); }
.orb-core { position: absolute; inset: calc(25% + 2px); border-radius: 50%; display: grid; place-items: center; color: #faf9f6; background: radial-gradient(circle at 50% 35%, #262733, #101119 70%); }
.orb-core svg { width: 46%; height: 46%; }
@keyframes orb-turn { to { transform: rotate(360deg); } }
@keyframes orb-breathe { 0%, 100% { opacity: 0.75; transform: scale(0.97); } 50% { opacity: 1; transform: scale(1.04); } }

/* ---- the opening ---- */
.l-hero { min-height: calc(100svh - 64px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 20px 48px; }
.l-hero .orb { transform: scale(calc(1 - var(--p, 0) * 0.25)); opacity: calc(1 - var(--p, 0) * 0.9); will-change: transform; }
.l-hero h1 { margin: 28px 0 0; font: 700 clamp(56px, 9vw, 120px)/0.95 var(--display); letter-spacing: -0.045em; color: #faf9f6; }
.l-lede { margin: 18px 0 0; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -0.015em; color: var(--dim); }
.l-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 36px; }
.l-quiet { color: var(--dim); font-size: 14.5px; text-decoration: none; }
.l-quiet:hover { color: var(--text); }
.l-on { margin: 28px 0 0; font-size: 13.5px; color: #6c6962; letter-spacing: 0.01em; }

/* On load the opening rises in, one line after the other. */
.l-rise { animation: l-rise 0.9s var(--ease) both; }
.l-hero h1.l-rise { animation-delay: 0.15s; }
.l-hero .l-lede { animation-delay: 0.3s; }
.l-eyebrow { margin: 0 0 14px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: #c79a68; animation-delay: 0.05s; }
/* The promise under the hero: one quiet line, brass rule before it. The rule
   is inline, so on a phone it wraps with the first words instead of standing
   alone at the edge of a flex row. */
.l-promise { margin: 26px 0 0; font-size: 14.5px; letter-spacing: 0.01em; color: var(--dim); text-wrap: balance; animation-delay: 0.6s; }
.l-promise::before { content: ""; display: inline-block; vertical-align: middle; width: 18px; height: 1px; margin: 0 10px 0 0; background: #c79a68; }
@media (max-width: 480px) { .l-promise::before { display: none; } }
.l-hero .l-cta { animation-delay: 0.45s; }
.l-hero .l-on { animation-delay: 0.6s; }
@keyframes l-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---- chapters: one idea per screen ---- */
/* One rhythm: the same space above and below every chapter, so none sits
   cramped under the one before or floats in empty space. */
.l-ch { max-width: 1120px; margin: 0 auto; padding: clamp(72px, 11vh, 128px) 24px; text-align: center; }
.l-k { margin: 0 0 18px; font: 500 12.5px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.l-ch h2 { margin: 0 auto; max-width: 16em; font: 700 clamp(38px, 5.4vw, 68px)/1.02 var(--display); letter-spacing: -0.035em; color: #faf9f6; }
.l-copy p:not(.l-k), .l-sub { margin: 22px auto 0; max-width: 34em; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--dim); }
.l-copy.center { text-align: center; }
.l-link { display: inline-block; margin-top: 30px; color: var(--text); font-size: 15px; text-decoration: none; border-bottom: 1px solid rgb(214 173 124 / 0.5); padding-bottom: 2px; }
.l-link::after { content: " →"; color: var(--gold); }

/* Each chapter rises in as it arrives (landing.js adds .in). */
.l-ch > * { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.l-ch.in > * { opacity: 1; transform: none; }
.l-ch.in > :nth-child(2) { transition-delay: 0.08s; }
.l-ch.in > :nth-child(3) { transition-delay: 0.16s; }
.l-ch.in > :nth-child(4) { transition-delay: 0.24s; }
.l-ch.in > :nth-child(5) { transition-delay: 0.32s; }
.l-ch.in > :nth-child(6) { transition-delay: 0.4s; }

/* 1. It learns you: copy left, the live orb right. */
.l-learn { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; text-align: left; }
.l-learn h2 { margin: 0; }
.l-learn .l-copy p:not(.l-k) { margin-left: 0; }
@media (max-width: 900px) { .l-learn { grid-template-columns: 1fr; text-align: center; } .l-learn h2, .l-learn .l-copy p:not(.l-k) { margin-left: auto; margin-right: auto; } }

/* 2. The work: the demo, wide. */
.l-work .demo-tabs { margin-top: 44px; }
.l-work .demo-box { margin-top: 18px; text-align: left; }

/* 3. Faster every time: one picture. Both runs leave the same point for
   the same place; the first wanders there, the second is one straight line
   and arrives first (landing.js starts both when it comes into view). */
.way { max-width: 900px; margin: 40px auto 0; }
.way svg { display: block; width: 100%; height: auto; overflow: visible; }
.way path { stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.way-a { stroke: #4a4843; stroke-width: 2.5; }
.way-dead { stroke: #4a4843; stroke-width: 2.5; }
.way-b { stroke: var(--gold); stroke-width: 3.5; filter: drop-shadow(0 0 10px rgb(214 173 124 / 0.55)); }
.way-start { fill: #faf9f6; }
.way-end { fill: var(--gold); opacity: 0.35; transition: opacity 0.4s; }
.way-end-glow { fill: rgb(214 173 124 / 0.18); opacity: 0; transition: opacity 0.5s; }
.l-fast.in .way-a { animation: way-draw 3.2s cubic-bezier(0.45, 0, 0.55, 1) 0.2s forwards; }
.l-fast.in .way-dead { animation: way-draw 0.35s ease-out 1.05s forwards; }
.l-fast.in .way-b { animation: way-draw 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s forwards; }
.l-fast.in .way-end { opacity: 1; transition-delay: 0.95s; }
.l-fast.in .way-end-glow { opacity: 1; animation: way-pulse 2.4s ease-in-out 1s infinite; transition-delay: 0.95s; }
@keyframes way-draw { to { stroke-dashoffset: 0; } }
@keyframes way-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
.way-end-glow { transform-box: fill-box; transform-origin: center; }
.way figcaption { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px clamp(24px, 6vw, 72px); margin-top: 28px; font-size: 15px; color: var(--dim); }
.way-t { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.way-t i { width: 22px; height: 3px; border-radius: 3px; background: #4a4843; }
.way-t.b i { background: var(--gold); box-shadow: 0 0 10px rgb(214 173 124 / 0.6); }
.way-t b { font: 700 22px var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: #6c6962; }
.way-t.b b { color: #faf9f6; }
.l-fast .l-sub { margin-top: 26px; }
@media (prefers-reduced-motion: reduce) { .way path { stroke-dashoffset: 0; animation: none !important; } .way-end, .way-end-glow { opacity: 1; } }

/* 4. Safety: the lock closes; three plain promises. */
.l-safe .ch-lock { width: 64px; height: 64px; margin: 0 auto 26px; color: var(--gold); }
.l-safe .ch-lock svg { width: 100%; height: 100%; }
.l-safe .shackle { transform: translateY(-7px); transition: transform 0.7s var(--ease) 0.3s; }
.l-safe.in .shackle { transform: none; }
.promise { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; max-width: 980px; margin: 52px auto 0; padding: 0; border-radius: 20px; overflow: hidden; background: #1c1d25; border: 1px solid #1c1d25; text-align: left; }
.promise li { padding: 26px 26px 28px; background: #0c0d12; color: var(--dim); font-size: 15px; line-height: 1.55; }
.promise b { display: block; margin-bottom: 6px; color: #faf9f6; font-size: 17px; font-weight: 600; }
@media (max-width: 760px) { .promise { grid-template-columns: 1fr; } }

/* 5. The price. */
.l-price { padding-bottom: clamp(96px, 14vh, 160px); }
.l-amount { margin: 26px 0 0; font: 700 clamp(56px, 8vw, 96px)/1 var(--display); letter-spacing: -0.04em; color: #faf9f6; }
.l-amount small { font: 500 20px var(--sans); letter-spacing: 0; color: var(--dim); }
.l-price .l-sub { margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  .orb-orbit, .orb-glow, .l-rise { animation: none; }
  .l-ch > * { opacity: 1; transform: none; transition: none; }
  .l-hero .orb { transform: none; opacity: 1; }
}
body.landing .sitefoot.slim { margin-top: 0; }
/* One button on the first screen: the header's own appears once the opening
   has scrolled away (landing.js adds .past). */

/* 3b. Time back: one number, one climbing line (the app's Your Vassal chart). */
.tb { max-width: 860px; margin: 40px auto 0; padding: 30px 32px 22px; border: 1px solid #23242e; border-radius: 22px; background: linear-gradient(180deg, #13141c, #0e0f15); text-align: left; box-shadow: 0 50px 100px -60px rgb(199 154 104 / 0.35); }
.tb-h { display: flex; justify-content: space-between; align-items: baseline; }
.tb-k { font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.tb-n { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.03em; font-weight: 600; }
.tb-n span { font-variant-numeric: tabular-nums; }
.tb-plot { position: relative; margin-top: 22px; }
.tb-plot svg { display: block; width: 100%; height: clamp(140px, 22vw, 220px); overflow: visible; }
.tb-base { stroke: rgb(255 255 255 / 0.08); stroke-width: 1; vector-effect: non-scaling-stroke; }
.tb-line { fill: none; stroke: #C79A68; stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.tb-area { opacity: 0; transition: opacity 1.2s ease 0.6s; }
.tb-dot { position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: #C79A68; box-shadow: 0 0 0 5px rgb(199 154 104 / 0.18), 0 0 16px rgb(199 154 104 / 0.8); opacity: 0; transition: opacity 0.4s ease 1.9s; }
.tb-x { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; color: var(--dim); }
.l-time.in .tb-line { animation: way-draw 2s cubic-bezier(0.3, 0.6, 0.2, 1) 0.2s forwards; }
.l-time.in .tb-area, .l-time.in .tb-dot { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .tb-line { stroke-dashoffset: 0; } .tb-area, .tb-dot { opacity: 1; } }

