@import url("https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --bg: #f4f6fb;
  --surface: #e8ebf4;
  --ink: #14161f;
  --muted: #3d4456;
  --accent: #326af3;
  --accent-hover: #424ce2;
  --accent-ink: #ffffff;
  --focus: #14161f;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "Hanken Grotesk", "Segoe UI", sans-serif;
  --display: clamp(2rem, 1.05rem + 2.6vw, 2.75rem);
  --h2: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --h3: 1.2rem;
  --body-lg: 1.125rem;
  --body: 1.0625rem;
  --body-sm: 1rem;
  --caption: 0.875rem;
  --button: 1rem;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 56px;
  --radius: 8px;
  --measure: 40rem;
  --page: min(720px, calc(100% - 40px));
  --wide: min(1040px, calc(100% - 48px));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
}

* { box-sizing: border-box; }

html {
  font-size: 100%;
  scroll-padding-top: 72px;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}

body {
  min-height: 100vh;
  font-size: var(--body);
}

a {
  color: var(--ink);
  text-underline-offset: 3px;
}

a:hover { color: var(--accent-hover); }

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(-120%);
  padding: 8px 12px;
  background: var(--ink);
  color: var(--bg);
  z-index: 20;
}

.skip:focus-visible {
  transform: none;
}

.wrap {
  width: var(--wide);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--surface);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.brand:hover { color: var(--ink); text-decoration: none; }

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  font-size: var(--body-sm);
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover { color: var(--ink); }

.nav-links .btn {
  margin-left: 8px;
  color: var(--accent-ink);
}

.nav-links .btn:hover {
  color: var(--accent-ink);
}

.nav-more {
  position: relative;
}

.nav-more summary {
  display: none;
  cursor: pointer;
  list-style: none;
  color: var(--muted);
  font: 600 var(--body-sm)/1.2 var(--sans);
}

.nav-more summary::-webkit-details-marker { display: none; }

.nav-more summary:hover { color: var(--ink); }

.nav-more-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 var(--button)/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease);
}

.btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-ink);
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible,
.nav-links a:focus-visible,
.nav-more summary:focus-visible,
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.btn.ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn.ghost:hover {
  background: var(--surface);
  border-color: var(--ink);
  color: var(--ink);
}

.hero {
  padding: 56px 0 48px;
}

.hero-inner {
  max-width: 38rem;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: var(--display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.lede {
  margin: 0 0 28px;
  max-width: 42ch;
  color: var(--muted);
  font-size: var(--body-lg);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.band {
  padding: 52px 0;
}

.band-alt {
  background: var(--surface);
}

.band h2 {
  margin: 0 0 20px;
  font-size: var(--h2);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.band p {
  max-width: var(--measure);
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.steps li {
  margin: 0;
}

.step-n {
  display: block;
  margin: 0 0 10px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: var(--caption);
  font-weight: 500;
}

.steps p {
  margin: 0;
  max-width: none;
  color: var(--muted);
}

.band-cta {
  margin: 24px 0 0;
}

.path,
code {
  font-family: var(--mono);
  font-size: 0.9em;
}

.path {
  display: block;
  max-width: none;
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.band-alt .path {
  background: var(--bg);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px 56px;
  align-items: start;
}

.split h2 { margin-bottom: 16px; }

.split p { margin: 0; }

.specs {
  width: 100%;
  max-width: none;
  border-collapse: collapse;
  font-size: var(--body);
}

.specs th,
.specs td {
  padding: 14px 0;
  border-bottom: 1px solid var(--bg);
  text-align: left;
  vertical-align: top;
}

.specs tr:last-child th,
.specs tr:last-child td { border-bottom: 0; }

.specs th {
  width: 28%;
  padding-right: 16px;
  color: var(--ink);
  font-weight: 600;
}

.specs td { color: var(--muted); }

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 20px 0 12px;
}

.price-row strong {
  font-size: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.note {
  margin: 16px 0 0;
  max-width: var(--measure);
  color: var(--muted);
  font-size: var(--body-sm);
}

.install-list {
  max-width: var(--measure);
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
}

.install-list li { margin: 0 0 12px; }
.install-list li:last-child { margin-bottom: 0; }

.legal {
  width: var(--page);
  margin: 0 auto;
  padding: 48px 0 72px;
}

.legal h1 {
  margin: 0 0 12px;
  font-size: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.legal h2 {
  margin: 32px 0 10px;
  font-size: var(--h2);
  font-weight: 650;
}

.legal p,
.legal li { color: var(--muted); }

.legal ul { padding-left: 1.2em; }

.meta {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: var(--caption);
}

.help-toc {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: var(--body-sm);
}

.help details {
  margin: 0;
  border-bottom: 1px solid var(--surface);
}

.help summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 0;
  color: var(--ink);
  font-weight: 600;
}

.help summary::-webkit-details-marker { display: none; }

.help .faq-body { padding: 0 0 16px; }

.help .faq-body p,
.help .faq-body li { color: var(--muted); }

.help .faq-body ol,
.help .faq-body ul { padding-left: 1.2em; }

.help .faq-body li { margin: 0 0 6px; }

.footer {
  padding: 20px 0;
  color: var(--muted);
  font-size: var(--caption);
  background: var(--surface);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer a { color: var(--muted); }
.footer a:hover { color: var(--ink); }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .nav { flex-wrap: nowrap; }
  .hero { padding: 36px 0 32px; }
  .hero-inner { max-width: none; }
  .band { padding: 40px 0; }
  .brand {
    min-width: 0;
    max-width: calc(100% - 168px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .nav-more summary {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 4px;
  }
  .nav-more-panel {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% - 4px);
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    min-width: 12rem;
    padding: 10px 12px;
    background: var(--bg);
  }
  .nav-more[open] .nav-more-panel {
    display: flex;
  }
  .nav-more-panel a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
