@font-face {
  font-family: Onest;
  src: url("onest.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --canvas: light-dark(#f3f6f7, #0b151e);
  --ink: light-dark(#112a3c, #eff7fa);
  --muted: light-dark(#405a6c, #b7c9d4);
  --surface: light-dark(#e8eff2, #10212d);
  --line: light-dark(#c4d3db, #36505e);
  --stroke: light-dark(#627a89, #688696);
  --accent: light-dark(#075f8e, #83d4fc);
  --primary: #75cdf7;
  --primary-hover: #57bce9;
  --on-primary: #0b2233;
  --error: light-dark(#a02c34, #ffb5b6);
  --section-space: clamp(3.4rem, 7vw, 7rem);
  color: var(--ink);
  background: var(--canvas);
  font-family: Onest, system-ui, sans-serif;
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--accent); }
button, input, select { font: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 760; line-height: 1.02; letter-spacing: -.052em; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 6vw, 6.25rem); }
h2 { font-size: clamp(2rem, 4.2vw, 4rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); letter-spacing: -.025em; }
p { line-height: 1.55; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(100% - clamp(2rem, 8vw, 8rem), 82rem); margin-inline: auto; }
.sr, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.skip:focus { position: absolute; top: .75rem; left: 1rem; z-index: 4; padding: .75rem; background: var(--canvas); }

.mast { border-block-end: 1px solid var(--line); }
.mast-row, .mast-nav, .mast-actions, .foot, .foot nav { display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.75rem); }
.mast-row { justify-content: space-between; min-height: 4.75rem; }
.mast-nav a { text-decoration: none; font-weight: 620; font-size: .94rem; }
.mast-actions { gap: .6rem; }
.wordmark { display: inline-flex; align-items: center; line-height: 1; white-space: nowrap; text-decoration: none; font-size: 1.48rem; font-weight: 800; letter-spacing: -.06em; }
.wordmark img { margin-inline-end: .35rem; }
.wordmark span { color: var(--accent); }
.theme-switch {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: .2rem;
  padding: 0 .35rem;
  border: 1px solid var(--stroke);
  border-radius: 2rem;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.theme-switch span { display: grid; width: 1.45rem; aspect-ratio: 1; place-items: center; line-height: 1; }
.theme-switch[aria-checked="false"] span:first-child,
.theme-switch[aria-checked="true"] span:last-child { border-radius: 50%; background: var(--primary); color: var(--on-primary); }
.button, .text-link {
  min-height: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .55rem;
  font-weight: 710;
  text-align: center;
}
.button {
  min-height: 50px;
  padding: .7rem 1.1rem;
  border: 1px solid var(--stroke);
  border-radius: .5rem;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--canvas); color: var(--ink); border-color: var(--accent); }
.button.small { min-height: 44px; padding: .5rem .8rem; font-size: .88rem; }
.button.primary { color: var(--on-primary); background: var(--primary); border-color: transparent; }
.button.primary:hover { background: var(--primary-hover); }
.button:disabled { opacity: .65; cursor: wait; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 5rem);
  padding-block: clamp(3.25rem, 7vw, 6.5rem);
}
.hero h1 { max-width: 13ch; text-wrap: wrap; }
.hero-copy > p { margin-block: 1.35rem 1.75rem; max-width: 42ch; color: var(--muted); font-size: clamp(1rem, 1.55vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.hero-copy .hero-trial-note { margin: .85rem 0 0; font-size: .9rem; }
.observatory { margin: 0; position: relative; padding: 1.6rem .8rem 2.6rem; }
.planet { position: relative; aspect-ratio: 1; width: 90%; margin-inline: auto; }
.planet img, .planet canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.network-lines { position: absolute; inset: 5% 0 auto; width: 100%; height: 86%; stroke: var(--stroke); stroke-width: 1; pointer-events: none; }
.network-front { stroke: var(--accent); }
.network-front circle { fill: var(--accent); }
.network-signal { stroke-width: 2.5; stroke-dasharray: 32 630; }
.rotation {
  position: absolute;
  inset: auto 0 0 auto;
  min-height: 44px;
  padding: .5rem .8rem;
  border: 0;
  border-radius: .4rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.rotation:hover { background: var(--surface); color: var(--ink); }

.section, .band { padding-block: var(--section-space); }
.band { background: var(--surface); }
.spread { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 7vw, 7rem); }
.section-copy { color: var(--muted); margin-top: 1rem; max-width: 52ch; }
.steps, .tariffs { list-style: none; padding: 0; margin: 0; }
.steps { counter-reset: step; }
.steps li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.35rem 0; counter-increment: step; }
.steps li + li, .features > div + div { border-block-start: 1px solid var(--line); }
.steps li:first-child, .features > div:first-child { padding-block-start: 0; }
.steps li::before { content: counter(step) / ""; color: var(--accent); font-size: 1.75rem; line-height: 1; font-weight: 750; }
.steps p { margin-top: .35rem; color: var(--muted); }
.features { margin: 0; }
.features > div { padding-block: 1.05rem; }
.features dt { font-size: 1.15rem; font-weight: 720; }
.features dd { margin: .32rem 0 0; color: var(--muted); line-height: 1.55; }

.pricing-intro { margin-bottom: clamp(1.5rem, 3.5vw, 3rem); }
.tariffs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.tariff {
  --tariff-padding: clamp(1rem, 2vw, 1.6rem);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  padding: var(--tariff-padding);
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: var(--canvas);
}
.tariff.featured {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--canvas), var(--accent) 9%);
}
.tariff-badge {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: var(--tariff-padding);
  translate: 0 -50%;
  padding: .2rem .55rem;
  border-radius: 1rem;
  background: var(--accent);
  color: var(--canvas);
  font-size: .75rem;
  font-weight: 720;
  line-height: 1.35;
  white-space: nowrap;
}
.price { font-weight: 795; font-size: clamp(2rem, 3.5vw, 3.5rem); letter-spacing: -.045em; white-space: nowrap; }
.tariff p { color: var(--muted); }
.tariff .button { margin-block-start: auto; }
.commerce {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.5rem, 5vw, 5rem);
  margin-block-start: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(1.25rem, 4vw, 3rem);
  border-radius: 1rem;
  background: var(--canvas);
}
.commerce h2 { font-size: clamp(1.65rem, 3.15vw, 3rem); text-wrap: wrap; }
.commerce p { color: var(--muted); margin-block-start: .7rem; }
form { display: grid; gap: .65rem; }
form label { font-weight: 650; }
input:not([type="checkbox"]), select {
  display: block;
  min-width: 0;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--stroke);
  border-radius: .45rem;
  padding: .58rem .7rem;
  background: var(--canvas);
  color: var(--ink);
}
.consent { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .65rem; padding: .35rem 0; font-size: .9rem; line-height: 1.45; }
.consent input { width: 1.15rem; height: 1.15rem; margin: .1rem 0; accent-color: var(--primary); }
.commerce .error, .error { color: var(--error); }

.questions details + details { border-block-start: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 48px; padding: .8rem 0; font-weight: 670; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+" / ""; flex: none; color: var(--accent); font-size: 1.35rem; line-height: 1; }
details[open] > summary::after { content: "−" / ""; }
.questions p { margin: 0 1rem 1rem 0; color: var(--muted); }
.foot { border-block-start: 1px solid var(--line); flex-wrap: wrap; justify-content: space-between; padding-block: 1.75rem; }
.foot nav { flex-wrap: wrap; }
.foot li, .foot small, .foot nav a { font-size: .87rem; }
.foot small { color: var(--muted); }

.flow { max-width: 42rem; padding-block: var(--section-space); }
.flow h1 { font-size: clamp(2.3rem, 6vw, 4.25rem); text-wrap: wrap; }
.flow h2 { font-size: 1.6rem; }
.flow p, .flow form, .flow details, .flow .receipt, .flow h2, .flow > .button { margin-block-start: 1rem; }
.flow p { color: var(--muted); }
.flow .error { color: var(--error); }
.flow .flow-note { font-size: .88rem; overflow-wrap: anywhere; }
.receipt { display: grid; grid-template-columns: minmax(0, auto) 1fr; gap: .8rem; background: var(--surface); border-radius: .6rem; padding: 1rem; }
.receipt dd { margin: 0; font-weight: 670; }
.masked, .seller { overflow-wrap: anywhere; }
.seller, .document-text { white-space: pre-line; overflow-wrap: anywhere; }
.password-field label { display: block; padding-block-end: .35rem; }
.document { max-width: 46rem; }
.document h1 { font-size: clamp(2rem, 6vw, 3.75rem); overflow-wrap: anywhere; }
.document section { margin-block-start: 2rem; }
.document section h2 { line-height: 1.2; letter-spacing: -.025em; }
.document section h3 { margin-block-start: 1.25rem; }
.document section p, .document ul { margin-block: .65rem 0; }
.document ul { padding-inline-start: 1.4rem; line-height: 1.65; color: var(--muted); }
.document li + li { margin-block-start: .3rem; }
.document [id] { scroll-margin-block-start: 1.5rem; }
.measurement { display: none; }

@media (max-width: 53rem) {
  .mast-nav { display: none; }
  .tariffs { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.5rem; }
}
@media (max-width: 42rem) {
  .hero, .spread, .commerce { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 14ch; }
  .observatory { width: min(100%, 20rem); margin: auto; }
  .steps li { grid-template-columns: 1.5rem minmax(0, 1fr); }
  .tariffs { column-gap: .55rem; }
  .price { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .tariff .button { font-size: .875rem; padding-inline: .3rem; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .button { transition: background-color 160ms ease, border-color 160ms ease, scale 150ms ease-out; }
  .button:active { scale: .975; }
  .tariff { transition: translate 180ms ease-out; }
  .tariff:focus-within { translate: 0 -.2rem; }
  .network-signal { animation: signal 15s linear infinite; }
  .observatory[data-stationary="true"] .network-signal { animation-play-state: paused; }
  [data-reveal].entering { animation: reveal 440ms cubic-bezier(.2,.65,.3,1) both; }
  @keyframes signal { to { stroke-dashoffset: -662; } }
  @keyframes reveal { from { opacity: .55; translate: 0 .7rem; } }
  @supports selector(details::details-content) and (interpolate-size: allow-keywords) {
    .questions details::details-content {
      display: block;
      block-size: 0;
      opacity: 0;
      overflow: clip;
      interpolate-size: allow-keywords;
      transition: block-size 240ms ease, opacity 200ms ease, content-visibility 240ms allow-discrete;
    }
    .questions details[open]::details-content { block-size: auto; opacity: 1; }
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tariff:has(.button:hover) { translate: 0 -.2rem; }
}
