/*
 * SafeTee website.
 *
 * The system is small on purpose: warm paper, dark ink, SafeTee blue for
 * actions and links, and the app's own red and orange only where they mean
 * Emergency and Caution. A serif carries headings; Atkinson Hyperlegible Next,
 * designed for low-vision readers, carries everything people actually read.
 *
 * App screens (.ios ...) are drawn in iOS points and scaled with `zoom`, so
 * their proportions match the real app at any size.
 *
 * The CSP forbids inline styles, so every visual rule lives here.
 */

/* ---- fonts ----------------------------------------------------------- */

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

@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-opsz.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

/* ---- tokens ---------------------------------------------------------- */

:root {
  --paper: #f7f5f0;
  --paper-2: #efebe3;
  --paper-3: #e6e0d4;
  --line: #dcd6ca;
  --line-strong: #b4ad9f;
  --ink: #17202c;
  --text: #2b3441;
  --muted: #59616d;

  --blue: #0b5ad3;
  --blue-deep: #0846a6;

  --night: #131b27;
  --night-line: #2d3848;
  --night-text: #e8ecf1;
  --night-muted: #a9b3c0;
  --night-accent: #8db2f2;

  --red: #c4302b;
  --red-wash: #f6e4e0;
  --amber: #9a5200;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ios: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ios-rounded: ui-rounded, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --header-h: 64px;

  color-scheme: light;
}

/* ---- base ------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul,
ol {
  padding: 0;
}

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

img {
  height: auto;
}

button {
  font: inherit;
  color: inherit;
}

strong {
  font-weight: 650;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue-deep);
  text-decoration-thickness: 2px;
}

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

::selection {
  background: #cfdcf3;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
  color: #fff;
}

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

.g {
  flex: none;
  fill: currentColor;
}

/* ---- type ------------------------------------------------------------ */

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p,
dd,
li {
  text-wrap: pretty;
}

/* ---- layout ---------------------------------------------------------- */

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

/* ---- buttons and links ----------------------------------------------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 11px 20px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-deep);
  color: #fff;
}

.btn-secondary {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--ink);
  background: rgba(23, 32, 44, 0.04);
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
  text-decoration: none;
}

.text-link .icon {
  width: 1.1em;
  height: 1.1em;
  transition: transform 0.15s ease;
}

.text-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.text-link:hover .icon {
  transform: translateX(3px);
}

@media (max-width: 519px) {
  .actions .btn {
    flex: 1 1 100%;
  }
}

/* ---- masthead -------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.masthead.scrolled,
.masthead.is-open {
  border-bottom-color: var(--line);
}

.masthead-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}

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

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.brand-name {
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav ul a {
  color: var(--text);
  text-decoration: none;
}

.masthead-cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 650;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.masthead-cta:hover {
  border-color: var(--ink);
  color: var(--ink);
  text-decoration: none;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 650;
  cursor: pointer;
}

.menu-toggle .icon {
  width: 20px;
  height: 20px;
}

.menu-toggle .icon-close,
.menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* Small screens: the nav is a panel under the bar. */
@media (max-width: 959px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 8px var(--gutter) 24px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 18px 30px -24px rgba(23, 32, 44, 0.35);
  }

  .nav.open {
    display: block;
  }

  .nav ul {
    list-style: none;
  }

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

  .nav ul a {
    display: flex;
    align-items: center;
    min-height: 52px;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--ink);
  }

  .nav-get {
    margin-top: 16px;
  }

  .nav-get .btn {
    width: 100%;
  }

  .masthead-cta {
    display: none;
  }
}

@media (min-width: 560px) and (max-width: 959px) {
  .masthead-cta {
    display: inline-flex;
  }
}

@media (min-width: 960px) {
  .menu-toggle,
  .nav-get {
    display: none;
  }

  .nav ul {
    display: flex;
    gap: 6px;
    list-style: none;
  }

  .nav ul a {
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 0.9688rem;
    font-weight: 500;
  }

  .nav ul a:hover,
  .nav ul a[aria-current] {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
  }

  .masthead-cta {
    margin-left: 10px;
  }
}

/* ---- hero ------------------------------------------------------------ */

.hero {
  padding-top: clamp(36px, 6vw, 72px);
  overflow: hidden;
}

.hero-kicker {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9688rem;
  font-weight: 500;
}

.hero h1 {
  max-width: 11.5em;
  font-size: clamp(2.375rem, 1.55rem + 2.9vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
}

.hero-lead {
  max-width: 32em;
  margin-top: 22px;
  font-size: 1.1875rem;
  line-height: 1.55;
}

.hero .actions {
  margin-top: 32px;
}

.hero-fine {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* The phone stands on a sand panel. On small screens it bleeds edge to edge. */
.hero-stage {
  margin: 44px calc(-1 * var(--gutter)) 0;
  padding: 40px var(--gutter) 44px;
  background: var(--paper-2);
}

.device {
  --z: 0.66;
  position: relative;
  width: calc(440px * var(--z) + 20px);
  margin-inline: auto;
  padding: 10px;
  border-radius: calc(46px * var(--z) + 10px);
  background: #1c1e22;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 1px 1px rgba(23, 32, 44, 0.12),
    0 28px 50px -30px rgba(23, 32, 44, 0.55);
}

.demo-note {
  max-width: 330px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
  text-align: center;
}

.demo-note strong {
  color: var(--ink);
}

@media (min-width: 960px) {
  .hero {
    padding-top: 0;
    background: linear-gradient(90deg, var(--paper) 0 54%, var(--paper-2) 54% 100%);
  }

  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
  }

  .hero-text {
    padding-block: 72px 96px;
  }

  .hero-stage {
    margin: 0;
    padding: 56px 0 64px;
    background: none;
  }

  .device {
    --z: 0.68;
  }
}

@media (min-width: 1240px) {
  .hero-stage {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-left: 24px;
  }

  .device {
    --z: 0.71;
    margin: 0;
  }

  .demo-note {
    max-width: 200px;
    margin: 0;
    text-align: left;
  }

  .demo-note::before {
    content: "";
    display: block;
    width: 36px;
    height: 1px;
    margin-bottom: 14px;
    background: var(--ink);
  }
}

/* ---- app screens ----------------------------------------------------- */

.ios {
  font-family: var(--ios);
  color: #000;
  letter-spacing: -0.01em;
  line-height: 1.25;
  -webkit-font-smoothing: antialiased;
}

.ios p {
  text-wrap: wrap;
}

.ios-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 440px;
  height: 940px;
  overflow: hidden;
  border-radius: 46px;
  background: #f2f2f7;
  zoom: var(--z);
}

/* The Dynamic Island. */
.ios-screen::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 50%;
  width: 124px;
  height: 36px;
  border-radius: 20px;
  background: #000;
  transform: translateX(-50%);
}

.ios-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  padding: 6px 34px 0 46px;
  font-size: 17px;
  font-weight: 600;
}

.ios-status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.s-signal {
  width: 18px;
  height: 12px;
  fill: currentColor;
}

.s-wifi {
  width: 17px;
  height: 12px;
  fill: currentColor;
}

.s-battery {
  width: 27px;
  height: 13px;
  fill: currentColor;
}

.ios-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0 20px;
}

.ios-page[hidden] {
  display: none;
}

.ios-largetitle {
  margin: 8px 0 -2px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.ios-ready {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(52, 199, 89, 0.3);
  border-radius: 18px;
  background: rgba(52, 199, 89, 0.12);
  font-size: 17px;
}

.ios-ready .g {
  width: 26px;
  height: 26px;
  color: #34c759;
}

.ios-ready strong {
  font-weight: 600;
}

/* Emergency dial. 226 pt, as in PanicButton.swift. */
.ios-dial {
  position: relative;
  display: grid;
  place-items: center;
  width: 226px;
  height: 226px;
  margin: 8px auto 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff5146 0%, #e5352b 100%);
  box-shadow: 0 8px 22px rgba(229, 53, 43, 0.38);
  color: #fff;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease;
}

.ios-dial:active,
.ios-dial[data-state="holding"] {
  transform: scale(0.96);
}

.ios-dial:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 6px;
  border-radius: 50%;
}

.ios-dial-ring {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  transform: rotate(-90deg);
  opacity: 0;
}

.ios-dial-ring circle {
  fill: none;
  stroke-width: 5.8;
}

.ios-dial-ring .track {
  stroke: rgba(255, 255, 255, 0.28);
}

.ios-dial-ring .bar {
  stroke: #fff;
  stroke-linecap: round;
  stroke-dasharray: 276.46;
  stroke-dashoffset: calc(276.46 * (1 - var(--p, 0)));
}

.ios-dial[data-state="holding"] .ios-dial-ring,
.ios-dial[data-state="counting"] .ios-dial-ring {
  opacity: 1;
}

.ios-dial-face {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0 28px;
  text-align: center;
}

.ios-dial-face .g {
  width: 50px;
  height: 50px;
}

.ios-dial-title {
  font-family: var(--ios-rounded);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ios-dial-sub {
  font-size: 15px;
  opacity: 0.92;
}

.ios-dial-face.is-count {
  gap: 2px;
  visibility: hidden;
}

.ios-dial-count {
  font-family: var(--ios-rounded);
  font-size: 86px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ios-dial-sending {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.ios-dial[data-state="counting"] .is-idle {
  visibility: hidden;
}

.ios-dial[data-state="counting"] .is-count {
  visibility: visible;
}

.ios-caution {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 86px;
  padding: 0 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffa424 0%, #ff8a00 100%);
  box-shadow: 0 6px 14px rgba(255, 138, 0, 0.3);
  color: #fff;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.ios-caution .g {
  width: 28px;
  height: 28px;
}

.ios-caution > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
}

.ios-caution strong {
  font-size: 17px;
  font-weight: 600;
}

.ios-caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.ios-caption strong {
  font-size: 15px;
  font-weight: 600;
}

.ios-caption span,
.ios-footnote {
  color: rgba(60, 60, 67, 0.62);
  font-size: 13px;
}

.ios-footnote {
  padding: 0 6px;
  font-size: 12px;
  text-align: center;
}

.ios-cancel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 59, 48, 0.12);
  color: #d70015;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}

.ios-cancel[hidden] {
  display: none;
}

.ios-cancel .g {
  width: 20px;
  height: 20px;
}

.ios-cancel:focus-visible,
.ios-wide:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 3px;
  border-radius: 16px;
}

.ios-history {
  gap: 14px;
}

.ios-card-title .g.is-muted,
.ios-history .g.is-muted {
  color: #8e8e93;
}

.ios-history-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
}

.ios-history-row + .ios-history-row {
  padding-top: 12px;
  border-top: 0.5px solid rgba(60, 60, 67, 0.2);
}

.ios-history-row > .g {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: #34c759;
}

.ios-history-row > span {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.ios-history-row strong {
  font-weight: 500;
}

.ios-history-row span span,
.ios-history-row em {
  color: rgba(60, 60, 67, 0.62);
  font-size: 12px;
  font-style: normal;
}

/* Countdown running: the other control stands down, the caption gives way. */
[data-demo][data-state="counting"] .ios-caution {
  background: #c7c7cc;
  box-shadow: none;
}

[data-demo][data-state="counting"] .ios-caption {
  display: none;
}

/* Floating tab bar, iOS 26. */
.ios-tabbar {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
  font-size: 10.5px;
  font-weight: 600;
}

.ios-tabbar span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 0 6px;
  border-radius: 28px;
  color: #1c1c1e;
}

.ios-tabbar .g {
  width: 25px;
  height: 25px;
}

.ios-tabbar .is-on {
  background: rgba(118, 118, 128, 0.14);
  color: #007aff;
}

/* Cards and rows shared by every screen. */
.ios-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
}

.ios-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
}

.ios-card-title .g {
  width: 21px;
  height: 21px;
  color: #007aff;
}

.ios-alert-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(255, 59, 48, 0.35);
  border-radius: 18px;
  background: rgba(255, 59, 48, 0.12);
  text-align: center;
}

.ios-alert-head:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 3px;
}

.ios-alert-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
}

.ios-alert-title .g {
  width: 26px;
  height: 26px;
  color: #ff3b30;
}

.ios-timer {
  font-family: var(--ios-rounded);
  font-size: 34px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.ios-alert-note {
  color: rgba(60, 60, 67, 0.65);
  font-size: 13px;
}

.ios-wide {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  padding: 10px 16px;
  border: 0;
  border-radius: 16px;
  text-align: left;
  cursor: default;
}

button.ios-wide {
  cursor: pointer;
}

.ios-wide .g {
  width: 24px;
  height: 24px;
}

.ios-wide > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
}

.ios-wide strong {
  font-size: 17px;
  font-weight: 600;
}

.ios-wide.is-green {
  background: linear-gradient(180deg, #3fd062 0%, #2db74f 100%);
  color: #fff;
}

.ios-wide.is-orange {
  background: rgba(255, 149, 0, 0.13);
  color: #b25000;
}

.ios-wide.is-blue {
  background: rgba(0, 122, 255, 0.11);
  color: #0058c7;
}

.ios-good {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #248a3d;
  font-size: 15px;
}

.ios-good .g {
  width: 20px;
  height: 20px;
}

/* A screen shown on its own, without the phone around it. */
.ios-panel {
  --pz: 0.76;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 400px;
  padding: 20px;
  border-radius: 34px;
  background: #f2f2f7;
  box-shadow: 0 0 0 1px rgba(23, 32, 44, 0.09), 0 24px 40px -32px rgba(23, 32, 44, 0.5);
  zoom: var(--pz);
}

@media (min-width: 600px) {
  .ios-panel {
    --pz: 0.82;
  }
}

/* Notifications as a contact receives them. Real size, no zoom. */
.ios-notif {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  max-width: 380px;
  padding: 12px 14px 13px 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 2px rgba(23, 32, 44, 0.08), 0 8px 20px -14px rgba(23, 32, 44, 0.35);
  font-size: 15px;
}

.ios-notif img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12);
}

.ios-notif > div {
  flex: 1;
  min-width: 0;
}

.ios-notif-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.ios-notif-head strong {
  font-weight: 600;
}

.ios-notif-head span {
  color: rgba(60, 60, 67, 0.8);
  font-size: 13px;
}

.ios-notif-body {
  margin-top: 1px;
  line-height: 1.3;
}

/* Lock Screen with the Live Activity. */
.lockscreen {
  width: 100%;
  max-width: 380px;
  padding: 26px 14px 14px;
  border-radius: 30px;
  background: linear-gradient(180deg, #44505f 0%, #222a35 100%);
  color: #fff;
  text-align: center;
}

.lock-date {
  font-family: var(--ios);
  font-size: 17px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
}

.lock-time {
  margin-bottom: 22px;
  font-family: var(--ios-rounded);
  font-size: clamp(60px, 17vw, 76px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.92);
}

.ios-activity {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(10, 12, 16, 0.82);
  color: #fff;
  text-align: left;
}

.ios-activity-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ios-activity-head > .g {
  width: 26px;
  height: 26px;
  color: #ff453a;
}

.ios-activity-head div {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.ios-activity-head strong {
  font-size: 16px;
  font-weight: 600;
}

.ios-activity-head span {
  color: rgba(235, 235, 245, 0.7);
  font-size: 13px;
}

.ios-activity-head p {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 15px;
}

.ios-activity-head p strong {
  font-variant-numeric: tabular-nums;
}

.ios-activity-head p span {
  font-size: 13px;
}

.ios-activity-buttons {
  display: flex;
  gap: 8px;
}

.ios-activity-buttons span {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 34px;
  border-radius: 17px;
  font-size: 13px;
  font-weight: 700;
}

.ios-activity-buttons .g {
  width: 15px;
  height: 15px;
}

.ios-activity-buttons .is-green {
  background: #1f7a36;
}

.ios-activity-buttons .is-orange {
  background: #b25000;
}

.ios-activity-buttons .is-grey {
  flex: 0 0 48px;
  background: #636366;
}

/* Recipient's view of an alert. */
.ios-track {
  width: 420px;
  border-radius: 34px 34px 0 0;
}

.ios-navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  font-size: 17px;
}

.ios-navbar .g {
  position: absolute;
  left: 2px;
  width: 22px;
  height: 22px;
  color: #007aff;
}

.ios-navbar strong {
  font-weight: 600;
}

.ios-track-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 59, 48, 0.12);
}

.ios-track-head .g {
  width: 26px;
  height: 26px;
  color: #ff3b30;
}

.ios-track-head p {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ios-track-head strong {
  font-size: 17px;
  font-weight: 600;
}

.ios-track-head span {
  color: rgba(60, 60, 67, 0.65);
  font-size: 12px;
}

.ios-map {
  height: 280px;
  overflow: hidden;
  border-radius: 18px;
}

.ios-map svg {
  width: 100%;
  height: 100%;
}

.ios-map text {
  font-family: var(--ios);
}

.ios-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 16px;
}

.ios-rows div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.ios-rows dt {
  color: rgba(60, 60, 67, 0.62);
}

.ios-linkrow {
  display: flex;
  gap: 10px;
}

.ios-link {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 16px;
  background: rgba(0, 122, 255, 0.12);
  color: #0058c7;
  font-size: 17px;
  font-weight: 600;
}

.ios-link .g {
  width: 22px;
  height: 22px;
}

.ios-link.is-square {
  flex: 0 0 50px;
  justify-content: center;
  padding: 0;
}

/* Location consent sheet. */
.ios-sheet {
  align-items: stretch;
  text-align: center;
}

.ios-sheet-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  font-size: 17px;
}

.ios-sheet-bar strong {
  font-weight: 600;
}

.ios-glass-btn {
  position: absolute;
  left: 0;
  padding: 11px 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  color: #007aff;
}

.ios-sheet-icon {
  width: 44px;
  height: 44px;
  margin: 18px auto 4px;
  color: #007aff;
}

.ios-sheet-title {
  font-size: 22px;
  font-weight: 600;
}

.ios-sheet-body {
  margin-bottom: 4px;
  color: rgba(60, 60, 67, 0.65);
  font-size: 14px;
  line-height: 1.35;
}

.ios-sheet .ios-card {
  text-align: left;
}

.ios-card-title .g.is-blue {
  color: #007aff;
}

.ios-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  color: rgba(60, 60, 67, 0.7);
  font-size: 14px;
  line-height: 1.35;
}

.ios-points li {
  display: flex;
  gap: 12px;
}

.ios-points .g {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  color: rgba(60, 60, 67, 0.55);
}

@supports not (zoom: 1) {
  .ios-screen {
    transform: scale(var(--z));
    transform-origin: 0 0;
    margin-bottom: calc(940px * (var(--z) - 1));
    margin-right: calc(440px * (var(--z) - 1));
  }

  .ios-panel {
    max-width: 100%;
  }
}

/* ---- who it's for ---------------------------------------------------- */

.who {
  padding-block: clamp(72px, 10vw, 128px) clamp(64px, 9vw, 112px);
}

.who-intro h2 {
  max-width: 13em;
  font-size: clamp(2rem, 1.45rem + 1.9vw, 2.75rem);
}

.who-intro p {
  max-width: 30em;
  margin-top: 20px;
  font-size: 1.1875rem;
  line-height: 1.55;
}

.who-list {
  margin-top: 40px;
  list-style: none;
}

.who-list li {
  padding-block: 24px 26px;
  border-top: 1px solid var(--line);
}

.who-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.who-list h3 {
  font-size: 1.375rem;
  line-height: 1.25;
}

.who-list p {
  max-width: 34em;
  margin-top: 8px;
}

.who-aside {
  margin-top: 28px;
  color: var(--muted);
}

@media (min-width: 960px) {
  .who-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
  }

  .who-intro {
    grid-column: 1 / span 5;
    grid-row: 1 / span 2;
    align-self: start;
    position: sticky;
    top: calc(var(--header-h) + 40px);
  }

  .who-list {
    grid-column: 7 / -1;
    margin-top: 6px;
  }

  .who-list li {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
    gap: 24px;
  }

  .who-list p {
    margin-top: 3px;
  }

  .who-aside {
    grid-column: 7 / -1;
  }
}

/* ---- set up ---------------------------------------------------------- */

.setup {
  padding-block: clamp(48px, 6vw, 72px);
  background: var(--paper-2);
}

.setup h2 {
  font-size: clamp(1.625rem, 1.3rem + 1vw, 2rem);
}

.setup-head p {
  margin-top: 8px;
  color: var(--muted);
}

.setup-steps {
  display: grid;
  gap: 0;
  margin-top: 28px;
  list-style: none;
}

.setup-steps li {
  display: flex;
  gap: 16px;
  padding-block: 18px;
  border-top: 1px solid var(--paper-3);
}

.step-n {
  flex: none;
  width: 1.4em;
  color: var(--blue);
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
}

.setup-steps p {
  max-width: 26em;
}

@media (min-width: 900px) {
  .setup-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    gap: 24px;
    align-items: start;
  }

  .setup-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin-top: 2px;
  }

  .setup-steps li {
    flex-direction: column;
    gap: 12px;
    padding: 0 0 0 20px;
    border-top: 0;
    border-left: 1px solid var(--line-strong);
  }
}

/* ---- story ----------------------------------------------------------- */

.story {
  padding-top: clamp(72px, 9vw, 112px);
}

.story-title {
  max-width: 14em;
  margin-bottom: clamp(32px, 5vw, 56px);
  font-size: clamp(2rem, 1.45rem + 1.9vw, 2.75rem);
}

.chapter {
  display: grid;
  gap: 36px;
  padding-block: clamp(48px, 7vw, 88px);
  border-top: 1px solid var(--line);
}

.chapter-n {
  margin-bottom: 10px;
  color: var(--blue);
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
}

.chapter h3 {
  font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem);
}

.chapter-text p:not(.chapter-n) {
  max-width: 31em;
  margin-top: 16px;
}

.chapter-text h3 + p {
  margin-top: 18px;
}

.chapter-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chapter-figure figcaption,
.care-figure figcaption {
  max-width: 34em;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9063rem;
  line-height: 1.5;
  text-align: center;
}

/* 01: two notifications on a sand tray. */
.notes {
  align-items: stretch;
}

.notes-tray {
  display: grid;
  gap: 22px;
  padding: clamp(20px, 4vw, 40px);
  border-radius: 4px;
  background: var(--paper-2);
}

.note-row {
  display: grid;
  gap: 10px;
}

.note-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
}

.note-label::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #ff9500;
}

.note-label.emergency::before {
  background: #ff3b30;
}

.notes figcaption {
  align-self: center;
}

@media (min-width: 600px) {
  .note-row {
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
  }
}

/* 02: timing chart, drawn to scale. */
.timing {
  align-items: stretch;
}

.timing-chart {
  display: grid;
  gap: 14px;
  --name-w: 56px;
  --end-w: 56px;
}

.timing-row {
  display: grid;
  grid-template-columns: var(--name-w) minmax(0, 1fr);
  align-items: center;
}

.timing-name {
  color: var(--ink);
  font-weight: 700;
}

.timing-track {
  position: relative;
  height: 44px;
  margin-right: var(--end-w);
}

.timing-count {
  position: absolute;
  inset: 6px 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
}

.timing-count i {
  display: grid;
  place-items: center;
  border-radius: 3px;
  background: var(--red-wash);
  color: var(--red);
  font-size: 0.9375rem;
  font-style: normal;
  font-weight: 700;
}

.timing-hold {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 24%;
  border-radius: 3px;
  background: var(--red);
}

.timing-end {
  position: absolute;
  top: 50%;
  left: 100%;
  padding-left: 14px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
  transform: translateY(-50%);
}

.timing-end::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 5px;
  width: 2px;
  height: 30px;
  background: var(--ink);
  transform: translateY(-50%);
}

.timing-end.is-hold {
  left: 24%;
}

.timing-axis {
  position: relative;
  height: 26px;
  margin: 4px var(--end-w) 0 var(--name-w);
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.8125rem;
}

.timing-axis span {
  position: absolute;
  top: 6px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.timing-axis span:nth-child(1) { left: 0; transform: none; }
.timing-axis span:nth-child(2) { left: 20%; }
.timing-axis span:nth-child(3) { left: 40%; }
.timing-axis span:nth-child(4) { left: 60%; }
.timing-axis span:nth-child(5) { left: 80%; }
.timing-axis span:nth-child(6) { left: 100%; transform: translateX(-100%); }

.timing figcaption {
  align-self: flex-start;
  text-align: left;
}

/* 03 carries the Lock Screen as a secondary note under its text. */
.chapter-aside {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.chapter-aside h4 {
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 700;
}

.chapter-aside p {
  max-width: 31em;
  margin-top: 8px;
}

.chapter-aside .lockscreen {
  margin-top: 24px;
}

@media (min-width: 960px) {
  .chapter {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: center;
  }

  .chapter-text {
    grid-column: 1 / span 5;
    grid-row: 1;
  }

  .chapter-figure {
    grid-column: 7 / -1;
    grid-row: 1;
  }

  /* 02: chart on the left, wider than it is tall; text on the right. */
  .chapter-gesture .chapter-text {
    grid-column: 8 / -1;
  }

  .chapter-gesture .chapter-figure {
    grid-column: 1 / span 6;
  }

  /* 03: tall screen on the right; text and the Lock Screen note share the left. */
  .chapter-open {
    align-items: start;
  }

  .chapter-open .chapter-text {
    padding-top: 16px;
  }

  .chapter-open .chapter-figure {
    grid-column: 7 / span 5;
    grid-row: 1 / span 2;
  }

  .chapter-aside {
    grid-column: 1 / span 5;
    grid-row: 2;
    margin-top: 8px;
  }

  /* 04: screen first, text after, so the run of chapters doesn't settle into a pattern. */
  .chapter-consent .chapter-text {
    grid-column: 8 / -1;
  }

  .chapter-consent .chapter-figure {
    grid-column: 1 / span 6;
  }
}

/* ---- caregivers ------------------------------------------------------ */

.care {
  padding-top: clamp(72px, 9vw, 112px);
  overflow: hidden;
  background: var(--night);
  color: var(--night-text);
}

.care h2 {
  max-width: 15em;
  color: #fff;
  font-size: clamp(2rem, 1.45rem + 1.9vw, 2.75rem);
}

.care a {
  color: var(--night-accent);
}

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

.care-lead {
  max-width: 31em;
  margin-top: 20px;
  font-size: 1.1875rem;
  line-height: 1.55;
}

.care-list {
  margin-top: 40px;
}

.care-head {
  max-width: 44rem;
}

.care-list div {
  padding-block: 18px;
  border-top: 1px solid var(--night-line);
}

.care-list dt {
  color: #fff;
  font-weight: 700;
}

.care-list dd {
  max-width: 34em;
  margin-top: 4px;
  color: var(--night-muted);
}

.care-note {
  max-width: 34em;
  margin-top: 28px;
  padding-left: 18px;
  border-left: 2px solid var(--night-accent);
  color: var(--night-text);
}

.care-note strong {
  color: #fff;
}

.care-figure {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  margin-top: 56px;
}

.care-figure figcaption {
  margin: 0 0 18px;
  color: var(--night-muted);
}

.care .ios-panel {
  box-shadow: none;
}

@media (min-width: 960px) {
  .care-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
  }

  .care-head {
    grid-column: 1 / span 8;
  }

  .care-text {
    grid-column: 1 / span 6;
    padding-bottom: clamp(72px, 9vw, 112px);
  }

  .care-figure {
    grid-column: 8 / -1;
    grid-row: 2;
    align-self: end;
    margin-top: 40px;
  }
}

/* ---- privacy --------------------------------------------------------- */

.privacy {
  padding-block: clamp(72px, 10vw, 128px) clamp(48px, 6vw, 72px);
}

.privacy-title {
  max-width: 15em;
  font-size: clamp(2.125rem, 1.4rem + 2.6vw, 3.25rem);
  line-height: 1.08;
}

.privacy-prose p {
  max-width: 32em;
  margin-top: 16px;
}

.privacy-prose .privacy-lead {
  margin-top: 28px;
  color: var(--ink);
  font-size: 1.1875rem;
  line-height: 1.55;
}

.privacy-prose p:last-child {
  margin-top: 22px;
}

.privacy-list {
  margin-top: 40px;
}

.privacy-list div {
  padding-block: 16px 18px;
  border-top: 1px solid var(--line);
}

.privacy-list dt {
  color: var(--ink);
  font-weight: 700;
}

.privacy-list dd {
  margin-top: 4px;
  font-size: 1rem;
}

.mono {
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: 0.85em;
  white-space: nowrap;
}

@media (min-width: 960px) {
  .privacy-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    margin-top: 12px;
  }

  .privacy-prose {
    grid-column: 1 / span 6;
  }

  .privacy-list {
    grid-column: 8 / -1;
    margin-top: 30px;
  }
}

/* ---- notice ---------------------------------------------------------- */

.notice-inner {
  display: flex;
  gap: 14px;
  max-width: 54rem;
  padding: 20px 0 20px 20px;
  border-left: 3px solid var(--red);
}

.notice-inner .icon {
  width: 24px;
  height: 24px;
  margin-top: 1px;
  color: var(--red);
}

.notice-inner strong {
  color: var(--ink);
}

/* ---- FAQ ------------------------------------------------------------- */

.faq {
  padding-block: clamp(64px, 9vw, 112px);
}

.faq h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
}

.faq-head p {
  max-width: 22em;
  margin-top: 12px;
  color: var(--muted);
}

.faq-list {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

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

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}

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

.faq-list summary:hover {
  color: var(--blue);
}

.faq-list summary .icon {
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.faq-list details[open] summary .icon {
  transform: rotate(45deg);
}

.answer {
  max-width: 40em;
  padding-bottom: 22px;
}

.answer p + p {
  margin-top: 10px;
}

@media (min-width: 960px) {
  .faq-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
  }

  .faq-head {
    grid-column: 1 / span 4;
  }

  .faq-list {
    grid-column: 5 / -1;
    margin-top: 6px;
  }
}

/* ---- download -------------------------------------------------------- */

.get {
  padding-block: clamp(56px, 7vw, 88px);
  background: var(--paper-2);
}

.get-grid {
  display: grid;
  gap: 28px;
}

.get-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(23, 32, 44, 0.08);
}

.get h2 {
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.625rem);
}

.get-text p {
  max-width: 30em;
  margin-top: 12px;
}

.get .actions {
  margin-top: 0;
}

.get-fine {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (min-width: 900px) {
  .get-grid {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 36px;
    align-items: center;
  }

  .get-fine {
    text-align: right;
  }

  .get-icon {
    width: 112px;
    height: 112px;
    border-radius: 25px;
  }
}

/* ---- footer ---------------------------------------------------------- */

.footer {
  padding-block: 56px 32px;
  border-top: 1px solid var(--line);
  font-size: 0.9688rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px 24px;
}

.footer-brand {
  grid-column: 1 / -1;
}

.footer-brand p {
  max-width: 24em;
  margin-top: 14px;
  color: var(--muted);
}

.footer h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.9688rem;
  font-weight: 700;
  letter-spacing: 0;
}

.footer ul {
  display: grid;
  gap: 6px;
  list-style: none;
}

.footer ul a {
  display: inline-block;
  padding-block: 3px;
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer ul a:hover,
.footer ul a[aria-current] {
  color: var(--blue);
  text-decoration: underline;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer-brand {
    grid-column: auto;
  }
}

/* ---- content pages (delete account, 404) ----------------------------- */

.page-head {
  padding-block: clamp(48px, 7vw, 88px) clamp(32px, 4vw, 48px);
}

.page-kicker {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.9688rem;
  font-weight: 500;
}

.page-head h1 {
  font-size: clamp(2.25rem, 1.6rem + 2.2vw, 3.25rem);
  line-height: 1.08;
}

.page-head .lead {
  max-width: 34em;
  margin-top: 18px;
  font-size: 1.1875rem;
  line-height: 1.55;
}

.page-options {
  display: grid;
  border-top: 1px solid var(--line);
}

.option {
  padding-block: 36px;
}

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

.option-tag {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
}

.option h2 {
  font-size: clamp(1.5rem, 1.25rem + 0.8vw, 1.875rem);
}

.option > p {
  max-width: 32em;
  margin-top: 10px;
}

.option ol {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  list-style: none;
  counter-reset: step;
}

.option ol li {
  display: flex;
  gap: 14px;
  max-width: 34em;
  counter-increment: step;
}

.option ol li::before {
  content: counter(step);
  flex: none;
  width: 1.2em;
  color: var(--blue);
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.15;
}

.option .btn {
  margin-top: 24px;
}

.option .btn .icon {
  width: 20px;
  height: 20px;
}

.fine {
  max-width: 36em;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.ui-label {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-weight: 650;
  white-space: nowrap;
}

.page-data {
  display: grid;
  gap: 40px;
  padding-block: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--line);
}

.page-data h2 {
  font-size: clamp(1.5rem, 1.25rem + 0.8vw, 1.875rem);
}

.page-data ul {
  margin-top: 18px;
  list-style: none;
  border-top: 1px solid var(--line);
}

.page-data li {
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.page-data li strong {
  color: var(--ink);
}

.page-after {
  padding-block: clamp(40px, 5vw, 56px) clamp(64px, 9vw, 112px);
  border-top: 1px solid var(--line);
}

.page-after p {
  max-width: 40em;
}

.page-after p + p {
  margin-top: 14px;
}

@media (min-width: 900px) {
  .page-options {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 56px;
  }

  .option + .option {
    padding-left: 56px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .page-data {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 56px;
  }
}

/* 404: short page, footer held to the bottom. */
body:has(> .center-page) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

.center-page {
  flex: 1 0 auto;
  width: 100%;
  padding-block: clamp(64px, 10vw, 120px);
}

.center-page .code {
  color: var(--muted);
  font-weight: 600;
}

.center-page h1 {
  max-width: 14em;
  margin-top: 10px;
  font-size: clamp(2.25rem, 1.6rem + 2.2vw, 3.25rem);
}

.center-page p:not(.code) {
  max-width: 30em;
  margin-top: 16px;
}

.center-page .actions {
  margin-top: 28px;
}

.footer:has(.footer-base:first-child) {
  padding-block: 24px;
}

.footer-base:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* ---- motion ---------------------------------------------------------- */

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

  .ios-dial:active,
  .ios-dial[data-state="holding"] {
    transform: none;
  }
}

@media (forced-colors: active) {
  .ios-dial,
  .btn {
    border: 2px solid ButtonText;
  }
}
