@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Courgette";
  src: url("/fonts/courgette-latin-400-normal.woff2") format("woff2");
  font-display: swap;
}

/* Colours are the app's: src/lib/theme.ts in the app repo. */
:root {
  color-scheme: light;
  --text: #111827;
  --muted: #4b5563;
  --ink: #1e293b;
  --border: #d1d5db;
  --canvas: #f2f4f8;
  --primary: #1d4ed8;
  --primary-dark: #1e40af;
}

* {
  box-sizing: border-box;
}

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

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

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.25rem;
  line-height: 1.5;
}

a {
  color: var(--primary);
}

a:hover {
  color: var(--primary-dark);
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.band-blue :focus-visible {
  outline-color: #ffffff;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

h1,
h2 {
  font-weight: 800;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h3 {
  font-weight: 700;
}

p,
li {
  text-wrap: pretty;
}

[id] {
  scroll-margin-top: 1.5rem;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
}

.skip:focus {
  top: 1rem;
  color: #ffffff;
}

.wrap {
  width: 100%;
  max-width: 77.5rem;
  margin: 0 auto;
  padding-inline: 2rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.5rem;
}

.wordmark {
  color: var(--ink);
  font-family: "Courgette", cursive;
  font-size: 2.125rem;
  line-height: 1;
  text-decoration: none;
}

.wordmark:hover {
  color: var(--ink);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.75rem;
  font-weight: 500;
}

.site-nav a {
  display: block;
  padding-block: 0.625rem;
  color: var(--text);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: 4rem;
  padding-block: 3rem 6rem;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
}

.hero h1 {
  font-size: clamp(2.625rem, 5.4vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 30em;
  color: var(--muted);
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
}

.action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.action .soon {
  color: var(--muted);
  font-weight: 500;
}

.phone {
  width: 100%;
  max-width: 25rem;
  margin-inline: auto;
  padding: 1.25rem;
  border: 0.625rem solid var(--text);
  border-radius: 3.25rem;
  background: #ffffff;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  aspect-ratio: 1 / 0.92;
  min-width: 0;
  padding: 0.5rem;
  border-radius: 1.375rem;
  color: #ffffff;
  font-size: clamp(1.25rem, 1.8vw, 1.5625rem);
  font-weight: 700;
  line-height: 1.2;
}

.icon {
  width: 2.875rem;
  height: 2.875rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* TILE_COLORS in the app. All keep white text above 4.5:1. */
.green { background: #15803d; }
.purple { background: #7c3aed; }
.orange { background: #c2410c; }
.teal { background: #0f766e; }
.blue { background: #1d4ed8; }
.pink { background: #be185d; }

.band {
  padding-block: 6rem;
}

.band-grey {
  background: var(--canvas);
}

.band-blue {
  background: var(--primary);
  color: #ffffff;
}

.band-blue a,
.band-blue a:hover {
  color: #ffffff;
}

.band h2 {
  font-size: clamp(2.125rem, 3.9vw, 3.25rem);
  line-height: 1.1;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.kinds {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kind {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.kind .tile {
  aspect-ratio: 1 / 0.86;
  border-radius: 1.625rem;
}

.kind .tile .icon {
  width: 3.125rem;
  height: 3.125rem;
}

.kind p {
  font-size: 1.1875rem;
}

.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem 4rem;
}

.two h3 {
  margin-bottom: 1rem;
  font-size: 1.875rem;
}

.ruled {
  padding: 0;
  list-style: none;
}

.ruled li {
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--border);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.steps h3 {
  font-size: 1.625rem;
}

.number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.25rem;
  color: #ffffff;
  font-size: 2.25rem;
  font-weight: 800;
}

.privacy-intro {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 51rem;
}

.band-blue h2 {
  font-size: clamp(2.375rem, 4.4vw, 3.75rem);
  line-height: 1.06;
}

.band-blue .big {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
}

.band-blue .two h3 {
  margin-bottom: 0.625rem;
  font-size: 1.625rem;
}

.strong-link {
  align-self: flex-start;
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 1.125rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 2.25rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
}

.footer-nav a {
  display: block;
  padding-block: 0.25rem;
  color: var(--text);
}

/* Help, privacy, terms */
.page {
  width: 100%;
  max-width: 45rem;
  margin: 0 auto;
  padding: 2.5rem 2rem 5rem;
  line-height: 1.6;
}

.page > * + * {
  margin-top: 1.25rem;
}

.page h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.page h2 {
  margin-top: 2.75rem;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

.page ul,
.page ol {
  padding-left: 1.75rem;
}

.page li + li {
  margin-top: 0.625rem;
}

.page .muted {
  color: var(--muted);
}

@media (max-width: 62rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .kinds {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 40rem) {
  .wrap {
    padding-inline: 1rem;
  }

  .site-header {
    padding-block: 1rem;
  }

  .wordmark {
    font-size: 1.875rem;
  }

  .site-nav {
    gap: 0 1.125rem;
    font-size: 1.125rem;
  }

  .hero {
    padding-block: 1rem 3.5rem;
  }

  .action {
    width: 100%;
  }

  .phone {
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 0;
  }

  .tile {
    font-size: 1.5625rem;
  }

  .band {
    padding-block: 3.5rem;
  }

  .stack {
    gap: 2rem;
  }

  .kinds {
    grid-template-columns: minmax(0, 1fr);
  }

  .kind {
    flex-direction: row;
    align-items: center;
  }

  .kind .tile {
    flex: 0 0 4.5rem;
    width: 4.5rem;
    height: 4.5rem;
    aspect-ratio: auto;
    padding: 0;
    border-radius: 1.25rem;
  }

  .kind .tile .icon {
    width: 2.25rem;
    height: 2.25rem;
  }

  .kind .tile span {
    display: none;
  }

  .kind p {
    font-size: 1.25rem;
  }

  .two,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .page {
    padding: 1.5rem 1rem 3.5rem;
  }
}

@media (min-width: 40.01rem) {
  .kind strong {
    display: none;
  }
}
.sprite {
  position: absolute;
}
