@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --white: #ffffff;
  --mist: #f5f5f7;
  --ink: #1d1d1f;
  --grey: #6e6e73;
  --hair: #d2d2d7;
  --blue: #0066cc;
  --blue-press: #0058b0;
  --night: #0b0b0c;
  --night-text: #f5f5f7;
  --night-grey: #a1a1a6;
  --fill: #e8e8ed;
  --error: #d70015;
  --ok: #248a3d;
  --ring: rgba(0, 102, 204, .35);

  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4rem; --s9: 6rem; --s10: 8rem;

  --gutter: 1.25rem;
  --radius: 22px;
  --nav-h: 52px;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --section-y: clamp(4rem, 3rem + 5vw, 8rem);
}
@media (min-width: 735px) {
  :root { --gutter: 2rem; --radius: 28px; }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  font-size: 100%;
  scroll-padding-top: 60px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--white);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
ul, ol { list-style: none; }
a { color: var(--blue); text-decoration: none; }
button, input, select { font: inherit; color: inherit; }

h1, h2, h3 { text-wrap: balance; font-weight: 700; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid rgba(0, 102, 204, .6);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 50;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 10px;
}
.skip:focus { top: .5rem; }

/* ---------- Type ---------- */
h1 {
  font-size: clamp(2.5rem, 1.6rem + 4.2vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
h3 { font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.02em; }
.eyebrow {
  font-size: 1.0625rem; line-height: 1.3; letter-spacing: -0.005em; font-weight: 600;
  margin-bottom: var(--s3);
}
.lead {
  font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.5rem);
  line-height: 1.35; letter-spacing: -0.012em; color: var(--grey);
  margin-top: var(--s4);
}
.body { margin-top: var(--s5); }
.small { margin-top: var(--s4); font-size: .9375rem; line-height: 1.4; color: var(--grey); }
.caption { font-size: .8125rem; line-height: 1.4; letter-spacing: .01em; color: var(--grey); }
.center { text-align: center; }

/* ---------- Layout ---------- */
.wrap { padding-inline: var(--gutter); margin-inline: auto; }
.wrap.wide { max-width: calc(980px + 2 * var(--gutter)); }
.text-col { max-width: calc(692px + 2 * var(--gutter)); }
.band { padding-block: var(--section-y); }
.mist { background: var(--mist); }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.375rem;
  background: var(--blue); color: #fff;
  border: 0; border-radius: 999px;
  font-size: 1.0625rem; line-height: 1; letter-spacing: -0.005em; font-weight: 500;
  cursor: pointer;
  transition: transform 100ms ease-out;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); background: var(--blue-press); }
.btn-sm { min-height: 32px; padding: 0 .875rem; font-size: .875rem; }
.more { font-size: 1.0625rem; letter-spacing: -0.005em; display: inline-block; }
.card-link { transition: transform 100ms ease-out; }
.card-link:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .btn { transition: transform 100ms ease-out, background-color 150ms ease; }
  .btn:hover { background: var(--blue-press); }
  .more:hover { text-decoration: underline; }
}

/* ---------- Nav ---------- */
.sentinel { position: absolute; top: 0; left: 0; height: 1px; width: 1px; }
.nav {
  position: sticky; top: 0; z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px;
  background: linear-gradient(rgba(0, 0, 0, .06), transparent);
  opacity: 0; transition: opacity 200ms ease; pointer-events: none;
}
.nav.scrolled::after { opacity: 1; }
.nav-inner {
  height: var(--nav-h);
  max-width: calc(980px + 2 * var(--gutter));
  margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
}
.wordmark {
  color: var(--ink); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.02em;
}
.nav nav { display: none; }
.nav-links { display: flex; gap: var(--s6); }
.nav-links a { color: var(--grey); font-size: .875rem; transition: color 150ms ease; }
.nav-links a[aria-current="true"] { color: var(--ink); }
@media (min-width: 735px) {
  .nav nav { display: block; margin-left: auto; margin-right: var(--s5); }
}
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--ink); }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .nav { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid var(--ink); }
}

/* ---------- Hero ---------- */
.hero { padding-top: 2.5rem; text-align: center; }
.hero-text { max-width: calc(820px + 2 * var(--gutter)); }
.hero-actions {
  margin-top: var(--s6);
  display: flex; flex-direction: column; align-items: center; gap: var(--s4);
}
.hero-actions .btn { width: 100%; min-height: 52px; }
.hero .caption { margin-top: var(--s5); }
.hero-photo { margin-top: var(--s6); }
.hero-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
@media (min-width: 735px) {
  .hero { padding-top: var(--s8); }
  .hero-actions { flex-direction: row; justify-content: center; gap: var(--s6); }
  .hero-actions .btn { width: auto; }
  .hero-photo {
    margin: var(--s8) auto 0;
    max-width: calc(1200px + 2 * var(--gutter));
    padding-inline: var(--gutter);
  }
  .hero-photo img {
    aspect-ratio: 16 / 9; object-position: 50% 40%;
    border-radius: var(--radius);
  }
}

/* ---------- Photos ---------- */
.photo img { width: 100%; border-radius: var(--radius); }
.photo.tall img { aspect-ratio: 4 / 5; object-fit: cover; }
#convert .photo { margin-top: var(--s7); }
#convert .text-col { text-align: left; }
@media (min-width: 735px) {
  #convert .text-col { text-align: center; }
  #convert .photo { margin-top: var(--s8); }
}

/* ---------- Stats ---------- */
#stats-h { margin-bottom: var(--s7); }
.stats { display: grid; }
.stat {
  display: grid; grid-template-columns: 40% 1fr; gap: var(--s4); align-items: baseline;
  padding-block: var(--s5); border-top: 1px solid var(--hair);
}
.stat:last-child { border-bottom: 1px solid var(--hair); }
.stat .num {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 3.5rem);
  line-height: 1; letter-spacing: -0.035em; font-weight: 700;
  white-space: nowrap;
}
.stat p:not(.num) { color: var(--grey); }
@media (min-width: 735px) {
  .stats { grid-template-columns: 1fr 1fr; gap: var(--s4); }
  .stat, .stat:last-child {
    display: block; border: 0; background: var(--mist);
    border-radius: var(--radius); padding: var(--s5);
  }
  .stat .num { font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); margin-bottom: var(--s4); }
}
@media (min-width: 1069px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat, .stat:last-child { padding: var(--s6); }
  .stat .num { font-size: 2.5rem; }
}

/* ---------- Splits ---------- */
.split { display: grid; gap: var(--s6); align-items: center; }
@media (max-width: 734px) {
  .photo-first-phone > picture { order: -1; }
}
@media (min-width: 735px) {
  .split { gap: var(--s7); }
  .split-5-7 { grid-template-columns: 5fr 7fr; }
  .split-7-5 { grid-template-columns: 7fr 5fr; }
}

/* ---------- Dark band ---------- */
.night { background: var(--night); color: var(--night-text); }
.night h2 { color: #fff; }
.night .eyebrow, .night .body, .night .small { color: var(--night-grey); }

/* ---------- Who it's for ---------- */
.who { margin-top: var(--s6); }
.who li {
  padding-block: var(--s4); border-top: 1px solid var(--hair); color: var(--grey);
}
.who li:last-child { border-bottom: 1px solid var(--hair); }
.who b { color: var(--ink); font-weight: 600; }

/* ---------- Models ---------- */
#models .text-col { margin-bottom: var(--s7); }
.models {
  display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: .75rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  overscroll-behavior-x: contain; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.models::-webkit-scrollbar { display: none; }
.model {
  scroll-snap-align: start;
  background: var(--white); border-radius: var(--radius);
  padding: var(--s5);
  display: flex; flex-direction: column;
}
.model-img { height: 220px; display: flex; align-items: center; justify-content: center; margin-bottom: var(--s5); }
.model-img img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.model .kind { margin-top: var(--s1); color: var(--grey); font-size: .9375rem; }
.price {
  margin-top: var(--s4);
  font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.01em; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.specs { margin-top: var(--s4); margin-bottom: var(--s5); }
.specs li {
  font-size: .9375rem; line-height: 1.4;
  padding-block: var(--s3); border-top: 1px solid var(--hair);
}
.model .card-link { margin-top: auto; align-self: flex-start; }
.dots { display: flex; justify-content: center; gap: 0; margin-top: var(--s4); }
.dots button {
  width: 24px; height: 24px; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center; -webkit-tap-highlight-color: transparent;
}
.dots button::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--hair); transition: background-color 150ms ease;
}
.dots button[aria-current="true"]::before { background: var(--ink); }
.all-models { margin-top: var(--s6); max-width: calc(692px + 2 * var(--gutter)); }
@media (min-width: 735px) {
  .models {
    grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr 1fr;
    gap: var(--s4); overflow: visible; scroll-snap-type: none;
    max-width: calc(980px + 2 * var(--gutter)); margin-inline: auto;
  }
  .dots { display: none; }
}
@media (min-width: 1069px) {
  /* A little wider than the text sections so each type line fits on one row. */
  .models { grid-template-columns: repeat(4, 1fr); max-width: calc(1120px + 2 * var(--gutter)); }
  .model-img { height: 240px; }
}

/* ---------- Teams ---------- */
.teams-card { background: var(--mist); border-radius: var(--radius); overflow: hidden; }
.teams-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.teams-text { padding: var(--s5); }
.teams-text .more { margin-top: var(--s5); }
@media (min-width: 735px) {
  .teams-card { display: grid; grid-template-columns: 1fr 1fr; }
  .teams-photo, .teams-photo img { height: 100%; }
  .teams-photo img { aspect-ratio: auto; min-height: 360px; }
  .teams-text { padding: var(--s7) var(--s6); align-self: center; }
}

/* ---------- Trial ---------- */
.trial-grid { align-items: start; }
.trial-copy h2:focus { outline: none; }
@media (min-width: 735px) and (max-width: 1068px) {
  .trial-grid { grid-template-columns: 1fr; }
}
@media (min-width: 1069px) {
  .trial-copy { position: sticky; top: 84px; }
}

.form-card {
  background: var(--white); border-radius: var(--radius);
  padding: var(--s5) 1.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 40px rgba(0, 0, 0, .06);
}
@media (min-width: 735px) { .form-card { padding: var(--s6); } }

.field { margin-bottom: var(--s5); border: 0; min-width: 0; }
.field label, .field legend {
  display: block; font-size: .9375rem; font-weight: 600; margin-bottom: var(--s2);
}
.opt { font-weight: 400; color: var(--grey); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .select select {
  width: 100%; height: 52px; padding: 0 1rem;
  font-size: 1.0625rem;
  background: var(--white); border: 1px solid var(--hair); border-radius: 12px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: #8e8e93; }
.field input:focus, .select select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--ring);
}
.field input[aria-invalid="true"] { border-color: var(--error); }
.field input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(215, 0, 21, .2); }
.select { position: relative; }
.select select { padding-right: 2.75rem; cursor: pointer; }
.select::after {
  content: ""; position: absolute; right: 1.1rem; top: 50%;
  width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--grey); border-bottom: 2px solid var(--grey);
  transform: rotate(45deg); pointer-events: none;
}
.hint { margin-top: var(--s2); font-size: .875rem; color: var(--grey); }
.err {
  margin-top: var(--s2); font-size: .875rem; color: var(--error);
  animation: fade 150ms ease-out;
}

.seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--fill); border-radius: 10px; padding: 3px;
}
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.seg label {
  margin: 0; font-weight: 500; font-size: .9375rem; text-align: center;
  padding: .7rem .25rem; border-radius: 8px; cursor: pointer;
  transition: background-color 150ms ease, box-shadow 150ms ease;
  -webkit-tap-highlight-color: transparent;
}
.seg input:checked + label { background: var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.seg input:focus-visible + label { box-shadow: 0 0 0 3px var(--ring); }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:not(:empty) { margin-bottom: var(--s4); }
.banner {
  margin-bottom: var(--s4); padding: .75rem 1rem; border-radius: 12px;
  background: rgba(215, 0, 21, .06); color: var(--error); font-size: .9375rem;
  animation: fade 150ms ease-out;
}
.btn-submit { width: 100%; min-height: 52px; }
.btn-submit[disabled] { opacity: .6; cursor: progress; }
@media (min-width: 735px) { .btn-submit { width: auto; min-width: 220px; } }
.privacy { margin-top: var(--s4); }

.success { animation: arrive 250ms var(--ease); padding-block: var(--s4); }
.success h3 { color: var(--ok); }
.success h3:focus { outline: none; }
.success p { margin-top: var(--s3); margin-bottom: var(--s5); }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes arrive { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--hair); padding-block: var(--s6) calc(var(--s6) + env(safe-area-inset-bottom, 0px)); }
.foot-inner { display: grid; gap: var(--s2); font-size: .8125rem; line-height: 1.4; letter-spacing: .01em; color: var(--grey); }

/* ---------- Reveal (only when JS is running) ---------- */
html.js .reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
html.js .reveal.in { opacity: 1; transform: none; }
.stats .reveal:nth-child(2), .models .reveal:nth-child(2), .who .reveal:nth-child(2) { transition-delay: 60ms; }
.stats .reveal:nth-child(3), .models .reveal:nth-child(3), .who .reveal:nth-child(3) { transition-delay: 120ms; }
.stats .reveal:nth-child(4), .models .reveal:nth-child(4), .who .reveal:nth-child(4) { transition-delay: 180ms; }

/* Cards waiting off to the side of the phone swipe row should not fade in late. */
@media (max-width: 734px) {
  html.js .models .reveal { opacity: 1; transform: none; transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card-link { transition: none; }
  .btn:active, .card-link:active { transform: none; }
  .success { animation: fade 250ms ease-out; }
}

/* Checkout. Everything here stays hidden until /api/shop says a model can be bought. */
.avail { margin-top: var(--s1); font-size: .875rem; color: var(--grey); }
.avail.now { color: var(--ok); }
.buy-row:not([hidden]) {
  margin-top: auto; display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap;
}
.buy-row:not([hidden]) ~ .card-link { display: none; }
.mto-note { margin-top: var(--s5); max-width: 40rem; }
.mto-note + .all-models { margin-top: var(--s2); }

.checkout {
  width: min(100% - 2rem, 30rem); max-height: calc(100% - 2rem);
  margin: auto; padding: var(--s5) 1.25rem; border: 0; border-radius: var(--radius);
  background: var(--white); color: var(--ink);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .25);
}
.checkout::backdrop { background: rgba(0, 0, 0, .45); }
.checkout[open] { animation: arrive 250ms var(--ease); }
@media (min-width: 735px) { .checkout { padding: var(--s6); } }
.co-h { font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.02em; }
.co-price { margin-top: var(--s2); margin-bottom: var(--s5); font-weight: 600; font-variant-numeric: tabular-nums; }
.co-avail { font-weight: 400; color: var(--grey); }
.co-terms {
  margin-bottom: var(--s4); padding: .75rem 1rem; border-radius: 12px;
  background: var(--mist); font-size: .9375rem; line-height: 1.4;
}
.checkout .privacy { margin-top: var(--s3); }
.co-cancel {
  display: block; margin: var(--s4) auto 0; min-height: 44px; padding: 0 var(--s4);
  border: 0; background: none; font: inherit; color: var(--blue); cursor: pointer;
}
.order-result { padding-block: var(--s7); background: var(--mist); }
.order-result h2:focus { outline: none; }
@media (prefers-reduced-motion: reduce) {
  .checkout[open] { animation: fade 250ms ease-out; }
}

/* ---------- Questions ---------- */
.faq { margin-top: var(--s6); }
.faq-item { padding-block: var(--s5); border-top: 1px solid var(--hair); }
.faq-item h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.01em; }
.faq-item p { margin-top: var(--s2); }
