@font-face {
  font-family: "Nunito Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("/assets/fonts/nunito-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: u+0000-00ff, u+0131, u+0152-0153, u+02bb-02bc, u+02c6, u+02da,
    u+02dc, u+0304, u+0308, u+0329, u+2000-206f, u+2074, u+20ac, u+2122, u+2191,
    u+2193, u+2212, u+2215, u+feff, u+fffd;
}

:root {
  --navy: #042255;
  --navy-light: #143570;
  --lime: #8fe510;
  --lime-ink: #042255;

  --bg: #fff;
  --surface: #f4f5f7;
  --card: #fff;
  --ink: #0d1117;
  --ink-soft: #3d4552;
  --muted: #626a78;
  --line: #dfe3ea;
  --on-dark: #fff;
  --on-dark-soft: rgb(255 255 255 / 78%);
  --on-dark-muted: rgb(255 255 255 / 58%);
  --dark-line: rgb(255 255 255 / 16%);
  --focus: var(--navy);

  --font-display: ui-rounded, "Nunito Variable", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", roboto, helvetica, arial,
    sans-serif;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 5.5rem;
  --space-8: 7rem;

  --radius: 1rem;
  --radius-lg: 1.75rem;
  --shell: 72rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f1c;
    --surface: #111a2c;
    --card: #131d33;
    --ink: #eef2f8;
    --ink-soft: #c6cfdd;
    --muted: #949fb3;
    --line: #22304d;
    --focus: var(--lime);
  }
}

/* Navy sections need the lime ring, because navy on navy is invisible. */
.on-dark,
.site-footer {
  --focus: var(--lime);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.15rem, 6.4vw, 4rem);
}

h2 {
  font-size: clamp(1.85rem, 4.4vw, 2.85rem);
}

h3 {
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 var(--space-2);
}

a {
  color: inherit;
}

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  background: var(--navy);
  color: var(--on-dark);
  padding: var(--space-2) var(--space-3);
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
}

/* Eyebrow labels, lifted from the app's kerned all-caps micro-labels. */
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 var(--space-2);
  color: var(--muted);
}

.on-dark .eyebrow {
  color: var(--lime);
}

.lede {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 40rem;
}

.on-dark .lede {
  color: var(--on-dark-soft);
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-2);
}

.brand img {
  width: 148px;
  height: auto;
}


.header-nav {
  display: flex;
  gap: var(--space-3);
  font-weight: 600;
  font-size: 0.95rem;
}

.header-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: var(--space-1);
}

.header-nav a:hover,
.header-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* Buttons and the App Store call to action */

.button {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  background: var(--lime);
  color: var(--lime-ink);
  border: 0;
  border-radius: 999px;
  padding: 1rem 2rem;
  cursor: pointer;
  text-align: center;
}

.button:hover {
  background: #7fce0c;
}

.app-cta {
  margin-top: var(--space-4);
}

.app-cta-note {
  margin: var(--space-2) 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.on-dark .app-cta-note {
  color: var(--on-dark-muted);
}

.app-popover {
  max-width: 24rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 24px 60px rgb(4 34 85 / 24%);
}

.app-popover::backdrop {
  background: rgb(4 34 85 / 45%);
}

.app-popover-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: var(--space-1);
}

.app-popover p:last-of-type {
  color: var(--ink-soft);
  margin-bottom: var(--space-3);
}

.app-popover-close {
  font: inherit;
  font-weight: 700;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  color: inherit;
  cursor: pointer;
}

/* Any browser without the Popover API gets a plain visible note instead of a
   button that appears to do nothing. */
@supports not selector(:popover-open) {
  .app-popover {
    display: none;
  }

  .app-cta-note::after {
    content: " Coming very soon, once Apple has reviewed it.";
  }
}

/* Hero */

.hero {
  background:
    radial-gradient(
      42rem 32rem at 78% 28%,
      rgb(143 229 16 / 28%),
      transparent 68%
    ),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--on-dark);
  padding-block: var(--space-6) var(--space-7);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

.hero h1 {
  margin-bottom: var(--space-3);
  text-wrap: wrap;
}

/* Each sentence of the tagline stays whole, so lines break between them
   rather than mid-phrase. */
.hero h1 span {
  display: inline-block;
}

.hero .lede {
  margin-bottom: 0;
}

.hero-mark {
  width: 220px;
  margin-bottom: var(--space-4);
}

.hero-figure {
  justify-self: center;
}

/* Sections */

.section {
  padding-block: var(--space-6);
}

.section-alt {
  background: var(--surface);
}

.section-head {
  max-width: 44rem;
  margin-bottom: var(--space-5);
}

.section-head h2 {
  margin-bottom: var(--space-3);
}

.split {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

.split h2 {
  margin-bottom: var(--space-3);
}

.split-figure {
  justify-self: center;
}

/* Phone screenshots */

.phone {
  width: min(15rem, 68vw);
  border-radius: 2rem;
  border: 1px solid rgb(4 34 85 / 12%);
  box-shadow: 0 30px 70px rgb(4 34 85 / 22%);
  background: var(--card);
}

.on-dark .phone {
  border-color: rgb(255 255 255 / 18%);
  box-shadow: 0 30px 80px rgb(0 0 0 / 45%);
}

/* Cards */

.cards {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
}

.card h3 {
  margin-bottom: var(--space-2);
}

.card p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

.card-step {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1;
  color: var(--navy);
  margin-bottom: var(--space-3);
}

@media (prefers-color-scheme: dark) {
  .card-step {
    color: var(--lime);
  }
}

/* The big lime numeral, borrowed from the app's result screen */

.stat {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 9vw, 5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--lime);
  display: block;
}

.stat-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: var(--space-1);
}

.stat-row {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  margin-top: var(--space-5);
}

.stat-row p {
  color: var(--on-dark-soft);
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Dark bands */

.band-dark {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--on-dark);
}

.band-dark h2 {
  margin-bottom: var(--space-3);
}

/* Tiers */

.tier-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}

.tier {
  display: grid;
  gap: var(--space-1) var(--space-3);
  grid-template-columns: 1fr;
  padding: var(--space-3);
  border-bottom: 1px solid var(--line);
}

.tier:last-child {
  border-bottom: 0;
}

.tier-name {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.tier-bands {
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
}

.tier-blurb {
  color: var(--muted);
  font-size: 0.95rem;
  grid-column: 1 / -1;
  margin: 0;
}

.note {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 44rem;
  margin-top: var(--space-3);
}

/* FAQ */

.faq {
  border-top: 1px solid var(--line);
  max-width: 48rem;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  padding: var(--space-3) var(--space-4) var(--space-3) 0;
  cursor: pointer;
  position: relative;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--muted);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  color: var(--ink-soft);
  padding-bottom: var(--space-3);
  margin: 0;
  max-width: 44rem;
}

/* Prose pages */

.page-hero {
  padding-block: var(--space-5) var(--space-4);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--space-2);
}

/* Sits inside a .shell, so it lines up with the page heading above rather
   than centring itself independently. */
.prose {
  max-width: 44rem;
  padding-block: var(--space-5) var(--space-7);
}

.prose h2 {
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.1rem;
  margin-top: var(--space-4);
  margin-bottom: var(--space-1);
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose ul {
  padding-left: 1.25rem;
  margin-bottom: var(--space-2);
}

.prose li {
  margin-bottom: var(--space-1);
}

.prose a {
  color: var(--ink);
  text-decoration-color: var(--lime);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose .meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.callout {
  border-left: 4px solid var(--lime);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--space-3);
  margin-block: var(--space-4);
}

.callout p:last-child {
  margin-bottom: 0;
}

/* Footer */

.site-footer {
  background: var(--navy);
  color: var(--on-dark);
  padding-block: var(--space-5) var(--space-3);
}

.footer-inner {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

.footer-brand img {
  width: 170px;
  margin-bottom: var(--space-2);
}

.footer-brand p {
  color: var(--on-dark-soft);
  max-width: 24rem;
  font-size: 0.95rem;
}

.footer-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: var(--space-2);
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.footer-links li {
  margin-bottom: var(--space-1);
}

.footer-links a {
  color: var(--on-dark-soft);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--on-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-base {
  border-top: 1px solid var(--dark-line);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-4);
  justify-content: space-between;
}

.footer-base p {
  margin: 0;
  color: var(--on-dark-muted);
  font-size: 0.85rem;
}

/* Breakpoints */

@media (min-width: 46rem) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .tier {
    grid-template-columns: 12rem 1fr;
    align-items: baseline;
  }

  .tier-blurb {
    grid-column: 2;
  }

  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (min-width: 60rem) {
  .hero-inner,
  .split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }

  .split-reverse .split-figure {
    order: -1;
  }

  .phone {
    width: min(17rem, 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
