/* CurbPeek styles. Brand colors: change these variables to rebrand. */
[hidden]{display:none!important}
:root{
  --brand:#0f766e; --brand-ink:#ffffff; --brand-dark:#115e59; --accent:#fbbf24;
  --ink:#0f172a; --muted:#475569; --line:#cbd5e1; --bg:#f8fafc; --card:#ffffff;
  --ok:#15803d; --warn:#b45309; --err:#b91c1c;
  --radius:14px; --font: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font:16px/1.5 var(--font);color:var(--ink);background:var(--bg);min-height:100vh;display:flex;flex-direction:column}
main{flex:1;width:100%;max-width:680px;margin:0 auto;padding:16px 16px 32px;outline:none}
h1{font-size:1.65rem;line-height:1.2;margin:.5rem 0 1rem}
h2{font-size:1.4rem;line-height:1.25;margin:.25rem 0 .75rem}
h3{font-size:1.1rem;margin:1.25rem 0 .5rem}
a{color:var(--brand-dark)}
.skip{position:absolute;left:-999px;top:0;background:#000;color:#fff;padding:8px 12px;z-index:10}
.skip:focus{left:8px}
.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.topbar{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:#fff;color:var(--ink);border-bottom:1px solid #e2e8f0;position:sticky;top:0;z-index:5}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:1.15rem;letter-spacing:.2px}
.brand-logo{display:block;height:30px;width:auto}
.brand-mark{width:30px;height:30px;flex:none;background:url("icons/mark.png") center/contain no-repeat}   /* CurbPeek mark (brand/make_icons.py) */
.mode-pill{background:var(--accent);color:#000;font-size:.75rem;font-weight:700;padding:3px 10px;border-radius:999px}
.progress{max-width:680px;margin:0 auto;width:100%;padding:12px 16px 0}
.progress-bar{height:10px;background:#e2e8f0;border-radius:999px;overflow:hidden}
.progress-bar span{display:block;height:100%;width:0;background:var(--brand);transition:width .3s}
.progress-label{margin:.35rem 0 0;font-size:.85rem;color:var(--muted)}
.lead{font-size:1.1rem}
.checks{padding-left:0;list-style:none}
.checks li{padding-left:28px;position:relative;margin:.4rem 0}
.checks li::before{content:"✓";position:absolute;left:4px;color:var(--ok);font-weight:900}
.callout{background:#ecfeff;border:1px solid #a5f3fc;border-radius:var(--radius);padding:12px 14px;margin:1rem 0}
.callout.warn{background:#fffbeb;border-color:#fcd34d}
.fine{font-size:.85rem;color:var(--muted)}
.btn{appearance:none;border:2px solid transparent;border-radius:12px;padding:12px 18px;font:inherit;font-weight:700;cursor:pointer;min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none}
.btn.primary{background:var(--brand);color:var(--brand-ink)}
.btn.primary:hover{background:var(--brand-dark)}
.btn.secondary{background:#fff;border-color:var(--brand);color:var(--brand-dark)}
.btn.ghost{background:transparent;border-color:var(--line);color:var(--ink)}
.btn.link{background:none;border:none;color:var(--brand-dark);text-decoration:underline;padding:8px 0;min-height:44px;font-weight:600}
.btn.big{width:100%;font-size:1.1rem;padding:16px}
.btn[disabled]{opacity:.55;cursor:not-allowed}
.btn:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,.file-btn:focus-within{outline:3px solid var(--accent);outline-offset:2px}
.file-btn{position:relative}
.row{display:flex;flex-wrap:wrap;gap:10px;margin:.5rem 0}
.nav{display:flex;justify-content:space-between;gap:12px;margin-top:1.5rem;position:sticky;bottom:0;background:linear-gradient(transparent,var(--bg) 30%);padding:16px 0 calc(8px + env(safe-area-inset-bottom))}
.nav .btn{flex:1}
.field{margin:.85rem 0;border:0;padding:0}
.field label,legend{display:block;font-weight:700;margin-bottom:.3rem}
input[type=text],input:not([type]),input[type=tel],input[type=email],select,textarea{width:100%;font:inherit;font-size:16px;padding:12px;border:2px solid var(--line);border-radius:10px;background:#fff;color:var(--ink)}
textarea{min-height:80px}
input[aria-invalid=true]{border-color:var(--err)}
.help{font-size:.85rem;color:var(--muted);margin:.3rem 0 0}
.msg{min-height:1.2em;margin:.35rem 0 0;font-size:.92rem}
.msg.err{color:var(--err)} .msg.ok{color:var(--ok)} .msg.warn{color:var(--warn)}
.grid2{display:grid;grid-template-columns:1fr;gap:0 12px}
@media (min-width:520px){.grid2{grid-template-columns:1fr 1fr}}
.check,.radio{display:flex;gap:10px;align-items:flex-start;margin:.5rem 0;font-weight:500}
.check input,.radio input{width:22px;height:22px;margin-top:1px;flex:none;accent-color:var(--brand)}
.decoded{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:4px 14px 10px;margin:1rem 0}
.count{font-weight:700}
.shots{display:grid;gap:14px}
.shot{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:12px;display:grid;grid-template-columns:110px 1fr;gap:12px;align-items:start}
.shot.done{border-color:#86efac;background:#f0fdf4}
.shot .guide{width:110px;height:80px;border-radius:10px;background:#0f172a;display:flex;align-items:center;justify-content:center;overflow:hidden}
.shot .guide svg{width:100%;height:100%}
.shot .guide img{width:100%;height:100%;object-fit:cover}
.shot h3{margin:0;font-size:1rem}
.shot p{margin:.2rem 0 .5rem;font-size:.88rem;color:var(--muted)}
.badge{display:inline-block;font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.4px;padding:2px 7px;border-radius:999px;background:#e2e8f0;color:#334155;margin-left:6px;vertical-align:middle}
.badge.req{background:#fee2e2;color:#991b1b}
.badge.ok{background:#dcfce7;color:#166534}
.shot .actions{display:flex;flex-wrap:wrap;gap:8px}
.shot .actions .btn{min-height:44px;padding:8px 12px;font-size:.92rem}
.shot .warnline{color:var(--warn);font-size:.85rem;margin:.3rem 0 0}
.mini-preview img{max-width:160px;border-radius:10px;margin-top:8px}
video{width:100%;max-height:340px;border-radius:12px;background:#000;margin-top:12px}
.q{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:10px 14px;margin:12px 0}
.q legend{font-weight:700;padding:0;margin-bottom:.2rem;float:left;width:100%}
.q .opts{clear:both;display:flex;flex-wrap:wrap;gap:8px}
.q .opts label{display:inline-flex;align-items:center;gap:6px;border:2px solid var(--line);border-radius:999px;padding:8px 14px;cursor:pointer;min-height:44px;font-weight:600}
.q .opts input{accent-color:var(--brand);width:18px;height:18px}
.q .opts label:has(input:checked){border-color:var(--brand);background:#f0fdfa}
.q .follow{margin-top:8px}
.consent{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:8px 14px;margin:1rem 0}
.consent .check span{font-size:.92rem}
.summary{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:4px 14px;margin:12px 0}
.summary dl{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;margin:10px 0}
.summary dt{font-weight:700;color:var(--muted)} .summary dd{margin:0}
.summary h3{display:flex;justify-content:space-between;align-items:center}
.thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(70px,1fr));gap:6px;margin:8px 0 12px}
.thumbs img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px;background:#e2e8f0}
.ref{font-size:1.15rem}
.upload{margin:1rem 0}
.footer{background:#e2e8f0;color:#334155;font-size:.85rem;text-align:center;padding:16px}
.footer p{margin:.3rem auto;max-width:640px}
.legal{max-width:760px} .legal h2{margin-top:1.5rem}
.draft-banner{background:#fef3c7;border:2px dashed #b45309;padding:10px 14px;border-radius:10px;font-weight:700}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
.q.invalid{border-color:var(--err);border-width:2px}
.brand-link{color:var(--ink);text-decoration:none}
/* keep header + progress visible while scrolling long steps */
.topbar{height:52px}
.progress{position:sticky;top:52px;z-index:4;background:var(--bg);padding-bottom:8px;box-shadow:0 6px 8px -8px rgba(15,23,42,.25)}
.shot,.q,.summary,.field{scroll-margin-top:120px}
/* ---- v2 lead-first additions ---- */
.opt{font-weight:500;color:var(--muted);font-size:.9em}
.sub{color:var(--muted);margin:-.4rem 0 .6rem;font-weight:600}
.hp{position:absolute!important;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}
.seg{display:flex;gap:8px;flex-wrap:wrap}
.seg .radio{border:2px solid var(--line);border-radius:999px;padding:8px 16px;margin:0;min-height:44px;align-items:center;font-weight:600;cursor:pointer}
.seg .radio:has(input:checked){border-color:var(--brand);background:#f0fdfa}
.seg .radio input{width:18px;height:18px;margin:0}
.success-mark{width:56px;height:56px;border-radius:50%;background:var(--ok);color:#fff;font-size:32px;font-weight:900;display:flex;align-items:center;justify-content:center;margin:12px 0 4px}
[data-step="captured"] .btn.big,[data-step="later"] .btn.big{margin:.4rem 0}
.resume-box{background:var(--card);border:1px dashed var(--brand);border-radius:var(--radius);padding:8px 14px;margin:1rem 0}
.resume-box p{margin:.4rem 0}
.resume-url{word-break:break-all;font-size:.85rem}
.resume-box .row .btn{min-height:44px;padding:8px 14px}
details.more{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:4px 14px;margin:14px 0}
details.more summary{cursor:pointer;font-weight:700;min-height:44px;display:flex;align-items:center}
details.more .shots{margin:8px 0 12px}

/* personal link from the dealer */
.dealer-note{margin:0 0 1rem;background:#f0fdfa;border-left:4px solid var(--brand);border-radius:10px;padding:10px 14px}
.dealer-note blockquote{margin:0;white-space:pre-wrap;font-size:1.05rem}
.dealer-note figcaption{margin-top:4px;color:var(--muted);font-weight:700}
