/* HardPart Media brand: #EC4923 orange-red, near-black #0A0A0A, warm cream #F0EBE3, white. Interstate is the brand face; Montserrat is the declared web fallback. */
@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root { --red: #EC4923; --red-d: #C93A17; --ink: #0A0A0A; --ink2: #1F1F1F; --grey: #555555; --line: #E2DCD2; --cream: #F0EBE3; --paper: #FFFFFF; --soft: #FDEEEA; --ok: #2F6B3B; --radius: 14px; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Interstate", "Montserrat", "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--cream); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button { font: inherit; cursor: pointer; }
a { color: var(--red-d); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: 1.9rem; font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 .75em; }

/* Header */
.bar { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); }
.bar-in { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 8px 16px; min-height: 56px; }
.bar .logo { height: 34px; width: auto; }
.bar .mins { justify-self: end; font-size: .8rem; color: var(--grey); }
.back { justify-self: start; }
.prog { height: 4px; background: var(--line); }
.prog div { height: 100%; background: var(--red); transition: width .25s ease; }

/* Landing */
.landing .hero { background: var(--ink); color: #fff; padding: 40px 22px 44px; text-align: left; }
.landing .hero > * { max-width: 680px; margin-left: auto; margin-right: auto; }
.logo-lg { display: block; height: 64px; width: auto; margin-bottom: 28px; }
.eyebrow { color: var(--red); font-weight: 700; font-size: .9rem; letter-spacing: .02em; margin-bottom: 10px; }
.landing h1 { font-size: 2.2rem; color: #fff; }
.lede { font-size: 1.08rem; color: #E9E5DF; max-width: 34em; }
.meta { color: #BDB7AE; font-size: .9rem; margin-top: 14px; }
.trust { max-width: 760px; margin: 0 auto; padding: 28px 22px 8px; display: grid; gap: 14px; }
.trust > div { background: var(--paper); border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); }
.trust p { color: var(--ink2); margin: 0; font-size: .95rem; }
.foot { max-width: 760px; margin: 0 auto; padding: 24px 22px 40px; color: var(--grey); font-size: .8rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; padding: 14px 22px; font-weight: 700; text-decoration: none; min-height: 48px; }
.btn.primary { background: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-d); }
.btn.primary:disabled { opacity: .6; }
.btn.big { width: 100%; font-size: 1.05rem; max-width: 420px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); margin-top: 10px; width: 100%; max-width: 420px; }
.link { background: none; border: 0; color: var(--ink2); text-decoration: underline; padding: 10px 4px; min-height: 44px; }
.link.light { color: #E9E5DF; display: block; margin-top: 6px; }
.landing .btn.big { margin-top: 18px; }

/* Question */
.q { max-width: 640px; margin: 0 auto; padding: 18px 14px 40px; }
.card { background: var(--paper); border-radius: var(--radius); padding: 22px 18px; border: 1px solid var(--line); }
.section { color: var(--red-d); font-weight: 700; font-size: .82rem; letter-spacing: .02em; margin-bottom: 6px; }
.help { color: var(--grey); font-size: .95rem; }
.opts { display: grid; gap: 10px; margin: 16px 0; }
.opts.grid { grid-template-columns: 1fr 1fr; }
.opt { text-align: left; background: #FAF8F5; border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; min-height: 52px; color: var(--ink); display: flex; flex-direction: column; justify-content: center; transition: border-color .12s, background .12s; }
.opt small { color: var(--grey); font-size: .8rem; margin-top: 2px; }
.opt:hover { border-color: #CFC6B8; }
.opt.on { border-color: var(--red); background: var(--soft); box-shadow: inset 0 0 0 1px var(--red); }
.opts.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.opts.chips .opt { min-height: 44px; padding: 9px 14px; border-radius: 999px; font-size: .93rem; }
.row { margin: 14px 0 6px; }
.rowlabel { font-weight: 650; margin-bottom: 6px; }
.row .opts { margin: 6px 0; }
.money { display: flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); border-radius: 12px; padding: 4px 12px; background: #FAF8F5; max-width: 340px; }
.money input { border: 0; background: transparent; font: inherit; padding: 10px 0; width: 100%; outline: none; }
.money .per { color: var(--grey); font-size: .85rem; white-space: nowrap; }
.q .btn.primary { width: 100%; margin-top: 8px; }
.skip { display: block; margin: 10px auto 0; color: var(--grey); }

/* Gate */
.gate h2 { font-size: 1.45rem; }
.field { display: block; margin: 12px 0; }
.field span { display: block; font-weight: 650; font-size: .92rem; margin-bottom: 4px; }
.field input { width: 100%; font: inherit; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #FAF8F5; }
.field input:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.field input.bad { border-color: var(--red); }
.ferr { color: var(--red-d); font-size: .85rem; font-style: normal; display: block; min-height: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: .92rem; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--red); }
.err { color: var(--red-d); font-weight: 600; min-height: 1em; }
.fine { color: var(--grey); font-size: .8rem; margin-top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Results */
.results { max-width: 760px; margin: 0 auto; padding: 18px 14px 20px; }
.summary { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 22px 18px; }
.summary .section { color: var(--red); }
.summary h1 { font-size: 1.55rem; color: #fff; }
.summary .help { color: #D8D2C9; }
.tiles { display: grid; gap: 10px; margin-top: 14px; }
.tile { background: #1C1C1C; border-radius: 12px; padding: 14px; border: 1px solid #2E2E2E; }
.tile .tl { color: #BDB7AE; font-size: .85rem; margin: 0 0 4px; font-weight: 600; }
.tile .big { font-size: 1.35rem; font-weight: 800; margin: 0 0 4px; color: #fff; }
.tile .sub { color: #D8D2C9; font-size: .88rem; margin: 0; }
.tile.rev { border-color: #5A3A2E; background: #221815; }
.block { background: var(--paper); border-radius: var(--radius); padding: 20px 18px; margin-top: 14px; border: 1px solid var(--line); }
.first { border-left: 5px solid var(--red); }
.build { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-top: 12px; background: #FDFCFA; }
.bh { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.rank { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chip { display: inline-block; background: var(--cream); border-radius: 999px; padding: 4px 10px; font-size: .78rem; font-weight: 600; color: var(--ink2); }
.chip.q { background: var(--soft); color: var(--red-d); }
.chip.conf-high { background: #E3F0E5; color: var(--ok); }
.chip.conf-medium { background: #FFF3D6; color: #7A5500; }
.chip.conf-low { background: #F3E3E0; color: #8A2E1A; }
.summary .chip { vertical-align: middle; margin-right: 4px; }
.val p { margin: 4px 0; }
.revline { color: #8A3A1F; font-weight: 600; }
.note { background: var(--cream); border-radius: 10px; padding: 10px 12px; font-size: .9rem; }
.approver { font-size: .9rem; color: var(--ink2); margin: 0; }
.est { font-size: .85rem; color: #7A5500; margin: 6px 0 0; }
details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 650; color: var(--ink2); min-height: 32px; }
summary h2 { display: inline; }
details p { font-size: .92rem; color: var(--ink2); }
.mono { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; font-size: .8rem !important; background: #F7F4EF; padding: 8px 10px; border-radius: 8px; }
.more > summary { margin-top: 14px; color: var(--red-d); }
.cat { border-radius: 12px; padding: 14px; margin-top: 10px; border: 1px solid var(--line); }
.cat.strong { border-color: var(--ok); background: #F3FAF4; }
.cat.could { border-color: #E3B341; background: #FFFBF0; }
.verdict { font-weight: 700; }
.rentline { font-size: 1.02rem; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; margin-top: 8px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
td small { color: var(--grey); }
.keep { margin-top: 14px; }
.keep ul, .qw, .src { padding-left: 18px; margin: 6px 0; }
.keep li, .qw li, .src li { margin: 6px 0; font-size: .93rem; }
.cta { text-align: center; }
.cta .btn { margin-left: auto; margin-right: auto; display: flex; }


/* Landing chooser */
.choose { display: grid; gap: 12px; margin-top: 22px; }
.choice { text-align: left; display: flex; flex-direction: column; gap: 6px; background: var(--red); color: #fff; border: 0; border-radius: var(--radius); padding: 18px 18px 16px; min-height: 120px; transition: transform .15s ease, background .15s ease; }
.choice:hover { background: var(--red-d); transform: translateY(-2px); }
.choice.alt { background: #1C1C1C; border: 1.5px solid #3A3A3A; }
.choice.alt:hover { background: #262626; }
.ctag { font-size: .8rem; font-weight: 700; color: #FFE1D8; }
.choice.alt .ctag { color: var(--red); }
.ct { font-size: 1.35rem; font-weight: 800; }
.cd { font-size: .95rem; color: #FFF4EF; line-height: 1.4; }
.choice.alt .cd { color: #D8D2C9; }
.go { margin-top: 6px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Count-up numbers */
.cu { font-variant-numeric: tabular-nums; }

/* Confidence gauge */
.gauge { display: flex; align-items: center; gap: 14px; margin-top: 16px; background: #1C1C1C; border: 1px solid #2E2E2E; border-radius: 12px; padding: 12px 14px; }
.gsvg { width: 132px; height: auto; flex: 0 0 auto; }
.gsvg .z { fill: none; stroke-width: 16; }
.gsvg .zl { stroke: #8A2E1A; } .gsvg .zm { stroke: #B7862A; } .gsvg .zh { stroke: #3E8A4E; }
.gsvg .gl { fill: #BDB7AE; font-size: 11px; font-family: inherit; }
.gsvg .needle { transform-box: view-box; transform-origin: 100px 100px; transform: rotate(-90deg); transition: transform 1.4s cubic-bezier(.2,.8,.2,1) .2s; }
.gauge.in .needle { transform: rotate(var(--deg)); }
.gsvg .needle line { stroke: #fff; stroke-width: 4; stroke-linecap: round; }
.gsvg .needle circle { fill: #fff; }
.glevel { font-weight: 800; font-size: 1.1rem; margin: 0 0 2px; color: #fff; }
.gnote { color: #D8D2C9; font-size: .88rem; margin: 0; }

/* Charts */
.glance h2 { margin-bottom: 4px; }
.viz { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.viz:first-of-type { border-top: 0; }
.viz h3 { margin-bottom: 10px; }
.brow, .grow { margin: 10px 0; }
.blabel { font-weight: 650; font-size: .92rem; margin: 0 0 4px; }
.blabel small { color: var(--grey); font-weight: 500; }
.bval { font-size: .85rem; color: var(--ink2); margin: 4px 0 0; }
.track { position: relative; height: 14px; background: #F3EFE8; border-radius: 999px; overflow: hidden; }
.fill { position: absolute; top: 0; left: 0; bottom: 0; border-radius: 999px; transform: scaleX(0); transform-origin: left center; transition: transform 1s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0ms); }
.anim.in .fill { transform: scaleX(1); }
.instant .fill, .instant .seg, .instant .needle { transition: none !important; }
.fill.lo { background: var(--red); }
.fill.hi { background: #F6B7A5; }
.fill.now { background: #3A3A3A; }
.fill.back { background: var(--red); border-radius: 0 999px 999px 0; }
.legend { font-size: .78rem; color: var(--grey); margin: 8px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: middle; }
.sw.lo, .sw.back { background: var(--red); } .sw.hi { background: #F6B7A5; } .sw.now { background: #3A3A3A; }
.ba { margin: 12px 0 14px; }
.barow { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 8px; margin: 5px 0; }
.bal { font-size: .8rem; color: var(--grey); font-weight: 600; }
.panels { display: grid; gap: 12px; margin-top: 8px; }
.panel { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #FDFCFA; }
.panel.rev { border-color: #E9B9A6; background: #FFF6F2; }
.panel.rev .fill.lo { background: #8A3A1F; } .panel.rev .fill.hi { background: #DDA58F; }
.ptitle { font-weight: 800; margin: 0 0 4px; }
.pempty { color: var(--ink2); font-size: .92rem; margin: 6px 0 0; }
.gantt { position: relative; padding-bottom: 28px; }
.axis { position: relative; height: 18px; margin-top: 6px; border-top: 1px solid var(--line); }
.axis span { position: absolute; top: 2px; transform: translateX(-50%); font-size: .72rem; color: var(--grey); }
.axis span:first-child { transform: none; }
.d90 { position: absolute; top: 0; bottom: 22px; border-left: 2px dashed var(--ink); }
.d90 span { position: absolute; bottom: -24px; left: 0; transform: translateX(-50%); white-space: nowrap; font-size: .72rem; font-weight: 700; background: var(--paper); padding: 0 4px; }
.grow .blabel { position: relative; z-index: 1; }
.grow .bg { background: var(--paper); padding-right: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.d90.right span { transform: translateX(-100%); }
.pb { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 8px 0 10px; }
.seg { font-size: .72rem; text-align: center; padding: 8px 2px; border-radius: 6px; background: #EFEAE2; color: var(--grey); font-weight: 600; transition: background .5s ease, color .5s ease; transition-delay: var(--d, 0ms); }
.pb.in .seg.on { background: var(--ok); color: #fff; }
.cat.could .pb.in .seg.on { background: #B7862A; }
.quick .summary h1 { font-size: 1.7rem; }
@media (prefers-reduced-motion: reduce) { .fill, .seg, .gsvg .needle, .choice { transition: none !important; } }

@media (min-width: 720px) {
  h1 { font-size: 2.3rem; }
  .landing .hero { padding: 64px 22px 70px; }
  .landing h1 { font-size: 3rem; }
  .trust { grid-template-columns: 1fr 1fr; }
  .q { padding-top: 40px; }
  .card { padding: 34px 36px; }
  .opts.grid { grid-template-columns: 1fr 1fr 1fr; }
  .tiles { grid-template-columns: 1fr 1fr 1fr; }
  .summary { padding: 30px; }
  .summary h1 { font-size: 2rem; }
  .block { padding: 26px 30px; }
  .q .btn.primary { width: auto; min-width: 200px; }
  .choose { grid-template-columns: 1fr 1fr; }
  .panels { grid-template-columns: 1.4fr 1fr; }
  .gsvg { width: 150px; }
  .quick .summary h1 { font-size: 2.2rem; }
  .results { max-width: 860px; }
}
