/* BuildWorld Store — shared identity.
   Drafting-sheet DNA (paper/ink/teal/brass, matching designer.html) warmed up
   for homeowners: big friendly type, prices always visible, zero radius. */

:root {
  /* Build Anything identity — spruce ground, site-orange action, bone sheets */
  --paper: #faf9f7;
  --card: #ffffff;
  --ink: #17160f;
  --ink-soft: #72716c;
  --ink-faint: #acaaa6;
  --line: #e3e1da;
  --line-soft: #eceadf;
  --teal: #1a0088;           /* structure / labels (was teal, now deep spruce) */
  --teal-dark: #0f0050;
  --teal-tint: #ebeef6;
  --orange: #1a0088;         /* THE action colour */
  --orange-deep: #0f0050;
  --cream: #faf9f7;
  --cream-soft: #acaaa6;
  --brass: #0f0050;
  --brass-tint: #ebeef6;
  --font-display: 'Newsreader', Georgia, serif;
  --font-body: 'Figtree', system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
}
::selection { background: var(--teal); color: #fff; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--teal-dark); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- header ---------- */
.st-head {
  display: flex; align-items: center; gap: 28px;
  padding: 14px 28px;
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
  position: sticky; top: 0; z-index: 60;
}
.st-logo {
  font-family: var(--font-mono); font-weight: 600; font-size: 13.5px;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--ink);
  display: flex; align-items: baseline; gap: 8px; white-space: nowrap;
}
.st-logo span {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  color: var(--teal); letter-spacing: 0.18em; border: 1px solid var(--teal);
  padding: 1px 5px; transform: translateY(-2px);
}
.st-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.st-nav a {
  text-decoration: none; color: var(--ink-soft);
  font-size: 14px; font-weight: 500; padding: 6px 12px;
  border: 1px solid transparent;
}
.st-nav a:hover { color: var(--ink); border-color: var(--line); }
.st-nav a.on { color: var(--teal-dark); border: 1px solid var(--teal); background: var(--teal-tint); }

/* ---------- page grid ---------- */
/* Fluid at every window size — the content column stretches, the quote rail
   scales with the viewport, gutters breathe with vw. No fixed page width. */
.st-wrap {
  width: 100%; margin: 0 auto; padding: 32px clamp(20px, 3vw, 56px) 120px;
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 27vw, 460px);
  gap: clamp(24px, 2.6vw, 48px);
  align-items: start;
}
.st-main { min-width: 0; }

/* ---------- step rail ---------- */
.st-steps {
  display: flex; gap: 0; margin-bottom: 30px;
  border: 1px solid var(--line); background: var(--card);
  overflow-x: auto;
}
.st-steps li {
  list-style: none; flex: 1; display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-right: 1px solid var(--line-soft);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-faint); white-space: nowrap;
}
.st-steps li:last-child { border-right: 0; }
.st-steps li b { font-family: var(--font-mono); font-weight: 500; font-size: 11px; }
.st-steps li.on { color: var(--teal-dark); background: var(--teal-tint); box-shadow: inset 0 -2px 0 var(--teal); }
.st-steps li.done { color: var(--ink-soft); }
.st-steps li.done b::after { content: ' ✓'; color: var(--teal); }

/* ---------- steps ---------- */
.st-step { display: none; }
.st-step.on { display: block; animation: stfade 0.25s ease; }
@keyframes stfade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.st-kicker {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 10px;
}
.st-q {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 3.1vw, 52px);
  line-height: 1.05; letter-spacing: 0.01em; margin-bottom: 10px; text-transform: uppercase;
}
.st-sub { color: var(--ink-soft); max-width: 560px; margin-bottom: 26px; }

/* option cards */
.st-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 26px; }
.st-opt {
  background: var(--card); border: 1px solid var(--line); padding: 18px 16px 16px;
  cursor: pointer; text-align: left; position: relative; transition: border-color 0.15s ease;
}
.st-opt:hover { border-color: var(--ink-soft); }
.st-opt.sel { border: 2px solid var(--teal); padding: 17px 15px 15px; background: #fff; }
.st-opt.sel::after {
  content: '✓'; position: absolute; top: 8px; right: 10px;
  color: #fff; background: var(--teal); width: 20px; height: 20px;
  display: grid; place-items: center; font-size: 12px;
}
.st-opt svg { display: block; margin-bottom: 12px; }
.st-opt h3 { font-size: 16px; font-weight: 600; margin-bottom: 3px; }
.st-opt p { font-size: 13px; color: var(--ink-soft); line-height: 1.4; }

/* form bits */
.st-field { margin-bottom: 18px; }
.st-field label {
  display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 6px; font-weight: 600;
}
.st-input, .st-select {
  width: 100%; background: #fff; border: 1px solid var(--line);
  padding: 12px 14px; font-size: 16px; border-radius: 0; appearance: none;
}
.st-input:focus, .st-select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.st-row { display: flex; gap: 14px; flex-wrap: wrap; }
.st-row .st-field { flex: 1; min-width: 150px; }

/* sliders */
.st-slider { background: var(--card); border: 1px solid var(--line); padding: 14px 16px 10px; margin-bottom: 14px; }
.st-slider .lbl { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.st-slider .lbl b { font-family: var(--font-mono); font-weight: 500; color: var(--teal-dark); }
.st-slider input[type=range] { width: 100%; accent-color: var(--teal); }

/* swatches */
.st-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.st-swatch { width: 54px; cursor: pointer; border: 1px solid var(--line); background: var(--card); padding: 4px; }
.st-swatch .chip { height: 34px; }
.st-swatch p { font-size: 9.5px; text-align: center; margin-top: 3px; color: var(--ink-soft); line-height: 1.2; }
.st-swatch.sel { border: 2px solid var(--teal); padding: 3px; }

/* counters */
.st-count { display: flex; align-items: center; gap: 0; border: 1px solid var(--line); background: #fff; width: max-content; }
.st-count button { width: 38px; height: 38px; border: 0; background: var(--card); cursor: pointer; font-size: 18px; }
.st-count button:hover { background: var(--teal-tint); }
.st-count b { font-family: var(--font-mono); font-weight: 500; min-width: 44px; text-align: center; }

/* badges */
.st-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px;
  border: 1px solid var(--teal); color: var(--teal-dark); background: var(--teal-tint);
  padding: 5px 10px; margin: 4px 8px 4px 0;
}
.st-badge::before { content: ''; width: 7px; height: 7px; background: var(--teal); }

/* fear-killer callout */
.st-assure {
  border: 2px solid var(--teal); background: #fff; padding: 22px 24px; margin: 8px 0 24px;
  position: relative;
}
.st-assure::before {
  content: 'WE HANDLE IT'; position: absolute; top: -9px; left: 16px;
  background: var(--teal); color: #fff; font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.2em; padding: 2px 8px;
}
.st-assure h3 { font-size: 18px; margin-bottom: 6px; }
.st-assure p { color: var(--ink-soft); font-size: 14.5px; }
.st-assure ul { margin: 10px 0 0 18px; color: var(--ink-soft); font-size: 14.5px; }
.st-assure li { margin-bottom: 4px; }

/* info note */
.st-note { border-left: 3px solid var(--brass); background: var(--brass-tint); padding: 12px 16px; font-size: 14px; color: var(--ink-soft); margin-bottom: 22px; }

/* nav buttons */
.st-nav-btns { display: flex; gap: 12px; margin-top: 28px; align-items: center; }
.st-btn {
  border: 0; cursor: pointer; font-weight: 600; font-size: 15px;
  padding: 14px 30px; letter-spacing: 0.04em; border-radius: 0;
  background: var(--teal); color: #fff; transition: background 0.15s ease;
}
.st-btn:hover { background: var(--teal-dark); }
.st-btn.ghost { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); }
.st-btn.ghost:hover { color: var(--ink); border-color: var(--ink-soft); }
.st-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.st-btn.big { font-size: 17px; padding: 16px 36px; }

/* map + preview canvases */
.st-map { height: 380px; border: 2px solid var(--ink); background: #e3e1da; position: relative; margin-bottom: 16px; }
.st-map .hint {
  position: absolute; left: 10px; bottom: 10px; z-index: 5;
  background: rgba(23,22,15,0.85); color: #fff; font-size: 12px; padding: 6px 10px;
  font-family: var(--font-mono);
}
.st-3d { height: 340px; border: 2px solid var(--ink); background: linear-gradient(#e3e1da, #f3f4f6); margin-bottom: 16px; position: relative; }
.st-3d canvas { display: block; }
.st-3d .tag {
  position: absolute; top: 8px; left: 10px; font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-soft); letter-spacing: 0.12em;
}

/* ---------- QUOTE SHEET (the signature) ---------- */
.qs {
  position: sticky; top: 84px;
  background: #fff; border: 2px solid var(--ink);
  font-size: 14px;
}
.qs-head { border-bottom: 2px solid var(--ink); padding: 12px 16px 10px; display: flex; justify-content: space-between; align-items: baseline; }
.qs-head h2 { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; }
.qs-head span { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); }
.qs-meta { display: flex; border-bottom: 1px solid var(--line-soft); }
.qs-meta div { flex: 1; padding: 8px 16px; border-right: 1px solid var(--line-soft); }
.qs-meta div:last-child { border-right: 0; }
.qs-meta small { display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.16em; color: var(--ink-faint); text-transform: uppercase; }
.qs-meta b { font-size: 13px; font-weight: 600; }
.qs-lines { padding: 12px 16px; min-height: 90px; }
.qs-line { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--line-soft); }
.qs-line:last-child { border-bottom: 0; }
.qs-line .l { font-size: 13.5px; }
.qs-line .l small { display: block; color: var(--ink-faint); font-size: 11.5px; }
.qs-line .a { font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }
.qs-line .a.inc { color: var(--teal-dark); font-size: 11px; letter-spacing: 0.06em; }
.qs-empty { color: var(--ink-faint); font-size: 13px; padding: 10px 0; font-style: italic; }
.qs-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--ink); padding: 12px 16px; }
.qs-total small { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.qs-total b { font-family: var(--font-mono); font-weight: 600; font-size: 24px; color: var(--brass); }
.qs-check { border-top: 1px solid var(--line-soft); padding: 10px 16px 12px; }
.qs-check div { display: flex; gap: 9px; align-items: baseline; padding: 3px 0; font-size: 13px; color: var(--ink-faint); }
.qs-check div::before { content: '·'; font-family: var(--font-mono); color: var(--line); width: 14px; text-align: center; border: 1px solid var(--line); font-size: 11px; line-height: 14px; height: 15px; flex: none; transform: translateY(1px); }
.qs-check div.done { color: var(--ink); }
.qs-check div.done::before { content: '✓'; color: #fff; background: var(--teal); border-color: var(--teal); }
.qs-foot { padding: 9px 16px; border-top: 1px solid var(--line-soft); font-size: 11px; color: var(--ink-faint); }

/* mobile quote sheet -> bottom bar */
.qs-mob-toggle { display: none; }
@media (max-width: 920px) {
  .st-wrap { grid-template-columns: 1fr; padding-bottom: 150px; }
  .qs { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 70; border-left: 0; border-right: 0; max-height: 72vh; overflow: auto; }
  .qs:not(.open) .qs-meta, .qs:not(.open) .qs-lines, .qs:not(.open) .qs-check, .qs:not(.open) .qs-foot { display: none; }
  .qs-mob-toggle {
    display: block; width: 100%; border: 0; background: var(--ink); color: #fff;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; padding: 8px; cursor: pointer;
  }
  .st-q { font-size: 32px; }
}

/* lead form */
.st-lead { background: var(--card); border: 1px solid var(--line); padding: 22px; max-width: 560px; }
.st-lead h3 { font-size: 18px; margin-bottom: 4px; }
.st-lead > p { font-size: 14px; color: var(--ink-soft); margin-bottom: 16px; }
.st-lead .ok { border: 2px solid var(--teal); background: var(--teal-tint); padding: 18px; }
.st-lead .ok h3 { color: var(--teal-dark); }
.st-lead .err { color: #b23b2e; font-size: 13.5px; margin-top: 8px; }

/* footer */
.st-foot {
  border-top: 2px solid var(--ink); margin-top: 60px;
  padding: 26px 28px 40px; display: flex; gap: 24px; flex-wrap: wrap;
  justify-content: space-between; color: var(--ink-faint); font-size: 13px;
}
.st-foot b { font-family: var(--font-mono); font-size: 16px; letter-spacing: 0.06em; color: var(--ink); text-transform: uppercase; }

/* schedule table (windows) */
.st-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); font-size: 13.5px; margin-bottom: 16px; }
.st-table th { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); text-align: left; padding: 8px 10px; border-bottom: 2px solid var(--ink); background: var(--card); }
.st-table td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); }
.st-table td.m { font-family: var(--font-mono); font-size: 12.5px; white-space: nowrap; }
.st-table .del { border: 0; background: none; cursor: pointer; color: var(--ink-faint); font-size: 15px; padding: 2px 6px; }
.st-table .del:hover { color: #b23b2e; }

/* compare bars */
.st-compare { margin: 18px 0 24px; }
.st-compare .bar { margin-bottom: 14px; }
.st-compare .bar .cap { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.st-compare .bar .cap b { font-family: var(--font-mono); }
.st-compare .bar .track { height: 26px; background: var(--card); border: 1px solid var(--line); }
.st-compare .bar .fill { height: 100%; }
.st-compare .bar.us .fill { background: var(--teal); }
.st-compare .bar.them .fill { background: var(--ink-faint); }


/* ================= Build Anything override layer (Aug 2026) ================= */
/* header — the cover-sheet bar, same as buildworld.ai */
.st-head { background: var(--paper); border-bottom: 1px solid var(--line); }
.st-logo { color: var(--ink); }
.st-logo span { color: var(--teal); border-color: var(--teal); }
.st-nav a { color: var(--ink); }
.st-nav a:hover, .st-nav a.on { color: var(--teal-dark); background: transparent; }
/* actions — site orange, ink text */
.st-btn { background: var(--ink); color: #fff; }
.st-btn:hover { background: var(--orange); color: #fff; }
.st-btn.ghost { background: transparent; color: var(--ink-soft); }
.by-fork .go, .st-lead .st-btn { background: var(--ink); color: #fff; }
.by-fork a:hover { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.st-opt.sel { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
/* calmer display type — sentence-friendly, not shouting */
.st-q, .by-hero h1 { font-weight: 600; text-transform: none; letter-spacing: 0.01em; }
.by-hero h1 em { color: var(--orange); }
/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
/* mobile polish */
input[type=range] { height: 30px; accent-color: var(--orange); }
@media (max-width: 640px) {
  .st-head { gap: 14px; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); }
  .st-nav { gap: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .st-nav::-webkit-scrollbar { display: none; }
  .st-nav a { padding: 6px 8px; font-size: 12px; white-space: nowrap; }
  .st-steps li { flex: 0 0 auto; padding: 10px 10px; }
  .st-steps li:not(.on) .lbl { display: none; }
  .st-steps li.on { flex: 1 1 auto; }
  .st-btn { padding: 13px 22px; }
  .st-nav-btns { flex-wrap: wrap; }
  .st-sheet { margin-left: -4px; margin-right: -4px; }
}
