:root {
  --bg: #faf8f5;
  --ink: #1c1917;
  --ink-2: #44403c;
  --ink-3: #57534e;
  --muted: #78716c;
  --line: #e7e5e4;
  --accent: oklch(0.6 0.13 25);
  --sans: Manrope, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: .7; }
h1, h2, p { margin: 0; }

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 36px 56px 48px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font: 500 14px var(--sans);
}
.brand { font: 700 18px var(--sans); }

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 48px 64px;
  align-items: center;
  padding: 48px 0;
}

h1 {
  font: 700 clamp(44px, 5.5vw, 72px) / 1 var(--sans);
  letter-spacing: -.035em;
  text-wrap: balance;
}
.accent { color: var(--accent); }

.lede {
  margin-top: 28px;
  max-width: 460px;
  font: 400 18px / 1.5 var(--sans);
  color: var(--ink-2);
}

.services {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  gap: 0 14px;
  flex-wrap: wrap;
  align-items: center;
  font: 13px var(--mono);
  color: var(--ink-3);
}
.services li { display: flex; align-items: center; gap: 0 14px; }
.services li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.services .short { display: none; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 20px 60px -30px rgba(28, 25, 23, .25);
}
.scale {
  display: flex;
  justify-content: space-between;
  font: 12px var(--mono);
  color: var(--muted);
  margin-bottom: 6px;
}

input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  width: 100%;
  height: 32px;
  margin: 0;
  cursor: pointer;
  display: block;
}
input[type=range]:focus { outline: none; }
input[type=range]::-webkit-slider-runnable-track { height: 2px; background: var(--ink); }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  margin-top: -10px;
  border: 4px solid #fff;
  box-shadow: 0 0 0 2px var(--ink);
  transition: background .15s ease, box-shadow .15s ease;
}
input[type=range]::-moz-range-track { height: 2px; background: var(--ink); }
input[type=range]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
  border: 4px solid #fff;
  box-shadow: 0 0 0 2px var(--ink);
}
input[type=range]:hover::-webkit-slider-thumb,
input[type=range]:focus-visible::-webkit-slider-thumb { background: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
input[type=range]:hover::-moz-range-thumb,
input[type=range]:focus-visible::-moz-range-thumb { background: var(--accent); box-shadow: 0 0 0 2px var(--accent); }

.stop { margin-top: 28px; min-height: 150px; }
.stop-title {
  font: 700 30px / 1.15 var(--sans);
  letter-spacing: -.02em;
  text-wrap: pretty;
}
.stop-body {
  margin-top: 12px;
  font: 400 16px / 1.5 var(--sans);
  color: var(--ink-3);
}
.stop.is-swapping .stop-title,
.stop.is-swapping .stop-body { opacity: 0; transform: translateY(4px); }
.stop-title, .stop-body { transition: opacity .18s ease, transform .18s ease; }

.cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.tag { font: 13px var(--mono); color: var(--muted); }
.button {
  padding: 12px 20px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font: 600 15px var(--sans);
  transition: background .15s ease;
}
.button:hover { background: var(--accent); opacity: 1; }

.bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font: 12px var(--mono);
  color: var(--muted);
}
.bottom a { border-bottom: 1px solid var(--muted); }

@media (max-width: 640px) {
  .page {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 28px 20px 40px;
  }
  .brand { font-size: 17px; }
  .hero { display: block; padding: 0; }
  h1 { font-size: 40px; line-height: 1.02; }
  .lede { margin-top: 18px; font-size: 16px; }
  .services {
    margin-top: 20px;
    gap: 0 10px;
    white-space: nowrap;
    font-size: 12px;
  }
  .services li { gap: 0 10px; }
  .services .long { display: none; }
  .services .short { display: inline; }

  .card {
    margin-top: 28px;
    border-radius: 18px;
    padding: 22px 20px;
    box-shadow: 0 20px 50px -30px rgba(28, 25, 23, .25);
  }
  .scale { font-size: 11px; margin-bottom: 4px; }
  input[type=range]::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -11px; }
  input[type=range]::-moz-range-thumb { width: 16px; height: 16px; }
  .stop { margin-top: 20px; min-height: 118px; }
  .stop-title { font-size: 22px; line-height: 1.2; }
  .stop-body { margin-top: 10px; font-size: 15px; }
  .cta { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 18px; padding-top: 16px; }
  .tag { font-size: 12px; }
  .button { display: flex; justify-content: center; padding: 15px 20px; }
  .bottom { margin-top: auto; gap: 12px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .stop-title, .stop-body, .button, input[type=range]::-webkit-slider-thumb { transition: none; }
}
