/* Switch — white, minimal, and quiet enough that the numbers do the talking.
   One accent colour, hairline rules, generous whitespace, tabular figures.    */

:root {
  --ink:        #0E1A16;
  --ink-soft:   #55625C;
  --ink-faint:  #8B968F;

  --brand:      #12836C;
  --brand-deep: #0A5748;
  --brand-wash: #F2F8F6;

  --accent:     #C2703A;
  --amber:      #E8A33D;
  --amber-wash: #FDF6EA;
  --violet:     #6B4BA8;
  --violet-wash:#F5F2FB;
  --blue:       #2C6FB5;
  --blue-wash:  #EFF5FB;
  --rose:       #C24D77;
  --rose-wash:  #FCF0F5;

  --paper:      #FFFFFF;
  --paper-2:    #FAFBFA;
  --line:       #E7EBE8;
  --line-soft:  #F1F4F2;

  --w: 1080px;
  --r: 14px;

  --shadow: 0 1px 2px rgba(14, 26, 22, .04), 0 8px 24px rgba(14, 26, 22, .04);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv02", "cv03", "cv04";
}

img { max-width: 100%; display: block; }
a { color: inherit; }

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

/* ── type ────────────────────────────────────────────────────────────────── */

h1, h2, h3 { margin: 0; letter-spacing: -0.022em; line-height: 1.14; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 6vw, 3.9rem); letter-spacing: -0.032em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.35rem); }
h3 { font-size: 1.02rem; letter-spacing: -0.012em; }
p  { margin: 0; }

.lede { font-size: clamp(1.02rem, 2vw, 1.16rem); color: var(--ink-soft); max-width: 54ch; }
.muted { color: var(--ink-soft); }
.small { font-size: .875rem; }

.eyebrow {
  font-size: .715rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--brand);
}

/* Figures are the point of this site, so they get proper tabular numerals. */
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ── nav ─────────────────────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 66px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }

.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  text-decoration: none; color: var(--ink-soft); font-size: .9rem; font-weight: 500;
  transition: color .18s ease;
}
.nav-links a:hover { color: var(--ink); }

/* ── buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 999px;
  font-size: .93rem; font-weight: 600; letter-spacing: -0.008em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .16s ease, background .18s ease, border-color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-ghost:hover { border-color: #D5DBD7; }
.btn-sm { padding: 9px 17px; font-size: .86rem; }

/* ── sections ────────────────────────────────────────────────────────────── */

section { padding: clamp(64px, 9vw, 116px) 0; }
.section-head { max-width: 60ch; margin-bottom: 44px; }
.section-head h2 { margin: 12px 0 14px; }
.tinted { background: var(--paper-2); border-block: 1px solid var(--line-soft); }

/* ── hero ────────────────────────────────────────────────────────────────── */

.hero { padding-top: clamp(52px, 7vw, 92px); padding-bottom: clamp(52px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 76px); align-items: center; }
.hero h1 { margin: 16px 0 20px; }
.hero .lede { margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin-top: 16px; font-size: .82rem; color: var(--ink-faint); }

/* The comparison card — a real one, because a mockup of the thing is the
   clearest possible explanation of what the app does. */
.quote {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); overflow: hidden;
}
.quote-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--line-soft);
}
.quote-head strong { font-size: .95rem; letter-spacing: -0.012em; }
.quote-head span { font-size: .76rem; color: var(--ink-faint); }

.row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px;
  padding: 13px 20px; border-bottom: 1px solid var(--line-soft);
}
.row:last-child { border-bottom: 0; }
.row.best { background: var(--brand-wash); }
.row-store { display: flex; align-items: center; gap: 9px; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.row-name { font-size: .9rem; font-weight: 600; }
.row-meta { font-size: .74rem; color: var(--ink-faint); }
.row-price { text-align: right; font-weight: 700; font-size: 1.02rem; letter-spacing: -0.02em; }
.row.best .row-price { color: var(--brand); }
.tag {
  display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 5px;
  background: var(--brand); color: #fff; font-size: .6rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; vertical-align: 2px;
}
.quote-foot { padding: 12px 20px; font-size: .78rem; color: var(--ink-faint); background: var(--paper-2); }

/* ── stats ───────────────────────────────────────────────────────────────── */

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stat { background: var(--paper); padding: 26px 24px; }
.stat-n { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.stat-l { margin-top: 6px; font-size: .85rem; color: var(--ink-soft); }

/* ── cards ───────────────────────────────────────────────────────────────── */

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

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 24px;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: .93rem; color: var(--ink-soft); }
.card-i {
  width: 34px; height: 34px; border-radius: 9px; margin-bottom: 16px;
  display: grid; place-items: center; background: var(--brand-wash); color: var(--brand);
}
.card-i svg { width: 17px; height: 17px; }

/* ── steps ───────────────────────────────────────────────────────────────── */

.steps { counter-reset: s; display: grid; gap: 0; border-top: 1px solid var(--line); }
.step {
  counter-increment: s;
  display: grid; grid-template-columns: 56px 1fr; gap: 20px;
  padding: 26px 4px; border-bottom: 1px solid var(--line);
}
.step::before {
  content: counter(s, decimal-leading-zero);
  font-variant-numeric: tabular-nums;
  font-size: .8rem; font-weight: 700; color: var(--brand); padding-top: 3px;
}
.step h3 { margin-bottom: 5px; }
.step p { font-size: .93rem; color: var(--ink-soft); max-width: 62ch; }

/* ── stores ──────────────────────────────────────────────────────────────── */

.stores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.store {
  display: flex; align-items: center; gap: 11px;
  padding: 15px 18px; border: 1px solid var(--line); border-radius: 11px;
  font-size: .92rem; font-weight: 600; background: var(--paper);
}

/* ── about ───────────────────────────────────────────────────────────────── */

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 64px); align-items: start; }
.about-grid p + p { margin-top: 15px; }
.links { display: grid; gap: 2px; margin-top: 26px; }
.link {
  display: flex; align-items: center; gap: 11px; padding: 12px 0;
  border-bottom: 1px solid var(--line-soft); text-decoration: none;
  font-size: .92rem; font-weight: 500; color: var(--ink);
  transition: color .18s ease;
}
.link:hover { color: var(--brand); }
.link svg { width: 15px; height: 15px; color: var(--brand); flex: none; }
.link span { margin-left: auto; color: var(--ink-faint); font-size: .78rem; }

.note {
  border-left: 2px solid var(--brand); padding: 2px 0 2px 18px;
  color: var(--ink-soft); font-size: .93rem;
}

/* ── download ────────────────────────────────────────────────────────────── */

.dl { text-align: center; }
.dl h2 { margin-bottom: 14px; }
.dl .lede { margin: 0 auto 28px; }
.dl-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.dl-fine { margin-top: 18px; font-size: .8rem; color: var(--ink-faint); max-width: 62ch; margin-inline: auto; }

/* Three builds, one of them obviously the right one. Anyone who does not know
   what an ABI is should be able to stop reading after the first card. */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: left; }
.dl-card {
  position: relative; display: grid; gap: 5px; align-content: start;
  padding: 22px 20px 20px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--paper); text-decoration: none; color: inherit;
  transition: border-color .18s ease, transform .16s ease;
}
.dl-card:hover { border-color: #CFD8D3; transform: translateY(-2px); }
.dl-card:active { transform: none; }
.dl-pick { border-color: var(--brand); background: var(--brand-wash); }
.dl-pick:hover { border-color: var(--brand-deep); }

.dl-badge {
  position: absolute; top: -9px; left: 20px;
  background: var(--brand); color: #fff; border-radius: 999px;
  padding: 3px 10px; font-size: .62rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
}
.dl-name { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.015em; }
.dl-abi { font-size: .72rem; font-weight: 500; color: var(--ink-faint); letter-spacing: 0; }
.dl-why { font-size: .85rem; color: var(--ink-soft); }
.dl-size { margin-top: 6px; font-size: .8rem; font-weight: 600; color: var(--brand); }

/* ── footer ──────────────────────────────────────────────────────────────── */

footer { border-top: 1px solid var(--line); padding: 34px 0; }
.foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.foot p { font-size: .84rem; color: var(--ink-faint); }
.foot nav { display: flex; gap: 20px; }
.foot a { font-size: .84rem; color: var(--ink-faint); text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ── motion ──────────────────────────────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(12px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

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

/* ── responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .grid-3, .stores { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}

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

@media (max-width: 620px) {
  .grid-3, .grid-2, .stores, .stats { grid-template-columns: 1fr; }
  .stats { gap: 1px; }
  .step { grid-template-columns: 40px 1fr; gap: 14px; }
}


/* ── the price card, animated ─────────────────────────────────────────────
   The numbers are the story, so they arrive rather than appear: each row
   slides up in turn and the cheapest one lands last, which is where the eye
   should finish. Nothing moves for anyone who has asked for less motion. */

.quote .row { opacity: 0; transform: translateY(8px); }
.quote.in .row { animation: rowIn .5s cubic-bezier(.22, .8, .3, 1) forwards; }
.quote.in .row:nth-child(2) { animation-delay: .10s; }
.quote.in .row:nth-child(3) { animation-delay: .22s; }
.quote.in .row:nth-child(4) { animation-delay: .34s; }
.quote.in .row.best        { animation-delay: .48s; }

@keyframes rowIn { to { opacity: 1; transform: none; } }

.quote .row.best {
  background: linear-gradient(90deg, var(--brand-wash), rgba(242, 248, 246, .35));
}
.quote.in .row.best .row-price { animation: pop .45s .62s cubic-bezier(.22, 1.4, .4, 1) both; }
@keyframes pop { from { transform: scale(.92); } to { transform: none; } }

.tag { animation: none; }
.quote.in .tag { animation: fadeUp .4s .72s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* Store dots get a soft halo in their own colour — the only place the page
   uses more than one hue at a time, and the one place it means something. */
.store { transition: border-color .18s ease, background .18s ease; }
.store:hover { border-color: #D5DBD7; background: var(--paper-2); }
.store .dot { box-shadow: 0 0 0 3px rgba(0, 0, 0, .04); }

.stat:nth-child(1) .stat-n { color: var(--brand); }
.stat:nth-child(2) .stat-n { color: var(--amber); }
.stat:nth-child(3) .stat-n { color: var(--violet); }

.card:nth-child(2) .card-i { background: var(--amber-wash);  color: #B07A22; }
.card:nth-child(3) .card-i { background: var(--blue-wash);   color: var(--blue); }
.card:nth-child(4) .card-i { background: var(--violet-wash); color: var(--violet); }
.card:nth-child(5) .card-i { background: var(--rose-wash);   color: var(--rose); }
.card:nth-child(6) .card-i { background: var(--amber-wash);  color: #B07A22; }

@media (prefers-reduced-motion: reduce) {
  .quote .row { opacity: 1; transform: none; }
  .quote.in .row,
  .quote.in .row.best .row-price,
  .quote.in .tag { animation: none; }
}
