/* Locked In Protocol, site styles (B3 "Athletic").
   Shared by /, /b, /c and /404. Every color, font and radius is a token on :root. The three themes
   (dark, the default; light; blue light blocker) differ only in the token blocks below, keyed on
   <html data-theme="...">, which the inline script at the top of each page sets from localStorage
   `lip_theme` before first paint. The app shares the same key and attribute. Charts render at their
   final values without JS; scroll animations only replay them from zero once they enter the viewport. */

@font-face{ font-family:'Geist Fallback'; src:local('Arial'); ascent-override:95.94%; descent-override:28.16%; line-gap-override:0%; size-adjust:104.76%; }

:root{
  color-scheme:dark;
  /* surfaces */
  --bg:#0C0A09; --ink:#080706; --surface:#161311; --surface-2:#1D1917; --surface-3:#26211E; --app-bg:#0F0D0C;
  --nav-bg:rgba(12,10,9,.8);
  --border:rgba(255,240,230,.07); --border-2:rgba(255,240,230,.13); --border-3:rgba(255,240,230,.22);
  /* text */
  --text:#F6F3F1; --muted:#A39A94; --faint:#948B85; --dim:#6E6661; /* --dim is for display type (24px+) only */
  /* accent */
  --accent:#EF4B2F; --accent-hot:#FF5B3A; --accent-text:#FF6E52; --accent-soft:rgba(239,75,47,.14); --on-accent:#FFFFFF;
  --glow:rgba(239,75,47,.2); --glow-hot:rgba(255,91,58,.55); --tint-hi:#321611; --tint-lo:#1B1311;
  --ok:#3FB67A; --ok-soft:rgba(63,182,122,.14);
  /* day states (year view, strips, logs) */
  --st-locked:#EF4B2F; --st-partial:#7A2A1C; --st-missed:#352D29; --st-rest:rgba(255,240,230,.3); --st-future:rgba(255,240,230,.05);
  --track:rgba(255,240,230,.08);
  /* buttons */
  --btn-bg:#F6F3F1; --btn-bg-hover:#FFFFFF; --btn-fg:#0C0A09;
  /* details */
  --hairline:rgba(255,240,230,.022); --chip-bg:rgba(255,240,230,.06); --accent-border:rgba(239,75,47,.35);
  --shadow:rgba(0,0,0,.9); --pulse:rgba(239,75,47,.55);
  /* the mark (same geometry as the favicon: rounded square, inner square outline) */
  --mark-bg:var(--accent); --mark-fg:var(--on-accent);
  /* type */
  --sans:'Geist','Geist Fallback',system-ui,-apple-system,'Segoe UI',sans-serif;
  /* shape */
  --r-xs:4px; --r-s:8px; --r-sm:14px; --r-md:20px; --r-card:24px; --r-lg:28px; --r-xl:32px; --r-pill:999px;
  /* motion */
  --ease:cubic-bezier(.16,1,.3,1);
  /* layout */
  --max:1200px; --gutter:28px; --nav-h:72px;
  --edge:max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
@media(max-width:600px){ :root{ --gutter:16px; --nav-h:64px; } }

/* Light: warm off-white. The ember stays for graphics; text-sized ember is darkened for AA on white. */
:root[data-theme="light"]{
  color-scheme:light;
  --bg:#F7F4F0; --ink:#ECE7E1; --surface:#FFFFFF; --surface-2:#F6F2EE; --surface-3:#E9E3DD; --app-bg:#F1ECE7;
  --nav-bg:rgba(247,244,240,.82);
  --border:rgba(20,17,15,.08); --border-2:rgba(20,17,15,.14); --border-3:rgba(20,17,15,.24);
  --text:#14110F; --muted:#6B635E; --faint:#6F6660; --dim:#8F8680;
  --accent:#E8431F; --accent-hot:#FF5B3A; --accent-text:#C7361A; --accent-soft:rgba(232,67,31,.12); --on-accent:#FFFFFF;
  --glow:rgba(239,75,47,.16); --glow-hot:rgba(239,75,47,.35); --tint-hi:#FBE3DC; --tint-lo:#FDF1ED;
  --ok:#1F8F55; --ok-soft:rgba(31,143,85,.14);
  --st-locked:#E8431F; --st-partial:#F5A996; --st-missed:#DCD5CF; --st-rest:rgba(20,17,15,.28); --st-future:rgba(20,17,15,.05);
  --track:rgba(20,17,15,.09);
  --btn-bg:#14110F; --btn-bg-hover:#000000; --btn-fg:#FFFFFF;
  --hairline:rgba(20,17,15,.03); --chip-bg:rgba(20,17,15,.05); --accent-border:rgba(232,67,31,.4);
  --shadow:rgba(20,17,15,.2); --pulse:rgba(232,67,31,.45);
  --mark-bg:#EF4B2F; --mark-fg:#FFFFFF; /* the mark stays ember with a white outline, as the favicon */
}
/* Blue light blocker: the dark palette with the blue taken out, amber in place of ember, for night use. */
:root[data-theme="blue"]{
  color-scheme:dark;
  --bg:#1A1208; --ink:#140E05; --surface:#241A0E; --surface-2:#2E2212; --surface-3:#3A2C18; --app-bg:#1E1509;
  --nav-bg:rgba(26,18,8,.82);
  --border:rgba(243,227,195,.08); --border-2:rgba(243,227,195,.14); --border-3:rgba(243,227,195,.24);
  --text:#F3E3C3; --muted:#B59A6E; --faint:#AD9368; --dim:#86704C;
  --accent:#F0A13A; --accent-hot:#FFB24A; --accent-text:#F5B04F; --accent-soft:rgba(240,161,58,.14); --on-accent:#1A1208;
  --glow:rgba(240,161,58,.18); --glow-hot:rgba(255,178,74,.5); --tint-hi:#3A2810; --tint-lo:#24190C;
  --ok:#C9B037; --ok-soft:rgba(201,176,55,.14);
  --st-locked:#F0A13A; --st-partial:#94601C; --st-missed:#453521; --st-rest:rgba(243,227,195,.3); --st-future:rgba(243,227,195,.05);
  --track:rgba(243,227,195,.08);
  --btn-bg:#F3E3C3; --btn-bg-hover:#FBEFD6; --btn-fg:#1A1208;
  --hairline:rgba(243,227,195,.025); --chip-bg:rgba(243,227,195,.06); --accent-border:rgba(240,161,58,.4);
  --shadow:rgba(0,0,0,.9); --pulse:rgba(240,161,58,.55);
}

*{ box-sizing:border-box; }
html,body{ margin:0; }
html{ scroll-padding-top:calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion:no-preference){ html{ scroll-behavior:smooth; } }
body{ background:var(--bg); color:var(--text); font-family:var(--sans); font-size:16px; line-height:1.55;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; text-rendering:optimizeLegibility; overflow-x:hidden; }
@supports (overflow:clip){ body{ overflow-x:clip; } }
a{ color:inherit; text-decoration:none; }
b,strong{ font-weight:600; }
p{ margin:0; }
ul{ margin:0; padding:0; list-style:none; }
figure{ margin:0; }
.num,.cnt{ font-variant-numeric:tabular-nums; }
.cnt{ display:inline-block; text-align:right; }
.wrap{ max-width:var(--max); margin:0 auto; padding:0 var(--gutter); }
:focus-visible{ outline:2px solid var(--accent-text); outline-offset:3px; border-radius:4px; }
.sr{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip{ position:absolute; left:12px; top:-80px; z-index:50; min-height:44px; display:inline-flex; align-items:center; padding:0 18px;
  border-radius:var(--r-pill); background:var(--btn-bg); color:var(--btn-fg); font-weight:500; }
.skip:focus{ top:12px; }
.dim{ color:var(--dim); }

/* ============ NAV ============ */
.nav{ position:sticky; top:0; z-index:30; background:var(--nav-bg); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); border-bottom:1px solid var(--border); }
.nav-in{ display:flex; align-items:center; justify-content:space-between; height:var(--nav-h); gap:12px; }
.logo{ display:inline-flex; align-items:center; gap:10px; font-weight:600; font-size:17px; letter-spacing:-.02em; min-height:44px; white-space:nowrap; }
.mk{ width:26px; height:26px; border-radius:var(--r-s); background:var(--mark-bg); display:grid; place-items:center; flex:0 0 auto; }
.mk i{ width:10px; height:10px; border:2.5px solid var(--mark-fg); border-radius:3px; }
.nav-r{ display:flex; align-items:center; gap:4px; }
.nl{ font-size:14.5px; color:var(--muted); padding:0 14px; min-height:44px; display:inline-flex; align-items:center; border-radius:var(--r-pill); transition:color .3s var(--ease), background .3s var(--ease); }
.nl:hover{ color:var(--text); background:var(--surface); }
.nav-r .btn{ margin-left:6px; }
@media(max-width:960px){ .hide-t{ display:none; } }
@media(max-width:760px){ .nav-r .hide-m{ display:none; } }
@media(max-width:600px){
  .logo{ font-size:16px; gap:9px; }
  .nl{ padding:0 10px; }
  .nav-r .btn-sm{ padding:0 12px; }
}
@media(max-width:499px){ .logo .wm{ display:none; } .logo{ min-width:44px; } }

/* theme toggle: three segments, Dark / Light / Blue light */
.tt{ display:inline-flex; padding:2px; gap:2px; border:1px solid var(--border-2); border-radius:var(--r-pill); background:var(--surface); margin:0 6px 0 4px; }
.tt button{ height:38px; min-width:38px; padding:0 12px; border:0; border-radius:var(--r-pill); background:transparent; color:var(--muted); font:inherit; font-size:13.5px; font-weight:500;
  display:inline-flex; align-items:center; justify-content:center; gap:7px; cursor:pointer; transition:color .3s var(--ease), background .3s var(--ease); }
.tt button svg{ width:15px; height:15px; flex:0 0 auto; }
.tt button:hover{ color:var(--text); }
.tt button[aria-pressed="true"]{ background:var(--btn-bg); color:var(--btn-fg); }
@media(max-width:1100px){ .tt button span{ display:none; } .tt button{ padding:0; min-width:40px; } }
@media(max-width:600px){ .tt{ padding:0; border:0; box-shadow:inset 0 0 0 1px var(--border-2); margin:0 2px; } .tt button{ height:44px; min-width:44px; } }

/* ============ BUTTONS ============ */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:12px; height:56px; padding:0 28px; border-radius:var(--r-pill);
  font-weight:500; font-size:16px; white-space:nowrap; border:1px solid transparent; cursor:pointer; font-family:inherit;
  transition:transform .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease); }
.btn-primary{ background:var(--btn-bg); color:var(--btn-fg); padding-right:10px; }
.btn-primary:hover{ transform:translateY(-2px); background:var(--btn-bg-hover); }
.btn-primary .arr{ width:36px; height:36px; border-radius:50%; background:var(--accent); display:grid; place-items:center; color:var(--on-accent); transition:transform .4s var(--ease); }
.btn-primary:hover .arr{ transform:translateX(3px); }
.btn-primary .arr svg{ width:14px; height:14px; }
.btn-ghost{ color:var(--text); border-color:var(--border-2); }
.btn-ghost:hover{ background:var(--surface); border-color:var(--border-3); }
.btn-sm{ height:44px; padding:0 18px; font-size:14.5px; }
.btn-sm.btn-primary{ padding-right:18px; }
@media(max-width:600px){ .btn-sm{ padding:0 16px; } }

/* ============ HERO (split) ============ */
.hero{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.02fr); min-height:min(780px, calc(100svh - var(--nav-h))); overflow:hidden; }
.hero-l{ padding:72px 56px 72px var(--edge); display:flex; flex-direction:column; justify-content:center; }
.kicker{ display:flex; align-items:center; gap:12px; font-size:14px; color:var(--muted); font-weight:500; }
.kicker .bar{ width:32px; height:3px; border-radius:2px; background:var(--accent); flex:0 0 auto; }
h1{ font-weight:700; font-size:clamp(44px,5.6vw,84px); line-height:.94; letter-spacing:-.055em; margin:24px 0 28px; max-width:11ch; text-wrap:balance; }
h1.long{ font-size:clamp(40px,4.5vw,68px); line-height:.96; max-width:13ch; }
.lede{ font-size:clamp(17px,1.4vw,19px); color:var(--muted); max-width:44ch; margin:0 0 36px; }
.lede b{ color:var(--text); font-weight:500; }
.cta{ display:flex; gap:12px; flex-wrap:wrap; }
.note{ font-size:14px; color:var(--faint); margin-top:20px; display:flex; gap:10px; align-items:baseline; max-width:46ch; }
.note .sync{ width:8px; height:8px; border-radius:50%; background:var(--ok); box-shadow:0 0 0 4px var(--ok-soft); flex:0 0 auto; transform:translateY(-1px); }

.hero-r{ position:relative; background:radial-gradient(120% 70% at 85% 0%, var(--glow), transparent 60%), linear-gradient(180deg,var(--surface) 0%, var(--app-bg) 100%);
  border-left:1px solid var(--border); border-radius:var(--r-xl) 0 0 var(--r-xl); overflow:hidden;
  padding:44px var(--edge) 40px 48px; display:flex; flex-direction:column; justify-content:center; }
.hero-r::before{ content:''; position:absolute; inset:0; background:repeating-linear-gradient(90deg, var(--hairline) 0 1px, transparent 1px 64px); pointer-events:none; }
.sb{ position:relative; }
.sb-top{ display:flex; justify-content:space-between; align-items:center; gap:12px; }
.live{ display:inline-flex; align-items:center; gap:9px; font-size:14px; font-weight:500; }
.live i{ width:8px; height:8px; border-radius:50%; background:var(--accent); }
.chip{ font-size:13px; color:var(--muted); background:var(--chip-bg); border:1px solid var(--border); padding:6px 12px; border-radius:var(--r-pill); white-space:nowrap; }
.chip b{ color:var(--text); }
.mega{ font-size:clamp(150px,19vw,272px); font-weight:800; letter-spacing:-.075em; line-height:.78; margin:28px 0 0 -.04em; display:flex; align-items:flex-end; gap:14px; }
.mega small{ font-size:clamp(18px,1.7vw,24px); font-weight:500; letter-spacing:-.02em; color:var(--muted); line-height:1; padding-bottom:.35em; }
.chain{ display:grid; grid-template-columns:repeat(41,1fr); gap:3px; height:40px; margin-top:30px; align-items:end; }
.chain i{ display:block; height:100%; border-radius:2px; background:var(--track); transform-origin:bottom; }
.chain i.on{ background:var(--accent); }
.chain i.now{ background:var(--accent-hot); box-shadow:0 0 16px var(--glow-hot); }
.chain-cap{ display:flex; justify-content:space-between; font-size:13px; color:var(--faint); margin-top:10px; gap:12px; }
.chain-cap b{ color:var(--text); font-weight:500; }
.split{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin-top:34px; border-top:1px solid var(--border-2); }
.split > div{ padding:18px 16px 0 18px; border-left:1px solid var(--border); min-width:0; }
.split > div:first-child{ border-left:0; padding-left:0; }
.split .k{ font-size:13px; color:var(--muted); }
.split .v{ font-size:clamp(24px,2.4vw,36px); font-weight:700; letter-spacing:-.05em; line-height:1.05; margin-top:6px; white-space:nowrap; }
.split .v small{ font-size:.5em; font-weight:500; color:var(--muted); letter-spacing:-.01em; margin-left:3px; }
.split .f{ font-size:12.5px; color:var(--faint); margin-top:4px; }
.split .f b{ color:var(--accent-text); font-weight:500; }
.aug{ margin-top:30px; }
.aug-h{ display:flex; justify-content:space-between; font-size:13px; color:var(--faint); margin-bottom:10px; gap:12px; }
.aug-row{ display:grid; grid-template-columns:repeat(31,1fr); gap:3px; }
.aug-row i{ display:block; aspect-ratio:1/1.6; border-radius:3px; }
@media(max-width:1000px){
  .hero{ grid-template-columns:1fr; min-height:0; }
  .hero-l{ padding:48px var(--gutter) 40px; }
  .hero-r{ margin:0 var(--gutter); border-radius:var(--r-lg); border:1px solid var(--border); padding:28px 24px; }
}
@media(max-width:600px){
  .hero-l{ padding-top:36px; }
  h1{ margin:20px 0 22px; }
  .lede{ margin-bottom:28px; }
  .cta .btn{ width:100%; justify-content:space-between; padding-left:24px; }
  .cta .btn-ghost{ justify-content:center; }
  .hero-r{ padding:22px 18px 24px; border-radius:24px; }
  .mega{ margin-top:22px; gap:10px; }
  .chain{ gap:2px; height:32px; }
  .split > div{ padding:14px 8px 0 10px; }
  .split .v{ font-size:22px; }
  .split .f{ font-size:12px; }
  .aug-row{ gap:2px; }
  .aug-row i{ border-radius:2px; }
}

/* ============ DAY STATES (shared) ============ */
.s-l{ background:var(--st-locked); }
.s-p{ background:var(--st-partial); }
.s-m{ background:var(--st-missed); }
.s-r{ background:transparent; box-shadow:inset 0 0 0 1.5px var(--st-rest); }
.s-f{ background:var(--st-future); }
.s-t{ box-shadow:0 0 0 2px var(--surface), 0 0 0 3.5px var(--text); }
.s-r.s-t{ box-shadow:inset 0 0 0 1.5px var(--st-rest), 0 0 0 2px var(--surface), 0 0 0 3.5px var(--text); }

/* ============ TICKER ============ */
.ticker{ margin-top:72px; border-top:1px solid var(--border); border-bottom:1px solid var(--border); background:var(--ink); overflow:hidden; position:relative; }
.ticker::before,.ticker::after{ content:''; position:absolute; top:0; bottom:0; width:80px; z-index:1; pointer-events:none; }
.ticker::before{ left:0; background:linear-gradient(90deg,var(--ink),transparent); }
.ticker::after{ right:0; width:120px; background:linear-gradient(-90deg,var(--ink) 40%,transparent); }
.track{ display:flex; width:max-content; animation:marquee 52s linear infinite; }
.ticker:hover .track, .ticker.paused .track, .ticker:focus-within .track{ animation-play-state:paused; }
.t-set{ display:flex; align-items:center; }
.t-item{ display:flex; align-items:center; gap:12px; padding:22px 0 22px 30px; white-space:nowrap; }
.t-item b{ font-size:34px; font-weight:700; letter-spacing:-.05em; line-height:1; }
.t-item span{ font-size:14px; color:var(--muted); }
.t-sep{ width:8px; height:8px; background:var(--accent); transform:rotate(45deg); border-radius:1px; flex:0 0 auto; display:inline-block; }
.t-item .t-sep{ margin-left:18px; }
.t-btn{ position:absolute; right:12px; top:50%; transform:translateY(-50%); z-index:2; width:44px; height:44px; border-radius:50%;
  border:1px solid var(--border-2); background:var(--surface); color:var(--muted); display:grid; place-items:center; cursor:pointer; padding:0; }
.t-btn:hover{ color:var(--text); border-color:var(--border-3); }
.t-btn svg{ width:14px; height:14px; }
.t-btn .i-play{ display:none; }
.ticker.paused .t-btn .i-play{ display:block; }
.ticker.paused .t-btn .i-pause{ display:none; }
@media(max-width:600px){ .ticker{ margin-top:56px; } .t-item{ padding:16px 0 16px 22px; } .t-item b{ font-size:26px; } .t-item .t-sep{ margin-left:10px; } }

/* ============ BRIEF (four points) ============ */
.brief{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:32px; padding-top:72px; }
.bp{ border-top:2px solid var(--border-3); padding-top:20px; }
.bp .t-sep{ margin-bottom:18px; }
.bp b{ display:block; font-size:19px; font-weight:600; letter-spacing:-.025em; line-height:1.2; margin-bottom:8px; }
.bp p{ color:var(--muted); font-size:15px; }
@media(max-width:1000px){ .brief{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px 24px; } }
@media(max-width:600px){ .brief{ grid-template-columns:1fr; gap:20px; padding-top:48px; } .bp{ padding-top:14px; border-top-width:1px; } .bp .t-sep{ display:none; } .bp b{ font-size:18px; margin-bottom:4px; } }

/* ============ SECTIONS ============ */
section.s{ padding-top:128px; }
@media(max-width:600px){ section.s{ padding-top:88px; } }
.s-head{ display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:40px; align-items:end; margin-bottom:56px; }
@media(max-width:860px){ .s-head{ grid-template-columns:1fr; gap:18px; margin-bottom:36px; } }
.eyebrow{ font-size:14px; color:var(--accent-text); font-weight:500; margin-bottom:18px; display:flex; gap:10px; align-items:center; }
h2{ font-weight:700; font-size:clamp(36px,4.8vw,64px); line-height:.98; letter-spacing:-.05em; margin:0; max-width:15ch; text-wrap:balance; }
.s-head > p{ color:var(--muted); max-width:44ch; font-size:17px; }
.s-head .btn{ justify-self:start; }

/* ============ FEATURE ROWS ============ */
.rows{ border-top:1px solid var(--border-2); }
.row{ display:grid; grid-template-columns:96px minmax(0,1fr) minmax(0,1.15fr); gap:40px; padding:44px 0; border-bottom:1px solid var(--border-2); align-items:start; }
.row .idx{ font-size:15px; color:var(--faint); font-weight:500; padding-top:12px; border-top:2px solid var(--border-3); width:40px; transition:color .4s var(--ease), border-color .4s var(--ease); }
.row:hover .idx{ color:var(--accent-text); border-top-color:var(--accent); }
.row .k{ font-size:14px; color:var(--accent-text); font-weight:500; margin-bottom:10px; }
.row h3{ font-size:clamp(28px,3vw,40px); font-weight:700; letter-spacing:-.045em; line-height:1; margin:0 0 14px; }
.row .txt p{ color:var(--muted); font-size:16px; max-width:42ch; }
.vis{ background:var(--surface); border:1px solid var(--border); border-radius:var(--r-md); padding:24px; min-width:0; position:relative; transition:transform .5s var(--ease), border-color .5s var(--ease); }
.row:hover .vis{ transform:translateY(-3px); border-color:var(--border-2); }
.vis-cap{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px 12px; font-size:13px; color:var(--faint); margin-top:16px; }
.vis-cap b{ color:var(--text); font-weight:500; }
@media(max-width:860px){
  .row{ grid-template-columns:1fr; gap:16px; padding:32px 0; }
  .row .idx{ padding-top:10px; }
  .vis{ padding:18px; margin-top:6px; }
}

/* 01 schedule matrix */
.sm{ display:grid; grid-template-columns:minmax(0,1fr) repeat(7,28px); gap:8px 6px; align-items:center; }
.sm .wd{ font-size:12px; color:var(--faint); text-align:center; }
.sm .hn{ font-size:14.5px; line-height:1.2; min-width:0; }
.sm .hn small{ display:block; font-size:12px; color:var(--faint); margin-top:2px; }
.sm .pl{ width:28px; height:28px; border-radius:var(--r-s); display:block; }
.sm .pl.on{ background:var(--accent); }
.sm .pl.off{ box-shadow:inset 0 0 0 1.5px var(--st-rest); background:transparent; }
.sm .pl.off::after{ content:''; display:block; width:10px; height:1.5px; background:var(--st-rest); margin:13px auto 0; }
@media(max-width:600px){ .sm{ grid-template-columns:minmax(0,1fr) repeat(7,24px); gap:8px 4px; } .sm .pl{ width:24px; height:24px; border-radius:7px; } .sm .pl.off::after{ margin-top:11px; width:8px; } .sm .hn{ font-size:13.5px; } }

/* 02 streak table */
.sk{ display:grid; gap:16px; }
.sk-r{ display:grid; gap:8px; }
.sk-l{ display:flex; justify-content:space-between; align-items:baseline; gap:12px; font-size:14.5px; }
.sk-l b{ font-size:18px; font-weight:700; letter-spacing:-.04em; white-space:nowrap; }
.sk-l b small{ font-size:13px; color:var(--faint); font-weight:500; letter-spacing:0; }
.sk-r.lead .sk-l span{ color:var(--text); font-weight:500; }
.sk-t{ height:8px; border-radius:5px; background:var(--surface-3); position:relative; overflow:hidden; }
.sk-t i{ position:absolute; left:0; top:0; bottom:0; border-radius:5px; background:var(--accent); transform-origin:left; }
.sk-r:not(.lead) .sk-t i{ background:var(--st-partial); }
.sk-r .sk-t i.best{ box-shadow:0 0 0 1px var(--accent-hot); }

/* 03 revenue */
.rev-top{ display:flex; justify-content:space-between; align-items:baseline; gap:12px; margin-bottom:16px; }
.rev-top .big{ font-size:clamp(34px,4vw,48px); font-weight:700; letter-spacing:-.05em; line-height:1; }
.rev-top .of{ font-size:14px; color:var(--muted); white-space:nowrap; }
.pace-wrap{ padding-top:24px; }
.pace{ position:relative; height:14px; border-radius:8px; background:var(--surface-3); }
.pace .fill{ position:absolute; left:0; top:0; bottom:0; border-radius:8px; background:linear-gradient(90deg,var(--st-partial),var(--accent)); transform-origin:left; }
.pace .mark{ position:absolute; top:-6px; bottom:-6px; width:2px; margin-left:-1px; background:var(--text); border-radius:1px; }
.pace .mark span{ position:absolute; top:-24px; left:50%; transform:translateX(-50%); font-size:12px; color:var(--muted); white-space:nowrap; }
.rings{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:22px; padding-top:20px; border-top:1px solid var(--border); }
.rg{ display:flex; align-items:center; gap:14px; min-width:0; }
.rg svg{ width:76px; height:76px; flex:0 0 auto; }
.rg .t{ font-size:13px; color:var(--muted); line-height:1.35; min-width:0; }
.rg .t b{ display:block; color:var(--text); font-size:15px; font-weight:600; }
@media(max-width:600px){ .rg{ flex-direction:column; align-items:flex-start; gap:10px; } .rg svg{ width:64px; height:64px; } .rg .t{ font-size:13px; } }
.ring-bg{ fill:none; stroke:var(--surface-3); }
.ring-fg{ fill:none; stroke:var(--accent); stroke-linecap:round; }
.ring-fg.dim{ stroke:var(--st-partial); }
.ring-tx{ fill:var(--text); font-family:var(--sans); font-weight:700; letter-spacing:-1px; }
.ring-rest{ fill:none; stroke:var(--st-rest); stroke-dasharray:4 5; }

/* 04 training columns */
.cols{ display:flex; align-items:flex-end; gap:6px; height:140px; position:relative; margin-top:18px; }
.cols i{ flex:1; border-radius:6px 6px 3px 3px; background:var(--surface-3); transform-origin:bottom; }
.cols i.a{ background:var(--accent); }
.cols .goal{ position:absolute; left:0; right:0; border-top:1.5px dashed var(--border-3); pointer-events:none; }
.cols-h{ display:flex; justify-content:space-between; gap:12px; font-size:13px; color:var(--muted); }
.cols-h span{ display:inline-flex; align-items:center; gap:8px; }
.cols-h i{ width:18px; border-top:1.5px dashed var(--border-3); display:inline-block; }
.cols-x{ display:flex; justify-content:space-between; font-size:12px; color:var(--faint); margin-top:8px; }

/* 05 completion and mood line chart */
.lc-legend{ display:flex; flex-wrap:wrap; gap:6px 18px; font-size:13px; color:var(--muted); margin-bottom:14px; }
.lc-legend span{ display:inline-flex; align-items:center; gap:8px; }
.lc-legend i{ width:18px; height:0; border-top:2.5px solid var(--accent); display:inline-block; }
.lc-legend i.mood{ border-top:2px dashed var(--muted); }
.lc{ display:grid; grid-template-columns:36px minmax(0,1fr); gap:0 8px; }
.lc-y{ position:relative; height:180px; font-size:12px; color:var(--faint); }
.lc-y span{ position:absolute; right:0; transform:translateY(-50%); }
.lc-plot{ position:relative; height:180px; }
.lc-plot svg{ position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.lc-grid{ position:absolute; inset:0; z-index:2; pointer-events:none;
  background:linear-gradient(var(--border-2),var(--border-2)) 0 0/100% 1px no-repeat, linear-gradient(var(--border),var(--border)) 0 50%/100% 1px no-repeat, linear-gradient(var(--border-2),var(--border-2)) 0 100%/100% 1px no-repeat; }
.lc-c{ fill:none; stroke:var(--accent); stroke-width:2.5; stroke-linejoin:round; stroke-linecap:round; }
.lc-m{ fill:none; stroke:var(--muted); stroke-width:1.75; stroke-dasharray:5 5; stroke-linejoin:round; }
.lc-cur{ position:absolute; z-index:1; inset:-4px -8px -4px 0; background:var(--surface); transform-origin:right; transform:scaleX(0); }
.lc-dot{ position:absolute; z-index:3; width:12px; height:12px; margin:-6px 0 0 -6px; border-radius:50%; background:var(--text); box-shadow:0 0 0 3px var(--surface); }
.lc-x{ grid-column:2; display:flex; justify-content:space-between; font-size:12px; color:var(--faint); margin-top:8px; }

/* ============ YEAR VIEW: twelve months, one score each ============ */
.yr{ display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:12px; }
@media(max-width:1100px){ .yr{ grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(max-width:760px){ .yr{ grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:560px){ .yr{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; } }
.mo{ background:var(--surface); border:1px solid var(--border); border-radius:var(--r-md); padding:16px 16px 18px; min-width:0; transition:border-color .4s var(--ease); }
.mo:hover{ border-color:var(--border-2); }
.mo.now{ border-color:var(--accent-border); background:linear-gradient(170deg,var(--tint-lo) 0%,var(--surface) 60%); }
.mo-h{ display:flex; justify-content:space-between; align-items:baseline; gap:8px; font-size:14px; font-weight:600; letter-spacing:-.01em; }
.mo-h span{ font-size:12px; color:var(--faint); font-weight:400; }
.mo-s{ font-size:clamp(34px,3.4vw,44px); font-weight:800; letter-spacing:-.065em; line-height:.9; margin:10px 0 14px; white-space:nowrap; }
.mo-s small{ font-size:15px; font-weight:500; color:var(--muted); letter-spacing:-.01em; margin-left:2px; }
.mo-g{ display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px; }
.mo-g b{ font-size:10px; color:var(--faint); font-weight:500; text-align:center; line-height:1; padding-bottom:2px; }
.mo-g i{ display:block; aspect-ratio:1; border-radius:var(--r-xs); }
@media(max-width:560px){ .mo{ padding:13px 12px 14px; border-radius:18px; } .mo-g{ gap:3px; } .mo-g i{ border-radius:3px; } .mo-s{ font-size:34px; margin:8px 0 12px; } }
.yr-foot{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)) auto; gap:12px 20px; margin-top:24px; padding:22px 24px; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-md); align-items:end; }
.yr-foot > div{ min-width:0; }
.yr-foot em{ display:block; width:18px; height:18px; border-radius:5px; margin-bottom:12px; }
.yr-foot b{ display:block; font-size:30px; font-weight:700; letter-spacing:-.05em; line-height:1; }
.yr-foot > div > span{ display:block; font-size:13px; color:var(--muted); margin-top:6px; }
.yr-foot .keys{ display:grid; gap:8px; font-size:13px; color:var(--muted); justify-items:start; }
.yr-foot .keys span{ display:inline-flex; align-items:center; gap:8px; margin:0; }
.yr-foot .keys i{ width:14px; height:14px; border-radius:4px; display:inline-block; }
@media(max-width:860px){ .yr-foot{ grid-template-columns:repeat(2,minmax(0,1fr)); padding:18px; } .yr-foot .keys{ grid-column:1 / -1; grid-auto-flow:column; justify-content:start; gap:18px; } }
@media(max-width:560px){ .yr-foot{ margin-top:8px; gap:16px 12px; } .yr-foot b{ font-size:26px; } }

/* ============ APP VIEW (inside the protocol) ============ */
.app{ background:var(--app-bg); border:1px solid var(--border); border-radius:var(--r-xl); padding:28px; box-shadow:0 60px 120px -60px var(--shadow); }
@media(max-width:600px){ .app{ padding:10px; border-radius:26px; } }
.app-top{ display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:24px; flex-wrap:wrap; }
.app-top .hi{ font-size:14px; color:var(--muted); }
.app-top .ti{ font-size:34px; font-weight:700; letter-spacing:-.045em; line-height:1.05; }
.tabs{ display:flex; gap:4px; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-pill); padding:4px; }
.tabs span{ min-height:40px; display:inline-flex; align-items:center; padding:0 18px; border-radius:var(--r-pill); font-size:14.5px; color:var(--muted); white-space:nowrap; }
.tabs span.on{ background:var(--btn-bg); color:var(--btn-fg); font-weight:500; }
@media(max-width:760px){ .app-top{ margin-bottom:14px; padding:8px 8px 0; } .app-top .ti{ font-size:28px; } .tabs{ display:none; } }
.card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--r-card); padding:24px; min-width:0; }
@media(max-width:600px){ .card{ padding:16px 14px; border-radius:20px; } }
.card-h{ display:flex; justify-content:space-between; gap:12px; align-items:baseline; margin-bottom:18px; flex-wrap:wrap; }
.card-h b{ font-size:18px; font-weight:600; letter-spacing:-.02em; }
.card-h span{ font-size:13px; color:var(--faint); }
.app-grid{ display:grid; grid-template-columns:360px minmax(0,1fr); gap:16px; margin-top:16px; }
.app-col{ display:grid; gap:16px; align-content:start; min-width:0; }
@media(max-width:1000px){ .app-grid{ grid-template-columns:1fr; } }
@media(max-width:600px){ .app-grid,.app-col{ gap:8px; } .app-grid{ margin-top:8px; } }

/* last 7 days */
.l7{ display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:10px; }
.l7 > div{ text-align:center; padding:14px 6px 16px; border-radius:var(--r-sm); background:var(--surface-2); border:1px solid transparent; min-width:0; }
.l7 > div.today{ border-color:var(--border-3); background:linear-gradient(180deg,var(--tint-hi) 0%,var(--surface-2) 70%); }
.l7 .wd{ font-size:12.5px; color:var(--muted); }
.l7 .dt{ font-size:22px; font-weight:700; letter-spacing:-.04em; line-height:1.1; }
.l7 svg{ width:72px; height:72px; margin:10px auto 8px; display:block; }
.l7 .of{ font-size:13px; color:var(--muted); }
.l7 .full{ display:block; font-size:11.5px; color:var(--accent-text); font-weight:500; margin-top:2px; min-height:1.4em; }
.l7 .md{ margin-top:10px; font-size:11.5px; color:var(--faint); }
.l7 .mm{ display:grid; grid-template-columns:repeat(10,1fr); gap:2px; margin:6px auto 0; max-width:80px; }
.l7 .mm i{ height:6px; border-radius:1px; background:var(--surface-3); }
.l7 .mm i.on{ background:var(--st-partial); }
@media(max-width:860px){ .l7{ gap:6px; } .l7 svg{ width:54px; height:54px; } .l7 .md,.l7 .mm{ display:none; } }
@media(max-width:600px){
  .l7{ gap:4px; }
  .l7 > div{ padding:10px 2px 10px; border-radius:12px; }
  .l7 .wd{ font-size:11px; } .l7 .dt{ font-size:16px; }
  .l7 svg{ width:36px; height:36px; margin:8px auto 6px; }
  .l7 .ring-tx{ display:none; }
  .l7 .of{ font-size:11px; }
  .l7 .full{ display:none; }
}
.l7 .pc{ display:none; font-size:12px; font-weight:600; }
@media(max-width:600px){ .l7 .pc{ display:block; } }

/* today's habits */
.today-top{ display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; }
.today-top .big{ font-size:56px; font-weight:800; letter-spacing:-.065em; line-height:.9; }
.today-top .big small{ font-size:18px; color:var(--muted); font-weight:500; letter-spacing:-.01em; margin-left:6px; }
.today-top .sub{ font-size:13.5px; color:var(--muted); margin-top:10px; }
.today-top svg{ width:84px; height:84px; flex:0 0 auto; }
.habits{ display:grid; gap:8px; }
.habit{ display:flex; align-items:center; gap:14px; min-height:58px; padding:8px 14px; border-radius:var(--r-sm); background:var(--surface-2); font-size:15px; }
.habit .ck{ width:26px; height:26px; border-radius:var(--r-s); border:1.5px solid var(--border-3); flex:0 0 auto; display:grid; place-items:center; }
.habit.done .ck{ background:var(--accent); border-color:var(--accent); }
.habit.done .ck::after{ content:''; width:6px; height:11px; border:solid var(--on-accent); border-width:0 2px 2px 0; transform:translateY(-1px) rotate(45deg); }
.habit .nm{ min-width:0; line-height:1.25; }
.habit .nm small{ display:block; font-size:12px; color:var(--faint); margin-top:3px; }
.habit .st{ margin-left:auto; text-align:right; font-size:18px; font-weight:700; letter-spacing:-.04em; line-height:1; white-space:nowrap; }
.habit .st small{ display:block; font-size:11.5px; color:var(--faint); font-weight:400; letter-spacing:0; margin-top:4px; }
.habit:not(.done) .st{ color:var(--muted); }
/* Interactive example (demo.js): the habit rows and logged days become buttons that look like the picture. */
button.habit{ width:100%; border:0; margin:0; font:inherit; color:inherit; text-align:left; cursor:pointer; -webkit-tap-highlight-color:transparent; }
button.habit:hover{ background:var(--surface-3); }
.lg button{ width:100%; min-width:0; border:0; margin:0; padding:0; font:inherit; color:inherit; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.lg button:hover{ box-shadow:0 0 0 1.5px var(--muted); }
.lg button.tc:hover{ box-shadow:0 0 0 1.5px var(--text); }
.demo .ring-fg{ transition:stroke-dashoffset .6s var(--ease); }
.demo .ph-t i,.demo .sk-t,.demo .sk-t i{ transition:width .6s var(--ease); }
@media(max-width:600px){ .habit{ gap:12px; padding:8px 12px; font-size:14.5px; } .today-top .big{ font-size:48px; } .today-top svg{ width:72px; height:72px; } }

/* month log grid */
.lg{ display:grid; grid-template-columns:minmax(96px,150px) repeat(var(--cols,31),minmax(0,1fr)) 40px; gap:4px 3px; align-items:center; }
.lg .hd{ font-size:10.5px; color:var(--faint); text-align:center; line-height:1.15; }
.lg .hd.t{ color:var(--accent-text); font-weight:600; }
.lg .hn{ font-size:13.5px; line-height:1.2; padding-right:8px; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lg .pc{ font-size:13px; font-weight:600; text-align:right; }
.lg .pc.h{ font-size:10.5px; color:var(--faint); font-weight:400; }
.lg i,.lg button{ display:block; aspect-ratio:1; border-radius:3px; }
.lg i.x,.lg button.x{ background:var(--st-missed); }
.lg i.n{ background:transparent; box-shadow:inset 0 0 0 1px var(--st-rest); opacity:.6; }
.lg i.tc,.lg button.tc{ box-shadow:0 0 0 1.5px var(--text); }
.lg-cap{ display:flex; flex-wrap:wrap; gap:6px 16px; font-size:12.5px; color:var(--muted); margin-top:16px; }
.lg-cap span{ display:inline-flex; align-items:center; gap:7px; }
.lg-cap i{ width:12px; height:12px; border-radius:3px; display:inline-block; }
@media(max-width:600px){
  .lg{ grid-template-columns:repeat(14,minmax(0,1fr)) 30px; gap:4px 3px; }
  .lg .old,.lg .fut,.lg .h0{ display:none; }
  .lg .hn{ grid-column:1 / -1; font-size:13px; padding:6px 0 0; }
  .lg .hd{ font-size:10px; }
}

/* per habit, year behind */
.ph{ display:grid; gap:14px; }
.ph-r{ display:grid; grid-template-columns:minmax(0,150px) minmax(0,1fr) 44px; gap:12px; align-items:center; font-size:14px; }
.ph-r small{ display:block; font-size:12px; color:var(--faint); }
.ph-t{ height:12px; border-radius:6px; background:var(--surface-3); overflow:hidden; }
.ph-t i{ display:block; height:100%; border-radius:6px; background:var(--accent); transform-origin:left; }
.ph-r b{ text-align:right; font-weight:700; letter-spacing:-.03em; }
@media(max-width:600px){ .ph-r{ grid-template-columns:minmax(0,118px) minmax(0,1fr) 40px; gap:10px; font-size:13.5px; } }

/* ============ HOW IT RUNS ============ */
.steps{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.step{ background:var(--surface); border:1px solid var(--border); border-radius:var(--r-md); padding:28px; }
.step .n{ font-size:64px; font-weight:800; letter-spacing:-.07em; line-height:.8; color:var(--accent); }
.step b{ display:block; font-size:22px; letter-spacing:-.03em; margin:28px 0 10px; }
.step p{ color:var(--muted); }
@media(max-width:860px){ .steps{ grid-template-columns:1fr; gap:8px; } .step{ padding:22px; display:grid; grid-template-columns:56px minmax(0,1fr); gap:0 12px; } .step .n{ font-size:48px; grid-row:span 2; } .step b{ margin:2px 0 6px; font-size:20px; } }

/* ============ RULES ============ */
.rules{ display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:16px; }
.rules li{ grid-column:span 2; }
/* a short last row stretches to fill the width, so no empty slot */
.rules li:nth-child(3n+1):nth-last-child(2), .rules li:nth-child(3n+2):last-child{ grid-column:span 3; }
.rules li:nth-child(3n+1):last-child{ grid-column:1 / -1; }
.rules li{ background:var(--surface); border:1px solid var(--border); border-radius:var(--r-md); padding:24px; color:var(--muted); }
.rules li::before{ content:''; display:block; width:10px; height:10px; border-radius:3px; background:var(--accent); margin-bottom:18px; }
.rules b{ display:block; color:var(--text); font-size:18px; letter-spacing:-.02em; margin-bottom:6px; }
@media(max-width:1000px){ .rules{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rules li, .rules li:nth-child(3n+1):nth-last-child(2), .rules li:nth-child(3n+2):last-child, .rules li:nth-child(3n+1):last-child{ grid-column:auto; }
  .rules li:nth-child(odd):last-child{ grid-column:1 / -1; } }
@media(max-width:600px){ .rules{ grid-template-columns:1fr; gap:8px; } .rules li, .rules li:nth-child(odd):last-child{ grid-column:auto; } .rules li{ padding:20px; } .rules li::before{ margin-bottom:14px; } }

/* ============ FAQ ============ */
.faq-w{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.6fr); gap:40px; align-items:start; }
.faq-w .s-head{ display:block; margin:0; position:sticky; top:calc(var(--nav-h) + 32px); }
@media(max-width:860px){ .faq-w{ grid-template-columns:1fr; gap:28px; } .faq-w .s-head{ position:static; } }
.faq{ border-top:1px solid var(--border-2); }
.faq details{ border-bottom:1px solid var(--border-2); }
.faq summary{ cursor:pointer; list-style:none; min-height:72px; padding:18px 0; display:flex; justify-content:space-between; align-items:center; gap:16px;
  font-size:clamp(18px,1.6vw,21px); font-weight:600; letter-spacing:-.025em; line-height:1.25; }
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{ content:''; flex:0 0 auto; width:36px; height:36px; border-radius:50%; border:1px solid var(--border-2);
  background:linear-gradient(var(--text),var(--text)) center/12px 1.5px no-repeat, linear-gradient(var(--text),var(--text)) center/1.5px 12px no-repeat;
  transition:transform .4s var(--ease), background-color .4s var(--ease); }
.faq details[open] summary::after{ transform:rotate(45deg); background-color:var(--surface-2); }
.faq summary:hover::after{ border-color:var(--border-3); }
.faq details p{ color:var(--muted); padding:0 52px 24px 0; max-width:64ch; }
@media(max-width:600px){ .faq summary{ min-height:64px; padding:14px 0; } .faq details p{ padding-right:0; } }

/* ============ GUIDES ============ */
.guides{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.guide{ display:flex; flex-direction:column; gap:10px; min-height:44px; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-md); padding:28px; transition:transform .5s var(--ease), border-color .5s var(--ease); }
.guide:hover{ transform:translateY(-3px); border-color:var(--border-2); }
.guide b{ font-size:22px; letter-spacing:-.03em; line-height:1.15; }
.guide p{ color:var(--muted); }
.guide .go{ margin-top:auto; padding-top:14px; font-size:14px; color:var(--accent-text); font-weight:500; display:inline-flex; gap:8px; align-items:center; }
.guide .go svg{ width:14px; height:14px; transition:transform .4s var(--ease); }
.guide:hover .go svg{ transform:translateX(3px); }
@media(max-width:760px){ .guides{ grid-template-columns:1fr; gap:8px; } .guide{ padding:22px; } }

/* ============ CLOSING BAND ============ */
.close{ margin-top:128px; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:32px; align-items:end; padding:56px; border-radius:var(--r-xl);
  background:radial-gradient(90% 140% at 100% 100%, var(--glow), transparent 60%), var(--surface); border:1px solid var(--border); overflow:hidden; }
.close .final-h{ font-weight:700; font-size:clamp(44px,7vw,104px); line-height:.9; letter-spacing:-.05em; max-width:14ch; margin:0; text-wrap:balance; }
.close p:not(.final-h){ color:var(--muted); margin:18px 0 0; max-width:48ch; }
@media(max-width:860px){ .close{ grid-template-columns:1fr; padding:32px 22px; margin-top:96px; border-radius:var(--r-lg); } .close .btn{ width:100%; justify-content:space-between; padding-left:24px; } }

/* ============ FOOTER ============ */
.foot{ display:flex; justify-content:space-between; align-items:center; gap:16px 24px; flex-wrap:wrap; margin-top:96px; padding-top:28px; padding-bottom:48px; color:var(--faint); font-size:14px;
  background:linear-gradient(var(--border),var(--border)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.foot .who{ display:flex; align-items:center; gap:12px; }
.foot .who b{ color:var(--text); font-weight:600; letter-spacing:-.02em; }
.foot .links{ display:flex; gap:4px; flex-wrap:wrap; margin-right:-14px; }
.foot .links a{ min-height:44px; display:inline-flex; align-items:center; padding:0 14px; border-radius:var(--r-pill); color:var(--muted); transition:color .3s var(--ease), background .3s var(--ease); }
.foot .links a:hover{ color:var(--text); background:var(--surface); }
@media(max-width:600px){ .foot{ margin-top:72px; } .foot .links{ margin-left:-14px; margin-right:0; } }

/* ============ 404 ============ */
.nf{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.9fr); gap:48px; align-items:center; padding-top:88px; }
.nf .panel{ background:radial-gradient(120% 70% at 85% 0%, var(--glow), transparent 60%), var(--surface); border:1px solid var(--border); border-radius:var(--r-xl); padding:36px; }
.nf .mega{ margin-top:28px; font-size:clamp(120px,14vw,210px); }
@media(max-width:860px){ .nf{ grid-template-columns:1fr; gap:32px; padding-top:48px; } .nf .panel{ padding:24px 20px; border-radius:var(--r-lg); } }

/* ============ MOTION ============
   Default state is final. Load animations (hero) run only when JS set html.js; scroll animations run only on
   elements the script marked .play. Reduced motion turns everything off. */
@keyframes rise{ from{ opacity:0; transform:translateY(20px); } }
@keyframes fromr{ from{ opacity:0; transform:translateX(40px); } }
@keyframes pop{ from{ opacity:0; transform:scale(.4); } }
@keyframes growx{ from{ transform:scaleX(0); } }
@keyframes growy{ from{ transform:scaleY(0); } }
@keyframes ring{ from{ stroke-dashoffset:289; } }
@keyframes unveil{ from{ transform:scaleX(1); } to{ transform:scaleX(0); } }
@keyframes fade{ from{ opacity:0; } }
@keyframes marquee{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
@keyframes pulse{ 0%{ box-shadow:0 0 0 0 var(--pulse); } 70%{ box-shadow:0 0 0 10px transparent; } 100%{ box-shadow:0 0 0 0 transparent; } }

.js .rise{ animation:rise 1.1s var(--ease) both; }
.js .d1{ animation-delay:.08s; } .js .d2{ animation-delay:.18s; } .js .d3{ animation-delay:.3s; } .js .d4{ animation-delay:.42s; }
.js .from-r{ animation:fromr 1.2s var(--ease) both .15s; }
.js .hero .chain i.on{ animation:growy .7s var(--ease) both; animation-delay:calc(var(--i)*22ms + .35s); }
.js .hero .aug-row i{ animation:pop .6s var(--ease) both; animation-delay:calc(var(--i)*18ms + .6s); }
.live i{ animation:pulse 2.4s var(--ease) infinite; }

.play .a-pop{ animation:pop .55s var(--ease) both; animation-delay:calc(var(--d,0ms) + var(--i,0) * var(--step,30ms)); }
.play .a-x{ animation:growx 1.2s var(--ease) both; animation-delay:calc(var(--d,0ms) + var(--i,0) * var(--step,80ms)); }
.play .a-y{ animation:growy .9s var(--ease) both; animation-delay:calc(var(--d,0ms) + var(--i,0) * var(--step,50ms)); }
.play .a-ring{ animation:ring 1.5s var(--ease) both; animation-delay:calc(var(--d,0ms) + var(--i,0) * var(--step,90ms)); }
.play .a-fade{ animation:fade .6s var(--ease) both; animation-delay:calc(var(--d,0ms) + var(--i,0) * var(--step,60ms)); }
.play .lc-cur{ animation:unveil 1.8s cubic-bezier(.45,.05,.25,1) both; animation-delay:var(--d,0ms); }
.play .lc-dot{ animation:pop .5s var(--ease) both; animation-delay:calc(var(--d,0ms) + 1.6s); }
.a-x,.pace .fill{ transform-origin:left; }
.a-y{ transform-origin:bottom; }
.mo-g{ --step:14ms; } .sm{ --step:22ms; } .lg{ --step:16ms; } .chain{ --step:22ms; } .cols{ --step:60ms; } .l7{ --step:90ms; } .yr-foot{ --step:90ms; }

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{ animation:none !important; transition:none !important; }
  .ticker::before,.ticker::after,.t-btn,.t-set[aria-hidden]{ display:none; }
  .track{ width:auto; flex-wrap:wrap; justify-content:center; padding:4px 16px; }
  .t-set{ flex-wrap:wrap; justify-content:center; }
  .t-item{ padding:12px 14px; white-space:normal; }
}
