/* marketing.css — Edutrader marketing site.
   Looks like the app: its light theme's colours and its font (Inter), both
   from src/utils/themes-base.js and App.tsx, so the site and the app read as
   one product. Warm paper and dark terminal are alternates (set data-palette
   on <html>), and data-type="serif" brings back the serif headings. */

/* ── palette ─────────────────────────────────────────────────────────────── */
:root,
[data-palette="app"] {
  /* LIGHT_COLORS in themes-base.js: bg, surface, primary, secondary, border.
     Muted is the app's axis-text; its own muted is too faint for small print. */
  --bg: #f4f4f8; --bg-2: #eaeaf1; --surface: #ffffff; --raise: #fafafd;
  --ink: #111122; --secondary: #555566; --muted: #888899;
  --border: #ccccdd; --hair: #e2e2ec;
}
[data-palette="warm"] {
  --bg: #f7f4ee; --bg-2: #f1ece2; --surface: #fffdf9; --raise: #fbf8f2;
  --ink: #1a1814; --secondary: #6a655c; --muted: #a29c8f;
  --border: #e7e0d3; --hair: #efe9dd;
}
[data-palette="dark"] {
  --bg: #0d0d1a; --bg-2: #0a0a14; --surface: #161629; --raise: #12121f;
  --ink: #e8e8f8; --secondary: #9a9ac0; --muted: #55557a;
  --border: #26263f; --hair: #1e1e33;
}

/* functional / brand — constant across palettes */
:root {
  --bull: #1f9e90; --bear: #e2504d; --entry: #b7860f; --blue: #2f6fd0;
  /* the small step charts drawn by charts.js: the app's light-theme chart
     colours, so they match the screenshots beside them */
  --c-grid: var(--rule); --c-dim: #888899;
  --c-bull: #26a69a; --c-bear: #ef5350; --c-entry: #d4a000; --c-tp: #26a69a; --c-sl: #ef5350;
  --c-ma20: #4a9eff; --c-accent: #2277dd;

  --lead: #2277dd;            /* accent-lead: the app's light-theme blue */
  --lead-ink: #ffffff;
  --f-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --f-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* The app has no typewriter face. Figures that must line up ask for
     tabular numbers instead (see .mono and the guide table). */
  --f-mono: var(--f-sans);
  --f-display: var(--f-sans);
  --shadow: none;
  --shadow-lg: 0 2px 4px rgba(17,17,34,.05), 0 30px 60px -30px rgba(17,17,34,.3);
  --wrap: 74rem; --pad: clamp(1.2rem, 4vw, 3rem);
  /* the thin line between items; reads on both the plain and the tinted background */
  --rule: color-mix(in srgb, var(--ink) 14%, transparent);
}
[data-accent="teal"]  { --lead: #157f73; }
[data-accent="amber"] { --lead: #a9780a; }
[data-palette="dark"]                    { --lead: #4a9eff; } /* the app's dark-theme blue */
[data-palette="dark"][data-accent="amber"] { --lead: #f0c040; }
[data-palette="dark"][data-accent="teal"]  { --lead: #2fb3a4; }
[data-type="serif"] { --f-display: var(--f-serif); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-sans); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ── type ────────────────────────────────────────────────────────────────── */
.display { font-family: var(--f-display); font-weight: 500; line-height: 1.04;
  letter-spacing: -.018em; text-wrap: balance; }
:root:not([data-type="serif"]) .display { font-weight: 620; letter-spacing: -.032em; }
.display em { font-style: italic; font-weight: 500; }
:root:not([data-type="serif"]) .display em { font-style: normal; color: var(--lead); }

h1, h2, h3 { margin: 0; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--lead); text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--lead) 45%, transparent);
  transition: color .15s, text-decoration-color .15s; }
a:hover { color: color-mix(in srgb, var(--lead) 78%, var(--ink));
  text-decoration-color: currentColor; }
strong, b { color: var(--ink); font-weight: 600; }
.mono { font-family: var(--f-mono); font-feature-settings: "tnum" 1; }
.guide-table td, .calc, .formula, .price__amt, .updated { font-variant-numeric: tabular-nums; }
.eyebrow { font-family: var(--f-mono); font-size: .76rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--lead); }
.lede { font-size: clamp(1.12rem, 1.7vw, 1.32rem); line-height: 1.6;
  color: var(--secondary); }

/* ── layout primitives ──────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }
.wrap--narrow { max-width: 46rem; }
section { position: relative; }
.rule { height: 1px; background: var(--hair); border: 0; margin: 0; }

/* ── top bar ────────────────────────────────────────────────────────────── */
.topbar { position: sticky; top: 0; z-index: 40; background: var(--surface);
  border-bottom: 1px solid var(--border); }
.topbar__in { display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: 4.25rem; }
.wordmark { display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 600; font-size: 1.12rem; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none; }
/* Height only — the mark brings its own colours and aspect ratio, so a
   different logo-mark.svg drops in without distorting. */
.wordmark__mark { display: block; height: 1.25rem; width: auto; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { color: var(--secondary); text-decoration: none; font-size: .95rem;
  font-weight: 500; }
.nav a:hover { color: var(--ink); }
.nav__store { color: var(--ink); }
.nav__store::after { content: "Soon"; margin-left: .45rem; font-family: var(--f-mono);
  font-size: .6rem; letter-spacing: .1em; color: var(--lead);
  border: 1px solid color-mix(in srgb, var(--lead) 35%, transparent);
  border-radius: 999px; padding: .1rem .35rem; vertical-align: middle; }
@media (max-width: 720px) { .nav .nav__link { display: none; } }

/* ── hero ───────────────────────────────────────────────────────────────── */
.hero { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.hero__grid { display: grid; grid-template-columns: 1.02fr 1.18fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; }
.hero__kicker { margin-bottom: 1.1rem; font-size: .95rem; font-weight: 500; color: var(--secondary); }
.hero h1 { font-family: var(--f-display); font-size: clamp(2.5rem, 5.6vw, 4.15rem);
  line-height: 1.02; letter-spacing: -.02em; font-weight: 500; text-wrap: balance; }
:root:not([data-type="serif"]) .hero h1 { font-weight: 600; letter-spacing: -.035em; }
.hero h1 em { font-style: italic; color: var(--lead); }
:root:not([data-type="serif"]) .hero h1 em { font-style: normal; }
.hero__lede { margin-top: 1.5rem; max-width: 34ch; }
.hero__cta { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.hero__note { margin-top: 1rem; font-size: .86rem; color: var(--muted); }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__lede { max-width: 52ch; }
}

/* store badge */
.badge { display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1.05rem;
  border: 1px solid var(--border); border-radius: .8rem; background: var(--surface);
  color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500;
  box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.badge svg { fill: currentColor; flex: none; }
.badge small { display: block; font-size: .64rem; letter-spacing: .06em; color: var(--muted);
  font-weight: 500; line-height: 1; margin-bottom: .12rem; }
.badge b { font-size: .98rem; font-weight: 600; line-height: 1.1; }
.badge--pending { cursor: default; }
.badge__tag { font-family: var(--f-mono); font-size: .58rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--lead); border: 1px solid color-mix(in srgb, var(--lead) 32%, transparent);
  border-radius: 999px; padding: .16rem .4rem; margin-left: .1rem; }

/* ── real screenshots of the app (web/shots/, made by `npm run shots:site`) ── */
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; background: var(--surface);
  border: 1px solid var(--border); }
.shot--phone { width: min(100%, 18.5rem); }
.shot--phone img { border-radius: 1.5rem; box-shadow: var(--shadow-lg); }
.shot--wide img { border-radius: .75rem; box-shadow: var(--shadow); }
.hero__shot { justify-self: center; }
.hero__cap { display: flex; gap: .6rem; align-items: flex-start; margin-top: 1.2rem;
  font-size: .84rem; color: var(--muted); }
.hero__cap svg { flex: none; margin-top: .15rem; color: var(--lead); }

/* candles / levels animation */
.cndl-g { opacity: 1; }
.cndl { transform-box: fill-box; transform-origin: center bottom; }
.lvl-line { stroke-dasharray: var(--dash, 4 4); }
@keyframes candleIn { from { opacity: 0; transform: translateY(9px) scaleY(.7); } to { opacity: 1; transform: none; } }
@keyframes drawLine { from { stroke-dashoffset: var(--len, 700); } to { stroke-dashoffset: 0; } }
@keyframes softPulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes shimmer { 0%,100% { opacity: .10; } 50% { opacity: .22; } }
.anim .cndl { animation: candleIn .5s cubic-bezier(.2,.7,.3,1) both;
  animation-delay: calc(var(--i, 0) * 34ms); }
.anim .draw { stroke-dasharray: var(--len, 700); stroke-dashoffset: var(--len, 700);
  animation: drawLine .7s ease .5s forwards; }
.anim .pulse { animation: softPulse 3.4s ease-in-out 1.4s infinite; }
.anim .hidden-zone { animation: shimmer 4.5s ease-in-out 1s infinite; }
@media (prefers-reduced-motion: reduce) {
  .anim .cndl, .anim .draw, .anim .pulse, .anim .hidden-zone { animation: none; }
  .anim .draw { stroke-dashoffset: 0; }
}

/* ── section shell ─────────────────────────────────────────────────────────── */
.band { padding-block: clamp(3.5rem, 8vw, 7rem); }
.band--tint { background: var(--bg-2); }
.sec-head { max-width: 40rem; }
.sec-head h2 { font-family: var(--f-display); font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.06; letter-spacing: -.02em; font-weight: 500; }
:root:not([data-type="serif"]) .sec-head h2 { font-weight: 600; letter-spacing: -.03em; }
.sec-head p { margin-top: 1.1rem; color: var(--secondary); font-size: 1.08rem; max-width: 46ch; }

/* ── pull quote ────────────────────────────────────────────────────────────── */
.quote { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.2rem, 3vw, 2.4rem); align-items: start; }
.quote__mark { font-family: var(--f-display); font-size: clamp(4rem, 9vw, 7rem); line-height: .7;
  color: color-mix(in srgb, var(--lead) 55%, var(--bg)); font-weight: 600; }
.quote blockquote { margin: 0; font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 2.55rem); line-height: 1.18; letter-spacing: -.015em; }
:root:not([data-type="serif"]) .quote blockquote { font-weight: 600; letter-spacing: -.028em; }
.quote blockquote em { color: var(--lead); font-style: italic; }
:root:not([data-type="serif"]) .quote blockquote em { font-style: normal; }
.quote__by { margin-top: 1.4rem; color: var(--secondary); font-size: 1.02rem; max-width: 54ch; }

/* ── steps: one row each, the words and then the chart ─────────────────────── */
.steps { display: grid; gap: clamp(2.4rem, 5vw, 3.8rem); margin-top: clamp(2.2rem, 5vw, 3.4rem);
  counter-reset: s; }
.step { counter-increment: s; display: grid; grid-template-columns: 1fr 1.2fr;
  grid-template-areas: "n n" "h vig" "p vig"; grid-template-rows: auto auto 1fr;
  column-gap: clamp(2rem, 6vw, 5rem); }
.step__n { grid-area: n; font-family: var(--f-mono); font-size: .78rem; letter-spacing: .12em; color: var(--lead);
  display: flex; align-items: center; gap: .6rem; margin-bottom: 1.3rem; }
.step__n::before { content: "0" counter(s); }
.step__n span { flex: 1; height: 1px; background: var(--rule); }
.step__vig { grid-area: vig; }
.step h3 { grid-area: h; font-family: var(--f-display); font-size: clamp(1.4rem, 2.3vw, 1.85rem);
  font-weight: 500; letter-spacing: -.01em; }
:root:not([data-type="serif"]) .step h3 { font-weight: 600; }
.step p { grid-area: p; margin-top: .6rem; color: var(--secondary); font-size: 1rem; max-width: 42ch; }
@media (max-width: 820px) {
  .step { grid-template-columns: 1fr; grid-template-areas: "n" "vig" "h" "p"; grid-template-rows: none; }
  .step__vig { margin-bottom: 1.1rem; }
  .step p { font-size: .96rem; }
}

/* ── foils (why the usual ways don't work) ────────────────────────────────── */
.foils { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 3.6vw, 3rem);
  margin-top: clamp(2.2rem, 5vw, 3.4rem); }
.foil { border-top: 1px solid var(--rule); padding-top: 1.4rem; display: flex; flex-direction: column; }
.foil__vig { max-width: 17rem; color: var(--secondary); margin-bottom: 1rem; }
.foil__vig svg, .answer__vig svg { display: block; width: 100%; height: auto; }
.foil h3 { font-family: var(--f-display); font-size: 1.4rem; font-weight: 500; letter-spacing: -.01em; }
:root:not([data-type="serif"]) .foil h3 { font-weight: 600; }
.foil p { margin-top: .5rem; color: var(--secondary); font-size: .96rem; }

/* the answer to the three above */
.answer { margin-top: clamp(2.4rem, 5vw, 3.6rem); display: grid;
  grid-template-columns: 1fr 1.3fr; gap: clamp(1.4rem, 4vw, 3.2rem); align-items: center;
  border-top: 2px solid var(--ink); padding-top: clamp(1.6rem, 3vw, 2.4rem); }
.answer__vig { color: var(--lead); }
.answer h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.12;
  font-size: clamp(1.45rem, 2.6vw, 2.1rem); letter-spacing: -.015em; }
:root:not([data-type="serif"]) .answer h3 { font-weight: 600; letter-spacing: -.028em; }
.answer h3 em { color: var(--lead); font-style: italic; }
:root:not([data-type="serif"]) .answer h3 em { font-style: normal; }
.answer p { margin-top: .9rem; color: var(--secondary); font-size: 1.02rem; max-width: 54ch; }
@media (max-width: 820px) {
  .foils { grid-template-columns: 1fr; }
  .answer { grid-template-columns: 1fr; }
  .answer__vig { max-width: 22rem; }
}

/* ── app showcase (phones) ─────────────────────────────────────────────────── */
.show { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.show__phones { display: flex; justify-content: center; gap: clamp(.8rem, 2.4vw, 2rem); }
.show__phones .shot { width: 260px; max-width: 42vw; }
.show__phones .shot:nth-child(2) { margin-top: 2.6rem; }
@media (max-width: 900px) { .show { grid-template-columns: 1fr; } .show__phones { order: -1; } }
@media (max-width: 480px) { .show__phones .shot:nth-child(2) { display: none; } }

.show__body h2 { font-family: var(--f-display); font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 500; letter-spacing: -.02em; line-height: 1.08; }
:root:not([data-type="serif"]) .show__body h2 { font-weight: 600; }
.show__body p { margin-top: 1.1rem; color: var(--secondary); }
.show__list { margin: 1.6rem 0 0; padding: 0; list-style: none; display: grid; gap: .9rem; }
.show__list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--secondary); font-size: .98rem; }
.show__list svg { flex: none; margin-top: .2rem; color: var(--lead); }
.show__list b { color: var(--ink); }

/* ── features: a plain list beside its heading ─────────────────────────────── */
.inside { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.feat { margin: 0; padding: 0; list-style: none; }
.feat li { padding: 1.1rem 0 1.2rem; border-top: 1px solid var(--rule); }
.feat li:last-child { border-bottom: 1px solid var(--rule); }
.feat h3 { font-size: 1.06rem; font-weight: 600; letter-spacing: -.01em; }
.feat p { margin-top: .3rem; color: var(--secondary); font-size: .96rem; max-width: 54ch; }
.feat .mono { color: var(--ink); }
@media (max-width: 820px) { .inside { grid-template-columns: 1fr; } }

/* ── anonymised strip ─────────────────────────────────────────────────────── */
.anon { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.anon h2 { font-family: var(--f-display); font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 500;
  letter-spacing: -.02em; line-height: 1.07; }
:root:not([data-type="serif"]) .anon h2 { font-weight: 600; }
.anon h2 em { color: var(--lead); font-style: italic; }
:root:not([data-type="serif"]) .anon h2 em { font-style: normal; }
.anon p { margin-top: 1.1rem; color: var(--secondary); }
.anon__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.anon__tags span { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em; color: var(--secondary);
  border: 1px dashed var(--border); border-radius: 999px; padding: .3rem .7rem; }
.anon__tags .strike { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--bear); }
@media (max-width: 820px) { .anon { grid-template-columns: 1fr; } }

/* ── disclaimer ───────────────────────────────────────────────────────────── */
.disc { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; }
.disc svg { color: var(--entry); flex: none; margin-top: .1rem; }
.disc p { color: var(--secondary); font-size: .95rem; }
.disc strong { color: var(--ink); }

/* ── footer ───────────────────────────────────────────────────────────────── */
.foot { padding-block: clamp(3rem, 6vw, 5rem) 3rem; border-top: 1px solid var(--hair); }
.foot__grid { display: flex; flex-wrap: wrap; gap: 2rem 3rem; justify-content: space-between; align-items: flex-start; }
.foot__brand { max-width: 24rem; }
.foot__brand p { margin-top: .9rem; color: var(--secondary); font-size: .9rem; }
.foot__cols { display: flex; gap: 3.5rem; flex-wrap: wrap; }
.foot__col h4 { font-family: var(--f-mono); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 .9rem; font-weight: 500; }
.foot__col a { display: block; color: var(--secondary); text-decoration: none; font-size: .92rem; margin-bottom: .55rem; }
.foot__col a:hover { color: var(--ink); }
/* Cookie settings is an action rather than a page, so it is a button dressed as
   the links beside it. Hidden until consent.js wires it — without the script
   there is nothing to set. */
.foot__col button { display: block; padding: 0; border: 0; background: none; font: inherit; font-size: .92rem;
  color: var(--secondary); margin-bottom: .55rem; cursor: pointer; text-align: left; }
.foot__col button:hover { color: var(--ink); }
.foot__col button[hidden] { display: none; }
.foot__base { margin-top: 2.6rem; padding-top: 1.5rem; border-top: 1px solid var(--hair);
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  font-size: .82rem; color: var(--muted); }

/* ── cookie choice ────────────────────────────────────────────────────────── */
/* Floats over the foot of the page rather than blocking it: the site stays
   usable without an answer, which is part of making Reject as easy as Accept. */
.consent { position: fixed; z-index: 50; left: 50%; bottom: 1rem; transform: translateX(-50%);
  width: min(44rem, calc(100% - 2rem)); display: flex; align-items: center; gap: .9rem 1.4rem;
  padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: 1rem; box-shadow: var(--shadow-lg); }
.consent__text { margin: 0; flex: 1; font-size: .9rem; line-height: 1.5; color: var(--secondary); }
.consent__text a { color: var(--lead); }
.consent__actions { display: flex; gap: .6rem; }
/* Both answers wear the same style — a louder Accept would be a nudge. The one
   already given is outlined when the banner is reopened from Cookie settings. */
.consent__btn { font: inherit; font-size: .9rem; font-weight: 600; padding: .6rem 1.2rem;
  border-radius: .7rem; border: 1px solid var(--border); background: var(--raise); color: var(--ink);
  cursor: pointer; }
.consent__btn:hover { border-color: var(--secondary); }
.consent__btn:focus-visible { outline: 2px solid var(--lead); outline-offset: 2px; }
.consent__btn[aria-pressed="true"] { border-color: var(--lead); }
@media (max-width: 600px) {
  .consent { flex-direction: column; align-items: stretch; }
  .consent__btn { flex: 1; }
}

/* ── policy pages ─────────────────────────────────────────────────────────── */
.policy { padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5rem); }
.policy h1 { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.1rem, 5vw, 3.1rem);
  letter-spacing: -.02em; line-height: 1.05; }
:root:not([data-type="serif"]) .policy h1 { font-weight: 600; }
.policy .updated { display: inline-block; margin-top: 1rem; font-family: var(--f-mono); font-size: .8rem;
  letter-spacing: .04em; color: var(--muted); }
.policy .lede { margin-top: 1.6rem; }
.policy h2 { font-family: var(--f-display); font-weight: 500; font-size: 1.6rem; letter-spacing: -.01em;
  margin-top: 3rem; }
:root:not([data-type="serif"]) .policy h2 { font-weight: 600; }
.policy h3 { font-size: 1.08rem; font-weight: 600; margin-top: 1.9rem; }
.policy p { margin-top: 1rem; color: var(--secondary); }
.policy ul { margin-top: 1rem; padding-left: 1.3rem; color: var(--secondary); }
.policy li { margin-bottom: .55rem; }
.policy li::marker { color: var(--lead); }
.callout { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
.callout p { margin: 0; color: var(--secondary); font-size: .95rem; }

/* faq */
.faq { margin-top: 1.6rem; border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { display: flex; align-items: center; gap: .8rem; padding: 1.15rem 0; cursor: pointer;
  font-weight: 500; font-size: 1.05rem; list-style: none; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; font-family: var(--f-mono); color: var(--lead); font-size: 1.1rem;
  width: 1rem; transition: transform .2s; }
.faq details[open] summary::before { content: "–"; }
.faq details > p { margin: 0 0 1.15rem 1.8rem; color: var(--secondary); max-width: 60ch; }

/* ── pricing ───────────────────────────────────────────────────────────────── */
.price { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2.4vw, 1.7rem);
  margin-top: clamp(2.2rem, 5vw, 3.4rem); align-items: stretch; }
.price__card { background: var(--surface); border: 1px solid var(--border); border-radius: 1.1rem;
  padding: 1.6rem 1.5rem 1.7rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
/* The paid card carries the accent border so the eye lands on it first. */
.price__card--pro { border-color: color-mix(in srgb, var(--lead) 45%, var(--border));
  box-shadow: var(--shadow-lg); }
.price__tier { font-family: var(--f-mono); font-size: .74rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--lead); display: flex; align-items: center; gap: .6rem; }
.price__tier span { flex: 1; height: 1px; background: var(--hair); }
.price__amt { font-family: var(--f-display); font-size: clamp(2.3rem, 5vw, 3.1rem); line-height: 1;
  letter-spacing: -.02em; font-weight: 500; margin-top: 1.1rem; }
:root:not([data-type="serif"]) .price__amt { font-weight: 600; letter-spacing: -.03em; }
.price__amt small { font-family: var(--f-sans); font-size: .92rem; font-weight: 400;
  letter-spacing: 0; color: var(--secondary); }
.price__alt { margin-top: .55rem; color: var(--secondary); font-size: .9rem; }
.price__blurb { margin-top: 1rem; color: var(--secondary); font-size: .97rem; }
/* Pushes both CTAs onto the same baseline however uneven the lists are. */
.price__card .show__list { flex: 1; align-content: start; } /* the shorter list stays packed; the gap goes above its button */
.price__cta { margin-top: 1.5rem; display: inline-flex; align-items: center; justify-content: center;
  border-radius: .7rem; padding: .85rem 1.1rem; font-size: .95rem; font-weight: 600;
  text-decoration: none; border: 1px solid var(--border); color: var(--ink); }
.price__cta--pro { background: var(--lead); border-color: var(--lead); color: var(--lead-ink); }
/* Sits under the grid, not inside the paid card — inside, it pushed that card's
   button 95px above the free one and the two never shared a baseline. */
.price__terms { margin-top: clamp(1.4rem, 3vw, 2rem); color: var(--secondary);
  font-size: .82rem; line-height: 1.55; max-width: 78ch; }
.price__terms a { color: var(--secondary); }
@media (max-width: 720px) { .price { grid-template-columns: 1fr; } }

/* ── chart reveal animation (levels, chips, entry dot) ─────────────────────── */
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.anim .lvl, .anim .axchip { opacity: 0; animation: fadeIn .6s ease .62s forwards }
.anim .pdot { opacity: 0; animation: fadeIn .5s ease 1.1s forwards, softPulse 3.4s ease-in-out 1.5s infinite }
@media (prefers-reduced-motion: reduce) {
  .anim .lvl, .anim .axchip, .anim .pdot { opacity: 1; animation: none }
}

/* ── guides ────────────────────────────────────────────────────────────────── */
/* Articles reuse the policy pages' reading layout (main.policy) and add the
   pieces below: disclaimer line, figures, table, formula, calculator, CTA. */
.guide h1 { margin-top: .9rem; }
.guide .updated { display: block; margin-top: .9rem; }
.guide .disclaimer { margin-top: 1.1rem; font-family: var(--f-mono); font-size: .78rem;
  letter-spacing: .02em; color: var(--muted); }

.figure { margin: 2rem 0 0; }
.figure svg { display: block; width: 100%; height: auto; }
.figure__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.figure--solo svg { max-width: 30rem; margin-inline: auto; }
.figure figcaption { margin-top: .8rem; font-size: .9rem; color: var(--secondary); }
@media (max-width: 600px) { .figure__pair { grid-template-columns: 1fr; } }

/* sketch parts — the functional colours, so the sketches read like the app */
.sk-up line { stroke: var(--bull); stroke-width: 1.4; }
.sk-up rect { fill: var(--bull); }
.sk-down line { stroke: var(--bear); stroke-width: 1.4; }
.sk-down rect { fill: var(--bear); }
.sk-zone { fill: var(--muted); opacity: .25; }
.sk-entry, .sk-stop, .sk-target { stroke-width: 1.6; stroke-dasharray: 5 4; }
.sk-entry { stroke: var(--entry); }
.sk-stop { stroke: var(--bear); }
.sk-target { stroke: var(--bull); }
.sk-bracket, .sk-axis { fill: none; stroke: var(--secondary); stroke-width: 1.2; }
.sk-box { fill: color-mix(in srgb, var(--lead) 14%, transparent); stroke: var(--lead); stroke-width: 1.4; }
.sk-title { font-family: var(--f-sans); font-size: 14px; font-weight: 600; fill: var(--ink); }
.sk-label { font-family: var(--f-mono); font-size: 12px; fill: var(--secondary); }
.figure--solo .sk-label { font-size: 14px; }
.sk-label--strong { fill: var(--ink); font-weight: 600; }
.sk-label--entry { fill: var(--entry); }
.sk-label--stop { fill: var(--bear); }
.sk-label--target { fill: var(--bull); }
.sk-dot { fill: var(--ink); stroke: var(--bg); stroke-width: 2; }
.sk-canceled { opacity: .4; }
.sk-band { fill: color-mix(in srgb, var(--bull) 14%, transparent); }
.sk-band--loss { fill: color-mix(in srgb, var(--bear) 12%, transparent); }
.sk-box-label { font-family: var(--f-mono); font-size: 14px; font-weight: 600; fill: var(--lead); }

.guide-table { width: 100%; margin-top: 1.2rem; border-collapse: collapse; font-size: .95rem; }
.guide-table th { padding: .55rem .6rem; text-align: left; font-size: .82rem; font-weight: 600;
  color: var(--secondary); border-bottom: 1px solid var(--border); }
.guide-table td { padding: .6rem; font-family: var(--f-mono); color: var(--ink);
  border-bottom: 1px solid var(--hair); }
.guide-table th:not(:first-child), .guide-table td:not(:first-child) { text-align: right; }
/* tables of words, not numbers: the first column names the item, the rest explain it */
.guide-table--text th:not(:first-child), .guide-table--text td:not(:first-child) { text-align: left; }
.guide-table--text td { vertical-align: top; font-family: var(--f-sans); }
.guide-table--text td:first-child { width: 38%; font-weight: 600; }
.guide-table--text td:not(:first-child) { color: var(--secondary); }

.guide .formula { margin-top: 1.2rem; padding: .9rem 0; border-block: 1px solid var(--rule);
  font-family: var(--f-mono); font-size: 1.05rem; color: var(--ink); }
.formula span { display: block; margin-top: .3rem; font-size: .84rem; color: var(--secondary); }

.guide-cta { margin-top: 3rem; padding-top: 1.6rem; border-top: 2px solid var(--ink); }
.guide .guide-cta h2 { margin-top: 0; }
.guide-cta .price__cta { margin-top: 1.2rem; }

/* calculator */
.calc { margin-top: 2rem; padding: clamp(1.1rem, 3vw, 1.6rem); background: var(--surface);
  border: 1px solid var(--border); border-radius: 1.1rem; box-shadow: var(--shadow); }
.calc [hidden] { display: none; } /* beats the display: grid on .calc__fields */
.guide .calc__title { margin-top: 0; font-size: 1.4rem; }
.calc__step { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--hair); }
.calc__legend { display: flex; align-items: center; gap: .55rem; padding: 0;
  font-size: 1rem; font-weight: 600; color: var(--ink); }
.calc__n { display: inline-grid; place-items: center; flex: none; width: 1.4rem; height: 1.4rem;
  border-radius: 50%; background: var(--lead); color: var(--lead-ink);
  font-family: var(--f-mono); font-size: .74rem; font-weight: 600; }
.calc__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem;
  margin-top: .8rem; }
.calc__fields--one { grid-template-columns: minmax(0, 15rem); }
.calc__field label { display: block; margin-bottom: .3rem; font-size: .82rem; color: var(--secondary); }
.calc input[type="text"] { width: 100%; padding: .6rem .75rem; font: inherit; font-family: var(--f-mono);
  font-size: 1rem; color: var(--ink); background: var(--raise);
  border: 1px solid var(--border); border-radius: .65rem; }
.calc input[type="text"]:focus-visible { outline: 2px solid var(--lead); outline-offset: 1px; }
.calc .calc__derived { margin-top: .6rem; font-family: var(--f-mono); font-size: .85rem; }

.toggle { display: inline-flex; margin-top: .8rem; padding: .2rem; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--border); }
.toggle label { position: relative; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle span { display: block; padding: .38rem .95rem; border-radius: 999px; cursor: pointer;
  font-size: .88rem; font-weight: 500; color: var(--secondary); }
.toggle input:checked + span { background: var(--lead); color: var(--lead-ink); }
.toggle input[value="long"]:checked + span { background: var(--bull); }
.toggle input[value="short"]:checked + span { background: var(--bear); }
.toggle input:focus-visible + span { outline: 2px solid var(--lead); outline-offset: 2px; }

.calc__result { margin-top: 1.4rem; padding: 1.1rem 1.2rem; border-radius: .9rem; background: var(--bg-2); }
.calc .calc__shares { margin-top: .5rem; font-family: var(--f-display); font-size: clamp(2rem, 6vw, 2.6rem);
  line-height: 1.1; color: var(--ink); }
.calc__action { display: block; font-family: var(--f-mono); font-size: .74rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--secondary); }
.calc__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1rem;
  margin: 1rem 0 0; }
.calc__facts dt { font-size: .8rem; color: var(--secondary); }
.calc__facts dd { margin: .1rem 0 0; font-family: var(--f-mono); font-size: .95rem; color: var(--ink); }
.calc .calc__note { margin-top: .8rem; font-size: .9rem; color: var(--bear); }
.calc .calc__note:empty { display: none; }
.calc .calc__fine { margin-top: .8rem; font-size: .8rem; color: var(--muted); }

/* guides index */
.guide .eyebrow { font-family: var(--f-sans); font-size: .95rem; font-weight: 500; letter-spacing: 0;
  text-transform: none; color: var(--secondary); }
.eyebrow a, .eyebrow a:hover { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.guide .guide-list { margin-top: 2rem; padding: 0; list-style: none; }
.guide .guide-list li { margin: 0; }
.guide-card { display: block; padding: 1.4rem 0 1.5rem; color: var(--ink); text-decoration: none;
  border-top: 1px solid var(--rule); }
.guide .guide-list li:last-child .guide-card { border-bottom: 1px solid var(--rule); }
.guide-card:hover { color: var(--ink); }
.guide-card:hover .guide-card__title { color: var(--lead); }
.guide-card__tag { font-size: .88rem; font-weight: 500; color: var(--secondary); }
.guide .guide-card__title { margin-top: .5rem; font-size: 1.5rem; }
.guide .guide-card__text { margin-top: .5rem; }
.guide-card__meta { display: block; margin-top: .8rem; font-family: var(--f-mono); font-size: .78rem;
  color: var(--muted); }
/* keeps the clip on the same line as the title's last word */
.guide-card__last-word { white-space: nowrap; }
/* sits after the title like an emoji, just under the title's line height */
.guide-card__thumb img { display: inline-block; height: 2.4rem; width: auto; vertical-align: middle;
  border-radius: .35rem; border: 1px solid var(--border); }

/* 23-hour trading sketches */
.figure--narrow svg { max-width: 30rem; margin-inline: auto; }
.sk-closed { fill: var(--bg-2); stroke: var(--border); }
.sk-night { fill: color-mix(in srgb, var(--lead) 12%, transparent);
  stroke: color-mix(in srgb, var(--lead) 30%, transparent); }
.sk-dash { stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 3 3; }
.sk-line { fill: none; stroke: var(--lead); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.tl-closed { fill: var(--bg-2); stroke: var(--border); }
.tl-ext { fill: color-mix(in srgb, var(--lead) 18%, var(--bg)); }
.tl-reg { fill: var(--lead); }
.tl-night { fill: color-mix(in srgb, var(--lead) 60%, var(--ink)); }
.tl-pause { fill: var(--muted); }
.tl-text { font-family: var(--f-sans); font-size: 11.5px; font-weight: 500; fill: var(--ink); }
.tl-text--muted { fill: var(--secondary); }
.tl-text--light { fill: var(--lead-ink); }
.guide ol { margin-top: 1rem; padding-left: 1.3rem; color: var(--secondary); }
.guide .sources { margin-top: 2rem; font-size: .85rem; color: var(--muted); }
.guide .sources a { color: var(--secondary); }

/* apophenia sketches */
.figure__trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 600px) {
  .figure__trio { grid-template-columns: 1fr; }
  .figure__trio svg { max-width: 16rem; margin-inline: auto; }
}
.sk-guess { fill: none; stroke: var(--lead); stroke-width: 1.6; stroke-dasharray: 4 3;
  stroke-linecap: round; }
