/* The shell /scan and /roast share (and /full-check): the tokens, the header with the logo and step counter, the
   two-column desktop layout with the dotted panel, type, fields, buttons, the numbered steps under the first button
   (phones) and the numbered cards in the panel (desktop). Colours are geophii.com's own (assets/site.css), as
   --geo-site- tokens for both themes. Phone first; the panel joins at 960px. Page-only styles stay in scan-page.css,
   full-check.css and the roast's own. */
:root {
  --geo-site-bg: #f2f6f8; --geo-site-panel: #ffffff; --geo-site-ink: #182636; --geo-site-muted: #5b6878; --geo-site-line: #dce5e9;
  --geo-site-soft: #eaf2f3; --geo-site-green: #157d71; --geo-site-accent: #784ca5; --geo-site-accent-soft: #f1ebf8;
  --geo-site-btn: #29bba7; --geo-site-btn-ink: #062d2b; --geo-site-btn-line: #33ccb6; --geo-site-btn-hover: #33ccb6;
  --geo-site-bad: #b42318; --geo-site-bad-soft: #fdecea; --geo-site-ok: #157d71; --geo-site-ok-soft: #e1f2ed;
  --geo-site-warn: #8a5300; --geo-site-warn-soft: #fdf1dc;
  --geo-site-dot: rgba(24, 38, 54, .07); --geo-site-shadow: 0 18px 40px -22px rgba(24, 38, 54, .35);
  --geo-site-r: 12px; --geo-site-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --geo-site-phii-ink: #3C887C; --geo-site-phii-collar: #997BB5;   /* Phii's drawing (climb.js), as geo-2026.css has it */
  color-scheme: light;
  /* The short names scan-page.css and full-check.css use */
  --bg: var(--geo-site-bg); --panel: var(--geo-site-panel); --ink: var(--geo-site-ink); --muted: var(--geo-site-muted); --line: var(--geo-site-line); --soft: var(--geo-site-soft); --green: var(--geo-site-green); --accent: var(--geo-site-accent); --accent-soft: var(--geo-site-accent-soft); --btn: var(--geo-site-btn); --btn-ink: var(--geo-site-btn-ink); --btn-line: var(--geo-site-btn-line);
  --btn-hover: var(--geo-site-btn-hover); --bad: var(--geo-site-bad); --bad-soft: var(--geo-site-bad-soft); --ok: var(--geo-site-ok); --ok-soft: var(--geo-site-ok-soft); --warn: var(--geo-site-warn); --warn-soft: var(--geo-site-warn-soft); --dot: var(--geo-site-dot); --shadow: var(--geo-site-shadow); --r: var(--geo-site-r); --font: var(--geo-site-font);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --geo-site-bg: #0f1827; --geo-site-panel: #19283b; --geo-site-ink: #eff3f8; --geo-site-muted: #a9b8cb; --geo-site-line: #34475d;
    --geo-site-soft: #142235; --geo-site-green: #7ed5c4; --geo-site-accent: #b38be6; --geo-site-accent-soft: #2a2440;
    --geo-site-bad: #ffb4ab; --geo-site-bad-soft: #3b1d1d; --geo-site-ok: #7ed5c4; --geo-site-ok-soft: #12332f;
    --geo-site-warn: #f5c46b; --geo-site-warn-soft: #3a2e15;
    --geo-site-dot: rgba(239, 243, 248, .07); --geo-site-shadow: 0 18px 40px -22px rgba(0, 0, 0, .7);
    --geo-site-phii-ink: #AAECDD; --geo-site-phii-collar: #B38BE6;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --geo-site-bg: #0f1827; --geo-site-panel: #19283b; --geo-site-ink: #eff3f8; --geo-site-muted: #a9b8cb; --geo-site-line: #34475d;
  --geo-site-soft: #142235; --geo-site-green: #7ed5c4; --geo-site-accent: #b38be6; --geo-site-accent-soft: #2a2440;
  --geo-site-bad: #ffb4ab; --geo-site-bad-soft: #3b1d1d; --geo-site-ok: #7ed5c4; --geo-site-ok-soft: #12332f;
  --geo-site-warn: #f5c46b; --geo-site-warn-soft: #3a2e15;
  --geo-site-dot: rgba(239, 243, 248, .07); --geo-site-shadow: 0 18px 40px -22px rgba(0, 0, 0, .7);
  --geo-site-phii-ink: #AAECDD; --geo-site-phii-collar: #B38BE6;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--geo-site-panel); color: var(--geo-site-ink); font-family: var(--geo-site-font);
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ── Frame ─────────────────────────────────────────────────────────────── */
.sc-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 56px; padding: 0 16px; border-bottom: 1px solid var(--geo-site-line); background: var(--geo-site-panel);
}
.sc-logo img { display: block; height: 26px; width: auto; }
.sc-logo .for-dark { display: none; }
:root[data-theme="dark"] .sc-logo .for-light { display: none; }
:root[data-theme="dark"] .sc-logo .for-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sc-logo .for-light { display: none; }
  :root:not([data-theme="light"]) .sc-logo .for-dark { display: block; }
}
/* Inside geophii.com's pop-up the site's own bar has the title and close button, so ours is just
   the step counter: no logo, no line, less height - it reads as one header, not two. */
.sc-embedded .sc-logo { display: none; }
.sc-embedded .sc-top { height: 40px; border-bottom: 0; justify-content: flex-end; }
@media (min-width: 960px) {
  .sc-embedded .sc-top { height: 44px; }
  .sc-embedded .sc-main { min-height: calc(100vh - 44px); }
}
.sc-progress { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--geo-site-muted); font-weight: 500; }
.sc-bars { display: flex; gap: 4px; }
.sc-bars i { display: block; width: 18px; height: 4px; border-radius: 4px; background: var(--geo-site-line); }
.sc-bars i.on { background: var(--geo-site-btn); }

.sc-main { display: block; }
.sc-form { padding: 20px 16px 32px; max-width: 560px; margin: 0 auto; }
.sc-preview { display: none; }

@media (min-width: 960px) {
  .sc-top { padding: 0 32px; height: 64px; }
  .sc-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 64px); }
  .sc-form { padding: 56px 48px; margin: 0; max-width: none; display: flex; justify-content: center; }
  .sc-form > .sc-inner { width: 100%; max-width: 520px; margin: auto 0; }
  .sc-preview {
    display: flex; align-items: center; justify-content: center; padding: 48px;
    background-color: var(--geo-site-bg);
    background-image: radial-gradient(var(--geo-site-dot) 1px, transparent 1px);
    background-size: 18px 18px; border-left: 1px solid var(--geo-site-line); border-bottom-left-radius: 48px;
  }
}

/* ── Type ──────────────────────────────────────────────────────────────── */
.sc-eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--geo-site-green); }
.sc-h1 { margin: 0 0 8px; font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; outline: none; }
.sc-intro { margin: 0 0 20px; color: var(--geo-site-muted); font-size: 15px; }
.sc-h1-start { margin-bottom: 20px; }
@media (min-width: 960px) {
  .sc-h1 { font-size: 34px; }
  .sc-intro { font-size: 17px; margin-bottom: 28px; }
  .sc-h1-start { margin-bottom: 28px; }
}
.sc-note { margin: 12px 0 0; font-size: 13px; color: var(--geo-site-muted); text-align: center; }
.sc-note.left { text-align: left; }

/* ── Fields ────────────────────────────────────────────────────────────── */
.sc-field { margin-bottom: 16px; }
.sc-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.sc-hint { margin: 6px 0 0; font-size: 13px; color: var(--geo-site-muted); }
.sc-hint.ok { color: var(--geo-site-ok); }
.sc-hint.ok::before { content: "✓ "; font-weight: 700; }
.sc-err { margin: 6px 0 0; font-size: 13px; color: var(--geo-site-bad); font-weight: 500; }
.sc-input-wrap { position: relative; }
.sc-input-wrap .sc-ico {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px;
  color: var(--geo-site-muted); pointer-events: none; display: flex; align-items: center; justify-content: center;
}
.sc-input-wrap .sc-ico img { width: 20px; height: 20px; border-radius: 4px; }
.sc-input, .sc-select, .sc-textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--geo-site-line); border-radius: var(--geo-site-r);
  background: var(--geo-site-panel); font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.sc-input-wrap .sc-input { padding-left: 44px; }
.sc-textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.sc-select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--geo-site-muted) 50%), linear-gradient(135deg, var(--geo-site-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.sc-input::placeholder, .sc-textarea::placeholder { color: var(--geo-site-muted); opacity: .75; }
.sc-input:focus, .sc-select:focus, .sc-textarea:focus { outline: none; border-color: var(--geo-site-btn); box-shadow: 0 0 0 3px rgba(41, 187, 167, .22); }
.sc-input.bad, .sc-textarea.bad { border-color: var(--geo-site-bad); }
.sc-row2 { display: grid; gap: 12px; grid-template-columns: 1.4fr 1fr; margin-bottom: 16px; }
.sc-row2 .sc-select { padding-right: 34px; background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; }
.sc-row2 .sc-field { margin-bottom: 0; min-width: 0; }
@media (max-width: 339px) { .sc-row2 { grid-template-columns: 1fr; } }
.sc-textarea.grow { overflow: hidden; resize: none; }

/* An input with its Add button */
.sc-add { display: flex; gap: 8px; }
.sc-add .sc-input { flex: 1; min-width: 0; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.sc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px;
  padding: 0 22px; border-radius: 999px; border: 1px solid var(--geo-site-btn-line); background: var(--geo-site-btn);
  color: var(--geo-site-btn-ink); font-weight: 600; font-size: 16px; cursor: pointer; text-decoration: none;
  transition: background .15s, transform .08s;
}
.sc-btn:hover { background: var(--geo-site-btn-hover); }
.sc-btn:active { transform: scale(.98); }
.sc-btn:focus-visible { outline: 3px solid rgba(41, 187, 167, .45); outline-offset: 2px; }
.sc-btn[disabled] { opacity: .55; cursor: default; transform: none; }
.sc-btn.wide { width: 100%; }
.sc-btn .arrow { font-size: 18px; line-height: 1; }
.sc-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--geo-site-line); background: transparent; font-weight: 600; cursor: pointer; color: var(--geo-site-ink);
}
.sc-btn-ghost:hover { border-color: var(--geo-site-muted); }
.sc-btn-ghost:focus-visible { outline: 3px solid rgba(41, 187, 167, .45); outline-offset: 2px; }
.sc-btn-small { min-height: 48px; padding: 0 16px; border-radius: var(--geo-site-r); border: 1px solid var(--geo-site-line);
  background: var(--geo-site-soft); font-weight: 600; cursor: pointer; flex-shrink: 0; }
.sc-btn-small:hover { border-color: var(--geo-site-muted); }
.sc-actions { display: flex; gap: 10px; margin-top: 24px; }
.sc-actions .sc-btn { flex: 1; }

/* ── Preview panel (desktop) ───────────────────────────────────────────── */
.pv { width: 100%; max-width: 560px; }
.pv-card { background: var(--geo-site-panel); border: 1px solid var(--geo-site-line); border-radius: 20px; box-shadow: var(--geo-site-shadow); }

/* ── Journey strip under the first button: free now, report, then Phii ─── */
.sc-journey { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 0; }
.sc-journey li { position: relative; display: flex; gap: 12px; padding: 0 0 14px; }
.sc-journey li:last-child { padding-bottom: 0; }
.sc-journey li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 28px; bottom: 2px; width: 2px; background: var(--geo-site-line); }
.sc-journey .dot { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; border: 2px solid var(--geo-site-line); color: var(--geo-site-muted); background: var(--geo-site-panel); }
.sc-journey li.now .dot { background: var(--geo-site-btn); border-color: var(--geo-site-btn); color: var(--geo-site-btn-ink); }
.sc-journey .txt { font-size: 14px; color: var(--geo-site-muted); padding-top: 3px; line-height: 1.4; }
.sc-journey .txt b { color: var(--geo-site-ink); font-weight: 600; }
.sc-journey li.now .txt b { color: var(--geo-site-green); }
@media (min-width: 960px) { .sc-journey { display: none; } }   /* the side panel shows it bigger */

/* ── Desktop journey panel (first screen) ──────────────────────────────── */
.jr { display: grid; gap: 0; max-width: 520px; margin: 0 auto; }
.jr .pv-card { padding: 18px 20px; }
.jr-head { display: flex; align-items: center; gap: 10px; }
.jr-head b { font-size: 16px; }
.jr-num { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
  border: 2px solid var(--geo-site-line); color: var(--geo-site-muted); flex-shrink: 0; }
.jr-now { border-color: var(--geo-site-btn); }
.jr-now .jr-num { background: var(--geo-site-btn); border-color: var(--geo-site-btn); color: var(--geo-site-btn-ink); }
.jr-site { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--geo-site-muted); max-width: 50%; }
.jr-site img { width: 18px; height: 18px; border-radius: 4px; }
.jr-site span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jr-sub { margin: 8px 0 0 36px; font-size: 13px; color: var(--geo-site-muted); }
.jr-ticks { list-style: none; margin: 8px 0 0 36px; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.jr-ticks li { position: relative; padding-left: 22px; }
.jr-ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--geo-site-green); font-weight: 700; }
.jr-next { opacity: .85; }
.jr-line { width: 2px; height: 18px; margin-left: 32px; background: var(--geo-site-line); }
.jr-phii { display: flex; gap: 16px; align-items: stretch; padding: 4px 0 0 10px; }
.jr-door { width: 64px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border-radius: 14px; background: var(--geo-site-accent-soft); color: var(--geo-site-accent); }
.jr-door .spark { font-size: 24px; }
.jr-door b { font-size: 12px; }
.jr-helps { flex: 1; min-width: 0; }
.jr-helps-h { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-weight: 600; font-size: 15px; }
.jr-help { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.jr-help .ic { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--geo-site-line); display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--geo-site-muted); flex-shrink: 0; }
.jr-help b { display: block; font-size: 14px; }
.jr-help small { display: block; font-size: 13px; color: var(--geo-site-muted); }
