/*
 * Token Meter landing page. Colour roles, radii and type are the app's own, copied from web/theme.css
 * (Plain UI: near-white or near-black paper, soft cards, pill buttons, one accent per thing).
 */
@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f5f5f5;
  --surface2: #f2f2f2;
  --ink: #111111;
  --onink: #ffffff;
  --muted: #6b6b6b;
  --faint: #9a9a9a;
  --line: #ececec;
  --ok: #15803d;
  --shadow: 0 24px 60px rgba(17, 17, 17, 0.12), 0 2px 8px rgba(17, 17, 17, 0.05);
  --radius: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --surface: #161616;
    --surface2: #1f1f1f;
    --ink: #f5f5f5;
    --onink: #0a0a0a;
    --muted: #9a9a9a;
    --faint: #5e5e5e;
    --line: #232323;
    --ok: #4ade80;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist Variable", Geist, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid #0052ff;
  outline-offset: 3px;
  border-radius: 8px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--onink);
}

.wrap {
  width: min(1080px, 100% - 48px);
  margin-inline: auto;
}

/* Top bar */
.top {
  border-bottom: 1px solid var(--line);
}
.toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}
.brand img {
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--line);
}
.top nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
  color: var(--muted);
}
.top nav a {
  text-decoration: none;
}
.top nav a:hover {
  color: var(--ink);
}

/* Hero */
.hero {
  display: grid;
  gap: 40px;
  padding-block: 72px 40px;
  align-items: center;
}
.kicker {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.lead {
  margin: 20px 0 0;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 56ch;
}
.actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--onink);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}
.button.disabled {
  cursor: default;
  opacity: 0.9;
}
.badge {
  padding: 4px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--onink) 22%, transparent);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.link {
  font-size: 16px;
  color: var(--muted);
  text-underline-offset: 4px;
}
.fine {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--faint);
  max-width: 52ch;
}

.phone {
  margin: 0 auto;
  width: min(340px, 100%);
}
.phone img {
  border-radius: 34px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* Bands */
.band {
  padding-block: 64px;
  border-top: 1px solid var(--line);
}
.section-head {
  max-width: 62ch;
  margin-bottom: 32px;
}
h2 {
  margin: 0;
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.section-head p {
  margin: 12px 0 0;
  color: var(--muted);
}

/* Feature cards */
.cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--surface);
}
.card h3,
.who h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.card p,
.who p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

/* Screens */
.shots {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.shots figure {
  margin: 0;
}
.shots img {
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.shots figcaption {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.shots strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
}

/* Who */
.who {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.who li {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
}

/* Download */
.download {
  display: grid;
  gap: 22px;
  align-items: center;
  padding: 32px;
  border-radius: 32px;
  background: var(--surface);
  grid-template-columns: auto 1fr auto;
}
.download img {
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--line);
}
.download h2 {
  font-size: clamp(24px, 2.4vw, 30px);
}
.download p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 62ch;
}
.download .fine {
  margin-top: 8px;
}

/* Footer */
.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-block: 32px 48px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--faint);
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    padding-block: 96px 64px;
  }
}

@media (max-width: 719px) {
  .download {
    grid-template-columns: 1fr;
  }
  .download img {
    width: 56px;
    height: 56px;
  }
  .download .button {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
