/* Marketing site, auth and legal pages */

/* The site wears the app's Blanc theme: white paper, soft colour, ink buttons, thin outlines and soft shadows.
   These tokens match :root[data-theme="blanc"] in app.css; change both together. */
:root {
  --bg: #fafafa; --dot: rgba(20, 20, 23, 0.045); --surface: #ffffff; --surface-2: #f6f6f7; --soft: #efeff1;
  --line: #e6e6e9; --line-2: #d2d2d8; --ink: #141417; --ink-2: #4b4b55; --ink-3: #686873; --border: #d2d2d8; --on-pastel: #141417;
  --yellow: #f6d97a; --yellow-2: #efcb5a; --pink: #f2c2e2; --blue: #c3d1fa; --teal: #b2e8d8; --rose: #f6bfca; --peach: #f8cdab;
  --accent: #b5287f; --accent-2: #8f1f64; --accent-soft: #fbe6f3;
  --again: #b01f52; --hard: #7d4b00; --good: #0a6650; --easy: #2c48c2;
  --again-soft: #fde4ea; --hard-soft: #fdf0cc; --good-soft: #dcf5ec; --easy-soft: #e6ecfe;
  --shadow-c: rgba(20, 20, 23, 0.10);
  --shadow-sm: 0 1px 2px rgba(20, 20, 23, 0.06); --shadow: 0 2px 10px rgba(20, 20, 23, 0.07); --shadow-lg: 0 8px 26px rgba(20, 20, 23, 0.09);
  --bw: 1.5px;
}
/* Main buttons are ink, as in the app's Blanc. */
:is(.btn-primary, .btn-accent) { background: var(--ink); color: #fff; border-color: var(--ink); }
:is(.btn-primary, .btn-accent):hover { background: #2e2e35; }
.btn:hover { box-shadow: var(--shadow); }
.btn:active { box-shadow: none; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - 32px); margin-inline: auto; }

/* Header: a slim, mac-menu-bar-like strip. Solid, not blurred: a backdrop blur is redrawn on every scrolled frame. */
html { scroll-padding-top: 76px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: var(--bw) solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.site-header .left { display: flex; align-items: center; gap: 22px; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a.link { padding: 6px 12px; border-radius: 99px; text-decoration: none; color: var(--ink-2); font-size: 14px; font-weight: 500; white-space: nowrap; }
.site-nav a.link:hover { color: var(--ink); background: var(--soft); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; }
.menu-btn svg { width: 20px; height: 20px; }
/* The six links need about 920px beside the logo and buttons; below that they go in the menu. */
@media (max-width: 940px) {
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: var(--bw) solid var(--border); padding: 8px 16px 16px; }
  .site-nav.open { display: flex; }
  .menu-btn { display: inline-flex; }
  .nav-actions .btn-ghost:not(.menu-btn) { display: none; }
}

.site-footer { border-top: var(--bw) solid var(--border); background: var(--surface); margin-top: 110px; padding: 56px 0 40px; font-size: 14px; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 12px; font-weight: 700; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; color: var(--ink-2); }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1.5px dashed var(--line-2); color: var(--ink-3); font-size: 13px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Legal / prose */
.prose { font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.prose h1 { font-weight: 700; font-size: clamp(34px, 5.5vw, 52px); color: var(--ink); letter-spacing: -0.04em; margin: 56px 0 10px; line-height: 1.14; }
.prose code { font-family: var(--font-mono); font-size: .86em; background: var(--soft); border: 1px solid var(--line-2); border-radius: 6px; padding: .05em .4em; color: var(--ink); }
.prose .cloze-demo { padding: 0 .35em; border-radius: 6px; background: var(--yellow); color: var(--on-pastel); border: 1.5px dashed var(--border); font-weight: 600; }
.prose .updated { margin-top: 8px; display: inline-block; color: var(--on-pastel); background: var(--yellow); border: 1.5px solid var(--border); border-radius: 99px; padding: 1px 12px; font-size: 13px; font-weight: 600; margin-bottom: 36px; }
.prose h2 { font-size: 21px; color: var(--ink); margin: 42px 0 12px; }
.prose h3 { font-size: 16px; color: var(--ink); margin: 24px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a:not(.btn) { color: var(--ink); text-decoration-thickness: 2px; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 14.5px; background: var(--surface); border: var(--bw) solid var(--border); border-radius: 14px; overflow: hidden; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1.5px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 700; background: var(--soft); }
.prose .callout { background: var(--accent-soft); border: var(--bw) solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 26px; box-shadow: var(--shadow-sm); color: var(--ink); }
.prose .toc { background: var(--surface); border: var(--bw) solid var(--border); border-radius: var(--radius); padding: 16px 22px; margin-bottom: 32px; box-shadow: var(--shadow-sm); }
.prose .toc ol { margin: 0; }
.prose .chart { margin: 26px 0 30px; padding: 18px 18px 14px; box-shadow: var(--shadow); }
.prose .chart figcaption { font-size: 13.5px; color: var(--ink-3); text-align: center; margin-top: 6px; line-height: 1.5; }
.prose .mid-cta { margin: 26px 0 0; }
/* Room on the right and below for the table's offset shadow, which the scroll box would otherwise cut off. */
.table-scroll { overflow-x: auto; padding: 0 6px 6px 0; margin: 0 -6px -6px 0; }

/* Auth pages */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--pink); color: var(--on-pastel); padding: 44px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; border-right: var(--bw) solid var(--border);
  background-image: linear-gradient(rgba(43,27,20,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(43,27,20,.07) 1px, transparent 1px); background-size: 30px 30px; }
.auth-side .logo { color: var(--on-pastel); }
.auth-side .logo b { color: var(--on-pastel); }
.auth-quote { font-weight: 700; font-size: 44px; line-height: 1.16; letter-spacing: -0.045em; max-width: 440px; }
.auth-quote em { font-style: normal; display: inline-block; line-height: 1.05; background: var(--yellow); border: var(--bw) solid var(--border); border-radius: 12px; padding: 0 .18em .06em; margin: 2px 0; box-shadow: var(--shadow-sm); transform: rotate(-1.5deg); }
.auth-side .mini-card { position: absolute; right: 44px; top: 34%; width: 230px; background: var(--surface); border: var(--bw) solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 18px; transform: rotate(4deg); font-size: 14px; }
.auth-side .mini-card b { display: block; font-size: 16px; margin: 8px 0 12px; }
.auth-side .mini-card .pill svg { width: 12px; height: 12px; }
.auth-main { display: grid; place-items: center; padding: 48px 16px; }
.auth-box { width: min(420px, 100%); display: grid; gap: 18px; background: var(--surface); border: var(--bw) solid var(--border); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-lg); }
.auth-box h1 { font-size: 28px; }
.auth-box .sub { color: var(--ink-2); }
.oauth { display: grid; gap: 14px; }
.oauth[hidden] { display: none; }
.btn-google { background: var(--surface); color: var(--ink); gap: 10px; }
.btn-google svg { width: 19px; height: 19px; flex: none; }
.oauth-note { font-size: 12.5px; line-height: 1.5; color: var(--ink-3); text-align: center; margin: -4px 0 0; }
.oauth-note a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.or { display: flex; align-items: center; gap: 12px; margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.or::before, .or::after { content: ''; flex: 1; height: 1.5px; background: var(--line-2); }
.auth-alt { font-size: 14px; color: var(--ink-2); text-align: center; }
.auth-alt a { color: var(--ink); font-weight: 700; }
@media (max-width: 1100px) { .auth-side .mini-card { display: none; } }
@media (max-width: 860px) { .auth-shell { grid-template-columns: 1fr; } .auth-side { display: none; } .auth-box { box-shadow: var(--shadow); } }

/* ---------- Landing ---------- */
.hero { position: relative; padding: 70px 0 40px; text-align: center; }
.hero h1 { font-weight: 700; font-size: clamp(46px, 8.4vw, 104px); line-height: 1.02; letter-spacing: -0.06em; margin: 22px auto 22px; max-width: 900px; }
.hero h1 .hl { display: inline-block; background: var(--pink); border: 3px solid var(--border); border-radius: 22px; padding: 0 .16em .15em; line-height: 1.08; margin: .04em 0; box-shadow: var(--shadow-lg); transform: rotate(-2deg); color: var(--on-pastel); }
.hero .lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 580px; margin: 0 auto; }
.hero-ctas { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; justify-content: center; }
.hero-sub { display: flex; gap: 40px; justify-content: center; margin-top: 14px; font-size: 12.5px; color: var(--ink-3); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 4px 13px 4px 5px; border-radius: 99px; background: var(--surface); border: var(--bw) solid var(--border); font-size: 13px; color: var(--ink); text-decoration: none; font-weight: 500; box-shadow: var(--shadow-sm); }
.eyebrow b { background: var(--teal); color: var(--on-pastel); font-size: 11px; padding: 1px 9px; border-radius: 99px; font-weight: 700; border: 1.5px solid var(--border); }

/* Floating desktop stickers around the hero (heyclicky-style) */
.stickers { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero > *:not(.stickers) { position: relative; z-index: 1; }
.stk { position: absolute; font-size: 13px; color: var(--ink-3); font-family: var(--font-mono); }
.stk.win { width: 168px; background: var(--surface); border: var(--bw) solid var(--border); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; color: var(--ink); font-family: var(--font); }
.stk.win .bar { display: flex; gap: 5px; padding: 6px 8px; border-bottom: 1.5px solid var(--border); background: var(--soft); }
.stk.win .bar i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--border); }
.stk.win .bar i:nth-child(1) { background: var(--rose); } .stk.win .bar i:nth-child(2) { background: var(--yellow); } .stk.win .bar i:nth-child(3) { background: var(--teal); }
.stk.win .body { padding: 12px; font-size: 12.5px; font-weight: 600; line-height: 1.35; text-align: left; }
.stk.win .cap { display: block; font-size: 10.5px; font-weight: 500; color: var(--ink-3); margin-top: 6px; font-family: var(--font-mono); }
.stk.note { width: 136px; padding: 12px; background: var(--yellow); border: var(--bw) solid var(--border); box-shadow: var(--shadow-sm); color: var(--on-pastel); font-family: var(--font); font-weight: 600; font-size: 12.5px; line-height: 1.35; text-align: left; }
.stk.folder { width: 54px; text-align: center; font-size: 10.5px; }
.stk.folder svg { width: 48px; height: 40px; margin: 0 auto 2px; }
.stk.spark svg { width: 28px; height: 28px; }
.stk-row { display: flex; align-items: center; gap: 6px; }
.stk-flame { width: 18px; height: 18px; flex: none; }
.inline-arrow { display: inline-block; width: 13px; height: 13px; vertical-align: -2px; margin: 0 1px; }
.s-a { left: 0; top: 40px; transform: rotate(-6deg); }
.s-b { right: 4px; top: 60px; transform: rotate(5deg); }
.s-c { left: 40px; top: 330px; transform: rotate(4deg); }
.s-d { right: 30px; top: 330px; transform: rotate(-3deg); }
.s-e { left: 230px; top: 18px; }
.s-f { right: 250px; top: 26px; }
.s-i { left: 140px; top: 210px; }
.s-j { right: 150px; top: 230px; }
/* The stickers drift a few pixels. Only `translate` and `rotate` move, so the compositor does it without repainting, and it stops when the hero is off screen. */
@media (prefers-reduced-motion: no-preference) {
  .stk { animation: stkBob 6s ease-in-out infinite alternate; }
  .s-b, .s-e { animation-duration: 7.5s; animation-delay: -2s; } .s-c, .s-f { animation-duration: 8.5s; animation-delay: -4s; } .s-d { animation-duration: 7s; animation-delay: -5s; }
  .stk.spark { animation: stkTwinkle 3.6s ease-in-out infinite alternate; } .s-j { animation-delay: -1.8s; }
  .hero.off .stk { animation-play-state: paused; }
  .hero h1 .hl { animation: hlStamp .55s cubic-bezier(.3, 1.5, .5, 1) .15s backwards; }
}
@keyframes stkBob { to { translate: 0 -12px; } }
@keyframes stkTwinkle { to { rotate: 28deg; scale: 1.25; } }
@keyframes hlStamp { from { transform: rotate(-9deg) scale(.86); } }
@media (max-width: 1100px) { .s-e, .s-f, .s-i, .s-j { display: none; } }
@media (max-width: 900px) { .stickers { display: none; } }

/* Demo window */
.demo-wrap { width: min(640px, 100%); margin: 56px auto 0; position: relative; z-index: 1; }
.demo-window { background: var(--surface); border: var(--bw) solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; text-align: left; }
.demo-titlebar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: var(--bw) solid var(--border); background: var(--soft); font-size: 12px; font-family: var(--font-mono); color: var(--ink-3); }
.demo-titlebar i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--border); }
.demo-titlebar i:nth-child(1) { background: var(--rose); } .demo-titlebar i:nth-child(2) { background: var(--yellow); } .demo-titlebar i:nth-child(3) { background: var(--teal); }
.demo-titlebar span { margin: 0 auto; transform: translateX(-24px); }
.demo-card { padding: 22px; }
.demo-card:focus { outline: none; }
.demo-flash { position: relative; background: var(--pink); color: var(--on-pastel); border: var(--bw) solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 44px 24px 34px; text-align: center;
  background-image: linear-gradient(rgba(43,27,20,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(43,27,20,.07) 1px, transparent 1px); background-size: 26px 26px; }
.demo-flash .sparkle.s1 { top: 16px; right: 18px; } .demo-flash .sparkle.s2 { bottom: 14px; left: 16px; width: 22px; height: 22px; }
.demo-top { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; white-space: nowrap; }
.demo-ctx, .demo-count { font-size: 11.5px; font-weight: 600; background: var(--surface); color: var(--ink); border: 1.5px solid var(--border); border-radius: 99px; padding: 1px 10px; }
.demo-q { font-size: 25px; font-weight: 700; line-height: 1.3; letter-spacing: -0.025em; }
.demo-input { width: 100%; margin-top: 16px; border: var(--bw) solid var(--border); border-radius: 16px; padding: 13px 16px; font-size: 16px; background: var(--surface); outline: none; resize: none; box-shadow: var(--shadow-sm); }
.demo-input:focus { box-shadow: var(--shadow); }
.demo-hint { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: 8px; }
.demo-mark { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: var(--bw) solid var(--border); font-size: 14.5px; animation: rise .25s ease-out; }
.demo-mark .head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.demo-mark .v { font-weight: 700; font-size: 13px; padding: 2px 10px; border-radius: 99px; border: 1.5px solid var(--border); color: var(--on-pastel); }
.demo-mark .ai { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-3); }
.demo-mark .ai svg { width: 13px; height: 13px; color: var(--accent-2); }
.demo-mark .tip { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--hard-soft); border: 1.5px solid var(--border); font-size: 13.5px; }
.demo-mark .tip b { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; display: block; margin-bottom: 2px; }
.demo-rates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 16px; }
.demo-rates button { border: var(--bw) solid var(--border); border-radius: 14px; padding: 8px 4px; display: grid; gap: 0; cursor: pointer; font-size: 14px; font-weight: 700; position: relative; color: var(--ink); box-shadow: var(--shadow-sm); }
.demo-rates button small { font-weight: 500; font-size: 11px; opacity: .7; }
.demo-rates .r1 { background: var(--again-soft); } .demo-rates .r2 { background: var(--hard-soft); } .demo-rates .r3 { background: var(--good-soft); } .demo-rates .r4 { background: var(--easy-soft); }
.demo-rates .sug { box-shadow: var(--shadow); transform: translate(-2px, -2px); color: var(--on-pastel); }
.demo-rates .sug.r1 { background: var(--rose); } .demo-rates .sug.r2 { background: var(--yellow); } .demo-rates .sug.r3 { background: var(--teal); } .demo-rates .sug.r4 { background: var(--blue); }
.demo-rates .sug::before { white-space: nowrap; content: 'Enter ↵'; position: absolute; top: -11px; left: 50%; transform: translateX(-50%); font: 700 10px var(--font-mono); background: var(--ink); color: var(--bg); padding: 1px 7px; border-radius: 99px; }
.demo-note { text-align: center; font-size: 12.5px; color: var(--ink-3); margin-top: 18px; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

.boards { margin-top: 56px; padding: 30px 0 28px; text-align: center; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 500; }
.boards .row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.boards-note { font-size: 12px; margin-top: 14px; font-weight: 400; color: #cdbfb2; }
.boards .row span { font-weight: 700; font-size: 15px; color: var(--ink); background: var(--surface); border: var(--bw) solid var(--border); border-radius: 99px; padding: 5px 16px; }
.boards .row span:nth-child(7n+1) { background: var(--yellow); } .boards .row span:nth-child(7n+2) { background: var(--pink); } .boards .row span:nth-child(7n+3) { background: var(--teal); } .boards .row span:nth-child(7n+4) { background: var(--blue); } .boards .row span:nth-child(7n+5) { background: var(--peach); } .boards .row span:nth-child(7n+6) { background: var(--rose); }

.section { padding: 110px 0 0; }
/* A full-width block of colour between the paper sections. */
.band { margin-top: 110px; padding: 92px 0 100px; border-block: var(--bw) solid var(--border); background-color: var(--band); background-image: radial-gradient(rgba(43, 27, 20, .14) 1.2px, transparent 1.2px); background-size: 22px 22px; }
.band-teal { --band: var(--teal); } .band-blue { --band: var(--blue); } .band-yellow { --band: var(--yellow); }
.band .kicker { background: var(--surface); }
.band .section-head p, .band .muted, .band .science li, .band .pc-copy p, .band .gallery-head p, .band .hint { color: var(--ink); }
.band .arrow-link { color: var(--ink); }
.boards + .section { padding-top: 96px; }
.mid-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 36px; font-size: 14px; color: var(--ink-2); }
.science-more { margin-top: 24px; } .pricing-more { text-align: center; margin-top: 30px; }
@media (max-width: 640px) { .section { padding-top: 76px; } .band { margin-top: 76px; padding: 64px 0 72px; } .boards + .section { padding-top: 68px; } .cta-band { margin-top: 84px; padding: 52px 22px; } .site-footer { margin-top: 84px; } }
.section-head { max-width: 660px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.arrow-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-2); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.arrow-link .arrow { width: 16px; height: 16px; transition: transform .15s; }
.arrow-link:hover .arrow { transform: translateX(3px); }

.kicker { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--on-pastel); background: var(--teal); border: 1.5px solid var(--border); border-radius: 99px; padding: 2px 12px; }
/* 1.1, not tighter: Poppins has long descenders, and at 1.02 a g or p on one line ran into the next. */
.section-head h1, .section-head h2 { font-weight: 700; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.1; letter-spacing: -0.045em; margin: 14px 0 14px; }
.section-head h1 { font-size: clamp(40px, 7vw, 72px); }
.section-head h2.sub { font-size: clamp(30px, 4vw, 40px); margin-top: 0; }
.section-head p { font-size: 17px; color: var(--ink-2); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--surface); border: var(--bw) solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.step .num { width: 48px; height: 48px; border-radius: 14px; border: var(--bw) solid var(--border); display: grid; place-items: center; font-size: 22px; font-weight: 700; color: var(--on-pastel); box-shadow: var(--shadow-sm); }
.step:nth-child(1) .num { background: var(--pink); } .step:nth-child(2) .num { background: var(--blue); } .step:nth-child(3) .num { background: var(--teal); }
.step h3 { font-size: 19px; margin: 20px 0 8px; }
.step p { line-height: 1.6; }
.step p { color: var(--ink-2); font-size: 15px; }
.step a { color: var(--accent-2); font-weight: 600; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

.science { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.chart { background: var(--surface); border: var(--bw) solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-lg); }
/* The memory graph draws itself when it scrolls into view (site.js adds .anim, then .in; .live while it is on screen). Without JS or with reduced motion it is simply shown. */
.mem { width: 100%; height: auto; }
/* The drawing shrinks with the screen, so on a phone its writing is set larger to stay readable. */
@media (max-width: 520px) { .mem text { font-size: 16px; } .chart { padding: 14px 12px; } }
.mem .mem-ping { opacity: 0; transform-box: fill-box; transform-origin: center; }
.mem .mem-pop { transform-box: fill-box; transform-origin: center; }
.mem.anim .mem-draw { stroke-dasharray: 1 3; stroke-dashoffset: 1.05; visibility: hidden; }
.mem.anim .mem-fade { opacity: 0; }
.mem.anim .mem-pop { transform: scale(0); }
.mem.anim.in .mem-draw { animation: memDraw var(--t, .6s) linear var(--d, 0s) both; }
.mem.anim.in .mem-fade { animation: memFade .5s ease-out var(--d, 0s) both; }
.mem.anim.in .mem-pop { animation: memPop .5s cubic-bezier(.3, 1.7, .5, 1) var(--d, 0s) both; }
.mem.anim.in.live .mem-ping { animation: memPing 8s ease-out calc(5s + var(--i) * .5s) infinite; }
@keyframes memDraw { 0% { stroke-dashoffset: 1.05; visibility: hidden; } 1% { visibility: visible; } 100% { stroke-dashoffset: 0; visibility: visible; } }
@keyframes memFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes memPop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes memPing { 0% { opacity: .6; transform: scale(1); } 12%, 100% { opacity: 0; transform: scale(2.8); } }
.science ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.science li { display: flex; gap: 12px; color: var(--ink-2); }
.science li b { color: var(--ink); }
.science li .ic { width: 34px; height: 34px; border-radius: 11px; background: var(--yellow); color: var(--on-pastel); border: 1.5px solid var(--border); display: grid; place-items: center; flex: none; }
.science li .ic svg { width: 17px; height: 17px; }
@media (max-width: 900px) { .science { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--surface); border: var(--bw) solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.feature .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; border: var(--bw) solid var(--border); color: var(--on-pastel); background: var(--blue); }
.feature:nth-child(6n+2) .ic { background: var(--teal); } .feature:nth-child(6n+3) .ic { background: var(--pink); } .feature:nth-child(6n+4) .ic { background: var(--yellow); } .feature:nth-child(6n+5) .ic { background: var(--rose); } .feature:nth-child(6n) .ic { background: var(--peach); }
.feature .ic svg { width: 20px; height: 20px; }
.feature h3 { font-size: 17px; line-height: 1.3; margin-bottom: 8px; }
.feature-top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.feature-top .ic { margin-bottom: 0; }
.feature p { line-height: 1.6; }
.feature p { font-size: 14.5px; color: var(--ink-2); }
.feature.big { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.feature .tag { font-size: 11px; font-weight: 700; line-height: 18px; color: var(--on-pastel); background: var(--pink); border: 1.5px solid var(--border); padding: 0 8px; border-radius: 99px; letter-spacing: 0; }
@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } .feature.big, .feature:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } .feature.big { grid-template-columns: 1fr; } }

.mini-mark { background: var(--surface-2); border: var(--bw) solid var(--border); border-radius: 16px; padding: 14px; font-size: 13.5px; box-shadow: var(--shadow-sm); }
.mini-mark .you { color: var(--ink-3); font-size: 12px; margin-bottom: 4px; }
.mini-mark .pill { background: var(--yellow); color: var(--on-pastel); }
.mini-verdict { margin-top: 10px; display: flex; gap: 8px; align-items: center; } .mini-verdict .muted { font-size: 12px; }
.mini-mark p { margin-top: 8px; }
.mini-chat { display: grid; gap: 8px; font-size: 13.5px; }
.mini-chat .u { justify-self: end; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; background: var(--yellow); color: var(--on-pastel); border: 1.5px solid var(--border); padding: 9px 12px; border-radius: 16px 16px 4px 16px; max-width: 90%; }
.file-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; background: var(--surface); border: 1.5px solid var(--border); border-radius: 8px; padding: 1px 8px 1px 6px; }
.file-pill svg { width: 13px; height: 13px; }
.mini-chat .gap { padding: 0 .35em; border-radius: 6px; background: var(--yellow); border: 1.5px dashed var(--border); font-weight: 600; }
.mini-chat-sm { margin-top: auto; padding-top: 20px; }
.mini-chat .bot { justify-self: start; display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1.5px solid var(--border); padding: 8px 12px; border-radius: 16px 16px 16px 4px; }
.mini-chat .bot svg { width: 15px; height: 15px; color: var(--accent-2); flex: none; }
.mini-chat .c { background: var(--surface-2); border: 1.5px solid var(--border); padding: 9px 12px; border-radius: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; line-height: 1.5; }
.mini-chat .c span:last-child { color: var(--ink-2); }

.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: var(--bw) solid var(--border); border-radius: var(--radius-lg); overflow: hidden; font-size: 15px; box-shadow: var(--shadow); }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1.5px solid var(--line); }
.compare tr:last-child td { border-bottom: 0; }
.compare th { font-size: 13px; color: var(--ink-2); font-weight: 700; background: var(--soft); border-bottom: var(--bw) solid var(--border); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 22%; }
.compare .yes { color: var(--good); font-weight: 700; } .compare .no { color: var(--ink-3); }
.compare td svg { width: 18px; height: 18px; display: inline-block; vertical-align: -4px; }
.compare .no svg { width: 16px; height: 16px; opacity: .6; }
.compare span.yes, .compare span.no { display: inline-flex; }
.compare .souv { background: color-mix(in srgb, var(--yellow) 22%, var(--surface)); }
.compare th.souv { background: var(--yellow); color: var(--on-pastel); }
/* On a phone all the columns fit without sideways scrolling, so the Souv column is never off screen. */
@media (max-width: 640px) { .compare { font-size: 13px; table-layout: fixed; } .compare th, .compare td { padding: 11px 4px; } .compare td:not(:first-child) { font-size: 12.5px; } .compare th { font-size: 11.5px; } .compare th:first-child, .compare td:first-child { padding-left: 12px; width: 31%; } .compare td:not(:first-child), .compare th:not(:first-child) { width: auto; } }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1180px; margin: 0 auto; }
@media (max-width: 960px) { .price-grid { grid-template-columns: 1fr; max-width: 520px; } }
.price-card.max { box-shadow: var(--shadow-lg); }
.price-card.max::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 12px; background: var(--grad-max); border-bottom: var(--bw) solid var(--border); }
.price-card.max.is-ultra::before { background: var(--grad-ultra); }
.price-card { background: var(--surface); border: var(--bw) solid var(--border); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.price-card.pro { box-shadow: var(--shadow-lg); }
.price-card.pro::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 12px; background: var(--grad-pro); border-bottom: var(--bw) solid var(--border); }
.price-card h3 { font-size: 20px; display: flex; gap: 8px; align-items: center; }
.price-card .amt { font-size: 54px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.price-card .amt small { font-size: 16px; color: var(--ink-3); font-weight: 600; letter-spacing: 0; }
.price-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: 15px; color: var(--ink-2); }
.price-card li { display: flex; gap: 10px; }
.price-card li svg { width: 20px; height: 20px; flex: none; color: var(--on-pastel); background: var(--teal); border: 1.5px solid var(--border); border-radius: 50%; padding: 3px; stroke-width: 3.5; margin-top: 2px; }
.price-card .btn { margin-top: auto; }
.billing-toggle { display: flex; justify-content: center; margin-bottom: 28px; }
.save-badge { font-size: 11px; font-weight: 700; background: var(--teal); color: var(--on-pastel); padding: 1px 7px; border-radius: 99px; margin-left: 6px; border: 1.5px solid var(--border); }
.seg { display: inline-flex; padding: 3px; background: var(--surface); border: var(--bw) solid var(--border); border-radius: 999px; gap: 2px; box-shadow: var(--shadow-sm); }
.seg button { border: var(--bw) solid transparent; background: none; padding: 6px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.seg button.on { background: var(--yellow); color: var(--on-pastel); border-color: var(--border); }
@media (max-width: 760px) { .price-grid { grid-template-columns: 1fr; } }

.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: var(--bw) solid var(--border); border-radius: 18px; padding: 0 20px; box-shadow: var(--shadow-sm); }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 17px 0; font-size: 16.5px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 1.5px solid var(--border); border-radius: 50%; font-size: 18px; font-weight: 600; line-height: 1; transition: transform .2s, background .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--yellow); }
.faq details p { padding: 0 0 18px; color: var(--ink-2); font-size: 15.5px; max-width: 660px; }
.faq details a { color: var(--ink); font-weight: 600; }
.faq code { font-family: var(--font-mono); font-size: .88em; background: var(--soft); border: 1px solid var(--line-2); border-radius: 6px; padding: .05em .4em; }

.cta-band { margin-top: 120px; background: var(--pink); color: var(--on-pastel); border: var(--bw) solid var(--border); border-radius: 32px; padding: 70px 32px; text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
  background-image: linear-gradient(rgba(43,27,20,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(43,27,20,.07) 1px, transparent 1px); background-size: 30px 30px; }
.cta-band h2 { font-weight: 700; font-size: clamp(36px, 6vw, 64px); line-height: 1.18; letter-spacing: -0.05em; }
.cta-band h2 em { font-style: normal; display: inline-block; line-height: 1.05; background: var(--yellow); border: var(--bw) solid var(--border); border-radius: 14px; padding: 0 .15em .06em; box-shadow: var(--shadow-sm); transform: rotate(-1.5deg); }
.cta-band p { margin: 22px auto 30px; max-width: 460px; font-size: 17px; line-height: 1.6; }
.cta-band .btn-light { background: var(--surface); }
@media (max-width: 640px) { .cta-band h2 { font-size: 32px; } .cta-band h2 br { display: none; } }
.cta-band .sparkle.s1 { top: 28px; right: 40px; width: 34px; height: 34px; } .cta-band .sparkle.s2 { bottom: 30px; left: 44px; }

/* Ready-made decks (the marketplace) on the landing page */
.decks { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.deck-sub { background: var(--surface); border: var(--bw) solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden; }
.deck-sub::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 12px; border-bottom: var(--bw) solid var(--border); }
.deck-sub.cs::before { background: var(--yellow); } .deck-sub.phys::before { background: var(--peach); }
.deck-sub-top { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.deck-sub-top h3 { font-size: 22px; letter-spacing: -0.02em; }
.deck-sub .code { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 14px; color: var(--on-pastel); background: var(--yellow); border: 1.5px solid var(--border); border-radius: 10px; padding: 3px 9px; }
.deck-sub > p { color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.deck-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.deck-stats > div { background: var(--surface-2); border: 1.5px solid var(--border); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; min-width: 0; }
.deck-stats b { font-size: 26px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; }
.deck-stats span { font-size: 12.5px; color: var(--ink-2); line-height: 1.3; }
.deck-price { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: auto; font-size: 14px; font-weight: 600; }
.deck-price span:not(.pill) { color: var(--ink-2); }
.pill-free { background: var(--teal); color: var(--on-pastel); }
.decks-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 30px; }
.decks-cta .muted { font-size: 14px; }
@media (max-width: 900px) { .decks { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .deck-sub { padding: 20px; } .deck-stats b { font-size: 22px; } }

/* Totals, the subject tables, the picture-card demo and the diagram gallery */
.deck-totals { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 22px; }
.deck-totals > div { background: var(--surface); border: var(--bw) solid var(--border); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; min-width: 0; box-shadow: var(--shadow-sm); }
.deck-totals > div:nth-child(4) { background: var(--yellow); color: var(--on-pastel); } .deck-totals > div:nth-child(5) { background: var(--pink); color: var(--on-pastel); }
.deck-totals b { font-size: 30px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; }
.deck-totals span { font-size: 13px; line-height: 1.3; color: var(--ink-2); }
.deck-totals > div:nth-child(n+4) span { color: inherit; }
.deck-sub-top { justify-content: space-between; flex-wrap: wrap; }
.deck-sub-n { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.subj { width: 100%; border-collapse: collapse; font-size: 15px; }
.subj th, .subj td { padding: 9px 0 9px 10px; text-align: right; border-top: 1.5px solid var(--line); font-variant-numeric: tabular-nums; }
.subj thead th { border-top: 0; padding-top: 0; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.subj th:first-child { text-align: left; padding-left: 0; }
.subj tbody th { font-weight: 600; }
/* The code sits in its own gutter, so a subject name that wraps stays lined up with itself. */
.subj tbody th:first-child { position: relative; padding-left: 58px; }
.subj .code { position: absolute; left: 0; top: 50%; translate: 0 -50%; font-size: 13px; padding: 2px 7px; border-radius: 8px; line-height: 1.5; }
.subj td { color: var(--ink-2); }

.pc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 44px; align-items: center; margin-top: 64px; }
.pc-copy h3, .gallery-head h3 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.035em; line-height: 1.1; margin-bottom: 12px; }
.pc-copy p, .gallery-head p { color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.pc-copy .pc-try { font-weight: 600; color: var(--ink); font-size: 15px; margin-top: 14px; }
.pc-body { padding: 16px 18px 18px; }
.pc-top { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-q { font-weight: 600; font-size: 16px; margin: 10px 0 12px; }
.pc-stage { position: relative; container-type: inline-size; background: #fff; border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; }
.pc-stage img { display: block; width: 100%; height: auto; }
.pc-mask { position: absolute; padding: 0; border: 2px solid #2b1b14; border-radius: 6px; background: #f4c95d; color: #2b1b14; cursor: pointer; display: grid; place-items: center; font-family: inherit; font-weight: 700; font-size: clamp(9px, 3cqw, 18px); line-height: 1; }
.pc-mask::after { content: ''; position: absolute; inset: -8px; }
.pc-mask.active { background: var(--pink); box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2b1b14; z-index: 1; }
/* The pulse repaints a shadow, so it only runs while the demo is on screen (site.js sets .live). */
.pc-demo.live .pc-mask.active { animation: pcPulse 1.6s ease-in-out infinite; }
.pc-mask.revealed { background: transparent; border: 3px solid #11705b; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); animation: none; }
.pc-mask.revealed span { display: none; }
@keyframes pcPulse { 50% { box-shadow: 0 0 0 2px #fff, 0 0 0 7px rgba(43, 27, 20, .35); } }
@media (prefers-reduced-motion: reduce) { .pc-demo.live .pc-mask.active { animation: none; } }
.pc-foot { display: flex; align-items: center; gap: 14px; margin-top: 14px; min-height: 44px; }
.pc-foot .btn { flex: none; }
.pc-ans { font-size: 14.5px; line-height: 1.35; color: var(--ink-2); }
.pc-ans b { color: var(--ink); font-size: 16px; display: block; }

.gallery-head { max-width: 660px; margin: 64px 0 22px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery figure { margin: 0; background: var(--surface); border: var(--bw) solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; background: #fff; border-bottom: 1.5px solid var(--border); }
.gallery figcaption { padding: 9px 12px 11px; display: flex; flex-direction: column; font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }
.gallery figcaption b { font-size: 14.5px; color: var(--ink); }
@media (max-width: 900px) { .deck-totals { grid-template-columns: repeat(6, 1fr); } .deck-totals > div { grid-column: span 2; } .deck-totals > div:nth-child(n+4) { grid-column: span 3; }
  .pc { grid-template-columns: 1fr; gap: 26px; margin-top: 48px; } .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; } .gallery-head { margin-top: 48px; } }
@media (max-width: 520px) { .deck-totals { gap: 8px; } .deck-totals > div { padding: 10px; } .deck-totals b { font-size: 24px; } .deck-totals span { font-size: 12px; }
  .subj { font-size: 14px; } .subj th, .subj td { padding-left: 6px; } .subj tbody th:first-child { padding-left: 54px; } .subj thead th { font-size: 10px; letter-spacing: .02em; } .pc-body { padding: 14px; } .pc-foot { flex-wrap: wrap; } }

/* Sale notices (shown by site.js until their end date). */
/* The sale: a slim bar at the top of the page, and a small tag under the decks heading. */
.sale-bar { display: block; padding: 9px 16px; font-weight: 500; background: #2b1b14; color: #fff8ec; text-align: center; font-size: 14.5px; text-decoration: none; text-wrap: balance; }
.sale-bar b { margin-right: 8px; padding: 1px 9px; border-radius: 99px; background: var(--yellow); color: #2b1b14; font-size: 13px; }
.sale-bar u { font-weight: 700; margin-left: 4px; white-space: nowrap; text-underline-offset: 3px; }
.sale-bar:hover u { text-decoration-thickness: 2px; }
.sale-bar[hidden], .sale-tag[hidden] { display: none; }
p.sale-tag { display: inline-flex; align-items: center; gap: 10px; text-align: left; margin-top: 16px; padding: 4px 14px 4px 4px; border: 1.5px dashed var(--border); border-radius: 99px; background: var(--surface, #fff); color: var(--ink); font-size: 14px; }
.sale-tag b { flex: none; padding: 2px 10px; border-radius: 99px; background: var(--yellow); border: 1.5px solid #2b1b14; color: #2b1b14; font-size: 13px; font-weight: 700; }
@media (max-width: 640px) { p.sale-tag { border-radius: 14px; padding: 6px 12px 6px 6px; } }

/* Why Souv: four reasons, one short line each (docs/wording.md). */
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.why { display: flex; flex-direction: column; gap: 8px; min-width: 0; background: var(--surface); border: var(--bw) solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }
.why .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: var(--bw) solid var(--border); color: var(--on-pastel); margin-bottom: 6px; }
.why .ic svg { width: 20px; height: 20px; }
.why:nth-child(1) .ic { background: var(--pink); } .why:nth-child(2) .ic { background: var(--blue); } .why:nth-child(3) .ic { background: var(--teal); } .why:nth-child(4) .ic { background: var(--yellow); }
.why h3 { font-size: 18px; line-height: 1.25; letter-spacing: -0.02em; }
.why p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.why p b, .feature p b, .step p b, .section-head p b, .pc-copy p b, .hero .lead b { color: var(--ink); font-weight: 600; }
.why .arrow-link { margin-top: auto; padding-top: 6px; font-size: 14.5px; }
@media (max-width: 1000px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; gap: 12px; } .why { padding: 18px; } }
.step .tag { font-size: 11px; font-weight: 700; line-height: 18px; color: var(--on-pastel); background: var(--pink); border: 1.5px solid var(--border); padding: 0 8px; border-radius: 99px; vertical-align: 3px; margin-left: 4px; }
.feature .feature-note { margin-top: 10px; font-size: 13px; color: var(--ink-3); }

/* Learn mode: one step of a lesson, drawn small. */
.mini-learn { background: var(--surface-2); border: var(--bw) solid var(--border); border-radius: 16px; padding: 14px; font-size: 13.5px; box-shadow: var(--shadow-sm); display: grid; gap: 10px; min-width: 0; }
.ml-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--ink-3); font-size: 12px; }
.ml-dots { display: flex; gap: 4px; } .ml-dots i { width: 16px; height: 6px; border-radius: 99px; background: var(--soft); border: 1px solid var(--line-2); }
.ml-dots i.on { background: var(--teal); } .ml-dots i.now { background: var(--pink); }
.ml-kind { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.ml-q { font-size: 15px; font-weight: 600; line-height: 1.7; }
.ml-q .gap { padding: 0 .35em; border-radius: 6px; background: var(--teal); border: 1.5px solid var(--border); }
.ml-q .gap.empty { display: inline-block; width: 3.6em; height: 1.2em; vertical-align: -.2em; background: var(--surface); border-style: dashed; }
.ml-bank { display: flex; flex-wrap: wrap; gap: 6px; }
.ml-bank span { padding: 3px 10px; border-radius: 99px; background: var(--surface); border: 1.5px solid var(--border); font-weight: 600; }
.ml-bank span.used { opacity: .35; text-decoration: line-through; }
.ml-next { font-size: 12px; color: var(--ink-3); }

/* Ready-made decks: the three reasons, then the notes example. */
.deck-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.deck-why > div { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: start; background: var(--surface); border: var(--bw) solid var(--border); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow-sm); min-width: 0; }
.deck-why .ic { grid-row: span 2; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; border: 1.5px solid var(--border); background: var(--yellow); color: var(--on-pastel); }
.deck-why > div:nth-child(1) .ic { background: var(--teal); } .deck-why > div:nth-child(3) .ic { background: var(--pink); }
.deck-why .ic svg { width: 18px; height: 18px; }
.deck-why b { font-size: 16px; line-height: 1.3; }
.deck-why span:last-child { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 900px) { .deck-why { grid-template-columns: 1fr; gap: 10px; } }
.pc-notes { margin-top: 40px; }
.nd-body { padding: 16px 18px 18px; display: grid; gap: 10px; }
.nd-kind { font-size: 13px; color: var(--ink-3); } .nd-kind b { color: var(--ink); }
.nd-q { font-weight: 600; font-size: 15.5px; line-height: 1.45; }
.nd-steps { margin: 0; padding: 0; list-style: none; counter-reset: nd; display: grid; gap: 8px; }
.nd-steps li { counter-increment: nd; display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: 14.5px; line-height: 1.45; padding: 8px 10px; background: var(--surface-2); border: 1.5px solid var(--line-2); border-radius: 10px; }
.nd-steps li::before { content: counter(nd); width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--blue); border: 1.5px solid var(--border); font-weight: 700; font-size: 13px; color: var(--on-pastel); }
.nd-steps li:last-child::before { background: var(--teal); }
.nd-steps b { display: block; font-size: 13px; color: var(--ink); }

/* Features: the three AI jobs as equal cards, each with its demo at the bottom, then the basics in one quiet row. */
.features > .feature { gap: 22px; justify-content: space-between; }
.features > .feature > div:first-child h3 { margin-top: 0; }
.feature .mini-chat .c { grid-template-columns: 1fr; gap: 2px; }
.basics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 26px; margin-top: 30px; padding-top: 26px; border-top: var(--bw) dashed var(--line); }
.basics > div { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.basics .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; border: var(--bw) solid var(--border); background: var(--surface); }
.basics .ic svg { width: 18px; height: 18px; }
.basics p { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.basics b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 2px; }
@media (max-width: 960px) { .basics { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .basics { grid-template-columns: 1fr; } }

/* Who each plan is for: a labelled line under the tagline, not a pill. */
.price-card .price-for, .plan .plan-for { display: block; margin-top: 12px; padding: 10px 0 0; border: 0; border-top: 1.5px dashed var(--line); border-radius: 0; background: none; font-size: 13.5px; font-weight: 500; color: var(--ink-2); line-height: 1.45; }
.price-for b, .plan-for b { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1px; }

/* The tutor demo: the real panel, in a shadow root. */
/* Its room is kept before it loads (it loads as it nears the screen), the panel's own height in showcase.css
   times its scale, so nothing below jumps and the Tutor link knows how tall it will be. */
#tutor-demo { min-height: min(619px, calc(100svh - 120px)); }
@media (max-width: 560px) { #tutor-demo { min-height: max(396px, calc(100svh - 140px)); } }

/* Max and Ultra share a pricing card, with a choice between them (the same as the app's, app.css). */
.price-card .amt .from { font-size: 15px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; margin-right: 2px; vertical-align: .6em; }
.tiers { display: grid; gap: 8px; }
.tier { display: grid; grid-template-columns: 18px 1fr auto; column-gap: 10px; row-gap: 1px; align-items: center; text-align: left; padding: 10px 12px; border: var(--bw) solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.tier:hover { border-color: var(--border); }
.tier.on { border-color: var(--border); background: var(--grad-max-soft); box-shadow: var(--shadow-sm); }
.tier[data-tier="ultra"].on { background: var(--grad-ultra-soft); }
.tier-dot { grid-row: 1 / span 2; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink-3); background: var(--surface); }
.tier.on .tier-dot { border-color: var(--ink); box-shadow: inset 0 0 0 3.5px var(--surface); background: var(--ink); }
.tier-name { grid-column: 2; font-weight: 700; font-size: calc(15.5px * var(--ts, 1)); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; line-height: 1.3; }
.tier-tag { font-size: calc(10.5px * var(--ts, 1)); font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--surface-2, rgba(0,0,0,.05)); border: 1.5px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.tier-tag.hot { background: var(--yellow); border-color: var(--border); color: var(--on-pastel); }
.tier-line { grid-column: 2; font-size: calc(13px * var(--ts, 1)); color: var(--ink-2); line-height: 1.35; }
.tier-price { grid-column: 3; grid-row: 1 / span 2; text-align: right; font-weight: 700; font-size: calc(16px * var(--ts, 1)); white-space: nowrap; }
.tier-price small { font-weight: 500; font-size: calc(12px * var(--ts, 1)); color: var(--ink-3); }
.price-card.pro, .price-card.max { overflow: hidden; }
.price-card.pro::before, .price-card.max::before { border-radius: 0; }
/* A plan's key features: a highlighted row with a short line on what it does. */
.price-card li.key { margin: 2px 0; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--grad-pro-soft); color: var(--ink-2); line-height: 1.4; box-shadow: var(--shadow-sm); }
.price-card.max li.key { background: var(--grad-max-soft); }
.price-card.max.is-ultra li.key { background: var(--grad-ultra-soft); }
.price-card li.key svg { background: var(--surface); color: var(--ink); stroke-width: 2; padding: 2px; }
.price-card li.key b { display: block; color: var(--ink); font-size: 1.02em; }
.price-card li.key span { font-size: .92em; }

/* Exam schedule: a still of the app's exam schedule dialog (public/js/views/examplan.js), with a real plan's numbers. */
#exam .pc { margin-top: 0; }
.pc-exam .kicker { margin-bottom: 14px; background: var(--yellow); }
.pc-exam .pc-copy p + p { margin-top: 10px; }
.xs-body { padding: 16px 18px 18px; }
.xs-count { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.xs-count b { font-size: 40px; line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.xs-count span { color: var(--ink-2); font-weight: 500; }
.xs-plan { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin-bottom: 12px; }
.xs-plan b { color: var(--ink); font-weight: 600; }
.xs-chart { border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface-2); padding: 24px 10px 8px; }
.xs-plot { position: relative; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); align-items: end; gap: 2px; height: 120px; }
.xs-plot > i { height: 100%; display: flex; flex-direction: column-reverse; background: linear-gradient(to top, var(--teal) var(--r), var(--blue) var(--r), var(--blue) calc(var(--r) + var(--n)), transparent calc(var(--r) + var(--n))); border-radius: 3px 3px 0 0; }
.xs-plot > i.xs-exam { display: grid; place-items: center; background: var(--yellow); border: 1.5px solid var(--border); border-radius: 5px; color: var(--on-pastel); }
.xs-exam svg { width: 11px; height: 11px; }
.xs-band { position: absolute; top: -18px; bottom: 0; border-radius: 7px; background: color-mix(in srgb, var(--blue) 26%, transparent); border: 1.5px dashed color-mix(in srgb, var(--ink) 28%, transparent); pointer-events: none; }
.xs-band span { position: absolute; top: 1px; left: 6px; right: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.xs-axis { position: relative; height: 16px; margin-top: 5px; font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.xs-axis span { position: absolute; top: 0; white-space: nowrap; } .xs-axis span:first-child { left: 0; } .xs-axis span.end { right: 0; }
.xs-key { display: flex; gap: 14px; margin-top: 6px; font-size: 12.5px; color: var(--ink-2); }
.xs-key span { display: inline-flex; align-items: center; gap: 6px; }
.xs-dot { width: 10px; height: 10px; border-radius: 99px; border: 1.5px solid var(--border); } .xs-dot.n { background: var(--blue); } .xs-dot.r { background: var(--teal); }
.xs-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.xs-stats > div { border: 1.5px solid var(--border); border-radius: 10px; padding: 8px 10px; background: var(--surface); display: grid; gap: 2px; }
.xs-stats b { font-size: 21px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.xs-stats small { font-size: 12px; color: var(--ink-3); font-weight: 600; letter-spacing: 0; }
.xs-stats span { font-size: 11.5px; line-height: 1.3; color: var(--ink-3); }
@media (max-width: 520px) { .xs-body { padding: 14px; } .xs-axis span:nth-child(2) { display: none; } .xs-band span { left: 3px; right: 1px; font-size: 9px; letter-spacing: 0; text-overflow: clip; } .xs-stats b { font-size: 18px; } }
