:root {
  color-scheme: light;
  --bg: #ffffff;
  --soft: #f4f5f6;
  --line: #e3e5e8;
  --ink: #111214;
  --muted: #646a73;
  --good: #00875a;
  --bad: #d4351c;
  --btn: #111214;
  --btn-ink: #ffffff;
  --todo-bg: #ffe08a;
  --todo-ink: #3d2a00;
  --sans: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0e0f11;
    --soft: #17191c;
    --line: #272a2f;
    --ink: #f1f2f4;
    --muted: #9aa0a8;
    --good: #3ecf8e;
    --bad: #ff6b5e;
    --btn: #f1f2f4;
    --btn-ink: #0e0f11;
    --todo-bg: #5a3d00;
    --todo-ink: #ffe2a8;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.7 var(--sans);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; margin: 0; }
p { margin: 0 0 1em; }
.wrap { max-width: 60rem; margin-inline: auto; padding-inline: 1.25rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--btn); color: var(--btn-ink); padding: 0.5rem 0.75rem; z-index: 10; }
mark.todo { background: var(--todo-bg); color: var(--todo-ink); padding: 0 0.25em; font-family: var(--mono); font-size: 0.9em; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.bad { color: var(--bad); }
.good { color: var(--good); }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 1.5rem; min-height: 3.5rem; }
.logo { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.03em; text-decoration: none; }
.logo small { font-size: 1em; font-weight: 500; color: var(--muted); }
.top nav { display: flex; gap: 1.4rem; margin-left: auto; font-size: 0.95rem; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--ink); }
@media (max-width: 640px) {
  .top nav { display: none; }
  .top-row .btn { margin-left: auto; }
}

.btn { display: inline-block; background: var(--btn); color: var(--btn-ink); font-weight: 600; text-decoration: none; padding: 0.8rem 1.4rem; border-radius: 8px; }
.btn:hover { opacity: 0.85; }
.btn-small { padding: 0.4rem 0.9rem; font-size: 0.9rem; border-radius: 6px; }

/* Hero */
.hero { padding-block: clamp(3rem, 9vw, 6.5rem) 2.5rem; }
.hero h1 { font-size: clamp(2.2rem, 7vw, 4.6rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.045em; }
.lede { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); max-width: 38rem; margin: 1.75rem 0 2rem; }
.lede strong { color: var(--ink); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; }
.fine { font-size: 0.875rem; color: var(--muted); }

/* Estimator */
.est { border-top: 2px solid var(--ink); padding-top: 1.5rem; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: start; }
@media (max-width: 760px) { .est { grid-template-columns: 1fr; } }
.est-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.est label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.3rem; }
.est select { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 0.5rem 0.6rem; }
.est svg { display: block; width: 100%; height: auto; margin-top: 1rem; }
.est-earth { fill: var(--soft); stroke: var(--line); }
.est-shell { fill: none; stroke: var(--line); stroke-dasharray: 2 5; }
.est-fibre { fill: none; stroke: var(--muted); stroke-width: 2; }
.est-orbit { fill: none; stroke: var(--good); stroke-width: 2; stroke-linejoin: round; }
.est-sat { fill: var(--good); }
.est-end { fill: var(--ink); }
.est svg text { fill: var(--muted); font: 15px var(--sans); }
.est-figs { margin: 0; }
.est-figs div { display: flex; justify-content: space-between; align-items: baseline; padding-block: 0.6rem; border-bottom: 1px solid var(--line); }
.est-figs dt { color: var(--muted); font-size: 0.95rem; }
.est-figs dd { margin: 0; font: 600 1.5rem/1.2 var(--mono); font-variant-numeric: tabular-nums; }
.est-figs dd small { font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.est-figs .k-orbit dd { color: var(--good); }
.est-verdict { margin: 1rem 0 0.5rem; font-weight: 700; }
.est-note, .est details { font-size: 0.85rem; color: var(--muted); }
.est-note { margin: 0 0 0.5rem; }
.est summary { cursor: pointer; }
.est details p { margin: 0.5rem 0 0; }

/* Sections */
section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
section + section { border-top: 1px solid var(--line); }
section h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 1rem; }
.prose > * { max-width: 40rem; }
.prose p { color: var(--muted); }
.prose p strong { color: var(--ink); font-weight: 600; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1em; color: var(--muted); }
.prose li { margin-bottom: 0.6em; }
.prose li strong { color: var(--ink); font-weight: 600; }

.table-wrap { overflow-x: auto; }
.routes { border-collapse: collapse; width: 100%; margin-top: 1.5rem; }
.routes th, .routes td { text-align: right; padding: 0.7rem 0 0.7rem 1.25rem; border-top: 1px solid var(--line); white-space: nowrap; }
.routes th:first-child, .routes td:first-child { text-align: left; padding-left: 0; font-weight: 600; }
.routes thead th { border-top: 0; font-size: 0.8rem; font-weight: 500; color: var(--muted); }
.routes td { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.routes td:first-child { font-family: var(--sans); }
.routes td.bars { width: 34%; min-width: 9rem; }
.routes .bar { display: block; height: 6px; border-radius: 3px; background: var(--muted); margin-left: auto; }
.routes .bar + .bar { background: var(--good); margin-top: 4px; }
.routes tr.no td { color: var(--muted); }
.routes tr.no .bar + .bar { background: var(--bad); }
.routes .verdict { font-family: var(--sans); font-weight: 600; }
@media (max-width: 640px) { .routes td.bars, .routes th.bars, .routes .dist { display: none; } }

.price-fig { font-size: clamp(2.6rem, 8vw, 4.2rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; margin: 0 0 1rem; }
.price-fig span { font-size: 1.1rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }

.qa { margin: 0; max-width: 40rem; }
.qa dt { font-weight: 700; margin-top: 1.75rem; }
.qa dt:first-child { margin-top: 0; }
.qa dd { margin: 0.35rem 0 0; color: var(--muted); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 2.5rem 2rem; font-size: 0.875rem; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-bottom: 1.5rem; }
.foot-links a { text-decoration: none; color: var(--ink); }
.foot-links a:hover { text-decoration: underline; }
.foot-legal p { margin-bottom: 0.4em; }

/* Documents (legal, contact) */
.doc { max-width: 44rem; padding-block: clamp(2.5rem, 6vw, 4rem); }
.doc h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); font-weight: 800; letter-spacing: -0.035em; }
.doc .meta { color: var(--muted); font-size: 0.9rem; margin: 0.75rem 0 2rem; }
.doc .summary { background: var(--soft); border-radius: 8px; padding: 1.1rem 1.25rem; margin-bottom: 2.5rem; }
.doc .summary p:last-child, .doc .summary ul:last-child { margin-bottom: 0; }
.doc h2 { font-size: 1.2rem; margin: 2.5rem 0 0.75rem; }
.doc h3 { font-size: 1rem; 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 table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.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; font-weight: 500; }
.doc address { font-style: normal; }
