/* Public pages of QuizArena. Same arena as the app: ink outlines, offset
   shadows, coral / violet / sun / mint tiles, dotted paper; Unbounded for
   headings and numbers, Manrope for the rest. */
:root {
  --ink: #14142b;
  --ink-2: #26264a;
  --coral: #ff5a36;
  --coral-d: #e8431f;
  --violet: #5b3df5;
  --sun: #ffc83d;
  --mint: #12b886;
  --berry: #e5383b;
  --sky: #5fb3ff;
  --paper: #fff8ef;
  --card: #ffffff;
  --soft: #f4efff;
  --rule: #14142b;
  --rule-soft: #e9e2d6;
  --text: #23233f;
  --mute: #5b5b78;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --pad: clamp(18px, 4vw, 40px);
  --r: 20px;
  --sh: 5px 5px 0 var(--ink);
  --sh-sm: 3px 3px 0 var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font: 500 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; color: var(--ink); margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 3.3vw, 2.4rem); line-height: 1.12; }
h3 { font-size: 1.08rem; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; top: 0; background: var(--card); color: var(--ink); padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.print-only { display: none; }
.dots { background-image: radial-gradient(rgba(20, 20, 43, 0.12) 1.2px, transparent 1.3px); background-size: 18px 18px; }

.label { font: 800 0.72rem/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.eyebrow b { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border: 2px solid var(--ink); border-radius: 10px; background: var(--sun); color: var(--ink); font: 700 0.85rem/1 var(--display); box-shadow: var(--sh-sm); }
section:nth-of-type(3n) .eyebrow b { background: var(--mint); color: #fff; }
section:nth-of-type(3n + 1) .eyebrow b { background: var(--sky); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 2px solid var(--ink); border-radius: 999px; font: 800 0.97rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform 0.12s, box-shadow 0.12s, background 0.15s; white-space: nowrap; box-shadow: var(--sh-sm); }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn svg { width: 16px; height: 16px; flex: none; transition: transform 0.15s; }
.btn:hover svg { transform: translateX(3px); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 0.875rem; }
.btn.ink { background: var(--violet); color: #fff; }
.btn.seal { background: var(--coral); color: #fff; }
.btn.line { background: var(--card); color: var(--ink); }
.btn.ghost { background: transparent; color: #fff; border-color: #fff; box-shadow: 3px 3px 0 rgba(255, 255, 255, 0.35); }
.top .btn { box-shadow: 3px 3px 0 #000; border-color: #000; }

/* Header */
.top { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 30; }
.top .wrap { display: flex; align-items: center; gap: 26px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.15rem/1 var(--display); color: #fff; letter-spacing: -0.02em; }
.brand i { font-style: normal; color: var(--coral); }
.brand svg { width: 34px; height: 34px; }
.nav { display: flex; gap: 2px; margin-left: 6px; flex: 1; }
.nav a { padding: 8px 12px; font-size: 0.92rem; font-weight: 700; text-decoration: none; color: rgba(255, 255, 255, 0.78); border-radius: 999px; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav a[aria-current] { color: var(--ink); background: var(--sun); }
.right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.lang { font: 800 0.75rem/1 var(--sans); letter-spacing: 0.08em; text-decoration: none; padding: 10px 11px; border: 2px solid rgba(255, 255, 255, 0.35); border-radius: 12px; color: #fff; }
.lang:hover { border-color: #fff; }
.menu-btn { display: none; background: none; border: 2px solid rgba(255, 255, 255, 0.35); border-radius: 12px; color: #fff; width: 42px; height: 40px; align-items: center; justify-content: center; cursor: pointer; }

/* Sections */
section { padding: clamp(52px, 7vw, 92px) 0; }
section.tight { padding: clamp(40px, 5vw, 64px) 0; }
section.first { padding-top: clamp(28px, 4vw, 44px); }
section.band { background: var(--soft); border-block: 2px solid var(--ink); }
.intro { max-width: 62ch; margin-top: 14px; color: var(--mute); font-size: 1.06rem; }
.after { margin-top: 28px; }
.note { margin-top: 18px; color: var(--mute); font-size: 0.9rem; }

/* Hero */
.hero { padding: clamp(36px, 5vw, 60px) 0 0; background-image: radial-gradient(rgba(20, 20, 43, 0.1) 1.2px, transparent 1.3px); background-size: 18px 18px; }
.hero.big { padding-top: clamp(44px, 6vw, 80px); position: relative; overflow: hidden; isolation: isolate; }
.hero.big::before { content: ""; position: absolute; right: -80px; top: -60px; width: 320px; height: 320px; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); opacity: 0.9; z-index: -1; }
.hero.big::after { content: "?"; position: absolute; right: 7%; top: 70px; font: 800 7rem/1 var(--display); color: var(--coral); transform: rotate(12deg); z-index: -1; -webkit-text-stroke: 2px var(--ink); }
.hero .wrap { position: relative; }
.hero h1 { margin-top: 14px; }
.hero .kicker { display: inline-block; margin-bottom: 16px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 12px; box-shadow: var(--sh-sm); }
.hero .display { display: block; font-size: clamp(2.05rem, 4.6vw, 3.4rem); line-height: 1.06; max-width: 21ch; }
.hero.big .display { font-size: clamp(2.3rem, 5.6vw, 4.3rem); max-width: 17ch; }
.hero .display em, h2 em { font-style: normal; color: var(--coral); }
.lead { margin-top: 20px; max-width: 60ch; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: #3a3a58; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { text-decoration: none; color: var(--mute); }
.crumbs a:hover { color: var(--ink); }
.crumbs b { color: var(--ink); }
.crumbs span { color: #b5b0c4; }
.byline { margin-top: 22px; }

/* Score strip */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: clamp(34px, 5vw, 52px) 0 0; }
.figures > div { padding: 16px 18px 18px; border: 2px solid var(--ink); border-radius: 18px; background: #fff; box-shadow: var(--sh-sm); }
.figures > div:nth-child(1) { background: var(--coral); color: #fff; }
.figures > div:nth-child(2) { background: var(--violet); color: #fff; }
.figures > div:nth-child(3) { background: var(--sun); }
.figures > div:nth-child(4) { background: var(--mint); color: #fff; }
.figures > div:nth-child(1) .label, .figures > div:nth-child(2) .label, .figures > div:nth-child(4) .label { color: rgba(255, 255, 255, 0.85); }
.figures dd { margin: 8px 0 0; }
.figures strong { display: block; font: 800 2.4rem/1 var(--display); color: inherit; }
.figures > div:nth-child(3) strong { color: var(--ink); }
.figures small { display: block; margin-top: 8px; font-size: 0.82rem; font-weight: 600; line-height: 1.35; opacity: 0.92; }

/* A real screen of the app, in a phone-game frame */
.shot { margin: 0; border: 2px solid var(--ink); background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: 8px 8px 0 var(--ink); }
.shot figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px 10px 58px; border-bottom: 2px solid var(--ink); background: var(--paper); position: relative; }
.shot figcaption::before { content: ""; position: absolute; left: 16px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--coral); box-shadow: 14px 0 0 var(--sun), 28px 0 0 var(--mint); }
.shot figcaption .host { color: #8b88a0; }
.hero .shot { margin-top: clamp(30px, 4vw, 44px); margin-bottom: 8px; }
.cover { margin: clamp(28px, 4vw, 44px) 0 8px; border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); }

/* Grids and cards: game tiles */
.grid { display: grid; gap: 18px; margin-top: 34px; }
.grid.g3 { grid-template-columns: repeat(3, 1fr); }
.grid.g4 { grid-template-columns: repeat(4, 1fr); }
.first .grid, .first .ledger { margin-top: 0; }
.card { display: flex; flex-direction: column; padding: 22px 22px 20px; text-decoration: none; color: inherit; border: 2px solid var(--ink); border-radius: var(--r); background: #fff; box-shadow: var(--sh-sm); transition: transform 0.12s, box-shadow 0.12s; position: relative; }
a.card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.card .num { align-self: flex-start; font: 700 0.72rem/1 var(--display); letter-spacing: 0.02em; padding: 7px 10px; border-radius: 999px; border: 2px solid var(--ink); background: var(--sun); color: var(--ink); }
.grid > .card:nth-child(4n + 2) .num { background: var(--sky); }
.grid > .card:nth-child(4n + 3) .num { background: var(--mint); color: #fff; }
.grid > .card:nth-child(4n + 4) .num { background: var(--coral); color: #fff; }
.card h3 { margin-top: 16px; }
.card p { margin-top: 8px; color: var(--mute); font-size: 0.95rem; }
.card .more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; font-size: 0.88rem; font-weight: 800; color: var(--violet); }
.card .more svg { width: 14px; height: 14px; transition: transform 0.15s; }
a.card:hover .more svg { transform: translateX(3px); }
.grid.plain { gap: 18px; }
.grid.plain > div { border: 2px solid var(--ink); border-radius: var(--r); padding: 22px; background: #fff; box-shadow: var(--sh-sm); position: relative; }
.grid.plain > div::before { content: "✕"; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 2px solid var(--ink); background: var(--berry); color: #fff; font: 800 0.9rem/1 var(--display); margin-bottom: 14px; }
.grid.plain p { margin-top: 8px; color: var(--mute); }

/* Offers */
.offers .offer { gap: 0; }
.offer .price { margin-top: 16px; font: 700 0.78rem/1 var(--display); color: var(--ink); padding: 9px 12px; border: 2px dashed var(--ink); align-self: flex-start; border-radius: 12px; }
.offer ul { list-style: none; margin: 18px 0 24px; padding: 0; font-size: 0.94rem; }
.offer li { padding: 9px 0 9px 26px; border-top: 2px dotted var(--rule-soft); position: relative; }
.offer li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 12px; height: 12px; border-radius: 50%; background: var(--mint); border: 2px solid var(--ink); }
.offer .btn { margin-top: auto; }
.offer.best { background: var(--ink); color: #fff; box-shadow: 6px 6px 0 var(--coral); }
.offer.best h3 { color: #fff; }
.offer.best p { color: rgba(255, 255, 255, 0.78); }
.offer.best .price { color: var(--sun); border-color: var(--sun); }
.offer.best li { border-top-color: rgba(255, 255, 255, 0.16); }
.offer.best .btn.ink { background: var(--coral); border-color: #000; box-shadow: 3px 3px 0 #000; }

/* Ledger: an index as a scoreboard */
.ledger { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 10px; }
.ledger a { display: grid; grid-template-columns: 64px 1fr 22px; align-items: center; gap: 18px; padding: 14px 18px 14px 14px; text-decoration: none; border: 2px solid var(--ink); border-radius: 16px; background: #fff; box-shadow: var(--sh-sm); transition: transform 0.12s, box-shadow 0.12s; }
.ledger a:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.ledger .num { display: grid; place-items: center; height: 44px; border-radius: 12px; border: 2px solid var(--ink); background: var(--sun); font: 800 0.95rem/1 var(--display); color: var(--ink); }
.ledger li:nth-child(4n + 2) .num { background: var(--sky); }
.ledger li:nth-child(4n + 3) .num { background: var(--mint); color: #fff; }
.ledger li:nth-child(4n + 4) .num { background: var(--coral); color: #fff; }
.ledger .what { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 4px 28px; align-items: baseline; }
.ledger .what b { font: 700 1.02rem/1.3 var(--display); color: var(--ink); letter-spacing: -0.01em; }
.ledger .what span { color: var(--mute); font-size: 0.95rem; }
.ledger svg { width: 18px; height: 18px; color: var(--ink); }

/* Split rows on the home page */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split .eyebrow { display: inline-block; background: var(--ink); color: #fff; padding: 7px 12px; border-radius: 999px; }
.ticks { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 10px; }
.ticks li { padding: 0 0 0 36px; position: relative; font-size: 0.98rem; min-height: 24px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--ink); background: var(--mint); }
.ticks li::after { content: ""; position: absolute; left: 8px; top: 7px; width: 6px; height: 10px; border-right: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(45deg); }

/* Four steps of a round */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { position: relative; border: 2px solid var(--ink); border-radius: var(--r); background: #fff; padding: 20px; box-shadow: var(--sh-sm); }
.steps li:not(:last-child)::after { content: ""; position: absolute; right: -15px; top: 34px; width: 12px; height: 12px; border-top: 2.5px solid var(--ink); border-right: 2.5px solid var(--ink); transform: rotate(45deg); }
.steps .dot { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; border: 2px solid var(--ink); font: 800 1rem/1 var(--display); color: var(--ink); background: var(--sun); }
.steps li:nth-child(2) .dot { background: var(--sky); }
.steps li:nth-child(3) .dot { background: var(--coral); color: #fff; }
.steps li:nth-child(4) .dot { background: var(--mint); color: #fff; }
.steps h3 { margin-top: 16px; }
.steps p { margin-top: 6px; color: var(--mute); font-size: 0.95rem; }

/* Reading pages */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.prose { max-width: 70ch; font-size: 1.05rem; }
.prose h2 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); margin: 44px 0 14px; display: flex; align-items: center; gap: 12px; }
.prose h2::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 5px; border: 2px solid var(--ink); background: var(--coral); }
.prose > h2:first-child { margin-top: 0; }
.prose p { margin-top: 14px; }
.prose ul, .prose ol { margin: 16px 0 0; padding-left: 24px; }
.prose li { margin-top: 9px; }
.prose li::marker { color: var(--coral); font-weight: 800; }
.prose a { color: var(--violet); text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 700; }
.prose b { color: var(--ink); font-weight: 800; }
.tbl { overflow-x: auto; margin-top: 18px; border: 2px solid var(--ink); border-radius: 16px; background: #fff; box-shadow: var(--sh-sm); }
table { border-collapse: collapse; width: 100%; font-size: 0.94rem; }
th { text-align: left; font: 800 0.74rem/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: #fff; padding: 12px 14px; background: var(--ink); }
td { padding: 12px 14px; border-top: 2px solid var(--rule-soft); vertical-align: top; }
tr td:first-child { font-weight: 800; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { text-decoration: none; padding: 6px 12px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font-size: 0.88rem; font-weight: 700; color: var(--ink); }
.chips a:hover { background: var(--sun); }
.sources { font-size: 0.95rem; }
.sources span { color: var(--mute); }
.aside { position: sticky; top: 90px; background: var(--violet); color: #fff; padding: 24px 22px; border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--sh); }
.aside .label { color: var(--sun); }
.aside h3 { color: #fff; margin-top: 10px; font-size: 1.3rem; }
.aside p { margin-top: 10px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.86); }
.aside .btn { margin-top: 20px; width: 100%; box-shadow: 3px 3px 0 var(--ink); }
.aside .also { margin-top: 14px; }
.aside .also a { color: #fff; font-size: 0.9rem; font-weight: 700; }

/* FAQ */
.faq { margin-top: 30px; max-width: 880px; display: grid; gap: 10px; }
.faq details { border: 2px solid var(--ink); border-radius: 16px; background: #fff; box-shadow: var(--sh-sm); }
.faq summary { cursor: pointer; padding: 16px 52px 16px 18px; font: 700 0.98rem/1.4 var(--display); color: var(--ink); list-style: none; position: relative; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 14px; top: 12px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; border: 2px solid var(--ink); background: var(--sun); font: 800 1rem/1 var(--display); color: var(--ink); }
.faq details[open] summary::after { content: "–"; background: var(--coral); color: #fff; }
.faq p { padding: 0 18px 18px; max-width: 70ch; color: #3a3a58; }

/* Closing call */
.final { background: var(--coral); color: #fff; border-top: 2px solid var(--ink); position: relative; overflow: hidden; }
.final::after { content: "!"; position: absolute; right: 6%; top: 50%; transform: translateY(-50%) rotate(10deg); font: 800 14rem/1 var(--display); color: var(--sun); -webkit-text-stroke: 3px var(--ink); opacity: 0.95; }
.final .wrap { position: relative; z-index: 1; }
.final .label { color: var(--ink); background: var(--sun); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 12px; display: inline-block; }
.final h2 { color: #fff; margin-top: 16px; font-size: clamp(1.9rem, 4.2vw, 3rem); max-width: 18ch; }
.final h2 em { color: var(--ink); }
.final p { margin-top: 16px; max-width: 54ch; color: rgba(255, 255, 255, 0.92); }
.final .btn.seal { background: var(--ink); }
.final .btn.ghost { border-color: var(--ink); box-shadow: var(--sh-sm); background: #fff; color: var(--ink); }

/* Footer */
footer { background: var(--ink); color: rgba(255, 255, 255, 0.75); padding: 56px 0 28px; font-size: 0.9rem; }
.fcols { display: grid; grid-template-columns: 1.5fr repeat(5, 1fr); gap: 32px; }
footer .about { margin: 16px 0 18px; max-width: 34ch; }
footer h4 { font: 700 0.74rem/1 var(--display); letter-spacing: 0.02em; color: var(--sun); margin-bottom: 14px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-top: 9px; }
footer a { text-decoration: none; }
footer li a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.82rem; }

/* Consent */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 580px; margin: 0 auto; background: #fff; border: 2px solid var(--ink); border-radius: 18px; padding: 16px 18px; display: flex; gap: 16px; align-items: center; z-index: 40; font-size: 0.9rem; box-shadow: var(--sh); }
.consent[hidden] { display: none; }
.consent div { display: flex; gap: 8px; flex: none; }
.consent .btn.ghost { color: var(--ink); border-color: var(--ink); box-shadow: var(--sh-sm); }

/* Free tools */
.tool-sec { padding-bottom: clamp(40px, 5vw, 64px); }
.tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 2px solid var(--ink); border-radius: var(--r); background: var(--ink); overflow: hidden; box-shadow: 8px 8px 0 var(--ink); }
.tool.checklist { display: block; background: #fff; }
.tool-in { padding: 26px; background: #fff; display: grid; gap: 18px; align-content: start; }
.tool.form .tool-in { grid-template-columns: 1fr 1fr; }
.tool-in label { display: grid; gap: 6px; font-size: 0.9rem; font-weight: 800; color: var(--ink); }
.tool-in label.wide { grid-column: 1 / -1; }
.tool-in em { font-size: 0.78rem; color: var(--mute); font-style: normal; font-weight: 600; }
.tool-in small { font-weight: 500; color: var(--mute); font-size: 0.8rem; }
.tool input[type="number"], .tool input[type="text"], .tool input[type="date"], .tool input[type="time"], .tool select, .tool textarea { width: 100%; min-height: 46px; padding: 9px 12px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; font: 700 1rem var(--sans); color: var(--ink); }
.tool input:focus, .tool select:focus, .tool textarea:focus { outline: none; box-shadow: 0 0 0 3px var(--sun); }
.tool textarea { resize: vertical; }
.tool-out { padding: 26px; background: var(--ink); color: #fff; display: grid; gap: 4px; align-content: start; border-left: 2px solid var(--ink); }
.tool-out .res { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.tool-out .label { color: rgba(255, 255, 255, 0.7); }
.tool-out strong { font: 700 1.1rem var(--display); color: #fff; text-align: right; }
.tool-out .res.main { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; margin-bottom: 6px; border: 2px solid #000; border-radius: 16px; background: var(--coral); }
.tool-out .res.main .label { color: #fff; }
.tool-out .res.main strong { font: 800 clamp(2.2rem, 5vw, 3.2rem)/1 var(--display); color: #fff; text-align: left; }
.tool-out em { font-size: 0.8rem; font-style: normal; color: var(--sun); }
.tool-note { margin-top: 14px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.65); }
.tool-out pre { margin: 0; white-space: pre-wrap; font: 500 0.9rem/1.55 ui-monospace, Menlo, monospace; background: rgba(255, 255, 255, 0.07); padding: 16px; border-radius: 12px; max-height: 420px; overflow: auto; }
.tool-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.tool-out .btn, .tool-bar .btn { box-shadow: 3px 3px 0 #000; border-color: #000; }
.tool-out .btn.line, .tool-bar .btn.line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); box-shadow: none; }
.tool-bar { display: flex; align-items: center; gap: 16px; padding: 16px 22px; background: var(--ink); color: #fff; }
.tool-bar strong { font: 800 1.1rem var(--display); }
.meter { flex: 1; height: 12px; background: rgba(255, 255, 255, 0.15); border-radius: 999px; overflow: hidden; border: 2px solid #000; }
.meter i { display: block; height: 100%; width: 0; background: var(--mint); transition: width 0.2s; }
.tool-groups { padding: 8px 22px 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 36px; }
.tool-groups fieldset { border: 0; margin: 0; padding: 14px 0 0; min-width: 0; }
.tool-groups legend { padding: 0; margin-bottom: 6px; }
.tool-groups legend b { color: var(--coral); margin-right: 8px; }
.tool-groups label { display: flex; gap: 12px; padding: 10px 0; border-top: 2px dotted var(--rule-soft); font-size: 0.96rem; cursor: pointer; }
.tool-groups input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--mint); flex: none; }
.tool-groups input:checked + span { color: var(--mute); text-decoration: line-through; }

/* Entrance */
.rise { opacity: 1; transform: none; }
html:not(.no-js) .rise { opacity: 0; transform: translateY(14px) scale(0.98); transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3); }
html:not(.no-js) .rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html:not(.no-js) .rise { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .btn, .card, .ledger a { transition: none; } }

@media (max-width: 1080px) {
  .fcols { grid-template-columns: repeat(3, 1fr); }
  .fcols > div:first-child { grid-column: 1 / -1; }
  .grid.g4 { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .aside { position: static; max-width: 520px; }
  .hero.big::after { display: none; }
}
@media (max-width: 940px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 66px; background: var(--ink); flex-direction: column; padding: 10px var(--pad) 18px; margin: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); max-height: calc(100dvh - 66px); overflow: auto; gap: 4px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 14px; font-size: 1.02rem; border-radius: 14px; }
  .split, .split.flip { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .grid.g3 { grid-template-columns: 1fr 1fr; }
  .grid.plain { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li::after { display: none; }
  .tool, .tool.form .tool-in, .tool-groups { grid-template-columns: 1fr; }
  .tool-out { border-left: 0; border-top: 2px solid var(--ink); }
  .ledger .what { grid-template-columns: 1fr; }
  .final::after { font-size: 9rem; right: -10px; opacity: 0.35; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top .wrap { gap: 10px; min-height: 60px; }
  .nav { top: 60px; }
  .brand { font-size: 1rem; }
  .brand svg { width: 30px; height: 30px; }
  .right { gap: 8px; }
  .top .btn.sm span { display: none; }
  .top .btn.sm { padding: 0 12px; }
  .hero.big::before { width: 180px; height: 180px; right: -70px; top: -50px; }
  .figures { grid-template-columns: 1fr 1fr; gap: 10px; }
  .figures > div { padding: 14px; }
  .figures strong { font-size: 1.9rem; }
  .grid.g3, .grid.g4, .steps { grid-template-columns: 1fr; }
  .ledger a { grid-template-columns: 48px 1fr; gap: 6px 14px; padding: 12px; }
  .ledger .num { height: 40px; font-size: 0.85rem; }
  .ledger svg { display: none; }
  .fcols { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .cta .btn { flex: 1 1 100%; }
  .consent { flex-direction: column; align-items: stretch; }
  .consent div { justify-content: flex-end; }
  .shot { box-shadow: 5px 5px 0 var(--ink); }
  .shot figcaption .host { display: none; }
  .tool { box-shadow: 5px 5px 0 var(--ink); }
  .tool-bar { flex-wrap: wrap; }
  .tool-in, .tool-out { padding: 18px; }
  .final::after { display: none; }
}
@media print {
  .top, footer, .consent, .final, .aside, .hero .cta, .band, .faq, .crumbs { display: none !important; }
  .print-only { display: block; }
  body { background: #fff; }
  .tool { border: 0; box-shadow: none; }
  .tool-bar .btn, .tool-act { display: none; }
}
