/* ==========================================================================
   Cable Snip — design prototype stylesheet (single shared file)
   Mobile-first. No external fonts or CDNs. See DESIGN_NOTES.md for palette.
   ========================================================================== */

:root {
  /* Brand */
  --ink:          #0B1B2B;  /* deep ink navy: header, hero, headings */
  --navy:         #13294B;  /* secondary navy: panels on dark */
  --navy-2:       #1D3A63;  /* hover / borders on dark */
  --accent:       #F26A21;  /* electric copper: primary CTA, highlights */
  --accent-dark:  #C9531A;  /* CTA hover, accent text on light bg (AA) */
  --accent-tint:  #FFF1E8;  /* soft copper wash */

  /* Neutrals */
  --bg:           #F6F8FB;
  --surface:      #FFFFFF;
  --line:         #E2E8F0;
  --line-strong:  #CBD5E1;
  --text:         #0B1B2B;
  --muted:        #5B6B80;
  --faint:        #94A3B8;

  /* Status */
  --ok:           #12936B;  --ok-tint:   #E6F6F0;
  --warn:         #B7791F;  --warn-tint: #FFF7E6;
  --bad:          #D1433A;  --bad-tint:  #FDECEB;
  --info:         #2563EB;  --info-tint: #EAF1FE;

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* Shape */
  --r-sm: 6px; --r: 10px; --r-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(11,27,43,.06);
  --shadow:    0 4px 16px rgba(11,27,43,.08);
  --shadow-lg: 0 12px 40px rgba(11,27,43,.14);
  --wrap: 1160px;
}

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--bg); }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }
h1,h2,h3,h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.45rem, 3.6vw, 2rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 700; }
h4 { font-size: .95rem; font-weight: 700; }
p { margin: 0 0 1em; }
small, .small { font-size: .85rem; }
.muted { color: var(--muted); }
.mono, code { font-family: var(--mono); font-size: .92em; }
code { background: #EEF2F7; padding: .1em .35em; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 48px 0; }
.section-tight { padding: 28px 0; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: .6rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row-between { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.grid { display: grid; gap: 20px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Prototype ribbon ---------- */
.proto-ribbon { background: #FFE9A8; color: #5A4300; font-size: .78rem; text-align: center; padding: 6px 12px; }
.proto-ribbon strong { font-weight: 700; }

/* ---------- Header ---------- */
.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255,255,255,.06); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.brand:hover { color: #fff; }
.brand .mark { width: 30px; height: 30px; }
.brand span b { color: var(--accent); font-weight: 800; }
.nav-toggle { background: none; border: 1px solid rgba(255,255,255,.2); color: #fff; border-radius: var(--r-sm); padding: 7px 10px; font: inherit; font-size: .9rem; cursor: pointer; }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--ink); padding: 8px 20px 20px; border-bottom: 1px solid var(--navy-2); }
.site-nav.open { display: block; }
.site-nav a { display: block; color: #CBD5E1; text-decoration: none; padding: 10px 0; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.06); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }
.site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); padding-left: 10px; }
.site-nav .btn { margin-top: 12px; display: inline-flex; border-bottom: 0; }
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex !important; position: static; padding: 0; background: none; border: 0; align-items: center; gap: 4px; }
  .site-nav a { padding: 8px 12px; border: 0; font-size: .93rem; border-radius: var(--r-sm); }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); padding-left: 12px; border-radius: 0; }
  .site-nav .btn { margin: 0 0 0 10px; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 650; font-size: .97rem; line-height: 1; padding: 13px 20px; border-radius: var(--r); border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--navy-2); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.btn-ghost-light:hover { border-color: #fff; color: #fff; }
.btn-sm { padding: 9px 14px; font-size: .88rem; }
.btn-lg { padding: 17px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1000px 500px at 85% -10%, rgba(242,106,33,.22), transparent 60%), linear-gradient(180deg, var(--ink), #0E2238); color: #fff; padding: 48px 0 56px; overflow: hidden; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 .accent { color: var(--accent); }
.hero .lead { color: #C7D2E0; font-size: 1.12rem; max-width: 36em; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 80px 0 88px; } .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.hero-upload { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-lg); padding: 18px; backdrop-filter: blur(4px); }
.hero-drop { border: 2px dashed rgba(255,255,255,.28); border-radius: var(--r); padding: 30px 18px; text-align: center; color: #DCE4EE; }
.hero-drop .icon { width: 44px; height: 44px; margin: 0 auto 10px; color: var(--accent); }
.hero-drop strong { color: #fff; display: block; font-size: 1.1rem; margin-bottom: 4px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-size: .84rem; color: #A9B7C9; }
.hero-meta span::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 6px; }

/* ---------- Trust strip ---------- */
.trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust .wrap { display: grid; grid-template-columns: 1fr; gap: 14px; padding-top: 18px; padding-bottom: 18px; }
@media (min-width: 720px) { .trust .wrap { grid-template-columns: repeat(4, 1fr); } }
.trust-item { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; }
.trust-item svg { width: 22px; height: 22px; flex: 0 0 22px; color: var(--accent-dark); margin-top: 2px; }
.trust-item strong { display: block; font-size: .95rem; }
.trust-item span { color: var(--muted); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.card-flat { box-shadow: none; }
.card h3 { margin-bottom: .35em; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.grid-2 { display: grid; gap: 20px; }
.grid-3 { display: grid; gap: 20px; }
.grid-4 { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.layout-side { display: grid; gap: 24px; grid-template-columns: minmax(0,1fr); }
.layout-side > * { min-width: 0; }
@media (min-width: 960px) { .layout-side { grid-template-columns: minmax(0,1fr) 320px; align-items: start; } .sticky { position: sticky; top: 84px; } }

.step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-tint); color: var(--accent-dark); font-weight: 800; display: grid; place-items: center; margin-bottom: 12px; }

/* Tier cards */
.tier { position: relative; border-top: 4px solid var(--line-strong); }
.tier-1 { border-top-color: var(--ok); }
.tier-2 { border-top-color: var(--warn); }
.tier-3 { border-top-color: var(--info); }
.tier .tier-time { font-size: 1.5rem; font-weight: 800; margin: 4px 0 8px; }
.tier ul { padding-left: 18px; margin: 10px 0 0; color: var(--muted); font-size: .93rem; }
.tier li { margin: 4px 0; }

/* ---------- Badges / pills ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: #EEF2F7; color: var(--muted); white-space: nowrap; letter-spacing: .01em; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.no-dot::before { display: none; }
.badge-ok   { background: var(--ok-tint);   color: var(--ok); }
.badge-warn { background: var(--warn-tint); color: var(--warn); }
.badge-bad  { background: var(--bad-tint);  color: var(--bad); }
.badge-info { background: var(--info-tint); color: var(--info); }
.badge-accent { background: var(--accent-tint); color: var(--accent-dark); }
.badge-dark { background: var(--ink); color: #fff; }
/* T104: stock wire (GXL, TXL, GPT, SXL...) faster-turnaround badge + lead-time comparison panel */
.badge-stock { background: var(--ok-tint); color: var(--ok); border: 1px solid #B8E3D3; font-family: var(--font); }
.mono .badge-stock { margin-top: 4px; }
.stock-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 10px; }
.stock-compare > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface); }
.stock-compare > div.is-stock { border-color: #B8E3D3; background: var(--ok-tint); }
.stock-compare .k { font-size: .76rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.stock-compare .v { font-weight: 800; font-size: 1.05rem; }
.tbd { display: inline-block; font-family: var(--mono); font-size: .82em; font-weight: 700; color: #7A4A00; background: #FFF3C4; border: 1px dashed #E0B341; padding: 0 .4em; border-radius: 4px; }

/* ---------- Alerts / banners ---------- */
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r); border: 1px solid; font-size: .93rem; align-items: flex-start; }
.alert svg { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 1px; }
.alert p:last-child { margin-bottom: 0; }
.alert-warn { background: var(--warn-tint); border-color: #F1D7A6; color: #6B4A0E; }
.alert-info { background: var(--info-tint); border-color: #C9DAFB; color: #1E3A8A; }
.alert-ok   { background: var(--ok-tint); border-color: #B8E3D3; color: #0B5D44; }
.alert-bad  { background: var(--bad-tint); border-color: #F5C2BE; color: #8A231C; }
.alert-ink  { background: var(--ink); border-color: var(--ink); color: #E2E8F0; }
.alert-ink strong { color: #fff; }
.alert-ink svg { color: var(--accent); }

.itar-banner { background: var(--ink); color: #E2E8F0; border-radius: var(--r-lg); padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.itar-banner svg { width: 28px; height: 28px; flex: 0 0 28px; color: var(--accent); }
.itar-banner strong { color: #fff; font-size: 1.02rem; }

/* ---------- Forms ---------- */
label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: 6px; }
.hint { font-size: .82rem; color: var(--muted); font-weight: 400; margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--text); background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); padding: 10px 12px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242,106,33,.18); }
textarea { min-height: 90px; resize: vertical; }
.field { margin-bottom: 16px; }
.fields-2, .fields-3 { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .fields-2 { grid-template-columns: 1fr 1fr; } .fields-3 { grid-template-columns: repeat(3, 1fr); } }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; font-size: .94rem; cursor: pointer; margin: 0; }
.check input { width: 20px; height: 20px; flex: 0 0 20px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.check-card { border: 1.5px solid var(--line-strong); border-radius: var(--r); padding: 14px 16px; background: #fff; transition: border-color .15s, background .15s; }
.check-card:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.check-card.required { border-color: var(--accent); border-style: dashed; }
.check-card.required:has(input:checked) { border-style: solid; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 700; font-size: 1.05rem; margin-bottom: 10px; padding: 0; }

/* Segmented control */
.seg { display: inline-flex; background: #EAEFF5; border-radius: var(--r); padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg button { font: inherit; font-size: .88rem; font-weight: 650; border: 0; background: transparent; color: var(--muted); padding: 8px 14px; border-radius: 7px; cursor: pointer; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

/* Toggle switch */
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; margin: 0; }
.switch input { appearance: none; -webkit-appearance: none; width: 46px; height: 26px; border-radius: 999px; background: var(--line-strong); position: relative; cursor: pointer; transition: background .15s; flex: 0 0 46px; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(20px); }

/* ---------- Dropzone ---------- */
.dropzone { border: 2px dashed var(--line-strong); border-radius: var(--r-lg); background: #fff; padding: 26px 18px; text-align: center; transition: border-color .15s, background .15s, opacity .15s; position: relative; }
.dropzone .icon { width: 40px; height: 40px; margin: 0 auto 8px; color: var(--accent); }
.dropzone h3 { margin-bottom: 4px; }
.dropzone .types { font-size: .82rem; color: var(--muted); margin-bottom: 14px; }
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-tint); }
.dropzone.locked { opacity: .55; background: repeating-linear-gradient(-45deg, #F8FAFC, #F8FAFC 10px, #F1F5F9 10px, #F1F5F9 20px); pointer-events: none; }
.dropzone .lock-note { display: none; font-size: .82rem; font-weight: 700; color: var(--bad); margin-top: 10px; }
.dropzone.locked .lock-note { display: block; }
.dropzone input[type=file] { display: none; }
.file-list { list-style: none; padding: 0; margin: 12px 0 0; text-align: left; }
.file-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; font-size: .85rem; padding: 8px 10px; background: var(--bg); border-radius: var(--r-sm); margin-top: 6px; }
.file-list .sha { font-family: var(--mono); color: var(--faint); font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* ---------- Tabs ---------- */
.tabs [role=tablist] { display: flex; gap: 4px; border-bottom: 1.5px solid var(--line); margin-bottom: 0; overflow-x: auto; }
.tabs [role=tab] { font: inherit; font-weight: 650; font-size: .92rem; padding: 10px 16px; border: 0; background: none; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1.5px; white-space: nowrap; }
.tabs [role=tab][aria-selected=true] { color: var(--ink); border-bottom-color: var(--accent); }
.tabs [role=tabpanel] { padding-top: 16px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #F1F5F9; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.th-col { display: block; font-size: .68rem; color: var(--accent-dark); letter-spacing: .04em; }
.example-row td { color: var(--muted); font-family: var(--mono); font-size: .82rem; }
tr.is-selected td { background: var(--accent-tint); }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: #FBFCFE; }
tr.clickable.is-selected:hover td { background: var(--accent-tint); }
td.missing { background: var(--bad-tint) !important; color: var(--bad); font-weight: 700; }

/* ---------- Stats ---------- */
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.stat .v { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.stat .l { font-size: .8rem; color: var(--muted); font-weight: 600; }

/* Confidence meter */
.conf { display: flex; align-items: center; gap: 10px; font-size: .85rem; }
.conf .bar { flex: 1; height: 8px; background: #EAEFF5; border-radius: 999px; overflow: hidden; min-width: 60px; }
.conf .bar i { display: block; height: 100%; border-radius: 999px; background: var(--ok); }
.conf.mid .bar i { background: var(--warn); }
.conf.low .bar i { background: var(--bad); }
.conf b { font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }
.conf-list { display: grid; gap: 12px; }
.conf-row { display: grid; grid-template-columns: 1fr; gap: 4px; }
@media (min-width: 640px) { .conf-row { grid-template-columns: 200px 1fr; align-items: center; } }

/* ---------- Option cards (part matches) ---------- */
.match-block { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; background: #fff; }
.match-block + .match-block { margin-top: 16px; }
.match-q { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 12px; }
.options { display: grid; gap: 12px; }
@media (min-width: 720px) { .options { grid-template-columns: repeat(3, 1fr); } }
.opt { position: relative; border: 1.5px solid var(--line-strong); border-radius: var(--r); padding: 14px; background: #fff; cursor: pointer; text-align: left; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s, background .15s; }
.opt:hover { border-color: var(--ink); }
.opt[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242,106,33,.18); background: var(--accent-tint); }
.opt[aria-pressed="true"]::after { content: "✓ Selected"; position: absolute; top: 12px; right: 12px; font-size: .72rem; font-weight: 800; color: #fff; background: var(--accent); padding: 3px 8px; border-radius: 999px; }
.opt .rank { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.opt .pn { font-family: var(--mono); font-weight: 700; font-size: .95rem; margin: 4px 0 2px; word-break: break-all; padding-right: 70px; }
.opt .mfr { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.opt dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; font-size: .82rem; margin: 0 0 10px; }
.opt dt { color: var(--muted); }
.opt dd { margin: 0; font-weight: 600; }
.opt .price { font-size: 1.25rem; font-weight: 800; }
.opt .price small { font-size: .75rem; color: var(--muted); font-weight: 600; }

/* ---------- Quote ---------- */
.price-hero { font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.summary-lines { list-style: none; padding: 0; margin: 0; font-size: .94rem; }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.summary-lines li span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.summary-lines li.total { border-bottom: 0; border-top: 2px solid var(--ink); font-size: 1.1rem; font-weight: 800; padding-top: 12px; margin-top: 4px; }
.summary-lines li.sub { color: var(--muted); font-size: .86rem; }
.summary-lines li.fee { color: var(--accent-dark); }
.summary-lines li.later { color: var(--muted); }
.reasons { list-style: none; padding: 0; margin: 0; }
.reasons li { position: relative; padding: 8px 0 8px 26px; font-size: .93rem; border-bottom: 1px solid var(--line); }
.reasons li:last-child { border-bottom: 0; }
.reasons li::before { content: "•"; color: var(--accent); font-weight: 900; position: absolute; left: 4px; top: 8px; }
.reasons.ok li::before { content: "✓"; color: var(--ok); }
.reasons.flag li::before { content: "!"; color: #fff; background: var(--warn); border-radius: 50%; width: 18px; height: 18px; display: grid; place-items: center; font-size: .72rem; left: 0; top: 10px; }
.reasons.stop li::before { content: "■"; color: var(--info); }
.tier-state { border-radius: var(--r-lg); padding: 22px; border: 1px solid var(--line); background: #fff; }
.tier-state.t1 { border-left: 6px solid var(--ok); }
.tier-state.t2 { border-left: 6px solid var(--warn); }
.tier-state.t3 { border-left: 6px solid var(--info); }

/* ---------- Pay method cards ---------- */
.pay-methods { display: grid; gap: 12px; }
@media (min-width: 640px) { .pay-methods { grid-template-columns: 1fr 1fr; } }
.pay-opt { display: block; border: 1.5px solid var(--line-strong); border-radius: var(--r); padding: 16px; cursor: pointer; background: #fff; margin: 0; font-weight: 400; }
.pay-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); box-shadow: 0 0 0 3px rgba(242,106,33,.15); }
.pay-opt input { accent-color: var(--accent); margin-right: 8px; }
.pay-opt .t { font-weight: 700; font-size: 1rem; }
.pay-opt .d { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.mock-stripe { border: 1.5px solid var(--line); border-radius: var(--r); padding: 16px; background: #FAFBFD; }
.mock-field { height: 42px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: #fff; display: flex; align-items: center; padding: 0 12px; color: var(--faint); font-size: .9rem; margin-bottom: 10px; }

/* ---------- Status stepper ---------- */
.stepper { list-style: none; padding: 0; margin: 0; position: relative; }
.stepper li { position: relative; padding: 0 0 26px 48px; }
.stepper li::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--line); }
.stepper li:last-child::before { display: none; }
.stepper li.done::before { background: var(--ok); }
.stepper .dot { position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; background: #fff; border: 2px solid var(--line-strong); color: var(--faint); }
.stepper li.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.stepper li.current .dot { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 6px rgba(242,106,33,.18); }
.stepper li.future { opacity: .5; }
.stepper h4 { margin: 4px 0 2px; font-size: 1rem; }
.stepper .meta { font-size: .84rem; color: var(--muted); }
.stepper .mail { display: inline-flex; gap: 6px; align-items: center; font-size: .78rem; color: var(--muted); margin-top: 4px; }
@media (min-width: 900px) {
  .stepper.horizontal { display: grid; grid-template-columns: repeat(7, 1fr); }
  .stepper.horizontal li { padding: 44px 8px 0 0; }
  .stepper.horizontal li::before { left: 32px; right: 0; top: 15px; bottom: auto; width: auto; height: 2px; }
  .stepper.horizontal .dot { top: 0; }
}

/* Email preview */
.email { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.email-meta { background: #F1F5F9; padding: 12px 16px; font-size: .84rem; border-bottom: 1px solid var(--line); }
.email-meta div { display: flex; gap: 8px; }
.email-meta b { width: 58px; color: var(--muted); font-weight: 600; flex: 0 0 58px; }
.email-body { padding: 0; }
.email-brand { background: var(--ink); color: #fff; padding: 16px 22px; display: flex; align-items: center; gap: 10px; font-weight: 800; }
.email-brand .mark { width: 24px; height: 24px; }
.email-content { padding: 22px; font-size: .94rem; }

/* ---------- Project cards ---------- */
.proj { display: grid; gap: 14px; }
.proj-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: grid; gap: 12px; }
@media (min-width: 900px) { .proj-card { grid-template-columns: 1.4fr 1fr 1fr 1fr auto; align-items: center; } }
.proj-card .pn { font-family: var(--mono); font-weight: 800; font-size: 1.05rem; }
.proj-card .k { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.proj-card .v { font-weight: 600; }
.proj-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Prose (security/privacy) ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.8em; font-size: 1.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.toc { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.toc a { display: block; padding: 6px 10px; text-decoration: none; color: var(--muted); border-left: 2px solid var(--line); }
.toc a:hover { color: var(--ink); border-left-color: var(--accent); }
.draft-banner { background: repeating-linear-gradient(-45deg, #FFF3C4, #FFF3C4 14px, #FFE9A8 14px, #FFE9A8 28px); border: 2px solid #E0B341; color: #5A4300; border-radius: var(--r); padding: 14px 18px; font-weight: 700; }
.feature-list { display: grid; gap: 14px; }
@media (min-width: 720px) { .feature-list { grid-template-columns: 1fr 1fr; } }
.feature { display: flex; gap: 14px; }
.feature .ico { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 10px; background: var(--accent-tint); color: var(--accent-dark); display: grid; place-items: center; }
.feature .ico svg { width: 22px; height: 22px; }

/* Page header */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 28px 0 22px; }
.page-head h1 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); margin-bottom: .25em; }
.page-head p { color: var(--muted); margin: 0; max-width: 46em; }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }

/* Flow progress (upload→review→quote→checkout) */
.flow { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 12px; flex-wrap: wrap; font-size: .8rem; font-weight: 700; }
.flow li { padding: 5px 10px; border-radius: 999px; background: #EEF2F7; color: var(--muted); }
.flow li.done { background: var(--ok-tint); color: var(--ok); }
.flow li.now { background: var(--ink); color: #fff; }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 32px 24px; display: grid; gap: 18px; align-items: center; background-image: radial-gradient(600px 240px at 100% 0, rgba(242,106,33,.28), transparent 70%); }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { color: #C7D2E0; margin: 0; }
@media (min-width: 820px) { .cta-band { grid-template-columns: 1fr auto; padding: 40px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #94A3B8; padding: 44px 0 28px; margin-top: 56px; font-size: .9rem; }
.site-footer .cols { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
@media (min-width: 820px) { .site-footer .cols { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer .brand { margin-bottom: 10px; }
.site-footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: #CBD5E1; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer .legal { border-top: 1px solid var(--navy-2); margin-top: 32px; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .8rem; }
.footer-col-wide { grid-column: 1 / -1; }
@media (min-width: 820px) { .footer-col-wide { grid-column: auto; } }

/* Modal-ish confirmation */
.confirm-panel { text-align: center; padding: 48px 24px; }
.confirm-panel .big-check { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-tint); color: var(--ok); display: grid; place-items: center; margin: 0 auto 18px; font-size: 2rem; font-weight: 900; }

/* Utilities */
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:32px}
.mb-0{margin-bottom:0}.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}
.divider { height: 1px; background: var(--line); margin: 20px 0; border: 0; }

@media (min-width: 960px) { .layout-side.layout-toc { grid-template-columns: minmax(0,1fr) 240px; } }

/* Intake routing callout (upload, review) */
.callout-intake { background: var(--accent-tint); border-color: #F7C9A9; color: var(--text); }
.callout-intake svg { color: var(--accent-dark); }
.callout-intake a { color: var(--accent-dark); font-weight: 600; }

/* Intake confirmation: what happens next */
.next-steps { list-style: none; counter-reset: ns; padding: 0; margin: 0 auto 18px; max-width: 30em; text-align: left; }
.next-steps li { counter-increment: ns; position: relative; padding: 0 0 14px 40px; }
.next-steps li::before { content: counter(ns); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; background: var(--surface); border: 2px solid var(--line-strong); color: var(--muted); }
.next-steps li.done::before { content: "✓"; background: var(--ok); border-color: var(--ok); color: #fff; }
.next-steps li:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 28px; bottom: 2px; width: 2px; background: var(--line); }
.next-steps b { display: block; }
.next-steps li > span { display: block; font-size: .88rem; color: var(--muted); }

/* Hero trust badge (homepage) */
.hero-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 1rem; padding: 5px 12px; border: 1px solid var(--navy-2); border-radius: 999px; background: rgba(255,255,255,.06); color: #E2E8F0; font-size: .82rem; font-weight: 600; letter-spacing: .02em; }
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* BOM formatting guide (upload page) */
.bom-guide .guide-steps { padding-left: 1.3rem; margin: 0 0 1rem; display: grid; gap: .7rem; }
.bom-guide .guide-steps li::marker { color: var(--accent-dark); font-weight: 800; }
.col-list { list-style: none; padding: 0; margin: .6rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 6px; }
.col-list li { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; font-size: .86rem; font-weight: 600; }
.col-list li.opt { border-style: dashed; background: var(--surface); font-weight: 500; }
.bom-guide td { overflow-wrap: anywhere; }
.mistakes { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: var(--bg); }
.mistakes summary { cursor: pointer; font-weight: 700; }
.mistakes[open] summary { margin-bottom: .5rem; }

/* ---- Oct 22 3:40 PM: imagery + approved logo ---- */
.hero-image { position: relative; background: var(--ink); }
.hero-image .hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-image .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: right center; display: block; }
.hero-image::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(11,27,43,.92) 0%, rgba(11,27,43,.75) 45%, rgba(11,27,43,.15) 100%); }
@media (max-width: 959px) { .hero-image::after { background: linear-gradient(180deg, rgba(11,27,43,.88), rgba(11,27,43,.80)); } }
.hero-image > .wrap { position: relative; z-index: 1; }
.hero-image .hero-upload { background: rgba(11,27,43,.72); }
.accent-img { width: 80px; height: 80px; display: block; margin-bottom: 10px; }
.pattern-bg { background: #0E2238 url("../website-imagery/bg-strand-pattern-tile.svg") repeat; background-size: 240px 208px; }
.pattern-bg h2, .pattern-bg h3 { color: #fff; }
.pattern-bg .muted { color: #A9B7C9; }
.pattern-bg .card { background: rgba(255,255,255,.96); }
.pattern-bg .card .muted { color: var(--muted); }
.pattern-bg .card h3 { color: var(--ink); }
.showcase-grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .showcase-grid { grid-template-columns: repeat(3, 1fr); } }
.showcase figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.showcase img { width: 100%; height: auto; display: block; aspect-ratio: 16/9; object-fit: cover; }
.showcase figcaption { padding: 12px 16px 16px; color: var(--muted); font-size: .92rem; }
.showcase figcaption strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 2px; }
.page-banner { width: 100%; height: 160px; object-fit: cover; border-radius: var(--r-lg); display: block; margin-bottom: 18px; }
@media (min-width: 960px) { .page-banner { height: 200px; } }
.pattern-bg .eyebrow { color: #FFB48A; }
.seg a { font-size: .88rem; font-weight: 650; color: var(--muted); padding: 8px 14px; border-radius: 7px; text-decoration: none; }
.seg a[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.sample-jobs { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Preliminary estimate flag (2026-10-22): chunky, bold, copper ---------- */
.badge-estimate { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: var(--ink); font-weight: 900; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1; padding: 8px 12px; border-radius: var(--r-sm); border: 2px solid var(--accent-dark); white-space: nowrap; }
.badge-estimate::before { content: "≈"; font-size: 1.05rem; font-weight: 900; }
.badge-estimate.sm { font-size: .72rem; padding: 5px 8px; border-width: 1.5px; }
.badge-verified { display: inline-flex; align-items: center; gap: 6px; background: var(--ok); color: #fff; font-weight: 900; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1; padding: 8px 12px; border-radius: var(--r-sm); white-space: nowrap; }
.badge-verified::before { content: "✓"; }
.estimate-flag { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; background: var(--accent-tint); border: 2px solid var(--accent); border-radius: var(--r); padding: 14px 16px; margin: 0 0 16px; }
.estimate-flag p { margin: 0; font-weight: 700; color: var(--ink); flex: 1 1 260px; }
.estimate-flag.compact { padding: 10px 12px; gap: 8px 10px; margin: 12px 0 0; }
.estimate-flag.compact p { font-size: .88rem; flex-basis: 180px; }
.estimate-flag.verified { background: var(--ok-tint); border-color: var(--ok); }
.estimate-flag.mt-1 { margin-top: 10px; }

/* ---------- Mock login gate (2026-10-22) ---------- */
.site-nav .nav-login { color: #fff; font-weight: 650; }
@media (min-width: 960px) { .site-nav .nav-login { border: 1px solid rgba(255,255,255,.28); margin-left: 6px; } }
.login-card { max-width: 520px; }
.login-card .seg { display: flex; }
.login-card .seg button { flex: 1; }
.form-err { color: var(--bad, #C0362C); font-weight: 650; min-height: 1.2em; margin: 4px 0 8px; }
.form-err:empty { margin: 0; min-height: 0; }
@media (min-width: 960px) { .site-nav a { white-space: nowrap; } }
@media (min-width: 960px) and (max-width: 1180px) { .site-nav a { padding: 8px 7px; font-size: .86rem; } .site-nav .btn { margin-left: 6px; padding: 9px 12px; } .brand { font-size: .95em; } }
.clock-note { color: var(--ink); }

/* T95: drawing preview step (drawing-preview.html) */
.block { display: block; }
.dp-controls { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-bottom: 16px; align-items: flex-end; }
.dp-lbl { font-weight: 650; margin-bottom: 4px; }
.dp-frame { border: 1px solid var(--line-strong); border-radius: var(--r); background: #fff; overflow: auto; max-height: 78vh; padding: 10px; }
.dp-frame:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.dp-frame figure { margin: 0 0 14px; }
.dp-frame figure:last-child { margin-bottom: 0; }
.dp-frame figure[hidden] { display: none; }
.dp-frame img { display: block; width: 100%; height: auto; border: 1px solid var(--line); background: #fff; }
.dp-frame figcaption { font-size: .78rem; color: var(--muted); font-weight: 600; margin-top: 4px; }
.dp-frame.read img { width: 1800px; max-width: none; }
.dp-counts { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 14px; }
@media (min-width: 720px) { .dp-counts { grid-template-columns: repeat(3, 1fr); } }
.dp-counts [hidden], [data-job][hidden] { display: none !important; }
.dp-answer { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
@media (min-width: 720px) { .dp-answer { grid-template-columns: 1fr 1fr; } }
.dp-answer .check-card { cursor: pointer; display: block; }
.dp-answer .check-card input { margin-right: 6px; }
.alert[hidden], .field[hidden], .dp-frame figure[hidden] { display: none !important; }

/* ---- Live test (testdrive.html + server-rendered results) ---- */
.td-drop { border: 2px dashed var(--line-strong); border-radius: var(--r-lg); background: #fff; padding: 26px 18px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.td-drop:hover, .td-drop:focus-visible, .td-drop.drag { border-color: var(--accent); background: var(--accent-tint); outline: none; }
.td-drop .icon { width: 40px; height: 40px; margin: 0 auto 8px; color: var(--accent); }
.td-drop .types { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.td-drop input[type=file] { display: none; }
.td-form .file-list li button { border: 0; background: none; color: var(--bad); font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }
.td-example { background: #FFF7E0; border: 2px solid #E0A800; border-radius: var(--r-md); padding: 12px 16px; font-weight: 700; margin-bottom: 16px; }
.td-example.live { background: #EAF7EE; border-color: #2F9E5B; }
.td-kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.td-kv dt { color: var(--muted); font-size: .85rem; }
.td-kv dd { margin: 0; overflow-wrap: anywhere; }
.td-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 0 0 4px; }
.td-stats .stat { background: var(--bg); border-radius: var(--r-md); padding: 10px 14px; }
.td-stats .stat .v { font-size: 1.5rem; font-weight: 800; display: block; }
.td-stats .stat .l { color: var(--muted); font-size: .8rem; }
.td-ex { color: #8A6100; font-size: .72rem; font-weight: 800; letter-spacing: .03em; margin-left: 4px; white-space: nowrap; }
.td-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.td-previews figure { margin: 0; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; padding: 8px; }
.td-previews img { display: block; width: 100%; height: auto; }
.td-previews figcaption { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.td-pre { background: #0B1B2B; color: #E6EDF5; padding: 14px; border-radius: var(--r-md); overflow-x: auto; font-size: .78rem; line-height: 1.45; max-height: 520px; }
.td-q { border-left: 4px solid var(--accent); padding: 8px 14px; background: var(--bg); border-radius: 0 var(--r-sm) var(--r-sm) 0; margin-top: 10px; }
.td-q p { margin: 0 0 4px; }
.td-right { text-align: right; white-space: nowrap; }
.td-form .alert, .td-offline { overflow-wrap: anywhere; }

/* t108 please-verify */
.verify-item { border-top: 1px solid var(--line, #D5DEE8); padding: 14px 0; }
.verify-item:first-of-type { border-top: 0; padding-top: 0; }
.verify-q p { margin: 6px 0 8px; }
.verify-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 8px 0; }
.verify-actions .check { margin: 0; }
.verify-edit { margin-top: 8px; padding: 10px 12px; background: var(--bg, #F7F9FC); border-radius: 8px; }
.verify-readback { margin: 8px 0 0; padding: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
details.looks-right > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; }
details.looks-right > summary::-webkit-details-marker { display: none; }
details.looks-right > summary h2 { display: inline; }
#verify-badge { white-space: nowrap; }
