:root {
  color-scheme: dark;
  --bg: #f5f5f7;
  --bg-soft: #fff;
  --surface: #fff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgb(0 0 0 / .12);
  --accent: #0066cc;
  --blue: #0071e3;
  --bar: rgb(255 255 255 / .78);
  --shadow: 0 2px 6px rgb(0 0 0 / .04), 0 10px 30px rgb(0 0 0 / .06);
  --shadow-lift: 0 12px 44px rgb(0 0 0 / .16);
  --ph-bg: #fff3bf;
  --ph-text: #6b4e00;
  --error: #d70015;
  --radius: 28px;
  --ease: cubic-bezier(.28, .11, .32, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
}
/* The site is always dark (decided 2026-11-07). */
@media all {
  :root {
    --bg: #000;
    --bg-soft: #161617;
    --surface: #1d1d1f;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: rgb(255 255 255 / .16);
    --accent: #2997ff;
    --bar: rgb(22 22 23 / .8);
    --shadow: none;
    --shadow-lift: 0 12px 44px rgb(0 0 0 / .7);
    --ph-bg: #4a3a05;
    --ph-text: #ffe08a;
    --error: #ff6961;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.47 var(--font); letter-spacing: -.022em; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.015em; line-height: 1.07; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); }
h3 { font-size: 1.5rem; line-height: 1.17; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(1040px, 100%); margin-inline: auto; padding-inline: 22px; }
.wrap.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.fine { font-size: .75rem; line-height: 1.45; color: var(--muted); margin: 0; letter-spacing: -.01em; }
.lead { font-size: clamp(1.2rem, 2.3vw, 1.6rem); line-height: 1.3; font-weight: 400; color: var(--muted); max-width: 34em; margin: 14px 0 0; }
.lead.center { margin-inline: auto; }
.kicker { margin: 0 0 8px; font-size: clamp(1rem, 1.7vw, 1.3rem); font-weight: 600; color: #f5f5f7; }
.eyebrow { margin: 0 0 6px; font-size: .75rem; font-weight: 600; color: var(--muted); letter-spacing: -.01em; }
.section { padding-block: clamp(64px, 10vw, 120px); }
.section > h2 { margin-bottom: 14px; }
.display { font-size: clamp(2.5rem, 6.4vw, 4.75rem); text-align: center; max-width: 13em; margin-inline: auto; }
.page-head { padding-block: clamp(56px, 8vw, 96px) 28px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 12px; }
mark.ph { background: var(--ph-bg); color: var(--ph-text); padding: .05em .35em; border-radius: 6px; font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Top bar */
.bar { position: sticky; top: 0; z-index: 50; background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.bar-in { display: flex; align-items: center; gap: 24px; width: min(1040px, 100%); margin-inline: auto; padding: 0 22px; min-height: 44px; }
.logo { font-weight: 600; color: var(--text); font-size: .88rem; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo mark.ph { background: none; color: inherit; padding: 0; font-weight: 600; }
.links { display: flex; gap: 32px; margin-left: auto; }
.links a { color: var(--text); font-size: .75rem; opacity: .8; transition: opacity .2s; }
.links a:hover, .links a[aria-current="page"] { opacity: 1; text-decoration: none; }
.bar-end { display: flex; align-items: center; gap: 4px; }
details[data-dismiss] { position: relative; }
details[data-dismiss] > summary { list-style: none; cursor: pointer; min-width: 44px; min-height: 44px; display: grid; place-items: center; font-size: .75rem; color: var(--text); opacity: .8; }
details[data-dismiss] > summary::-webkit-details-marker { display: none; }
.popover { position: absolute; right: 0; top: calc(100% + 4px); min-width: 180px; display: grid; gap: 2px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lift); }
.popover a { padding: 10px 12px; border-radius: 10px; color: var(--text); font-size: .9rem; }
.popover a:hover { background: var(--bg-soft); text-decoration: none; }
.popover a[aria-current="true"], .popover a[aria-current="page"] { font-weight: 600; }
.menu { display: none; }
.menu summary { gap: 6px; grid-auto-rows: min-content; align-content: center; }
.menu summary span { width: 17px; height: 1px; background: var(--text); display: block; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px; border: 0; border-radius: 980px; background: var(--blue); color: #fff; font: 400 1.0625rem var(--font); letter-spacing: -.02em; cursor: pointer; transition: background-color .2s, color .2s, transform .2s var(--ease); }
.btn:hover { text-decoration: none; background: #0077ed; }
.btn:active { transform: scale(.98); }
.btn.ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.btn.ghost:hover { background: var(--accent); color: #fff; }
.btn.wide { width: 100%; }
.btn.small { min-height: 34px; padding: 6px 16px; font-size: .875rem; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 26px; }
.more { font-weight: 400; }
.more::after { content: " ›"; }

/* Hero */
.hero { background: #000; color: #f5f5f7; text-align: center; overflow: hidden; position: relative; }
.hero-copy { position: relative; z-index: 1; padding: clamp(56px, 8vw, 96px) 22px 0; }
.hero h1 { max-width: 13em; margin-inline: auto; font-size: clamp(2.75rem, 7.4vw, 5.75rem); }
.hero .lead { margin-inline: auto; color: #a1a1a6; max-width: 32em; }
.hero .btn.ghost, .tile .btn.ghost, .book-hero .btn.ghost { color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .75); }
.hero .btn.ghost:hover, .tile .btn.ghost:hover { background: #fff; color: #000; }
.hero-img { width: 100%; max-height: 74vh; object-fit: cover; object-position: center 40%; margin-top: -40px; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 34%); mask-image: linear-gradient(to bottom, transparent, #000 34%); }

/* Photo tiles */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 12px; margin-top: 12px; }
.trio { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile { position: relative; overflow: hidden; min-height: 500px; display: flex; flex-direction: column; align-items: center; text-align: center; background: #111; color: #f5f5f7; border-radius: 4px; isolation: isolate; }
.tile.wide { grid-column: 1 / -1; min-height: min(78vh, 680px); }
.tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgb(0 0 0 / .78), rgb(0 0 0 / .42) 42%, rgb(0 0 0 / .08) 72%); }
.tile:hover > img { transform: scale(1.035); }
.tile-copy { padding: 44px 24px; max-width: 34em; }
.tile-kicker { font-size: .95rem; font-weight: 600; margin: 0 0 6px; color: rgb(255 255 255 / .8); }
.tile h3 { font-size: clamp(2rem, 3.8vw, 2.75rem); line-height: 1.08; }
.tile.wide h3 { font-size: clamp(2.5rem, 5.6vw, 3.9rem); }
.tile p { margin-bottom: 0; }
.tile-copy > p:not(.tile-kicker) { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.3; margin-top: 8px; color: #e8e8ed; }
.tile-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }
.trio .tile { min-height: 420px; }
.trio .tile-copy { padding: 34px 20px; }
.trio .tile h3 { font-size: clamp(1.7rem, 2.6vw, 2.1rem); }
.trio .tile-copy > p:not(.tile-kicker) { font-size: 1rem; }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; margin-top: 40px; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: clamp(24px, 3vw, 36px); }
.book-card { display: flex; flex-direction: column; color: inherit; overflow: hidden; background: var(--bg-soft); box-shadow: none; transition: transform .4s var(--ease); }
.book-card:hover { text-decoration: none; transform: scale(1.012); }
.book-card .cover { width: 66%; margin: 36px auto 0; border-radius: 8px; box-shadow: 0 16px 36px rgb(0 0 0 / .32); transition: transform .5s var(--ease); }
.book-card:hover .cover { transform: translateY(-5px); }
.card-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; text-align: center; }
.card-body .muted { font-size: .94rem; }
.price { font-weight: 400; margin: auto 0 0; }
.price.big { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 600; line-height: 1.1; margin: 26px 0 0; }
.band { background: var(--bg-soft); border-radius: var(--radius); padding: clamp(28px, 6vw, 60px); text-align: center; }
.band .signup { text-align: left; margin-top: 22px; }
.band > h2 { margin-bottom: 12px; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }

/* Statement */
.statement { background: #000; color: #f5f5f7; }
.statement .display { max-width: 12em; }
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 64px; }
.why.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.why.steps p { color: var(--muted); }
.why h3 { font-size: 1.2rem; margin-bottom: 8px; }
.why p { color: #a1a1a6; margin: 0; font-size: 1rem; }

/* FAQ */
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 32px 20px 0; font-weight: 600; font-size: 1.1rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.5rem; font-weight: 300; color: var(--muted); transition: rotate .3s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq p { color: var(--muted); padding-right: 32px; }

/* Forms */
label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: 6px; }
input:not([type="checkbox"]), textarea, select { width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; }
input[type="file"] { padding: 10px; }
textarea { resize: vertical; line-height: 1.45; }
.inline-field { display: flex; gap: 10px; }
.inline-field input { flex: 1; min-width: 0; }
.inline-field .btn { flex: none; min-height: 48px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 14px 0; line-height: 1.4; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); }
.consent { margin-top: 0; font-size: .95rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.stack { display: grid; gap: 18px; }
.stack > * { min-width: 0; }
.error { color: var(--error); font-weight: 500; margin: 0 0 8px; }
.notice { background: var(--bg-soft); border-radius: 14px; padding: 12px 16px; font-size: .94rem; }

/* Risk warning */
.risk { font-size: .78rem; line-height: 1.5; color: var(--muted); padding-block: 18px; margin: 0; letter-spacing: -.01em; }
.risk strong { color: var(--text); font-weight: 600; }

/* Shop */
.filters { display: grid; gap: 12px; }
.chips { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: -22px; padding: 2px 22px; }
.chips::-webkit-scrollbar { display: none; }
.chip-label { font-size: .8rem; font-weight: 600; color: var(--muted); flex: none; min-width: 48px; }
.chip { flex: none; padding: 7px 16px; border-radius: 980px; background: var(--bg-soft); color: var(--text); font-size: .875rem; transition: background-color .2s, color .2s; }
.chip:hover { text-decoration: none; }
.chip[aria-current="true"] { background: var(--text); color: var(--bg); }
.count { margin: 20px 0 0; font-size: .875rem; }
.empty { padding-block: 48px; }

/* Book page */
.subnav { position: sticky; top: 44px; z-index: 40; background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.subnav-in { display: flex; align-items: center; gap: 14px; width: min(1040px, 100%); margin-inline: auto; padding: 8px 22px; }
.subnav strong { font-size: 1.15rem; font-weight: 600; margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.subnav span { font-size: .85rem; color: var(--muted); flex: none; }
.subnav .btn { flex: none; }
.book-hero { position: relative; background: #000; color: #f5f5f7; text-align: center; overflow: hidden; isolation: isolate; }
.book-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .34; filter: blur(14px) saturate(1.2); transform: scale(1.1); z-index: -1; }
.book-hero-in { padding: clamp(48px, 7vw, 80px) 22px clamp(44px, 6vw, 72px); }
.book-hero h1 { max-width: 13em; margin-inline: auto; }
.book-hero .lead { color: #d2d2d7; margin-inline: auto; }
.book-cover { width: min(340px, 70%); margin: clamp(32px, 5vw, 52px) auto 0; }
.book-cover .cover { width: 100%; border-radius: 10px; box-shadow: 0 30px 80px rgb(0 0 0 / .75); }
.saving { color: #d2d2d7; font-size: .95rem; margin: 6px 0 0; }
.center-actions { margin-top: 18px; }
.intro { padding-top: clamp(56px, 8vw, 96px); }
.intro h2 { margin-bottom: 18px; }
.big-prose { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.4; color: var(--muted); }
.big-prose p { margin-bottom: 1em; }
.prose { margin-top: 18px; }
.prose h2 { font-size: 1.6rem; margin: 2em 0 .5em; }
.prose h3 { margin: 1.5em 0 .4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.columns .card { background: var(--bg-soft); box-shadow: none; }
.columns h2 { font-size: 1.75rem; margin-bottom: 16px; }
ul.ticks, ul.crosses { list-style: none; padding: 0; margin: 0; }
.ticks li, .crosses li { position: relative; padding: 2px 0 0 40px; margin-bottom: 16px; line-height: 1.45; }
/* Round badges drawn in CSS: a green tick, or a muted cross. */
.ticks li::before, .crosses li::before { content: ""; position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; }
.ticks li::before { background: linear-gradient(145deg, #34c759, #1f9d48); box-shadow: 0 0 0 4px rgb(48 209 88 / .14), 0 4px 14px rgb(48 209 88 / .3); }
.ticks li::after { content: ""; position: absolute; left: 9px; top: 6px; width: 7px; height: 12px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.crosses li::before { background: rgb(255 69 58 / .14); box-shadow: inset 0 0 0 1.5px rgb(255 69 58 / .55); }
.crosses li::after { content: ""; position: absolute; left: 7px; top: 12px; width: 12px; height: 2.5px; border-radius: 2px; background: #ff6961; transform: rotate(45deg); box-shadow: 0 0 0 0 transparent; }
.crosses li { color: var(--muted); }
.narrow-block { max-width: 760px; }
.toc { padding-left: 1.5em; margin: 24px 0; }
.toc li { padding: 12px 0 12px 6px; border-bottom: 1px solid var(--line); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(28px, 5vw, 56px); }
.pdp-stage { position: relative; overflow: hidden; isolation: isolate; display: grid; place-items: center; min-height: min(78vh, 680px); padding: clamp(32px, 6vw, 64px); background: #000; border-radius: var(--radius); }
.pdp-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; filter: blur(22px) saturate(1.2); transform: scale(1.15); z-index: -1; }
.pdp-stage .cover { width: min(320px, 82%); border-radius: 8px; box-shadow: 0 30px 80px rgb(0 0 0 / .7); }
.pdp-kicker { margin: 0 0 8px; font-weight: 600; color: var(--accent); }
.pdp-info h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.06; margin-bottom: 12px; }
.pdp-info .lead { margin: 0 0 22px; font-size: clamp(1.1rem, 2vw, 1.35rem); }
.pdp-info .actions { justify-content: flex-start; margin-top: 16px; }
.formats-form { margin-top: 26px; }
.formats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.format { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 2px solid var(--line); border-radius: 18px; color: var(--text); background: var(--surface); cursor: pointer; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.format input { position: absolute; opacity: 0; pointer-events: none; }
.format:hover { border-color: color-mix(in srgb, var(--blue) 50%, var(--line)); }
.format:has(input:checked) { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 8%, var(--surface)); }
.format:has(input:focus-visible) { box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 30%, transparent); }
.format::after { content: ""; position: absolute; top: 16px; right: 16px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); box-sizing: border-box; }
.format:has(input:checked)::after { border: 6px solid var(--blue); }
.format-name { font-weight: 600; font-size: 1.1rem; color: var(--text); padding-right: 28px; }
.format-note { color: var(--muted); font-size: .9rem; line-height: 1.35; flex: 1; }
.format-price { font-weight: 600; font-size: 1.35rem; margin-top: 6px; color: var(--text); }
.format:has(input:checked) .format-price { color: var(--blue); }
.format-price small { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); }
.zones { border: 0; padding: 0; margin: 0; }
.zones legend { font-weight: 600; margin-bottom: 4px; }
.zone span small { display: block; color: var(--muted); font-size: .85rem; }
@media (max-width: 420px) { .formats { grid-template-columns: 1fr; } }
/* Ebook here, paperback on Lulu: the paperback card swaps the buy buttons for a short note on the Lulu order. */
.lulu-pick .pick-paper { display: none; }
.lulu-pick:has(input[value="paperback"]:checked) .pick-ebook { display: none; }
.lulu-pick:has(input[value="paperback"]:checked) .pick-paper { display: block; animation: ask-in .35s ease both; }
.lulu-box { padding: 22px; border-radius: 20px; background: color-mix(in srgb, var(--blue) 6%, var(--surface)); border: 1px solid color-mix(in srgb, var(--blue) 22%, var(--line)); }
.lulu-kicker { margin: 0 0 6px; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.lulu-title { margin: 0 0 6px; font-size: 1.2rem; font-weight: 600; color: var(--text); }
.lulu-text { margin: 0 0 16px; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.lulu-steps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.lulu-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; line-height: 1.4; color: var(--text); }
.lulu-n { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; font-size: .8rem; font-weight: 600; }
.lulu-facts { list-style: none; margin: 0 0 18px; padding: 14px 0 0; border-top: 1px solid color-mix(in srgb, var(--blue) 18%, var(--line)); display: flex; flex-wrap: wrap; gap: 8px; }
.lulu-facts li { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.lulu-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.lulu-out { width: 12px; height: 12px; border: 2px solid currentColor; border-left: 0; border-bottom: 0; transform: rotate(45deg); margin-left: 2px; }
.lulu-fine { margin: 12px 0 0; font-size: .8rem; color: var(--muted); line-height: 1.4; text-align: center; }
.facts { margin: 30px 0 0; border-top: 1px solid var(--line); }
.facts > div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; text-align: right; }
.learn { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 14px; counter-reset: none; }
.learn li { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; row-gap: 10px; padding: 24px 24px 26px; border-radius: 22px; background: linear-gradient(160deg, #1c1c1f, #111113); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .07); font-weight: 500; font-size: 1.05rem; line-height: 1.4; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.learn li::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(#2997ff, #30d158); opacity: .8; }
.learn li:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgb(41 151 255 / .45), 0 16px 40px rgb(0 0 0 / .5); }
.learn-n { grid-row: 1; grid-column: 1 / -1; font-size: .8rem; font-weight: 700; letter-spacing: .12em; color: var(--accent); font-variant-numeric: tabular-nums; }
.learn-tick { position: relative; grid-row: 2; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(145deg, #34c759, #1f9d48); box-shadow: 0 0 0 5px rgb(48 209 88 / .12), 0 6px 18px rgb(48 209 88 / .28); }
.learn-tick::after { content: ""; position: absolute; left: 11px; top: 7px; width: 7px; height: 13px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.learn-t { grid-row: 2; align-self: center; }
.inside { background: #000; color: #f5f5f7; padding-block: clamp(48px, 7vw, 88px); margin-top: clamp(48px, 7vw, 88px); }
.inside-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.inside-head h2 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 6px; }
.inside-head p { margin: 0; color: #a1a1a6; }
.viewer-nav { display: flex; gap: 10px; flex: none; }
.viewer-nav[hidden] { display: none; }
.viewer-nav button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #333336; color: #f5f5f7; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.viewer-nav button:disabled { opacity: .35; cursor: default; }
.viewer { position: relative; --side: max(22px, calc(50vw - 360px)); display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--side); padding: 6px var(--side) 22px; overscroll-behavior-x: contain; scrollbar-width: none; }
.viewer::-webkit-scrollbar { display: none; }
.viewer:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.inside .fine { color: #a1a1a6; margin-top: 8px; }
.sheet-foot { margin: 28px 0 0; text-align: center; font-size: .85rem !important; color: #7a7263; }
.detail { display: grid; gap: 28px; max-width: 760px; margin-inline: auto; }
.chapters { background: var(--bg-soft); border-radius: 18px; padding: 18px 24px; }
.chapters summary { font-weight: 600; cursor: pointer; }
.chapters .toc { margin-top: 16px; }
@media (max-width: 820px) {
  .pdp { grid-template-columns: minmax(0, 1fr); }
  .pdp-stage { min-height: 0; }
  .viewer { scroll-padding-inline: 12px; padding-inline: 12px; gap: 12px; }
}
.sheet { flex: 0 0 min(720px, calc(100vw - 40px)); scroll-snap-align: center; background: #fffdf8; color: #24211c; padding: clamp(28px, 7vw, 72px) clamp(24px, 8vw, 80px); border-radius: 6px; box-shadow: var(--shadow); font-family: Georgia, "Iowan Old Style", "Times New Roman", serif; font-size: 1rem; letter-spacing: 0; line-height: 1.65; }
.sheet h3 { font-family: inherit; font-size: clamp(1.5rem, 3.4vw, 2rem); line-height: 1.2; margin-bottom: 22px; letter-spacing: 0; }
.sheet p { font-size: clamp(1rem, 1.5vw, 1.1rem); }
.sheet-head { margin: 0 0 36px; padding-bottom: 10px; border-bottom: 1px solid #ddd6c8; font-size: .8rem !important; color: #7a7263; }
.sheet figure { margin: 26px 0; }
.sheet figure img { display: block; width: 100%; height: auto; border-radius: 4px; }
.sheet figcaption { margin-top: 10px; font-size: .85rem; line-height: 1.4; color: #6b6456; }
.book-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 72px); padding-block: clamp(40px, 6vw, 80px) 0; align-items: start; }
.book-top .book-cover { width: 100%; margin: 0; }
.book-top .book-cover .cover { box-shadow: var(--shadow-lift); }
.book-info h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); }
.book-info .lead { margin-bottom: 18px; }

/* Checkout and downloads */
.checkout { padding-block: clamp(40px, 6vw, 72px); }
.checkout h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 26px; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.checkout .card { background: var(--bg-soft); box-shadow: none; }
.checkout input:not([type="checkbox"]) { background: var(--surface); }
.summary { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 20px; }
.summary .cover { border-radius: 8px; box-shadow: var(--shadow-lift); }
.summary h2 { font-size: 1.3rem; margin-bottom: 6px; }
.summary .muted { font-size: .9rem; margin-bottom: 6px; }
.summary .price.big { margin: 10px 0 6px; }
.message { padding-block: clamp(64px, 12vw, 140px); }
.message h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 10px; }
.message .btn { margin-top: 24px; }
.downloads { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 12px; }
.downloads li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: var(--bg-soft); box-shadow: none; }
.downloads .btn { margin: 0; }
.eink-help { background: var(--bg-soft); box-shadow: none; margin: 0 0 20px; text-align: left; }
.eink-help summary { cursor: pointer; font-weight: 600; }
.eink-help ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.dl-links { display: flex; gap: 8px; }
.legal { padding-block: clamp(48px, 8vw, 84px); }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 20px; }

/* Footer */
.foot { background: var(--bg-soft); margin-top: 72px; padding-block: 18px 32px; font-size: .75rem; color: var(--muted); letter-spacing: -.01em; }
.foot .risk { border-bottom: 1px solid var(--line); }
.foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; margin-block: 24px; }
.foot h2 { font-size: .75rem; letter-spacing: 0; color: var(--text); margin-bottom: 10px; font-weight: 600; }
.foot nav a { display: block; color: var(--muted); padding-block: 4px; }
.foot-brand { font-weight: 600; color: var(--text); margin-bottom: 6px; }
.foot-brand mark.ph { background: none; color: inherit; padding: 0; }

/* Admin */
.admin-main { display: grid; gap: 22px; padding-block: 32px 80px; }
.admin h1 { font-size: 2rem; }
.admin h2 { font-size: 1.25rem; margin-bottom: 12px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 16px; margin-left: auto; font-size: .8rem; }
.admin-nav a { color: var(--text); }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.admin-form { max-width: 760px; }
fieldset { border: 0; margin: 0; }
legend { font-weight: 600; float: left; width: 100%; padding: 0 0 6px; }
.login { max-width: 420px; margin: 48px auto; width: 100%; }
.table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.checklist span { display: inline-block; min-width: 56px; font-size: .78rem; font-weight: 700; }
.checklist .ok span { color: #1f8a4c; }
.checklist .todo span { color: var(--error); }
.msg summary { cursor: pointer; padding: 6px 0; }

/* Motion. Everything is fully visible by default. These only add a soft entrance. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }
  .bar { view-transition-name: bar; }
  @keyframes rise { from { opacity: 0; translate: 0 16px; } }
  @keyframes settle { from { transform: scale(1.1); } }
  .fade { animation: rise .45s var(--ease) backwards; }
  .fade:nth-child(2) { animation-delay: .04s; }
  .fade:nth-child(3) { animation-delay: .08s; }
  .fade:nth-child(4) { animation-delay: .12s; }
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear backwards; animation-timeline: view(); animation-range: entry 0% entry 30%; }
    .tile > img { animation: settle linear backwards; animation-timeline: view(); animation-range: entry 0% cover 50%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Phones and tablets */
@media (max-width: 860px) {
  .book-top, .checkout-grid { grid-template-columns: minmax(0, 1fr); }
  .book-top .book-cover { width: min(200px, 50%); margin-inline: auto; }
  .trio { grid-template-columns: minmax(0, 1fr); }
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .links { display: none; }
  .bar-end { margin-left: auto; }
  .menu { display: block; }
  .bar-in { padding-inline: 16px; gap: 8px; }
  .wrap { padding-inline: 16px; }
  .chips { margin-inline: -16px; padding-inline: 16px; }
  .subnav-in { padding-inline: 16px; }
  .inline-field { flex-direction: column; }
  .bento { grid-template-columns: minmax(0, 1fr); padding: 8px; gap: 8px; }
  .trio { gap: 8px; }
  .tile, .tile.wide, .trio .tile { min-height: 520px; }
  .hero-img { max-height: 52vh; margin-top: -20px; }
  .why, .why.steps { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 40px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-cols > div:first-child { grid-column: 1 / -1; }
  .admin-nav { order: 3; width: 100%; margin: 0; padding-bottom: 8px; }
  .bar-in:has(.admin-nav) { flex-wrap: wrap; justify-content: space-between; }
}
@media print {
  .bar, .subnav, .foot { display: none; }
}

.logo { display: inline-flex; align-items: center; gap: 8px; }
.logo img { flex: none; border-radius: 5px; }

.page-shot { flex: 0 0 min(560px, calc(100vw - 40px)); scroll-snap-align: center; margin: 0; }
.page-shot img { display: block; width: 100%; height: auto; background: #fff; border-radius: 6px; }
.page-shot figcaption { margin-top: 10px; text-align: center; font-size: .85rem; color: #a1a1a6; }
.exercises { margin: 24px 0 0; padding: 18px 22px; border-radius: 18px; background: var(--bg-soft); font-weight: 600; text-align: center; }

.post-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.post-item .address { margin: 6px 0 10px; line-height: 1.5; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form input { max-width: 260px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Reading progress: a thin line under the top bar that fills as you scroll. Gold like the buy
   buttons; on a book's page the book's own colour (--progress, from book-accents.css). */
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; pointer-events: none; }
.progress[hidden] { display: none; }
.progress span { display: block; height: 100%; background: var(--progress, var(--cta, #f5b83d)); transform-origin: 0 50%; transform: scaleX(0); }
.links a[aria-current="page"] { color: var(--blue); font-weight: 600; }

/* Key facts under the home hero, in both colour modes. */
.facts-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-block: 8px 4px; }
.fact { background: var(--surface); border-radius: 20px; padding: 18px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.fact strong { font-size: 1.05rem; font-weight: 600; }
.fact span { font-size: .88rem; color: var(--muted); line-height: 1.35; }
@media (max-width: 860px) { .facts-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Light mode: a soft grey page with white cards, a light hero and rounded photo tiles.
   Dark mode keeps its own black look. */
@media not all {
  .hero { background: linear-gradient(#fff, var(--bg) 70%); color: var(--text); overflow: visible; padding-bottom: clamp(16px, 3vw, 32px); }
  .hero .kicker { color: var(--blue); }
  .hero .lead { color: var(--muted); }
  .hero .btn.ghost { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
  .hero .btn.ghost:hover { background: var(--accent); color: #fff; }
  .hero-img { width: min(1040px, calc(100% - 44px)); margin: clamp(36px, 5vw, 56px) auto 0; max-height: 62vh; border-radius: var(--radius); -webkit-mask-image: none; mask-image: none; box-shadow: 0 30px 70px rgb(0 0 0 / .18); }
  .bento { gap: 16px; padding: 16px; width: min(1280px, 100%); margin-inline: auto; }
  .trio { gap: 16px; }
  .tile { border-radius: var(--radius); box-shadow: 0 12px 40px rgb(0 0 0 / .12); }
  .statement { background: #fff; color: var(--text); }
  .why { counter-reset: why; }
  .why > div { counter-increment: why; background: var(--bg); border-radius: 22px; padding: 24px; }
  .why > div::before { content: counter(why); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 14px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 600; font-size: .9rem; }
  .why p { color: var(--muted); }
  .band { box-shadow: var(--shadow); }
  .faq { background: #fff; border: 0; border-radius: var(--radius); padding: 4px 28px; box-shadow: var(--shadow); }
  .faq details:last-child { border-bottom: 0; }
  .card .notice, .band .notice { background: var(--bg); }
  .checkout .card { background: #fff; box-shadow: var(--shadow); }
  .checkout input:not([type="checkbox"]) { background: var(--bg); }
  .chip { box-shadow: 0 1px 3px rgb(0 0 0 / .06); }
  .foot { background: #fff; border-top: 1px solid var(--line); }
  .learn li { box-shadow: var(--shadow); }
}
@media not all {
  .bento { padding: 10px; gap: 10px; }
  .trio { gap: 10px; }
  .hero-img { width: calc(100% - 32px); border-radius: 20px; }
  .faq { padding-inline: 18px; }
}

/* Scripts on the local My books page. */
.script-card { margin-top: 18px; }
.script-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.script-head h3 { margin: 0; }
.code { margin: 14px 0 0; padding: 16px; background: #1d1d1f; color: #f5f5f7; border-radius: 12px; overflow-x: auto; font: .82rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; }
.script-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.script-purpose { margin: 14px 0 0; }
.script-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 28px; margin-top: 10px; }
.script-cols h4 { margin: 10px 0 6px; font-size: .95rem; }
.script-cols ul { margin: 0; }
.script-code { margin-top: 12px; }
.script-code summary { cursor: pointer; color: var(--accent, #0071e3); font-weight: 600; }

/* The ten-chart test on the home page: always a dark trading screen, in light and dark mode. */
.ctest { --up: #30d158; --down: #ff453a; --ink: #f5f5f7; --dim: #a1a1a6; padding-block: clamp(72px, 11vw, 132px); margin-top: clamp(40px, 6vw, 72px); color: var(--ink); background: radial-gradient(120% 70% at 50% 0%, #10233d 0%, #05080d 55%, #000 100%); overflow: hidden; }
.ctest-head { text-align: center; max-width: 760px; margin: 0 auto clamp(28px, 4vw, 44px); }
.ctest-kicker { margin: 0 0 10px; font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 600; background: linear-gradient(90deg, #30d158, #2997ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ctest h2 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
.ctest-lead { margin: 16px auto 0; max-width: 34em; color: var(--dim); font-size: clamp(1.05rem, 1.9vw, 1.35rem); line-height: 1.35; }
.ctest-fallback { text-align: center; color: var(--dim); }
.ctest-board { max-width: 920px; margin-inline: auto; padding: clamp(16px, 3vw, 28px); border-radius: var(--radius); background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .09), 0 30px 90px rgb(0 0 0 / .5); backdrop-filter: blur(20px); }
.ctest-top { display: flex; justify-content: space-between; gap: 12px; font-size: .875rem; color: var(--dim); font-variant-numeric: tabular-nums; }
.ctest-top [data-score] { color: var(--ink); font-weight: 600; }
.ctest-chart { margin: 12px 0 4px; }
.ctest-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.ct-grid { stroke: rgb(255 255 255 / .07); }
.ct-zero { stroke: rgb(255 255 255 / .35); stroke-dasharray: 4 5; }
.ct-axis { fill: #8e8e93; font: 12px var(--font); font-variant-numeric: tabular-nums; }
.ct-zone { fill: rgb(41 151 255 / .1); stroke: rgb(41 151 255 / .45); stroke-dasharray: 5 6; }
.ct-zone.open { fill: rgb(255 255 255 / .04); stroke: rgb(255 255 255 / .18); }
.ct-q { fill: rgb(41 151 255 / .75); font: 600 54px var(--font); }
.ct-up line, .ct-up rect { stroke: var(--up); fill: var(--up); }
.ct-down line, .ct-down rect { stroke: var(--down); fill: var(--down); }
.ct-up line, .ct-down line { stroke-width: 1.3; }
.ct-dot { fill: #fff; stroke: #2997ff; stroke-width: 3; }
.ctest-status { min-height: 2.9em; margin: 6px 0 14px; text-align: center; font-size: 1.0625rem; color: var(--ink); text-wrap: balance; }
.ctest-status[data-tone="right"]::first-letter, .ctest-status[data-tone="wrong"]::first-letter { font-weight: 700; }
.ctest-status[data-tone="right"] { color: #b6f5c6; }
.ctest-status[data-tone="wrong"] { color: #ffc2bd; }
.ctest-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ctest-call { flex: 1 1 180px; max-width: 260px; min-height: 58px; border: 0; border-radius: 18px; font: 600 1.2rem var(--font); letter-spacing: -.02em; color: #fff; cursor: pointer; transition: transform .15s var(--ease), filter .2s, opacity .2s; }
.ctest-call span { font-size: .8em; margin-right: 4px; }
.ctest-call.up { background: linear-gradient(180deg, #34d65c, #1f9e3f); box-shadow: 0 10px 30px rgb(48 209 88 / .25); }
.ctest-call.down { background: linear-gradient(180deg, #ff5a4f, #c9271d); box-shadow: 0 10px 30px rgb(255 69 58 / .25); }
.ctest-call:hover { filter: brightness(1.08); }
.ctest-call:active { transform: scale(.97); }
.ctest-call:disabled { opacity: .45; cursor: default; }
.ctest-actions .btn { min-width: 200px; min-height: 52px; }
.ctest-keys { margin: 10px 0 0; text-align: center; font-size: .75rem; color: #6e6e73; }
.ctest-accounts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.ctest-accounts > div { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 12px; padding: 14px 16px; border-radius: 16px; background: rgb(255 255 255 / .05); }
.ctest-accounts span { font-size: .875rem; font-weight: 600; }
.ctest-accounts small, .ctest-final small { display: block; font-weight: 400; font-size: .75rem; color: var(--dim); }
.ctest-accounts strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; color: var(--up); transition: color .3s; }
.ctest-accounts .down strong { color: var(--down); }
.ctest-accounts b { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: rgb(255 255 255 / .1); overflow: hidden; }
.ctest-accounts i { display: block; height: 100%; background: var(--up); transform-origin: left; transform: scaleX(.5); transition: transform .6s var(--ease), background-color .3s; }
.ctest-accounts .down i { background: var(--down); }
.ctest-note { margin: 12px 0 0; font-size: .75rem; color: var(--dim); text-align: center; }
.ctest-end { text-align: center; padding: clamp(8px, 2vw, 20px) 0 4px; }
.ctest-end h3 { font-size: clamp(2rem, 5vw, 3.25rem); outline: none; }
.ctest-coin { margin: 10px 0 22px; color: var(--dim); font-size: 1.1rem; }
.ctest-final { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 620px; margin: 0 auto 20px; }
.ctest-final > div { padding: 18px; border-radius: 18px; background: rgb(48 209 88 / .1); box-shadow: inset 0 0 0 1px rgb(48 209 88 / .35); }
.ctest-final > div.down { background: rgb(255 69 58 / .1); box-shadow: inset 0 0 0 1px rgb(255 69 58 / .4); }
.ctest-final span { display: block; font-weight: 600; font-size: .9rem; }
.ctest-final strong { display: block; margin: 4px 0; font-size: clamp(1.8rem, 4vw, 2.4rem); font-variant-numeric: tabular-nums; color: var(--up); }
.ctest-final .down strong { color: var(--down); }
.ctest-end [data-end-even] { max-width: 36em; margin: 0 auto 10px; color: var(--dim); }
.ctest-lesson { max-width: 32em; margin: 0 auto 24px; font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.4; }
.ctest .btn.ghost { color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .7); }
.ctest .btn.ghost:hover { background: #fff; color: #000; }
.ctest-again { border: 0; background: none; color: #2997ff; font: inherit; cursor: pointer; padding: 10px 14px; }
.ctest-again:hover { text-decoration: underline; }
.ctest-end:not([hidden]) ~ .ctest-accounts, .ctest-end:not([hidden]) ~ .ctest-note { display: none; }
.ctest-source { max-width: 760px; margin: 22px auto 0; text-align: center; font-size: .7rem; line-height: 1.5; color: #6e6e73; }
@media (max-width: 640px) {
  .ctest-accounts, .ctest-final { grid-template-columns: 1fr; }
  .ctest-call { min-height: 54px; }
  .ct-axis { font-size: 18px; }
}
.ctest [hidden] { display: none !important; }
@media (hover: none) { .ctest-keys { display: none; } }


/* Compact layout (2026-11-07): the book grid is narrower (not shorter), with less empty space between sections. */
.section { padding-block: clamp(44px, 6vw, 76px); }
.hero-copy { padding-top: clamp(40px, 6vw, 72px); }
.bento, .bento.bento { width: min(880px, 100%); margin-inline: auto; gap: 12px; margin-top: 8px; }
.trio { gap: 12px; }
.trio .tile-copy { padding: 30px 16px; }
.trio .tile h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.trio .tile-copy > p:not(.tile-kicker) { font-size: .95rem; }
.ctest { padding-block: clamp(48px, 7vw, 84px); margin-top: clamp(24px, 4vw, 44px); }
.ctest h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.ctest-head { margin-bottom: clamp(20px, 3vw, 32px); }
@media (min-width: 721px) and (max-width: 860px) { .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Chart test: moving averages and the readings strip. */
.ct-ma-fast, .ct-ma-slow { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ct-ma-fast { stroke: #64d2ff; }
.ct-ma-slow { stroke: #ff9f0a; }
.ct-legend text { fill: #a1a1a6; font: 12px var(--font); }
.ctest-clues { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 10px 0 4px; }
.ctest-clues > div { padding: 10px 12px; border-radius: 12px; background: rgb(255 255 255 / .05); min-width: 0; }
.ctest-clues dt { font-size: .7rem; color: var(--dim); margin-bottom: 2px; }
.ctest-clues dd { margin: 0; font-size: .85rem; font-weight: 600; line-height: 1.25; }
.ctest-clues dd.up { color: var(--up); }
.ctest-clues dd.down { color: var(--down); }
@media (max-width: 760px) { .ctest-clues { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ctest-clues > div:first-child { grid-column: 1 / -1; } .ct-legend text { font-size: 18px; } }
.ctest-macro > p { margin: 10px 0 0; font-size: .72rem; font-weight: 600; letter-spacing: .02em; color: var(--dim); text-transform: uppercase; }
.ctest-macro .ctest-clues { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: 6px; }
.ctest-macro .ctest-clues > div { background: rgb(41 151 255 / .08); box-shadow: inset 0 0 0 1px rgb(41 151 255 / .18); }
.ctest-clues small { display: block; margin-top: 2px; font-size: .68rem; line-height: 1.3; color: var(--dim); }
@media (max-width: 760px) { .ctest-macro .ctest-clues > div:first-child { grid-column: auto; } }
.ctest-macro + .ctest-status, .ctest-clues + .ctest-status { margin-top: 16px; }

/* Search inside the book. */
.si { padding-block: clamp(48px, 7vw, 84px); max-width: 860px; }
.si-head { text-align: center; margin-bottom: 24px; }
.si-kicker { margin: 0 0 8px; font-weight: 600; color: var(--accent); }
.si h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.si-lead { margin: 12px auto 0; max-width: 34em; color: var(--muted); font-size: clamp(1.02rem, 1.7vw, 1.2rem); }
.si-form { position: relative; display: flex; gap: 8px; padding: 8px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); transition: box-shadow .2s; }
.si-form:focus-within { box-shadow: var(--shadow), inset 0 0 0 2px var(--blue); }
.si-icon { position: absolute; left: 24px; top: 50%; width: 18px; height: 18px; margin-top: -10px; border: 2.5px solid var(--muted); border-radius: 50%; pointer-events: none; }
.si-icon::after { content: ""; position: absolute; width: 8px; height: 2.5px; background: var(--muted); right: -7px; bottom: -4px; transform: rotate(45deg); border-radius: 2px; }
.si-form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 12px 10px 48px; font: 400 1.15rem var(--font); color: var(--text); outline: none; box-shadow: none; }
.si-form input::-webkit-search-cancel-button { cursor: pointer; }
.si-form .btn { flex: none; min-height: 46px; }
.si-hints { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin: 16px 0 0; font-size: .875rem; }
.si-hints span { color: var(--muted); margin-right: 2px; }
.si-hints a { padding: 6px 13px; border-radius: 999px; background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, color .2s; }
.si-hints a:hover { text-decoration: none; box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }
.si-results { margin-top: 28px; transition: opacity .2s; }
.si-results[aria-busy] { opacity: .5; }
.si-results:empty { display: none; }
.si-summary { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; margin: 0 0 14px; text-wrap: balance; }
.si-map { list-style: none; display: flex; gap: 3px; margin: 0; padding: 0; }
.si-map li { flex: 1; height: 34px; border-radius: 5px; background: var(--line); }
.si-map li[data-level="1"] { background: color-mix(in srgb, var(--blue) 35%, transparent); }
.si-map li[data-level="2"] { background: color-mix(in srgb, var(--blue) 60%, transparent); }
.si-map li[data-level="3"] { background: color-mix(in srgb, var(--blue) 82%, transparent); }
.si-map li[data-level="4"] { background: var(--blue); }
.si-map-key { display: flex; justify-content: space-between; margin: 6px 0 18px; font-size: .72rem; color: var(--muted); }
.si-hits { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.si-hits li { padding: 16px 20px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.si-where { margin: 0 0 6px; font-size: .82rem; color: var(--muted); }
.si-where strong { color: var(--accent); }
.si-snippet { margin: 0; font-size: 1rem; line-height: 1.55; }
.si-snippet mark { background: color-mix(in srgb, #ffd60a 55%, transparent); color: inherit; padding: 0 2px; border-radius: 3px; }
.si-more, .si-fine { margin: 14px 0 0; color: var(--muted); font-size: .85rem; text-align: center; }
.si-none { padding: 22px; border-radius: 18px; border: 2px dashed var(--line); text-align: center; }
.si-none p { margin: 0 0 6px; }
.si-none p:last-child { margin: 0; color: var(--muted); }
@media (max-width: 600px) {
  .si-form { border-radius: 22px; flex-wrap: wrap; }
  .si-form .btn { width: 100%; }
  .si-icon { top: 31px; }
  .si-map li { height: 26px; border-radius: 3px; }
}
html, body { overflow-x: clip; }
.ctest-why { margin: -4px auto 16px; max-width: 46em; padding: 14px 18px; border-radius: 16px; background: rgb(255 214 10 / .08); box-shadow: inset 0 0 0 1px rgb(255 214 10 / .25); font-size: .98rem; line-height: 1.5; text-align: left; }
.ctest-why strong { color: #ffd60a; margin-right: 4px; }

/* Live chart in the home hero (public/hero-live.js). The photo is the poster underneath. */
.hero-stage { position: relative; width: 100%; margin-top: -40px; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%); mask-image: linear-gradient(to bottom, transparent, #000 30%); }
.hero-stage .hero-img { margin-top: 0; -webkit-mask-image: none; mask-image: none; transition: opacity 1.2s var(--ease); }
.hero-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease); }
/* The photo stays faintly behind the live chart instead of disappearing. */
.hero-stage.live .hero-img { opacity: .16; filter: blur(2px) saturate(.8) brightness(.8); }
.hero-stage.live canvas { opacity: 1; }
.hero-caption { position: absolute; left: clamp(16px, 4vw, 40px); bottom: clamp(14px, 3vw, 28px); margin: 0; display: none; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgb(0 0 0 / .55); color: #f5f5f7; font-size: .8rem; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-variant-numeric: tabular-nums; }
.hero-caption strong { font-weight: 600; }
.hero-stage.live .hero-caption { display: inline-flex; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: #30d158; box-shadow: 0 0 0 0 rgb(48 209 88 / .6); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 10px rgb(48 209 88 / 0); } }
.hero-toggle { position: absolute; right: clamp(16px, 4vw, 40px); bottom: clamp(14px, 3vw, 28px); padding: 7px 14px; border: 0; border-radius: 999px; background: rgb(0 0 0 / .55); color: #f5f5f7; font: 500 .8rem var(--font); cursor: pointer; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hero-toggle:hover { background: rgb(0 0 0 / .75); }
@media (max-width: 720px) { .hero-stage { margin-top: -20px; } .hero-stage .hero-img { min-height: 300px; } }
@media not all {
  :root:not([data-theme="dark"]) .hero-stage { width: min(1040px, calc(100% - 44px)); margin: clamp(36px, 5vw, 56px) auto 0; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 30px 70px rgb(0 0 0 / .18); -webkit-mask-image: none; mask-image: none; }
  :root:not([data-theme="dark"]) .hero-stage .hero-img { width: 100%; margin: 0; border-radius: 0; box-shadow: none; }
}

/* Book tiles: a slow camera drift on every photo, each in its own direction. */
@media (prefers-reduced-motion: no-preference) {
  .bento .tile > img { animation: drift-a 26s ease-in-out infinite alternate; }
  .bento .tile:nth-of-type(2n) > img, .trio .tile:nth-child(2) > img { animation-name: drift-b; animation-duration: 31s; }
  .bento .tile:nth-of-type(3n) > img, .trio .tile:nth-child(3) > img { animation-name: drift-c; animation-duration: 23s; }
}
@keyframes drift-a { from { scale: 1.06; translate: -1.5% 0; } to { scale: 1.16; translate: 1.5% -1.5%; } }
@keyframes drift-b { from { scale: 1.14; translate: 1.5% 1%; } to { scale: 1.05; translate: -1.5% -1%; } }
@keyframes drift-c { from { scale: 1.08; translate: 0 1.5%; } to { scale: 1.15; translate: -1% -1.5%; } }

/* The book grid: wider again, between the original and the narrow version. */
.bento, .bento.bento { width: min(1160px, 100%); }

/* 3D books. --k is the thickness in % of the cover width (from the page count). */
.book3d { --k: 6; --ry: 0deg; --rx: 0deg; --gx: 30%; display: block; position: relative; container-type: inline-size; perspective: 900px; border-radius: 0 !important; box-shadow: none !important; background: none !important; }
.book3d[data-depth="3"] { --k: 3; }
.book3d[data-depth="4"] { --k: 4; }
.book3d[data-depth="5"] { --k: 5; }
.book3d[data-depth="6"] { --k: 6; }
.book3d[data-depth="7"] { --k: 7; }
.book3d[data-depth="8"] { --k: 8; }
.book3d[data-depth="9"] { --k: 9; }
.book3d[data-depth="10"] { --k: 10; }
.book3d[data-depth="11"] { --k: 11; }
.book3d[data-depth="12"] { --k: 12; }
.book3d[data-depth="13"] { --k: 13; }
.book3d[data-depth="14"] { --k: 14; }
.book3d-in { --d: calc(var(--k) * 1.3cqi); position: relative; display: block; transform-style: preserve-3d; transform: rotateY(calc(-34deg + var(--ry))) rotateX(var(--rx)); transition: transform .7s var(--ease); }
.book3d .cover-img { position: relative; display: block; width: 100%; height: auto; border-radius: 2px 6px 6px 2px; transform: translateZ(calc(var(--d) / 2)); backface-visibility: hidden; }
/* Page edges: the right side of the block, with fine paper lines. */
.b3-pages { position: absolute; top: 1.2%; bottom: 1.2%; right: 0; width: var(--d); transform: translateX(calc(var(--d) / 2 - 3px)) rotateY(90deg); background: repeating-linear-gradient(90deg, #f4f1ea 0 1px, #d9d4c8 1px 2px), #ece8df; box-shadow: inset 0 0 12px rgb(0 0 0 / .18); }
/* Spine: the left side, a darker shade of the cover. */
.b3-spine { position: absolute; top: 0; bottom: 0; left: 0; width: var(--d); transform: translateX(calc(var(--d) / -2)) rotateY(-90deg); background: linear-gradient(90deg, #0c0c0d, #2a2a2d 45%, #111); border-radius: 2px; }
.b3-back { position: absolute; inset: 0; transform: translateZ(calc(var(--d) / -2)) rotateY(180deg); background: #111; border-radius: 6px 2px 2px 6px; box-shadow: 0 30px 60px rgb(0 0 0 / .55); }
/* Hinge crease and a gloss that moves with the tilt. */
.b3-gloss { position: absolute; inset: 0; transform: translateZ(calc(var(--d) / 2 + .5px)); border-radius: 2px 6px 6px 2px; pointer-events: none;
  background: linear-gradient(90deg, rgb(0 0 0 / .35) 0, rgb(255 255 255 / .18) 1.4%, rgb(0 0 0 / .12) 3%, transparent 6%),
              radial-gradient(120% 90% at var(--gx) 0%, rgb(255 255 255 / .22), transparent 55%); }
/* A soft shadow on the "floor". */
.book3d::after { content: ""; position: absolute; left: 8%; right: -4%; bottom: -5%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgb(0 0 0 / .5), transparent); filter: blur(6px); transform: translateX(calc(var(--k) * .6cqi)); z-index: -1; }
.book-card .book3d { width: 58%; margin: 40px auto 6px; }
.book-card:hover .book3d { transform: none; }
.book-card:hover .book3d-in, .pdp-stage:hover .book3d-in { transform: rotateY(calc(-8deg + var(--ry))) rotateX(var(--rx)) translateZ(10px); }
.pdp-stage .book3d { width: min(300px, 70%); }
.summary .book3d { width: 100%; }
@media (prefers-reduced-motion: reduce) { .book3d-in { transition: none; } }

/* Backtest explorer on strategy pages (public/backtest.js). Always a dark screen. */
.bt { --s: #2997ff; --h: #8e8e93; padding-block: clamp(56px, 8vw, 96px); background: radial-gradient(110% 60% at 50% 0%, #0d1b2e, #000 70%); color: #f5f5f7; }
.bt-head { text-align: center; max-width: 760px; margin: 0 auto 28px; }
.bt-kicker { margin: 0 0 8px; font-weight: 600; color: #64d2ff; }
.bt h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.bt-lead { margin: 14px auto 0; max-width: 36em; color: #a1a1a6; font-size: clamp(1rem, 1.7vw, 1.2rem); text-align: center; }
.bt-panel { max-width: 960px; margin-inline: auto; padding: clamp(14px, 3vw, 26px); border-radius: var(--radius); background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .09); }
.bt-tabs { display: flex; gap: 6px; justify-content: center; margin-bottom: 16px; }
.bt-tabs button { min-width: 72px; padding: 8px 16px; border: 0; border-radius: 999px; background: rgb(255 255 255 / .07); color: #f5f5f7; font: 600 .9rem var(--font); cursor: pointer; }
.bt-tabs button[aria-selected="true"] { background: #f5f5f7; color: #000; }
.bt-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.bt-stats > div { padding: 12px 14px; border-radius: 14px; background: rgb(255 255 255 / .05); }
.bt-stats dt { font-size: .72rem; color: #a1a1a6; }
.bt-stats dd { margin: 2px 0; font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.bt-stats small { display: block; font-size: .7rem; line-height: 1.3; color: #8e8e93; }
.bt-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .78rem; color: #a1a1a6; margin: 4px 0 6px; }
.bt-key::before { content: ""; display: inline-block; width: 16px; height: 3px; margin-right: 6px; vertical-align: middle; border-radius: 2px; background: var(--s); }
.bt-key.hold::before { background: var(--h); }
.bt-key.oos::before { height: 10px; background: rgb(100 210 255 / .16); box-shadow: inset 0 0 0 1px rgb(100 210 255 / .4); }
.bt-chart, .bt-dd { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.bt-grid { stroke: rgb(255 255 255 / .07); }
.bt-base { stroke: rgb(255 255 255 / .3); stroke-dasharray: 4 5; }
.bt-axis { fill: #8e8e93; font: 11px var(--font); font-variant-numeric: tabular-nums; }
.bt-oos { fill: rgb(100 210 255 / .07); }
.bt-oos-label { fill: #64d2ff; font: 600 11px var(--font); }
.bt-hold { fill: none; stroke: var(--h); stroke-width: 1.6; opacity: .85; }
.bt-line { fill: none; stroke: var(--s); stroke-width: 2.4; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgb(41 151 255 / .6)); }
.bt-area { fill: rgb(41 151 255 / .08); }
.bt-dot { fill: #fff; stroke: var(--s); stroke-width: 3; }
.bt-guide { stroke: rgb(255 255 255 / .35); }
.bt-tip rect { fill: rgb(29 29 31 / .95); stroke: rgb(255 255 255 / .15); }
.bt-tip text { fill: #f5f5f7; font: 12px var(--font); font-variant-numeric: tabular-nums; }
.bt-tip text.strat { fill: #64d2ff; font-weight: 600; }
.bt-tip text.hold { fill: #c7c7cc; }
.bt-sub { margin: 14px 0 2px; font-size: .78rem; color: #a1a1a6; }
.bt-dd-strat { fill: rgb(255 69 58 / .55); }
.bt-dd-hold { fill: rgb(174 174 178 / .4); }
.bt-years { margin-top: 16px; }
.bt-years summary { cursor: pointer; font-weight: 600; font-size: .95rem; padding: 6px 0; }
.bt-years table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .85rem; font-variant-numeric: tabular-nums; }
.bt-years th { text-align: left; font-weight: 500; color: #a1a1a6; padding: 4px 6px; }
.bt-years td { padding: 5px 6px; border-top: 1px solid rgb(255 255 255 / .07); position: relative; width: 44%; }
.bt-years td:first-child { width: 12%; color: #a1a1a6; }
.bt-bar { display: inline-block; height: 10px; border-radius: 3px; vertical-align: middle; margin-right: 8px; max-width: 70%; }
.bt-bar.pos { background: #30d158; } .bt-bar.neg { background: #ff453a; }
.bt-bar.hold { opacity: .45; }
.bt-years b { font-weight: 600; }
.bt-fine { max-width: 760px; margin: 18px auto 0; text-align: center; font-size: .72rem; line-height: 1.5; color: #8e8e93; }
@media (max-width: 720px) { .bt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bt-axis { font-size: 16px; } }

/* Topic results (home page): book cards. */
.ask-results { margin-top: 18px; transition: opacity .2s; }
.ask-results[aria-busy] { opacity: .5; }
.ask-results:empty { display: none; }
.ask-summary { margin: 0 0 10px; font-weight: 600; color: #f5f5f7; text-align: center; }
.ask-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ask-card { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 16px; padding: 16px; border-radius: 20px; background: rgb(29 29 31 / .92); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); color: #f5f5f7; animation: ask-in .45s var(--ease) backwards; }
.ask-card:nth-child(2) { animation-delay: .06s; } .ask-card:nth-child(3) { animation-delay: .12s; }
.ask-card.best { box-shadow: inset 0 0 0 2px #2997ff, 0 16px 40px rgb(41 151 255 / .2); }
@keyframes ask-in { from { opacity: 0; transform: translateY(8px); } }
.ask-cover img { width: 74px; border-radius: 4px; box-shadow: 0 8px 20px rgb(0 0 0 / .5); }
.ask-badge { display: inline-block; margin: 0 0 4px; padding: 2px 9px; border-radius: 99px; background: #2997ff; color: #fff; font-size: .7rem; font-weight: 700; }
.ask-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.ask-card h3 a { color: #f5f5f7; }
.ask-cover-note { margin: 0 0 6px; font-size: .85rem; color: #64d2ff; font-weight: 600; }
.ask-chapters { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 8px; }
.ask-chapters span { padding: 3px 9px; border-radius: 8px; background: rgb(255 255 255 / .07); font-size: .72rem; color: #c7c7cc; }
.ask-snippet { margin: 0 0 10px; font-size: .9rem; line-height: 1.5; color: #d2d2d7; }
.ask-snippet mark { background: rgb(255 214 10 / .4); color: inherit; padding: 0 2px; border-radius: 3px; }
.ask-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-card .btn.ghost { color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .6); }
.ask-none { padding: 18px; border-radius: 18px; border: 1.5px dashed rgb(255 255 255 / .25); text-align: center; color: #d2d2d7; }
.ask-none p { margin: 0 0 4px; }
@media (max-width: 600px) {
  .ask-card { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
  .ask-cover img { width: 56px; }
}

/* "What you can learn": grouped topics, then the books for the chosen one. */
.learn-topics { padding-block: clamp(48px, 7vw, 84px); }
.lt-head { text-align: center; max-width: 720px; margin: 0 auto 28px; }
.lt-kicker { margin: 0 0 8px; font-weight: 600; color: var(--accent); }
.learn-topics h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.lt-lead { margin: 12px auto 0; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.2rem); max-width: 34em; }
.lt-groups { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.lt-group { padding: 18px 16px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.lt-group h3 { font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: var(--muted); text-transform: uppercase; margin-bottom: 10px; }
.lt-group p { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.lt-group a { padding: 6px 12px; border-radius: 999px; background: var(--bg); color: var(--text); font-size: .875rem; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s, color .2s, box-shadow .2s; }
.lt-group a:hover { text-decoration: none; box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }
.lt-group a[aria-pressed="true"] { background: var(--blue); color: #fff; box-shadow: none; }
.lt-results { max-width: 820px; margin: 24px auto 0; }
.learn-topics .ask-summary { color: var(--text); }
.learn-topics .ask-card { background: var(--surface); color: var(--text); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.learn-topics .ask-card.best { box-shadow: var(--shadow), inset 0 0 0 2px var(--blue); }
.learn-topics .ask-card h3 a { color: var(--text); }
.learn-topics .ask-cover-note { color: var(--accent); }
.learn-topics .ask-chapters span { background: var(--bg); color: var(--muted); }
.learn-topics .ask-snippet { color: var(--muted); }
.learn-topics .ask-card .btn.ghost { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.learn-topics .ask-none { color: var(--muted); border-color: var(--line); }
@media (max-width: 1000px) { .lt-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lt-group:last-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .lt-groups { grid-template-columns: minmax(0, 1fr); } }

/* Modern hero chart readout: a glass card in the top left of the chart. */
.hero-hud { position: absolute; left: clamp(16px, 4vw, 44px); top: clamp(40px, 9vw, 96px); display: none; padding: 14px 18px 12px; border-radius: 18px; background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); color: #f5f5f7; text-align: left; font-variant-numeric: tabular-nums; }
.hero-stage.live .hero-hud { display: block; }
.hero-hud p { margin: 0; }
.hud-top { display: flex; align-items: center; gap: 7px; font-size: .72rem; color: #a1a1a6; }
.hud-market { margin-top: 4px !important; font-size: .95rem; font-weight: 600; }
.hud-price { display: flex; align-items: baseline; gap: 10px; }
.hud-price strong { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; letter-spacing: -.03em; }
.hud-price em { font-style: normal; font-weight: 600; font-size: .95rem; }
.hud-price em.up { color: #30d158; } .hud-price em.down { color: #ff453a; }
.hero-caption { display: none !important; }
@media (max-width: 720px) { .hero-hud { top: 34px; padding: 10px 14px; } }

/* Flipbook "Look inside" (public/flipbook.js). Pages turn in 3D around the spine. */
.flipbook { display: grid; justify-items: center; gap: 14px; outline: none; padding: 10px 0 18px; }
.fb-stage { display: flex; align-items: center; gap: clamp(12px, 3vw, 32px); }
.fb-book { --pw: min(38vw, calc(70vh * 900 / 1273), 440px); position: relative; width: calc(var(--pw) * 2); height: calc(var(--pw) * 1273 / 900); perspective: 2600px; cursor: pointer; transition: transform .9s cubic-bezier(.645, .045, .355, 1); user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.fb-book.closed { transform: translateX(-25%); }
.fb-book.closed-end { transform: translateX(25%); }
.fb-book::before { content: ""; position: absolute; left: 4%; right: 4%; bottom: -26px; height: 40px; border-radius: 50%; background: radial-gradient(closest-side, rgb(0 0 0 / .65), transparent); filter: blur(8px); }
.fb-book.closed::before { left: 52%; } .fb-book.closed-end::before { right: 52%; }
.fb-leaf { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; transform-origin: left center; transform-style: preserve-3d; transition: transform 1s cubic-bezier(.645, .045, .355, 1); }
.fb-leaf.turned { transform: rotateY(-180deg); }
.fb-face { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #fbfaf7; }
.fb-back-side { transform: rotateY(180deg); }
.fb-face img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
/* Paper: a soft shadow towards the spine on both pages. */
.fb-front.fb-paper::after, .fb-back-side.fb-paper::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.fb-front.fb-paper::after { background: linear-gradient(90deg, rgb(0 0 0 / .22), rgb(0 0 0 / .05) 5%, transparent 12%); }
.fb-back-side.fb-paper::after { background: linear-gradient(270deg, rgb(0 0 0 / .22), rgb(0 0 0 / .05) 5%, transparent 12%); }
.fb-cover { border-radius: 2px 8px 8px 2px; box-shadow: inset 4px 0 8px rgb(0 0 0 / .45); background: #111; }
.fb-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / .4), rgb(255 255 255 / .12) 2%, transparent 6%), linear-gradient(120deg, rgb(255 255 255 / .14), transparent 40%); pointer-events: none; }
.fb-back { display: grid; place-items: center; background: linear-gradient(135deg, #1c1c1e, #0a0a0b); border-radius: 8px 2px 2px 8px; color: #6e6e73; font-size: .85rem; }
.fb-num { position: absolute; right: 10px; bottom: 10px; padding: 3px 9px; border-radius: 99px; background: rgb(0 0 0 / .55); color: #fff; font-size: .7rem; font-weight: 600; }
.fb-back-side .fb-num { right: auto; left: 10px; }
.fb-note { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 12%; color: #1d1d1f; font-family: Georgia, "Times New Roman", serif; text-align: center; }
.fb-note h3 { font-family: var(--font); font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
.fb-note p { margin: 0; font-size: clamp(.9rem, 1.3vw, 1.05rem); line-height: 1.5; color: #48484a; }
.fb-note-kicker { font-family: var(--font); font-size: .75rem !important; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #0071e3 !important; }
.fb-note-hint { font-size: .8rem !important; color: #8e8e93 !important; }
.fb-end .btn { align-self: center; margin-top: 8px; font-family: var(--font); }
.fb-btn { flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: #2c2c2e; color: #f5f5f7; font-size: 1.8rem; line-height: 1; cursor: pointer; transition: background-color .2s, opacity .2s; }
.fb-btn:hover { background: #3a3a3c; }
.fb-btn:disabled { opacity: .3; cursor: default; }
.fb-status { margin: 0; min-height: 1.4em; font-size: .85rem; color: #a1a1a6; font-variant-numeric: tabular-nums; }
.flipbook:focus-visible .fb-book { outline: 2px solid var(--blue); outline-offset: 8px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .fb-leaf, .fb-book { transition: none; } }
.viewer[hidden] { display: none; }

/* Hero ticker tape: every year of the market on screen, scrolling along the bottom. */
.hero-ticker { position: absolute; left: 0; right: 0; bottom: 0; height: 38px; overflow: hidden; display: none; align-items: center; border-top: 1px solid rgb(255 255 255 / .08); background: linear-gradient(rgb(0 0 0 / .2), rgb(0 0 0 / .6)); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.hero-stage.live .hero-ticker { display: flex; }
.tt-track { display: flex; width: max-content; animation: tt-scroll var(--tt-time, 120s) linear infinite; }
.tt-strip { display: flex; align-items: center; gap: 22px; padding-right: 22px; white-space: nowrap; font-size: .78rem; font-variant-numeric: tabular-nums; }
.tt-strip b { color: #f5f5f7; font-weight: 600; letter-spacing: .02em; }
.tt-strip .up { color: #30d158; } .tt-strip .down { color: #ff453a; }
@keyframes tt-scroll { to { transform: translateX(-50%); } }
.hero-stage .hero-toggle { bottom: 50px; }
.hero-stage:hover .tt-track { animation-play-state: paused; }
.hero-stage.paused .tt-track { animation-play-state: paused; }


/* TradingView tools page. */
.th { position: relative; overflow: hidden; background: radial-gradient(90% 80% at 70% 10%, #0f2340 0%, #050810 55%, #000 100%); color: #f5f5f7; min-height: clamp(460px, 62vh, 620px); display: flex; align-items: flex-end; }
.th-curves { position: absolute; inset: 8% 0 0 30%; width: 70%; height: 92%; opacity: .9; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%); }
.th-line { fill: none; stroke-width: 2.4; stroke-linejoin: round; filter: drop-shadow(0 0 8px currentColor); stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; }
@media (prefers-reduced-motion: no-preference) {
  .th-line { animation: th-draw 3.2s cubic-bezier(.4, 0, .2, 1) backwards; }
  .th-line:nth-of-type(2) { animation-delay: .35s; } .th-line:nth-of-type(3) { animation-delay: .7s; }
}
@keyframes th-draw { from { stroke-dashoffset: 1; } }
.th-copy { position: relative; padding-block: clamp(56px, 9vw, 110px) clamp(40px, 6vw, 64px); }
.th-kicker { margin: 0 0 10px; font-weight: 600; color: #64d2ff; }
.th h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); max-width: 10em; }
.th .lead { color: #a1a1a6; max-width: 30em; }
.th-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin: 26px 0 0; font-size: .85rem; color: #d2d2d7; }
.th-legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; margin-right: 7px; vertical-align: middle; }
.th-legend .c0 { background: #2997ff; } .th-legend .c1 { background: #30d158; } .th-legend .c2 { background: #bf5af2; }
.th-legend em { flex-basis: 100%; font-style: normal; font-size: .75rem; color: #8e8e93; }
.tools-main { padding-top: clamp(28px, 4vw, 44px); }
.tc-filter { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 22px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.tc-filter[hidden] { display: none; }
.tc-filter button { border: 0; background: none; color: var(--text); font: 500 .9rem var(--font); padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: background-color .2s, color .2s; }
.tc-filter button small { margin-left: 4px; color: var(--muted); font-size: .75rem; }
.tc-filter button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.tc-filter button[aria-pressed="true"] small { color: inherit; opacity: .7; }
.tc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.tc { display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; background: var(--surface); color: var(--text); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.tc[hidden] { display: none; }
.tc:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow-lift), inset 0 0 0 1px var(--line); }
.tc-visual { position: relative; height: 150px; padding: 22px 18px 10px; background: radial-gradient(120% 120% at 80% 0%, #13233b, #07090d 70%); }
.tc-spark, .tc-art { display: block; width: 100%; height: 100%; overflow: visible; }
.tc-spark .line { fill: none; stroke: #2997ff; stroke-width: 2.4; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgb(41 151 255 / .8)); }
.tc-spark .area { fill: rgb(41 151 255 / .14); }
.tc-spark.c1 .line { stroke: #30d158; filter: drop-shadow(0 0 6px rgb(48 209 88 / .7)); } .tc-spark.c1 .area { fill: rgb(48 209 88 / .12); }
.tc-spark.c2 .line { stroke: #bf5af2; filter: drop-shadow(0 0 6px rgb(191 90 242 / .7)); } .tc-spark.c2 .area { fill: rgb(191 90 242 / .12); }
.tc-art .price { fill: none; stroke: #f5f5f7; stroke-width: 2; stroke-linejoin: round; opacity: .9; }
.tc-art .t { fill: #c7c7cc; font: 600 10px var(--font); }
.tc-art .z-up { fill: rgb(48 209 88 / .16); } .tc-art .z-down { fill: rgb(255 69 58 / .16); }
.tc-art .l-up { stroke: #30d158; stroke-width: 1.5; } .tc-art .l-mid { stroke: #f5f5f7; stroke-dasharray: 4 4; } .tc-art .l-down { stroke: #ff453a; stroke-width: 1.5; }
.tc-art .c-up { fill: #30d158; } .tc-art .c-flat { fill: #8e8e93; }
.tc-art .badge { fill: rgb(255 255 255 / .1); stroke: rgb(255 255 255 / .2); }
.tc-art .s-asia { fill: rgb(191 90 242 / .16); } .tc-art .s-london { fill: rgb(41 151 255 / .16); } .tc-art .s-ny { fill: rgb(255 159 10 / .14); }
.tc-art text[x="292"] { text-anchor: end; }
.tc-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.tc-kind { margin: 0 0 6px; font-size: .75rem; font-weight: 600; letter-spacing: .02em; }
.tc-kind.indicator { color: #bf5af2; } .tc-kind.strategy { color: var(--accent); }
.tc h3 { font-size: 1.45rem; margin-bottom: 6px; }
.tc-tag { margin: 0 0 14px; color: var(--muted); font-size: .95rem; line-height: 1.4; }
.tc-stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; margin: 0 0 6px; }
.tc-stats span { padding: 8px 8px 7px; border-radius: 12px; background: var(--bg); font-size: .68rem; color: var(--muted); line-height: 1.2; }
.tc-stats b { display: block; font-size: 1.05rem; color: var(--text); font-variant-numeric: tabular-nums; margin-bottom: 2px; }
.tc-note { margin: 0 0 14px; font-size: .7rem; color: var(--muted); }
.tc-foot { margin: auto 0 0; display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); }
.tc-price { font-size: 1.15rem; font-weight: 600; }
.tc-more { color: var(--accent); font-size: .9rem; font-weight: 500; }
.tl-title { text-align: center; margin-bottom: clamp(28px, 4vw, 44px); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 26px; left: 16%; right: 16%; height: 2px; background: linear-gradient(90deg, var(--blue), #30d158); opacity: .5; }
.timeline li { position: relative; text-align: center; padding: 0 12px; }
.tl-num { position: relative; display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 1.3rem; font-weight: 700; box-shadow: 0 0 0 8px var(--bg), 0 10px 30px rgb(0 113 227 / .35); }
.timeline li:nth-child(3) .tl-num { background: #30d158; box-shadow: 0 0 0 8px var(--bg), 0 10px 30px rgb(48 209 88 / .35); }
.timeline h3 { font-size: 1.2rem; margin-bottom: 6px; }
.timeline p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .tc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .tc-grid, .timeline { grid-template-columns: minmax(0, 1fr); }
  .timeline::before { display: none; }
  .th-curves { inset: auto 0 0 0; width: 100%; height: 55%; opacity: .55; }
}

/* Live demos on indicator pages (public/indicator-demo.js). Always a dark screen. */
.demo { padding-block: clamp(56px, 8vw, 96px); background: radial-gradient(110% 60% at 50% 0%, #1b1033, #000 70%); color: #f5f5f7; }
.dm-head { text-align: center; max-width: 760px; margin: 0 auto 28px; }
.dm-kicker { margin: 0 0 8px; font-weight: 600; color: #bf5af2; }
.demo h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.dm-lead { margin: 14px auto 0; max-width: 36em; color: #a1a1a6; font-size: clamp(1rem, 1.7vw, 1.2rem); text-align: center; }
.dm-panel { max-width: 1060px; margin-inline: auto; padding: clamp(14px, 2.6vw, 24px); border-radius: var(--radius); background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .09), 0 30px 90px rgb(0 0 0 / .5); }
.dm-panel[hidden] { display: none; }
.dm-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dm-tabs, .dm-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgb(255 255 255 / .07); }
.dm-tabs button, .dm-seg button { border: 0; background: none; color: #f5f5f7; font: 500 .88rem var(--font); padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.dm-tabs button[aria-pressed="true"], .dm-seg button[aria-pressed="true"] { background: #f5f5f7; color: #000; }
.dm-seg button[data-dir="-1"][aria-pressed="true"] { background: #ff453a; color: #fff; }
.dm-seg button[data-dir="1"][aria-pressed="true"] { background: #30d158; color: #000; }
.dm-hint { margin: 0; font-size: .8rem; color: #8e8e93; }
.dm-inputs { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-bottom: 14px; }
.dm-inputs label { display: flex; flex-direction: column; gap: 6px; font-size: .8rem; color: #a1a1a6; min-width: 200px; }
.dm-inputs b { color: #f5f5f7; }
.dm-inputs input[type="number"] { width: 170px; padding: 9px 12px; border-radius: 10px; border: 0; background: rgb(255 255 255 / .08); color: #f5f5f7; font: 600 1rem var(--font); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); }
.dm-inputs input[type="range"] { width: 220px; accent-color: #bf5af2; }
.dm-main { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 16px; align-items: start; }
.dm-chart { display: block; width: 100%; height: auto; touch-action: none; cursor: ns-resize; border-radius: 14px; background: rgb(0 0 0 / .35); }
.tc-out ~ * , .dm-main:has(.tc-out) .dm-chart { cursor: crosshair; }
.dm-grid { stroke: rgb(255 255 255 / .07); }
.dm-axis { fill: #8e8e93; font: 11px var(--font); font-variant-numeric: tabular-nums; }
.dm-up line, .dm-up rect { stroke: #30d158; fill: #30d158; } .dm-down line, .dm-down rect { stroke: #ff453a; fill: #ff453a; }
.dm-up line, .dm-down line { stroke-width: 1.2; }
.dm-out { margin: 0; display: grid; gap: 8px; }
.dm-out > div { padding: 11px 14px; border-radius: 14px; background: rgb(255 255 255 / .05); }
.dm-out dt { font-size: .72rem; color: #a1a1a6; }
.dm-out dd { margin: 2px 0 0; font-weight: 600; font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.dm-out .big { background: rgb(191 90 242 / .14); box-shadow: inset 0 0 0 1px rgb(191 90 242 / .4); }
.dm-out .big dd { font-size: 1.5rem; color: #e0b3ff; }
.dm-out .neg dd { color: #ff6961; } .dm-out .pos dd { color: #30d158; }
.rr-win { fill: rgb(48 209 88 / .1); } .rr-loss { fill: rgb(255 69 58 / .14); }
.rr-entry { stroke: #f5f5f7; stroke-dasharray: 5 5; }
.rr-target { stroke: #30d158; stroke-width: 1.4; }
.rr-label { fill: #d2d2d7; font: 600 11px var(--font); }
.rr-stop line { stroke: #ff453a; stroke-width: 2.5; }
.rr-stop text { fill: #fff; font: 700 11.5px var(--font); pointer-events: none; }
.rr-handle { fill: #ff453a; filter: drop-shadow(0 4px 10px rgb(255 69 58 / .5)); }
.rr-stop:focus { outline: none; } .rr-stop:focus-visible .rr-handle { stroke: #fff; stroke-width: 2; }
.tc-fill.up { fill: rgb(48 209 88 / .16); } .tc-fill.down { fill: rgb(255 69 58 / .16); } .tc-fill.range { fill: rgb(142 142 147 / .12); }
.tc-fast { stroke-width: 2.4; } .tc-fast.up { stroke: #30d158; } .tc-fast.down { stroke: #ff453a; } .tc-fast.range { stroke: #8e8e93; }
.tc-slow { stroke: rgb(255 255 255 / .45); stroke-width: 1.3; }
.tc-rib.up { fill: #30d158; } .tc-rib.down { fill: #ff453a; } .tc-rib.range { fill: #48484a; }
.tc-rib.s1 { opacity: .55; }
.tc-cursor { stroke: rgb(255 255 255 / .5); stroke-dasharray: 3 4; }
.tc-dot { fill: #fff; }
.tc-out { gap: 10px; }
.tc-state { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px !important; }
.tc-state strong { font-size: 1.35rem; }
.tc-state.up strong { color: #30d158; } .tc-state.down strong { color: #ff6961; } .tc-state.range strong { color: #c7c7cc; }
.tc-when, .tc-held { font-size: .75rem; color: #a1a1a6; }
.tc-why { margin: 4px 0 0; font-size: .78rem; color: #a1a1a6; font-weight: 600; }
.tc-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tc-checks li { padding: 8px 10px 8px 32px; border-radius: 10px; background: rgb(255 255 255 / .04); font-size: .82rem; position: relative; }
.tc-checks li::before { position: absolute; left: 10px; top: 7px; font-weight: 700; }
.tc-checks li.ok::before { content: "✓"; color: #30d158; } .tc-checks li.no::before { content: "✗"; color: #8e8e93; } .tc-checks li.no { color: #8e8e93; }
.tc-extra { margin: 0; font-size: .78rem; color: #a1a1a6; }
.dm-tz { font-size: .85rem; color: #a1a1a6; display: flex; gap: 10px; align-items: center; }
.dm-tz select { padding: 8px 12px; border-radius: 10px; border: 0; background: rgb(255 255 255 / .08); color: #f5f5f7; font: 500 .9rem var(--font); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); }
.sm-main { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); justify-content: center; align-items: center; }
.sm-svg { width: 100%; height: auto; }
.sm-face { fill: rgb(255 255 255 / .03); stroke: rgb(255 255 255 / .1); }
.sm-tick { stroke: rgb(255 255 255 / .3); }
.sm-hour { fill: #8e8e93; font: 600 12px var(--font); }
.sm-arc { fill: none; stroke-width: 20; stroke-linecap: round; opacity: .35; }
.sm-arc.open { opacity: 1; filter: drop-shadow(0 0 10px currentColor); }
.sm-arc.asia { stroke: #bf5af2; color: #bf5af2; } .sm-arc.london { stroke: #2997ff; color: #2997ff; } .sm-arc.ny { stroke: #ff9f0a; color: #ff9f0a; }
.sm-hand { stroke: #f5f5f7; stroke-width: 2; }
.sm-now { fill: #fff; filter: drop-shadow(0 0 8px #fff); }
.sm-pin { fill: #f5f5f7; }
.sm-clock { fill: #f5f5f7; font: 700 34px var(--font); font-variant-numeric: tabular-nums; }
.sm-sub { fill: #a1a1a6; font: 500 12px var(--font); }
.sm-big { fill: #f5f5f7; font: 700 18px var(--font); }
.sm-out { gap: 10px; }
.sm-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 16px !important; border-left: 4px solid transparent; }
.sm-row strong { font-size: 1.05rem; } .sm-row span { font-variant-numeric: tabular-nums; color: #d2d2d7; text-align: right; }
.sm-row em { grid-column: 1 / -1; font-style: normal; font-size: .8rem; color: #a1a1a6; }
.sm-row.asia { border-color: #bf5af2; } .sm-row.london { border-color: #2997ff; } .sm-row.ny { border-color: #ff9f0a; }
.sm-row.open { background: rgb(48 209 88 / .1); } .sm-row.open em { color: #30d158; font-weight: 600; }
.dm-fine { max-width: 760px; margin: 18px auto 0; text-align: center; font-size: .72rem; line-height: 1.5; color: #8e8e93; }
@media (max-width: 860px) { .dm-main, .sm-main { grid-template-columns: minmax(0, 1fr); } .dm-axis { font-size: 16px; } }
.sm-clock, .sm-sub, .sm-big { paint-order: stroke; stroke: #0c0c0e; stroke-width: 6px; stroke-linejoin: round; }

/* Start here: personas, then a step-by-step reading path. */
.sp-hero { background: radial-gradient(100% 70% at 50% 0%, #0f2340, #000 70%); color: #f5f5f7; padding-block: clamp(56px, 9vw, 104px) clamp(40px, 6vw, 64px); text-align: center; }
.sp-kicker { margin: 0 0 8px; font-weight: 600; color: #64d2ff; }
.sp-hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
.sp-hero .lead { margin-inline: auto; color: #a1a1a6; }
.sp-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: clamp(32px, 5vw, 52px); text-align: left; }
.sp-persona { display: flex; flex-direction: column; gap: 6px; padding: 20px 18px; border-radius: 22px; background: rgb(255 255 255 / .05); color: #f5f5f7; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); transition: transform .3s var(--ease), box-shadow .3s, background-color .3s; }
.sp-persona:hover { text-decoration: none; transform: translateY(-3px); background: rgb(255 255 255 / .08); }
.sp-persona[aria-pressed="true"] { background: rgb(41 151 255 / .14); box-shadow: inset 0 0 0 2px #2997ff, 0 20px 50px rgb(41 151 255 / .2); }
.sp-icon svg { width: 34px; height: 34px; fill: none; stroke: #64d2ff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.sp-persona strong { font-size: 1.15rem; }
.sp-persona span:not(.sp-icon) { font-size: .88rem; color: #a1a1a6; line-height: 1.4; }
.sp-persona em { margin-top: auto; padding-top: 8px; font-style: normal; font-size: .78rem; font-weight: 600; color: #64d2ff; }
.sp-paths { padding-block: clamp(40px, 6vw, 72px); }
.sp-path { padding-block: 12px clamp(32px, 5vw, 56px); }
.sp-path[hidden] { display: none; }
.sp-path > h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 26px; }
.sp-road { list-style: none; margin: 0; padding: 0 0 0 0; position: relative; display: grid; gap: 18px; }
.sp-road::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 3px; border-radius: 3px; background: linear-gradient(var(--blue), #30d158); opacity: .5; }
.sp-step { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; align-items: start; }
.sp-num { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 1.2rem; box-shadow: 0 0 0 6px var(--bg); }
.sp-step:last-child .sp-num { background: #30d158; }
.sp-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 22px; align-items: center; padding: 20px 24px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.sp-cover .book3d { width: 100%; margin: 0; }
.sp-cover > .cover { width: 100%; border-radius: 8px; }
.sp-kind { margin: 0 0 4px; font-size: .75rem; font-weight: 600; color: var(--accent); }
.sp-info h3 { font-size: 1.35rem; margin-bottom: 6px; }
.sp-info h3 a { color: var(--text); }
.sp-why { margin: 0 0 10px; color: var(--muted); font-size: 1rem; line-height: 1.45; }
.sp-meta { display: flex; gap: 14px; margin: 0 0 12px; font-size: .85rem; font-weight: 600; }
.sp-meta span:first-child:not(:last-child) { color: var(--muted); font-weight: 500; }
.sp-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-choice-title { margin: 10px 0 12px; font-weight: 600; font-size: 1.1rem; }
.sp-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sp-choice-grid .sp-card { grid-template-columns: 80px minmax(0, 1fr); gap: 14px; padding: 16px; }
.sp-choice-grid .sp-info h3 { font-size: 1.1rem; }
.sp-total { margin: 22px 0 0 66px; padding: 14px 18px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-size: .9rem; }
@media (max-width: 900px) { .sp-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sp-choice-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .sp-pick { grid-template-columns: minmax(0, 1fr); }
  .sp-card { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .sp-step { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; }
  .sp-num { width: 36px; height: 36px; font-size: 1rem; }
  .sp-road::before { left: 17px; }
  .sp-total { margin-left: 46px; }
}

/* Tool pages: lessons from the books. */
.lessons { padding-block: clamp(56px, 8vw, 96px); }
.ls-head { text-align: center; max-width: 720px; margin: 0 auto 30px; }
.ls-kicker { margin: 0 0 8px; font-weight: 600; color: #ff9f0a; }
.lessons h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
.ls-lead { margin: 12px auto 0; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.2rem); }
.ls-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ls-card { display: flex; flex-direction: column; gap: 8px; padding: 24px 22px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.ls-num { font-size: 2.4rem; font-weight: 700; line-height: 1; letter-spacing: -.04em; background: linear-gradient(135deg, #ff9f0a, #ff375f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ls-card h3 { font-size: 1.2rem; line-height: 1.25; }
.ls-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.ls-src { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: .8rem; font-weight: 600; }
.ls-books { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.ls-book { display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); transition: transform .3s var(--ease); }
.ls-book:hover { text-decoration: none; transform: translateY(-2px); }
.ls-book img { width: 48px; border-radius: 4px; box-shadow: 0 6px 16px rgb(0 0 0 / .35); }
.ls-book span { display: flex; flex-direction: column; }
.ls-book small { color: var(--muted); font-size: .78rem; }
.ls-book em { font-style: normal; font-weight: 600; margin-left: 8px; color: var(--accent); }
@media (max-width: 860px) { .ls-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Shop (2026-11-07 redesign) ---------- */
.shop-hero { position: relative; padding-block: clamp(56px, 8vw, 104px) 0; text-align: center; }
.shop-kicker { margin: 0 0 10px; font-weight: 600; color: var(--accent); letter-spacing: .02em; }
.shop-hero h1 { font-size: clamp(3rem, 8vw, 5.6rem); line-height: 1; letter-spacing: -.04em; margin: 0 0 16px; background: linear-gradient(180deg, #fff 30%, #8e8e93); -webkit-background-clip: text; background-clip: text; color: transparent; }
.shop-hero .lead { max-width: 560px; margin: 0 auto; }
.shop-perks { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0; margin: 26px 0 0; }
.shop-perks li { position: relative; padding: 8px 16px 8px 36px; border-radius: 980px; background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); font-size: .9rem; color: var(--text); }
.shop-perks li::before { content: ""; position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: #30d158; }
.shop-perks li::after { content: ""; position: absolute; left: 17.5px; top: 50%; width: 4px; height: 8px; margin-top: -6px; border: solid #000; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.shop-shelf { position: relative; display: flex; justify-content: center; align-items: flex-end; height: clamp(170px, 24vw, 290px); margin: 44px auto 0; perspective: 1400px; }
.shop-shelf::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -14px; height: 40px; background: radial-gradient(closest-side, rgb(41 151 255 / .35), transparent); filter: blur(6px); }
.shop-shelf a { display: block; flex: none; margin: 0 -14px; transition: transform .5s var(--ease); }
.shop-shelf a:hover { z-index: 3; }
.shop-shelf img { display: block; width: clamp(90px, 13vw, 170px); height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; box-shadow: 0 24px 50px rgb(0 0 0 / .7), inset 0 0 0 1px rgb(255 255 255 / .1); transition: transform .5s var(--ease); }
.shop-shelf [data-shelf="0"] { transform: rotateY(28deg) translateZ(-60px) scale(.82); }
.shop-shelf [data-shelf="1"] { transform: rotateY(20deg) translateZ(-30px) scale(.9); }
.shop-shelf [data-shelf="2"] { transform: rotateY(10deg) scale(.96); }
.shop-shelf [data-shelf="3"] { transform: translateZ(40px) scale(1.06); z-index: 2; }
.shop-shelf [data-shelf="4"] { transform: rotateY(-10deg) scale(.96); }
.shop-shelf [data-shelf="5"] { transform: rotateY(-20deg) translateZ(-30px) scale(.9); }
.shop-shelf [data-shelf="6"] { transform: rotateY(-28deg) translateZ(-60px) scale(.82); }
.shop-shelf a:hover img { transform: translateY(-12px) scale(1.05); }
.shop-bar { position: sticky; top: 44px; z-index: 5; margin-top: clamp(40px, 6vw, 72px); background: rgb(0 0 0 / .72); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); border-block: 1px solid rgb(255 255 255 / .08); }
.shop-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 12px; }
.shop-bar .chips { margin: 0; padding: 0; flex: 1; min-width: 0; }
.seg { display: flex; flex: none; gap: 4px; padding: 4px; border-radius: 980px; background: var(--bg-soft); }
.seg .chip { padding: 6px 14px; background: transparent; }
.seg .chip[aria-current="true"] { background: var(--surface); color: var(--text); box-shadow: 0 2px 8px rgb(0 0 0 / .5), inset 0 0 0 1px rgb(255 255 255 / .1); }
.shop-list, .shop-sets { padding-block: clamp(36px, 5vw, 56px) 0; }
.shop-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.shop-list-head h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.03em; }
.shop-list-head .count, .shop-list-head .muted { margin: 0; }
.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 22px; }
.scard { display: flex; flex-direction: column; color: inherit; border-radius: 26px; overflow: hidden; background: #111113; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .07); transition: transform .45s var(--ease), box-shadow .45s; }
.scard:hover { text-decoration: none; transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgb(41 151 255 / .5), 0 24px 60px rgb(0 0 0 / .6); }
.scard-stage { position: relative; isolation: isolate; display: grid; place-items: center; aspect-ratio: 5 / 4; overflow: hidden; background: radial-gradient(120% 90% at 50% 100%, #1d2a3a, #050608); }
.scard-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: blur(14px) saturate(1.3); transform: scale(1.2); z-index: -1; transition: opacity .5s; }
.scard:hover .scard-bg { opacity: .55; }
.scard-stage::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, #111113); z-index: -1; }
.scard-stage .cover { width: 44%; margin-top: 8px; transition: transform .6s var(--ease); }
.scard:hover .scard-stage .cover { transform: translateY(-6px) scale(1.03); }
.scard-level { position: absolute; top: 14px; left: 14px; padding: 5px 11px; border-radius: 980px; background: rgb(0 0 0 / .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: .75rem; font-weight: 600; color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); }
.scard-body, .set-body { display: flex; flex-direction: column; flex: 1; padding: 20px 24px 22px; }
.scard-topic { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.scard-body h3, .set-body h3 { margin: 0 0 8px; font-size: 1.35rem; line-height: 1.15; letter-spacing: -.02em; }
.scard-body .muted, .set-body .muted { margin: 0; font-size: .94rem; line-height: 1.45; flex: 1; }
.scard-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgb(255 255 255 / .08); }
.scard-meta { font-size: .85rem; color: var(--muted); }
.scard-price { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; }
.scard-price i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; font-style: normal; font-size: .95rem; transition: transform .3s var(--ease); }
.scard:hover .scard-price i, .set-card:hover .scard-price i { transform: translateX(3px); }
.set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 22px; }
.set-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); color: inherit; border-radius: 26px; overflow: hidden; background: linear-gradient(135deg, #14171d, #0d0e10); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); transition: transform .45s var(--ease), box-shadow .45s; }
.set-card:hover { text-decoration: none; transform: translateY(-5px); box-shadow: inset 0 0 0 1px rgb(255 214 10 / .45), 0 24px 60px rgb(0 0 0 / .6); }
.set-fan { position: relative; min-height: 230px; background: radial-gradient(90% 80% at 50% 90%, #2a2412, #07080a); }
.set-fan img { position: absolute; left: 50%; bottom: 26px; width: 34%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 5px; margin-left: -17%; box-shadow: 0 14px 30px rgb(0 0 0 / .7); transform-origin: 50% 120%; transition: transform .5s var(--ease); }
.set-fan img[data-i="0"] { z-index: 5; }
.set-fan img[data-i="1"] { transform: rotate(-12deg); z-index: 4; }
.set-fan img[data-i="2"] { transform: rotate(12deg); z-index: 3; }
.set-fan img[data-i="3"] { transform: rotate(-24deg); z-index: 2; }
.set-fan img[data-i="4"] { transform: rotate(24deg); z-index: 1; }
.set-card:hover .set-fan img[data-i="1"] { transform: rotate(-16deg); }
.set-card:hover .set-fan img[data-i="2"] { transform: rotate(16deg); }
.set-card:hover .set-fan img[data-i="3"] { transform: rotate(-30deg); }
.set-card:hover .set-fan img[data-i="4"] { transform: rotate(30deg); }
.set-save { padding: 5px 12px; border-radius: 980px; background: rgb(255 214 10 / .14); color: #ffd60a; font-size: .85rem; font-weight: 700; }
@media (max-width: 720px) {
  .shop-bar-in { flex-direction: column; align-items: stretch; gap: 10px; }
  .seg { align-self: flex-start; }
  .set-card { grid-template-columns: 1fr; }
  .shop-shelf a { margin: 0 -18px; }
}

/* ---------- Book page buy box ---------- */
.buybox { margin-top: 24px; padding: 22px; border-radius: 24px; background: linear-gradient(160deg, #18191c, #0f1012); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .09); }
.buybox-top { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.buybox .price.big { margin: 0; font-size: 2.2rem; }
.buybox-note { margin: 0; color: var(--muted); font-size: .92rem; }
.buybox-save { margin: 8px 0 0; color: #ffd60a; font-weight: 600; }
.buybox-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 18px; }
.buybox-actions .btn { min-height: 50px; font-weight: 600; }
.buybox-secure { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: .82rem; color: var(--muted); }
.lock { position: relative; display: inline-block; width: 11px; height: 9px; margin-top: 5px; border-radius: 2px; background: var(--muted); }
.lock::before { content: ""; position: absolute; left: 2px; bottom: 7px; width: 7px; height: 6px; border: 1.5px solid var(--muted); border-bottom: 0; border-radius: 4px 4px 0 0; box-sizing: border-box; }

/* ---------- Smooth experience (2026-11-08) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .22s var(--ease) both; }
  ::view-transition-new(root) { animation: vt-in .32s var(--ease) both; }
}
@keyframes vt-out { to { opacity: 0; transform: scale(.985); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
[id] { scroll-margin-top: 110px; }
#inside:target .inside-head h2 { animation: flash-in 1.2s var(--ease); }
@keyframes flash-in { 0% { color: var(--accent); } 100% { color: inherit; } }

/* "What you'll learn": a narrower, compact column */
.learn-sec { max-width: 920px; }
.learn-sec .learn { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 10px; margin-top: 32px; }
.learn-sec .learn li { grid-template-columns: auto auto 1fr; grid-template-rows: auto; align-items: center; column-gap: 14px; padding: 16px 20px; font-size: 1rem; border-radius: 18px; }
.learn-sec .learn-n { grid-row: 1; grid-column: 1; }
.learn-sec .learn-tick { grid-row: 1; grid-column: 2; width: 26px; height: 26px; }
.learn-sec .learn-tick::after { left: 9.5px; top: 5.5px; width: 6px; height: 12px; }
.learn-sec .learn-t { grid-row: 1; grid-column: 3; }
.learn-sec .exercises { max-width: none; }

/* ---------- Sliders ---------- */
.slider { position: relative; }
.slider-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 44px) / 2.6); gap: 22px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 18px; margin: 0; list-style: none; cursor: grab; }
.slider-track::-webkit-scrollbar { display: none; }
.slider-track > * { scroll-snap-align: start; min-width: 0; }
.slider-track.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.slider-track.dragging a { pointer-events: none; }
.slider-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.slider-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .1); color: var(--text); font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background-color .2s, opacity .2s, transform .2s var(--ease); }
.slider-btn:hover { background: rgb(255 255 255 / .2); }
.slider-btn:active { transform: scale(.94); }
.slider-btn[disabled] { opacity: .3; cursor: default; }
.slider .ls-grid { display: grid; }
@media (max-width: 760px) { .slider-track { grid-auto-columns: 84%; gap: 14px; } }

/* ---------- Tool product stage ---------- */
.pdp-stage.is-tool { perspective: 1400px; background: radial-gradient(120% 90% at 70% 0%, #10253f, #040507 70%); }
.pdp-stage.is-tool .pdp-bg { opacity: .22; }
.tstage { position: relative; width: min(520px, 100%); aspect-ratio: 5 / 4; transform-style: preserve-3d; transform: rotateY(var(--ry, -14deg)) rotateX(var(--rx, 8deg)); transition: transform .5s var(--ease); }
.tstage-screen { position: absolute; inset: 8% 0 6% 10%; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: linear-gradient(160deg, #10141b, #07090c); box-shadow: 0 40px 90px rgb(0 0 0 / .75), inset 0 0 0 1px rgb(255 255 255 / .12); transform: translateZ(40px); }
.tstage-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid rgb(255 255 255 / .07); font-size: .78rem; color: var(--muted); }
.tstage-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.tstage-bar i + i { background: #febc2e; } .tstage-bar i + i + i { background: #28c840; }
.tstage-bar span { margin-left: 8px; font-weight: 600; color: #e5e5ea; }
.tstage-bar em { margin-left: auto; font-style: normal; padding: 3px 9px; border-radius: 980px; background: rgb(41 151 255 / .16); color: #64d2ff; font-weight: 600; }
.tstage-chart { flex: 1; padding: 18px 18px 6px; }
.tstage-chart svg { width: 100%; height: 100%; }
.tstage-chart .line, .tstage-chart .price { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 2.4s .3s var(--ease) forwards; }
.tstage-chart .area { opacity: 0; animation: fadein 1s 1.6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
.tstage-stats { display: flex; gap: 8px; padding: 10px 14px 14px; flex-wrap: wrap; }
.tstage-stats span { display: flex; flex-direction: column; padding: 8px 12px; border-radius: 12px; background: rgb(255 255 255 / .05); font-size: .72rem; color: var(--muted); }
.tstage-stats b { font-size: 1.05rem; color: #fff; }
.tstage-code { position: absolute; left: 0; top: 0; width: 62%; padding: 12px 14px; border-radius: 14px; background: rgb(12 14 18 / .92); box-shadow: 0 24px 60px rgb(0 0 0 / .6), inset 0 0 0 1px rgb(255 255 255 / .08); transform: translateZ(-30px) translate(-8%, -6%); }
.tstage-file { margin: 0 0 6px; font: 600 .7rem ui-monospace, SFMono-Regular, Menlo, monospace; color: #ffd60a; }
.tstage-code pre { margin: 0; font: .62rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; color: #9cdcfe; white-space: pre; overflow: hidden; }
.tstage-code pre span { display: block; }
.tstage-code pre span::before { content: attr(data-ln); display: inline-block; width: 18px; color: #4b4f58; }
.tstage-code pre .cm { color: #6a9955; }
.tstage-glow { position: absolute; left: 20%; right: 0; bottom: -4%; height: 18%; background: radial-gradient(closest-side, rgb(41 151 255 / .45), transparent); filter: blur(10px); transform: translateZ(-60px); }
@media (prefers-reduced-motion: reduce) { .tstage-chart .line, .tstage-chart .price { animation: none; stroke-dashoffset: 0; } .tstage-chart .area { opacity: 1; animation: none; } }
.slider .ls-grid.slider-track, .slider .ls-grid.slider-track[class] { grid-template-columns: none; }
.slider.no-scroll .slider-nav { display: none; }
.shop-tools { padding-block: clamp(48px, 7vw, 80px) 0; }
.shop-tools-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 28px; padding: clamp(26px, 4vw, 44px); border-radius: 30px; color: inherit; background: radial-gradient(120% 140% at 100% 0%, #0f2a22, #07090b 60%); box-shadow: inset 0 0 0 1px rgb(48 209 88 / .25); transition: transform .45s var(--ease), box-shadow .45s; }
.shop-tools-in:hover { text-decoration: none; transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgb(48 209 88 / .55), 0 24px 60px rgb(0 0 0 / .6); }
.shop-tools-in h2 { margin: 0 0 10px; font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.03em; }
.shop-tools-in .muted { margin: 0 0 20px; }
.shop-tools-art { height: 170px; }
.shop-tools-art svg { width: 100%; height: 100%; }
@media (max-width: 720px) { .shop-tools-in { grid-template-columns: 1fr; } }
.pdp-stage.is-tool { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.pdp-stage.is-tool .tstage { width: 100%; max-width: 540px; aspect-ratio: 1 / 1; }
.pdp-stage.is-tool .tstage-screen { inset: 30% 0 4% 8%; }
.pdp-stage.is-tool .tstage-code { width: 74%; transform: translateZ(-30px) translate(-4%, 0); }
.pdp-stage.is-tool .tstage-code pre { font-size: .7rem; }
.pdp-stage.is-tool { padding: clamp(16px, 3vw, 28px); }

/* ---------- 100 traders simulator (home) ---------- */
.sim { padding-block: clamp(64px, 9vw, 120px) 0; }
.sim-head { max-width: 760px; margin: 0 auto 30px; text-align: center; }
.sim-kicker { margin: 0 0 8px; font-weight: 600; color: #ff9f0a; }
.sim-head h2 { margin: 0 0 12px; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -.035em; }
.sim-lead { margin: 0; color: var(--muted); font-size: 1.1rem; }
.sim-box { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; padding: 18px; border-radius: 30px; background: linear-gradient(160deg, #121418, #08090b); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); }
.sim-stage { position: relative; min-width: 0; border-radius: 20px; background: radial-gradient(100% 80% at 50% 0%, #10192a, #050608); overflow: hidden; }
.sim-stage canvas { display: block; width: 100%; height: clamp(280px, 38vw, 430px); }
.sim-legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 0 16px 14px; font-size: .8rem; color: var(--muted); }
.sim-legend span::before { content: ""; display: inline-block; width: 14px; height: 3px; margin: 0 6px 3px 0; border-radius: 2px; vertical-align: middle; }
.sim-legend .ok::before { background: #30d158; } .sim-legend .half::before { background: #ff9f0a; } .sim-legend .ruin::before { background: #ff453a; }
.sim-panel { display: flex; flex-direction: column; gap: 14px; padding: 6px 4px; min-width: 0; }
.sim-ctl { display: grid; gap: 8px; font-size: .92rem; }
.sim-ctl span { display: flex; justify-content: space-between; color: var(--muted); }
.sim-ctl output { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.sim-ctl input[type=range] { width: 100%; accent-color: #2997ff; }
.sim-edge { margin: 0; padding: 10px 12px; border-radius: 12px; font-size: .85rem; background: rgb(48 209 88 / .1); color: #8be9a5; }
.sim-edge[data-tone="down"] { background: rgb(255 69 58 / .12); color: #ff8a80; }
.sim-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sim-stats div { padding: 12px 10px; border-radius: 14px; background: rgb(255 255 255 / .05); }
.sim-stats b { display: block; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.sim-stats b[data-tone="up"] { color: #30d158; } .sim-stats b[data-tone="down"] { color: #ff453a; }
.sim-stats [data-stat="half"] { color: #ff9f0a; } .sim-stats [data-stat="ruin"] { color: #ff453a; }
.sim-stats span { display: block; margin-top: 4px; font-size: .74rem; line-height: 1.3; color: var(--muted); }
.sim-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.sim-presets button { padding: 8px 14px; border: 0; border-radius: 980px; background: rgb(255 255 255 / .08); color: var(--text); font: 500 .85rem var(--font); cursor: pointer; transition: background-color .2s; }
.sim-presets button:hover { background: rgb(255 255 255 / .16); }
.sim-presets button[aria-pressed="true"] { background: #f5f5f7; color: #000; }
.sim-presets [data-rerun] { margin-left: auto; background: transparent; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25); }
.sim-say { max-width: 760px; margin: 26px auto 0; text-align: center; font-size: clamp(1.1rem, 2.2vw, 1.4rem); font-weight: 600; letter-spacing: -.01em; }
.sim-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 20px; margin: 20px 0 0; }
.sim-foot span { font-size: .8rem; color: var(--muted); }
@media (max-width: 860px) { .sim-box { grid-template-columns: 1fr; } }

/* ---------- Chart test fits on one screen (2026-11-08) ---------- */
.ctest { padding-block: clamp(36px, 5vw, 64px); }
.ctest-head { margin-bottom: clamp(14px, 2vw, 22px); }
.ctest h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.ctest-lead { margin-top: 10px; font-size: clamp(.98rem, 1.5vw, 1.12rem); }
.ctest-board { padding: clamp(12px, 2vw, 20px); }
.ctest-chart { margin: 8px 0 2px; }
.ctest-chart svg { max-height: min(37vh, 330px); margin-inline: auto; }
.ctest-info { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 8px; margin: 8px 0 2px; }
.ctest-info .ctest-clues { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.ctest-info .ctest-macro .ctest-clues { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ctest-info .ctest-macro { margin: 0; padding: 0; background: none; border: 0; }
.ctest-info .ctest-clues > div { padding: 8px 10px; }
.ctest-info .ctest-clues small { display: none; }
.ctest-info .ctest-macro dt { color: #ffd60a; }
.ctest-status { min-height: 2.4em; margin: 6px 0 10px; font-size: 1rem; }
.ctest-call { min-height: 52px; }
.ctest-keys, .ctest-note, .ctest-accounts small { display: none; }
.ctest-accounts { margin-top: 14px; gap: 10px; }
.ctest-accounts > div { padding: 10px 14px; }
.ctest-accounts strong { font-size: 1.15rem; }
.ctest-source { margin-top: 12px; }
@media (max-width: 700px) {
  .ctest-info { grid-template-columns: 1fr; }
  .ctest-chart svg { max-height: none; }
}

/* ---------- App-like feel (2026-11-08) ---------- */
html { -webkit-tap-highlight-color: transparent; }
a, button, summary, label, .chip { touch-action: manipulation; }
/* Drag areas: a grab hand on mouse devices, no text selection while dragging. */
@media (hover: hover) and (pointer: fine) {
  .slider-track, .viewer { cursor: grab; }
}
.slider-track.dragging, .viewer.dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.slider-track.dragging *, .viewer.dragging * { pointer-events: none; }
.slider-track img, .viewer img { -webkit-user-drag: none; user-select: none; }
.viewer.dragging { scroll-snap-type: none; }
/* Images fade in as they load (only when JavaScript runs, so nothing stays hidden without it). */
/* Keeps the hover zoom of photos and covers smooth: this rule must not drop their transform transition. */
.js img[loading="lazy"] { opacity: 0; transition: opacity .55s var(--ease), transform .8s var(--ease); }
.js img[loading="lazy"].is-loaded { opacity: 1; }
/* Menus pop open from their button instead of appearing at once. */
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
details[open] > .popover { animation: pop-in .22s var(--ease); transform-origin: top right; }
.menu summary span { transition: transform .3s var(--ease), opacity .2s; }
.menu[open] summary span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu[open] summary span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.lang summary { transition: background-color .2s, color .2s; }
/* Press feedback on everything you tap, like an app. */
.chip, .seg .chip, .sim-presets button, .slider-btn, .ctest-call, .scard, .set-card, .tc, .ls-card, .ls-book, .shop-tools-in { -webkit-user-select: none; user-select: none; }
.chip:active, .sim-presets button:active { transform: scale(.95); }
.chip { transition: background-color .2s, color .2s, transform .15s var(--ease); }
@media (hover: none) {
  /* No sticky hover lifts on touch screens; a short press-in instead. */
  .scard:hover, .set-card:hover, .learn li:hover, .shop-tools-in:hover, .book-card:hover, .tc:hover { transform: none; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); }
  .scard:active, .set-card:active, .book-card:active, .tc:active, .shop-tools-in:active, .ls-book:active { transform: scale(.98); transition-duration: .12s; }
}
/* Momentum scrolling and no scroll chaining inside horizontal areas on iOS. */
.slider-track, .viewer { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
/* Form fields: a soft blue glow on focus, like native iOS fields. */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select { transition: border-color .2s, box-shadow .2s, background-color .2s; }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgb(41 151 255 / .22); background: #1f2024; }
input::placeholder, textarea::placeholder { color: #6e6e73; }
/* The header stays still during page changes; only the content cross-fades. */
::view-transition-old(bar), ::view-transition-new(bar) { animation: none; mix-blend-mode: normal; }

/* ---------- Cart ---------- */
.bag { position: relative; display: inline-block; width: 16px; height: 14px; margin-top: 5px; border: 2px solid currentColor; border-radius: 3px 3px 5px 5px; vertical-align: -2px; }
.bag::before { content: ""; position: absolute; left: 2px; right: 2px; top: -7px; height: 6px; border: 2px solid currentColor; border-bottom: 0; border-radius: 6px 6px 0 0; }
.bag.big { width: 34px; height: 30px; border-width: 3px; margin: 14px auto 6px; display: block; }
.bag.big::before { left: 5px; right: 5px; top: -13px; height: 11px; border-width: 3px; }
.cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; color: var(--text); transition: background-color .2s; }
.cart-link:hover { background: var(--bg-soft); }
.cart-n { position: absolute; top: 1px; right: -1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--blue); color: #fff; font-size: .72rem; font-weight: 700; line-height: 18px; text-align: center; animation: pop-in .35s cubic-bezier(.2,.9,.3,1.3); }
.cart-add { display: contents; }
.cart-add .btn { display: inline-flex; align-items: center; gap: 10px; }
.buybox-sample { display: inline-block; margin-top: 12px; font-size: .94rem; }
.notice.ok { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.notice.ok .tick { position: relative; flex: none; width: 20px; height: 20px; border-radius: 50%; background: #30d158; }
.notice.ok .tick::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid #000; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.cart-items { list-style: none; margin: 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "cover info price" "cover info remove"; gap: 2px 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item:first-child { padding-top: 0; }
.cart-cover { grid-area: cover; display: block; }
.cart-cover img { width: 56px; height: auto; border-radius: 6px; display: block; }
.cart-info { grid-area: info; display: grid; gap: 2px; min-width: 0; }
.cart-info .muted { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; }
.cart-title { color: var(--text); font-weight: 600; }
.cart-price { grid-area: price; font-weight: 600; text-align: right; }
.cart-item form { grid-area: remove; justify-self: end; }
.cart-remove { border: 0; background: none; padding: 2px 0; color: var(--muted, #8e8e93); font: inherit; font-size: .84rem; cursor: pointer; }
.cart-remove:hover { color: var(--text); text-decoration: underline; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; }
.cart-better { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--blue) 12%, transparent); font-size: .92rem; }
.cart-continue { text-align: center; font-size: .94rem; }
.cart-empty { text-align: center; display: grid; justify-items: center; gap: 10px; padding: 36px 20px; }

/* Home topics: one short line of chapter numbers; the main chapter is bold */
.ask-chap { margin: 0 0 10px; font-size: .86rem; color: var(--muted); }
.ask-chap span { color: #c7c7cc; }
.ask-chap .main { color: #64d2ff; font-weight: 700; }
.learn-topics .ask-chap .main { color: var(--accent); }

/* Chart test: plot background, date axis, zone label (2026-11-11) */
.ct-bg { fill: rgb(255 255 255 / .025); stroke: rgb(255 255 255 / .05); }
.ct-tick { stroke: rgb(255 255 255 / .25); }
.ct-year { fill: #d1d1d6; font-weight: 600; }
.ct-zone-label { fill: rgb(100 210 255 / .85); font: 600 11px var(--font); letter-spacing: .04em; text-transform: uppercase; }
.ct-up line, .ct-down line { stroke-width: 1.4; stroke-linecap: round; }
.ct-ma-fast, .ct-ma-slow { stroke-width: 2.2; opacity: .95; }
@media (max-width: 760px) { .ct-zone-label { font-size: 16px; } }

/* ---------- Fixes 2026-11-12 ---------- */
/* Arrow buttons: a drawn chevron sits exactly in the middle (the ‹ › glyphs sit low in the font). */
.fb-btn, .slider-btn, .viewer-nav button { position: relative; font-size: 0 !important; }
.fb-btn > *, .slider-btn > * { display: none; }
.fb-btn::before, .slider-btn::before, .viewer-nav button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border: solid currentColor; border-width: 0 0 2.5px 2.5px; border-radius: 1px; transform: translate(-28%, -50%) rotate(45deg); }
.fb-btn.next::before, .slider-btn[data-slide="1"]::before, .viewer-nav button[data-step="1"]::before { transform: translate(-72%, -50%) rotate(-135deg); }
/* Tool pages: the three lessons sit side by side, no slider. */
.lessons .ls-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
@media (max-width: 860px) { .lessons .ls-grid { grid-template-columns: minmax(0, 1fr); } }
/* Product pages: less empty black space between sections. */
main:has(.pdp) .section { padding-block: clamp(32px, 4.5vw, 56px); }
main:has(.pdp) .lessons, main:has(.pdp) .demo { padding-block: clamp(36px, 5vw, 64px); }
main:has(.pdp) .inside { margin-top: clamp(16px, 2.5vw, 32px); padding-block: clamp(32px, 4.5vw, 56px); }
main:has(.pdp) .pdp + .wrap { margin-bottom: 0; }
.fine.wrap { margin-inline: auto; }

/* Simulator sliders drawn by us (2026-11-12): thumb and fill always line up, also in Safari. */
.sim-ctl input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; margin: 0; background: transparent; cursor: pointer; --r: 0; --fill: calc(12px + var(--r) * (100% - 24px)); touch-action: pan-y; }
.sim-ctl input[type=range]:focus-visible { outline: 2px solid #2997ff; outline-offset: 4px; border-radius: 8px; }
.sim-ctl input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, #2997ff 0 var(--fill), rgb(255 255 255 / .14) var(--fill) 100%); }
.sim-ctl input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgb(0 0 0 / .45), 0 0 0 4px rgb(41 151 255 / .25); }
.sim-ctl input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: rgb(255 255 255 / .14); }
.sim-ctl input[type=range]::-moz-range-progress { height: 6px; border-radius: 3px; background: #2997ff; }
.sim-ctl input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgb(0 0 0 / .45), 0 0 0 4px rgb(41 151 255 / .25); }
.sim-ctl input[type=range]:active::-webkit-slider-thumb { box-shadow: 0 2px 8px rgb(0 0 0 / .45), 0 0 0 7px rgb(41 151 255 / .3); }
/* Flipbook end page: buy now or add to cart. */
.fb-end .fb-end-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.fb-end form { margin: 0; }
.cart-add-inline { margin-top: 14px; }
.cart-add-inline .btn { display: inline-flex; align-items: center; gap: 9px; }

/* Book page: the free companion booklet beside the book (68% of its size, thicker), covering a little
   less than half of itself over the book. Both sit in the same stage, so they tilt together. */
.pdp-stage .pdp-pair { position: relative; width: min(270px, 58%); translate: -17% 0; }
.pdp-stage .pdp-pair > .book3d:first-of-type { width: 100%; }
.pdp-stage .pdp-pair .book3d-mini { position: absolute; width: 68%; right: -36%; bottom: -1%; z-index: 2; }
/* No filter on the 3D book (a filter flattens it); the shadow sits on the cover image instead. */
.book3d-mini .cover-img { box-shadow: -10px 14px 28px rgb(0 0 0 / .55); }
.pdp-pair-tag { position: absolute; right: -40%; bottom: -13%; z-index: 3; padding: 5px 11px; border-radius: 999px; background: #2997ff; color: #fff; font-size: .74rem; font-weight: 700; white-space: nowrap; box-shadow: 0 6px 18px rgb(41 151 255 / .35); }
@media (max-width: 720px) { .pdp-stage .pdp-pair { width: 50%; translate: -18% 0; } .pdp-pair-tag { bottom: -16%; font-size: .68rem; } }
/* Shop cards: the same pair, smaller. */
.scard-stage .scard-pair { position: relative; width: 40%; margin-top: 8px; translate: -14% 0; transition: transform .6s var(--ease); }
.scard-stage .scard-pair .cover { width: 100%; margin: 0; }
.scard-stage .scard-pair .book3d-mini { position: absolute; width: 68%; right: -36%; bottom: -1%; z-index: 2; }
.scard:hover .scard-stage .scard-pair { transform: translateY(-6px) scale(1.03); }
.scard:hover .scard-stage .scard-pair .cover { transform: none; }

/* Tools bundle: a mosaic of every tool's own drawing or backtest curve. */
.tmosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: 100%; height: 100%; padding: 8px; }
.tmosaic-tile { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 7px 8px 6px; border-radius: 10px; background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .07); }
.tmosaic-tile span { font-size: .62rem; font-weight: 700; color: #d1d1d6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tmosaic-tile svg { display: block; width: 100%; height: auto; flex: 1; }
.tstage-mosaic { padding: 0; }
.tc-kind.bundle { color: #ff9f0a; }

/* ---------- Premium call-to-action buttons (2026-11-12) ----------
   One colour for every "click here": warm gold, the colour of the candle flame in the logo.
   It stands apart from the chart colours (blue, green, red) so the eye finds it first.
   The buttons sit in front of everything around them, lifted by a soft shadow. */
:root {
  --cta: #f5b83d;
  --cta-grad: linear-gradient(180deg, #ffd47a 0%, #f5b83d 52%, #e39a1b 100%);
  --cta-grad-hover: linear-gradient(180deg, #ffdd91 0%, #f8c254 52%, #eaa52a 100%);
  --cta-text: #1c1300;
  --cta-shadow: inset 0 1px 0 rgb(255 255 255 / .45), 0 2px 4px rgb(0 0 0 / .45), 0 8px 22px rgb(0 0 0 / .45), 0 6px 20px rgb(245 184 61 / .22);
  --cta-shadow-hover: inset 0 1px 0 rgb(255 255 255 / .5), 0 3px 6px rgb(0 0 0 / .45), 0 14px 32px rgb(0 0 0 / .5), 0 10px 30px rgb(245 184 61 / .32);
}
.btn { position: relative; z-index: 2; background: var(--cta-grad); color: var(--cta-text); font-weight: 600; box-shadow: var(--cta-shadow);
  transition: background .2s, color .2s, box-shadow .25s var(--ease), transform .25s var(--ease); }
.btn:hover { background: var(--cta-grad-hover); color: var(--cta-text); box-shadow: var(--cta-shadow-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: var(--cta-shadow); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* the second choice next to a gold button: dark glass with a gold edge, also lifted */
.btn.ghost { background: rgb(28 28 30 / .85); color: var(--cta); box-shadow: inset 0 0 0 1.5px rgb(245 184 61 / .65), 0 2px 4px rgb(0 0 0 / .4), 0 8px 20px rgb(0 0 0 / .35); }
.btn.ghost:hover { background: rgb(245 184 61 / .12); color: #ffd47a; box-shadow: inset 0 0 0 1.5px var(--cta), 0 3px 6px rgb(0 0 0 / .45), 0 12px 28px rgb(0 0 0 / .45); }
.btn[disabled], .btn:disabled { background: #3a3a3c; color: #8e8e93; box-shadow: none; transform: none; cursor: default; }
/* small markers that mean "buy" or "in your cart" use the same gold */
.cart-n { background: var(--cta); color: var(--cta-text); font-weight: 700; }
.scard-price i { background: var(--cta-grad); color: var(--cta-text); box-shadow: 0 4px 12px rgb(0 0 0 / .4); }

/* ---------- TradingView tools as modern cards everywhere (2026-11-13) ----------
   The tools never show their old pictures any more: in the cart, at checkout, in set fans and on kit
   pages they appear as the same dark window with real art as on the tools page. Sizes follow the
   card's own width (container units), so one design works from a cart thumbnail to a product page. */
.tool-cover { container-type: inline-size; display: flex; flex-direction: column; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 8px; padding: 0 0 6cqw;
  background: radial-gradient(120% 90% at 85% 0%, #142844, #07090d 72%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1), 0 18px 40px rgb(0 0 0 / .6); color: #f5f5f7; text-align: left; }
.tcv-bar { display: flex; align-items: center; gap: 2.4cqw; padding: 4.5cqw 6cqw; background: rgb(255 255 255 / .05); border-bottom: 1px solid rgb(255 255 255 / .07); }
.tcv-bar i { width: 3.2cqw; height: 3.2cqw; border-radius: 50%; background: #ff5f57; } .tcv-bar i:nth-child(2) { background: #febc2e; } .tcv-bar i:nth-child(3) { background: #28c840; }
.tcv-bar em { margin-left: auto; font: 600 4.6cqw var(--font); font-style: normal; color: #8e8e93; }
.tcv-kind { margin: 9cqw 7cqw 0; font: 700 5cqw var(--font); letter-spacing: .08em; text-transform: uppercase; color: #64d2ff; }
.tcv-kind.strategy { color: #bf5af2; }
.tcv-name { margin: 2cqw 7cqw 0; font: 700 10.5cqw/1.08 var(--font); letter-spacing: -.02em; }
.tcv-art { flex: 1; display: flex; align-items: center; min-height: 0; padding: 4cqw 7cqw 0; }
.tcv-art > svg { width: 100%; height: auto; aspect-ratio: 10 / 3; flex: none; }
.tcv-art .tc-art .t { font-size: 11px; }
.tcv-foot { margin: 0 7cqw; padding-top: 4cqw; border-top: 1px solid rgb(255 255 255 / .08); font: 600 4.6cqw var(--font); color: #8e8e93; }
/* in set fans, tools sit in the fan like the book covers */
.set-fan > .tool-cover { position: absolute; left: 50%; bottom: 26px; width: 34%; margin-left: -17%; border-radius: 6px; transform-origin: 50% 120%; transition: transform .5s var(--ease); }
.set-fan > [data-i="0"] { z-index: 5; }
.set-fan > .tool-cover[data-i="1"] { transform: rotate(-12deg); z-index: 4; }
.set-fan > .tool-cover[data-i="2"] { transform: rotate(12deg); z-index: 3; }
.set-fan > .tool-cover[data-i="3"] { transform: rotate(-24deg); z-index: 2; }
.set-fan > .tool-cover[data-i="4"] { transform: rotate(24deg); z-index: 1; }
.set-card:hover .set-fan > .tool-cover[data-i="1"] { transform: rotate(-16deg); }
.set-card:hover .set-fan > .tool-cover[data-i="2"] { transform: rotate(16deg); }
.set-card:hover .set-fan > .tool-cover[data-i="3"] { transform: rotate(-30deg); }
.set-card:hover .set-fan > .tool-cover[data-i="4"] { transform: rotate(30deg); }
/* the product page of a kit: the same fan, large */
.pdp-fan { width: 100%; min-height: 0; aspect-ratio: 1 / 1; background: none; }
.pdp-fan > img, .pdp-fan > .tool-cover { width: 46%; margin-left: -23%; bottom: 10%; }

/* Bundle discount badge, top-right corner of bundle cards (shop sets, tools page toolkit). */
.set-card, .tc { position: relative; }
.save-badge { position: absolute; top: 14px; right: 14px; z-index: 3; padding: 6px 12px; border-radius: 980px; background: var(--cta-grad, #f5b83d); color: var(--cta-text, #1c1300); font-size: .9rem; font-weight: 800; letter-spacing: -.01em; box-shadow: 0 6px 18px rgb(0 0 0 / .45); pointer-events: none; }
.set-card .set-body > .scard-topic { padding-right: 76px; }
.set-card .set-body > h3 { margin-top: 10px; }
@media (max-width: 700px) { .set-card .set-body > .scard-topic { padding-right: 0; } .set-card .set-body > h3 { margin-top: 0; } }
.tc .save-badge { top: 8px; right: 8px; }

/* Admin Stats page */
.stats-range { display: flex; gap: 6px; }
.stats-range a { padding: 6px 12px; border-radius: 980px; color: var(--muted, #a1a1a6); box-shadow: inset 0 0 0 1px var(--line, #333); font-size: .85rem; }
.stats-range a.on { color: #000; background: #f5f5f7; }
.stats-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stats-tiles .card p { margin: 0; }
.stats-n { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; }
.stats-chart { width: 100%; height: auto; display: block; }
.stats-chart rect { fill: #2997ff; }
.stats-chart rect.sale { fill: #f5b83d; }
.stats-chart text { fill: #86868b; font-size: 11px; }
.stats-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.stats-link { display: block; margin-top: 6px; padding: 10px 12px; border-radius: 10px; background: #1c1c1e; overflow-wrap: anywhere; user-select: all; }
.stats-make { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.stats-make label { display: block; margin-bottom: 6px; font-size: .85rem; color: #a1a1a6; }
.stats-make input { width: 100%; }
@media (max-width: 700px) { .stats-make { grid-template-columns: 1fr; } }
.admin-head { flex-wrap: wrap; gap: 12px; }
.stats-range { flex-wrap: wrap; }
.stats-tiles { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
.stats-cols { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.admin-main { grid-template-columns: minmax(0, 1fr); }
/* Safari draws a face's own layered children (the gold buttons on the closing page have
   position + z-index) through the back of a turned page, mirrored. Hide the back of every
   child too, and give each face an explicit 3D transform so Safari honours it. */
.fb-face * { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.fb-front { transform: rotateY(0deg) translateZ(.1px); }
.fb-back-side { transform: rotateY(180deg) translateZ(.1px); }
/* Back cover of the flipbook: title, what you get, and the buy buttons, on the dark cover. */
.fb-back-in { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12%; text-align: center; }
.fb-back-brand { margin: 0; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8e8e93; }
.fb-back-in h3 { margin: 0; color: #f5f5f7; font-size: clamp(1.3rem, 2.2vw, 1.8rem); line-height: 1.15; }
.fb-back-body { margin: 0 0 8px; color: #a1a1a6; font-size: clamp(.9rem, 1.3vw, 1.02rem); line-height: 1.5; }
.fb-back .fb-end-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* A book's own page uses that book's accent colour (variables from book-accents.css). The buy
   buttons keep the shop's gold so they look the same everywhere. */
[data-book] .learn li::before { background: var(--book); }
[data-book] .learn li:hover { box-shadow: inset 0 0 0 1px rgb(var(--book-rgb) / .45), 0 16px 40px rgb(0 0 0 / .5); }
[data-book] .learn-tick { background: var(--book); box-shadow: 0 0 0 5px rgb(var(--book-rgb) / .14), 0 6px 18px rgb(var(--book-rgb) / .3); }
[data-book] .learn-tick::after { border-color: var(--book-on); }
[data-book] .pdp-pair-tag { background: var(--book); color: var(--book-on); box-shadow: 0 6px 18px rgb(var(--book-rgb) / .35); }
[data-book] .pdp-stage::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 50% at 50% 62%, rgb(var(--book-rgb) / .2), transparent 70%); }
[data-book] .pdp-stage { box-shadow: inset 0 0 0 1px rgb(var(--book-rgb) / .16); }
[data-book] .fb-note-kicker { color: var(--book-ink) !important; }
[data-book] .subnav-in strong { box-shadow: inset 0 -2px 0 rgb(var(--book-rgb) / .7); }

/* Bundles and "What's included": every book shows its free Summary & Exercises booklet beside it,
   the same pair as on the book's own page and the shop cards. */
.book-card .card-pair { position: relative; width: 52%; margin: 36px auto 0; translate: -14% 0; transition: transform .5s var(--ease); }
.book-card .card-pair .cover { width: 100%; margin: 0; }
.book-card .card-pair .book3d-mini { position: absolute; width: 68%; right: -36%; bottom: -1%; z-index: 2; }
.book-card:hover .card-pair { transform: translateY(-6px); }
.book-card:hover .card-pair .cover { transform: none; }
.set-fan > .fan-pair { position: absolute; left: 50%; bottom: 26px; width: 30%; aspect-ratio: 2 / 3; margin-left: -19%; transform-origin: 50% 120%; transition: transform .5s var(--ease); }
.set-fan .fan-pair > img { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; object-fit: cover; border-radius: 5px; box-shadow: 0 14px 30px rgb(0 0 0 / .7); transform: none; }
.set-fan .fan-pair > img.fan-mini { inset: auto -22% -3% auto; width: 52%; height: auto; aspect-ratio: 2 / 3; border-radius: 3px; box-shadow: -6px 10px 20px rgb(0 0 0 / .6); }
.set-fan > .fan-pair[data-i="0"] { z-index: 5; }
.set-fan > .fan-pair[data-i="1"] { transform: rotate(-12deg); z-index: 4; }
.set-fan > .fan-pair[data-i="2"] { transform: rotate(12deg); z-index: 3; }
.set-fan > .fan-pair[data-i="3"] { transform: rotate(-24deg); z-index: 2; }
.set-fan > .fan-pair[data-i="4"] { transform: rotate(24deg); z-index: 1; }
.set-card:hover .set-fan > .fan-pair[data-i="1"] { transform: rotate(-16deg); }
.set-card:hover .set-fan > .fan-pair[data-i="2"] { transform: rotate(16deg); }
.set-card:hover .set-fan > .fan-pair[data-i="3"] { transform: rotate(-30deg); }
.set-card:hover .set-fan > .fan-pair[data-i="4"] { transform: rotate(30deg); }
.pdp-fan > .fan-pair { width: 46%; margin-left: -27%; bottom: 17%; }
/* In a fan only the front book shows its booklet, so the picture stays calm; the tag says every book has one. */
.set-fan > .fan-pair:not([data-i="0"]) > .fan-mini { display: none; }
.set-fan > .fan-pair:not([data-i="0"]) { width: 34%; margin-left: -17%; aspect-ratio: 2 / 3; }
.pdp-fan > .fan-pair:not([data-i="0"]) { width: 46%; margin-left: -23%; }
.pdp-stage { position: relative; }
.pdp-fan-tag { position: absolute; left: 50%; bottom: 5%; translate: -50% 0; z-index: 6; padding: 5px 12px; border-radius: 999px; background: #2997ff; color: #fff; font-size: .74rem; font-weight: 700; white-space: nowrap; box-shadow: 0 6px 18px rgb(41 151 255 / .35); }
/* Small pictures (start page, cart, checkout): a book with its booklet, a set as a small fan. */
.mini-pair { position: relative; display: block; width: 78%; translate: -10% 0; }
.mini-pair > .cover { width: 100%; margin: 0; }
.mini-pair > .book3d-mini { position: absolute; width: 64%; right: -34%; bottom: -2%; z-index: 2; }
.cart-cover .mini-pair { width: 44px; }
.cart-cover .mini-pair img { width: 100%; border-radius: 4px; }
.mini-fan { display: block; position: relative; width: 100%; min-height: 0; aspect-ratio: 1 / 1.15; background: none; }
.mini-fan > img, .mini-fan > .tool-cover, .mini-fan > .fan-pair { width: 52%; margin-left: -26%; bottom: 6%; }
.mini-fan .fan-pair > img.fan-mini { display: none; }
.mini-fan > .fan-pair[data-i="0"] > img.fan-mini { display: block; }
.cart-cover .mini-fan { width: 64px; }
.cart-cover .mini-fan img { border-radius: 3px; }
.summary .mini-pair > .book3d-mini, .sp-cover .mini-pair > .book3d-mini { width: 64%; }
.summary .mini-pair { width: 80%; }
.mini-pair { align-self: start; height: max-content; }
/* "Recommended next" has at most three items: on a computer all three fit, no sliding needed. */
@media (min-width: 761px) {
  .slider.fit3 .slider-track { grid-auto-columns: calc((100% - 44px) / 3); cursor: default; }
  .slider.fit3 .slider-nav { display: none; }
}
/* TradingView tool cards: the same gold "go" button as the book cards. */
.tc-more { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 980px; background: var(--cta-grad); color: var(--cta-text); font-weight: 700; font-size: .85rem; box-shadow: 0 4px 12px rgb(0 0 0 / .4); transition: transform .3s var(--ease), background .2s; }
.tc:hover .tc-more { background: var(--cta-grad-hover); transform: translateX(3px); }
.book-card:hover .scard-price i { transform: translateX(3px); }

/* A set in a shop card (for example "Recommended next" on a bundle page): its books fanned out. */
.scard-stage .scard-fan { position: absolute; inset: 0; min-height: 0; background: none; }
.scard-stage .scard-fan > img, .scard-stage .scard-fan > .tool-cover, .scard-stage .scard-fan > .fan-pair { width: 30%; margin-left: -15%; bottom: 12%; }
.scard-stage .scard-fan > .fan-pair[data-i="0"] { margin-left: -19%; }
.book-card .price .scard-price { font-size: 1.05rem; }

/* Book cards light up in the book's own colour on hover (--book-rgb comes from book-accents.css via data-book),
   matching its cover and its Summary & Exercises booklet. Cards without a colour keep the default blue. */
.scard[data-book]:hover { box-shadow: inset 0 0 0 1.5px rgb(var(--book-rgb, 41 151 255) / .8), 0 0 50px rgb(var(--book-rgb, 41 151 255) / .32), 0 24px 60px rgb(0 0 0 / .6); }
.scard[data-book] .scard-price i, .book-card[data-book] .scard-price i { background: var(--book, var(--blue)); color: var(--book-on, #fff); }
.book-card[data-book] { transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.book-card[data-book]:hover { box-shadow: inset 0 0 0 1.5px rgb(var(--book-rgb, 41 151 255) / .75), 0 0 46px rgb(var(--book-rgb, 41 151 255) / .3); }
@media (prefers-reduced-motion: reduce) {
  .scard[data-book]:hover, .book-card[data-book]:hover { box-shadow: inset 0 0 0 1px rgb(var(--book-rgb, 41 151 255) / .6); }
}

/* Lab table (Crash Guard): the default rules on many markets */
.bt-lab { padding: clamp(8px, 2vw, 16px); }
.bt-lab-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bt-lab table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.bt-lab thead th { text-align: right; font-weight: 500; font-size: .75rem; color: #a1a1a6; padding: 6px 10px 10px; vertical-align: bottom; }
.bt-lab thead th:first-child { text-align: left; }
.bt-lab tbody th[scope="row"] { text-align: left; font-weight: 600; padding: 9px 10px; white-space: nowrap; }
.bt-lab small { display: block; font-size: .7rem; font-weight: 400; color: #8e8e93; }
.bt-lab td { text-align: right; padding: 9px 10px; border-top: 1px solid rgb(255 255 255 / .07); white-space: nowrap; }
.bt-lab tbody th[scope="row"] { border-top: 1px solid rgb(255 255 255 / .07); }
.bt-lab td.up { color: #30d158; }
.bt-lab td.down { color: #ff6961; }
.bt-lab-group th { text-align: left; padding: 18px 10px 6px; font-size: .75rem; font-weight: 600; letter-spacing: .02em; color: #64d2ff; }
.bt-lab tbody:first-of-type .bt-lab-group th { padding-top: 6px; }
.tc-art path.l-up, .tc-art path.l-down { fill: none; }
.tc-art .b-fail { fill: #ff453a; stroke: #000; stroke-width: 1.5; }
.tc-art .b-held { fill: #30d158; stroke: #000; stroke-width: 1.5; }

/* Crash Guard: largest fall, strategy vs holding the coin */
.bt-guard { display: grid; gap: 4px; }
.bt-guard-key { display: flex; gap: 18px; font-size: .8rem; color: #a1a1a6; margin-bottom: 8px; --s: #2997ff; --h: #8e8e93; }
.bt-guard-head, .bt-guard-row { display: grid; grid-template-columns: 92px 1fr 48px 118px; gap: 12px; align-items: center; }
.bt-guard-head { font-size: .72rem; color: #8e8e93; padding-bottom: 2px; }
.bt-guard-head span:last-child, .bt-guard-year { text-align: right; }
.bt-guard-row { padding: 10px 0; border-top: 1px solid rgb(255 255 255 / .07); }
.bt-guard-name { font-weight: 600; }
.bt-guard-bars { display: block; width: 100%; height: 46px; }
.bt-guard-bars .strat { fill: #2997ff; filter: drop-shadow(0 0 6px rgb(41 151 255 / .45)); }
.bt-guard-bars .hold { fill: rgb(142 142 147 / .4); }
.bt-guard-vals { display: grid; gap: 7px; font-size: .8rem; font-variant-numeric: tabular-nums; text-align: right; }
.bt-guard-vals b { color: #64d2ff; } .bt-guard-vals b.hold { color: #a1a1a6; font-weight: 500; }
.bt-guard-year b { display: block; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.bt-guard-year b.up { color: #30d158; } .bt-guard-year b.down { color: #ff9f0a; }
.bt-guard-year small { font-size: .72rem; color: #8e8e93; font-variant-numeric: tabular-nums; }
.bt-guard-note { margin: 12px 0 0; font-size: .85rem; color: #a1a1a6; }
details.bt-lab { margin-top: 16px; }
details.bt-lab summary { cursor: pointer; font-weight: 600; padding: 6px 4px; list-style-position: inside; }
details.bt-lab summary small { display: block; margin-top: 2px; font-weight: 400; color: #8e8e93; }
details.bt-lab[open] summary { margin-bottom: 10px; }
@media (max-width: 560px) { .bt-guard-head, .bt-guard-row { grid-template-columns: 64px 1fr 40px 74px; gap: 8px; } }

/* Crash Guard: Bitcoin tiles and drawdown chart */
.bt-win-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 22px; }
.bt-win-stats > div { padding: 16px; border-radius: 16px; background: rgb(255 255 255 / .05); }
.bt-win-stats dt { font-size: .75rem; color: #a1a1a6; }
.bt-win-stats dd { margin: 4px 0; font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: #f5f5f7; }
.bt-win-stats > div:first-child dd { color: #30d158; }
.bt-win-stats small { display: block; font-size: .72rem; line-height: 1.35; color: #8e8e93; }
.bt-win-sub { margin: 0 0 6px; font-weight: 600; }
.bt-win .bt-guard-key { --s: #2997ff; --h: #8e8e93; }
.bt-win-chart { display: block; width: 100%; height: auto; overflow: visible; }
.bt-win-hold { fill: rgb(142 142 147 / .28); stroke: rgb(174 174 178 / .6); stroke-width: 1; }
.bt-win-strat { fill: rgb(41 151 255 / .45); stroke: #2997ff; stroke-width: 1.5; filter: drop-shadow(0 0 6px rgb(41 151 255 / .4)); }
@media (max-width: 700px) { .bt-win-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Tool cards: the figures sit on the same line in every card, and the card glows gold on hover. */
.tc-tag { flex: 1 0 auto; }
.tc:hover { box-shadow: inset 0 0 0 1.5px rgb(245 184 61 / .8), 0 0 50px rgb(245 184 61 / .3), 0 24px 60px rgb(0 0 0 / .6); }

/* Home: the Paper book band, covers fanned out beside the text. */
.print-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(24px, 5vw, 64px); margin-block: clamp(48px, 8vw, 96px); padding: clamp(28px, 5vw, 56px); border-radius: 32px; background: radial-gradient(120% 140% at 100% 0%, rgb(255 159 10 / .16), transparent 60%), linear-gradient(135deg, #15171c, #0c0d10); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); }
.print-copy h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.03em; line-height: 1.08; margin: 6px 0 14px; }
.print-copy p:not(.kicker) { color: #a1a1a6; font-size: 1.05rem; line-height: 1.55; margin: 0 0 22px; }
.print-fan { display: flex; justify-content: center; align-items: flex-end; min-height: 260px; }
.print-fan a { flex: 0 0 auto; width: clamp(92px, 13vw, 150px); margin-inline: clamp(-34px, -2.6vw, -16px); transition: transform .4s var(--ease); }
.print-fan img { display: block; width: 100%; height: auto; border-radius: 4px 8px 8px 4px; box-shadow: 0 24px 50px rgb(0 0 0 / .55), inset 0 0 0 1px rgb(255 255 255 / .06); }
.print-fan a:nth-child(1) { transform: rotate(-12deg) translateY(18px); }
.print-fan a:nth-child(2) { transform: rotate(-6deg) translateY(6px); z-index: 1; }
.print-fan a:nth-child(3) { transform: translateY(-6px) scale(1.12); z-index: 3; }
.print-fan a:nth-child(4) { transform: rotate(6deg) translateY(6px); z-index: 2; }
.print-fan a:nth-child(5) { transform: rotate(12deg) translateY(18px); }
.print-fan a:hover { transform: translateY(-14px) scale(1.14); z-index: 4; }
@media (max-width: 760px) { .print-band { grid-template-columns: minmax(0, 1fr); } .print-fan { min-height: 0; order: -1; padding-top: 10px; } .print-fan a { width: 24vw; margin-inline: -4.5vw; } }

/* Format chips on shop cards: Paper book, E-book, Look inside. */
.fmt-chips { display: flex; flex: none; flex-wrap: wrap; align-items: center; align-content: flex-start; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.fmt-chips li { padding: 3px 9px; border-radius: 99px; font-size: .74rem; font-weight: 600; color: #d1d1d6; background: rgb(255 255 255 / .07); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); }
.fmt-chips li.print { color: #ffd60a; background: rgb(255 214 10 / .1); box-shadow: inset 0 0 0 1px rgb(255 214 10 / .28); }
.fmt-chips li.peek { color: #64d2ff; background: rgb(100 210 255 / .08); box-shadow: inset 0 0 0 1px rgb(100 210 255 / .25); }

/* Bundle cards: the separate price struck through before the bundle price. */
.scard-price s.was { margin-right: 8px; font-weight: 500; color: var(--muted); text-decoration-thickness: 1.5px; }

/* Home: bundles and the "where to begin" cards. */
.home-sets { margin-block: clamp(40px, 7vw, 80px); }
.home-sets .shop-list-head { align-items: end; }
.home-start .sp-pick { margin-top: 28px; }
.home-start .center { text-align: center; }
.set-card .scard-foot { flex-wrap: wrap; row-gap: 10px; }
.set-card .set-save, .set-card .scard-price { white-space: nowrap; }

/* Home library: each book as a 3D cover on a glow in its own colour; the whole card is the link. */
.lib { padding-block: clamp(56px, 8vw, 100px) 0; }
.lib > h2 { margin-bottom: clamp(24px, 4vw, 40px); }
.lib-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lib-card { --book-rgb: 41 151 255; display: flex; flex-direction: column; overflow: hidden; border-radius: 28px; color: #f5f5f7; background: linear-gradient(180deg, #16181d, #0d0e11); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .07); transition: transform .45s var(--ease), box-shadow .45s; }
.lib-card:hover { text-decoration: none; transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgb(var(--book-rgb) / .5), 0 30px 70px rgb(0 0 0 / .55), 0 0 60px rgb(var(--book-rgb) / .12); }
.lib-stage { position: relative; display: grid; place-items: center; padding: 34px 24px 22px; min-height: 290px; background: radial-gradient(70% 80% at 50% 62%, rgb(var(--book-rgb) / .34), transparent 70%); }
.lib-stage::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 16px; height: 18px; border-radius: 50%; background: rgb(0 0 0 / .55); filter: blur(10px); }
.lib-stage .cover { width: min(158px, 56%); position: relative; z-index: 1; transition: transform .5s var(--ease); }
.lib-card:hover .lib-stage .cover { transform: translateY(-6px) rotate(-2deg); }
.lib-body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 4px 24px 22px; }
.lib-topic { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--book-rgb)); }
.lib-title { font-size: 1.35rem; line-height: 1.15; letter-spacing: -.02em; }
.lib-tag { color: #a1a1a6; font-size: .93rem; line-height: 1.45; flex: 1; }
.lib-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding-top: 14px; border-top: 1px solid rgb(255 255 255 / .08); }
.lib-foot .fmt-chips { margin: 0; }
.lib-foot .fmt-chips > span { padding: 3px 9px; border-radius: 99px; font-size: .72rem; font-weight: 600; color: #d1d1d6; background: rgb(255 255 255 / .07); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); }
.lib-foot .fmt-chips > span.print { color: #ffd60a; background: rgb(255 214 10 / .1); box-shadow: inset 0 0 0 1px rgb(255 214 10 / .28); }
.lib-price { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; white-space: nowrap; }
.lib-price i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-style: normal; font-size: .85rem; color: #000; background: rgb(var(--book-rgb)); transition: transform .3s var(--ease); }
.lib-card:hover .lib-price i { transform: translateX(3px); }
/* The handbook: a large card across two columns and two rows, cover and booklet side by side. */
.lib-card.feature { grid-column: 1 / -1; flex-direction: row; }
.lib-card.feature .lib-stage { flex: 1.1; min-height: 400px; background: radial-gradient(55% 75% at 50% 55%, rgb(var(--book-rgb) / .38), transparent 72%); }

.lib-card.feature .lib-body { flex: 1; justify-content: center; padding: 48px 56px 48px 24px; }
.lib-card.feature .lib-title { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
.lib-card.feature .lib-tag { flex: 0; font-size: 1.05rem; margin-bottom: 10px; }
@media (max-width: 1100px) { .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .lib-grid { grid-template-columns: minmax(0, 1fr); }
  .lib-card.feature { flex-direction: column; }
  .lib-card.feature .lib-stage { min-height: 300px; }
  .lib-card.feature .lib-body { padding: 8px 24px 24px; }
  .lib-stage { min-height: 240px; }
}
.home-tools { padding-block: clamp(40px, 6vw, 72px) 0; }
.lib-stage .scard-pair { position: relative; display: block; translate: -12% 0; }
.lib-stage .scard-pair .cover { width: 100%; margin: 0; }
.lib-stage .scard-pair .book3d-mini { position: absolute; width: 62%; right: -34%; bottom: -1%; z-index: 2; }
.lib-card.feature .lib-stage .scard-pair { width: min(230px, 46%); }
@media (max-width: 640px) {
  .lib-card:not(.feature) { flex-direction: row; border-radius: 22px; }
  .lib-card:not(.feature) .lib-stage { flex: 0 0 38%; min-height: 0; padding: 18px 8px 18px 14px; }
  .lib-card:not(.feature) .lib-stage::after { bottom: 10px; }
  .lib-card:not(.feature) .lib-stage .cover:not(.book3d-mini) { width: 100%; }
  .lib-card:not(.feature) .lib-body { padding: 16px 16px 16px 6px; gap: 4px; }
  .lib-card:not(.feature) .lib-title { font-size: 1.08rem; }
  .lib-card:not(.feature) .lib-tag { font-size: .84rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .lib-card:not(.feature) .lib-foot { margin-top: 8px; padding-top: 10px; }
  .lib-card:not(.feature) .fmt-chips { display: none; }
}
/* Every card shows the free Summary & Exercises booklet beside the book. */
.lib-card:not(.feature) .lib-stage .scard-pair { width: min(172px, 60%); }
@media (max-width: 640px) { .lib-card:not(.feature) .lib-stage .scard-pair { width: 66%; translate: -4% 0; } .lib-card:not(.feature) .lib-stage .scard-pair .cover:not(.book3d-mini) { width: 100%; } }
/* "Who it's for" on its own: one card, the points in two columns on wide screens. */
.for-who .ticks { columns: 2 320px; column-gap: 40px; }
.for-who .ticks li { break-inside: avoid; }

/* TradingView tools: studio renders with a short clip on hover (views.js toolMedia, site.js). */
.tmedia { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; background: #05070b; }
.tmedia img, .tmedia video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tmedia video { opacity: 0; transition: opacity .35s var(--ease); }
.tmedia.playing video { opacity: 1; }
.tc-visual:has(.tmedia), .tc-visual:has(.tgrid) { height: auto; padding: 0; background: #05070b; }
.tgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; background: #05070b; }
.tgrid img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.pdp-tool { position: relative; width: 100%; border-radius: calc(var(--radius) - 6px); overflow: hidden; box-shadow: 0 30px 80px rgb(0 0 0 / .6); }
.shop-tools-art { height: auto; border-radius: var(--radius); overflow: hidden; }

/* Tools page hero: one stage, six tools (site.js plays through the tabs). */
.th { display: block; min-height: 0; }
.tshow { display: grid; grid-template-columns: 250px minmax(0, 1fr); margin-bottom: clamp(40px, 6vw, 72px); border-radius: var(--radius); background: rgb(255 255 255 / .035); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .09); overflow: hidden; }
.tshow-tabs { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-right: 1px solid rgb(255 255 255 / .08); }
.tshow-tabs button { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px 14px; border: 0; border-radius: 12px; background: none; color: #a1a1a6; font: 600 .95rem var(--font); text-align: left; cursor: pointer; overflow: hidden; transition: background .3s, color .3s; }
.tshow-tabs button:hover { color: #f5f5f7; background: rgb(255 255 255 / .04); }
.tshow-tabs button.is-on { color: #f5f5f7; background: rgb(255 255 255 / .09); }
.tshow-n { font-size: .72rem; color: #64d2ff; font-variant-numeric: tabular-nums; }
.tshow-name small { display: block; font-size: .72rem; font-weight: 500; color: #8e8e93; }
.tshow-bar { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 1px; background: #64d2ff; transform: scaleX(0); transform-origin: left; }
.tshow.playing .is-on .tshow-bar { animation: tshow-bar 6s linear forwards; }
@keyframes tshow-bar { to { transform: scaleX(1); } }
.tshow-stage { position: relative; background: radial-gradient(60% 90% at 28% 55%, #14335f 0%, transparent 70%); }
.tshow-panel { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 4vw, 48px); min-height: 400px; padding: clamp(28px, 4vw, 52px); }
.tshow-panel[hidden] { display: none; }
.tshow-art .tmedia { border-radius: 14px; box-shadow: 0 24px 60px rgb(0 0 0 / .55); }
.tshow-panel.is-on .tshow-art { animation: tshow-in .9s var(--ease) both; }
.tshow-panel.is-on .tshow-info { animation: tshow-fade .7s .15s var(--ease) both; }
@keyframes tshow-in { from { opacity: 0; transform: translateY(22px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes tshow-fade { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.tshow-info h2 { margin: 4px 0 10px; font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.tshow-tag { margin: 0; max-width: 26em; color: #a1a1a6; }
.tshow-foot { display: flex; align-items: center; gap: 18px; margin: 24px 0 0; }
.tshow-foot .tc-price { font-size: 1.35rem; font-weight: 700; }
@media (max-width: 760px) {
  .tshow { grid-template-columns: minmax(0, 1fr); }
  .tshow-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid rgb(255 255 255 / .08); scrollbar-width: none; }
  .tshow-tabs button { flex: none; padding: 10px 12px 12px; }
  .tshow-name small { display: none; }
  .tshow-panel { grid-template-columns: minmax(0, 1fr); min-height: 0; text-align: center; }
  .tshow-tag { margin-inline: auto; }
  .tshow-foot { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .tshow-panel.is-on .tshow-art, .tshow-panel.is-on .tshow-info, .tshow.playing .is-on .tshow-bar { animation: none; } }

/* Product page (desktop): the picture sits at the top next to the title, fits the screen and stays in view while the details scroll. */
@media (min-width: 821px) {
  .pdp { --stage-h: min(calc(100vh - 140px), 780px); align-items: start; }
  .pdp-stage { position: sticky; top: 116px; min-height: 0; height: var(--stage-h); padding: clamp(24px, 3vw, 40px); }
  .pdp-stage .book3d { width: min(380px, 76%, calc(var(--stage-h) * .5)); }
  .pdp-stage .pdp-pair { width: min(340px, 64%, calc(var(--stage-h) * .46)); }
  .pdp-stage > .cover { width: min(380px, 80%, calc(var(--stage-h) * .52)); }
}
