[hidden] { display: none !important; }
:root {
  --ink: #12161c;
  --ink-2: #3b4350;
  --muted: #6b7380;
  --line: #e4e6ea;
  --bg: #fafaf7;
  --card: #ffffff;
  --jiffy: #ffc21a;
  --jiffy-deep: #e8a800;
  --go: #12a150;
  --stop: #d93a3a;
  --sky: #2f6fed;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(18, 22, 28, .06), 0 8px 24px rgba(18, 22, 28, .06);
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }

/* ---------- shared bits ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 14px 22px;
  font: 600 16px/1 var(--body); cursor: pointer; white-space: nowrap; text-decoration: none; transition: transform .08s ease, background .15s ease; min-height: 48px; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--jiffy); color: var(--ink); }
.btn-primary:hover { background: var(--jiffy-deep); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-go { background: var(--go); color: #fff; }
.btn-stop { background: var(--stop); color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.logo { display: inline-flex; align-items: center; gap: 8px; font: 800 22px/1 var(--display); text-decoration: none; color: var(--ink); }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--jiffy); display: grid; place-items: center; }
.logo-mark svg { width: 25px; height: 25px; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: #f0f1f3; color: var(--ink-2); }
.pill-go { background: #e3f6ec; color: #0b7a3c; }
.pill-wait { background: #fff4d1; color: #8a6500; }
.pill-stop { background: #fde7e7; color: #a32222; }

/* ---------- landing ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.nav-links { display: flex; gap: 10px; align-items: center; }
.nav-links a.text { text-decoration: none; font-weight: 600; color: var(--ink-2); padding: 8px 10px; }
.hero { background: var(--ink); color: #fff; overflow: hidden; }
.hero .nav .logo { color: #fff; }
.hero .nav-links a.text { color: #d6d9de; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 48px 0 72px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); }
.hero h1 em { font-style: normal; color: var(--jiffy); }
.hero p.lead { font-size: 19px; color: #c9cdd3; max-width: 540px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero .btn-ghost { color: #fff; border-color: #3a414c; }
.promise { display: flex; gap: 22px; margin-top: 28px; flex-wrap: wrap; color: #c9cdd3; font-size: 15px; }
.promise b { color: #fff; }
.phone { background: #1d232c; border: 1px solid #2c333e; border-radius: 34px; padding: 18px; max-width: 330px; margin-left: auto; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.phone-screen { background: #fff; color: var(--ink); border-radius: 22px; overflow: hidden; }
.phone-map { height: 190px; background:
  linear-gradient(90deg, rgba(18,22,28,.05) 1px, transparent 1px) 0 0 / 28px 28px,
  linear-gradient(rgba(18,22,28,.05) 1px, transparent 1px) 0 0 / 28px 28px, #eef1ec; position: relative; }
.phone-map .route { position: absolute; left: 22%; top: 30%; width: 52%; height: 44%; border: 3px dashed var(--sky); border-left: 0; border-bottom: 0; border-radius: 0 40px 0 0; }
.phone-map .dot { position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.phone-map .dot.tech { background: var(--sky); left: 19%; top: 68%; }
.phone-map .dot.home { background: var(--jiffy); right: 22%; top: 25%; }
.phone-body { padding: 16px; }
.phone-body .eta { font: 800 30px/1 var(--display); }
.phone-body .row { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--jiffy); display: grid; place-items: center; font-weight: 800; flex: none; }

section { padding: 72px 0; }
.kicker { font-weight: 700; color: var(--jiffy-deep); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step .n { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--jiffy); display: grid; place-items: center; font-weight: 800; margin-bottom: 14px; }
.step p { color: var(--ink-2); margin: 0; }
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1080px; }
.price { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.price.featured { border: 2px solid var(--ink); }
.price .amount { font: 800 52px/1 var(--display); margin: 10px 0 6px; }
.price ul { padding-left: 18px; color: var(--ink-2); margin: 16px 0 0; }
.price li { margin: 6px 0; }
.fine { color: var(--muted); font-size: 14px; max-width: 760px; margin-top: 20px; }
.band { background: var(--jiffy); }
.band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.band ul { margin: 0; padding-left: 18px; }
.band li { margin: 8px 0; font-weight: 500; }
.areas { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.areas span { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-weight: 600; }
.zip-check { display: flex; gap: 10px; max-width: 420px; flex-wrap: wrap; }
.zip-check input { flex: 1; min-width: 160px; }
.zip-result { margin-top: 10px; font-weight: 600; min-height: 24px; }
footer { padding: 36px 0 50px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- forms ---------- */
label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }
input, select, textarea { width: 100%; font: 16px/1.4 var(--body); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); }
textarea { min-height: 96px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14px; color: var(--ink-2); }
.check input { width: auto; margin-top: 3px; }
.error { background: #fde7e7; color: #8f1d1d; padding: 10px 12px; border-radius: 10px; font-size: 14px; margin: 12px 0; }
.notice { background: #fff4d1; color: #6b4e00; padding: 10px 12px; border-radius: 10px; font-size: 14px; margin: 12px 0; }
.ok { background: #e3f6ec; color: #0b6131; padding: 10px 12px; border-radius: 10px; font-size: 14px; margin: 12px 0; }

/* ---------- app shell ---------- */
.app-top { position: sticky; top: 0; z-index: 500; background: rgba(250,250,247,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.app-top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; max-width: 640px; }
.app-main { max-width: 640px; margin: 0 auto; padding: 20px 16px 80px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card h2 { font-size: 24px; }
.card h3 { font-size: 18px; margin-bottom: 4px; }
.sub { color: var(--muted); font-size: 14px; margin: 0; }
.tabs { display: flex; background: #eceee9; border-radius: 999px; padding: 4px; margin-bottom: 16px; }
.tabs button { flex: 1; border: 0; background: transparent; padding: 10px; border-radius: 999px; font: 600 15px var(--body); cursor: pointer; color: var(--ink-2); }
.tabs button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.tier-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tier-pick label { margin: 0; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; font-weight: 500; position: relative; }
.tier-pick input { position: absolute; opacity: 0; }
.tier-pick label.on { border: 2px solid var(--ink); background: #fffbea; }
.tier-pick b { display: block; font-size: 16px; }
.tier-pick .amt { font: 800 26px/1.2 var(--display); }
.tier-pick .tag { position: absolute; top: -10px; right: 10px; background: var(--jiffy); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 14px; font: 500 14px var(--body); cursor: pointer; }
.chips button.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.map { height: 260px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); margin: 12px 0; background: #eef1ec; }
.big-eta { font: 800 44px/1 var(--display); }
.statusline { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; margin-top: 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }
.actions { display: grid; gap: 10px; margin-top: 16px; }
.actions .btn { white-space: normal; text-align: center; line-height: 1.25; }
.stars { display: flex; gap: 6px; }
.stars button { font-size: 34px; background: none; border: 0; cursor: pointer; color: #d4d6da; padding: 0; line-height: 1; }
.stars button.on { color: var(--jiffy); }

/* tech */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.toggle { position: relative; width: 64px; height: 36px; border-radius: 999px; background: #d4d6da; border: 0; cursor: pointer; transition: background .2s; flex: none; }
.toggle::after { content: ""; position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.toggle.on { background: var(--go); }
.toggle.on::after { transform: translateX(28px); }
.req { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; background: #fff; animation: pop .25s ease; }
.req .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.req .pay { font: 800 28px/1 var(--display); color: var(--go); }
.req p { margin: 8px 0; color: var(--ink-2); }
.req .meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; }
@keyframes pop { from { transform: scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { background: #f4f5f2; border-radius: 12px; padding: 14px; }
.stat b { display: block; font: 800 26px/1.1 var(--display); }
.empty { text-align: center; color: var(--muted); padding: 26px 10px; }
.pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--go); display: inline-block; box-shadow: 0 0 0 0 rgba(18,161,80,.5); animation: pulse 1.6s infinite; vertical-align: middle; margin-right: 6px; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(18,161,80,0); } 100% { box-shadow: 0 0 0 0 rgba(18,161,80,0); } }

/* admin */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.scroll-x { overflow-x: auto; }

@media (max-width: 820px) {
  .hero-grid, .band-grid { grid-template-columns: 1fr; }
  .phone { margin: 10px auto 0; }
  .steps, .prices { grid-template-columns: 1fr; }
  .nav-links a.text.hide-sm { display: none; }
  section { padding: 52px 0; }
}
@media (max-width: 420px) {
  .tier-pick { grid-template-columns: 1fr; }
}

/* Tech phone setup checklist */
.psteps { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.pstep { display: flex; align-items: center; gap: 10px; color: var(--muted, #6b7280); }
.pstep .pn { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: #eef0f3; flex: none; }
.pstep.now { color: inherit; font-weight: 600; }
.pstep.now .pn { background: #12161c; color: #fff; }
.pstep.done .pn { background: #1f9d55; color: #fff; }
.toggle[disabled] { opacity: .4; cursor: not-allowed; }

/* Keep the app header on one line on phones */
.nav-links a.text { white-space: nowrap; }
@media (max-width: 480px) {
  .nav-links { gap: 2px; }
  .nav-links a.text { padding: 8px 6px; font-size: 15px; }
  .logo { font-size: 20px; }
}

/* Onboarding, help, assessment */
.agreement { max-height: 340px; overflow: auto; border: 1px solid var(--line, #e3e6ea); border-radius: 10px; padding: 12px 14px; background: #fafbfc; font-size: 14px; margin: 10px 0; }
.agreement ol { padding-left: 18px; } .agreement li { margin: 6px 0; }
.docrow { border-top: 1px solid var(--line, #e3e6ea); padding: 12px 0; display: grid; gap: 8px; }
.docrow form { display: grid; gap: 6px; }
.bubble { border-radius: 12px; padding: 10px 12px; margin: 8px 0; background: #f1f3f5; }
.bubble.me { background: #fff7dc; margin-left: 24px; } .bubble.them { margin-right: 24px; }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 12px; }
.assess { border-top: 1px solid var(--line, #e3e6ea); margin-top: 14px; padding-top: 10px; }
.gethelp { margin-top: 10px; border-top: 1px dashed var(--line, #ddd); padding-top: 8px; font-size: 15px; }
.gethelp summary { cursor: pointer; font-weight: 600; color: var(--accent, #0b5cff); }
.gethelp ul { margin: 6px 0 6px 18px; }
.assist-log { max-height: 420px; overflow-y: auto; margin: 10px 0; }
.assist-log code { background: rgba(0,0,0,.06); padding: 1px 4px; border-radius: 4px; font-size: 14px; }
.assist-img { max-width: 220px; max-height: 220px; border-radius: 8px; margin-top: 4px; }
.topleft { display: flex; align-items: center; gap: 4px; }
.backbtn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: -8px; border: 0; background: transparent; color: var(--ink); border-radius: 10px; cursor: pointer; }
.backbtn:hover { background: rgba(0,0,0,.05); }
.backbtn[hidden] { display: none; }
/* With the back arrow showing, keep the header on one line on small phones */
@media (max-width: 420px) {
  .app-top .logo { font-size: 19px; gap: 6px; }
  .app-top .nav-links a.text { padding: 8px 6px; font-size: 14px; }
}
@media (max-width: 440px) {
  .topleft:has(.backbtn:not([hidden])) .logo { font-size: 0; gap: 0; }
}
.freedom { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: #fff7dc; border: 1px solid #ffd766; }
.freedom ul { margin: 6px 0 0 18px; padding: 0; }
.freedom li { margin: 4px 0; }
.sharebox { margin-top: 16px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: #f7f8fa; }
.sharebox video { width: 100%; margin-top: 10px; border-radius: 8px; background: #000; max-height: 70vh; }
.techphoto { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: 0 0 64px; border: 2px solid var(--jiffy); }
.scopebox { margin: 12px 0; padding: 14px 16px; border-left: 4px solid var(--jiffy); background: #fffaea; border-radius: 8px; font-size: 17px; font-weight: 600; }
/* Terms & Privacy pages */
.legal-top { border-bottom: 1px solid var(--line); background: #fff; }
.legal-top .wrap { padding-top: 16px; padding-bottom: 16px; }
.legal { max-width: 760px; padding-top: 28px; padding-bottom: 60px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); margin: 6px 0 12px; }
.legal h2 { font-size: 22px; margin: 32px 0 8px; scroll-margin-top: 16px; }
.legal h3 { font-size: 17px; margin: 18px 0 4px; }
.legal p, .legal li { font-size: 16px; line-height: 1.6; }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal .updated { color: var(--muted); font-size: 14px; margin: 0; }
.legal .lead-in { font-size: 17px; }
.legal .toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 18px; margin: 18px 0; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.legal .toc a { color: var(--ink); text-decoration: none; font-size: 15px; }
.legal .toc a:hover { text-decoration: underline; }
.legal .back { margin-top: 36px; }
/* Upload rows: camera first */
.capture { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 8px 0; }
.capture .fileLink { font-size: 14px; color: var(--muted); }
.camPreview { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.camPreview img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
/* Live camera */
.cam { position: fixed; inset: 0; z-index: 1000; background: #000; color: #fff; display: flex; flex-direction: column; }
.cam-top { display: flex; align-items: center; gap: 12px; padding: 14px 16px; font-size: 15px; }
.cam-x { background: rgba(255,255,255,.15); color: #fff; border: 0; width: 40px; height: 40px; border-radius: 50%; font-size: 18px; cursor: pointer; flex: 0 0 40px; }
.cam-stage { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cam-stage video, .cam-shot { max-width: 100%; max-height: 100%; }
.cam-stage video.mirror { transform: scaleX(-1); }
.cam-guide { position: absolute; pointer-events: none; border: 3px solid rgba(255,194,26,.9); box-shadow: 0 0 0 9999px rgba(0,0,0,.35); }
.cam-guide.face { width: min(60vw, 300px); height: min(78vw, 390px); border-radius: 50%; }
.cam-guide.doc { width: min(86vw, 640px); height: min(56vw, 400px); border-radius: 14px; }
.cam-shot ~ .cam-guide, .cam-stage:has(.cam-shot:not([hidden])) .cam-guide { display: none; }
.cam-bar { display: flex; align-items: center; justify-content: space-around; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); gap: 12px; }
.cam-bar[hidden] { display: none; }
.cam-snap { width: 74px; height: 74px; border-radius: 50%; border: 5px solid #fff; background: var(--jiffy); cursor: pointer; }
.cam-flip { background: rgba(255,255,255,.15); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 24px; cursor: pointer; }
.cam-spacer { width: 52px; }
.cam .review .btn { min-width: 140px; }
.cam .review .btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }

/* skills check */
.quiztimer { position: sticky; top: 66px; z-index: 5; background: var(--ink, #12161c); color: #fff; font-weight: 700; padding: 8px 12px; border-radius: 10px; text-align: center; }
.quiztimer.low { background: #b42318; }
.quizq { border: 0; padding: 0; margin: 16px 0; display: block; }
.quizq legend { padding: 0; margin-bottom: 6px; }
.quizq textarea { width: 100%; margin-top: 6px; }
.quizopt { font-weight: 500; display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line, #e3e6ea); border-radius: 10px; margin: 6px 0; cursor: pointer; }
.quizopt input { width: auto; margin-top: 3px; }
.quizopt:has(input:checked) { border-color: var(--brand, #ffc21a); background: #fff8e1; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #12161c; color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 1000; font-size: 14px; max-width: 90vw; }
