/* SealRunner V1 design system: fast, clean, trustworthy, location-aware, mobile-first. */
:root {
  --ink: #14212B;
  --ink-2: #3E4C59;
  --muted: #6B7A88;
  --line: #DCE3E8;
  --bg: #F4F7F8;
  --surface: #FFFFFF;
  --seal: #0B5F63;        /* primary: deep seal teal */
  --seal-dark: #084A4D;
  --seal-soft: #E1F0F0;
  --run: #F26B3A;         /* accent: runner orange */
  --run-soft: #FDE9E0;
  --ok: #157F4A;
  --ok-soft: #E2F3E9;
  --warn: #B45309;
  --warn-soft: #FEF3C7;
  --err: #B42318;
  --err-soft: #FEE4E2;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20,33,43,.06), 0 6px 20px rgba(20,33,43,.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--seal); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--seal-dark); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5rem; }
h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 .75rem; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; margin: 0 auto; padding: 1rem 0 2rem; }
.center { text-align: center; }
.right { text-align: right; }
.muted { color: var(--muted); }
.fine { font-size: .82rem; color: var(--muted); }
.warn { color: var(--warn); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--run); outline-offset: 2px; border-radius: 4px; }

/* header */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-head .row { display: flex; align-items: center; justify-content: space-between; min-height: 58px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; }
.brand b { color: var(--seal); font-weight: 800; }
.brand .mark { width: 30px; height: 30px; color: var(--seal); }
.nav { display: flex; align-items: center; gap: 1rem; font-size: .92rem; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--seal); }
.nav .btn { color: var(--seal); }
form.inline { display: inline; }
button.link { background: none; border: 0; color: var(--ink-2); font: inherit; cursor: pointer; padding: 0; }
@media (max-width: 600px) { .nav a:not(.btn) { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .7rem 1.15rem; border-radius: 999px; border: 1.5px solid transparent; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; min-height: 44px; transition: background .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--seal); color: #fff; }
.btn-primary:hover { background: var(--seal-dark); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--seal); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--seal); }
.btn-sm { padding: .45rem .9rem; min-height: 36px; font-size: .9rem; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1.05rem; }

/* hero */
.hero { background: linear-gradient(180deg, var(--seal-soft) 0%, var(--bg) 100%); padding: 2.5rem 0 2rem; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 2px dashed rgba(11,95,99,.18); }
.hero::after { content: ""; position: absolute; right: -20px; top: 40px; width: 200px; height: 200px; border-radius: 50%; border: 2px dashed rgba(242,107,58,.25); }
.hero .wrap { position: relative; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: var(--seal); margin-bottom: .5rem; }
.hero h1 { font-size: clamp(2rem, 7vw, 3.2rem); max-width: 14ch; }
.lede { font-size: 1.1rem; color: var(--ink-2); max-width: 46ch; }
.lede-sm { color: var(--ink-2); }
.hero-form { max-width: 560px; margin-top: 1.25rem; }
.input-btn { display: flex; align-items: center; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 14px; box-shadow: var(--shadow); gap: .5rem; }
.input-btn:focus-within { border-color: var(--seal); }
.input-btn .pin { width: 22px; height: 22px; color: var(--run); flex: none; }
.input-btn input { flex: 1; min-width: 0; border: 0; font: inherit; font-size: 1.05rem; padding: .6rem 0; background: transparent; outline: none; }
.or { margin-top: .75rem; font-size: .92rem; color: var(--muted); }
.secondary-cta { font-weight: 600; }

/* paths */
.paths { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 1.5rem auto; }
@media (min-width: 720px) { .paths { grid-template-columns: repeat(3, 1fr); } }
.path { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .12s, border-color .12s; }
.path:hover { transform: translateY(-2px); border-color: var(--seal); color: var(--ink); }
.path p { color: var(--ink-2); margin: 0; font-size: .95rem; }
.path-ico { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; margin-bottom: .75rem; }
.path-ico svg { width: 26px; height: 26px; }
.path-mobile { background: var(--run-soft); color: var(--run); }
.path-online { background: var(--seal-soft); color: var(--seal); }
.path-office { background: #EEF2F5; color: var(--ink-2); }

/* how */
.how { margin: 2rem auto; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { display: flex; gap: .9rem; align-items: flex-start; }
.steps p { color: var(--ink-2); margin: .15rem 0 0; font-size: .95rem; }
.num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--seal); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.notary-cta { margin: 2rem auto 3rem; }
.cta-box { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.cta-box h2 { color: #fff; }
.cta-box p { color: #C9D3DC; margin: 0; }
.cta-box .btn-primary { background: var(--run); }
.cta-box .btn-primary:hover { background: #d95a2b; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow); margin-bottom: 1rem; }
.results-list { display: grid; gap: 1rem; margin: 1rem 0; }
@media (min-width: 900px) { .results-list { grid-template-columns: repeat(2, 1fr); } }
.notary-card { display: flex; flex-direction: column; gap: .6rem; margin: 0; }
.card-top { display: flex; gap: .8rem; align-items: flex-start; }
.card-title { flex: 1; min-width: 0; }
.card-title h3 a { color: var(--ink); text-decoration: none; }
.card-title h3 a:hover { color: var(--seal); }
.avatar { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--seal-soft); color: var(--seal); font-weight: 800; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 84px; height: 84px; font-size: 2rem; border-radius: 20px; }
.dist { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.meta-row { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .2rem; }
.badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; }
.badge-verified { background: var(--ok-soft); color: var(--ok); }
.badge-muted { background: #EEF2F5; color: var(--muted); }
.badge-now { background: var(--run-soft); color: #B4471F; }
.badge-test { background: var(--warn-soft); color: var(--warn); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--run); display: inline-block; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .4 } }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip { font-size: .78rem; font-weight: 600; padding: .2rem .55rem; border-radius: 6px; background: #EEF2F5; color: var(--ink-2); }
.chip-mobile { background: var(--run-soft); color: #B4471F; }
.chip-online { background: var(--seal-soft); color: var(--seal); }
.chip-state { background: transparent; border: 1px solid var(--line); }
.facts { margin: 0; display: grid; gap: .25rem; font-size: .92rem; }
.facts div { display: flex; gap: .5rem; }
.facts dt { color: var(--muted); flex: none; width: 82px; }
.facts dd { margin: 0; }
.facts-col dt { width: 110px; }
.why { font-size: .85rem; color: var(--ok); margin: 0; }
.card-actions { display: flex; gap: .5rem; margin-top: auto; }
.card-actions .btn { flex: 1; }

/* results */
.results-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-top: 1.25rem; flex-wrap: wrap; }
.summary { color: var(--muted); margin: 0; font-size: .95rem; }
.empty h2 { margin-top: 0; }
.empty ul { padding-left: 1.2rem; }

/* wizard */
.wizard { max-width: 680px; margin: 0 auto; padding: 1rem 0 5rem; }
.wizard-head h1 { margin-bottom: .5rem; }
.progress { list-style: none; display: flex; gap: .4rem; padding: 0; margin: 0 0 1.25rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.progress li { flex: 1; padding-top: .4rem; border-top: 3px solid var(--line); }
.progress li.active { border-color: var(--seal); color: var(--seal); font-weight: 700; }
.progress li.done { border-color: var(--seal); }
fieldset.step { border: 0; padding: 0; margin: 0 0 1.25rem; }
legend { font-size: 1.2rem; font-weight: 700; margin-bottom: .75rem; display: flex; align-items: center; gap: .5rem; }
.step-n { width: 28px; height: 28px; border-radius: 50%; background: var(--seal); color: #fff; font-size: .9rem; display: inline-flex; align-items: center; justify-content: center; }
.js .wizard fieldset.step { display: none; }
.js .wizard fieldset.step.active { display: block; }
.hint { color: var(--muted); font-size: .9rem; }
.wizard-nav { display: flex; gap: .6rem; justify-content: space-between; position: sticky; bottom: 0; background: linear-gradient(180deg, rgba(244,247,248,0), var(--bg) 30%); padding: 1rem 0 .5rem; }
.wizard-nav .btn { flex: 1; }
.js [data-submit] { display: none; }
.js .wizard.last [data-submit] { display: inline-flex; }
.js .wizard.last [data-next] { display: none; }
.js .wizard.first [data-prev] { visibility: hidden; }
.no-js .wizard-nav [data-next], .no-js .wizard-nav [data-prev] { display: none; }

/* forms */
.form h2 { margin-top: 1rem; font-size: 1.05rem; }
.form h2:first-of-type { margin-top: 0; }
.field { margin-bottom: .9rem; }
.field label, fieldset.field legend { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .3rem; }
.field input, .field select, .field textarea, .actions select, .inline-form input { width: 100%; font: inherit; padding: .7rem .8rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; min-height: 44px; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--seal); outline: none; box-shadow: 0 0 0 3px var(--seal-soft); }
.field small { display: block; color: var(--muted); font-size: .8rem; margin-top: .25rem; }
.req { color: var(--run); }
.grid-2 { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-4 { display: grid; gap: .5rem; grid-template-columns: 1fr 1fr; align-items: end; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: 1fr 2fr 1.5fr auto; } }
.commission-row { padding: .5rem; border: 1px dashed var(--line); border-radius: var(--radius-sm); margin-bottom: .5rem; }
.choice-grid { display: grid; gap: .6rem; grid-template-columns: 1fr; margin-bottom: 1rem; }
@media (min-width: 560px) { .choice-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } }
.choice { display: flex; gap: .7rem; align-items: center; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: pointer; min-height: 56px; }
.choice:has(input:checked) { border-color: var(--seal); background: var(--seal-soft); }
.choice input { width: 20px; height: 20px; accent-color: var(--seal); flex: none; margin: 0; }
.choice span { display: flex; flex-direction: column; }
.choice em { font-style: normal; color: var(--muted); font-size: .82rem; }
.check { display: flex; gap: .55rem; align-items: flex-start; font-size: .92rem; margin: .5rem 0; }
.check input { width: 18px; height: 18px; accent-color: var(--seal); flex: none; margin-top: .15rem; }
.check.small { align-self: center; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0 1rem; margin-bottom: 1rem; }
.hp { position: absolute; left: -9999px; }
textarea { resize: vertical; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .75rem; }
.actions select { width: auto; }
.inline-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .75rem; }
.inline-form input { width: auto; flex: 1; min-width: 100px; }

/* flashes & notices */
.flashes { padding-top: .75rem; }
.flash, .notice { padding: .7rem 1rem; border-radius: var(--radius-sm); margin-bottom: .6rem; font-size: .95rem; border: 1px solid transparent; }
.flash-info, .notice { background: var(--seal-soft); color: var(--seal-dark); border-color: #BFDCDC; }
.flash-success { background: var(--ok-soft); color: var(--ok); }
.flash-warn, .notice-warn { background: var(--warn-soft); color: var(--warn); }
.flash-error { background: var(--err-soft); color: var(--err); }

/* profile */
.profile { padding: 1.25rem 0 2rem; }
.profile-head { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-start; }
.profile-head > div:nth-child(2) { flex: 1; min-width: 220px; }
.profile-cta { display: flex; flex-direction: column; gap: .5rem; width: 100%; }
@media (min-width: 720px) { .profile-cta { width: auto; } }
.profile-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .profile-grid { grid-template-columns: 1fr 1fr; } }
.tags { list-style: none; padding: 0; margin: 0 0 .75rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li { background: #EEF2F5; border-radius: 6px; padding: .2rem .6rem; font-size: .88rem; }
ul.plain { list-style: none; padding: 0; margin: 0 0 .75rem; }
ul.plain li { padding: .25rem 0; }
.done { padding: 2rem 1.5rem; color: var(--ink); }
.done svg { color: var(--ok); margin: 0 auto .75rem; }
.lead-id code { background: #EEF2F5; padding: .2rem .5rem; border-radius: 6px; font-size: 1rem; }

/* dashboard / admin */
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.25rem 0 .75rem; }
.dash-grid, .stat-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-bottom: 1rem; }
.tile, .stat { text-align: center; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: .2rem; margin: 0; }
.big { font-size: 1.8rem; font-weight: 800; color: var(--seal); }
.avail-toggle { display: flex; align-items: center; gap: .6rem; }
.toggle { width: 54px; height: 30px; border-radius: 999px; border: 0; background: #C9D3DC; position: relative; cursor: pointer; padding: 0; }
.toggle .knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.toggle.on { background: var(--run); }
.toggle.on .knob { left: 27px; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { text-align: left; padding: .5rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
table.card { display: block; overflow-x: auto; }
.status { display: inline-block; font-size: .72rem; font-weight: 700; padding: .15rem .5rem; border-radius: 6px; background: #EEF2F5; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.status-verified, .status-accepted, .status-completed, .status-approved { background: var(--ok-soft); color: var(--ok); }
.status-pending_verification, .status-delivered, .status-viewed, .status-pending, .status-new { background: var(--seal-soft); color: var(--seal); }
.status-suspended, .status-declined, .status-cancelled, .status-rejected { background: var(--err-soft); color: var(--err); }
.status-expired { background: var(--warn-soft); color: var(--warn); }
.admin-nav, .filters { display: flex; gap: .25rem; flex-wrap: wrap; margin: 1rem 0; }
.admin-nav a, .filters a { padding: .4rem .8rem; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-size: .9rem; font-weight: 500; border: 1px solid transparent; }
.admin-nav a[aria-current], .filters a[aria-current] { background: var(--seal); color: #fff; }
.admin-nav a:hover, .filters a:hover { border-color: var(--line); }
.lead-row { display: flex; justify-content: space-between; gap: 1rem; text-decoration: none; color: var(--ink); margin: 0; }
.timeline li { border-left: 2px solid var(--line); padding-left: .75rem; margin-left: .25rem; }
.notes { white-space: pre-wrap; background: #F7F9FA; border-radius: var(--radius-sm); padding: .6rem; font-size: .8rem; }
.wrap-actions .btn { flex: none; }

/* landing */
.landing-head { padding: 1.5rem 0 1rem; }
.landing-info h2 { margin-top: 0; }
.related { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .92rem; }
.legal h2 { margin-top: 1.5rem; font-size: 1.05rem; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 1.5rem 0 max(1.5rem, env(safe-area-inset-bottom)); margin-top: 2rem; background: var(--surface); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .88rem; margin: .5rem 0; }
.disclaimer { font-size: .85rem; color: var(--ink-2); }

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

/* launch additions */
.routed-cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; border-color: var(--seal); background: var(--seal-soft); }
.routed-cta h2 { margin: 0 0 .25rem; }
.routed-cta p { margin: 0; color: var(--ink-2); }
.status-open, .status-no_match { background: var(--seal-soft); color: var(--seal); }
.status-needs_info { background: var(--warn-soft); color: var(--warn); }
button[disabled], button[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
input[type=time] { min-height: 44px; }

/* Temporary Commander-supplied brand artwork. Original pixels preserved. */
.brand-mascot{width:56px;height:56px;object-fit:contain;border-radius:50%;background:white}.hero-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:40px;align-items:center}.hero-mascot{display:block;width:100%;height:auto;max-width:420px;justify-self:center;border-radius:24px}.hero-copy{min-width:0}@media(max-width:700px){.hero-layout{grid-template-columns:1fr;gap:24px}.hero-mascot{max-width:260px}.brand-mascot{width:44px;height:44px}}
