:root {
  color-scheme: dark;
  --bg: #0d0f17;
  --surface: #141724;
  --line: #272b3e;
  --text: #ebe8e0;
  --muted: #9b9eae;
  --accent: #f0b35a;
  --accent-ink: #1b1303;
  --fibre: #8a8fa6;
  --earth: #1a1e30;
  --todo-bg: #5a3d00;
  --todo-ink: #ffe2a8;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f5f2ea;
    --surface: #fcfaf5;
    --line: #d9d3c4;
    --text: #171923;
    --muted: #5b5e6d;
    --accent: #9a5206;
    --accent-ink: #fffaf0;
    --fibre: #6d7183;
    --earth: #e6e0d0;
    --todo-bg: #ffe08a;
    --todo-ink: #3d2a00;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.6 var(--sans);
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; text-wrap: balance; margin: 0; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { max-width: 68rem; margin-inline: auto; padding-inline: 1.25rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--accent); color: var(--accent-ink); padding: 0.5rem 0.75rem; z-index: 10; }
mark.todo { background: var(--todo-bg); color: var(--todo-ink); padding: 0 0.25em; border-radius: 2px; font-family: var(--mono); font-size: 0.9em; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 1.5rem; min-height: 3.75rem; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-family: var(--serif); font-size: 1.2rem; text-decoration: none; letter-spacing: 0.01em; }
.logo:hover { color: inherit; }
.top nav { display: flex; gap: 1.4rem; margin-left: auto; font-size: 0.92rem; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--text); }
@media (max-width: 760px) {
  .top nav { display: none; }
  .top-row .btn { margin-left: auto; }
}

.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; padding: 0.8rem 1.3rem; border-radius: 4px; border: 1px solid var(--accent); }
.btn:hover { color: var(--accent-ink); filter: brightness(1.08); }
.btn-small { padding: 0.4rem 0.85rem; font-size: 0.9rem; }
.btn-quiet { background: none; color: var(--text); border-color: var(--line); font-weight: 500; }
.btn-quiet:hover { color: var(--text); border-color: var(--muted); filter: none; }

/* Hero */
.hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); letter-spacing: -0.015em; }
.hero h1 em { font-style: italic; color: var(--accent); }
.lede { font-size: 1.14rem; color: var(--muted); max-width: 34rem; margin: 1.4rem 0 2rem; }
.lede strong { color: var(--text); font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.fine { font-size: 0.85rem; color: var(--muted); margin-top: 1rem; }

/* Estimator */
.est { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1.25rem; }
.est-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.est label { display: block; font-size: 0.78rem; color: var(--muted); margin-bottom: 0.3rem; }
.est select { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 0.5rem 0.6rem; }
.est svg { display: block; width: 100%; height: auto; margin-block: 1rem 0.5rem; }
.est-earth { fill: var(--earth); stroke: var(--line); }
.est-shell { fill: none; stroke: var(--line); stroke-dasharray: 2 5; }
.est-fibre { fill: none; stroke: var(--fibre); stroke-width: 2; }
.est-orbit { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.est-sat { fill: var(--accent); }
.est-end { fill: var(--text); }
.est svg text { fill: var(--muted); font: 15px var(--sans); }
.est-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin: 0; border-top: 1px solid var(--line); padding-top: 1rem; }
.est-figs dt { font-size: 0.78rem; color: var(--muted); }
.est-figs dd { margin: 0; white-space: nowrap; font: 500 clamp(1.05rem, 4.6vw, 1.5rem)/1.3 var(--mono); font-variant-numeric: tabular-nums; }
.est-figs dd small { font-size: 0.8rem; color: var(--muted); font-weight: 400; }
.est-figs .k-fibre dt::before, .est-figs .k-orbit dt::before { content: ""; display: inline-block; width: 0.9rem; height: 2px; vertical-align: middle; margin-right: 0.4rem; background: var(--fibre); }
.est-figs .k-orbit dt::before { background: var(--accent); }
.est-verdict { margin: 1rem 0 0; font-weight: 500; }
.est-note { font-size: 0.8rem; color: var(--muted); margin: 0.5rem 0 0; }
.est details { font-size: 0.82rem; color: var(--muted); margin-top: 0.75rem; }
.est summary { cursor: pointer; }
.est details p { margin: 0.5rem 0 0; }

/* Sections */
section { padding-block: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--line); }
section.hero { border-top: 0; }
.sec-head { max-width: 40rem; margin-bottom: 2.5rem; }
.sec-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.sec-head p { color: var(--muted); margin: 1rem 0 0; font-size: 1.05rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 6px; counter-reset: step; }
.steps li { padding: 1.5rem; border-left: 1px solid var(--line); counter-increment: step; }
.steps li:first-child { border-left: 0; }
.steps li::before { content: "0" counter(step); font: 0.8rem var(--mono); color: var(--accent); }
.steps h3 { font-size: 1.2rem; margin: 0.6rem 0 0.5rem; }
.steps p { color: var(--muted); font-size: 0.95rem; margin: 0; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .steps li { border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
}

.limits { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; margin: 0; }
.limits div { padding-block: 1.25rem; border-top: 1px solid var(--line); }
.limits dt { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 0.4rem; }
.limits dd { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .limits { grid-template-columns: 1fr; } }

.price { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 760px) { .price { grid-template-columns: 1fr; } }
.price-card { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: 1.75rem; }
.price-fig { font: 500 4rem/1 var(--serif); margin: 0.25rem 0; }
.price-fig span { font: 1rem var(--sans); color: var(--muted); }
.price-card .btn { display: block; text-align: center; margin-top: 1.5rem; }
.price-card .fine { margin-bottom: 0; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding-block: 0.85rem; border-top: 1px solid var(--line); }
.plain-list li:first-child { border-top: 0; padding-top: 0; }
.plain-list strong { font-weight: 600; }
.plain-list span { color: var(--muted); display: block; }

.faq { max-width: 46rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding-block: 1rem; font-family: var(--serif); font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); max-width: 40rem; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 3rem 2rem; font-size: 0.9rem; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-brand { font-family: var(--serif); font-size: 1.2rem; color: var(--text); margin-bottom: 0.5rem; }
.foot h2 { font: 600 0.78rem var(--sans); color: var(--text); margin-bottom: 0.75rem; }
.foot-grid a { display: block; text-decoration: none; padding-block: 0.2rem; overflow-wrap: anywhere; }
.foot-legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.8rem; }
.foot-legal p { margin-bottom: 0.5em; max-width: 60rem; }

/* Documents (legal, contact) */
.doc { max-width: 44rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.doc h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.doc .meta { color: var(--muted); font-size: 0.9rem; margin: 0.75rem 0 2rem; }
.doc .summary { border-left: 2px solid var(--accent); padding: 0.25rem 0 0.25rem 1.1rem; margin-bottom: 2.5rem; }
.doc .summary p:last-child, .doc .summary ul:last-child { margin-bottom: 0; }
.doc h2 { font-size: 1.45rem; margin: 2.5rem 0 0.8rem; }
.doc h3 { font: 600 1rem var(--sans); margin: 1.5rem 0 0.5rem; }
.doc ul, .doc ol { padding-left: 1.25rem; margin: 0 0 1em; }
.doc li { margin-bottom: 0.4em; }
.doc a { color: var(--accent); }
.table-wrap { overflow-x: auto; margin-bottom: 1em; }
.doc table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 0.65rem 0.75rem 0.65rem 0; border-top: 1px solid var(--line); }
.doc th { font-weight: 600; white-space: nowrap; padding-right: 1.5rem; }
.doc thead th { border-top: 0; color: var(--muted); font-size: 0.8rem; }
.doc address { font-style: normal; }
