/* GTMFlux: graphite and copper. Flux is what makes solder flow onto copper;
   the palette is the bench, the wire and the signal running through it. */
:root {
  --bg: #141311;
  --s1: #1a1916;
  --s2: #201f1b;
  --s3: #292823;
  --line: #2f2d28;
  --line-2: #3d3a33;
  --text: #ecebe5;
  --text-2: #a3a095;
  --text-3: #8a877c;
  --accent: #d4894a;
  --accent-hover: #e19b5f;
  --on-accent: #1b1006;
  --accent-line: #5c3f27;
  --ok: #93b889;
  --ok-line: #3a4a35;
  --r-sm: 4px;
  --r: 6px;
  --r-lg: 10px;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }
.muted { color: var(--text-2); }
.num { }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .15s ease; }
.nav.scrolled, .nav.open { border-bottom-color: var(--line); }
.nav-row { display: flex; align-items: center; gap: 36px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; }
.nav-links { display: flex; gap: 26px; font-size: 15px; color: var(--text-2); }
.nav-links a { text-decoration: none; transition: color .15s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav-cta .mail { font-size: 15px; color: var(--text-2); text-decoration: none; }
.nav-cta .mail:hover { color: var(--text); }
.menu-btn { display: none; background: none; border: 1px solid var(--line-2); border-radius: var(--r); height: 34px; padding: 0 12px; font-size: 14px; cursor: pointer; }
.nav-drawer { display: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: var(--r); border: 1px solid transparent; font-weight: 550; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { background: var(--s3); color: var(--text-3); cursor: not-allowed; }
.btn-secondary { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-secondary:hover { background: var(--s2); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 14px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--text-2); cursor: pointer; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--text); }

/* ---------- Type ---------- */
h1, h2, h3 { margin: 0; font-weight: 600; }
h1 { font-size: clamp(38px, 5.1vw, 62px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 620; }
h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.12; letter-spacing: -0.025em; }
h3 { font-size: 18px; letter-spacing: -0.01em; }
.lede { font-size: 19px; color: var(--text-2); max-width: 34em; margin: 20px 0 0; }
.section-lede { color: var(--text-2); max-width: 38em; margin: 14px 0 0; }
.inline-link { color: var(--text); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.inline-link:hover { text-decoration-color: var(--accent); }

/* ---------- Layout ---------- */
section { padding: 96px 0; }
section + section { border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.section-head { margin-bottom: 40px; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 80px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin: 22px 0 0; font-size: 14px; color: var(--text-3); }
.hello { display: none; background: var(--s1); border-bottom: 1px solid var(--line); font-size: 15px; }
.hello.show { display: block; }
.hello .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.hello a { color: var(--accent); white-space: nowrap; }

/* ---------- Run panel (animated agent flow) ---------- */
.run { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; font-size: 14px; }
.run-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.run-title { font-weight: 550; }
.run-meta { font: 12.5px var(--mono); color: var(--text-3); white-space: nowrap; }
.run-body { display: grid; grid-template-columns: 150px minmax(0, 1fr); }
.run-agents { list-style: none; margin: 0; padding: 10px 8px; border-right: 1px solid var(--line); background: #171613; display: flex; flex-direction: column; gap: 2px; }
.agent { display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 10px; border-radius: var(--r); color: var(--text-3); font-size: 13px; transition: background-color .2s ease, color .2s ease; }
.agent .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); flex: none; transition: background-color .2s ease; }
.agent.done { color: var(--text-2); }
.agent.done .dot { background: var(--ok); }
.agent.active { background: var(--s3); color: var(--text); }
.agent.active .dot { background: var(--accent); }
.run-log { list-style: none; margin: 0; padding: 8px 0; }
.line { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 8px 16px; opacity: 0; transition: opacity .25s ease; }
.line .meta { display: flex; flex-direction: column; }
.line.shown { opacity: 1; }
.line .t { font: 12.5px/1.7 var(--mono); color: var(--text-3); white-space: nowrap; }
.line .who { font: 12px/1.5 var(--mono); color: var(--text-2); }
.line .msg { color: var(--text); line-height: 1.5; }
.line .msg em { font-style: normal; color: var(--text-2); }
.badge { display: inline-block; font: 12px/1.6 var(--mono); padding: 0 6px; border-radius: var(--r-sm); border: 1px solid var(--line-2); color: var(--text-2); vertical-align: 1px; white-space: nowrap; }
.badge.ok { color: var(--ok); border-color: var(--ok-line); }
.badge.acc { color: var(--accent); border-color: var(--accent-line); }
.run-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px; }

/* ---------- Stack strip ---------- */
.stack { padding: 22px 0; border-top: 1px solid var(--line); }
.stack .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 30px; color: var(--text-3); font-size: 15px; }
.stack .lead-in { color: var(--text-2); }
.stack b { font-weight: 600; letter-spacing: -0.01em; color: var(--text-2); }

/* ---------- Rows (pains, specs) ---------- */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.row h3 { font-size: 17px; font-weight: 550; }
.row p { margin: 0; color: var(--text-2); }

/* ---------- Services ---------- */
.services { border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) auto; gap: 40px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.service h3 { font-size: 22px; letter-spacing: -0.015em; }
.service p { margin: 8px 0 0; color: var(--text-2); }
.service .more { font-size: 15px; color: var(--text-2); white-space: nowrap; transition: color .15s ease; padding-top: 4px; }
.service:hover .more { color: var(--accent); }
.service:hover h3 { color: #fff; }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 12.5px var(--mono); color: var(--text-2); padding-top: 6px; }
.chain span { border: 1px solid var(--line-2); background: var(--s1); border-radius: var(--r-sm); padding: 2px 8px; }
.chain i { font-style: normal; color: var(--text-3); }

/* ---------- Panels, fields ---------- */
.panel { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--s1); overflow: hidden; }
.panel-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.panel-grid > * { padding: 28px; }
.panel-grid > * + * { border-left: 1px solid var(--line); background: #171613; }
.field { display: block; margin-bottom: 18px; }
.field > span, .field-label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.field .opt { font-weight: 400; color: var(--text-3); font-size: 14px; }
.input, .field input:not([type=range]):not([type=checkbox]), .field select, .field textarea {
  width: 100%; height: 40px; padding: 0 12px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r); font-size: 15px; transition: border-color .15s ease;
}
.field textarea { height: auto; padding: 10px 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--accent); }
input[type=range] { width: 100%; accent-color: var(--accent); height: 28px; margin: 0; cursor: pointer; }
.range-head, .field > .range-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.big { font-size: 34px; font-weight: 600; letter-spacing: -0.025em; }
.range-scale { display: flex; justify-content: space-between; font: 12px var(--mono); color: var(--text-3); margin-top: 2px; }
.kv { margin: 0; border-top: 1px solid var(--line); }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; text-align: right; }
.result { margin-bottom: 22px; }
.result .big { font-size: 44px; line-height: 1.05; }
.result p { margin: 6px 0 0; color: var(--text-2); font-size: 15px; }
details.assume { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; }
details.assume summary { cursor: pointer; color: var(--text-2); font-size: 15px; }
details.assume summary:hover { color: var(--text); }
.assume-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-top: 16px; }
.assume-grid .field > span { font-size: 14px; font-weight: 400; color: var(--text-2); }
.fine { font-size: 13.5px; color: var(--text-3); margin: 16px 0 0; }
.fine a { color: var(--text-2); }

/* ---------- Cost comparison ---------- */
.compare-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bars { display: grid; gap: 22px; }
.bar-label { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.bar-label b { font-weight: 550; }
.bar-label span { font-weight: 600; font-size: 20px; letter-spacing: -0.01em; }
.bar { height: 14px; border-radius: var(--r-sm); background: var(--s3); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: var(--r-sm); background: #6d675b; transition: width .3s ease; }
.bar.us i { background: var(--accent); }
.bar-note { font-size: 14px; color: var(--text-3); margin-top: 6px; }
.saving { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 17px; }
.saving b { font-weight: 600; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; list-style: none; margin: 0; padding: 0; }
.step { padding: 22px 28px 0 0; border-top: 2px solid var(--line-2); }
.step.optional { border-top-style: dashed; }
.step:first-child { border-top-color: var(--accent); }
.step .n { font: 12.5px var(--mono); color: var(--text-3); }
.step h3 { margin: 10px 0 4px; }
.step .dur { font-size: 14px; color: var(--text-2); }
.step p { margin: 12px 0 0; color: var(--text-2); font-size: 15.5px; }

/* ---------- Spec table ---------- */
.spec { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--s1); overflow: hidden; }
.spec-head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-head .mono { color: var(--text-3); font-size: 12.5px; }
.spec dl { margin: 0; }
.spec dl div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec dl div:last-child { border-bottom: 0; }
.spec dt { color: var(--text-3); }
.spec dd { margin: 0; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ok); }
.status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.founder { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.founder p { margin: 0; color: var(--text-2); }
.founder p + p { margin-top: 10px; }

/* ---------- Table ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.table th { text-align: left; font-weight: 400; color: var(--text-3); padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table td:first-child { font-weight: 500; }
.table td + td { color: var(--text-2); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; color: var(--text-3); transition: color .15s ease; margin-top: 4px; }
.faq summary:hover svg { color: var(--text); }
.faq details[open] summary svg .v { display: none; }
.faq details p { margin: 0 0 20px; color: var(--text-2); max-width: 44em; }

/* ---------- Estimator ---------- */
.checks { display: grid; gap: 8px; margin-bottom: 20px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); cursor: pointer; transition: border-color .15s ease; }
.check:hover { border-color: var(--text-3); }
.check:has(input:checked) { border-color: var(--accent); }
.check input { accent-color: var(--accent); width: 16px; height: 16px; margin: 3px 0 0; flex: none; }
.check b { display: block; font-weight: 500; font-size: 15.5px; }
.check .sub { display: block; color: var(--text-2); font-size: 14px; }
.est-total { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.est-total .big { font-size: 30px; }


/* ---------- CTA + footer ---------- */
.cta { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px; display: flex; justify-content: space-between; align-items: center; gap: 32px; background: var(--s1); }
.cta h2 { font-size: clamp(24px, 2.6vw, 30px); }
.cta p { margin: 8px 0 0; color: var(--text-2); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14.5px; color: var(--text-2); }
.foot { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.foot p { margin: 10px 0 0; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot h4 { margin: 0 0 12px; font-size: 14.5px; font-weight: 500; color: var(--text); }
.copy { margin-top: 36px; color: var(--text-3); font-size: 13.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-grid h1 { max-width: 16em; }
}
@media (max-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .service { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .panel-grid { grid-template-columns: minmax(0, 1fr); }
  .panel-grid > * + * { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta .mail { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .nav-cta { gap: 10px; }
  .nav.open .nav-drawer { display: block; border-top: 1px solid var(--line); padding: 8px 0 16px; }
  .nav-drawer a { display: block; padding: 10px 0; text-decoration: none; color: var(--text-2); }
  .nav-drawer a:hover { color: var(--text); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .hero { padding: 40px 0 56px; }
  .lede { font-size: 17.5px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .nav-cta .btn { padding: 0 12px; }
  .run-body { grid-template-columns: minmax(0, 1fr); }
  .run-agents { display: none; }
  .line { grid-template-columns: 74px minmax(0, 1fr); gap: 10px; padding: 7px 14px; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { padding-right: 0; }
  .panel-grid > * { padding: 20px 16px; }
  .compare-controls, .assume-grid { grid-template-columns: minmax(0, 1fr); }
  .spec dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .table thead { display: none; }
  .table tr { display: block; border-bottom: 1px solid var(--line); padding: 12px 0; }
  .table td { display: block; border: 0; padding: 2px 0; }
  .cta { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
  .foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot > :first-child { grid-column: 1 / -1; }
  .hello .wrap { flex-direction: column; align-items: flex-start; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* ---------- /start intro form ---------- */
.start-page { min-height: 100vh; display: flex; flex-direction: column; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--s2); z-index: 10; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }
.start-top { height: 64px; display: flex; align-items: center; padding: 0 24px; }
.start-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px 24px 96px; }
.start-main form { width: 100%; max-width: 620px; }
.q { transition: opacity .15s ease; }
.q.fade { opacity: 0; }
.q-num { font: 13px var(--mono); color: var(--text-3); margin-bottom: 14px; }
.q h1 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.18; letter-spacing: -0.025em; font-weight: 600; }
.q .hint { color: var(--text-2); margin: 10px 0 0; font-size: 15.5px; }
.q-input { display: block; width: 100%; height: 56px; margin-top: 28px; padding: 0 16px; font-size: 20px; background: var(--s1); border: 1px solid var(--line-2); border-radius: var(--r); transition: border-color .15s ease; }
textarea.q-input { height: 128px; padding: 14px 16px; font-size: 17px; resize: vertical; }
.q-input:focus { outline: none; border-color: var(--accent); }
.q-input::placeholder { color: var(--text-3); }
.choices { display: grid; gap: 8px; margin-top: 28px; }
.choice { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 10px 14px; text-align: left; background: var(--s1); border: 1px solid var(--line-2); border-radius: var(--r); cursor: pointer; font-size: 16.5px; transition: border-color .15s ease, background-color .15s ease; }
.choice:hover { border-color: var(--text-3); }
.choice[aria-pressed="true"] { border-color: var(--accent); background: var(--s2); }
.choice kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; font: 12px var(--mono); border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--text-2); flex: none; }
.choice[aria-pressed="true"] kbd { border-color: var(--accent); color: var(--accent); }
.q-range { margin-top: 28px; }
.q-range .range-head { margin-bottom: 8px; }
.q-range .big { font-size: 40px; }
.q-actions { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.q-actions .key { font-size: 13px; color: var(--text-3); }
.q-actions .linkbtn { margin-left: auto; font-size: 14px; }
.q-err { color: #e39a86; font-size: 14.5px; margin: 12px 0 0; }
.q-done .kv { margin-top: 28px; }
@media (max-width: 640px) {
  .start-top { padding: 0 16px; }
  .start-main { align-items: flex-start; padding: 24px 16px 64px; }
  .q-input { font-size: 18px; }
  .q-actions .key { display: none; }
}
