/* StokeOnStocks website: one small design system (2026-09-28 brand). Paper with a faint grain, near-black ink,
   the logo's amber and teal used sparingly, one black stage for the living mark. Space Grotesk for display, DM Sans
   for text. Fonts are self-hosted (no third-party requests). */
@font-face { font-family: "Space Grotesk"; src: url(fonts/space-grotesk-latin.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(fonts/dm-sans-latin.woff2) format("woff2"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(fonts/dm-sans-latin-ext.woff2) format("woff2"); font-weight: 100 1000; font-display: swap; unicode-range: U+0100-024F, U+20A0-20CF; }
:root {
  color-scheme: light;
  --bg: #f6f3ec; --bg-soft: #efeadf; --ink: #0b1220; --ink-soft: #3a4a5c; --mute: #6b7686; --line: #dcd5c6;
  --accent: #0e7169; --accent-deep: #0b5a54; --accent-bg: rgba(14, 113, 105, .09); --on: #d97706; --on-lt: #f59e0b; --teal-lt: #14b8a6;
  --night: #0b0f17; --night-2: #141a24; --night-line: #222b38; --night-ink: #e5e7eb; --night-mute: #94a3b8;
  --card: #fffdf8; --shadow: 0 1px 0 rgba(11, 18, 32, .03), 0 12px 30px -18px rgba(11, 18, 32, .18);
  --radius: 18px; --max: 1160px;
  --display: "Space Grotesk", "DM Sans", system-ui, sans-serif; /* ₹ comes from DM Sans latin-ext */ --display-wght: 600; --display-track: -.03em;
  --text: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg) var(--grain); color: var(--ink); font: 400 17px/1.6 var(--text); }
img, svg { max-width: 100%; }
a { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }
.s-wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* header */
.s-top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.s-top .s-wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.s-brand, a.s-brand { display: inline-flex; align-items: center; gap: 9px; font: 700 21px/1 var(--text); letter-spacing: -.01em; color: var(--ink) !important; text-decoration: none; white-space: nowrap; }
.s-brand .sos-icon { flex: none; width: 30px; height: 30px; }
/* the wordmark, always Stoke . ON . stocks: paper, dark (night bands) and signal (the hero moment) */
.s-brand .on, .wm .on { color: var(--on); } .s-brand .stocks, .wm .stocks { color: var(--ink-soft); }
.wm { font: 700 1em/1 var(--text); letter-spacing: -.01em; white-space: nowrap; }
.wm--dark .stoke { color: #f8fafc; } .wm--dark .on { color: var(--on); } .wm--dark .stocks { color: var(--night-mute); font-weight: 500; }
.wm--signal .stoke { color: #f8fafc; } .wm--signal .on { color: var(--on-lt); } .wm--signal .stocks { color: var(--teal-lt); }
.s-nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.s-nav a { color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 500; }
.s-nav a:hover, .s-nav a[aria-current="page"] { color: var(--ink); }
.s-nav .s-btn { color: var(--bg); }
.s-menu { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; color: var(--ink); font: inherit; font-size: 15px; }
@media (max-width: 860px) {
  .s-menu { display: inline-block; }
  .s-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .s-nav.is-open { display: flex; }
  .s-nav a { padding: 10px 0; font-size: 16px; }
  .s-nav .s-btn { text-align: center; margin-top: 6px; }
}

/* buttons */
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; font: 600 15px/1 var(--text); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.s-btn--primary { background: var(--ink); color: var(--bg) !important; }
.s-btn--primary:hover { background: #000; }
.s-btn--ghost { background: transparent; color: var(--ink) !important; border-color: var(--line); }
.s-btn--ghost:hover { border-color: var(--ink); }
.s-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* sections */
.s-section { padding: 88px 0; }
.s-section--soft { background: var(--bg-soft); }
.s-section--tight { padding: 56px 0; }
.s-eyebrow { font: 600 13px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin: 0 0 14px; }
h1, h2, h3 { font-family: var(--display); font-weight: var(--display-wght); letter-spacing: var(--display-track); color: var(--ink); margin: 0; }
h1 { font-size: clamp(40px, 6.2vw, 74px); line-height: 1.02; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.015em; }
.s-lead { font-size: 19px; line-height: 1.55; color: var(--ink-soft); margin: 18px 0 0; max-width: 640px; }
.s-head { max-width: 720px; margin: 0 0 44px; }
.s-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.s-head--center .s-lead { margin-left: auto; margin-right: auto; }

/* hero */
.s-hero { padding: 96px 0 72px; }
.s-hero .s-lead { font-size: 20px; }
.s-hero .s-actions { margin-top: 32px; }
.s-hero-note { margin: 18px 0 0; font-size: 14px; color: var(--mute); }
.s-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 40px 0 0; padding: 0; list-style: none; color: var(--mute); font-size: 15px; }
.s-facts li::before { content: "·"; margin-right: 8px; color: var(--mute); font-weight: 700; }
.s-facts li:first-child::before { content: none; margin: 0; }
@media (max-width: 620px) { .s-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; } .s-facts li::before, .s-facts li:first-child::before { content: "✓"; margin-right: 6px; } }
@media (max-width: 620px) { br.s-br { display: none; } }

/* cards */
.s-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.s-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#books .s-grid--2 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.s-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .s-grid, .s-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .s-grid, .s-grid--2, .s-grid--4 { grid-template-columns: 1fr; } }
.s-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); min-width: 0; }
.s-card h3, .s-price-amount { font-feature-settings: 'ss01'; }
.s-card h3 { margin: 16px 0 8px; }
.s-card p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.s-card ul { margin: 16px 0 0; padding: 0; list-style: none; }
.s-card li { padding: 6px 0 6px 26px; position: relative; color: var(--ink-soft); font-size: 15.5px; }
.s-card li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.s-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-soft); color: var(--ink); display: grid; place-items: center; }
.s-icon svg { width: 22px; height: 22px; }
.s-card--link { text-decoration: none; color: inherit; display: block; transition: border-color .15s; }
.s-card--link:hover { border-color: var(--ink-soft); }
.s-more { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-color: var(--line); transition: text-decoration-color .15s, color .15s; }
.s-more:hover, .s-card--link:hover .s-more { color: var(--accent-deep); text-decoration-color: currentColor; }
.s-h-2 { color: var(--mute); }
.s-night .s-h-2 { color: var(--night-mute); }
.s-path { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-weight: 600; color: var(--ink); }
.s-path > span + span::before { content: "/"; margin: 0 8px; font-weight: 400; color: var(--mute); opacity: .7; }

/* brokers strip */
.s-strip { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0; padding: 0; list-style: none; }
.s-strip li a, .s-strip li span { display: inline-block; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink-soft); font-weight: 600; font-size: 15px; text-decoration: none; }
.s-strip li a:hover { border-color: var(--ink-soft); color: var(--ink); }

/* pricing */
.s-price { display: flex; flex-direction: column; }
.s-price .s-tag { align-self: flex-start; font: 600 12px/1 var(--text); padding: 6px 10px; border-radius: 999px; background: var(--accent-bg); color: var(--accent-deep); }
.s-card .s-price-amount { font: 600 40px/1.1 var(--display); color: var(--ink); margin: 18px 0 4px; }
.s-card .s-price-sub { color: var(--mute); font-size: 15px; margin: 0 0 6px; }
.s-price .s-btn { margin-top: auto; }
.s-price ul { margin-bottom: 24px; }
.s-founding { margin-top: 20px; display: grid; grid-template-columns: auto 1fr; gap: 4px 20px; align-items: center; border-style: dashed; border-color: var(--accent); background: transparent; box-shadow: none; }
.s-founding h3 { margin: 0; font-size: 18px; }
.s-founding p { margin: 0; color: var(--ink-soft); }
@media (max-width: 640px) { .s-founding { grid-template-columns: 1fr; } }
.s-card--featured { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--shadow); }

/* steps (not numbered strips: short labelled blocks) */
.s-steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.s-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.s-steps .s-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-soft); color: var(--ink); display: grid; place-items: center; font: 700 14px/1 var(--text); }
.s-steps b { display: block; color: var(--ink); }
.s-steps span { color: var(--ink-soft); font-size: 16px; }

/* faq */
.s-faq { max-width: 820px; margin: 0 auto; }
.s-faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.s-faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.s-faq summary::-webkit-details-marker { display: none; }
.s-faq summary::after { content: "+"; color: var(--mute); font-size: 22px; line-height: 1; }
.s-faq details[open] summary::after { content: "–"; }
.s-faq details p { margin: 12px 0 0; color: var(--ink-soft); }

/* cta band */
.s-cta { text-align: center; padding: 88px 0; background: var(--bg-soft); border-top: 1px solid var(--line); }
.s-cta .s-actions { justify-content: center; margin-top: 28px; }

/* prose (legal, long pages) */
.s-prose { max-width: 760px; }
.s-prose h2 { font-size: 26px; margin: 44px 0 12px; }
.s-prose h3 { font-size: 19px; margin: 28px 0 8px; }
.s-prose p, .s-prose li { color: var(--ink-soft); }
.s-prose ul { padding-left: 20px; }

/* notice line */
.s-note { font-size: 14px; color: var(--mute); margin: 24px 0 0; }

/* footer */
.s-foot { border-top: 1px solid var(--line); padding: 64px 0 40px; font-size: 15px; }
.s-foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
@media (max-width: 860px) { .s-foot-grid { grid-template-columns: repeat(2, 1fr); } }
.s-foot h4 { font: 600 13px/1 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin: 0 0 14px; }
.s-foot ul { list-style: none; margin: 0; padding: 0; }
.s-foot li { margin: 0 0 10px; }
.s-foot a { color: var(--ink-soft); text-decoration: none; }
.s-foot a:hover { color: var(--ink); }
/* phone: footer and menu links are thumb-sized (were 20px tall) */
@media (max-width: 860px) { .s-foot li { margin: 0; } .s-foot a { display: inline-block; padding: 8px 0; min-height: 36px; box-sizing: border-box; } .s-note > a:only-child { display: inline-block; padding: 8px 0; } main a:not([class]) { padding-top: 6px; padding-bottom: 6px; } .yt-companion-open { display: inline-block; padding: 8px 0; } }
.s-foot-about p { color: var(--mute); margin: 12px 0 0; max-width: 320px; }
.s-foot-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--mute); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* hub pages (blog / learn / watch) also load the older styles.css: keep the shared chrome ours */
.s-top { background: var(--bg); }
.s-nav a:not(.s-btn) { color: var(--ink-soft) !important; }
.s-nav a[aria-current="page"] { color: var(--ink) !important; }
.s-foot { background: var(--bg); }

/* hub pages: the older styles.css paints navy hero bands and teal buttons; bring them onto paper */
body.press, body.press main { background: var(--bg) !important; }
.info-hero-band, .info-section-band--dark { background: var(--bg) !important; color: var(--ink) !important; border-bottom: 1px solid var(--line); }
.info-hero-band .info-kicker, .info-section-band--dark .info-section-eyebrow { color: var(--mute) !important; }
.info-hero-band h1, .info-hero-band h2, .info-section-band--dark h2, .info-section-band--dark h3 { color: var(--ink) !important; }
.info-hero-band .info-lead, .info-hero-band p, .info-section-band--dark p, .info-section-band--dark li { color: var(--ink-soft) !important; }
body.press .btn-primary { background: var(--ink) !important; color: var(--bg) !important; border-color: var(--ink) !important; box-shadow: none !important; }
body.press .btn-ghost { background: transparent !important; color: var(--ink) !important; border-color: var(--line) !important; }
body.press main a:not(.s-btn):not(.btn) { color: var(--ink) !important; text-decoration-color: var(--line); }
body.press main a:not(.s-btn):not(.btn):hover { color: var(--accent-deep) !important; }
body.press .info-section-eyebrow { color: var(--mute) !important; }
.s-foot a { color: var(--ink-soft) !important; }
.s-foot a:hover { color: var(--ink) !important; }
/* watch + blog readers on paper: dark-theme playlist text and teal active states made quiet */
.yt-row, .yt-row span { color: var(--ink) !important; }
.yt-row:hover { background: var(--bg-soft) !important; }
.yt-row.is-on { background: var(--bg-soft) !important; box-shadow: inset 3px 0 0 var(--ink); }
.yt-row img { background: var(--bg-soft) !important; }
.studio-tabs { background: var(--bg) !important; border-color: var(--line) !important; }
.studio-tabs button { color: var(--mute) !important; }
.studio-tabs button.is-on { color: var(--ink) !important; background: transparent !important; box-shadow: inset 0 -2px 0 var(--ink) !important; border-color: var(--ink) !important; }
.yt-playlist h3, .yt-playlist .yt-part, .essay-toc [class*="part"] { color: var(--mute) !important; }
.essay-toc, .toc-part-group > summary { background: var(--bg) !important; border-color: var(--line) !important; }
.toc-part-group > summary, .toc-part-group.has-current > summary, .playlist-label { color: var(--mute) !important; }
.toc-item { color: var(--ink-soft) !important; }
.toc-item:hover { background: var(--bg-soft) !important; }
.toc-item.is-on { color: var(--ink) !important; background: var(--bg-soft) !important; border-left-color: var(--ink) !important; }
.yt-companion, .yt-companion-head { background: var(--card) !important; border-color: var(--line) !important; }

/* ===== 2026-09-28 brand: the night stage, the living mark, said-like-a-person cards, features + slideshow ===== */
.s-night { background: var(--night); color: var(--night-ink); position: relative; overflow: hidden; }
.s-night::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 72% 40%, rgba(217, 119, 6, .10), transparent 70%), radial-gradient(50% 60% at 20% 100%, rgba(14, 113, 105, .12), transparent 70%); pointer-events: none; }
.s-night h1, .s-night h2, .s-night h3 { color: #f8fafc; }
.s-night .s-eyebrow { color: var(--night-mute); }
.s-night .s-lead { color: #b8c2d0; }
.s-night .s-btn--primary { background: #f8fafc; color: var(--night) !important; }
.s-night .s-btn--primary:hover { background: #fff; }
.s-night .s-btn--ghost { color: #f8fafc !important; border-color: #334155; }
.s-night .s-btn--ghost:hover { border-color: #f8fafc; }
.s-night .s-hero-note, .s-night .s-facts { color: var(--night-mute); }

.s-hero--night { padding: 72px 0 64px; }
.s-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: center; position: relative; }
.s-hero--night h1 { font-size: clamp(40px, 5.6vw, 70px); }
.s-hero--night .s-lead { font-size: 19px; margin-top: 24px; }
.s-hero--night .s-actions { margin-top: 30px; }
.s-hero--night .s-hero-note { margin-top: 16px; }
.s-ink-in { animation: s-ink 1.3s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes s-ink { from { opacity: 0; filter: blur(4px); transform: translateY(6px); } to { opacity: 1; filter: blur(0); transform: none; } }

.s-stage { position: relative; aspect-ratio: 373 / 360; width: 100%; max-width: 500px; margin-left: auto; }
.s-stage .sos-mark { width: 100%; height: 100%; display: block; cursor: pointer; overflow: visible; }
.s-stage-wm { position: absolute; left: 0; right: 0; bottom: -6px; text-align: center; font-size: clamp(22px, 2.6vw, 30px); opacity: 0; transform: translateY(8px); transition: opacity .9s, transform .9s; }
.s-stage.is-done .s-stage-wm { opacity: 1; transform: none; }
.s-stage-wm .l { display: inline-block; opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s; }
.s-stage.is-done .s-stage-wm .l { opacity: 1; transform: none; }
.s-stage-hint { position: absolute; right: 0; top: 4px; font: 600 11px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: #64748b; opacity: 0; transition: opacity .6s 1.2s; }
.s-stage.is-done .s-stage-hint { opacity: 1; }


/* one plain sentence, typed at a human pace */
.s-say-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 20px; }
.s-label { font: 600 12px/1 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin: 0 0 12px; }
.s-say { font: var(--display-wght) clamp(24px, 2.6vw, 32px)/1.2 var(--display); letter-spacing: var(--display-track); min-height: 3.6em; margin: 6px 0 14px; color: var(--ink); }
.s-caret { display: inline-block; width: .08em; height: .95em; background: var(--on); vertical-align: -.1em; margin-left: .06em; animation: s-blink 1s steps(1) infinite; }
@keyframes s-blink { 50% { opacity: 0; } }
.s-why { font-size: 15px; color: var(--mute); margin: 0; } .s-why b { color: var(--ink-soft); }
.s-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.s-num { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.s-num .v { font: var(--display-wght) 32px/1 var(--display); letter-spacing: var(--display-track); font-variant-numeric: tabular-nums; }
.s-num .v.up { color: var(--accent); } .s-num .v.dn { color: #b4452a; }
.s-num .k { font-size: 13px; color: var(--mute); margin-top: 6px; }

/* features: the list and, beside it, the slideshow that follows it */
.s-feat { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 36px; align-items: start; }
.s-feat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.s-feat-list button { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; padding: 16px 18px 16px 20px; border-radius: 14px; border: 1px solid transparent; position: relative; overflow: hidden; }
.s-feat-list button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.s-feat-list b { display: flex; align-items: center; gap: 10px; font: var(--display-wght) 20px/1.2 var(--display); letter-spacing: -.02em; color: var(--ink-soft); }
.s-feat-list b small { font: 600 11px/1 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); border: 1px solid var(--line); border-radius: 999px; padding: 4px 7px; }
.s-feat-list span { display: block; color: var(--mute); font-size: 15px; margin-top: 4px; max-height: 0; opacity: 0; transition: max-height .4s, opacity .4s; }
.s-feat-list [aria-selected="true"] { background: var(--card); border-color: var(--line); box-shadow: var(--shadow); }
.s-feat-list [aria-selected="true"] b { color: var(--ink); }
.s-feat-list [aria-selected="true"] span { max-height: 6em; opacity: 1; }
.s-feat-list .bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--on); }
.s-feat-list [aria-selected="true"] .bar { animation: s-fill var(--dur, 6s) linear forwards; }
.s-feat.is-paused .s-feat-list .bar { animation-play-state: paused; }
@keyframes s-fill { to { width: 100%; } }
.s-show { position: sticky; top: 84px; }
.s-slides { position: relative; aspect-ratio: 16 / 11; border-radius: 22px; background: var(--night); border: 1px solid var(--night-line); box-shadow: 0 30px 60px -30px rgba(11, 18, 32, .45); overflow: hidden; }
.s-slide { position: absolute; inset: 0; padding: 26px; opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .6s, transform .6s; pointer-events: none; display: flex; flex-direction: column; }
.s-slide.is-on { opacity: 1; transform: none; pointer-events: auto; }
.s-slide .top { display: flex; justify-content: space-between; align-items: center; color: var(--night-mute); font: 600 11px/1 var(--text); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
.s-slide .top i { font-style: normal; color: #64748b; }
.s-slide .say { font: var(--display-wght) clamp(19px, 2vw, 24px)/1.22 var(--display); letter-spacing: -.02em; color: #f8fafc; margin: 0 0 16px; }
.s-slide .say em { font-style: normal; color: var(--on-lt); }
.s-slide .panel { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 14px; padding: 14px 16px; flex: 1; min-height: 0; color: var(--night-ink); font-size: 13px; }
.s-slide svg { width: 100%; height: 100%; display: block; }
.s-row { display: grid; grid-template-columns: 1.4fr 1fr 86px; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--night-line); }
.s-row:last-child { border-bottom: 0; }
.s-row .r { position: relative; height: 6px; background: #1e2735; border-radius: 3px; }
.s-row .r i { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.s-row .n { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.dn { color: #f87171; } .up { color: #5eead4; } .mu { color: var(--night-mute); }
.s-chip { display: inline-block; white-space: nowrap; font: 700 10px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; padding: 4px 7px; border-radius: 999px; border: 1px solid #334155; color: var(--night-mute); }
.s-chip.cost { border-color: rgba(248, 113, 113, .5); color: #fca5a5; }
.s-show-cap { margin: 12px 4px 0; font-size: 13px; color: var(--mute); display: flex; justify-content: space-between; gap: 12px; }
.s-dots { display: flex; gap: 6px; } .s-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); } .s-dots i.is-on { background: var(--ink); }

/* the dark band footer */
.s-foot--night { background: var(--night) !important; color: var(--night-mute); border-top: 0; }
.s-foot--night h4 { color: #64748b; }
.s-foot--night a, .s-foot--night .s-foot a { color: #cbd5e1 !important; }
.s-foot--night a:hover { color: #fff !important; }
.s-foot--night .s-foot-about p, .s-foot--night .s-foot-legal { color: #7c8898; }
.s-foot--night .s-foot-legal { border-top-color: var(--night-line); }
.s-foot--night .s-brand { color: #f8fafc !important; } .s-foot--night .s-brand .stocks { color: var(--night-mute); font-weight: 500; }

@media (max-width: 900px) {
  .s-hero-grid, .s-say-grid, .s-feat { grid-template-columns: 1fr; }
  .s-hero--night { padding: 36px 0 48px; }
  .s-stage { max-width: 320px; margin: 0 auto; order: -1; }
  .s-show { position: relative; top: 0; order: -1; }
  .s-feat-list { grid-auto-flow: column; grid-auto-columns: minmax(200px, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .s-feat-list li { scroll-snap-align: start; }
  .s-slides { aspect-ratio: auto; height: 400px; }
  .s-feat-list [aria-selected="true"] span { max-height: 9em; }
}
@media (max-width: 520px) { .s-slide { padding: 18px; } .s-row { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr) 78px; font-size: 12px; } .s-chip { font-size: 9px; padding: 3px 5px; } }
@media (prefers-reduced-motion: reduce) {
  .s-ink-in, .s-feat-list [aria-selected="true"] .bar { animation: none; }
  .s-slide, .s-stage-wm, .s-stage-wm .l { transition: none; }
}

/* diagrams (2026-10-02): flow, sequence, never-reaches, receipt, video. Few words; the shape carries the meaning. */
.s-flow { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 28px; counter-reset: sflow; }
.s-flow li { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px 18px; box-shadow: var(--shadow); counter-increment: sflow; animation: s-flow-lit 8s infinite; animation-delay: calc(var(--i, 0) * 2s); }
.s-flow li::before { content: counter(sflow); position: absolute; top: 14px; right: 16px; font: 700 13px/1 var(--display); color: var(--mute); }
.s-flow li:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -24px; width: 20px; height: 2px; background: linear-gradient(90deg, var(--line), var(--accent)); }
.s-flow .s-fi { width: 46px; height: 46px; border-radius: 14px; background: var(--accent-bg); color: var(--accent-deep); display: grid; place-items: center; margin-bottom: 12px; }
.s-flow .s-fi svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.s-flow b { display: block; font: 600 17px/1.25 var(--display); color: var(--ink); }
.s-flow span { display: block; margin-top: 4px; color: var(--mute); font-size: 14.5px; line-height: 1.4; }
@keyframes s-flow-lit { 0%, 22% { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg), var(--shadow); } 30%, 100% { border-color: var(--line); box-shadow: var(--shadow); } }
@media (max-width: 900px) { .s-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .s-flow li:nth-child(2n)::after { display: none; } }
@media (min-width: 521px) { .s-flow--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .s-flow--3 li:nth-child(2n):not(:last-child)::after { display: block; } }
@media (max-width: 520px) { .s-flow { grid-template-columns: 1fr; gap: 18px; } .s-flow li:not(:last-child)::after { display: block !important; top: auto; bottom: -16px; right: 50%; width: 2px; height: 14px; background: var(--accent); } .s-flow li:last-child::after { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .s-flow li { animation: none; } }

.s-trust { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 26px 0 0; padding: 0; list-style: none; }
.s-trust li { position: relative; padding-left: 24px; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.s-trust li::before { content: ""; width: 12px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); position: absolute; left: 1px; top: .4em; }
.s-places { list-style: none; margin: 16px 0 22px; padding: 0; display: grid; gap: 12px; }
.s-places > li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px 12px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.s-place-n { font: 700 15px/1.3 var(--display); color: var(--mute); padding-top: 2px; }
.s-place-name, .s-place-hint { display: block; }
.s-place-name { font: 650 16px/1.35 var(--display); color: var(--ink); }
.s-place-hint { margin-top: 2px; color: var(--mute); font-size: 14.5px; line-height: 1.45; }
.s-place-menu { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.s-place-menu li { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--bg); }
.s-place-menu .s-place-name { font-size: 15px; }
.s-never { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.s-never li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px dashed #c9b8a6; border-radius: 999px; color: var(--ink-soft); font-size: 14.5px; background: transparent; }
.s-never li::before { content: "✕"; color: #b45309; font-weight: 700; }

.s-receipt { background: #fffdf8; border: 1px solid var(--line); padding: 22px 22px 16px; font-variant-numeric: tabular-nums; box-shadow: var(--shadow); position: relative; }
.s-receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: radial-gradient(circle at 6px 0, transparent 6px, #fffdf8 6.5px) 0 0 / 12px 8px repeat-x; }
.s-receipt h4 { margin: 0 0 4px; text-align: center; font: 700 13px/1 var(--text); letter-spacing: .2em; text-transform: uppercase; }
.s-receipt .s-sub { text-align: center; color: var(--mute); font-size: 12.5px; margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.s-receipt .s-rl { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #efe9dc; font-size: 15px; }
.s-receipt .s-rl b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; }
.s-receipt .s-rl .neg { color: #b45309; } .s-receipt .s-rl .pos { color: var(--accent-deep); }
.s-receipt .s-rl--total { border-bottom: 0; border-top: 2px solid var(--ink); margin-top: 4px; font-weight: 700; }
.s-meter { display: flex; height: 12px; border-radius: 999px; overflow: hidden; margin: 14px 0 8px; background: var(--bg-soft); }
.s-meter i { display: block; height: 100%; }
.s-meter-k { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--mute); }
.s-meter-k span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; background: var(--c); vertical-align: -1px; }

.s-video { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(11, 18, 32, .35); background: #f6f3ec; }
.s-video video { display: block; width: 100%; height: auto; }
.s-video figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(11, 15, 23, .78); color: #f6f3ec; font-size: 12.5px; padding: 6px 10px; border-radius: 999px; }

.s-btable { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.s-btable th, .s-btable td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.s-btable th { font: 700 12px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); background: var(--bg-soft); }
.s-btable td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.s-btable details summary { cursor: pointer; color: var(--ink); font-weight: 600; list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.s-btable details summary::-webkit-details-marker { display: none; }
.s-btable details summary::after { content: "+"; color: var(--mute); font-weight: 400; font-size: 18px; line-height: 1; }
.s-btable details[open] summary::after { content: "\2212"; }
.s-btable details ol { margin: 8px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 14.5px; }
.s-ok { display: inline-block; padding: 3px 9px; border-radius: 999px; font: 600 12px/1.4 var(--text); background: var(--accent-bg); color: var(--accent-deep); white-space: nowrap; }
.s-ok--ready { background: var(--bg-soft); color: var(--ink-soft); }
@media (max-width: 620px) { .s-btable th:nth-child(3), .s-btable td:nth-child(3) { display: none; } .s-btable td:first-child { white-space: normal; } }

/* learn: book cards and video figures */
.s-book { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 24px; align-items: start; }
.s-book img { width: 112px; height: auto; border-radius: 6px; box-shadow: 0 10px 24px -12px rgba(11, 18, 32, .45); }
.s-book h3 { margin-top: 2px; }
.s-book-links { display: flex; gap: 22px; margin-top: 4px !important; }
.s-video { margin: 0; }
.s-video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--night); box-shadow: var(--shadow); }
.s-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.s-video figcaption { margin-top: 12px; font-size: 15px; color: var(--ink-soft); }
.s-video figcaption b { color: var(--ink); }

/* library: the essay reader (blog.html) and chapter videos (watch.html) */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip-link:focus { left: 12px; top: 12px; outline: 3px solid var(--accent); outline-offset: 2px; }
.s-lib-head { padding: 48px 0 28px; }
.s-lib-head h1 { font-size: clamp(34px, 4vw, 48px); }
.s-lib-head .s-lead { font-size: 17px; margin-top: 10px; }
.studio-tabs { display: inline-flex; flex-wrap: wrap; max-width: 100%; gap: 4px; padding: 4px; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.studio-tabs button { border: 0; background: transparent; color: var(--ink-soft); font: 600 14px/1 var(--text); padding: 9px 16px; border-radius: 999px; cursor: pointer; }
.studio-tabs button:hover { color: var(--ink); }
.studio-tabs button.is-on { background: var(--ink); color: #f6f3ec; }

.essay-layout { max-width: var(--max); margin: 0 auto 96px; padding: 0 20px; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.essay-toc { position: sticky; top: 84px; max-height: calc(100vh - 104px); overflow-y: auto; }
.toc-list { display: none; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.toc-list:not([hidden]) { display: flex; }
.toc-part-group + .toc-part-group { border-top: 1px solid var(--line); }
.toc-part-group > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 16px; font: 600 12px/1.2 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); cursor: pointer; list-style: none; }
.toc-part-group > summary::-webkit-details-marker { display: none; }
.toc-part-group > summary:hover, .toc-part-group.has-current > summary { color: var(--ink); }
.toc-part-count { font-weight: 500; letter-spacing: 0; color: var(--mute); background: var(--bg-soft); border-radius: 999px; padding: 3px 8px; }
.toc-item { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 10px 16px 10px 18px; font: 500 14.5px/1.4 var(--text); color: var(--ink-soft); cursor: pointer; border-left: 2px solid transparent; }
.toc-item:hover { color: var(--ink); background: var(--bg-soft); }
.toc-item.is-on { color: var(--ink); font-weight: 600; border-left-color: var(--accent); background: var(--accent-bg); }
.essay-reader { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; min-height: 78vh; }
.essay-reader iframe { flex: 1; width: 100%; min-height: 78vh; border: 0; background: var(--card); }
.studio-empty { padding: 64px 32px; color: var(--mute); margin: 0; }
.pager { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.pager[hidden] { display: none; }
.pager button, .yt-companion-toggle { border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 600 14px/1 var(--text); padding: 9px 16px; border-radius: 999px; cursor: pointer; }
.pager button:hover:not(:disabled), .yt-companion-toggle:hover { border-color: var(--ink); }
.pager button:disabled { opacity: .4; cursor: default; }

.yt-layout { max-width: var(--max); margin: 0 auto 96px; padding: 0 20px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.yt-layout--theater { grid-template-columns: minmax(0, 1fr); }
.yt-layout--theater .yt-playlist { display: none; }
.yt-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.yt-player-wrap { position: relative; aspect-ratio: 16 / 9; background: var(--night); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.yt-player-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-theater-btn { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 6px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(11, 15, 23, .72); color: #f8fafc; font: 600 13px/1 var(--text); padding: 8px 12px; border-radius: 999px; cursor: pointer; backdrop-filter: blur(6px); }
.yt-theater-icon { width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 2px; }
.yt-companion { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.yt-companion-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.yt-companion-head h2 { font-size: 20px; }
.yt-companion-actions { display: flex; align-items: center; gap: 16px; }
.yt-companion-open { font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.yt-companion-open:hover { text-decoration-color: currentColor; }
.yt-companion-note { margin: 0; padding: 12px 20px 0; font-size: 14px; color: var(--mute); }
.yt-companion-body { height: 62vh; min-height: 22rem; }
.yt-companion-body[hidden] { display: none; }
.yt-companion-body iframe { width: 100%; height: 100%; border: 0; background: var(--card); }
.yt-playlist { position: sticky; top: 84px; max-height: calc(100vh - 104px); overflow-y: auto; }
#yt-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; }
.playlist-label { margin: 12px 10px 6px; font: 600 12px/1.2 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.yt-row { display: flex; gap: 12px; width: 100%; border: 0; background: transparent; padding: 8px; text-align: left; cursor: pointer; border-radius: 12px; color: var(--ink-soft); }
.yt-row img { width: 120px; height: 68px; object-fit: cover; flex: none; border-radius: 8px; background: var(--bg-soft); }
.yt-row span { font: 500 14px/1.35 var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.yt-row:hover { background: var(--bg-soft); color: var(--ink); }
.yt-row.is-on { background: var(--accent-bg); color: var(--ink); box-shadow: inset 2px 0 0 var(--accent); }

@media (max-width: 960px) {
  .essay-layout, .yt-layout { grid-template-columns: 1fr; padding: 0 16px; }
  .essay-toc, .yt-playlist { position: static; max-height: 44vh; }
  .yt-companion-body { height: 50vh; min-height: 18rem; }
  .s-book { grid-template-columns: 84px minmax(0, 1fr); gap: 16px; }
  .s-book img { width: 84px; }
}

/* standalone gate pages (preview.html, preview-thanks.html) */
.s-gate { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.s-gate-card { width: 100%; max-width: 460px; }
.s-gate-card h1 { font-size: 32px; }
.s-gate-sub { margin: 10px 0 20px !important; }
.s-gate-card textarea { width: 100%; min-height: 120px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: 400 16px/1.5 var(--text); resize: vertical; }
.s-gate-card textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.s-gate-card .s-btn { width: 100%; margin-top: 12px; justify-content: center; }
