/* Ada — marketing site.
   Design: the product's claim is measurable, so the page is built like an instrument
   readout rather than a landing page — hairline rules, mono labels, tabular figures.
   Colour is functional: green is Ada's data, amber is the comparison arm. Fonts are
   served from this repo (Ada ships offline-safe pages; its own site shouldn't beg a CDN). */

@font-face {
  font-family: 'Plex Sans';
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Plex Sans';
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Plex Mono';
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Plex Mono';
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --void: #07080a;
  --panel: #0e1116;
  --panel-2: #11151b;
  --line: #1c2129;
  --ink: #e9edf1;
  --ink-2: #b9c2cc;
  --dim: #79838f;
  --ada: #3ecf72;
  --ada-dim: #2a8a51;
  --other: #d98f4a;
  --other-dim: #8a6a45;
  --grey: #39414c;
  --bar-bg: rgba(7, 8, 10, 0.86);
  --fill-ada: #3ecf72;
  --fill-ada-2: #2a8a51;
  --fill-other: #d98f4a;
  --fill-other-2: #8a6a45;
  --fill-grey: #39414c;
  --sans: 'Plex Sans', system-ui, -apple-system, sans-serif;
  --mono: 'Plex Mono', ui-monospace, Consolas, monospace;
  --pad: clamp(20px, 6vw, 96px);
  --max: 1120px;
}

/* Light theme: the visitor's OS preference decides, and the toggle overrides it. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
  color-scheme: light;
  --void: #f7f7f6;
  --panel: #ffffff;
  --panel-2: #f0f1ef;
  --line: #e3e4e1;
  --ink: #16191e;
  --ink-2: #444a53;
  --dim: #6a727c;
  --ada: #17914b;
  --ada-dim: #63bd8c;
  --other: #a8641a;
  --other-dim: #d2ab7c;
  --grey: #b9bfc7;
  --bar-bg: rgba(247, 247, 246, 0.88);
  }
}
:root[data-theme='light'] {
  color-scheme: light;
  --void: #f7f7f6;
  --panel: #ffffff;
  --panel-2: #f0f1ef;
  --line: #e3e4e1;
  --ink: #16191e;
  --ink-2: #444a53;
  --dim: #6a727c;
  --ada: #17914b;
  --ada-dim: #63bd8c;
  --other: #a8641a;
  --other-dim: #d2ab7c;
  --grey: #b9bfc7;
  --bar-bg: rgba(247, 247, 246, 0.88);
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --void: #07080a;
  --panel: #0e1116;
  --panel-2: #11151b;
  --line: #1c2129;
  --ink: #e9edf1;
  --ink-2: #b9c2cc;
  --dim: #79838f;
  --ada: #3ecf72;
  --ada-dim: #2a8a51;
  --other: #d98f4a;
  --other-dim: #8a6a45;
  --grey: #39414c;
  --bar-bg: rgba(7, 8, 10, 0.86);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto; /* without this, the HTML height attr fights width:100% and squashes the shot */
  display: block;
}
a {
  color: var(--ada);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
:focus-visible {
  outline: 2px solid var(--ada);
  outline-offset: 3px;
  border-radius: 2px;
}
code {
  font: 400 0.88em var(--mono);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.08em 0.34em;
}
b {
  font-weight: 600;
  color: var(--ink);
}

/* ── top bar ─────────────────────────────────────────────── */
.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--pad);
  background: var(--bar-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand:hover {
  text-decoration: none;
}
.bar nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
}
.bar nav a {
  color: var(--dim);
  font: 500 12px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.bar nav a:hover {
  color: var(--ink);
  text-decoration: none;
}
.cta-sm {
  color: var(--void) !important;
  background: var(--ada);
  border-radius: 4px;
  padding: 6px 13px;
}
.cta-sm:hover {
  background: #5df09b;
}

/* ── shared section furniture ────────────────────────────── */
.hero,
.band {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 6.5vw, 84px) var(--pad);
}
.band + .band {
  border-top: 1px solid var(--line);
}
.eyebrow {
  margin: 0 0 22px;
  font: 500 12px var(--mono);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
}
.eyebrow .mk {
  color: var(--ada);
  letter-spacing: 0;
}
h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.012em;
}
.say {
  max-width: 62ch;
  color: var(--ink-2);
  margin: 0 0 34px;
}

/* ── hero ────────────────────────────────────────────────── */
.hero {
  padding-top: clamp(56px, 9vw, 118px);
  padding-bottom: clamp(48px, 7vw, 92px);
}
.hero h1 {
  margin: 0 0 26px;
  max-width: 15ch;
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.038em;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--ada);
}
.hero .lede {
  max-width: 58ch;
  margin: 0 0 40px;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-2);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
}
.cta {
  background: var(--ada);
  color: var(--void);
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 5px;
}
.cta:hover {
  background: #5df09b;
  text-decoration: none;
}
.ghost {
  font: 500 13px var(--mono);
  letter-spacing: 0.05em;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
}
.ghost:hover {
  color: var(--ada);
  border-color: var(--ada);
  text-decoration: none;
}

/* ── the meter ───────────────────────────────────────────── */
.meter {
  margin-top: 34px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(20px, 3.4vw, 34px);
}
.lane + .lane {
  margin-top: 26px;
}
.lane-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}
.who {
  font: 500 12px var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.tot {
  font: 400 13px var(--mono);
  color: var(--dim);
}
.tot .n {
  font-size: 21px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.other .n {
  color: var(--other);
}
.ada .n {
  color: var(--ada);
}
.track {
  display: flex;
  gap: 3px;
  height: 38px;
}
.seg {
  position: relative;
  width: var(--w);
  border-radius: 3px;
  overflow: hidden;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.85s cubic-bezier(0.22, 0.9, 0.3, 1);
}
.meter.on .seg {
  transform: scaleX(1);
}
.seg i {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-left: 11px;
  font: 400 11.5px var(--mono);
  font-style: normal;
  color: rgba(0, 0, 0, 0.74);
  white-space: nowrap;
}
.seg.a {
  background: var(--fill-other);
}
.seg.b {
  background: var(--fill-other-2);
}
.seg.c {
  background: var(--fill-grey);
}
.seg.d {
  background: var(--fill-ada);
}
.seg.e {
  background: var(--fill-ada-2);
}
.key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font: 400 11.5px var(--mono);
  color: var(--dim);
}
.key li {
  display: flex;
  align-items: center;
  gap: 7px;
}
.key li span {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--c);
}
.verdict {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
}

/* ── cards ───────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  margin-top: 30px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.cards article {
  background: var(--panel);
  padding: clamp(20px, 2.6vw, 30px);
}
.cards p {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink-2);
}

/* ── screenshots ─────────────────────────────────────────── */
.shot {
  margin: 0;
}
.shot img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.shot figcaption {
  margin-top: 11px;
  font: 400 13px/1.55 var(--mono);
  color: var(--dim);
}
.shot figcaption::before {
  content: '\203A  ';
  color: var(--ada);
}
.wide {
  margin-bottom: 34px;
}
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}

/* ── spec strip ──────────────────────────────────────────── */
.spec {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 26px;
  margin: 46px 0 0;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.spec div {
  min-width: 0;
}
.spec dt {
  font: 500 34px var(--mono);
  letter-spacing: -0.03em;
  color: var(--ada);
}
.spec dd {
  margin: 5px 0 0;
  font-size: 14.5px;
  color: var(--dim);
  line-height: 1.5;
}

/* ── table ───────────────────────────────────────────────── */
.scroll {
  overflow-x: auto;
  margin-bottom: 30px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
}
th,
td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
th {
  font: 500 11px var(--mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--dim);
  background: var(--panel-2);
}
td {
  color: var(--ink-2);
}
.r {
  text-align: right;
}
td.r {
  font: 400 14px var(--mono);
  font-variant-numeric: tabular-nums;
}
.win {
  color: var(--ada);
}
.lose {
  color: var(--other);
}
.sum td {
  border-bottom: 0;
  background: var(--panel-2);
  font-weight: 600;
  color: var(--ink);
}

/* ── download ────────────────────────────────────────────── */
.grabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.grab {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 20px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  transition:
    border-color 0.18s,
    background 0.18s;
}
.grab:hover {
  border-color: var(--ada);
  background: var(--panel-2);
  text-decoration: none;
}
.grab .os {
  font-weight: 600;
  color: var(--ink);
}
.grab .file {
  font: 400 12px var(--mono);
  color: var(--dim);
  word-break: break-all;
}
.fine {
  max-width: 66ch;
  font-size: 14px;
  color: var(--dim);
}

/* ── footer ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line);
  padding: 40px var(--pad) 60px;
  max-width: var(--max);
  margin: 0 auto;
}
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.foot span {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 400 13px var(--mono);
  color: var(--dim);
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.foot nav a {
  font: 400 13px var(--mono);
  color: var(--dim);
}
.foot nav a:hover {
  color: var(--ada);
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }
  .bar nav a:not(.cta-sm) {
    display: none;
  }
  .track {
    height: 30px;
  }
  .seg i {
    font-size: 10px;
    padding-left: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .seg {
    transform: scaleX(1);
    transition: none;
  }
}

/* the sticky bar would otherwise sit on top of a heading you just jumped to */
[id] {
  scroll-margin-top: 76px;
}

/* ── pricing + contact pages ──────────────────────────────── */
.narrow h1 {
  max-width: 18ch;
}
.narrow .lede {
  max-width: 56ch;
}

.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 11px;
}
.tier.mark {
  border-color: var(--ada-dim);
}
.ribbon {
  position: absolute;
  top: -1px;
  right: 18px;
  margin: 0;
  padding: 4px 11px;
  background: var(--ada);
  color: var(--void);
  font: 500 10px var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: 0 0 4px 4px;
}
.tier h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  font-family: var(--mono);
}
.price {
  margin: 12px 0 2px;
  font-family: var(--mono);
  color: var(--dim);
  font-size: 13px;
}
.price b {
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.price span {
  margin-left: 3px;
}
.tag {
  margin: 0 0 22px;
  font-size: 14.5px;
  color: var(--ada);
}
.ticks {
  flex: 1;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: var(--ink-2);
}
.ticks li {
  position: relative;
  padding: 0 0 11px 22px;
  line-height: 1.5;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--ada-dim);
}
.block {
  display: block;
  text-align: center;
}
.under {
  margin: 13px 0 0;
  font: 400 12.5px/1.5 var(--mono);
  color: var(--dim);
}
.wide-list {
  max-width: 70ch;
  margin-bottom: 0;
}

.faq {
  display: grid;
  gap: 1px;
  margin: 30px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.faq div {
  background: var(--panel);
  padding: 22px 26px;
}
.faq dt {
  font-weight: 600;
  margin-bottom: 6px;
}
.faq dd {
  margin: 0;
  max-width: 74ch;
  font-size: 15.5px;
  color: var(--ink-2);
}

.routes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.route {
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 11px;
  color: inherit;
  transition:
    border-color 0.18s,
    background 0.18s;
}
.route:hover {
  border-color: var(--ada);
  background: var(--panel-2);
  text-decoration: none;
}
.rnum {
  font: 500 11px var(--mono);
  letter-spacing: 0.2em;
  color: var(--ada);
  margin-bottom: 12px;
}
.route h2 {
  margin: 0 0 9px;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.route p {
  flex: 1;
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--ink-2);
}
.route .go {
  font: 500 12.5px var(--mono);
  letter-spacing: 0.05em;
  color: var(--ada);
}

/* subpage heroes are short — don't stack two full section paddings under them */
.hero.narrow {
  padding-bottom: clamp(22px, 3vw, 38px);
}
.hero.narrow + .band {
  padding-top: clamp(26px, 3.4vw, 42px);
}

/* theme toggle */
.tgl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 26px;
  padding: 0;
  color: var(--dim);
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}
.tgl:hover {
  color: var(--ink);
  border-color: var(--dim);
}
.tgl .moon {
  display: none;
}
:root[data-theme='light'] .tgl .sun {
  display: none;
}
:root[data-theme='light'] .tgl .moon {
  display: block;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) .tgl .sun {
    display: none;
  }
  :root:not([data-theme='dark']) .tgl .moon {
    display: block;
  }
}

/* The mark ships as white strokes on transparent — invert it on a light ground,
   otherwise the logo disappears into the bar. */
:root[data-theme='light'] .brand img,
:root[data-theme='light'] .foot img {
  filter: invert(1);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) .brand img,
  :root:not([data-theme='dark']) .foot img {
    filter: invert(1);
  }
}

/* a full-width underline reads as a stray rule; give the secondary tier action a box */
.ghost.block {
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.ghost.block:hover {
  border-color: var(--ada);
}

/* a word instead of a figure — 42px is sized for "$39", not for "Custom" */
.price.word b {
  font-size: 30px;
  letter-spacing: -0.01em;
}
