/*
  "Data page": the site is set like the data page of an identity document, the motif of the
  app's own store graphics. Paper and ink only; green, amber and red are reserved for status
  (the spine on the left edge, the state list and the sample bar) and never decorate.
*/

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/HankenGrotesk_400Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/HankenGrotesk_600SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/HankenGrotesk_700Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "B612 Mono";
  src: url("/assets/fonts/B612Mono_400Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "B612 Mono";
  src: url("/assets/fonts/B612Mono_700Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #15171c;
  --ink-soft: #3a3e47;
  --ink-raised: #262931;
  --muted: #5d626d;
  --faint: #9599a3;
  --line: #d9dadf;
  --ground: #f1f0ec;
  --paper: #ffffff;
  --sunk: #e7e6e1;
  --on-ink: #ffffff;
  --on-ink-soft: #c9ccd3;
  --on-ink-muted: #a9adb7;
  --valid: #14804a;
  --soon: #f2b705;
  --expired: #d4351c;
  --none: #9599a3;

  --sans: "Hanken Grotesk", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "B612 Mono", "Roboto Mono", Consolas, "Courier New", monospace;

  --spine: 14px;
  --gutter: 40px;
  --section: 104px;
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  padding-left: var(--spine);
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* The three-part status spine of the app icon and the store posters, down the whole page. */
body::before {
  content: "";
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: var(--spine);
  background: linear-gradient(
    to bottom,
    var(--valid) 0 33.33%,
    var(--soon) 33.33% 66.66%,
    var(--expired) 66.66% 100%
  );
}

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

ul,
ol {
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.band :focus-visible,
.guard :focus-visible,
.foot :focus-visible,
.pagehead :focus-visible {
  outline-color: var(--on-ink);
}

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

.skip {
  position: absolute;
  left: calc(var(--spine) + 8px);
  top: -100px;
  z-index: 30;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 600;
}

.skip:focus {
  top: 8px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Small capitals in the monospaced face: section tags and field labels. */
.label,
.tagline,
.plate__tag,
.fields dt,
.doc__meta dt,
.life__mark dt {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.label {
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(1.9rem, 3.5vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
  font-weight: 700;
  text-wrap: balance;
}

/* A line set like a passport's machine-readable zone. Sized so that 44 characters fill the box. */
.mrz {
  container-type: inline-size;
  font-family: var(--mono);
}

.mrz span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  font-size: min(var(--mrz-max, 24px), 3.47cqw);
  line-height: 1.75;
  letter-spacing: 0;
  color: var(--on-ink);
}

.mrz span + span {
  color: var(--on-ink-muted);
}

/* Screens are shown as on the store posters: an ink frame, square corners, no device. */
.frame {
  overflow: hidden;
  border: 4px solid var(--ink);
  background: var(--ink);
}

.frame img {
  width: 100%;
}

/* ---------- Header ---------- */

.top {
  border-bottom: 1px solid var(--line);
  background: var(--ground);
}

.top__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.015em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 26px;
  height: auto;
  flex: none;
}

.top__nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.top__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.top__link:hover,
.top__link[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
}

/* ---------- Call to action ---------- */

.cta__box {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 6px;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.25;
  text-decoration: none;
}

.cta__key {
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cta__text {
  padding: 15px 18px;
}

.cta__arrow {
  display: flex;
  align-items: center;
  padding-right: 18px;
}

.cta__box--live {
  background: var(--ink);
  color: var(--on-ink);
}

.cta__box--live .cta__key {
  background: var(--paper);
  color: var(--ink);
}

.cta__box--live:hover .cta__text {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.cta__box--pending {
  border-color: var(--faint);
  background: var(--paper);
  color: var(--ink-soft);
}

.cta__box--pending .cta__key {
  background: var(--sunk);
  color: var(--muted);
}

.cta__note {
  max-width: 44ch;
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------- Hero: the data page ---------- */

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 72px;
  align-items: end;
  padding-top: 64px;
}

.hero__text {
  padding-bottom: 64px;
}

.tagline {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
  margin-bottom: 30px;
  padding-bottom: 12px;
  border-bottom: 5px solid var(--ink);
}

.tagline i {
  margin: 0 0.6em;
  font-style: normal;
  color: var(--faint);
}

.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.hero h1 span {
  display: block;
}

.hero__lead {
  max-width: 34em;
  margin: 28px 0 32px;
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 28px;
  margin-top: 44px;
  border-top: 1px solid var(--ink);
}

.fields div {
  padding: 12px 0 13px;
  border-bottom: 1px solid var(--line);
}

.fields dt {
  font-size: 11px;
}

.fields dd {
  margin-top: 2px;
  font-weight: 600;
  font-size: 16.5px;
  line-height: 1.3;
}

.hero__shot figcaption {
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
  color: var(--muted);
}

/* The screen runs under the ink band, as on the posters: the band covers only its lower part. */
.hero__shot .frame {
  height: 692px;
  border-width: 5px;
  border-bottom: 0;
}

.band {
  background: var(--ink);
  padding: 22px 0 24px;
}

.band__mrz {
  --mrz-max: 25px;
}

/* ---------- Status: two dates and a lead time ---------- */

.status {
  padding: var(--section) 0;
}

.status__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 72px;
  align-items: start;
}

.status__text > p:not(.label) {
  margin-top: 22px;
  color: var(--ink-soft);
}

.states {
  display: grid;
  gap: 8px;
  margin-top: 32px;
}

/* The status spine on the left edge of every document row in the app. */
.states__item {
  display: grid;
  grid-template-columns: 9.5em minmax(0, 1fr);
  gap: 4px 16px;
  align-items: baseline;
  padding: 12px 16px 13px;
  border: 1px solid var(--line);
  border-left: 8px solid var(--none);
  border-radius: 4px;
  background: var(--paper);
}

.states__item span {
  font-size: 15.5px;
  color: var(--ink-soft);
}

.states__item--valid {
  border-left-color: var(--valid);
}

.states__item--soon {
  border-left-color: var(--soon);
}

.states__item--expired {
  border-left-color: var(--expired);
}

.exhibit {
  padding: 28px 32px 30px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--ink);
  background: var(--paper);
}

.exhibit__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 20px;
  margin-bottom: 24px;
}

.exhibit__head span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.exhibit__head strong {
  font-size: 22px;
  letter-spacing: -0.015em;
}

.exhibit__pair {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.exhibit__pair img {
  width: 100%;
  border: 1px solid var(--line);
}

.exhibit__pair figcaption {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.life {
  margin-top: 30px;
}

.life__bar,
.life__marks {
  display: grid;
  grid-template-columns: 44fr 34fr 22fr;
}

.life__seg {
  position: relative;
  overflow: hidden;
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 36px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.life__seg--0 {
  background: var(--valid);
  color: #fff;
}

.life__seg--1 {
  background: var(--soon);
  color: var(--ink);
}

.life__seg--2 {
  background: var(--expired);
  color: #fff;
}

/* "Today" on the sample bar: 11 of the 30 lead days are left. */
.life__seg--1::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 63%;
  width: 4px;
  background: var(--ink);
}

.life__mark {
  padding: 10px 0 0 10px;
  border-left: 2px solid var(--ink);
}

.life__mark dd {
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.3;
}

.life__mark--issue {
  grid-area: 1 / 1;
}

.life__mark--lead {
  grid-area: 1 / 2;
}

.life__mark--expiry {
  grid-area: 1 / 3;
}

.life__mark--today {
  grid-area: 2 / 2 / 3 / 4;
  justify-self: start;
  margin: 16px 0 0 38.2%;
  padding: 8px 12px 9px;
  border-left: 4px solid var(--ink);
  background: var(--sunk);
}

.exhibit__note {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Plates 01 / 06 to 06 / 06 ---------- */

.plates {
  padding: var(--section) 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.sechead {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 8px 72px;
  align-items: end;
  margin-bottom: 64px;
}

.sechead .label {
  grid-column: 1 / -1;
  margin-bottom: 10px;
}

.sechead p:last-child {
  color: var(--ink-soft);
}

.plates__wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 72px 44px;
}

.plate__tag {
  display: flex;
  gap: 28px;
  padding-bottom: 10px;
  border-bottom: 4px solid var(--ink);
  font-weight: 700;
}

.plate h3 {
  min-height: 2.16em;
  margin: 16px 0 20px;
  font-size: 29px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.plate .frame {
  aspect-ratio: 720 / 780;
  border-bottom: 0;
}

.plate .frame img {
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}

.plate--lock .frame img {
  object-position: 50% 30%;
}

.plate__band {
  padding: 12px 14px 13px;
  background: var(--ink);
}

.plate__text {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.plate__sample {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink);
}

.plate__sample span {
  margin-right: 10px;
  padding: 2px 7px 3px;
  background: var(--sunk);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.plates__note {
  max-width: 62em;
  margin-top: 64px;
  padding: 14px 0 0;
  border-top: 1px solid var(--ink);
  font-size: 15px;
  color: var(--muted);
}

/* ---------- No notifications ---------- */

.quiet {
  padding: var(--section) 0;
}

.quiet__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 72px;
  align-items: start;
}

.quiet h2 {
  font-size: clamp(2rem, 4.3vw, 3.9rem);
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: wrap;
}

.quiet h2 span {
  display: block;
}

.quiet h2 span + span {
  color: var(--muted);
}

.quiet__text > p:last-child {
  max-width: 36em;
  margin-top: 26px;
  font-size: 18.5px;
  color: var(--ink-soft);
}

.quiet__places {
  border-bottom: 2px solid var(--ink);
}

.quiet__places li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  padding: 18px 0 20px;
  border-top: 2px solid var(--ink);
}

.quiet__no {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.1;
}

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

.quiet__places p {
  margin-top: 4px;
  font-size: 15.5px;
  color: var(--ink-soft);
}

/* ---------- Protection: the ink panel ---------- */

.guard {
  padding: var(--section) 0;
  background: var(--ink);
  color: var(--on-ink);
}

.guard__grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}

.guard__shot {
  position: sticky;
  top: 32px;
}

.guard__shot .frame {
  border: 1px solid var(--ink-soft);
}

.guard__shot figcaption {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--on-ink-muted);
}

.guard .label {
  color: var(--on-ink-muted);
}

.guard__lead {
  max-width: 38em;
  margin-top: 24px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--on-ink-soft);
}

.guard__group {
  margin-top: 48px;
}

.guard__group h3 {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--on-ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guard__group h3 span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: var(--on-ink);
  color: var(--ink);
  letter-spacing: 0;
}

.guard__group dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 44px;
  padding-top: 22px;
}

.guard__group dt {
  font-weight: 600;
  font-size: 17.5px;
  line-height: 1.3;
}

.guard__group dd {
  margin-top: 6px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--on-ink-soft);
}

.guard__more {
  margin-top: 48px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

/* ---------- Also in the app ---------- */

.rest {
  padding: var(--section) 0;
}

.rest__grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 72px;
  align-items: start;
}

.rest__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 44px;
  margin-top: 40px;
}

.rest__list div {
  padding: 16px 0 22px;
  border-top: 1px solid var(--ink);
}

.rest__list dt {
  font-weight: 700;
  font-size: 18.5px;
}

.rest__list dd {
  margin-top: 4px;
  font-size: 15.5px;
  color: var(--ink-soft);
}

.rest__who {
  padding: 26px 28px 12px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--ink);
  background: var(--paper);
}

.rest__who .label {
  margin-bottom: 8px;
  font-weight: 400;
}

.rest__who li {
  padding: 14px 0 16px;
}

.rest__who li + li {
  border-top: 1px solid var(--line);
}

.rest__who strong {
  display: block;
  font-size: 17.5px;
  line-height: 1.3;
}

.rest__who span {
  font-size: 15.5px;
  color: var(--ink-soft);
}

/* ---------- Questions ---------- */

.faq {
  padding: var(--section) 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 72px;
  align-items: start;
}

.faq__list {
  border-bottom: 1px solid var(--ink);
}

.faq details {
  border-top: 1px solid var(--ink);
}

.faq summary {
  position: relative;
  padding: 19px 48px 20px 0;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 14px;
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 400;
}

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

.faq details p {
  max-width: 40em;
  padding-bottom: 22px;
  font-size: 16.5px;
  color: var(--ink-soft);
}

/* ---------- Download ---------- */

.get {
  padding: 88px 0 96px;
}

.get__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px 72px;
  align-items: end;
  padding-top: 36px;
  border-top: 5px solid var(--ink);
}

.get__text > p:last-child {
  max-width: 34em;
  margin-top: 18px;
  font-size: 18px;
  color: var(--ink-soft);
}

.get .cta__note {
  max-width: 36ch;
}

/* ---------- Footer ---------- */

.foot {
  padding: 30px 0 28px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 15.5px;
}

.foot__mrz {
  --mrz-max: 20px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--ink-soft);
}

.foot__grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1.4fr 1fr;
  gap: 40px 48px;
  padding: 40px 0 44px;
}

.foot__name {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.015em;
}

.foot__brand p:last-child,
.foot__dim {
  max-width: 26em;
  color: var(--on-ink-muted);
}

.foot h2 {
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-ink-muted);
}

.foot li {
  line-height: 1.9;
}

.foot a {
  display: inline-block;
  overflow-wrap: anywhere;
}

.foot__dim {
  margin-top: 8px;
  font-size: 14px;
}

.foot__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 32px;
  padding-top: 18px;
  border-top: 1px solid var(--ink-soft);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--on-ink-muted);
}

/* ---------- Sub-pages: privacy, support, changelog, 404 ---------- */

.pagehead {
  padding: 60px 0 26px;
  background: var(--ink);
  color: var(--on-ink);
}

.pagehead__kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-ink-muted);
}

.pagehead h1 {
  margin: 6px 0 22px;
  font-size: clamp(2.4rem, 5.2vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.pagehead__mrz {
  --mrz-max: 17px;
}

.pagehead__mrz span {
  color: var(--on-ink-muted);
}

.doc__grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 88px;
  align-items: start;
  padding-top: 60px;
  padding-bottom: 112px;
}

.doc__side {
  position: sticky;
  top: 28px;
}

.doc__meta div {
  padding: 11px 0 12px;
  border-top: 1px solid var(--ink);
}

.doc__meta dt {
  font-size: 11px;
}

.doc__meta dd {
  margin-top: 2px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.doc__toc {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 5px solid var(--ink);
}

.doc__toc h2 {
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.doc__toc ol {
  counter-reset: toc;
}

.doc__toc li {
  counter-increment: toc;
}

.doc__toc a {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  padding: 4px 0;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
}

.doc__toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.85;
  color: var(--muted);
}

.doc__toc a:hover {
  text-decoration: underline;
}

.doc__body {
  max-width: 740px;
}

.doc__body section + section {
  margin-top: 52px;
}

.doc__body h2 {
  font-size: 27px;
  line-height: 1.15;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.doc__body h2 span[aria-hidden] {
  display: block;
  margin-bottom: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.doc__body p,
.doc__body ul {
  margin-top: 16px;
  color: var(--ink-soft);
}

.doc__body ul li {
  position: relative;
  padding-left: 22px;
}

.doc__body ul li + li {
  margin-top: 9px;
}

.doc__body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 3px;
  background: var(--ink);
}

.doc__lead {
  margin-top: 0 !important;
  margin-bottom: 20px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted) !important;
}

.doc__email a {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.doc__table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}

.doc__table th {
  padding: 0 16px 8px 0;
  border-bottom: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  vertical-align: bottom;
  color: var(--muted);
}

.doc__table td {
  padding: 12px 16px 13px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.doc__table td:first-child {
  width: 42%;
  color: var(--ink);
  font-weight: 600;
}

.doc__aside {
  margin-top: 44px !important;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
  color: var(--muted) !important;
}

.doc__links {
  margin-top: 24px;
  border-bottom: 1px solid var(--ink);
}

.doc__links a {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-top: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.doc__links a:hover {
  text-decoration: underline;
}

.doc__side .cta {
  margin-top: 26px;
}

.doc__side .cta__box {
  font-size: 15.5px;
}

.doc__side .cta__text {
  padding: 13px 14px;
}

.write {
  padding: 22px 24px 24px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--ink);
  background: var(--paper);
  font-size: 15.5px;
  color: var(--ink-soft);
}

.write h2 {
  margin-bottom: 8px;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.write p + p {
  margin-top: 12px;
}

.write__mail a {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.write__never {
  padding-left: 12px;
  border-left: 4px solid var(--ink);
  font-size: 14.5px;
  line-height: 1.45;
}

.lost {
  padding-top: 56px;
  padding-bottom: 140px;
  font-size: 19px;
}

.lost p + p {
  margin-top: 20px;
}

.lost__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
}

/* ---------- Narrower desktops and tablets ---------- */

@media (max-width: 1100px) {
  :root {
    --gutter: 28px;
    --section: 84px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 44px;
  }

  .hero__shot .frame {
    height: 600px;
  }

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

  .status__grid,
  .quiet__grid,
  .rest__grid,
  .faq__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

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

  .guard__grid {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 48px;
  }

  .doc__grid {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 48px;
  }

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

/* ---------- Phones ---------- */

@media (max-width: 760px) {
  :root {
    --spine: 6px;
    --gutter: 16px;
    --section: 60px;
  }

  body {
    font-size: 16.5px;
  }

  .top__row {
    min-height: 56px;
    gap: 10px;
  }

  .brand {
    gap: 8px;
    font-size: 16.5px;
  }

  .brand img {
    width: 21px;
  }

  .top__nav {
    gap: 16px;
  }

  .top__link {
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  /* The changelog stays reachable from the footer and the support page. */
  .top__link--changelog {
    display: none;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-top: 30px;
  }

  .hero__text {
    padding-bottom: 36px;
  }

  .tagline {
    margin-bottom: 22px;
    font-size: 11px;
    letter-spacing: 0.05em;
  }

  .tagline i {
    margin: 0 0.4em;
  }

  .hero__lead {
    margin: 20px 0 26px;
    font-size: 18px;
  }

  .cta__box {
    font-size: 16px;
  }

  .cta__text {
    padding: 14px 14px;
  }

  .fields {
    column-gap: 18px;
    margin-top: 32px;
  }

  .fields dd {
    font-size: 15.5px;
  }

  .hero__shot figcaption {
    text-align: left;
  }

  .hero__shot .frame {
    height: 330px;
    border-width: 4px;
  }

  .band {
    padding: 14px 0 16px;
  }

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

  .exhibit {
    padding: 20px 16px 22px;
  }

  .exhibit__head strong {
    font-size: 20px;
  }

  .exhibit__pair {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 14px;
  }

  .life__bar {
    grid-template-columns: 26fr 52fr 22fr;
  }

  .life__seg {
    padding: 0 7px;
    font-size: 10px;
    letter-spacing: 0.02em;
  }

  .life__marks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
    margin-top: 16px;
  }

  .life__mark {
    grid-area: auto;
    padding-top: 0;
  }

  .life__mark--today {
    grid-area: auto;
    grid-column: 1 / -1;
    order: 4;
    margin: 0;
    padding-top: 8px;
  }

  .sechead {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 40px;
  }

  .sechead .label {
    margin-bottom: 0;
  }

  .plates__wall {
    grid-template-columns: minmax(0, 1fr);
    gap: 52px;
  }

  .plate h3 {
    min-height: 0;
    margin: 14px 0 16px;
    font-size: 26px;
  }

  /* On a phone each screen is a short window, not a full-height capture. */
  .plate .frame {
    aspect-ratio: 720 / 560;
  }

  .plate--lock .frame img {
    object-position: 50% 24%;
  }

  .plate__band {
    padding: 9px 10px 10px;
  }

  .plates__note {
    margin-top: 48px;
  }

  .quiet__text > p:last-child {
    font-size: 17px;
  }

  .quiet__places li {
    grid-template-columns: 40px minmax(0, 1fr);
  }

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

  /* The lock screen is already shown as plate 06. */
  .guard__shot {
    display: none;
  }

  .guard__lead {
    font-size: 17.5px;
  }

  .guard__group {
    margin-top: 40px;
  }

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

  .rest__list {
    margin-top: 28px;
  }

  .rest__who {
    padding: 22px 18px 8px;
  }

  .faq summary {
    font-size: 17.5px;
  }

  .get {
    padding: 56px 0 64px;
  }

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

  .foot__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding: 32px 0 34px;
  }

  .pagehead {
    padding: 36px 0 18px;
  }

  .pagehead h1 {
    margin-bottom: 16px;
  }

  .doc__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
    padding-top: 32px;
    padding-bottom: 72px;
  }

  .doc__side {
    position: static;
  }

  .doc__body h2 {
    font-size: 24px;
  }

  .doc__email a,
  .write__mail a {
    font-size: 15px;
  }

  /* Tables become stacked records, each cell under its column name. */
  .doc__table,
  .doc__table tbody,
  .doc__table tr,
  .doc__table td {
    display: block;
    width: 100%;
  }

  .doc__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .doc__table tr {
    padding: 14px 0 6px;
    border-top: 2px solid var(--ink);
  }

  .doc__table td,
  .doc__table td:first-child {
    width: 100%;
    padding: 0 0 10px;
    border: 0;
  }

  .doc__table td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .lost {
    padding-bottom: 88px;
  }
}

@media print {
  body {
    padding-left: 0;
  }

  body::before,
  .top__nav,
  .cta {
    display: none;
  }
}
