/* site.css: shared tokens and classes (plan 0005 W1); rules and index: website/_src/README.md. */

/* 1. Fonts */
/* Self-hosted Nunito (ADR 0021), SIL OFL: /fonts/OFL.txt. */
@font-face {
  font-family: 'Nunito';
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/nunito-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/nunito-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/nunito-600.woff2') format('woff2');
}

/* 2. Tokens */
:root {
  color-scheme: light;

  /* Palette (DESIGN.md; contrast ratios in website/_src/README.md). */
  /* The neutrals are cool: oklch hue 262, at the warm values' lightnesses (ADR 0025). */
  --porcelain: #F1F3F7; /* page */
  --paper: #F9FAFD; /* raised surface */
  --paper-brightest: #FDFEFF; /* cards, fields */
  --ink: #221E19; /* CTAs, the phone body */
  --ink-text: #211D18; /* text */
  --ink-muted: #6E6659; /* secondary text, field borders (≥ 3:1 for 1.4.11) */
  --hairline: #CFD3DB; /* rules and borders */
  --hairline-faint: #E1E5EB; /* dividers inside a surface */
  --ink-tint: #DFE4EC; /* hover fill */
  --bone: #DDE2EB;
  --sage: #506244; /* success */
  --madder: #A8362E; /* errors */

  /* The mark's blue (ADR 0024, plan 0019): sRGB mixes of #3C6CE8 with ink or porcelain.
     Only this block names a hex; components use the roles below. */
  --blue: #3C6CE8; /* the mark's ground: fills and rules, never text (4.2:1) */
  --blue-ink: #3556AE; /* 72% blue + 28% ink: text, focus, hover */
  --blue-ink-deep: #30498B; /* 55% blue + 45% ink: pressed */
  --blue-tint: #DBE3F5; /* 12% blue + 88% porcelain: outline-button hover */

  /* Roles; #demo re-points them to ink (demo.css). */
  --action: var(--blue);
  --action-hover: var(--blue-ink);
  --action-pressed: var(--blue-ink-deep);
  --on-action: var(--paper-brightest);
  --link: var(--blue-ink);
  --link-tint: var(--blue-tint);
  --focus: var(--blue-ink);
  --accent: var(--blue);

  /* Mixed in @supports below; plain without color-mix() (Safari < 16.2). */
  --ink-hover: var(--ink);
  --phone-band: var(--ink-muted);

  /* Type: one family, 400 / 500 / 600 only. */
  --font: 'Nunito', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --text-display: clamp(2.75rem, 4.75vw + 1rem, 5.25rem); /* h1: 44–84px (11vw under 25em) */
  --text-h2: clamp(2rem, 2.25vw + 1.25rem, 3.25rem); /* 32–52px */
  --text-h3: clamp(1.25rem, 0.4vw + 1.125rem, 1.5rem); /* 20–24px */
  --text-lead: clamp(1.1875rem, 0.5vw + 1rem, 1.375rem); /* 19–22px */
  --text-body: clamp(1.0625rem, 0.15vw + 1rem, 1.125rem); /* 17–18px */
  --text-small: 0.9375rem; /* 15px */
  --text-label: 1rem; /* buttons */
  --text-eyebrow: 0.75rem; /* 12px, uppercase */
  --measure: 64ch;

  /* Space (4px base). */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;
  --space-11: 10rem;
  --section-space: clamp(3rem, 1.5rem + 4vw, 5rem); /* per side: 96–160px between sections */

  /* Grid */
  --container: 77.5rem;
  --gutter: min(1.5rem, 4vw); /* 11 gutters fit large text on phones */
  --side: 1rem;
  --header-h: 3.75rem;

  /* Shape: the only radii. */
  --radius-xs: 2px; /* chips, tags */
  --radius-sm: 6px; /* fields */
  --radius-md: 10px; /* buttons */
  --radius-lg: 14px; /* cards */
  --radius-xl: 20px; /* large panels */

  /* Depth: one ink-tinted shadow; a phone may add a soft one. */
  --shadow: 0 2px 8px rgb(34 30 25 / .08);
  --shadow-device: 0 24px 48px -24px rgb(34 30 25 / .32);

  /* Motion: things settle, they never bounce. */
  --ease: cubic-bezier(.2, 0, 0, 1);
  --duration-xs: 120ms;
  --duration-s: 220ms;
  --duration-m: 320ms;
  --duration-l: 480ms;
}

@supports (color: color-mix(in oklab, #000, #fff)) {
  :root {
    --ink-hover: color-mix(in oklab, var(--ink) 84%, var(--porcelain));
    --phone-band: color-mix(in oklab, var(--ink) 70%, var(--ink-muted));
  }
}

/* Narrow phones: 35px at 320, one h1 sentence a line. */
@media (max-width: 24.99em) {
  :root { --text-display: min(11vw, 2.75rem); }
}

@media (min-width: 40em) {
  :root { --side: 1.5rem; }
}

@media (min-width: 64em) {
  :root {
    --side: 2.5rem;
    --header-h: 4.5rem;
  }
}

/* 3. Base */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

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

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--porcelain);
  color: var(--ink-text);
  font-family: var(--font);
  font-size: var(--text-body);
  line-height: 1.55;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

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

img,
video { height: auto; }

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button { cursor: pointer; }

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

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

p,
li,
dd,
figcaption,
blockquote { max-width: var(--measure); }

p,
li,
figcaption { text-wrap: pretty; } /* no one-word last lines */

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

[hidden] { display: none !important; }

::selection { background: var(--blue-ink); color: var(--paper-brightest); }

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

main:focus {
  outline: none; /* the skip link's target */
}

hr { border: 0; border-top: 1px solid var(--hairline); }

/* Tabular figures; separators go in .num__sep (README, Strings). */
.num { font-variant-numeric: tabular-nums lining-nums; }

.num__sep { font-variant-numeric: proportional-nums lining-nums; }

summary { cursor: pointer; }

/* 4. Type */
h1,
h2,
h3,
h4 { color: var(--ink-text); text-wrap: balance; }

h1 {
  font-size: var(--text-display);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

h2 {
  font-size: var(--text-h2);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.lead {
  font-size: var(--text-lead);
  line-height: 1.45;
  letter-spacing: -0.006em;
}

.small { font-size: var(--text-small); line-height: 1.5; }

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

/* 5. Layout */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--side));
  margin-inline: auto;
  padding-inline: var(--side);
}

/* 12 columns; children span all 12 until placed. */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

.grid > * { grid-column: 1 / -1; min-width: 0; }

/* Full-bleed hairline on top; a jump puts it on the header's own rule. */
.section {
  padding-block: var(--section-space);
  border-top: 1px solid var(--hairline);
  scroll-margin-top: calc(-1 * var(--space-4));
}

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}

/* Hero: the copy, then the demo; 1–7 and 8–12 from 64em. */
.hero { padding-block: clamp(2.5rem, 1rem + 5vw, 5.5rem) clamp(3.5rem, 2rem + 5vw, 7rem); }

.hero__grid { row-gap: var(--space-8); align-items: center; }

@media (min-width: 64em) {
  .hero__copy { grid-column: 1 / span 7; }
  .hero__demo { grid-column: 8 / span 5; }
}

/* --flow-space between siblings */
.flow > * + * { margin-top: var(--flow-space, var(--space-5)); }

/* A wrapping row; --cluster-gap */
.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--cluster-gap, var(--space-3) var(--space-5));
}

/* 6. Header and mobile menu */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--porcelain);
  border-bottom: 1px solid var(--hairline);
}

.site-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--space-6);
  min-height: var(--header-h);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 3rem;
  color: var(--ink-text);
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark .tag { letter-spacing: 0.08em; }

/* The mark beside the name: decorative, hinted for 32px (ADR 0024). */
.wordmark__mark {
  flex: none;
  width: 2rem;
  height: 2rem;
  margin-inline-end: calc(var(--space-2) - var(--space-3)); /* 8px to the name while .wordmark's gap is --space-3 */
  border-radius: var(--radius-sm);
}

/* The header bar is full below this: tile, name, Menu and Join the beta need 339px (pt; 336 en)
   at the default text size. The footer's tile always shows. */
@media (max-width: 21.99em) {
  .site-header .wordmark__mark { display: none; }
}

.site-header__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  min-width: 3rem;
  margin-inline-start: auto;
  padding: 0 var(--space-1);
  border: 0;
  background: none;
  color: var(--ink);
  font-size: var(--text-label);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.site-header__toggle:hover { text-decoration-thickness: 2px; text-decoration-color: var(--link); }

.site-menu {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-inline-start: auto;
}

.site-nav__list { display: flex; gap: var(--space-5); }

.site-nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  font-size: var(--text-small);
  font-weight: 500;
  color: inherit; /* navigation stays ink (D3); only the underline is blue */
  text-decoration: none;
  text-underline-offset: 0.45em;
}

.site-nav__list a:hover {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--link);
}

@media (max-width: 63.99em) {
  .site-header__toggle { display: inline-flex; }

  .site-menu {
    position: absolute;
    inset: 100% 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-5);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: var(--space-2) var(--side) var(--space-6);
    background: var(--porcelain);
    border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow);
  }

  .site-menu.is-open { display: flex; }

  .site-nav__list { flex-direction: column; gap: 0; }

  .site-nav__list li + li { border-top: 1px solid var(--hairline-faint); }

  .site-nav__list a {
    display: flex;
    min-height: 3.5rem;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
  }

  .site-menu .lang-switch { margin-inline-start: calc(-1 * var(--space-2)); }

  .site-header__bar { column-gap: var(--space-4); }
  .site-header .btn { padding-inline: var(--space-4); font-size: var(--text-small); }
}

@media (max-width: 29.99em) {
  .wordmark .site-header__tag { display: none; }
}

@media (max-width: 63.99em) and (prefers-reduced-motion: no-preference) {
  .site-menu.is-open {
    transition: opacity var(--duration-s) var(--ease), translate var(--duration-s) var(--ease);
  }

  @starting-style {
    .site-menu.is-open { opacity: 0; translate: 0 -0.5rem; }
  }
}

/* No JavaScript: the menu can't open, so it is shown. */
@media (scripting: none) and (max-width: 63.99em) {
  .site-header { position: static; }

  .site-header__toggle { display: none; }

  .site-menu {
    position: static;
    display: flex;
    flex-basis: 100%;
    max-height: none;
    overflow: visible;
    padding-inline: 0;
    border: 0;
    box-shadow: none;
  }
}

/* 7. Footer */
.site-footer {
  padding-block: var(--space-8) var(--space-6);
  border-top: 1px solid var(--hairline);
  font-size: var(--text-small);
  line-height: 1.5;
}

.site-footer__grid { row-gap: var(--space-7); }

.site-footer__brand .wordmark { min-height: 0; }

.site-footer__tagline {
  max-width: 22rem;
  margin-top: var(--space-3);
  color: var(--ink-muted);
}

.site-footer__col .eyebrow { margin-bottom: var(--space-2); }

.site-footer__links a,
.site-footer__base a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  color: inherit;
  text-underline-offset: 0.3em;
}

.site-footer__links a { text-decoration: none; }

.site-footer__links a:hover,
.lang-list [aria-current='page'] {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--link);
}

.site-footer__base a:hover { text-decoration-color: var(--link); }

/* Legal, Contact: stacked under 24em; 7–9 and 10–12 from 64em, as on the legacy pages. */
.site-footer__col--legal,
.site-footer__col--contact { grid-column: span 6; }

@media (max-width: 23.99em) {
  .site-footer__col--legal,
  .site-footer__col--contact { grid-column: 1 / -1; }
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-8);
  padding-top: var(--space-4);
  border-top: 1px solid var(--hairline);
  color: var(--ink-muted);
}

@media (min-width: 40em) {
  .site-footer__col--legal,
  .site-footer__col--contact,
  .site-footer__col--lang { grid-column: span 4; }
}

@media (min-width: 64em) {
  .site-footer__brand { grid-column: 1 / span 5; }
  .site-footer__col--legal { grid-column: 7 / span 3; }
  .site-footer__col--contact,
  .site-footer__col--lang { grid-column: 10 / span 3; }
}

/* 8. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 3rem;
  padding: 0.6875rem 1.375rem;
  border: 1px solid transparent; /* visible in forced-colors mode */
  border-radius: var(--radius-md);
  font-size: var(--text-label);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.005em;
  text-align: center;
  text-decoration: none;
  text-wrap: balance;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--duration-xs) var(--ease),
    border-color var(--duration-xs) var(--ease),
    color var(--duration-xs) var(--ease);
}

.btn:active { translate: 0 1px; }

.btn--primary { background: var(--action); color: var(--on-action); }

.btn--primary:hover { background: var(--action-hover); }

.btn--primary:active { background: var(--action-pressed); }

.btn--outline {
  border-color: var(--link);
  background: transparent;
  color: var(--link);
}

.btn--outline:hover { background: var(--link-tint); }

.btn--text {
  padding-inline: var(--space-1); /* the focus ring clears the text */
  margin-inline: calc(-1 * var(--space-1));
  border-radius: var(--radius-xs);
  background: none;
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

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

.btn:disabled,
.btn[aria-disabled='true'] { opacity: 0.38; pointer-events: none; }

/* 9. Fields */
.field { display: grid; gap: var(--space-2); }

.field__label {
  color: var(--ink-text);
  font-size: var(--text-small);
  font-weight: 500;
  line-height: 1.4;
}

.field__optional { color: var(--ink-muted); font-weight: 400; }

.field__input {
  width: 100%;
  min-height: 3.5rem;
  padding: 0.8125rem 1rem;
  border: 1px solid var(--ink-muted);
  border-radius: var(--radius-sm);
  background: var(--paper-brightest);
  color: var(--ink-text);
  line-height: 1.4;
  transition: border-color var(--duration-xs) var(--ease);
}

.field__input::placeholder { color: var(--ink-muted); opacity: 1; }

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

.field__input:focus-visible { border-color: var(--focus); }

.field__input[aria-invalid='true'] { border-color: var(--madder); }

textarea.field__input { min-height: 8rem; resize: vertical; }

select.field__input {
  appearance: none;
  padding-inline-end: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23221E19' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 1rem center;
  background-repeat: no-repeat;
}

.field__hint,
.field__error { font-size: 0.875rem; line-height: 1.45; }

.field__hint { color: var(--ink-muted); }

.field__error { color: var(--madder); font-weight: 500; }

/* 10. Eyebrow, register rule, tag, card */
/* Led by the 24×1px register rule, in the mark's blue. */
.eyebrow {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--ink-muted);
  font-size: var(--text-eyebrow);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  flex: none;
  width: 24px;
  height: 1px;
  margin-top: calc(0.7em - 0.5px);
  background: var(--accent);
}

.eyebrow--plain::before { content: none; }

/* The register rule alone: <span class="rule" aria-hidden="true"> */
.rule {
  display: block;
  width: 24px;
  height: 1px;
  border: 0;
  background: var(--accent);
}

/* A near-square hairline label ("Beta", "Next"). Never a pill. */
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.25rem;
  padding: 0 0.375rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xs);
  color: var(--ink-muted);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* A paper card. Use sparingly: never a grid of identical boxes. */
.card {
  padding: var(--space-5);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--paper-brightest);
  box-shadow: var(--shadow);
}

/* 11. Language switch */
/* EN / PT links; also aria-pressed buttons (the legacy pages). */
.lang-switch { display: flex; align-items: center; }

.lang-switch li { display: flex; align-items: center; }

.lang-switch li + li::before {
  content: '';
  width: 1px;
  height: 0.875rem;
  background: var(--hairline);
}

.lang-switch :is(a, button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 3rem;
  padding: 0 var(--space-2);
  border: 0;
  background: none;
  color: var(--ink-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-underline-offset: 0.45em;
}

.lang-switch :is(a, button):hover {
  color: var(--ink-text);
}

.lang-switch :is([aria-current='page'], [aria-pressed='true']) {
  color: var(--ink-text);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--link);
}

/* Every target is at least 48px on a touch screen. */
@media (any-pointer: coarse) {
  .lang-switch :is(a, button) { min-width: 3rem; }
  .site-footer__links a,
  .site-footer__base a { min-height: 3rem; }

  /* The footer wordmark grows to 48px, pulled up to stay level. */
  .site-footer__brand .wordmark { min-height: 3rem; margin-top: calc((2rem - 3rem) / 2); } /* 2rem: the tile's height, the lockup's tallest item */
}

/* 12. Phone */
/* A device that scales with its width; its pseudo-elements are taken (README). */
.phone {
  --phone-chrome: var(--ink); /* status bar and home indicator; .phone--on-dark flips it */
  container-type: inline-size;
  contain-intrinsic-inline-size: var(--phone-max, 21.5rem);
  position: relative;
  display: grid;
  inline-size: 100%;
  max-inline-size: var(--phone-max, 21.5rem);
  /* elliptical: the body is 2.1× as tall as wide */
  border-radius: 13.7% / 6.52%;
  background: var(--ink);
  box-shadow: inset 0 0 0 1px var(--phone-band), var(--shadow), var(--shadow-device);
}

.phone::before,
.phone::after {
  content: '';
  position: absolute;
  width: 1.1%;
  border-radius: 2px;
  background: var(--phone-band);
}

.phone::before {
  top: 21%;
  left: -0.7%;
  height: 11%;
}

.phone::after {
  top: 27%;
  right: -0.7%;
  height: 7.5%;
}

.phone__screen {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 2.9cqi;
  aspect-ratio: 393 / 852;
  border-radius: 10.8cqi;
  background: var(--porcelain);
  color: var(--phone-chrome);
}

.phone__screen::after {
  content: '';
  position: absolute;
  z-index: 3;
  top: calc(27 / 852 * 100%);
  left: 50%;
  width: 3.4%;
  aspect-ratio: 1;
  border-radius: 50%;
  translate: -50% -50%;
  background: var(--ink);
  box-shadow: inset 0 0 0 1px var(--phone-band);
}

.phone__screen > img,
.phone__screen > picture,
.phone__screen > picture > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.phone__screen img { object-fit: cover; object-position: top; }

.phone__status {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(54 / 852 * 100%);
  padding-inline: 9cqi 7.5cqi;
  font-size: 4.1cqi;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: proportional-nums lining-nums; /* a status-bar clock, not a ledger */
  pointer-events: none;
  user-select: none;
}

.phone__icons {
  display: flex;
  align-items: center;
  gap: 1.3cqi;
}

.phone__signal { width: 4.5cqi; height: 3cqi; }

.phone__wifi { width: 4cqi; height: 3cqi; }

.phone__battery { width: 6.5cqi; height: 3.13cqi; }

.phone__indicator {
  position: absolute;
  z-index: 2;
  bottom: calc(8 / 852 * 100%);
  left: 50%;
  width: 34%;
  aspect-ratio: 134 / 5;
  border-radius: 2px;
  translate: -50% 0;
  background: currentColor;
  pointer-events: none;
}

.phone--on-dark { --phone-chrome: var(--paper-brightest); }

/* No container units (iOS 15): bezel and corners in %, no status bar. */
@supports not (width: 1cqi) {
  .phone__screen { margin: 2.9%; border-radius: 11.46% / 5.29%; }

  .phone__status { display: none; }
}

/* 13. Shot */
.shot {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* an auto track would grow to the phone's 21.5rem */
  align-content: start;
  gap: var(--space-4);
  width: 100%;
  max-width: var(--phone-max, 21.5rem);
  margin: 0;
}

.shot__caption {
  color: var(--ink-muted);
  font-size: var(--text-small);
  line-height: 1.45;
}

.shot__caption strong {
  display: block;
  color: var(--ink-text);
  font-weight: 500;
}

/* 14. Utilities */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: var(--space-3);
  left: var(--side);
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--action);
  color: var(--on-action);
  font-weight: 500;
  text-decoration: none;
  translate: 0 calc(-100% - var(--space-6));
}

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

/* 15. Text large for the screen (em follows text size; README): no pinned header or cut words */
@media (max-width: 19.4em) {
  html { scroll-padding-top: var(--space-4); }

  .site-header { position: relative; }

  h2 { font-size: min(var(--text-h2), 12vw); }

  .shot__caption { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 8 3 3; }
}

/* 16. Reduced motion: no animation or transition */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}
