/* Serve Scan: one narrow column that reads like a coach's report card. VIKSTENNIS colours and type. */
:root {
  --bg: #FBF8F5; --surface: #FFFFFF; --ink: #211A16; --muted: #6B5E55; --line: #E8DDD4; --soft: #F3ECE6;
  --clay: #C1652F; --clay-ink: #A3501F; --teal: #16786A; --peach: #FFB997; --peach-soft: #FFEDE3;
  --good: #16786A; --warn: #9A6400; --bad: #B3412E; --good-bg: #E3F2EF; --warn-bg: #FBF0DA; --bad-bg: #F8E4DF;
  --on-accent: #FFFFFF;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17120F; --surface: #221B17; --ink: #F3ECE6; --muted: #B9AA9F; --line: #3A2F28; --soft: #2B221D;
    --clay: #E0844E; --clay-ink: #F0A577; --teal: #4FB8A6; --peach: #FFB997; --peach-soft: #3A2A21;
    --good: #5CC4B1; --warn: #E7B44F; --bad: #F08A73; --good-bg: #183330; --warn-bg: #3A2E15; --bad-bg: #3D211B;
    --on-accent: #17120F;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; padding-inline: 16px; padding-block: 28px 64px; }
.wrap { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 6vw, 3.2rem); line-height: 1.04; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 1.6rem; font-weight: 700; line-height: 1.15; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--teal); }
.eyebrow { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); }
.small { font-size: 0.875rem; }
.muted { color: var(--muted); }
.error { color: var(--bad); min-height: 1.2em; }
.ok { color: var(--good); font-weight: 600; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.top { display: flex; flex-direction: column; gap: 12px; }
.lede { font-size: 1.125rem; max-width: 60ch; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.tips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.tips li { display: flex; gap: 10px; align-items: flex-start; min-width: 0; font-size: 0.95rem; }
.tips b { font-family: var(--display); font-size: 1.4rem; line-height: 1; color: var(--clay); font-weight: 700; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 3px; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label { padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: 0.95rem; min-height: 40px; display: inline-flex; align-items: center; }
.seg input:checked + label { background: var(--ink); color: var(--bg); }
.seg input:focus-visible + label { outline: 2px solid var(--clay); outline-offset: 2px; }
.drop { position: relative; border: 2px dashed var(--line); border-radius: 14px; padding: 28px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; cursor: pointer; background: var(--peach-soft); }
.drop:hover, .drop.drag { border-color: var(--clay); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop:focus-within { outline: 2px solid var(--clay); outline-offset: 3px; }
.drop .big { font-family: var(--display); font-size: 1.35rem; font-weight: 600; }
.status { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.status.ok { color: var(--good); font-weight: 400; }
.status.err { color: var(--bad); }
.progress { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--clay); transition: width .2s; }
.live { width: 100%; max-width: 360px; border-radius: 12px; align-self: center; background: #000; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 0.9rem; font-weight: 500; }
input[type="text"], input[type="email"], textarea, input[type="file"] { font: inherit; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); min-height: 46px; width: 100%; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--clay); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--clay); flex-shrink: 0; }
form.gate { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; align-items: end; }
.btn { font: inherit; font-weight: 600; border: 0; border-radius: 999px; padding: 12px 22px; min-height: 46px; background: var(--clay); color: var(--on-accent); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:hover { filter: brightness(0.93); }
.btn:disabled { opacity: 0.55; cursor: wait; }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.sm { padding: 8px 14px; min-height: 40px; font-size: 0.9rem; }
.btn.light { background: var(--peach); color: #211A16; }
.icon-btn { font: inherit; font-size: 1.6rem; line-height: 1; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }

.report { display: flex; flex-direction: column; gap: 26px; }
.report-tag { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.ring { position: relative; width: 132px; height: 132px; flex-shrink: 0; }
.ring svg { width: 132px; height: 132px; transform: rotate(-90deg); }
.ring .num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .num b { font-family: var(--display); font-size: 2.6rem; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.ring .num span { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.head-text { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.frames { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.frames figure { margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.frames img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.frames figcaption { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.checks li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.checks .name { font-weight: 600; }
.checks .what { grid-column: 1 / -1; font-size: 0.95rem; color: var(--muted); }
.checks .val { grid-column: 1 / -1; font-family: var(--mono); font-size: 0.8rem; }
.chip { font-family: var(--mono); font-size: 0.75rem; padding: 3px 10px; border-radius: 999px; white-space: nowrap; align-self: start; font-variant-numeric: tabular-nums; }
.chip.good { background: var(--good-bg); color: var(--good); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.none { background: var(--soft); color: var(--muted); }
.coach { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.coach div { border: 1px dashed var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.coach b { font-weight: 600; }
.coach span { font-size: 0.9rem; color: var(--muted); }
.eye { border: 2px solid var(--clay); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; background: var(--peach-soft); }
.eye .price { font-family: var(--mono); }
.offer { border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; background: var(--ink); color: var(--bg); }
.offer h3 { color: var(--bg); font-size: 1.5rem; }
.offer .why { color: var(--peach); font-size: 0.95rem; }
.offer .price { font-family: var(--mono); font-size: 0.9rem; }
.offer .btn { align-self: flex-start; }
.offer .eyebrow { color: var(--peach); }
.ladder-h { font-size: 1.1rem; margin-top: 6px; }
.ladder { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.mini { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mini .t { font-weight: 600; }
.mini .p { font-family: var(--mono); font-size: 0.85rem; color: var(--clay-ink); }
.mini .d { font-size: 0.9rem; color: var(--muted); flex: 1; }
.mini .btn { align-self: flex-start; margin-top: 6px; }
.offers { display: flex; flex-direction: column; gap: 12px; }

dialog.sheet { border: 0; padding: 0; border-radius: 18px; width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,0.35); }
dialog.sheet::backdrop { background: rgba(23, 18, 15, 0.55); }
.sheet-in { padding: 20px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.sheet-in .price { font-family: var(--mono); font-size: 0.9rem; color: var(--clay-ink); }
#o-pay { min-height: 60px; }
@media (max-width: 520px) { .frames { gap: 8px; } .panel { padding: 18px; } dialog.sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 18px 18px 0 0; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
