/* Expyrico public site. Colours mirror packages/theme/src/palette.ts; change them there first. */
:root {
  --bg: #fafaf8;
  --card: #ffffff;
  --surface: #f0f0ed;
  --text: #2c2c28;
  --muted: #72726c;
  --line: #f0f0ed;
  --primary: #4bae8a;
  --primary-text: #367e64;
  --primary-tint: #d6f0e6;
  --accent: #f5a623;
  --accent-tint: #feefc3;
  --accent-text: #9e6507;
  --danger: #e0442a;
  --danger-text: #d2381f;
  --danger-tint: rgba(224, 68, 42, 0.12);
  --on-tint: #2c2c28;
  --summary-tint: #e3f1ea;
  --night: #111512;
  --night-surface: #1b211d;
  --night-line: #242a26;
  --night-text: #f2f2ef;
  --night-muted: #a8a89f;
  --night-accent: #6fcba4;
  --bezel: #111512;
  --bezel-rim: rgba(255, 255, 255, 0.14);
  --footer: #367e64;
  --footer-text: #ffffff;
  --measure: 1200px;
  --radius: 25px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111512;
    --card: #1b211d;
    --surface: #1b211d;
    --text: #f2f2ef;
    --muted: #a8a89f;
    --line: #242a26;
    --primary-text: #6fcba4;
    --primary-tint: #1e3b30;
    --accent-tint: #3a2c12;
    --accent-text: #f5a623;
    --danger-text: #f0705a;
    --danger-tint: rgba(224, 68, 42, 0.22);
    --on-tint: #f2f2ef;
    --summary-tint: #1e3b30;
    --night: #1b211d;
    --night-surface: #242a26;
    --night-line: #323a35;
    --bezel-rim: rgba(255, 255, 255, 0.18);
    --footer: #1e3b30;
    --footer-text: #f2f2ef;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 18px;
  line-height: 1.55;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a,
button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(75, 174, 138, 0.18);
}

/* Anchor jumps land below the sticky header instead of under it. */
[id] {
  scroll-margin-top: 80px;
}

figure {
  margin: 0;
}

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

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 32px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--card);
  padding: 8px 12px;
}

/* ---- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.site-header.is-scrolled,
html:not(.js) .site-header {
  border-bottom-color: var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  min-height: 72px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

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

.logo-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .site-header .logo-light {
    display: none;
  }

  .site-header .logo-dark {
    display: block;
  }
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 28px;
  font-size: 15px;
  font-weight: 500;
}

.site-nav a {
  text-decoration: none;
  padding: 12px 0;
  transition: color 0.4s cubic-bezier(0.44, 0, 0.56, 1);
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--primary-text);
}

.nav-legal {
  display: contents;
}

/* Just above the phone menu the seven links only fit on one row with tighter spacing. */
@media (max-width: 1040px) {
  .site-nav {
    column-gap: 18px;
  }
}

.menu-toggle {
  display: none;
}

/* Below 900px the links move into a panel opened by the menu button (only once the script runs; without it the
   links simply wrap under the logo). */
@media (max-width: 900px) {
  .js .site-header .wrap {
    flex-wrap: nowrap;
    min-height: 60px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .js .brand img {
    height: 30px;
  }

  .js .menu-toggle:not([hidden]) {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    margin-right: -9px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
  }

  .menu-toggle:active {
    background: var(--surface);
  }

  .menu-toggle svg {
    width: 26px;
    height: 26px;
  }

  .menu-toggle path {
    transform-origin: 12px 12px;
    transition:
      transform 0.3s var(--ease-out),
      opacity 0.2s ease;
  }

  .menu-toggle[aria-expanded='true'] .bar-top {
    transform: translateY(5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded='true'] .bar-mid {
    opacity: 0;
  }

  .menu-toggle[aria-expanded='true'] .bar-bot {
    transform: translateY(-5px) rotate(-45deg);
  }

  .js .site-nav {
    position: fixed;
    inset: 60px 0 auto;
    max-height: calc(100dvh - 60px);
    overflow-y: auto;
    overscroll-behavior: contain;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    padding: 8px 16px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(17, 21, 18, 0.35);
    font-size: 20px;
    font-weight: 600;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition:
      opacity 0.25s ease,
      transform 0.3s var(--ease-out),
      visibility 0s linear 0.3s;
  }

  .js .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition:
      opacity 0.25s ease,
      transform 0.3s var(--ease-out);
  }

  .js .site-nav > a {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 0 4px;
    border-bottom: 1px solid var(--line);
  }

  .js .nav-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0 24px;
    padding-top: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--muted);
  }

  .js .nav-legal a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 4px;
  }

  /* The page behind an open menu: dimmed, and tapping it closes the menu. */
  .nav-scrim {
    position: fixed;
    inset: 60px 0 0;
    z-index: 4;
    background: rgba(17, 21, 18, 0.32);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .nav-scrim.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  html.menu-open {
    overflow: hidden;
  }
}

/* ---- type */
h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}

.display {
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.04;
}

.display .tone {
  color: var(--primary-text);
}

.heading {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.12;
}

.kicker {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-text);
}

.statement {
  margin: 0 auto;
  max-width: 820px;
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}

.lead {
  margin: 0;
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---- actions */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 0.25s var(--ease-out),
    background-color 0.25s ease;
}

.pill:hover {
  transform: translateY(-2px);
}

.pill-primary {
  background: var(--accent);
  color: #2c2c28;
}

.pill-primary:hover {
  background: #f7b43f;
}

.pill-quiet {
  background: var(--card);
  color: var(--primary-text);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 10%, transparent);
}

.pill svg,
.text-link svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  font-weight: 600;
  text-decoration: none;
  color: var(--primary-text);
}

.text-link span {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-link:hover span {
  text-decoration-thickness: 2px;
}

/* ---- phone frame: the app's real screens in a dark bezel */
.phone {
  position: relative;
  flex: none;
  width: 300px;
  padding: 7px;
  border-radius: 44px;
  background: var(--bezel);
  box-shadow:
    inset 0 0 0 1px var(--bezel-rim),
    0 30px 60px -30px rgba(17, 21, 18, 0.45);
}

.phone > img {
  width: 100%;
  height: auto;
  aspect-ratio: 660 / 1481;
  border-radius: 37px;
  background: #fafaf8;
}

.phone-lg {
  width: 320px;
}

.phone-sm {
  width: 230px;
  padding: 6px;
  border-radius: 36px;
}

.phone-sm > img {
  border-radius: 30px;
}

/* ---- hero */
.hero {
  padding: 72px 0 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.hero-sub {
  margin: -8px 0 0;
  max-width: 680px;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.4;
  text-wrap: balance;
}

.hero-copy .lead {
  max-width: 620px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--primary-tint);
  color: var(--on-tint);
  font-size: 14px;
  font-weight: 600;
}

.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(75, 174, 138, 0.6);
  animation: ping 2.4s ease-out infinite;
}

@keyframes ping {
  70% {
    box-shadow: 0 0 0 8px rgba(75, 174, 138, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(75, 174, 138, 0);
  }
}

.parade {
  display: flex;
  justify-content: center;
  overflow: hidden;
  margin-top: 72px;
  padding: 40px 0 96px;
}

.parade-track {
  display: flex;
  flex: none;
  gap: 24px;
  will-change: transform;
}

.parade .phone {
  animation: rise 0.9s var(--ease-out) both;
}

.parade .phone:nth-child(1),
.parade .phone:nth-child(7) {
  animation-delay: 0.36s;
}

.parade .phone:nth-child(2),
.parade .phone:nth-child(6) {
  animation-delay: 0.24s;
}

.parade .phone:nth-child(3),
.parade .phone:nth-child(5) {
  animation-delay: 0.12s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(80px);
  }
}

.toast {
  position: absolute;
  top: 132px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  padding: 12px 18px 12px 14px;
  border-radius: 20px;
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  text-align: left;
  box-shadow: 0 18px 40px -16px rgba(17, 21, 18, 0.35);
  animation:
    toast-in 0.7s var(--ease-out) 1.1s both,
    bob 5s ease-in-out 1.8s infinite;
}

.toast img {
  flex: none;
}

.toast strong {
  display: block;
  font-weight: 700;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, -16px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, -6px);
  }
}

/* ---- statement and the three states */
.bridge {
  padding: 48px 0 112px;
}

.states {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.states li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--on-tint);
}

.states li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.states .good {
  background: var(--primary-tint);
}

.states .good::before {
  background: var(--primary);
}

.states .soon {
  background: var(--accent-tint);
}

.states .soon::before {
  background: var(--accent);
}

.states .expired {
  background: var(--danger-tint);
}

.states .expired::before {
  background: var(--danger);
}

/* ---- the promo film: a 9:16 frame beside its heading */
.film {
  padding: 0 0 120px;
}

.film-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 72px;
}

.film-copy .lead {
  margin-top: 20px;
  max-width: 480px;
}

.film-frame {
  position: relative;
  width: 360px;
  border-radius: 32px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  box-shadow: 0 40px 80px -40px rgba(17, 21, 18, 0.45);
}

.film-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  cursor: pointer;
}

.film-sound {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 21, 18, 0.72);
  color: #f2f2ef;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color 0.25s ease;
}

.film-sound:hover {
  background: rgba(17, 21, 18, 0.88);
}

.film-sound svg {
  width: 18px;
  height: 18px;
}

.film-sound .icon-on,
.film-sound[aria-pressed='true'] .icon-off {
  display: none;
}

.film-sound[aria-pressed='true'] .icon-on {
  display: block;
}

.film-sound:focus-visible {
  outline-color: #f2f2ef;
}

/* ---- how it works: one sticky phone, steps scroll past it */
.chapter {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}

.story {
  padding: 96px 0;
  background: var(--card);
  border-radius: 48px;
  margin: 0 16px;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
}

.story-device {
  position: sticky;
  top: max(96px, calc(50vh - 360px));
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.story-device .phone {
  display: grid;
}

.story-device .phone > img {
  grid-area: 1 / 1;
  opacity: 0;
  transform: scale(0.97);
  transition:
    opacity 0.5s ease,
    transform 0.6s var(--ease-out);
}

.story-device .phone > img.is-active {
  opacity: 1;
  transform: none;
}

.story-dots {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.story-dots li {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  transition:
    width 0.4s var(--ease-out),
    background-color 0.4s ease;
}

.story-dots li.is-active {
  width: 28px;
  background: var(--primary);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-height: 72vh;
  max-width: 460px;
  transition: opacity 0.5s ease;
}

.step:first-child {
  min-height: 56vh;
  justify-content: flex-start;
  padding-top: 120px;
}

.step-no {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-text);
  font-variant-numeric: tabular-nums;
}

.step h3 {
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 700;
  line-height: 1.15;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.step-shot {
  display: none;
}

.step h3,
.step-no {
  transition: color 0.4s ease;
}

/* The steps you are not reading are dimmed with the readable secondary colour (never with opacity, which would
   push the text below contrast); the active one gets the ink colour and its number. */
.js .step:not(.is-active) h3,
.js .step:not(.is-active) .step-no {
  color: var(--muted);
}

/* ---- feature cards */
.features {
  padding: 128px 0 112px;
}

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

.card {
  display: flex;
  gap: 24px;
  height: 420px;
  padding: 40px 40px 0;
  border-radius: var(--radius);
  background: var(--surface);
  overflow: clip;
}

.card-copy {
  flex: 1;
  min-width: 0;
}

.card h3 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

.card p {
  margin: 10px 0 0;
  font-size: 16px;
  color: var(--text);
}

.card .phone {
  align-self: flex-start;
  transition: transform 0.6s var(--ease-out);
}

.card:hover .phone {
  transform: translateY(-10px);
}

/* ---- dark chapter: your data */
.night {
  background: var(--night);
  color: var(--night-text);
}

.night :focus-visible {
  outline-color: var(--night-accent);
}

.assurance {
  margin: 0 16px;
  padding: 112px 0;
  border-radius: 48px;
}

.assurance-head {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.assurance .lead {
  margin-top: 20px;
  color: var(--night-muted);
}

.promises {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 32px;
  margin: 72px 0 0;
  padding: 0;
  list-style: none;
}

.promises svg {
  width: 32px;
  height: 32px;
  margin-bottom: 20px;
  color: var(--night-accent);
}

.promises strong {
  display: block;
  font-size: 19px;
  line-height: 1.3;
}

.promises span {
  display: block;
  margin-top: 10px;
  font-size: 16px;
  color: var(--night-muted);
}

.signin {
  margin-top: 72px;
  padding: 36px 40px 24px;
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
  background: var(--night-surface);
}

.signin h3 {
  font-size: 21px;
  font-weight: 700;
}

.signin p {
  margin: 14px 0 0;
  max-width: 820px;
  font-size: 16px;
  color: var(--night-muted);
}

.signin .actions {
  margin-top: 12px;
}

.night .text-link {
  color: var(--night-accent);
}

/* ---- closing */
.closing {
  padding: 120px 0 112px;
  text-align: center;
  overflow: clip;
}

.montage {
  display: flex;
  justify-content: center;
  margin-bottom: 80px;
}

.montage .phone {
  margin: 0 -28px;
  transition: transform 0.8s var(--ease-out);
}

.montage .phone:nth-child(1) {
  transform: rotate(-8deg) translateY(28px);
}

.montage .phone:nth-child(2) {
  z-index: 1;
}

.montage .phone:nth-child(3) {
  transform: rotate(8deg) translateY(28px);
}

.js .montage:not(.is-in) .phone:nth-child(1),
.js .montage:not(.is-in) .phone:nth-child(3) {
  transform: none;
}

.closing .lead {
  max-width: 600px;
  margin: 16px auto 0;
}

.closing .lead a {
  color: var(--primary-text);
  font-weight: 600;
}

/* ---- footer: an inset sage panel, the legal line outside it */
.site-footer {
  margin: 0 16px;
  padding: 56px 0 48px;
  border-radius: 48px 48px var(--radius) var(--radius);
  background: var(--footer);
  color: var(--footer-text);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
}

.site-footer .brand img {
  height: 40px;
}

.site-footer .brand + p {
  margin: 16px 0 0;
  max-width: 320px;
  font-size: 15px;
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.site-footer li + li {
  margin-top: 0;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer :focus-visible {
  outline-color: var(--footer-text);
}

.footer-end {
  margin: 0;
  padding: 20px 32px 28px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* ---- scroll reveals: only once the script runs, so the page reads fine without it */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s ease,
    transform 0.9s var(--ease-out);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.hero .reveal:nth-child(2) {
  transition-delay: 0.06s;
}

.hero .reveal:nth-child(3) {
  transition-delay: 0.12s;
}

.hero .reveal:nth-child(4) {
  transition-delay: 0.18s;
}

.hero .reveal:nth-child(5) {
  transition-delay: 0.24s;
}

.promises .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.promises .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.promises .reveal:nth-child(4) {
  transition-delay: 0.24s;
}

/* ---- legal pages */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.legal h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
}

.legal .meta {
  margin-top: 16px;
  font-size: 16px;
  color: var(--muted);
}

.legal .toc {
  margin: 36px 0 8px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  font-size: 16px;
}

.legal .legal-box {
  margin: 36px 0 0;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  font-size: 16px;
}

.legal .legal-box + .legal-box {
  margin-top: 16px;
}

.legal .legal-box-tint {
  border-color: transparent;
  background: var(--summary-tint);
  color: var(--on-tint);
}

.legal .legal-box h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.legal .legal-box > :nth-child(2) {
  margin-top: 10px;
}

.legal .legal-box ul {
  margin-top: 10px;
}

.legal .legal-box li {
  margin-top: 4px;
}

.legal .legal-box + .toc {
  margin-top: 16px;
}

.legal .toc h2 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.legal .toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.legal .toc-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  column-gap: 32px;
}

.legal .toc li {
  padding: 4px 0;
}

.legal .toc a {
  text-decoration: none;
}

.legal .toc a:hover {
  color: var(--primary-text);
}

.legal h2 {
  margin-top: 56px;
  font-size: 30px;
  line-height: 1.2;
  scroll-margin-top: 96px;
}

.legal h3 {
  margin-top: 32px;
  font-size: 21px;
  font-weight: 500;
}

.legal p,
.legal ul,
.legal ol {
  margin-top: 16px;
}

.legal ul,
.legal ol {
  padding-left: 22px;
}

.legal li {
  margin-top: 8px;
}

.legal li ul {
  margin-top: 8px;
}

.legal strong {
  font-weight: 600;
}

.legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--line);
}

.legal a {
  color: var(--primary-text);
}

/* ---- narrow screens */
@media (max-width: 1100px) {
  .promises {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card {
    flex-direction: column;
    height: 520px;
  }

  .card .phone {
    align-self: center;
  }
}

@media (max-width: 900px) {
  .wrap {
    padding: 0 24px;
  }

  .story,
  .assurance {
    margin: 0 8px;
    border-radius: 32px;
  }

  .story {
    padding: 72px 0 32px;
  }

  .story-grid {
    display: block;
  }

  .story-device {
    display: none;
  }

  .step,
  .step:first-child {
    min-height: 0;
    max-width: none;
    padding: 0 0 72px;
    justify-content: flex-start;
  }

  .js .step:not(.is-active) h3 {
    color: var(--text);
  }

  .js .step:not(.is-active) .step-no {
    color: var(--primary-text);
  }

  .step-shot {
    display: block;
    width: 260px;
    margin: 16px auto 0;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .film-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 40px;
    text-align: center;
  }

  .film-copy .lead {
    margin-inline: auto;
  }

  .film-frame {
    width: min(340px, 100%);
  }

  /* One column: every marketing block shares the centred axis of its section heading, so number, title, text and
     phone line up. (The sign-in explanation stays left-aligned: it is paragraphs to read, not a headline block.) */
  .step {
    align-items: center;
    text-align: center;
  }

  .step p {
    max-width: 520px;
  }

  .promises li {
    text-align: center;
  }

  .promises svg {
    margin-inline: auto;
  }

  /* Cards sit on the same 8px inset as the story, privacy and footer panels, with their text on the panels'
     inner edge. */
  .features .wrap {
    padding: 0 8px;
  }

  .features .chapter {
    padding: 0 16px;
  }

  .card {
    height: 480px;
    align-items: center;
    padding: 32px 16px 0;
    text-align: center;
    border-radius: 32px;
  }

  .card-copy {
    flex: none;
    max-width: 420px;
  }

  .site-footer {
    margin: 0 8px;
    border-radius: 32px 32px var(--radius) var(--radius);
  }

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

  .legal .toc-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 17px;
  }

  .wrap {
    padding: 0 16px;
  }

  html:not(.js) .site-header {
    position: static;
  }

  html:not(.js) .site-nav {
    gap: 0 20px;
  }

  .hero {
    padding-top: 32px;
  }

  .hero-copy {
    gap: 20px;
  }

  .badge {
    padding: 7px 14px;
    font-size: 13px;
    text-align: center;
  }

  .hero-copy .lead {
    font-size: 17px;
  }

  /* Both actions on one centred row: two equal halves that never wrap their label. Text, icon and padding scale
     with the screen so the pair fits from 320px up. */
  .hero .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 400px;
    gap: 10px;
  }

  .hero .pill {
    justify-content: center;
    gap: clamp(4px, 1.4vw, 8px);
    min-height: 50px;
    padding: 0 clamp(8px, 2.6vw, 16px);
    font-size: clamp(13.5px, 4vw, 16px);
    white-space: nowrap;
  }

  .hero .pill svg {
    width: clamp(13px, 3.6vw, 16px);
    height: clamp(13px, 3.6vw, 16px);
  }

  .parade {
    margin-top: 48px;
    padding-bottom: 64px;
  }

  .phone {
    width: 240px;
    padding: 6px;
    border-radius: 36px;
  }

  .phone > img {
    border-radius: 30px;
  }

  .phone-sm {
    width: 190px;
  }

  .toast {
    top: 100px;
    font-size: 13px;
  }

  .montage .phone {
    width: 160px;
    margin: 0 -24px;
  }

  .promises {
    grid-template-columns: 1fr;
  }

  .assurance {
    padding: 80px 0;
  }

  .signin {
    padding: 24px 20px 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 16px;
  }

  .footer-grid > :first-child,
  .footer-grid > :last-child {
    grid-column: 1 / -1;
  }

  .site-footer {
    padding: 40px 0 32px;
  }

  .legal {
    padding: 40px 16px 72px;
  }

  .legal .toc {
    padding: 20px;
  }

  .legal .toc li {
    padding: 0;
  }

  .legal .toc a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .toast {
    transform: translate(-50%, 0);
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
