@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/geist-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/geist-mono-500.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/geist-mono-700.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #0a0c0d;
  --surface: #101315;
  --surface-raised: #161a1c;
  --surface-soft: #0e1112;
  --text: #f2f0e8;
  --muted: #8b918e;
  --quiet: #616967;
  --line: #283033;
  --line-strong: #3b4548;
  --accent: #ffb454;
  --accent-soft: rgba(255, 180, 84, 0.13);
  --accent-faint: rgba(255, 180, 84, 0.06);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.65;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: radial-gradient(circle at 76% 7%, rgba(255,180,84,.08), transparent 28rem);
}
a { color: inherit; }
button, input, select { font: inherit; }
button, select, input[type="range"] { accent-color: var(--accent); }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.back-link { text-decoration: none; }
.back-link span { margin: 0 8px; color: var(--accent); }
.top-stamp { color: var(--quiet); }

main { padding: 72px 0 100px; }
.eyebrow, .section-kicker, .signal-index {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.3;
  text-transform: uppercase;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, .94fr);
  gap: 52px;
  align-items: center;
  min-height: 520px;
}
.hero-copy { max-width: 650px; }
.hero h1 {
  max-width: 760px;
  margin: 18px 0 24px;
  font-size: clamp(3.2rem, 8vw, 7.7rem);
  font-weight: 500;
  letter-spacing: -.095em;
  line-height: .91;
}
.hero h1 span { color: var(--accent); }
.lede {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--text);
  background: transparent;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.button:hover { border-color: var(--accent); transform: translateY(-1px); }
.button-primary { border-color: var(--accent); color: #17110a; background: var(--accent); }
.button-primary:hover { background: #ffc77a; }
.button-outline:hover { background: var(--accent-soft); }
.button-small { min-height: 38px; padding: 0 14px; font-size: 11px; }
.text-link { color: var(--muted); font-size: 12px; text-decoration: none; }
.text-link:hover, .source-link:hover { color: var(--accent); }

.hero-visual {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--surface), #0c0f10);
}
.hero-visual::before {
  position: absolute;
  inset: 15px;
  border: 1px solid rgba(255,180,84,.12);
  content: "";
}
.visual-label {
  position: absolute;
  z-index: 2;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.visual-label-top { top: 28px; left: 30px; }
.visual-label-bottom { right: 30px; bottom: 28px; text-align: right; }
.desk-scene { position: absolute; inset: 82px 34px 74px; }
.desk-top {
  position: absolute;
  top: 28%;
  right: 2%;
  left: 7%;
  height: 34px;
  border: 1px solid var(--accent);
  background: linear-gradient(90deg, rgba(255,180,84,.04), rgba(255,180,84,.22), rgba(255,180,84,.05));
  box-shadow: 0 0 32px rgba(255,180,84,.14);
  transform: skewY(-6deg);
}
.desk-top::after {
  position: absolute;
  top: -7px;
  right: 2%;
  left: 8%;
  height: 4px;
  background: var(--accent);
  content: "";
  opacity: .8;
}
.desk-leg {
  position: absolute;
  top: calc(28% + 40px);
  width: 14px;
  height: 47%;
  border: 1px solid var(--line-strong);
  background: linear-gradient(90deg, #1d2426, #0a0d0e);
  transform: skewY(6deg);
}
.desk-leg-left { left: 15%; }
.desk-leg-right { right: 9%; }
.desk-foot {
  position: absolute;
  top: 86%;
  width: 120px;
  height: 10px;
  border-top: 2px solid var(--accent);
  opacity: .8;
}
.desk-foot-left { left: 4%; transform: rotate(-7deg); }
.desk-foot-right { right: -2%; transform: rotate(-7deg); }
.dimension-line { position: absolute; color: var(--accent); font-size: 10px; letter-spacing: .06em; }
.dimension-line i { display: block; position: absolute; background: var(--accent); }
.dimension-line b { display: block; position: absolute; border: 1px solid var(--accent); border-radius: 50%; }
.dimension-line span { position: absolute; color: var(--muted); white-space: nowrap; }
.dimension-width { top: 18%; right: 5%; left: 8%; height: 1px; border-top: 1px dashed rgba(255,180,84,.65); }
.dimension-width i:first-child { top: -5px; left: 0; width: 1px; height: 11px; }
.dimension-width i:nth-of-type(2) { top: -5px; right: 0; width: 1px; height: 11px; }
.dimension-width b { top: -3px; left: 50%; width: 7px; height: 7px; }
.dimension-width span { top: -25px; left: 42%; }
.dimension-height { top: 33%; right: 1%; width: 1px; height: 54%; border-right: 1px dashed rgba(255,180,84,.65); }
.dimension-height i:first-child { top: 0; right: -5px; width: 11px; height: 1px; }
.dimension-height i:nth-of-type(2) { right: -5px; bottom: 0; width: 11px; height: 1px; }
.dimension-height b { top: 50%; right: -3px; width: 7px; height: 7px; }
.dimension-height span { top: 47%; right: 16px; }

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.signal-card { min-height: 170px; padding: 22px 20px 24px; border-right: 1px solid var(--line); }
.signal-card:last-child { border-right: 0; }
.signal-card-accent { background: var(--accent-faint); }
.signal-card strong { display: block; margin: 23px 0 8px; color: var(--text); font-size: 23px; font-weight: 500; letter-spacing: -.06em; }
.signal-card p { max-width: 230px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

section { scroll-margin-top: 30px; }
.recommendation, .comparison-section, .fit-section, .method-section, .sources-section { margin-top: 130px; }
.section-kicker { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; }
.section-kicker span:first-child { color: var(--quiet); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 28px; }
h2 { margin: 0; color: var(--text); font-size: clamp(1.8rem, 4vw, 3.55rem); font-weight: 500; letter-spacing: -.075em; line-height: 1.02; }
.section-lede { max-width: 720px; margin: 18px 0 0; color: var(--muted); line-height: 1.8; }
.section-note { max-width: 390px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; text-align: right; }
.recommendation { padding: 28px 0 0; border-top: 1px solid var(--line); }
.recommendation-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; }
.recommendation h2 { max-width: 720px; }
.recommendation-aside { align-self: start; border-left: 1px solid var(--accent); padding-left: 20px; }
.aside-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.aside-row strong { color: var(--text); font-weight: 500; text-align: right; }
.recommendation-aside .button { width: 100%; margin-top: 24px; }

.controls { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; padding: 16px; border: 1px solid var(--line); background: var(--surface-soft); }
.control-field { display: grid; gap: 7px; min-width: 190px; color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.control-field select, .input-unit input {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--text);
  background: var(--surface-raised);
  font-size: 12px;
}
.control-field select { cursor: pointer; }
.range-field { min-width: 240px; }
.range-field span { display: flex; justify-content: space-between; gap: 15px; }
.range-field output { color: var(--accent); }
.range-field input { width: 100%; margin: 6px 0 0; }
.switch-field { display: flex; align-items: center; gap: 9px; min-height: 38px; color: var(--muted); font-size: 11px; cursor: pointer; }
.switch-field input { position: absolute; opacity: 0; pointer-events: none; }
.switch-ui { position: relative; width: 32px; height: 18px; border: 1px solid var(--line-strong); border-radius: 20px; background: var(--surface-raised); }
.switch-ui::after { position: absolute; top: 3px; left: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--quiet); content: ""; transition: left .15s ease, background .15s ease; }
.switch-field input:checked + .switch-ui { border-color: var(--accent); }
.switch-field input:checked + .switch-ui::after { left: 17px; background: var(--accent); }
#reset-filters { margin-left: auto; }
.result-summary { min-height: 48px; padding: 21px 0 12px; color: var(--muted); font-size: 11px; }
.result-summary strong { color: var(--text); font-weight: 500; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.product-card { display: flex; min-height: 490px; flex-direction: column; padding: 21px; border: 1px solid var(--line); background: var(--surface); transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.product-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.product-card.is-pinned { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-soft); }
.card-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.card-badge { max-width: 170px; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .09em; line-height: 1.35; }
.card-maker { color: var(--quiet); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.product-card h3 { margin: 22px 0 4px; font-size: 22px; font-weight: 500; letter-spacing: -.065em; line-height: 1.1; }
.card-type { margin: 0; color: var(--muted); font-size: 11px; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.price-row strong { font-size: 17px; font-weight: 500; letter-spacing: -.04em; }
.price-row del { color: var(--quiet); font-size: 11px; }
.price-note { min-height: 19px; margin: 3px 0 0; color: var(--quiet); font-size: 10px; }
.surface-meter { margin: 21px 0 17px; padding: 12px 0 0; border-top: 1px solid var(--line); }
.surface-meter-head { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.surface-meter-head strong { color: var(--text); font-weight: 500; }
.meter { height: 5px; margin-top: 9px; background: var(--line); }
.meter span { display: block; height: 100%; min-width: 6px; background: var(--accent); }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 15px; margin: 0; }
.spec-list div { min-width: 0; padding: 9px 0; border-bottom: 1px solid var(--line); }
.spec-list dt { color: var(--quiet); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.spec-list dd { margin: 3px 0 0; color: var(--text); font-size: 11px; line-height: 1.4; }
.card-verdict { margin: 17px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.card-verdict strong { color: var(--text); font-weight: 500; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 20px; }
.pin-button { min-height: 34px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 2px; color: var(--muted); background: transparent; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.pin-button:hover, .pin-button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.source-link { color: var(--muted); font-size: 10px; text-decoration: none; }
.empty-state { grid-column: 1 / -1; padding: 42px 20px; border: 1px dashed var(--line-strong); color: var(--muted); text-align: center; }

.compare-tray { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 44px; padding: 18px 20px; border: 1px solid var(--line); background: var(--surface-soft); }
.compare-tray p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.tray-items { display: flex; flex-wrap: wrap; justify-content: end; gap: 7px; }
.tray-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 9px; border: 1px solid var(--line-strong); color: var(--text); background: var(--surface-raised); font-size: 10px; }
.tray-chip button { padding: 0; border: 0; color: var(--accent); background: transparent; line-height: 1; }
.table-wrap { overflow-x: auto; margin-top: 12px; border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 11px; }
caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
th, td { padding: 13px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th:last-child, td:last-child { border-right: 0; }
thead th { color: var(--accent); background: var(--surface-raised); font-weight: 500; }
thead th:first-child { width: 165px; color: var(--muted); }
tbody th { color: var(--muted); font-weight: 400; }
tbody td { color: var(--text); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.table-sub { display: block; margin-top: 2px; color: var(--quiet); font-size: 9px; }

.fit-heading { align-items: start; }
.fit-inputs { display: flex; flex: 0 0 auto; gap: 10px; }
.fit-inputs label { display: grid; gap: 7px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.input-unit { display: flex; }
.input-unit input { width: 115px; border-right: 0; }
.input-unit b { display: flex; align-items: center; padding: 0 10px; border: 1px solid var(--line-strong); color: var(--accent); background: var(--surface-raised); font-size: 10px; font-weight: 500; }
.fit-result { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
.fit-message { grid-column: 1 / -1; padding: 18px; border: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.fit-message strong { color: var(--accent); font-weight: 500; }
.fit-card { padding: 16px; border: 1px solid var(--line); background: var(--surface); }
.fit-card h3 { margin: 9px 0 4px; font-size: 16px; font-weight: 500; letter-spacing: -.04em; }
.fit-card p { margin: 0; color: var(--muted); font-size: 10px; }
.fit-card .fit-tag { color: var(--accent); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.fine-print { margin: 16px 0 0; color: var(--quiet); font-size: 10px; }

.method-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 72px; }
.method-list { margin-top: 32px; }
.method-list > div { display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.method-list > div > span { color: var(--accent); font-size: 10px; }
.method-list p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.method-list strong { color: var(--text); font-weight: 500; }
.special-note { align-self: start; padding: 22px; border: 1px solid var(--accent); background: var(--accent-faint); }
.special-note h3 { margin: 21px 0 8px; font-size: 20px; font-weight: 500; letter-spacing: -.05em; }
.special-note p { margin: 0 0 20px; color: var(--muted); font-size: 11px; line-height: 1.75; }

.sources-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; border-top: 1px solid var(--line); }
.source-item { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 17px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.source-item:hover .source-title { color: var(--accent); }
.source-number { color: var(--accent); font-size: 10px; }
.source-title { display: block; color: var(--text); font-size: 11px; }
.source-note { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.source-kind { display: inline-block; margin-top: 7px; color: var(--quiet); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.site-footer { display: flex; justify-content: space-between; padding: 22px 0 30px; border-top: 1px solid var(--line); color: var(--quiet); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { min-height: 320px; }
  .signal-grid { grid-template-columns: repeat(2, 1fr); }
  .signal-card:nth-child(2) { border-right: 0; }
  .signal-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .recommendation-layout, .method-grid { gap: 38px; }
}
@media (max-width: 700px) {
  .site-shell { width: min(100% - 28px, 1180px); }
  main { padding-top: 42px; }
  .topbar { min-height: 60px; }
  .top-stamp { display: none; }
  .hero h1 { font-size: clamp(3.1rem, 17vw, 5.4rem); }
  .lede { font-size: 14px; }
  .hero-actions { align-items: start; flex-direction: column; gap: 16px; }
  .signal-grid { grid-template-columns: 1fr; }
  .signal-card, .signal-card:nth-child(2) { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .signal-card:last-child { border-bottom: 0; }
  .recommendation, .comparison-section, .fit-section, .method-section, .sources-section { margin-top: 92px; }
  .section-heading, .recommendation-layout, .method-grid { display: block; }
  .section-note { margin-top: 16px; text-align: left; }
  .recommendation-aside { margin-top: 30px; }
  .controls { align-items: stretch; flex-direction: column; }
  .control-field, .range-field { min-width: 0; }
  .switch-field { min-height: 44px; }
  #reset-filters { width: 100%; margin-left: 0; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 0; }
  .compare-tray { align-items: stretch; flex-direction: column; }
  .tray-items { justify-content: start; }
  .fit-inputs { display: grid; grid-template-columns: 1fr 1fr; margin-top: 26px; }
  .input-unit input { width: 100%; min-width: 0; }
  .fit-result { grid-template-columns: 1fr; }
  .sources-list { grid-template-columns: 1fr; }
  .site-footer { gap: 15px; align-items: start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
