:root {
  color-scheme: light;
  --background: #f5f2ea;
  --surface: #fffdf8;
  --text: #171815;
  --muted: #65675f;
  --border: #d8d5cc;
  --accent: #2855d9;
  --accent-dark: #193ca7;
  --success: #197245;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 8%, rgba(40, 85, 217, 0.10), transparent 28rem),
    var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(40, 85, 217, 0.35);
  outline-offset: 4px;
  border-radius: 4px;
}

.site-header,
main,
footer {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(23, 24, 21, 0.12);
}

.brand {
  font-size: 1.15rem;
  font-weight: 760;
  letter-spacing: -0.03em;
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

nav a:hover {
  color: var(--text);
}

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: clamp(48px, 8vw, 96px);
  padding: 90px 0 100px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 7vw, 6.2rem);
  font-weight: 790;
}

h2 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(2.25rem, 4.8vw, 4.25rem);
  font-weight: 760;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.lede {
  max-width: 680px;
  margin-bottom: 32px;
  color: #454841;
  font-size: clamp(1.12rem, 2vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 720;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--accent);
  color: white;
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  border-color: var(--border);
  background: rgba(255, 253, 248, 0.7);
}

.button.secondary:hover {
  border-color: #aaa79f;
  background: var(--surface);
}

.compatibility {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.route-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.84);
  box-shadow: 0 24px 70px rgba(38, 40, 34, 0.10);
}

.route-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.route-label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 650;
}

.device {
  padding: 8px 11px;
  border-radius: 8px;
  background: #ebe9e2;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: right;
}

.device.selected {
  background: #dcecdf;
  color: var(--success);
}

.route-divider {
  height: 1px;
  margin: 20px 0;
  background: var(--border);
}

.route-card p {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.problem,
.steps,
.install,
.privacy,
.faq {
  padding: 110px 0;
  border-top: 1px solid var(--border);
}

.problem > p:last-child {
  max-width: 850px;
  margin: 0;
  color: #454841;
  font-size: clamp(1.1rem, 2vw, 1.32rem);
}

.section-heading {
  margin-bottom: 52px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-grid article {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.62);
}

.step-number {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 42px;
  border-radius: 50%;
  background: var(--text);
  color: white;
  font-size: 0.82rem;
  font-weight: 750;
}

.step-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.install {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 90px;
  align-items: start;
}

.install ol {
  margin: 0;
  padding-left: 24px;
}

.install li {
  margin-bottom: 18px;
  padding-left: 8px;
}

.install .button,
.install-note {
  grid-column: 2;
}

.install .button {
  justify-self: start;
}

.install-note {
  margin: -18px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.privacy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
}

.privacy p:last-child {
  margin: 0;
  color: #454841;
  font-size: 1.08rem;
}

.faq h2 {
  margin-bottom: 48px;
}

details {
  border-top: 1px solid var(--border);
}

details:last-child {
  border-bottom: 1px solid var(--border);
}

summary {
  padding: 22px 0;
  cursor: pointer;
  font-weight: 720;
  list-style-position: outside;
}

details p {
  max-width: 800px;
  margin: -4px 0 24px;
  color: var(--muted);
}

footer {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

footer span:first-child {
  color: var(--text);
  font-weight: 760;
}

@media (max-width: 820px) {
  .site-header nav a:not(:last-child) {
    display: none;
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 70px 0 84px;
  }

  .route-card {
    max-width: 520px;
  }

  .problem,
  .steps,
  .install,
  .privacy,
  .faq {
    padding: 80px 0;
  }

  .step-grid,
  .install,
  .privacy {
    grid-template-columns: 1fr;
  }

  .step-grid article {
    min-height: 0;
  }

  .step-number {
    margin-bottom: 30px;
  }

  .install,
  .privacy {
    gap: 28px;
  }

  .install .button,
  .install-note {
    grid-column: 1;
  }

  .install-note {
    margin-top: -8px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .site-header,
  main,
  footer {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-header {
    min-height: 66px;
  }

  h1 {
    font-size: clamp(2.75rem, 15vw, 4.4rem);
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .route-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .device {
    text-align: left;
  }

  footer {
    padding: 28px 0;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
