:root {
  --ground: #f4f4f5;
  --win: #ffffff;
  --line: rgba(17, 17, 19, 0.08);
  --ink: #111113;
  --soft: #6b6b73;
  --accent: #4f46e5;
  --overview: #ffffff;
  --pricing: #f3f1ff;
  --changelog: #effaf4;
  --shadow: 0 30px 60px -28px rgba(17, 17, 19, 0.28), 0 2px 6px rgba(17, 17, 19, 0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--ground);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.stage {
  height: 100vh;
  display: grid;
  place-items: center;
}

/* the app window */
.win {
  position: relative;
  width: min(92vw, 860px);
  height: min(88vh, 560px);
  background: var(--win);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.bar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  height: clamp(44px, 7vh, 52px);
  padding: 0 12px 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 250, 251, 0.92);
}

.brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 640;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand svg, .search svg {
  width: 17px; height: 17px;
  fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round;
}

.tabs {
  position: relative;
  display: flex;
  gap: 2px;
  margin: 0 auto;
  padding: 3px;
  border-radius: 11px;
  background: rgba(17, 17, 19, 0.045);
}

.tabs__pill {
  position: absolute;
  left: 0; top: 0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(17, 17, 19, 0.1), 0 0 0 1px rgba(17, 17, 19, 0.05);
  pointer-events: none;
}

.tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--soft);
  font: inherit;
  font-size: 13px;
  font-weight: 520;
  cursor: pointer;
  transition: color 0.25s ease;
}

.tab span { display: inline-block; }

.tab svg {
  width: 14px; height: 14px;
  fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round;
}

.tab.is-on { color: var(--ink); }

.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (hover: hover) {
  .tab:hover { color: var(--ink); }
}

.search { color: var(--soft); display: flex; }

.area { flex: 1; background: #f2f2f4; }

/* the pages: placed by the script over the area, or over a tab while they fly */
.page {
  position: absolute;
  left: 0; top: 0;
  z-index: 2;
  overflow: hidden;
  visibility: hidden;
  will-change: left, top, width, height;
}

.page--overview { background: var(--overview); }
.page--pricing { background: var(--pricing); }
.page--changelog { background: var(--changelog); }

.page__in {
  position: absolute;
  left: 0; top: 0;
  padding: clamp(18px, 5vh, 40px) clamp(18px, 5vw, 44px);
}

.kicker {
  font-size: 12px;
  font-weight: 560;
  color: var(--accent);
  margin-bottom: 10px;
}

.title {
  font-size: clamp(24px, min(5.4vw, 7.4vh), 46px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 640;
  font-variation-settings: "wdth" 100;
}

.sub {
  margin-top: 12px;
  max-width: 34ch;
  font-size: clamp(12px, 1.9vh, 14.5px);
  line-height: 1.45;
  color: var(--soft);
}

/* the overview picture: a soft gradient with a tracking card */
.hero {
  position: relative;
  margin-top: clamp(14px, 4vh, 30px);
  width: min(100%, 480px);
  height: clamp(100px, 20vh, 150px);
  border-radius: 14px;
  overflow: hidden;
  background: #eef0ff;
}

.hero__glow {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(40% 50% at 30% 40%, rgba(129, 140, 248, 0.75), transparent 70%),
    radial-gradient(35% 45% at 70% 65%, rgba(244, 114, 182, 0.45), transparent 70%),
    radial-gradient(30% 40% at 60% 20%, rgba(52, 211, 153, 0.35), transparent 70%);
  filter: blur(18px);
}

.hero__card {
  position: absolute;
  right: 14px; bottom: 12px;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  width: min(62%, 220px);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px -14px rgba(17, 17, 19, 0.35);
  font-size: 11px;
}

.hero__label { color: var(--soft); font-variant-numeric: tabular-nums; }
.hero__route { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.hero__route svg { width: 22px; height: 8px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.hero__bar { height: 3px; border-radius: 3px; background: rgba(17, 17, 19, 0.08); overflow: hidden; }
.hero__bar i { display: block; width: 68%; height: 100%; background: var(--accent); border-radius: 3px; }
.hero__eta { color: var(--soft); font-variant-numeric: tabular-nums; }

/* pricing */
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: clamp(14px, 4vh, 30px);
  width: min(100%, 460px);
}

.plan {
  display: grid;
  gap: 4px;
  padding: clamp(10px, 2.4vh, 18px);
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.plan--pro { border-color: rgba(79, 70, 229, 0.35); box-shadow: 0 12px 26px -18px rgba(79, 70, 229, 0.6); }
.plan__name { font-size: 12px; font-weight: 600; color: var(--soft); }
.plan__price { font-size: clamp(18px, 3.6vh, 26px); font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan__price small { font-size: 11px; font-weight: 500; color: var(--soft); margin-left: 3px; letter-spacing: 0; }
.plan__note { font-size: 11px; color: var(--soft); }

/* changelog */
.log {
  list-style: none;
  margin-top: clamp(12px, 3.4vh, 26px);
  width: min(100%, 480px);
}

.log li {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: clamp(7px, 1.6vh, 11px) 0;
  border-top: 1px solid var(--line);
  font-size: clamp(11px, 1.8vh, 13.5px);
}

.log__date { color: var(--soft); font-variant-numeric: tabular-nums; font-size: 11px; }
.log__tag {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
}

/* the drawn pointer of the autopilot */
.ghost {
  position: fixed; left: 0; top: 0;
  width: 22px; height: 22px;
  fill: #111113; stroke: #ffffff; stroke-width: 1.4; stroke-linejoin: round;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
  z-index: 9;
}

@media (max-width: 560px) {
  .bar { gap: 6px; padding: 0 8px 0 10px; }
  .brand { font-size: 0; gap: 0; }
  .search { display: none; }
  .tab { padding: 0 8px; font-size: 12px; gap: 4px; height: 28px; }
  .tab svg { display: none; }
  .tabs { margin: 0 0 0 auto; }
  .hero__card { width: 70%; }
  .plans { grid-template-columns: 1fr; gap: 6px; }
  .plan { grid-template-columns: 1fr auto; align-items: center; padding: 8px 10px; }
  .plan__note { display: none; }
  .log li { grid-template-columns: 40px 1fr; }
  .log__tag { display: none; }
}
