/* costsegw2.com — shared editorial-financial design tokens */

:root {
  --bg: #ffffff;
  --bg-warm: #faf8f3;
  --bg-warm-deep: #f5f0e3;
  --fg: #0b1220;
  --fg-muted: #4a5c73;
  --fg-soft: #6f7d92;
  --accent: #0a5ad9;
  --accent-deep: #0848ac;
  --gold: #c9a24a;
  --gold-deep: #a8852e;
  --positive: #1f7a4f;
  --negative: #a83232;
  --border: #dde3ee;
  --border-strong: #aab5c8;
  --ink-rule: #0b1220;

  --serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

/* Reset within prototypes */
.cs-root *, .cs-root *::before, .cs-root *::after { box-sizing: border-box; }
.cs-root { font-family: var(--sans); color: var(--fg); background: var(--bg); -webkit-font-smoothing: antialiased; font-feature-settings: "ss01", "ss02"; }
.cs-root h1, .cs-root h2, .cs-root h3, .cs-root h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
.cs-root p { margin: 0; text-wrap: pretty; }
.cs-root a { color: inherit; text-decoration: none; }
.cs-root button { font: inherit; cursor: pointer; }
.cs-root .num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.cs-root .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.cs-root .eyebrow { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); }
.cs-root hr { border: 0; border-top: 1px solid var(--border); margin: 0; }

/* Buttons */
.cs-root .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px;
  font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: 0.01em;
  border-radius: 2px; border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .08s;
  white-space: nowrap;
}
.cs-root .btn:active { transform: translateY(1px); }
.cs-root .btn-primary { background: var(--accent); color: #fff; }
.cs-root .btn-primary:hover { background: var(--accent-deep); }
.cs-root .btn-secondary { background: transparent; color: var(--fg); border-color: var(--fg); }
.cs-root .btn-secondary:hover { background: var(--fg); color: #fff; }
.cs-root .btn-ghost { background: transparent; color: var(--fg); }
.cs-root .btn-ghost:hover { color: var(--accent); }
.cs-root .btn-arrow::after { content: "→"; transition: transform .15s; font-family: var(--sans); }
.cs-root .btn-arrow:hover::after { transform: translateX(3px); }

/* Section padding */
.cs-root .section { padding: 96px 64px; }
.cs-root .section-narrow { max-width: 1200px; margin: 0 auto; }
.cs-root .container { max-width: 1200px; margin: 0 auto; }
@media (max-width: 720px) {
  .cs-root .section { padding: 60px 22px; }
}

/* Hairline-ruled list (numbered editorial) */
.cs-root .ruled-list { display: flex; flex-direction: column; }
.cs-root .ruled-list > * { padding: 28px 0; border-top: 1px solid var(--border); }
.cs-root .ruled-list > *:last-child { border-bottom: 1px solid var(--border); }

/* Tabular table proof block */
.cs-root .proof {
  border-top: 1px solid var(--ink-rule);
  border-bottom: 1px solid var(--ink-rule);
  padding: 18px 0;
  font-variant-numeric: tabular-nums;
}
.cs-root .proof-row { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 7px 0; align-items: baseline; }
.cs-root .proof-row + .proof-row { border-top: 1px dotted var(--border-strong); }
.cs-root .proof-key { color: var(--fg-muted); font-size: 14px; }
.cs-root .proof-val { font-family: var(--serif); font-size: 18px; font-weight: 500; }
.cs-root .proof-val.pos { color: var(--positive); }
.cs-root .proof-val.gold { color: var(--gold-deep); }

/* Estimator quiz shared */
.cs-root .quiz-step-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.cs-root .quiz-pill {
  height: 56px; padding: 0 18px;
  background: #fff;
  border: 1px solid var(--border-strong);
  color: var(--fg);
  font-size: 15px; font-weight: 500;
  border-radius: 2px;
  transition: background .12s, border-color .12s, color .12s;
  text-align: left; display: inline-flex; align-items: center; gap: 10px;
}
.cs-root .quiz-pill:hover { border-color: var(--fg); background: var(--bg-warm); }
.cs-root .quiz-pill.is-active { border-color: var(--accent); background: var(--accent); color: #fff; }
.cs-root .quiz-progress { display: flex; gap: 6px; align-items: center; }
.cs-root .quiz-dot { width: 22px; height: 2px; background: var(--border-strong); }
.cs-root .quiz-dot.is-on { background: var(--fg); }

/* Trust masthead */
.cs-root .masthead {
  display: flex; align-items: center; justify-content: center; gap: 28px;
  flex-wrap: wrap;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-muted);
  padding: 22px 0; border-top: 1px solid var(--ink-rule); border-bottom: 1px solid var(--ink-rule);
}
.cs-root .masthead .dot { width: 4px; height: 4px; background: var(--gold); border-radius: 50%; }

/* Nav */
.cs-root .nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 64px; border-bottom: 1px solid var(--border); }
.cs-root .nav-brand { display: flex; align-items: baseline; gap: 12px; }
.cs-root .nav-brand-mark { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.cs-root .nav-brand-tag { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-muted); }
.cs-root .nav-links { display: flex; gap: 28px; align-items: center; font-size: 14px; color: var(--fg-muted); }
.cs-root .nav-links a:hover { color: var(--fg); }
@media (max-width: 720px) {
  .cs-root .nav { padding: 14px 22px; }
  .cs-root .nav-links { display: none; }
}

/* Property image placeholder — subtle striped duotone */
.cs-root .img-placeholder {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(11,18,32,0.04) 0 1px, transparent 1px 6px),
    linear-gradient(180deg, #ecedf0 0%, #d9dde4 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-muted);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
}
.cs-root .img-placeholder::before, .cs-root .img-placeholder::after {
  content: ""; position: absolute; inset: 8px; border: 1px solid rgba(11,18,32,0.08);
  pointer-events: none;
}
