/*
 * QR Engine stylesheet.
 *
 * Direction: printed labels and industrial safety signage. Deep ink navy for text and codes,
 * safety yellow for actions, electric violet as the mark of "Supercharged", and cool aluminium
 * greys for structure. One bold move: QR codes are shown as printed stickers with a hard yellow
 * offset shadow. Everything else stays quiet. Type: Unbounded (wide, engineered) for headings,
 * Atkinson Hyperlegible (designed for legibility) for everything else.
 *
 * No inline styles anywhere (the Content Security Policy forbids them), so every visual state
 * is a class here.
 */

/* ------------------------------------------------------------------ fonts */
@font-face { font-family: "Unbounded"; src: url("/fonts/unbounded-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("/fonts/unbounded-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/atkinson-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/atkinson-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/atkinson-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* ------------------------------------------------------------------ tokens */
:root {
  --ink: #14213D;
  --ink-2: #24365E;
  --paper: #FFFFFF;
  --alu: #E8ECF0;
  --alu-soft: #F4F6F8;
  --line: #CBD3DD;
  --line-strong: #8F9BAD;
  --muted: #4E5D75;
  --signal: #FFC21A;
  --signal-deep: #E5A800;
  --volt: #5B3DF5;
  --volt-deep: #4527D9;
  --volt-soft: #EFECFF;
  --ok: #1D7347;
  --ok-soft: #E6F4EC;
  --bad: #B42318;
  --bad-soft: #FDECEA;

  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --text: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-small: 6px;
  --r: 10px;
  --wrap: 1160px;
  --gap: 24px;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}
img, svg { max-width: 100%; }
a { color: var(--ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--volt-deep); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-weight: 700; }
h2, h3 { font-weight: 500; }
p { margin: 0 0 1em; }
code, pre { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .92em; }
:focus-visible { outline: 3px solid var(--signal-deep); outline-offset: 2px; border-radius: 2px; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--signal); padding: 8px 14px; z-index: 10; border-radius: var(--r-small); }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ masthead */
.masthead { border-bottom: 1px solid var(--line); background: var(--paper); position: relative; z-index: 5; }
.masthead__row { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.mark { width: 28px; height: 28px; fill: currentColor; flex: none; }
.mark__spark { fill: var(--volt); }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.02em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; font-weight: 700; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--signal-deep); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.nav-toggle { display: none; margin-left: auto; font: inherit; font-weight: 700; background: none; border: 1.5px solid var(--ink); border-radius: var(--r-small); padding: 6px 12px; color: var(--ink); cursor: pointer; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav--open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--alu); }
  .nav .btn { margin-top: 12px; border-bottom: 1.5px solid var(--ink); }
}

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
  padding: 12px 20px; border-radius: var(--r-small); border: 1.5px solid var(--ink);
  background: var(--paper); color: var(--ink);
}
.btn:hover { color: var(--ink); background: var(--alu-soft); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn--primary { background: var(--signal); }
.btn--primary:hover { background: var(--signal-deep); }
.btn--primary:focus-visible { outline-color: var(--ink); }
.btn--secondary { background: var(--paper); }
.btn--ghost { border-color: transparent; background: transparent; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.btn--ghost:hover { background: var(--alu-soft); }
.btn--super { background: var(--volt); border-color: var(--volt); color: #fff; }
.btn--super:hover { background: var(--volt-deep); border-color: var(--volt-deep); color: #fff; }
.btn--danger { background: var(--paper); border-color: var(--bad); color: var(--bad); }
.btn--danger:hover { background: var(--bad-soft); color: var(--bad); }
.btn--small { padding: 7px 14px; font-size: .95rem; }
.btn--big { padding: 15px 26px; font-size: 1.08rem; }
.btn--block { width: 100%; }
.link-btn { font: inherit; background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--volt-deep); }
.link-btn--danger { color: var(--bad); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.inline-form { display: inline; }

/* ------------------------------------------------------------------ the sticker (the bold move) */
.sticker {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 12px 12px 0 var(--signal);
}
.sticker img { display: block; width: 100%; height: auto; }
.sticker--preview { box-shadow: 8px 8px 0 var(--signal); padding: 14px; min-height: 240px; display: grid; place-items: center; }
/* Transparent codes sit on a checkerboard, the usual "nothing behind this" signal. */
.sticker--clear { background-color: #fff; background-image: linear-gradient(45deg, var(--alu) 25%, transparent 25%), linear-gradient(-45deg, var(--alu) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, var(--alu) 75%), linear-gradient(-45deg, transparent 75%, var(--alu) 75%); background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0; }

/* ------------------------------------------------------------------ kinds and badges */
.kind { display: inline-block; font-family: var(--display); font-weight: 500; font-size: .78rem; letter-spacing: .01em; padding: 4px 10px; border-radius: 999px; line-height: 1.2; vertical-align: middle; }
.kind--regular { border: 1.5px solid var(--ink); color: var(--ink); }
.kind--super { background: var(--volt); color: #fff; border: 1.5px solid var(--volt); }
.kind--tiny { font-size: .68rem; padding: 2px 8px; margin-left: 6px; }
.badge { display: inline-block; font-size: .85rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--alu); margin-left: 6px; }
.badge--ok { background: var(--ok-soft); color: var(--ok); margin-left: 0; margin-right: 6px; }
.note { color: var(--muted); }
.note--super { border-left: 4px solid var(--volt); padding: 4px 0 4px 12px; }
.notice { background: var(--alu-soft); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; }
.notice--ok { background: var(--ok-soft); border-color: #B5DCC5; }
.form-error { color: var(--bad); font-weight: 700; margin: 8px 0; }
.form-error:empty { display: none; }
.form-error ul { margin: 0; padding-left: 18px; }

/* ------------------------------------------------------------------ home: hero */
.hero { padding: 56px 0 72px; border-bottom: 1px solid var(--line); background: linear-gradient(var(--alu-soft), var(--paper) 70%); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero__title { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 20px; max-width: 12ch; }
.hero__lede { font-size: 1.2rem; max-width: 46ch; color: var(--ink-2); }
.hero__form { margin-top: 28px; max-width: 560px; }
.hero__label { display: block; font-weight: 700; margin-bottom: 6px; }
.hero__input-row { display: flex; gap: 10px; }
.hero__hint { margin-top: 10px; color: var(--muted); font-size: .95rem; }
.hero__code { margin: 0; justify-self: center; width: min(100%, 420px); }
.hero__caption { margin-top: 22px; text-align: center; color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) {
  .hero { padding: 32px 0 48px; }
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__input-row { flex-direction: column; }
  .hero__code { width: min(100%, 340px); }
}

/* ------------------------------------------------------------------ sections */
.section { padding: 64px 0; }
.section--tint { background: var(--alu-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__title { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 14px; }
.section__lede { max-width: 64ch; color: var(--ink-2); margin-bottom: 28px; }
.page-head { padding: 48px 0 24px; max-width: 760px; }
.page-head__title { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; }
.page-head__lede { font-size: 1.15rem; color: var(--ink-2); }
.crumbs { margin-bottom: 10px; font-weight: 700; }

/* Comparison table */
.compare { overflow-x: auto; border: 1.5px solid var(--ink); border-radius: var(--r); max-width: 860px; }
.compare__table { width: 100%; border-collapse: collapse; min-width: 520px; }
.compare__table th, .compare__table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare__table tbody tr:last-child th, .compare__table tbody tr:last-child td { border-bottom: 0; }
.compare__table thead th { background: var(--alu-soft); border-bottom: 1.5px solid var(--ink); }
.compare__table tbody th { font-weight: 400; color: var(--ink-2); width: 46%; }
.compare__table td:last-child { background: var(--volt-soft); }
.compare + .note { margin-top: 18px; }

/* Content type list: rows, not cards */
.types { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 48px; }
.types__item { border-top: 1px solid var(--line); }
.types__link { display: block; padding: 16px 0 16px 0; text-decoration: none; }
.types__action { display: block; font-weight: 700; font-size: 1.08rem; }
.types__link:hover .types__action { text-decoration: underline; text-decoration-color: var(--signal-deep); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.types__summary { display: block; color: var(--muted); }
.types__item--super .types__link { padding-left: 14px; border-left: 4px solid var(--volt); }
.types--page { margin-bottom: 64px; }
@media (max-width: 760px) { .types { grid-template-columns: 1fr; } }

/* Numbered steps: genuinely a sequence */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 32px; display: grid; gap: 18px; max-width: 760px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; align-items: start; gap: 14px; }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 700; font-size: 1.1rem; width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 8px; background: var(--signal); }
.steps li strong { display: block; }

/* ------------------------------------------------------------------ forms */
.form { display: grid; gap: 4px; }
.form--inline { margin-top: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; border: 0; padding: 0; margin: 0; min-width: 0; }
.form-grid > * { grid-column: 1 / -1; }
.form-grid > .field--half { grid-column: auto; }
@media (max-width: 560px) { .form-grid > .field--half { grid-column: 1 / -1; } }
.field { margin-bottom: 14px; min-width: 0; }
.field__label { display: block; font-weight: 700; margin-bottom: 6px; }
.field__label output { font-weight: 400; color: var(--muted); margin-left: 6px; }
.field__optional { font-weight: 400; color: var(--muted); }
.field__help { color: var(--muted); font-size: .93rem; margin: 6px 0 0; }
.field__error { display: block; color: var(--bad); font-weight: 700; font-size: .95rem; margin: 6px 0 0; }
.field__error:empty { display: none; }
.input {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line-strong); border-radius: var(--r-small); padding: 11px 12px;
}
.input:focus { outline: 3px solid var(--signal); outline-offset: 0; border-color: var(--ink); }
.input[aria-invalid="true"], .input-validation-error { border-color: var(--bad); }
textarea.input { resize: vertical; min-height: 84px; }
.input--hero { font-size: 1.15rem; padding: 14px 16px; border: 2px solid var(--ink); }
.input--code { font-size: 1.4rem; letter-spacing: .2em; max-width: 240px; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.swatch { width: 64px; height: 42px; padding: 3px; border: 1.5px solid var(--line-strong); border-radius: var(--r-small); background: var(--paper); cursor: pointer; }
.range { width: 100%; accent-color: var(--ink); }
.file { font: inherit; }
.tip { color: var(--muted); font-size: .95rem; padding-left: 14px; border-left: 3px solid var(--line); }
.tip--super { border-left-color: var(--volt); color: var(--ink-2); }

/* ------------------------------------------------------------------ wizard */
.wizard { padding-top: 32px; padding-bottom: 72px; }
.wizard__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-bottom: 28px; }
.wizard__title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.stepper { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; }
.stepper__btn { font: inherit; font-size: .95rem; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 7px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; white-space: nowrap; }
.stepper__btn:disabled { color: var(--line-strong); cursor: default; }
.stepper__n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--alu); font-family: var(--display); font-size: .78rem; }
.stepper__btn[aria-current="step"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.stepper__btn[aria-current="step"] .stepper__n { background: var(--signal); color: var(--ink); }

.wizard__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
.wizard__preview { position: sticky; top: 24px; }
@media (max-width: 960px) {
  .wizard__grid { grid-template-columns: 1fr; gap: 24px; }
  /* On phones the preview becomes a compact strip above the form, so the form stays in view. */
  .wizard__preview { position: static; order: -1; }
  .preview { display: grid; grid-template-columns: 112px 1fr; gap: 4px 16px; align-items: start; }
  .preview .sticker--preview { grid-row: span 3; min-height: 112px; padding: 6px; border-width: 2px; border-radius: 10px; box-shadow: 5px 5px 0 var(--signal); }
  .preview .preview__empty { padding: 12px 4px; font-size: .85rem; }
  .preview .scan-status { margin: 0; font-size: .95rem; }
  .preview .warnings { font-size: .88rem; }
  .preview .preview__meta { font-size: .82rem; margin: 0; }
}

.step__title { font-size: 1.45rem; margin-bottom: 18px; }
.step__title:focus { outline: none; }
.step__lede { color: var(--ink-2); }
.step__nav { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.step__nav [data-next] { margin-left: auto; }
.step__nav #start-over { margin-left: auto; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tiles__head { font-size: 1.05rem; margin: 32px 0 12px; }
.tile { font: inherit; text-align: left; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r); padding: 16px 16px 18px; cursor: pointer; display: grid; gap: 6px; align-content: start; }
.tile:hover { border-color: var(--ink); }
.tile[aria-pressed="true"] { border: 2px solid var(--ink); box-shadow: inset 5px 0 0 var(--signal); }
.tile__name { font-weight: 700; font-size: 1.05rem; }
.tile__summary { color: var(--muted); font-size: .93rem; line-height: 1.45; }
.tile--super { background: var(--volt-soft); border-color: #CFC6FD; }
.tile--super:hover { border-color: var(--volt); }
.tile--super[aria-pressed="true"] { border-color: var(--volt); box-shadow: inset 5px 0 0 var(--volt); }

.questions { display: grid; gap: 18px; margin: 8px 0 24px; }
.question { border: 0; padding: 0; margin: 0; }
.question legend { font-weight: 700; margin-bottom: 10px; }
.pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 8px 8px 0; padding: 9px 16px; border: 1.5px solid var(--line-strong); border-radius: 999px; cursor: pointer; }
.pill input { accent-color: var(--ink); margin: 0; }
.pill:has(input:checked) { border-color: var(--ink); background: var(--alu); }
.pill:has(input:focus-visible) { outline: 3px solid var(--signal-deep); outline-offset: 2px; }

.group { border-top: 1px solid var(--line); }
.group:last-of-type { border-bottom: 1px solid var(--line); }
.group__head { list-style: none; cursor: pointer; font-family: var(--display); font-weight: 500; font-size: 1.05rem; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; }
.group__head::-webkit-details-marker { display: none; }
.group__head::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); margin-right: 6px; }
.group[open] > .group__head::after { transform: rotate(-135deg); }
.group__body { padding: 2px 0 20px; }

.chips { border: 0; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { margin-bottom: 8px; padding: 0; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: var(--r-small); cursor: pointer; font-size: .95rem; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip svg { width: 20px; height: 20px; fill: var(--ink); }
.chip:hover { border-color: var(--ink); }
.chip:has(input:checked) { border: 2px solid var(--ink); background: var(--alu); padding: 7.5px 11.5px; }
.chip:has(input:focus-visible) { outline: 3px solid var(--signal-deep); outline-offset: 2px; }

.downloads { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 10px; }
.download-help { color: var(--muted); font-size: .95rem; }

/* Preview panel */
.preview__empty { color: var(--muted); text-align: center; padding: 40px 16px; margin: 0; }
.scan-status { margin: 22px 0 8px; font-weight: 700; display: flex; gap: 8px; align-items: baseline; }
.scan-status:empty { display: none; }
.scan-status--ok { color: var(--ok); }
.scan-status--ok::before { content: "✓"; }
.scan-status--bad { color: var(--bad); }
.scan-status--bad::before { content: "!"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--bad); color: #fff; font-size: .8rem; }
.scan-status--wait { color: var(--muted); font-weight: 400; }
.warnings { margin: 0 0 8px; padding-left: 18px; color: var(--ink-2); font-size: .95rem; }
.warnings li { margin-bottom: 4px; }
.preview__meta { color: var(--muted); font-size: .88rem; }

/* Supercharged suggestion */
.super-card { background: var(--volt-soft); border: 1.5px solid #CFC6FD; border-left: 5px solid var(--volt); border-radius: var(--r); padding: 20px 22px; margin: 18px 0; }
.super-card__kicker { margin-bottom: 8px; }
.super-card__title { font-size: 1.15rem; margin-bottom: 8px; }
.super-card__actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 14px 0 10px; }
.super-card__small { color: var(--muted); font-size: .92rem; margin: 0; }

/* Dialogs */
.dialog { max-width: 480px; width: calc(100% - 32px); border: 2.5px solid var(--ink); border-radius: 14px; padding: 28px; box-shadow: 10px 10px 0 var(--signal); color: var(--ink); }
.dialog::backdrop { background: rgba(20, 33, 61, .55); }
.dialog__title { font-size: 1.3rem; }
.dialog__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.dialog__close { position: absolute; top: 12px; right: 14px; font: inherit; font-size: .9rem; background: none; border: 0; text-decoration: underline; cursor: pointer; color: var(--ink); }

/* ------------------------------------------------------------------ pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 28px; margin-bottom: 64px; }
.plan { border: 1.5px solid var(--ink); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; }
.plan--super { box-shadow: 10px 10px 0 var(--volt); }
.plan__name { margin-bottom: 18px; }
.plan__price { margin-bottom: 6px; }
.plan__amount { font-family: var(--display); font-weight: 700; font-size: 2.6rem; letter-spacing: -0.03em; }
.plan__desc { color: var(--ink-2); }
.plan__list { padding-left: 20px; margin: 0 0 24px; flex: 1; }
.plan__list li { margin-bottom: 8px; }
.plan__soon { font-weight: 700; color: var(--volt-deep); }
.faq { max-width: 720px; margin-bottom: 72px; }
.faq h3 { font-family: var(--text); font-weight: 700; font-size: 1.1rem; margin-top: 24px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* Feature pages */
.feature__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; padding-bottom: 72px; }
.tips { padding-left: 20px; }
.tips li { margin-bottom: 10px; }
@media (max-width: 860px) { .feature__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ auth */
.auth { padding: 56px 20px 80px; display: grid; place-items: start center; }
.auth__card { width: 100%; max-width: 460px; }
.auth__title { font-size: 2rem; }
.auth__lede { color: var(--ink-2); }
.auth__switch { margin-top: 16px; }

/* ------------------------------------------------------------------ app (signed-in) */
.app { padding-top: 36px; padding-bottom: 80px; }
.app--narrow { max-width: 760px; }
.app__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.app__title { font-size: 2rem; margin: 0; }
.welcome { border: 1.5px solid var(--ink); border-radius: 14px; padding: 24px; margin-bottom: 28px; box-shadow: 8px 8px 0 var(--signal); }
.welcome__title { font-size: 1.3rem; }
.welcome__super { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; }
.welcome__super p { margin: 0; flex: 1; min-width: 240px; }
.import { background: var(--alu-soft); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 24px; }
.import__actions { display: flex; gap: 16px; align-items: center; }
.empty { text-align: left; padding: 40px 0; border-top: 1px solid var(--line); }
.empty__title { font-size: 1.3rem; }
.library { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.library__item { display: grid; grid-template-columns: 112px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.library__thumb { width: 112px; height: 112px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper); }
.library__name { font-family: var(--text); font-weight: 700; font-size: 1.15rem; margin-bottom: 2px; }
.library__meta { color: var(--muted); margin-bottom: 6px; }
.library__kind { font-size: .95rem; margin-bottom: 10px; }
.library__kind .kind { margin-right: 6px; }
.library__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 520px) { .library__item { grid-template-columns: 80px 1fr; } .library__thumb { width: 80px; height: 80px; } }

.panel { border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; margin-bottom: 18px; }
.panel__title { font-size: 1.15rem; }
.panel__note { color: var(--muted); }
.panel--danger { border-color: #F0B8B2; }
.panel--ok { border-color: #B5DCC5; background: var(--ok-soft); }
.codes { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-small); padding: 14px 18px; columns: 2; font-size: 1rem; line-height: 1.8; }
.setup { padding-left: 20px; }
.setup li { margin-bottom: 20px; }
.setup__qr { display: block; width: 200px; height: 200px; margin: 12px 0; border: 1.5px solid var(--line); border-radius: 8px; }
.setup__key { display: block; color: var(--muted); font-size: .95rem; }
.setup__key code { color: var(--ink); background: var(--alu); padding: 2px 6px; border-radius: 4px; word-break: break-all; }

/* ------------------------------------------------------------------ prose (legal, errors) */
.prose { max-width: 720px; padding-top: 48px; padding-bottom: 80px; }
.prose h1 { font-size: 2.2rem; }
.prose h2 { font-size: 1.25rem; margin-top: 32px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.error-page .btn { margin-right: 8px; }

/* ------------------------------------------------------------------ footer */
.footer { background: var(--ink); color: #DCE2EA; padding: 48px 0 56px; }
.footer a { color: #fff; text-decoration: none; display: block; padding: 4px 0; }
.footer a:hover { color: var(--signal); text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer__head { font-family: var(--text); font-weight: 700; font-size: .95rem; color: #9FB0C6; margin-bottom: 8px; }
.footer__note { color: #B8C4D3; max-width: 32ch; margin-top: 12px; }
.footer .brand--footer { color: #fff; display: inline-flex; padding: 0; }
.footer .brand--footer:hover { color: #fff; text-decoration: none; }
.brand--footer .mark__spark { fill: var(--signal); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > div:first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
