/* Slide Rescue, on Ink and paper (the design system of boratrilha.com), recoloured: highlighter yellow, lifebuoy red, notebook blue. Flat, loud colour on cream paper, navy ink outlines,
   pressable pill buttons with hard shadows; no gradients, no glows. Display: Bricolage Grotesque. Body: Plus Jakarta
   Sans. Numbers, labels and money: Space Mono. Recolour a brand by changing only the tokens below (SKILL.md).

   <link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap" rel="stylesheet"> */
:root {
  /* the brand: change these */
  --cta: #ffe14d;      /* main buttons, number badges, price band: takes ink text */
  --pop: #e2412e;      /* kick labels, second buttons, active dots: takes white text */
  --brand: #187a4f;    /* the accent: good states, ticks */
  --brand-2: #11603d;
  --soft: #cfe6ff;     /* hero background, light chips */
  --warn: #ff6a3d;     /* late, error, storm */
  /* the paper and the ink: usually keep */
  --ink: #10223d;
  --ink-2: #33465f;
  --muted: #5e6d82;
  --paper: #fff7ea;
  --paper-2: #f6ead4;
  --white: #ffffff;
  /* tints for notices and chips */
  --cta-t: #fff6c2;
  --pop-t: #ffe1dc;
  --brand-t: #d7f2e4;
  --warn-t: #ffe3d8;
  /* the mechanics: keep */
  --line: 2px solid var(--ink);
  --r: 18px;
  --shadow: 0 4px 0 var(--ink);
  --display: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;
  --body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Space Mono', ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --top-h: 64px;
}
@media (max-width: 760px) { :root { --top-h: 58px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(40px, 6.2vw, 84px); }
h2 { font-size: clamp(30px, 4.2vw, 54px); }
h3 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: min(1200px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.small { font-size: 14px; color: var(--muted); }
.mono { font-family: var(--mono); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[id] { scroll-margin-top: calc(var(--top-h) + 12px); }

/* the kick: the small mono label above every heading */
.kick { font: 700 12px/1 var(--mono); letter-spacing: .12em; color: var(--pop); text-transform: uppercase; }
.kick.pill { background: var(--white); border: var(--line); border-radius: 999px; padding: 7px 12px; width: fit-content; color: var(--ink); }

/* buttons: pills that press */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border: var(--line); border-radius: 999px; background: var(--cta); color: var(--ink); font: 800 17px/1 var(--display); letter-spacing: -0.01em; text-decoration: none; cursor: pointer; box-shadow: var(--shadow); transition: transform .12s ease, box-shadow .12s ease, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn:disabled { opacity: .55; cursor: default; transform: none; box-shadow: var(--shadow); }
.btn.pop { background: var(--pop); color: var(--white); }
.btn.white { background: var(--white); }
.btn.ink { background: var(--ink); color: var(--white); }
.btn.brand { background: var(--brand); color: var(--white); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 15px; box-shadow: 0 3px 0 var(--ink); }
.btn.block { width: 100%; }
.link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 700; }
:focus-visible { outline: 3px solid var(--cta); outline-offset: 2px; }

/* header */
.top { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: var(--top-h); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 22px/1 var(--display); letter-spacing: -0.03em; white-space: nowrap; flex: none; }
.logo img, .logo svg { width: 36px; height: 36px; }
.nav { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav a:not(.btn) { text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 999px; }
.nav a:not(.btn):hover, .nav a.on { background: var(--paper-2); }
@media (max-width: 760px) {
  .top .wrap { gap: 10px; }
  .logo { font-size: 19px; } .logo img, .logo svg { width: 30px; height: 30px; }
  .nav a.wide { display: none; }
  .nav a:not(.btn) { padding: 7px 9px; font-size: 14px; }
}

/* forms */
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 800; font-size: 14px; }
.field .hint { font-size: 13px; color: var(--muted); }
input, select, textarea { font: 600 16px/1.3 var(--body); color: var(--ink); background: var(--white); border: var(--line); border-radius: 14px; padding: 13px 14px; width: 100%; min-height: 50px; appearance: none; -webkit-appearance: none; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2310223d' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--cta); outline-offset: 1px; }
.bad input, .bad select, .bad textarea, input.bad { border-color: #d2153d; background: #fff2f4; }
.err { color: #c0102f; font-weight: 700; font-size: 14px; min-height: 1em; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; border: var(--line); border-radius: 999px; padding: 8px 14px; background: var(--white); font-weight: 700; font-size: 14px; cursor: pointer; user-select: none; }
.checks input { width: auto; min-height: 0; padding: 0; border: 0; appearance: auto; -webkit-appearance: auto; accent-color: var(--ink); }
.checks label:has(input:checked) { background: var(--cta); }

/* the try-it box: the visitor's own input, in the hero */
.finder { display: flex; align-items: end; gap: 10px; background: var(--white); border: var(--line); border-radius: 26px; padding: 10px; box-shadow: 0 6px 0 var(--ink); width: min(680px, 100%); }
.finder .f { display: grid; gap: 2px; flex: 1; min-width: 0; padding: 4px 6px 0 10px; }
.finder .f.wide { flex: 1.6; }
.finder .f > span { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.finder select, .finder input, .finder textarea { border: 0; padding: 4px 4px 6px 0; min-height: 34px; font-weight: 800; font-size: 17px; border-radius: 6px; }
.finder textarea { min-height: 64px; resize: none; }
.finder .f + .f { border-left: 2px solid var(--paper-2); }
.finder .btn { min-height: 56px; }
.ask-link { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; text-decoration: none; background: var(--white); border: var(--line); border-radius: 999px; padding: 9px 16px; width: fit-content; max-width: 100%; }
.ask-link:hover { background: var(--cta); }
@media (max-width: 760px) {
  .finder { flex-wrap: wrap; border-radius: 20px; padding: 8px; }
  .finder .f { flex: 1 1 100%; }
  .finder .f + .f { border-left: 0; border-top: 2px solid var(--paper-2); padding-top: 6px; }
  .finder .btn { flex: 1 1 100%; min-height: 50px; }
}

/* cards */
.card { background: var(--white); border: var(--line); border-radius: var(--r); box-shadow: 0 5px 0 var(--ink); }
.pad { padding: clamp(18px, 3vw, 28px); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
a.card { display: flex; flex-direction: column; text-decoration: none; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--ink); }
.price { font: 800 26px/1 var(--display); letter-spacing: -0.02em; }
.price small { font: 600 13px/1 var(--body); color: var(--muted); letter-spacing: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--white); }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; padding: 6px 9px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--white); white-space: nowrap; }
.chip.ok { background: var(--brand); color: var(--white); }
.chip.wait { background: var(--cta-t); }
.chip.late { background: var(--warn); color: var(--white); }

/* number badges */
.num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--cta); border: var(--line); font: 800 22px/1 var(--display); box-shadow: 0 3px 0 var(--ink); flex: none; }

/* the stamp: a verdict (GO, PAID, LATE, ACCEPTED) */
.stamp { width: 132px; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--ink); box-shadow: 4px 5px 0 var(--ink); display: grid; place-items: center; transform: rotate(-10deg); flex: none; background: var(--cta); color: var(--ink); }
.stamp .ring { width: 84%; aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed currentColor; display: grid; place-content: center; text-align: center; gap: 5px; padding: 6px; }
.stamp b { font: 800 22px/.95 var(--display); letter-spacing: -0.01em; }
.stamp small { font: 700 9.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.stamp.ok { background: var(--brand); color: var(--white); }
.stamp.no { background: var(--pop); color: var(--white); }
.stamp.late { background: var(--warn); color: var(--white); }
.stamp.sm { width: 96px; } .stamp.sm b { font-size: 16px; } .stamp.sm small { font-size: 8px; }
.stamp.pop-in { animation: stampIn .42s cubic-bezier(.2, .9, .3, 1.35); }
@keyframes stampIn { from { transform: rotate(-28deg) scale(1.7); opacity: 0; } to { transform: rotate(-10deg) scale(1); opacity: 1; } }

/* segmented choices and tabs */
.seg, .tabs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.seg button, .tabs button { border: var(--line); background: var(--white); border-radius: 999px; padding: 10px 14px; font: 800 14px/1 var(--body); cursor: pointer; min-height: 44px; }
.seg button[aria-pressed="true"], .tabs button.on { background: var(--ink); color: var(--white); }
.seg button:disabled { opacity: .4; cursor: default; }

/* notices, empty states, spinner, toast */
.notice { border: var(--line); border-radius: 14px; padding: 14px 16px; background: var(--white); font-weight: 600; }
.notice.cta { background: var(--cta-t); } .notice.pop { background: var(--pop-t); } .notice.brand { background: var(--brand-t); } .notice.warn { background: var(--warn-t); }
.empty { padding: 30px; text-align: center; border: 2px dashed var(--ink-2); border-radius: var(--r); color: var(--ink-2); font-weight: 600; display: grid; gap: 14px; justify-items: center; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--paper-2); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 999px; font-weight: 700; z-index: 90; box-shadow: 0 4px 0 #0005; }

/* sections */
.sec { padding: clamp(56px, 8vw, 110px) 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-head .kick { margin-bottom: 10px; }
.lead { font-size: clamp(16px, 1.4vw, 19px); font-weight: 600; color: var(--ink-2); max-width: 46em; margin-top: 12px; }

/* hero: the soft band with the try-it box */
.hero { background: var(--soft); border-bottom: var(--line); padding: clamp(36px, 7vw, 90px) 0; }
.hero .wrap { display: flex; flex-direction: column; gap: clamp(12px, 2.2vh, 20px); }
.hero h1 { max-width: 11em; text-wrap: balance; }
.hero .sub { font-size: clamp(17px, 1.5vw, 21px); font-weight: 600; max-width: 30em; background: var(--paper); border: var(--line); border-radius: 14px; padding: 10px 14px; width: fit-content; }
.result { width: min(680px, 100%); }

/* beats: three numbered steps, each beside its live card */
.beats { display: grid; gap: clamp(28px, 5vw, 56px); }
.beat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 60px); align-items: center; }
.beat:nth-child(even) > :first-child { order: 2; }
.beat-text { display: grid; gap: 10px; background: var(--paper); border: var(--line); border-radius: 22px; padding: 18px 22px 20px; box-shadow: 0 6px 0 var(--ink); }
.beat-text .row1 { display: flex; align-items: center; gap: 12px; }
.beat-text h2 { font-size: clamp(26px, 3.4vw, 44px); }
.beat-text p { font-size: clamp(16px, 1.4vw, 19px); font-weight: 700; color: var(--ink-2); }
@media (max-width: 760px) { .beat { grid-template-columns: 1fr; } .beat:nth-child(even) > :first-child { order: 0; } .beat .num { width: 34px; height: 34px; font-size: 18px; } }

/* the real example: a grid of real output */
.pagegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.pg { border: 0; background: none; padding: 0; cursor: zoom-in; display: grid; gap: 10px; text-align: left; font: inherit; color: inherit; }
.pg img { width: 100%; height: auto; border: var(--line); border-radius: 8px; box-shadow: 0 5px 0 var(--ink); background: var(--white); transition: transform .15s ease, box-shadow .15s ease; }
.pg:hover img { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 9px 0 var(--ink); }
.pg span { font-weight: 700; font-size: 14px; }
.pg span b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--cta); border: 1.5px solid var(--ink); font: 800 12px/1 var(--mono); margin-right: 4px; }
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(16, 34, 61, .88); display: grid; place-items: center; padding: 16px; }
.lightbox img { max-width: min(760px, 100%); max-height: calc(100vh - 90px); border: 3px solid var(--ink); border-radius: 10px; background: var(--white); box-shadow: 0 8px 0 #050c18; }

/* what's inside: an ink band of coloured tiles */
.inside { background: var(--ink); color: var(--paper); border-top: var(--line); }
.inside h2 { color: var(--white); margin: 10px 0 28px; }
.inside .kick { color: var(--cta); }
.ins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.in { border: 3px solid #0a1526; border-radius: 20px; padding: 18px 18px 20px; box-shadow: 0 6px 0 #050c18; color: var(--ink); background: var(--white); display: grid; gap: 8px; align-content: start; }
.in .n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--white); border: 2px solid var(--ink); font: 800 16px/1 var(--mono); color: var(--ink); }
.in h3 { font-size: 22px; }
.in p { font-weight: 600; font-size: 15px; }
.in.t1 { background: var(--brand); color: var(--white); } .in.t2 { background: var(--cta); } .in.t3 { background: var(--soft); }
.in.t4 { background: var(--white); } .in.t5 { background: #ffd6c2; } .in.t6 { background: var(--pop); color: var(--white); }
@media (max-width: 900px) { .ins { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ins { grid-template-columns: 1fr; } }

/* the price band */
.priceband { background: var(--cta); border-top: var(--line); border-bottom: var(--line); }
.priceband .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 70px); align-items: center; }
.priceband .kick { color: var(--ink); }
.bigprice { font: 800 clamp(64px, 11vw, 140px)/.9 var(--display); letter-spacing: -0.04em; margin: 10px 0 8px; }
.bigprice small { font-size: .28em; letter-spacing: -0.01em; }
.pb-sub { font: 800 clamp(18px, 1.8vw, 24px)/1.2 var(--display); }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 17px; background: var(--white); border: var(--line); border-radius: 14px; padding: 10px 14px; }
.ticks li::before { content: '✓'; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: var(--white); font-size: 13px; flex: none; }
@media (max-width: 760px) { .priceband .wrap { grid-template-columns: 1fr; } }

/* questions */
.faq .list { display: grid; gap: 12px; margin-top: 24px; max-width: 820px; }
.faq details { background: var(--white); border: var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: 0 4px 0 var(--ink); }
.faq summary { font: 800 19px/1.2 var(--display); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 26px; line-height: .8; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: 10px; color: var(--ink-2); font-weight: 500; }

/* footer, with the wave edge */
.foot { background: var(--ink); color: var(--paper); margin-top: 40px; }
.waves { height: 46px; background-color: var(--paper); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='46' viewBox='0 0 120 46'%3E%3Cpath d='M0 23 C 15 3, 45 3, 60 23 S 105 43, 120 23 V46 H0Z' fill='%2310223d'/%3E%3C/svg%3E"); background-size: 120px 46px; background-repeat: repeat-x; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding-top: 36px; padding-bottom: 46px; }
.foot a { color: var(--paper); text-decoration: none; font-weight: 600; display: block; padding: 4px 0; }
.foot a:hover { text-decoration: underline; }
.foot .logo { color: var(--paper); margin-bottom: 10px; }
.foot p { color: #b9c4d3; font-size: 14px; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr 1fr; } .foot .wrap > :first-child { grid-column: 1 / -1; } }

/* page shells (sign-up, log-in, legal, account) */
.page { padding: clamp(28px, 5vw, 56px) 0 40px; }
.page-head { display: grid; gap: 10px; margin-bottom: 26px; }
.narrow { width: min(460px, 100%); margin: 0 auto; }
.crumb { font-weight: 700; font-size: 14px; text-decoration: none; color: var(--ink-2); }
.stack { display: grid; gap: 12px; }

/* the app: phone-first, a bottom bar that becomes a left rail on wide screens */
.app { min-height: 100svh; padding-bottom: 92px; }
.app main { padding: 18px 0 24px; }
.tabbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; background: var(--white); border: var(--line); border-radius: 22px; padding: 6px; box-shadow: 0 5px 0 var(--ink); }
.tabbar a { display: grid; justify-items: center; gap: 3px; padding: 8px 4px; border-radius: 16px; text-decoration: none; font: 800 12px/1 var(--body); }
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a.on { background: var(--ink); color: var(--white); }
@media (min-width: 900px) {
  .app { padding-bottom: 0; padding-left: 116px; }
  .tabbar { left: 16px; right: auto; top: calc(var(--top-h) + 16px); bottom: auto; grid-auto-flow: row; width: 84px; }
}
.list { display: grid; gap: 10px; }
.row-item { display: flex; align-items: center; gap: 12px; background: var(--white); border: var(--line); border-radius: 16px; padding: 12px 14px; box-shadow: 0 3px 0 var(--ink); text-decoration: none; }
.row-item .main { display: grid; gap: 2px; flex: 1; min-width: 0; }
.row-item b { font: 800 18px/1.1 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-item .meta { font: 700 12px/1.3 var(--mono); color: var(--ink-2); }
.row-item .amt { font: 700 16px/1 var(--mono); }
.money, td.num-col { font-family: var(--mono); text-align: right; white-space: nowrap; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border: var(--line); border-radius: 16px; overflow: hidden; }
.table th, .table td { padding: 10px 12px; border-bottom: 1.5px solid var(--paper-2); text-align: left; }
.table th { font: 700 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.table tr:last-child td { border-bottom: 0; }
.stat { background: var(--white); border: var(--line); border-radius: 18px; padding: 14px 16px; box-shadow: 0 4px 0 var(--ink); display: grid; gap: 4px; }
.stat span { font: 700 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stat b { font: 800 30px/1 var(--display); letter-spacing: -0.02em; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* =====================================================================================================
   Slide Rescue's own parts
   ===================================================================================================== */
.center { text-align: center; }
.muted { color: var(--muted); }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.app-h { font-size: clamp(30px, 5vw, 46px); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes popIn { 0% { opacity: 0; transform: scale(.6); } 70% { transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }
.pop-in { animation: popIn .38s cubic-bezier(.2, .9, .3, 1.3) both; }
html.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
[data-reveal].in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }

/* the highlighter: a flat yellow band under words, swept in */
.mark { position: relative; white-space: nowrap; z-index: 0; }
.mark::before { content: ''; position: absolute; left: -.08em; right: -.08em; bottom: .04em; height: .42em; background: var(--cta); z-index: -1; border-radius: 3px; transform-origin: left; animation: sweep .7s .5s cubic-bezier(.6, 0, .2, 1) both; }
.hero .mark::before { background: var(--cta); height: .36em; bottom: .02em; }
@keyframes sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero .wrap.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: clamp(12px, 2.2vh, 20px); animation: rise .6s ease both; }
.hero h1 { max-width: 10.5em; }
.hero .proof { display: flex; flex-wrap: wrap; gap: 8px 16px; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.hero .proof span::before { content: '✓ '; color: var(--brand); font-weight: 800; }
@media (max-width: 900px) { .hero .wrap.hero-grid { grid-template-columns: 1fr; } }

/* the drop zone: the hero's try-it box */
.drop { display: flex; align-items: center; gap: 14px; background: var(--white); border: var(--line); border-radius: 26px; padding: 14px 14px 14px 18px; box-shadow: 0 6px 0 var(--ink); width: min(620px, 100%); cursor: pointer; position: relative; transition: transform .15s ease, box-shadow .15s ease, background .15s; }
.drop::after { content: ''; position: absolute; inset: 7px; border: 2px dashed var(--ink-2); border-radius: 19px; pointer-events: none; opacity: .5; }
.drop:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink); }
.drop.over { background: var(--cta-t); transform: scale(1.02) rotate(-.5deg); }
.drop.over::after { opacity: 1; border-color: var(--pop); animation: dash 1s linear infinite; }
@keyframes dash { 50% { inset: 4px; } }
.drop > span:not(.btn) { display: grid; gap: 2px; flex: 1; min-width: 0; }
.drop b { font: 800 clamp(18px, 1.7vw, 22px)/1.15 var(--display); letter-spacing: -0.01em; }
.drop .drop-ic { width: 54px; height: 54px; flex: none; animation: bob 3s ease-in-out infinite; }
.drop .btn { position: relative; z-index: 1; }
.drop.compact { box-shadow: 0 4px 0 var(--ink); width: 100%; }
@keyframes bob { 50% { transform: translateY(-5px) rotate(-4deg); } }
@media (max-width: 560px) { .drop { flex-wrap: wrap; } .drop .btn { flex: 1 1 100%; } }
.ask-link.sample { cursor: pointer; font: inherit; font-weight: 700; color: var(--ink); }

/* the hero scene: a pile of slides flies into the lifebuoy, a one-page sheet and an exam come out */
.scene { position: relative; aspect-ratio: 1 / .92; width: 100%; max-width: 560px; justify-self: center; max-height: 600px; }
.scene > * { position: absolute; }
.sc-pile { left: 0; top: 6%; width: 44%; height: 58%; }
.sc-slide { position: absolute; inset: 0 0 auto 0; aspect-ratio: 16 / 10; background: var(--white); border: var(--line); border-radius: 10px; box-shadow: 0 4px 0 var(--ink); padding: 9% 9%; display: grid; gap: 7%; align-content: start; transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--r, 0deg)); }
.sc-slide b { height: 12%; min-height: 7px; width: 70%; background: var(--ink); border-radius: 3px; }
.sc-slide i { height: 6%; min-height: 4px; background: var(--paper-2); border-radius: 3px; }
.sc-slide i:nth-of-type(2) { width: 82%; } .sc-slide i:nth-of-type(3) { width: 64%; } .sc-slide i:nth-of-type(4) { width: 74%; }
.sc-slide .no { position: absolute; right: 8%; bottom: 8%; font: 700 10px/1 var(--mono); color: var(--muted); }
.sc-slide.s1 { --r: -9deg; --y: 30%; } .sc-slide.s2 { --r: 6deg; --y: 22%; --x: 6%; } .sc-slide.s3 { --r: -3deg; --y: 14%; --x: -3%; background: var(--soft); }
.sc-slide.s4 { --r: 8deg; --y: 6%; --x: 4%; } .sc-slide.s5 { --r: -5deg; }
.sc-slide.fly { animation: fly 4.8s cubic-bezier(.5, 0, .3, 1) infinite; }
.sc-slide.fly.f2 { animation-delay: 1.6s; } .sc-slide.fly.f3 { animation-delay: 3.2s; }
@keyframes fly {
  0%, 8% { transform: translate(0, 0) rotate(-5deg) scale(1); opacity: 1; }
  45% { transform: translate(78%, 46%) rotate(160deg) scale(.42); opacity: 1; }
  55%, 100% { transform: translate(92%, 58%) rotate(260deg) scale(.08); opacity: 0; }
}
.sc-count { left: 2%; top: 0; font: 700 12px/1 var(--mono); background: var(--ink); color: var(--white); padding: 7px 10px; border-radius: 999px; z-index: 3; transform: rotate(-4deg); }
.sc-buoy { left: 26%; top: 44%; width: 30%; aspect-ratio: 1; z-index: 2; filter: drop-shadow(0 4px 0 var(--ink)); }
.sc-buoy svg { width: 100%; height: 100%; animation: turn 9s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.sc-sheet { right: 2%; top: 2%; width: 46%; aspect-ratio: 8.5 / 11; background: var(--white); border: var(--line); border-radius: 10px; box-shadow: 0 6px 0 var(--ink); padding: 7%; display: grid; gap: 4.5%; align-content: start; transform: rotate(3deg); z-index: 1; }
.sc-sheet .t { font: 800 clamp(11px, 1.2vw, 15px)/1 var(--display); letter-spacing: -.01em; }
.sc-sheet .box { border: 2px solid var(--ink); border-radius: 6px; background: var(--cta-t); padding: 5%; display: grid; gap: 6px; }
.sc-sheet .ln { height: 6px; border-radius: 3px; background: var(--paper-2); position: relative; overflow: hidden; }
.sc-sheet .ln::after { content: ''; position: absolute; inset: 0; background: var(--cta); transform-origin: left; transform: scaleX(0); animation: hl 4.8s ease-in-out infinite; }
.sc-sheet .ln.k::after { background: var(--ink); }
.sc-sheet .ln:nth-child(3)::after { animation-delay: .2s; } .sc-sheet .ln:nth-child(4)::after { animation-delay: .35s; } .sc-sheet .ln:nth-child(5)::after { animation-delay: .5s; }
.sc-sheet .ln:nth-child(6)::after { animation-delay: .65s; } .sc-sheet .ln:nth-child(7)::after { animation-delay: .8s; } .sc-sheet .ln:nth-child(8)::after { animation-delay: .95s; }
@keyframes hl { 0%, 30% { transform: scaleX(0); } 45%, 92% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
.sc-sheet .cites { display: flex; gap: 4px; flex-wrap: wrap; }
.sc-sheet .cites span { font: 700 8px/1 var(--mono); border: 1.5px solid var(--ink); border-radius: 999px; padding: 3px 5px; background: var(--white); }
.sc-quiz { right: 0; bottom: 2%; width: 56%; background: var(--white); border: var(--line); border-radius: 16px; box-shadow: 0 6px 0 var(--ink); padding: 4.5%; display: grid; gap: 7px; z-index: 3; transform: rotate(-2deg); }
.sc-quiz .qq { font: 800 clamp(11px, 1.15vw, 14px)/1.2 var(--display); }
.sc-quiz .op { display: flex; gap: 7px; align-items: center; border: 1.5px solid var(--ink); border-radius: 999px; padding: 4px 8px; font-size: clamp(10px, 1vw, 12px); font-weight: 700; }
.sc-quiz .op i { font: 700 9px/1 var(--mono); font-style: normal; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--ink); flex: none; }
.sc-quiz .op.ok { animation: okflash 4.8s infinite; }
@keyframes okflash { 0%, 60% { background: var(--white); color: var(--ink); } 66%, 96% { background: var(--brand); color: var(--white); } }
.sc-stamp { right: 36%; bottom: -3%; z-index: 4; }
.sc-stamp .stamp { width: 86px; animation: stampLoop 4.8s infinite; }
@keyframes stampLoop { 0%, 64% { opacity: 0; transform: rotate(-28deg) scale(1.7); } 70% { opacity: 1; transform: rotate(-10deg) scale(.96); } 74%, 95% { opacity: 1; transform: rotate(-10deg) scale(1); } 100% { opacity: 0; transform: rotate(-10deg) scale(1); } }
.sc-tag { font: 700 11px/1 var(--mono); background: var(--pop); color: var(--white); border: var(--line); border-radius: 999px; padding: 6px 9px; z-index: 5; left: 40%; top: 18%; transform: rotate(-6deg); animation: bob 3.4s ease-in-out infinite; }
@media (max-width: 900px) { .scene { max-width: 460px; margin-top: 8px; } }
@media (prefers-reduced-motion: reduce) { .sc-slide.fly { display: none; } .sc-sheet .ln::after { transform: scaleX(1); } .sc-stamp .stamp { opacity: 1; transform: rotate(-10deg); } }

/* the course ticker */
.ticker { background: var(--ink); color: var(--paper); border-bottom: var(--line); overflow: hidden; white-space: nowrap; padding: 13px 0; }
.ticker .track { display: inline-flex; gap: 36px; animation: tick 38s linear infinite; font: 700 14px/1 var(--mono); letter-spacing: .06em; }
.ticker .track span::before { content: '✦'; color: var(--cta); margin-right: 36px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- the problem: 150 slides vs one page ---------- */
.problem .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 70px); align-items: center; }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.vs .big { text-align: center; display: grid; gap: 6px; }
.vs .big b { font: 800 clamp(64px, 9vw, 120px)/.9 var(--display); letter-spacing: -.04em; }
.vs .big span { font: 700 12px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.vs .arrow { font: 800 40px/1 var(--display); color: var(--pop); }
.vs .one b { background: var(--cta); border: var(--line); border-radius: 18px; box-shadow: 0 5px 0 var(--ink); padding: 8px 18px; display: inline-block; }
.quote { margin: 26px 0 0; background: var(--white); border: var(--line); border-radius: 20px; box-shadow: 0 6px 0 var(--ink); padding: 22px 24px; display: grid; gap: 12px; position: relative; }
.quote::before { content: '“'; position: absolute; top: -26px; left: 18px; font: 800 80px/1 var(--display); color: var(--pop); }
.quote p { font: 700 clamp(18px, 1.7vw, 22px)/1.35 var(--display); letter-spacing: -.01em; }
.quote cite { font: 700 12px/1.2 var(--mono); font-style: normal; color: var(--muted); }
@media (max-width: 820px) { .problem .wrap { grid-template-columns: 1fr; } }

/* ---------- beats' live cards ---------- */
.live { min-height: 230px; display: grid; place-items: center; position: relative; overflow: hidden; background: var(--soft); }
.live.y { background: var(--cta-t); } .live.r { background: var(--pop-t); }
.filechip { display: flex; align-items: center; gap: 12px; background: var(--white); border: var(--line); border-radius: 16px; box-shadow: 0 4px 0 var(--ink); padding: 12px 16px; animation: drag 4s ease-in-out infinite; }
.filechip svg { width: 40px; height: 40px; }
.filechip b { font: 800 16px/1.1 var(--display); display: block; }
.filechip span { font: 700 11px/1 var(--mono); color: var(--muted); }
.dropline { position: absolute; inset: 18px; border: 2.5px dashed var(--ink-2); border-radius: 16px; display: grid; place-items: end center; padding-bottom: 12px; font: 700 11px/1 var(--mono); letter-spacing: .1em; color: var(--ink-2); }
@keyframes drag { 0% { transform: translate(-60px, -50px) rotate(-8deg); } 40%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: scale(.96); } 56%, 100% { transform: scale(1); } }
.minisheet { background: var(--white); border: var(--line); border-radius: 10px; box-shadow: 0 5px 0 var(--ink); padding: 14px 16px; width: min(330px, 92%); display: grid; gap: 8px; font-size: 13px; transform: rotate(-1.5deg); }
.minisheet h4 { margin: 0; font: 800 15px/1.1 var(--display); }
.minisheet .star { background: var(--cta-t); border: 1.5px solid var(--ink); border-radius: 8px; padding: 7px 9px; font-weight: 700; }
.minisheet li { margin: 3px 0; }
.minisheet ul { margin: 0; padding-left: 16px; }
.chat { display: grid; gap: 8px; width: min(320px, 92%); }
.chat .bubble { opacity: 0; animation: bubble 6s infinite; }
.chat .bubble:nth-child(2) { animation-delay: .8s; } .chat .bubble:nth-child(3) { animation-delay: 1.6s; } .chat .bubble:nth-child(4) { animation-delay: 2.4s; }
@keyframes bubble { 0% { opacity: 0; transform: translateY(10px) scale(.95); } 6%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
.bubble { border: var(--line); border-radius: 18px; padding: 9px 13px; font-weight: 700; font-size: 14px; max-width: 86%; box-shadow: 0 3px 0 var(--ink); background: var(--white); width: fit-content; }
.bubble.me { justify-self: end; background: var(--pop); color: var(--white); border-bottom-right-radius: 4px; display: grid; gap: 3px; }
.bubble.me .mono { font-size: 11px; text-decoration: underline; word-break: break-all; }
.bubble.them { border-bottom-left-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .chat .bubble { opacity: 1; animation: none; } .filechip { animation: none; } }

/* ---------- not another subscription: two receipts ---------- */
.receipts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 34px); align-items: start; }
.receipt { background: var(--white); border: var(--line); border-radius: 6px 6px 0 0; padding: 22px 22px 30px; font: 700 14px/1.6 var(--mono); position: relative; box-shadow: 0 5px 0 var(--ink); display: grid; gap: 4px; }
.receipt::after { content: ''; position: absolute; left: -2px; right: -2px; bottom: -14px; height: 14px; background: linear-gradient(-45deg, transparent 8px, var(--white) 0) 0 0 / 16px 14px repeat-x, linear-gradient(45deg, transparent 8px, var(--white) 0) 0 0 / 16px 14px repeat-x; }
.receipt h3 { font-family: var(--display); margin-bottom: 8px; }
.receipt .row { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1.5px dashed var(--paper-2); }
.receipt .row.tot { border: 0; border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 6px; font-size: 18px; }
.receipt.them { transform: rotate(-1.5deg); color: var(--ink-2); }
.receipt.us { transform: rotate(1.2deg); }
.receipt .stamp { position: absolute; right: -16px; top: -38px; width: 104px; }
.receipt h3 { padding-right: 90px; }
@media (max-width: 720px) { .receipts { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- the run: stage and result on the front page ---------- */
.run { border-top: var(--line); padding: clamp(30px, 5vw, 60px) 0; background: var(--paper); }
.run .wrap { display: grid; gap: 28px; }
.stage { padding: 18px; display: grid; gap: 16px; animation: rise .4s ease both; }
.stage-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.chip.file { text-transform: none; font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; background: var(--soft); }
.stage-art { position: relative; height: 190px; border: var(--line); border-radius: 14px; background: var(--soft); overflow: hidden; }
.pile { position: absolute; left: 6%; top: 14px; width: 34%; height: 160px; }
.thumb { position: absolute; left: var(--x); top: 10px; width: 100%; max-width: 190px; aspect-ratio: 16/10; background: var(--white); border: var(--line); border-radius: 8px; box-shadow: 0 3px 0 var(--ink); padding: 8px 10px; display: grid; gap: 5px; align-content: start; transform: rotate(var(--r)); animation: drop .35s cubic-bezier(.2, .9, .3, 1.3) both; }
.thumb span { font-size: 10px; color: var(--muted); }
.thumb b { font: 800 12px/1.1 var(--display); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.thumb i { height: 4px; background: var(--paper-2); border-radius: 2px; } .thumb i:nth-of-type(2) { width: 70%; }
@keyframes drop { from { transform: translateY(-60px) rotate(calc(var(--r) * 3)); opacity: 0; } }
.stage .buoy { position: absolute; left: 44%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; animation: turn 4s linear infinite; filter: drop-shadow(0 3px 0 var(--ink)); }
.stage.writing .buoy { animation-duration: 1.4s; }
.stage.finished .buoy { animation: popIn .4s both; }
.mini-sheet { position: absolute; right: 6%; top: 14px; width: 26%; max-width: 130px; aspect-ratio: 8.5/11; background: var(--white); border: var(--line); border-radius: 6px; box-shadow: 0 4px 0 var(--ink); padding: 10px; display: grid; gap: 6px; align-content: start; transform: rotate(3deg); }
.mini-sheet b { height: 8px; width: 70%; background: var(--ink); border-radius: 3px; }
.mini-sheet i { height: 5px; border-radius: 3px; background: var(--paper-2); transform-origin: left; }
.stage.writing .mini-sheet i { animation: write 1.6s ease-in-out infinite; } .stage.finished .mini-sheet i { background: var(--cta); }
.mini-sheet i:nth-of-type(2n) { width: 78%; animation-delay: .2s !important; } .mini-sheet i:nth-of-type(3n) { width: 60%; animation-delay: .4s !important; }
@keyframes write { 0% { transform: scaleX(.1); background: var(--paper-2); } 60%, 100% { transform: scaleX(1); background: var(--cta); } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.steps li { display: flex; align-items: center; gap: 10px; font-weight: 700; opacity: .45; transition: opacity .2s; }
.steps li.on, .steps li.done { opacity: 1; }
.steps .tick { width: 24px; height: 24px; border-radius: 50%; border: var(--line); flex: none; display: grid; place-items: center; font-size: 13px; background: var(--white); }
.steps li.on .tick { border-color: var(--ink); border-top-color: transparent; animation: spin .8s linear infinite; }
.steps li.done .tick { background: var(--brand); color: var(--white); animation: popIn .3s both; }
.steps li.done .tick::after { content: '✓'; }
.steps .st { flex: 1; }
.steps .sub { font-size: 12px; color: var(--muted); }
.found { display: grid; gap: 8px; }
.found .tag { font-size: 13px; padding: 6px 10px; background: var(--cta-t); }
.found .tag .mono { color: var(--muted); font-size: 11px; }
.stage.failed .buoy { animation: none; opacity: .4; }

/* the result */
.result-wrap { display: grid; gap: 18px; }
.result-head { display: grid; gap: 12px; }
.result-head h2 { font-size: clamp(28px, 4vw, 44px); }
.small-n { font-size: 14px; }
.sheet-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.tabs button .mono { font-size: 11px; opacity: .8; }

/* the cheat sheet: a printed page */
.sheet { background: var(--white); border: var(--line); border-radius: 8px; box-shadow: 0 6px 0 var(--ink); padding: clamp(16px, 3vw, 30px); font-size: 14px; line-height: 1.45; animation: rise .5s ease both; }
.sheet-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; border-bottom: 3px solid var(--ink); padding-bottom: 10px; margin-bottom: 14px; }
.sheet-head h2 { font-size: clamp(22px, 3vw, 32px); }
.kick-ink { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--pop); margin-bottom: 6px; }
.sheet-brand { font-size: 10px; letter-spacing: .14em; border: 1.5px solid var(--ink); border-radius: 999px; padding: 5px 8px; white-space: nowrap; }
.sheet h3 { font: 800 15px/1.15 var(--display); letter-spacing: -.01em; margin: 0 0 6px; text-transform: none; }
.sheet ul { margin: 0; padding-left: 16px; }
.sheet li { margin: 3px 0; }
.sheet .hl { background: var(--cta-t); border: 2px solid var(--ink); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; }
.sheet .hl em { color: var(--ink-2); font-size: 12.5px; }
.sheet .hl .marker { background: var(--cta); padding: 1px 6px; border-radius: 4px; }
.sheet .cols { columns: 2 280px; column-gap: 26px; }
.sheet .cols > section { break-inside: avoid; margin-bottom: 14px; }
.sheet dl { margin: 0; display: grid; gap: 4px; }
.sheet dt { font-weight: 800; display: inline; } .sheet dt::after { content: ' — '; font-weight: 500; }
.sheet dd { display: inline; margin: 0; }
.sheet code { font: 700 13px/1.3 var(--mono); background: var(--paper); border: 1.5px solid var(--ink); border-radius: 5px; padding: 1px 5px; }
.sheet .traps { background: var(--pop-t); border-radius: 10px; padding: 10px 12px; border: 2px solid var(--ink); }
.sheet-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1.5px solid var(--paper-2); padding-top: 8px; font-size: 10px; color: var(--muted); }
.cite { font: 700 10px/1 var(--mono); border: 1.5px solid var(--ink-2); border-radius: 999px; padding: 2px 5px; color: var(--ink-2); white-space: nowrap; vertical-align: 1px; background: var(--white); }
.cite.big { font-size: 13px; padding: 4px 9px; border-color: var(--ink); color: var(--ink); background: var(--cta-t); }

/* the exam */
.quiz { display: grid; gap: 14px; max-width: 820px; margin: 0 auto; width: 100%; }
.qtop { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.chip.recall { background: var(--soft); } .chip.apply { background: var(--cta-t); } .chip.compare { background: var(--pop-t); }
.qdots { display: flex; flex-wrap: wrap; gap: 5px; }
.qdots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink); background: var(--white); transition: transform .2s; }
.qdots i.on { transform: scale(1.25); background: var(--cta); }
.qdots i.ok { background: var(--brand); } .qdots i.no { background: var(--pop); }
.qdots i.lock { border-style: dashed; opacity: .5; }
.qcard { display: grid; gap: 14px; animation: rise .3s ease both; }
.qcard .q { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.2; }
.choices { display: grid; gap: 10px; }
.choice { display: flex; gap: 12px; align-items: center; text-align: left; background: var(--white); border: var(--line); border-radius: 16px; padding: 12px 14px; font-weight: 700; font-size: 16px; cursor: pointer; box-shadow: 0 3px 0 var(--ink); transition: transform .1s, box-shadow .1s, background .15s; min-height: 54px; }
.choice:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); background: var(--cta-t); }
.choice:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.choice .letter { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink); font: 700 13px/1 var(--mono); flex: none; background: var(--paper); }
.choice:disabled { cursor: default; }
.choice.right { background: var(--brand); color: var(--white); } .choice.right .letter { background: var(--white); color: var(--ink); }
.choice.wrong { background: var(--pop); color: var(--white); } .choice.wrong .letter { background: var(--white); color: var(--ink); }
.choice.dim { opacity: .55; }
.choice.bump { animation: popIn .35s both; } .choice.shake { animation: shake .4s both; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.why { font-size: 15px; animation: rise .3s ease both; }
.qnav { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.scorecard { display: flex; gap: clamp(18px, 4vw, 40px); align-items: center; flex-wrap: wrap; }
.scorecard > .stack { flex: 1 1 300px; }
.stamp.big { width: 150px; } .stamp.big b { font-size: 46px; } .stamp.big small { font-size: 11px; }
.score-h { font-size: clamp(48px, 7vw, 76px); }
.reread { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.locked { margin-top: 16px; display: grid; gap: 10px; background: var(--cta-t); border-style: dashed; }

/* the class link */
.share-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 22px; align-items: center; }
.linkbox { display: flex; gap: 8px; } .linkbox input { font: 700 15px/1 var(--mono); }
.chat-mock { display: grid; gap: 9px; background: var(--soft); border: var(--line); border-radius: 24px; padding: 18px; box-shadow: 0 5px 0 var(--ink); }
@media (max-width: 760px) { .share-grid { grid-template-columns: 1fr; } }

/* the dialog */
.modal { border: 3px solid var(--ink); border-radius: 24px; box-shadow: 0 8px 0 var(--ink); background: var(--paper); color: var(--ink); padding: clamp(20px, 4vw, 34px); width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 24px); }
.modal::backdrop { background: rgba(16, 34, 61, .6); }
.modal[open] { animation: popIn .3s both; }
.modal h2 { font-size: clamp(28px, 4vw, 40px); margin: 6px 0 4px; }
.modal-x { position: absolute; right: 14px; top: 14px; } .modal-x button { border: var(--line); background: var(--white); border-radius: 50%; width: 38px; height: 38px; cursor: pointer; font-weight: 800; }
.passes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 12px; }
.pass { background: var(--white); border: var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 10px; align-content: start; box-shadow: 0 4px 0 var(--ink); }
.pass.best { background: var(--cta-t); transform: rotate(-.6deg); }
.pass .price { font-size: 44px; }
@media (max-width: 560px) { .passes { grid-template-columns: 1fr; } }

/* app bits */
.deck-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: var(--line); background: var(--cta); font: 800 15px/1 var(--display); flex: none; }
.row-item:hover { background: var(--cta-t); }
.deck-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.q-wrap { display: grid; gap: 22px; padding-top: 26px; padding-bottom: 40px; max-width: 900px; }
.q-head { display: grid; gap: 10px; }
.q-cta { display: flex; gap: 20px; align-items: center; background: var(--cta-t); animation: rise .5s ease both; }
.q-cta .cta-art { width: 110px; height: 110px; flex: none; animation: turn 10s linear infinite; }
@media (max-width: 560px) { .q-cta .cta-art { display: none; } }
.legal-draft { border: 2px dashed var(--ink-2); border-radius: 14px; padding: 14px 16px; background: var(--white); }
.prose { max-width: 46em; display: grid; gap: 14px; } .prose h2 { font-size: clamp(22px, 3vw, 30px); margin-top: 10px; }

/* printing: only the cheat sheet, on one page */
@media print {
  @page { size: letter; margin: 0.4in; }
  body { background: #fff; }
  body > *:not(main), .hero, .ticker, .problem, .sec, .stage, .result-head, .sheet-tools, .deck-bar, [data-pane="quiz"], [data-pane="share"], .run > .wrap > :not(#result), .top, .tabbar, .waves, .foot, .toast { display: none !important; }
  main, .run, #result, .result-wrap, [data-pane="sheet"] { display: block !important; padding: 0 !important; margin: 0 !important; border: 0 !important; }
  .sheet { box-shadow: none; border: 0; padding: 0; font-size: 8.6pt; line-height: 1.28; animation: none; }
  .sheet .cols { columns: 3; column-gap: 14px; }
  .sheet h3 { font-size: 10pt; } .sheet-head h2 { font-size: 15pt; } .cite { font-size: 6.5pt; padding: 0 3px; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
