/* Turnout: one bold element (the track diagram), everything else quiet. */

:root {
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --ink: #1A2230;
  --ink-2: #4A5566;
  --ink-3: #7A8596;
  --rail: #C3CAD4;
  --line: #E1E5EB;
  --work: #EE8A3A;
  --personal: #4F7BEA;
  --client: #3DAA5C;
  --safari: #2F8CF0;
  --btn-bg: #1A2230;
  --btn-ink: #FFFFFF;
  --shadow: 0 1px 2px rgba(26, 34, 48, .06), 0 12px 32px -12px rgba(26, 34, 48, .18);

  --display: "Overpass", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", sans-serif;
  --mono: "Overpass Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --measure: 34rem;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151A21;
    --surface: #1D232C;
    --ink: #ECEFF3;
    --ink-2: #B4BCC8;
    --ink-3: #8691A1;
    --rail: #3A4350;
    --line: #2A313B;
    --btn-bg: #ECEFF3;
    --btn-ink: #151A21;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #151A21;
  --surface: #1D232C;
  --ink: #ECEFF3;
  --ink-2: #B4BCC8;
  --ink-3: #8691A1;
  --rail: #3A4350;
  --line: #2A313B;
  --btn-bg: #ECEFF3;
  --btn-ink: #151A21;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
code { font-family: var(--mono); font-size: .88em; }

:focus-visible { outline: 3px solid var(--personal); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 10;
  background: var(--btn-bg); color: var(--btn-ink); padding: 8px 14px; border-radius: 8px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* Nav */

.nav {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 20px/1 var(--display); letter-spacing: -.01em; }
.brand-mark { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.brand-mark circle { fill: var(--work); stroke: none; }
.nav nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav nav a:not(.btn) { text-decoration: none; color: var(--ink-2); }
.nav nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 640px) {
  .nav nav a:not(.btn) { display: none; }
}

/* Buttons */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 12px;
  background: var(--btn-bg); color: var(--btn-ink);
  font: 600 16px/1 var(--body); text-decoration: none;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { opacity: .9; }
.btn:active { transform: scale(.98); }
.btn svg { width: 19px; height: 19px; fill: currentColor; margin-top: -2px; }
.btn-small { height: 34px; padding: 0 14px; border-radius: 9px; font-size: 14px; }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rail); }
.btn-quiet[aria-disabled="true"] { color: var(--ink-3); cursor: default; }
.btn-quiet[aria-disabled="true"]:hover { opacity: 1; }

/* Hero */

.hero { padding-top: clamp(48px, 9vw, 112px); }
.hero h1 {
  font: 800 clamp(44px, 7.4vw, 92px)/.98 var(--display);
  letter-spacing: -.035em;
  max-width: 12.5ch;
  margin: 0 0 28px;
  text-wrap: balance;
}
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: var(--measure); margin: 0 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fineprint { color: var(--ink-3); font-size: 14px; margin: 16px 0 0; }

/* The yard: track diagram */

.yard { margin: clamp(40px, 7vw, 88px) 0 0; padding-bottom: clamp(56px, 8vw, 104px); border-bottom: 1px solid var(--line); }
.yard-svg { width: 100%; height: auto; overflow: visible; }

.rails path { fill: none; stroke: var(--rail); stroke-width: 6; stroke-linecap: round; }
.lit path { fill: none; stroke: var(--route, var(--ink)); stroke-width: 6; stroke-linecap: round; transition: stroke .3s ease; }

.switch rect { fill: var(--surface); stroke: var(--rail); stroke-width: 2; filter: drop-shadow(0 4px 10px rgba(26, 34, 48, .12)); }
.switch-blade { stroke: var(--ink); stroke-width: 5; stroke-linecap: round; transform-origin: -22px 0; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); }
.switch circle { fill: var(--ink); }

.node text { font-family: var(--body); fill: var(--ink-2); font-size: 18px; }
.source rect { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; filter: drop-shadow(0 2px 6px rgba(26, 34, 48, .08)); transition: stroke .3s ease; }
.source .glyph { fill: none; stroke: var(--ink-2); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.source.on rect { stroke: var(--route); stroke-width: 2.5; }

.dest .avatar { fill: var(--c); opacity: .35; transition: opacity .3s ease; }
.dest .initial { fill: #fff; font: 700 21px/1 var(--display); text-anchor: middle; }
.dest .needle { fill: #fff; }
.dest .label { fill: var(--ink-2); font-weight: 600; font-size: 19px; transition: fill .3s ease; }
.dest .sub { fill: var(--ink-3); font-size: 15px; }
.dest.on .avatar { opacity: 1; }
.dest.on .label { fill: var(--ink); }

.train { fill: var(--route, var(--ink)); }

.yard-caption {
  display: grid; gap: 4px; justify-items: start;
  margin: 28px auto 0; max-width: 640px; min-height: 3.4em;
  text-align: left;
}
.cap-url {
  font-family: var(--mono); font-size: 15px; color: var(--ink);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cap-why { font-size: 15px; color: var(--ink-3); }
.cap-why::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--route, var(--ink-3)); margin-right: 8px; vertical-align: 1px; }

@media (max-width: 640px) {
  /* Text inside the diagram gets too small to read; the caption carries the story. */
  .node text:not(.initial) { display: none; }
  .yard-svg { margin: 0 -8px; width: calc(100% + 16px); }
}

/* Sections */

.section { padding: clamp(72px, 10vw, 128px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-title {
  font: 800 clamp(32px, 4.4vw, 52px)/1.04 var(--display);
  letter-spacing: -.03em;
  max-width: 16ch;
  margin: 0 0 20px;
  text-wrap: balance;
}
.section-lede { color: var(--ink-2); font-size: 19px; max-width: var(--measure); margin: 0; }

.feature {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 80px); align-items: center;
  margin-top: clamp(64px, 9vw, 112px);
}
.feature-flip .feature-text { order: 2; }
.feature h3 { font: 700 26px/1.15 var(--display); letter-spacing: -.02em; margin: 0 0 14px; }
.feature p { color: var(--ink-2); margin: 0 0 14px; max-width: 30rem; }
.feature p code { color: var(--ink); }
.feature-shot img { border-radius: 12px; box-shadow: var(--shadow); }
.feature-shot.picker { display: grid; place-items: center; padding: clamp(24px, 5vw, 56px) 0; }
.feature-shot.picker img { border-radius: 14px; width: 586px; }

@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; }
  .feature-flip .feature-text { order: 0; }
}

/* Unwrap illustration */

.unwrap {
  background: var(--surface); border-radius: 14px; box-shadow: var(--shadow);
  padding: 8px 22px; display: grid;
}
.unwrap-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 16px 0; }
.unwrap-row + .unwrap-row { border-top: 1px solid var(--line); }
.unwrap-tag { font-size: 13px; color: var(--ink-3); }
.unwrap-before { color: var(--ink-3); font-size: 13.5px; line-height: 1.5; word-break: break-all; text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink-3) 50%, transparent); }
.unwrap-after { color: var(--ink); font-size: 15px; font-weight: 600; word-break: break-all; }
.unwrap-dest { grid-template-columns: 72px minmax(0, 1fr); align-items: center; font-weight: 600; font-size: 15px; }
.dot {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--c); color: #fff; font: 700 14px/1 var(--display); padding-top: 2px;
}

.extras {
  list-style: none; padding: 0; margin: clamp(72px, 10vw, 120px) 0 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  column-gap: 48px; row-gap: 28px;
}
.extras li { color: var(--ink-2); font-size: 16px; max-width: 34ch; }
.extras strong { color: var(--ink); font-weight: 600; }

/* Pricing */

.plans {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
  margin-top: 48px; max-width: 860px;
}
.plan { padding: 32px; border-radius: 18px; box-shadow: inset 0 0 0 1.5px var(--line); display: flex; flex-direction: column; }
.plan-pro { background: var(--surface); box-shadow: var(--shadow); }
.plan h3 { font: 700 22px/1 var(--display); margin: 0 0 12px; }
.price { margin: 0 0 24px; color: var(--ink-3); }
.amount { font: 800 44px/1 var(--display); letter-spacing: -.03em; color: var(--ink); }
.once { font-size: 16px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 32px; flex: 1; }
.plan li { padding: 9px 0 9px 28px; position: relative; color: var(--ink-2); font-size: 16px; }
.plan li::before {
  content: ""; position: absolute; left: 2px; top: 17px; width: 14px; height: 6px;
  border-left: 2.5px solid var(--client); border-bottom: 2.5px solid var(--client);
  transform: rotate(-45deg);
}
.plan .btn { align-self: flex-start; }
.pricing .fineprint { margin-top: 28px; max-width: var(--measure); }

@media (max-width: 720px) {
  .plans { grid-template-columns: 1fr; }
}

/* FAQ */

.faq { max-width: 820px; margin-left: max(0px, calc((100% - 1120px) / 2)); }
.faq .section-title { margin-bottom: 32px; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font: 600 19px/1.35 var(--body);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
details p { margin: -6px 0 24px; color: var(--ink-2); max-width: 40rem; }

/* Footer */

.footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--ink-3); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Footer comparison links */

.footer-inner { align-items: flex-start; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--ink-3); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }

/* Comparison pages */

.compare-head { padding-bottom: 0; }
.compare-title {
  font: 800 clamp(44px, 7vw, 84px)/.98 var(--display);
  letter-spacing: -.035em;
  margin: 0 0 28px;
}
.compare .section + .section { border-top: 0; padding-top: 0; }

.table-scroll { overflow-x: auto; margin-top: 36px; border-radius: 16px; box-shadow: inset 0 0 0 1.5px var(--line); }
.compare-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; }
.compare-table th, .compare-table td { text-align: left; padding: 14px 20px; vertical-align: top; }
.compare-table thead th { font: 700 18px/1.2 var(--display); padding-top: 20px; padding-bottom: 16px; }
.compare-table thead th:nth-child(2) { color: var(--ink); }
.compare-table tbody tr { border-top: 1px solid var(--line); }
.compare-table tbody th { font-weight: 400; color: var(--ink-2); width: 34%; }
.compare-table td { width: 33%; color: var(--ink); }
.compare-table td:nth-child(2) { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.compare-table td.unknown { color: var(--ink-3); }
.compare-table td.no { color: var(--ink-3); }
.compare-table td.yes::before, .compare-table td.pro::before {
  content: ""; display: inline-block; width: 12px; height: 5px; margin: 0 10px 4px 0;
  border-left: 2.5px solid var(--client); border-bottom: 2.5px solid var(--client); transform: rotate(-45deg);
}
.compare-table td.pro::before { border-color: var(--work); }

.verdicts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 80px); }
.verdicts h2 { font: 700 26px/1.15 var(--display); letter-spacing: -.02em; margin: 0 0 16px; }
.verdicts ul { margin: 0; padding-left: 20px; color: var(--ink-2); }
.verdicts li { margin: 0 0 12px; max-width: 34rem; }
@media (max-width: 720px) { .verdicts { grid-template-columns: 1fr; } }

.compare-cta { margin-top: 32px; }

/* Waiting list */

.soon { color: var(--ink-2); font-size: 16px; max-width: var(--measure); margin: 0 0 14px; }
.waitlist { display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; }
.waitlist input[type="email"] {
  flex: 1 1 240px; min-width: 0; height: 48px; padding: 0 16px;
  border: 0; border-radius: 12px; background: var(--surface); color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--rail);
  font: 400 16px/1 var(--body);
}
.waitlist input[type="email"]::placeholder { color: var(--ink-3); }
.waitlist input[type="email"]:focus-visible { outline: 3px solid var(--personal); outline-offset: 1px; }
.waitlist .btn { border: 0; cursor: pointer; flex: 0 0 auto; }
.waitlist .btn:disabled { opacity: .6; cursor: default; }
.waitlist .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.waitlist-status { flex-basis: 100%; margin: 4px 0 0; min-height: 1.4em; font-size: 15px; color: var(--ink-2); }
.waitlist-status.error { color: #C2412D; }
.waitlist.done input[type="email"], .waitlist.done .btn { display: none; }
.waitlist.done .waitlist-status { color: var(--ink); font-weight: 600; }
.waitlist.done .waitlist-status::before {
  content: ""; display: inline-block; width: 12px; height: 5px; margin: 0 10px 4px 2px;
  border-left: 2.5px solid var(--client); border-bottom: 2.5px solid var(--client); transform: rotate(-45deg);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .waitlist-status.error { color: #F08A7A; }
}
.compare-cta { margin-top: 32px; }
