/* Lose Less: clean learning-app style. White pages, slate text, felt green as the one brand colour,
   chip gold for small highlights. Font: Plus Jakarta Sans, numbers: JetBrains Mono.
   Categories are suits from the four-colour deck: ♠ Preflop, ♣ Postflop, ♦ Math, ♥ Mindset. */
:root {
  --bg: #FFFFFF;
  --bg-2: #F8FAFC;
  --bg-3: #F1F5F9;
  --line: #E2E8F0;
  --line-2: #CBD5E1;
  --ink: #0F172A;
  --text: #1E293B;
  --soft: #475569;
  --mute: #64748B;
  --green: #15803D;
  --felt: #14532D;
  --felt-hi: #1F7A45;
  --gold: #F2B33D;
  --gold-ink: #A16207;
  --win: #15803D;
  --loss: #DC2626;
  --spade: #0F172A; --club: #16A34A; --diamond: #2563EB; --heart: #E11D48;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
  --r: 18px;
  --r-sm: 12px;
  --max: 1160px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .12);
  --surface: #FFFFFF;
  --head-bg: rgba(255, 255, 255, .9);
  --btn-bg: #0F172A; --btn-fg: #FFFFFF; --btn-hover: #1E293B;
  --letter-bg: #0F172A; --letter-line: transparent;
  --answer-bg: #F0FDF4; --wrong-bg: #FEF2F2; --hl: #FEF9C3;
  color-scheme: light;
}
/* Dark version: brand ink background, same layout. Chosen with the header toggle, or follows the device setting. */
:root[data-theme="dark"] {
  --bg: #0B0F0D; --bg-2: #121815; --bg-3: #1A221E; --surface: #121815;
  --line: #222C27; --line-2: #33413A;
  --ink: #F1F5F2; --text: #DCE3DF; --soft: #A6B1AB; --mute: #7F8B84;
  --green: #4ADE80; --win: #4ADE80; --loss: #F87171; --gold-ink: #F2B33D;
  --spade: #E5E7EB; --club: #34D399; --diamond: #60A5FA; --heart: #FB7185;
  --head-bg: rgba(11, 15, 13, .86);
  --btn-bg: #F1F5F2; --btn-fg: #0B0F0D; --btn-hover: #FFFFFF;
  --letter-bg: #121815; --letter-line: #222C27;
  --answer-bg: rgba(74, 222, 128, .09); --wrong-bg: rgba(248, 113, 113, .1); --hl: rgba(242, 179, 61, .16);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
:root[data-theme="dark"] .yt-poster { box-shadow: 0 0 0 1px var(--line), 0 30px 60px -25px rgba(0, 0, 0, .8); }
:root[data-theme="dark"] .felt-grid { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
:root[data-theme="dark"] .letter .btn { background: var(--gold); color: #0B0F0D; }
:root[data-theme="dark"] .signup input[type="email"] { background: #0B0F0D; color: #F1F5F2; border-color: #3A4A41; caret-color: var(--gold); }
:root[data-theme="dark"] .signup input[type="email"]::placeholder { color: #7F8B84; }
:root[data-theme="dark"] .signup input[type="email"]:focus { border-color: var(--gold); }
.theme-toggle { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; margin-left: 6px; flex: none; }
.theme-toggle:hover { border-color: var(--line-2); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: block; } .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid rgba(21, 128, 61, .45); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nw { white-space: nowrap; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.fine { font-size: 13px; color: var(--mute); }

h1, h2, h3 { font-family: var(--font); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(38px, 5.4vw, 64px); }
h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.025em; }
h3 { font-size: 18px; letter-spacing: -0.015em; line-height: 1.3; }
h1 em { font-style: normal; color: var(--green); }
p { margin: 0; }
.kicker { font: 700 12px/1.4 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dek, .lead { font-size: clamp(18px, 1.8vw, 20px); line-height: 1.55; color: var(--soft); max-width: 36em; }
.suit { font-size: 1.1em; line-height: 1; }
.s-Preflop { color: var(--spade); } .s-Postflop { color: var(--club); } .s-Math { color: var(--diamond); } .s-Mindset { color: var(--heart); }
.more { font-weight: 700; font-size: 15px; color: var(--green); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 700 16px var(--font); text-decoration: none; padding: 14px 22px; border: 0; background: var(--btn-bg); color: var(--btn-fg); cursor: pointer; border-radius: var(--r-sm); transition: background .15s, transform .15s; }
.btn:hover { background: var(--btn-hover); text-decoration: none; transform: translateY(-1px); color: var(--btn-fg); }
.btn.line { background: var(--bg-3); color: var(--ink); }
.btn.line:hover { background: var(--line); color: var(--ink); }
.btn svg { width: 18px; height: 18px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--head-bg); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand span { font: 800 20px var(--font); letter-spacing: -.03em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 10px; }
.nav a:hover { background: var(--bg-3); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--bg-3); }
.nav .nav-cta { margin-left: 8px; background: var(--btn-bg); color: var(--btn-fg); font-weight: 700; }
.nav .nav-cta:hover, .nav .nav-cta[aria-current="page"] { background: var(--btn-hover); color: var(--btn-fg); }
@media (max-width: 760px) {
  .site-head { position: relative; }
  .site-head .wrap { height: auto; padding-block: 12px 8px; flex-wrap: wrap; gap: 8px; }
  .nav { width: 100%; gap: 2px; overflow-x: auto; scrollbar-width: none; margin-left: -10px; }
  .nav a { padding: 8px 10px; font-size: 15px; white-space: nowrap; }
  .nav .nav-cta { position: absolute; right: calc(max(24px, env(safe-area-inset-right, 0px)) + 48px); top: 12px; margin: 0; font-size: 14px; padding: 8px 14px; }
  .theme-toggle { position: absolute; right: max(24px, env(safe-area-inset-right, 0px)); top: 10px; margin: 0; }
}

/* Home hero */
.front-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: center; padding-block: 64px 72px; }
.front-copy { display: grid; gap: 22px; align-content: center; justify-items: start; }
.pill { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 5px 14px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600; box-shadow: var(--shadow); }
.pill:hover { text-decoration: none; border-color: var(--line-2); color: var(--ink); }
.pill-new { background: var(--btn-bg); color: var(--btn-fg); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.stats { list-style: none; margin: 8px 0 0; padding: 0; display: flex; gap: 36px; flex-wrap: wrap; }
.stats li { display: grid; }
.stats b { font: 800 26px var(--font); letter-spacing: -.02em; color: var(--ink); }
.stats span { font-size: 14px; color: var(--mute); }
@media (max-width: 860px) {
  .front-grid { grid-template-columns: 1fr; gap: 40px; padding-block: 36px 48px; }
  .front-poster { max-width: 260px; justify-self: center; width: 100%; }
}

/* Poster that links out to YouTube */
.yt-poster { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; background: var(--ink); box-shadow: 0 30px 60px -25px rgba(15, 23, 42, .45); text-decoration: none; }
.yt-poster:hover { text-decoration: none; }
.yt-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.yt-poster:hover img { transform: scale(1.03); }
.yt-poster .play { position: absolute; left: 50%; top: 62%; translate: -50% -50%; width: 68px; height: 68px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: #0F172A; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); transition: scale .2s; }
.yt-poster .play svg { width: 30px; height: 30px; margin-left: 4px; }
.yt-poster:hover .play { scale: 1.08; }
.yt-poster .yt-cap { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; background: rgba(255, 255, 255, .95); color: #0F172A; border-radius: 12px; font: 700 14px var(--font); }
.yt-poster .yt-cap svg { width: 20px; height: 20px; color: #FF0033; }

/* Sections */
.block { padding-top: 72px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }

/* Start here */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps a { display: grid; gap: 10px; align-content: start; height: 100%; padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; }
.steps a::before { content: counter(step); width: 36px; height: 36px; border-radius: 10px; background: var(--bg-3); color: var(--ink); display: grid; place-items: center; font: 800 16px var(--font); }
.steps a:hover { text-decoration: none; border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.steps p { color: var(--soft); font-size: 16px; }
.steps .more { font-size: 14px; margin-top: 4px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Lesson list: cards in a grid */
.rows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); transition: border-color .15s, box-shadow .15s, transform .15s; }
.row:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.row[hidden] { display: none; }
.row-main { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 4px 14px 14px; color: var(--text); min-width: 0; }
.row-main:hover { text-decoration: none; color: var(--text); }
.row-main::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); } /* whole card clickable */
.row-no, .row-num { display: none; }
.row-main img { width: 64px; height: 80px; object-fit: cover; border-radius: 10px; background: var(--ink); }
.row-text { display: grid; gap: 3px; min-width: 0; }
.row-text strong { font: 700 16px/1.3 var(--font); color: var(--ink); letter-spacing: -.01em; }
.row-ans { font-size: 14px; line-height: 1.45; color: var(--mute); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-text .kicker { font-size: 11px; }
.row-yt { position: relative; z-index: 1; margin-right: 14px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-3); color: var(--ink); }
.row-yt svg { width: 18px; height: 18px; margin-left: 2px; }
.row-yt:hover { background: var(--btn-bg); color: var(--btn-fg); }
@media (max-width: 420px) { .rows { grid-template-columns: 1fr; } .row-main { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; } .row-main img { width: 52px; height: 65px; } }

/* Filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button { font: 600 14px var(--font); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.filters button:hover { border-color: var(--line-2); }
.filters button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.filters button[aria-pressed="true"] .suit { color: var(--btn-fg); }

/* Calculator band: a green panel */
.felt { margin-top: 72px; }
.felt > .wrap { max-width: calc(var(--max)); }
.felt-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; padding: 48px !important; border-radius: 28px; color: #E7F2EB; background: radial-gradient(ellipse 90% 120% at 0% 0%, var(--felt-hi), var(--felt) 65%); }
.felt-copy { display: grid; gap: 16px; }
.felt-copy h2 { color: #fff; }
.felt-copy .kicker { color: var(--gold); }
.felt-copy p:not(.kicker) { font-size: 18px; max-width: 30em; }
.felt-copy a { color: #fff; font-weight: 700; }
@media (max-width: 860px) { .felt-grid { grid-template-columns: 1fr; padding: 28px 20px !important; border-radius: 22px; margin-inline: 12px; } .felt > .wrap { padding: 0; } }

/* Calculators */
.tool { background: var(--surface); color: var(--text); border: 1px solid var(--line); padding: 24px; display: grid; gap: 18px; min-width: 0; border-radius: var(--r); box-shadow: var(--shadow); }
.tool-head { display: grid; gap: 4px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; align-content: end; }
.field label { font-size: 13px; font-weight: 600; color: var(--soft); }
.field input, .field select { font: 700 18px var(--mono); color: var(--ink); background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%; min-width: 0; }
.field input:focus, .field select:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(21, 128, 61, .15); background: var(--surface); }
.result { display: grid; gap: 6px; padding: 18px; background: var(--bg-2); border-radius: 14px; }
.result .big { font: 800 46px/1.05 var(--font); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.verdict { font-weight: 700; }
.verdict.call { color: var(--win); }
.verdict.fold { color: var(--loss); }
.tools-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }

/* Charts */
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; padding-top: 16px; }
.chart { display: grid; gap: 12px; align-content: start; }
.chart p { color: var(--soft); }
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 15px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
thead th { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--mute); background: var(--bg-2); }
tbody tr:hover { background: var(--bg-2); }

/* Manifesto */
.manifesto { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.manifesto blockquote { margin: 0; display: grid; gap: 16px; }
.manifesto blockquote p { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; font-weight: 700; letter-spacing: -.02em; color: var(--ink); text-wrap: pretty; }
.manifesto footer { font-size: 18px; color: var(--soft); }
.manifesto footer strong { color: var(--green); }
.rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rules li { padding: 16px 18px; border-radius: 14px; background: var(--bg-2); color: var(--soft); font-size: 16px; }
.rules b { color: var(--ink); }
@media (max-width: 860px) { .manifesto { grid-template-columns: 1fr; gap: 24px; } }

/* Newsletter */
.letter { margin-top: 72px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: 40px; background: var(--letter-bg); color: #CBD5E1; border-radius: 28px; border: 1px solid var(--letter-line); }
.letter h2 { color: #fff; }
.letter .kicker { color: var(--gold); }
.letter-copy { display: grid; gap: 10px; }
.letter-copy p:last-child { font-size: 17px; }
.letter .fine { color: #94A3B8; margin-top: 10px; }
.letter .fine a { color: #E2E8F0; text-decoration: underline; }
.signup { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.signup input[type="email"] { font: 500 16px var(--font); padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink); min-width: 0; }
.signup input[type="email"]:focus { outline: 0; box-shadow: 0 0 0 3px rgba(242, 179, 61, .5); }
.letter .btn { background: var(--gold); color: var(--ink); }
.letter .btn:hover { background: #FFC85A; color: var(--ink); }
.signup .btn[disabled] { opacity: .6; cursor: wait; }
.form-msg { grid-column: 1 / -1; font-size: 15px; font-weight: 600; }
.form-msg:empty { display: none; }
.form-msg.ok { color: #86EFAC; }
.form-msg.err { color: #FCA5A5; }
.letter.solo { margin-top: 0; display: block; }
.lesson-body .letter { margin-top: 8px; grid-template-columns: 1fr; gap: 18px; padding: 28px; border-radius: 22px; }
@media (max-width: 760px) { .letter { grid-template-columns: 1fr; padding: 26px; border-radius: 22px; } .signup { grid-template-columns: 1fr; } }

/* Plain pages */
.page { padding-top: 56px; display: grid; gap: 28px; }
.page.narrow { max-width: 780px; }
.page.center { text-align: center; justify-items: center; }
.page-head { display: grid; gap: 14px; }
.prose { display: grid; gap: 18px; font-size: 18px; line-height: 1.75; color: var(--text); }
.prose h2 { margin-top: 14px; font-size: 24px; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.callout { padding: 18px 22px; background: var(--bg-2); border-radius: 14px; font-size: 16px; color: var(--soft); }
.callout strong { color: var(--ink); }

/* Glossary */
.az { display: flex; flex-wrap: wrap; gap: 6px; }
.az a { font: 700 15px var(--font); width: 38px; height: 38px; display: grid; place-items: center; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; }
.az a:hover { background: var(--btn-bg); color: var(--btn-fg); text-decoration: none; }
.gloss { display: grid; gap: 14px; }
.gloss section { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r); }
.gloss h2 { font-size: 36px; color: var(--green); }
.gloss dl { margin: 0; display: grid; gap: 20px; }
.gloss dl > div { scroll-margin-top: 90px; border-radius: 10px; }
.gloss dl > div:target { background: var(--hl); box-shadow: 0 0 0 10px var(--hl); }
.gloss dt { font: 700 18px var(--font); color: var(--ink); }
.gloss dd { margin: 4px 0 0; font-size: 16px; line-height: 1.65; color: var(--soft); max-width: 68ch; }
.gloss dd .more { font-size: 14px; margin-left: 4px; }
@media (max-width: 720px) { .gloss section { grid-template-columns: 1fr; gap: 8px; padding: 20px; } .gloss h2 { font-size: 28px; } }

/* Lesson page */
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--mute); padding-top: 28px; }
.crumbs a { color: var(--soft); font-weight: 500; }
.lesson { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "head aside" "body aside"; column-gap: 64px; row-gap: 28px; padding-top: 20px; align-items: start; }
.lesson-head { grid-area: head; display: grid; gap: 16px; }
.lesson-head h1 { font-size: clamp(32px, 4.4vw, 52px); }
.lesson-aside { grid-area: aside; display: grid; gap: 16px; }
@media (min-height: 940px) and (min-width: 901px) { .lesson-aside { position: sticky; top: 92px; } }
.lesson-body { grid-area: body; display: grid; gap: 32px; min-width: 0; max-width: 700px; }
.answer { display: grid; gap: 6px; padding: 20px 22px; background: var(--answer-bg); border-radius: 16px; }
.answer .kicker { color: var(--green); }
.answer p:last-child { font-size: 21px; font-weight: 700; line-height: 1.4; color: var(--ink); letter-spacing: -.01em; }
.lesson-body .prose { font-size: 18px; }
.term { color: inherit; text-decoration: underline dotted var(--mute); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.term:hover { color: var(--green); text-decoration: underline solid; }
.number { display: grid; gap: 2px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); }
.number b { font: 800 42px/1.1 var(--font); color: var(--ink); letter-spacing: -.03em; }
.number span { color: var(--mute); font-size: 15px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; }
.share .kicker { width: 100%; }
.share a, .share button { padding: 7px 12px; border-radius: 999px; background: var(--bg-3); color: var(--ink); font: 600 14px var(--font); border: 0; cursor: pointer; }
.share a:hover, .share button:hover { background: var(--line); text-decoration: none; }
.lesson-body h2 { font-size: 24px; margin-bottom: 14px; }
.takeaways { list-style: none; padding: 0; margin: 0; counter-reset: tk; display: grid; gap: 10px; }
.takeaways li { counter-increment: tk; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: center; font-weight: 600; font-size: 17px; color: var(--ink); }
.takeaways li::before { content: counter(tk); width: 32px; height: 32px; border-radius: 10px; background: var(--bg-3); display: grid; place-items: center; font: 800 14px var(--font); }
.quiz { display: grid; gap: 14px; padding: 24px; background: var(--bg-2); border-radius: var(--r); }
.quiz-q { font-weight: 700; font-size: 19px; line-height: 1.4; color: var(--ink); }
.quiz .opts { display: grid; gap: 8px; }
.quiz button { display: flex; gap: 12px; align-items: center; text-align: left; font: 600 16px var(--font); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; transition: border-color .15s; }
.quiz button span { font: 800 13px var(--font); width: 28px; height: 28px; display: grid; place-items: center; background: var(--bg-3); border-radius: 8px; flex: none; }
.quiz button:hover:not(:disabled) { border-color: var(--line-2); }
.quiz button.right { border-color: var(--win); background: var(--answer-bg); }
.quiz button.right span { background: var(--win); color: #fff; }
.quiz button.wrong { border-color: var(--loss); background: var(--wrong-bg); }
.quiz button.wrong span { background: var(--loss); color: #fff; }
.quiz button:disabled { cursor: default; }
.quiz .why { font-size: 16px; color: var(--soft); }
.quiz .why strong { color: var(--ink); }
.terms { font-size: 15px; color: var(--mute); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pager a { display: grid; gap: 4px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); min-width: 0; }
.pager a:hover { text-decoration: none; border-color: var(--line-2); box-shadow: var(--shadow); }
.pager a.next { text-align: right; }
.pager small { font-size: 13px; font-weight: 600; color: var(--mute); }
.pager span { font-weight: 700; }
@media (max-width: 900px) {
  .lesson { grid-template-columns: 1fr; grid-template-areas: "head" "aside" "body"; row-gap: 24px; }
  .lesson-aside { grid-template-columns: 140px minmax(0, 1fr); align-items: start; gap: 14px; }
  .lesson-aside .yt-poster { grid-row: span 2; border-radius: 18px; }
  .lesson-aside .yt-poster .play { width: 48px; height: 48px; }
  .lesson-aside .yt-poster .play svg { width: 22px; height: 22px; }
  .lesson-aside .yt-poster .yt-cap { font-size: 12px; padding: 7px; left: 8px; right: 8px; bottom: 8px; border-radius: 9px; }
  .lesson-aside .yt-poster .yt-cap svg { display: none; }
  .number b { font-size: 32px; }
  .pager { grid-template-columns: 1fr; }
  .pager a.next { text-align: left; }
}

/* Footer */
.site-foot { margin-top: 96px; background: var(--bg-2); border-top: 1px solid var(--line); color: var(--soft); }
.foot-grid { padding-block: 48px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand { display: grid; gap: 14px; align-content: start; }
.foot-brand p { font-size: 15px; max-width: 34ch; }
.site-foot h2 { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
.site-foot a { color: var(--soft); }
.site-foot a:hover { color: var(--ink); text-decoration: none; }
.social { display: flex; gap: 8px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.social svg { width: 20px; height: 20px; }
.legal { border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); }
.legal .wrap { padding-block: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
