:root {
  color-scheme: dark;
  --bg: #0e1114;
  --fg: #ecece8;
  --muted: #8b9198;
  --line: #2a3036;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; color: inherit; }

.bar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.brand { color: var(--fg); }

.deck { width: min(800px, calc(100% - 40px)); margin: 0 auto; }

.slide { display: none; padding: 40px 0 96px; }
.slide.is-on { display: block; }

.kicker {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

h1, h2 {
  margin: 0 0 18px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
h1 { font-size: clamp(30px, 5.5vw, 42px); }
h2 { font-size: clamp(22px, 4vw, 30px); }

.lead { margin: 0 0 14px; font-size: 18px; max-width: 38em; }
.lead.tight { font-size: 17px; }
.sub { margin: 0; color: var(--muted); max-width: 42em; }

.points, .steps { margin: 0; padding: 0 0 0 1.15em; max-width: 40em; }
.points li, .steps li { margin: 0 0 9px; }
.points.compact li { margin: 0 0 7px; font-size: 15px; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.col-h {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fine { margin: 20px 0 0; color: var(--muted); font-size: 13px; max-width: 46em; }

.contact { display: grid; gap: 8px; margin: 28px 0 0; }
.contact a { color: var(--fg); text-decoration: none; font-size: 18px; }
.contact a:hover { color: var(--muted); }

.out {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 28px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line);
}
.out p { margin: 0; }
.out .num { font-size: clamp(22px, 4vw, 28px); letter-spacing: -0.04em; }
.out .cap { margin-top: 4px; color: var(--muted); font-size: 12px; }
.out .hint { grid-column: 1 / -1; color: var(--muted); font-size: 13px; margin-top: 4px; }

.calc { display: grid; gap: 0; margin: 0 0 20px; }
.calc > label,
.more label {
  display: grid;
  grid-template-columns: 1fr 140px;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.calc input {
  width: 100%;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 16px;
}
.calc input:focus { outline: none; }
.calc input::-webkit-outer-spin-button,
.calc input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc input[type=number] { appearance: textfield; -moz-appearance: textfield; }

.more { margin-top: 8px; }
.more summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  padding: 12px 0;
  list-style: none;
}
.more summary::-webkit-details-marker { display: none; }
.more[open] summary { color: var(--fg); }

.nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px 18px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.nav-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}
.nav-btn:hover { background: var(--fg); color: var(--bg); }
.dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
}
.dot.is-on { background: var(--fg); }

@media (max-width: 720px) {
  .cols, .out { grid-template-columns: 1fr; }
  .calc > label, .more label { grid-template-columns: 1fr 110px; }
  .slide { padding-top: 28px; }
}
