/* pawaPass website. Colours follow docs.pawapass.com, the text face is pawaPay's (Instrument Sans, self-hosted).
   The site is dark; a legal page shown inside the webapp's iframe switches to light (see boot.js). */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-latin-ext.21fac8da55.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-latin.6219bc4bfd.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Tokens ----------------------------------------------------------------------------------- */
/* Neutral greys, the zinc scale the pawaPass backoffice uses (docs.pawapass.com sets the same), so the logo's yellow
   and orange are the only warm colours on the page. */
:root {
  --bg: #ffffff;
  --text: #09090b;
  --body: #3f3f46;
  --muted: #71717a;
  --faint: #71717a;
  --focus: #a96410;
  --border: rgba(24, 24, 27, 0.1);
  --primary: #e8a230;
  --primary-text: #a96410;
  --on-primary: #1a1206;
  --glow: rgba(113, 113, 122, 0.22);
  /* The navbar's bottom line: fainter than other lines in light, as on docs.pawapass.com. */
  --nav-line: rgba(113, 113, 122, 0.05);
  --green: #027a4e;
  --warn: #b83c1a;
  --field: #f4f4f5;
  /* Field outlines at 3:1 against the field and the page (WCAG 1.4.11). */
  --field-line: #84848c;
  --hl-a: #c97a12;
  --hl-b: #d9502a;
  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --nav-h: 64px;
  /* What the sticky navbar covers: its own height plus the notch area above it on a phone. */
  --nav-cover: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #09090b; --text: #fafafa; --body: #d4d4d8; --muted: #a1a1aa; --faint: #8b8b93; --focus: #f0b840;
    --border: rgba(250, 250, 250, 0.1); --nav-line: rgba(212, 212, 216, 0.06); --primary: #f0b840; --primary-text: #f0b840;
    --glow: rgba(250, 250, 250, 0.09); --green: #2fc487; --warn: #f07a55; --field: #18181b; --field-line: #71717a;
    --hl-a: #f3c55a; --hl-b: #ee673a;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #09090b; --text: #fafafa; --body: #d4d4d8; --muted: #a1a1aa; --faint: #8b8b93; --focus: #f0b840;
  --border: rgba(250, 250, 250, 0.1); --nav-line: rgba(212, 212, 216, 0.06); --primary: #f0b840; --primary-text: #f0b840;
  --glow: rgba(250, 250, 250, 0.09); --green: #2fc487; --warn: #f07a55; --field: #18181b; --field-line: #71717a;
  --hl-a: #f3c55a; --hl-b: #ee673a;
}
/* Below 1024px the navbar is solid and cuts the glow at its strongest, right under its line, so on light the glow is
   much weaker there (7%, from 22%). docs.pawapass.com sets the same (theme.css). Dark keeps its own, set above. */
@media (max-width: 1023px) {
  :root { --glow: rgba(113, 113, 122, 0.07); }
}

/* ---- Base ------------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
/* A plain background on html keeps the glow on body alone. Otherwise it spreads to the whole canvas, and iOS
   shows it in the notch area and when the page is pulled down to refresh. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); -webkit-tap-highlight-color: transparent; }
/* On touch screens the browser's grey tap rectangle is off (above), as it covers the whole box of a link or button
   and shows its square corners; a tap dims what was tapped instead. */
@media (hover: none) { a:active, button:active { opacity: 0.6; } }
/* No bounce or pull to refresh at the ends of the page, as on docs.pawapass.com. Brave on iOS otherwise leaves the
   page offset under the navbar after a refresh. Not inside the webapp's iframe, where it would keep a swipe over
   the legal text from scrolling the webapp's own page. */
html:not(.framed) { overscroll-behavior-y: none; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  /* A grey glow at the top, in the shape of the one on docs.pawapass.com (theme.css there sets the same colours). */
  background-image: radial-gradient(49.63% 57.02% at 58.99% -7.2%, var(--glow) 39.4%, transparent 100%);
  background-size: 100% 1024px;
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
/* Selected text in the brand yellow, see-through so the letters stay readable where the rows overlap. Without this
   the browser uses the system colour, which also turned the gradient words black and tinted the images. theme.css on
   docs.pawapass.com sets the same colour. */
::selection { background: color-mix(in srgb, var(--primary) 32%, transparent); color: var(--text); }
img::selection { background: transparent; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
/* A section that an in-page link moves focus to (site.js) shows no ring: the scroll already shows where it went, and a
   ring around a whole section sits right against its text. */
[tabindex="-1"]:focus { outline: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 20; padding: 8px 14px; border-radius: 8px; background: var(--primary); color: var(--on-primary); font-weight: 600; }
.skip:focus { top: 12px; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---- Navbar and footer ------------------------------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  padding-top: env(safe-area-inset-top, 0px);
  /* Clear at the top of the page, so the glow shows through. As the page scrolls, site.js raises --nav-fill from 0
     to 1 over the first 160px, and the navbar thickens into a frosted bar: 85% background and a blur, so what
     scrolls under it shows faintly without getting in the way. Without JavaScript it is frosted from the start. */
  --nav-fill: 1;
  background: color-mix(in srgb, var(--bg) calc(var(--nav-fill) * 85%), transparent);
  backdrop-filter: blur(calc(var(--nav-fill) * 12px));
  -webkit-backdrop-filter: blur(calc(var(--nav-fill) * 12px));
}
/* Below 1024px it is solid in the page colour from the start, as the docs site's navbar is there. iOS paints the
   status bar above it in one flat colour (theme-color, the same), so a clear navbar with the glow under it showed
   as a grey band under a white one. The glow starts below the navbar. */
@media (max-width: 1023px) {
  .nav { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
/* The line under the navbar is as wide as the content, like the footer's line above it. */
.nav .wrap { height: var(--nav-h); border-bottom: 1px solid var(--nav-line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
/* Below 1024px, where docs.pawapass.com drops its sidebar, the logo sits where it sits there: 16px from the edge and in
   a 64px row, so it does not jump when moving between the two sites. The navbar's line follows it. */
@media (max-width: 1023px) {
  .nav .wrap { padding-inline: 0; margin-left: max(16px, env(safe-area-inset-left, 0px)); margin-right: max(16px, env(safe-area-inset-right, 0px)); }
}
/* Same height as the docs navbar logo, so the two sites line up when you move between them. */
.nav .logo img { height: 28px; width: auto; display: block; }
.nav-link {
  display: inline-flex; align-items: center; height: 34px; padding-inline: 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; color: var(--muted); box-shadow: inset 0 0 0 1px var(--border);
  transition: color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
/* Hover effects only where there is a pointer: on a phone a tapped link would otherwise stay highlighted. */
@media (hover: hover) { .nav-link:hover { color: var(--text); background: color-mix(in srgb, var(--text) 5%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 18%, transparent); } }

/* The footer's bottom padding, and the height of its last line (the theme switch's). */
:root { --foot-bottom: max(40px, calc(env(safe-area-inset-bottom, 0px) + 24px)); --foot-row: 28px; }
.foot .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px;
  padding-block: 28px var(--foot-bottom);
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--faint);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-meta { display: flex; align-items: center; gap: 16px; min-height: var(--foot-row); }
/* The theme switch: two small buttons in a pill, the current theme filled. site.js shows it; without JavaScript the
   page follows the system's setting and there is nothing to switch. */
.theme-switch { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--border); }
.theme-switch[hidden] { display: none; }
.theme-switch button {
  display: grid; place-items: center; width: 30px; height: 24px; padding: 0; border: 0; border-radius: 999px;
  background: transparent; color: var(--faint); cursor: pointer; transition: color 160ms ease, background-color 160ms ease;
}
.theme-switch button[aria-pressed="true"] { color: var(--text); background: color-mix(in srgb, var(--text) 9%, transparent); }
@media (hover: hover) { .theme-switch button:hover { color: var(--text); } }
.theme-switch svg { width: 14px; height: 14px; }
.foot a { transition: color 160ms ease; }
.foot a[aria-current="page"] { color: var(--text); }
@media (hover: hover) { .foot a:hover { color: var(--text); } }

/* ---- Buttons and links ------------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding-inline: 20px;
  border: 0; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap;
  cursor: pointer; background: var(--primary); color: var(--on-primary); user-select: none;
  transition: background-color 160ms ease;
}
@media (hover: hover) { .btn:hover { background: color-mix(in srgb, var(--primary) 88%, var(--text)); } }
.btn svg { width: 14px; height: 14px; transition: transform 160ms ease; }
@media (hover: hover) { .btn:hover svg { transform: translateX(2px); } }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.text-link {
  font-size: 14.5px; font-weight: 500; color: var(--muted);
  text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 4px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}
/* The hero's secondary link gets a 44px tap target without changing how it looks. */
.actions .text-link { display: inline-flex; align-items: center; min-height: 44px; }
@media (hover: hover) { .text-link:hover { color: var(--text); text-decoration-color: currentColor; } }

/* ---- Landing: hero ---------------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  align-items: center;
  gap: 64px;
  padding-block: clamp(40px, 4vw, 56px) clamp(32px, 4vw, 56px);
}
.copy { display: grid; gap: 24px; min-width: 0; }
.hero h1 {
  font-weight: 600;
  font-size: clamp(40px, 5.4vw + 8px, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--hl-a) 0%, var(--hl-b) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* The gradient is painted only inside the text's box, and the negative letter-spacing ends that box before the right
   edge of the last letter, which cut off the end of the "s". The padding widens the painted box and the negative
   margin keeps the layout as it was. */
.hero h1 em, .missing h1 em { padding-right: 0.08em; margin-right: -0.08em; }
/* Selected, the gradient words keep their gradient under the yellow (the browser would paint them in one flat colour). */
.hero h1 em::selection, .missing h1 em::selection, .missing-num::selection { color: transparent; }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 46ch; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding-top: 4px; }
.shot { margin: 0; min-width: 0; justify-self: end; width: 100%; max-width: 480px; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 1; }

/* For people sent here from a verification: a small pill above the headline (a strip under the navbar on phones),
   pointing to the help section. */
.aside {
  justify-self: start; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 8px; min-height: 32px; padding: 4px 14px;
  border-radius: 16px; font-size: 13.5px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--border);
  transition: color 160ms ease, box-shadow 160ms ease;
}
/* Each half stays on one line; on the narrowest screens the second half moves under the first. */
.aside > span, .aside > b { white-space: nowrap; }
.aside > b { color: var(--text); font-weight: 500; }
@media (hover: hover) { .aside:hover { color: var(--text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 18%, transparent); } }
.nav-aside { display: none; }

/* ---- Landing: what it is for ------------------------------------------------------------------ */
/* Its top and bottom lines reach the page's side gutter, as the navbar's and footer's lines do; the columns stay in
   line with the rest of the page. */
.reasons {
  --gutter-l: max(20px, env(safe-area-inset-left, 0px)); --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  list-style: none; margin: 0 calc(-1 * var(--gutter-r)) 0 calc(-1 * var(--gutter-l)); padding: 0 var(--gutter-r) 0 var(--gutter-l);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.reasons li { display: grid; align-content: start; gap: 8px; padding: 28px 28px 32px 0; min-width: 0; }
.reasons li + li { padding-left: 28px; border-left: 1px solid var(--border); }
.reasons h2 { font-size: 15px; font-weight: 600; letter-spacing: -0.005em; }
.reasons p { font-size: 14px; color: var(--muted); line-height: 1.6; text-wrap: pretty; }

/* ---- Landing: help for people being verified ------------------------------------------------- */
.verifying {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); justify-content: space-between;
  gap: 48px; padding-block: 64px 0; scroll-margin-top: var(--nav-cover);
}
.verifying-copy { display: grid; align-content: start; gap: 10px; min-width: 0; }
.verifying h2 { font-weight: 600; font-size: 26px; line-height: 1.2; letter-spacing: -0.025em; text-wrap: balance; }
.verifying-copy p { font-size: 15px; color: var(--muted); max-width: 44ch; text-wrap: balance; }
.help { list-style: none; margin: 0; padding: 0; display: grid; min-width: 0; }
.help li { display: grid; gap: 6px; padding-block: 18px; border-top: 1px solid var(--border); }
.help li:first-child { padding-top: 4px; border-top: 0; }
.help h3 { font-size: 15px; font-weight: 600; }
.help p { font-size: 15px; color: var(--muted); line-height: 1.6; text-wrap: pretty; }
/* A link inside a sentence keeps the sentence's colour and the hero's "Talk to us" underline, so it does not outshine
   the form's button below; the underline brightens on hover. */
.help a { text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 4px; transition: color 160ms ease, text-decoration-color 160ms ease; }
@media (hover: hover) { .help a:hover { color: var(--text); text-decoration-color: currentColor; } }

/* ---- Landing: contact ------------------------------------------------------------------------- */
.contact {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); justify-content: space-between;
  gap: 48px; padding-block: 64px 72px; scroll-margin-top: var(--nav-cover);
}
.contact-copy { display: grid; align-content: start; gap: 10px; min-width: 0; }
.contact h2 { font-weight: 600; font-size: 26px; line-height: 1.2; letter-spacing: -0.025em; text-wrap: balance; }
.contact-copy > p { font-size: 15px; color: var(--muted); max-width: 44ch; text-wrap: pretty; }
.form { display: grid; gap: 12px; min-width: 0; }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); min-width: 0; }
.form input, .form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--field); border: 1px solid var(--field-line); border-radius: 10px; padding: 9px 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.form textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
.form [aria-invalid="true"] { border-color: var(--warn); }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .send { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 4px; }
.form .btn { height: 40px; padding-inline: 20px; font-size: 14px; }
.fine { font-size: 13px; color: var(--faint); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; transition: color 160ms ease; }
@media (hover: hover) { .fine:hover { color: var(--text); } }
.turnstile:empty { display: none; }
.nojs { font-size: 14px; color: var(--muted); padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--text) 5%, transparent); }
.status { font-size: 14px; color: var(--muted); min-height: 1.4em; }
.status.ok { color: var(--green); }
.status.err { color: var(--warn); }

/* ---- Legal pages ------------------------------------------------------------------------------ */
.legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 72px; padding-block: 56px 96px; }
.rail {
  position: sticky; top: calc(var(--nav-cover) + 32px); align-self: start;
  max-height: calc(100vh - var(--nav-cover) - 64px); overflow-y: auto; display: grid; gap: 4px; font-size: 13.5px;
}
.rail .label { font-size: 12px; font-weight: 600; color: var(--faint); letter-spacing: 0.04em; text-transform: uppercase; padding: 0 0 8px; }
.rail > a { padding: 5px 0; color: var(--muted); font-weight: 500; }
.rail > a[aria-current="page"] { color: var(--text); }
@media (hover: hover) { .rail > a:hover { color: var(--text); } }
.rail ol { list-style: none; margin: 2px 0 10px; padding: 0 0 0 12px; display: grid; gap: 2px; border-left: 1px solid var(--border); }
.rail ol a { display: block; padding: 4px 0 4px 10px; margin-left: -13px; border-left: 1px solid transparent; color: var(--faint); line-height: 1.4; }
@media (hover: hover) { .rail ol a:hover { color: var(--text); } }
.rail ol a.active { color: var(--primary-text); border-left-color: var(--primary); }

.doc-tabs, .toc { display: none; }
article { min-width: 0; max-width: 70ch; }
.doc-head { display: grid; gap: 12px; padding-bottom: 8px; }
.doc-head h1 { font-weight: 600; font-size: clamp(32px, 2.6vw + 18px, 44px); line-height: 1.1; letter-spacing: -0.035em; text-wrap: balance; }
.versions { font-size: 13.5px; color: var(--faint); }
.versions a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
/* Only a hairline edge, so the glow shows through: a grey tint over it looked dirty, a white fill like a hole. */
.policy-intro { margin-top: 24px; padding: 16px 18px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--border); }
.policy-intro p { color: var(--body); font-size: 15px; line-height: 1.7; margin: 0 0 12px; text-wrap: pretty; }
/* The date in "last updated January 2026" stays on one line. */
.policy-intro strong { white-space: nowrap; }
.policy-intro p:last-child { margin-bottom: 0; }
.policy-intro.archived { background: color-mix(in srgb, var(--primary) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 28%, transparent); }

/* The legal text is reproduced exactly as published, including its capitalisation; only the styling is ours. */
.legal-body { margin-top: 28px; }
.legal-body .tagline { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 20px; }
.legal-body h2 {
  display: flex; gap: 14px; align-items: baseline; font-size: 15px; font-weight: 600; letter-spacing: 0.04em; line-height: 1.4;
  margin: 44px 0 16px; padding-top: 28px; border-top: 1px solid var(--border); scroll-margin-top: calc(var(--nav-cover) + 20px);
}
.legal-body h3 { display: flex; gap: 12px; align-items: baseline; font-size: 15px; font-weight: 600; margin: 28px 0 10px; scroll-margin-top: calc(var(--nav-cover) + 20px); }
.num { font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--faint); min-width: 2.6em; flex: none; letter-spacing: 0; }
.legal-body p { color: var(--body); font-size: 15.5px; line-height: 1.75; margin: 0 0 16px; }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; color: var(--body); font-size: 15.5px; line-height: 1.7; }
.legal-body li { position: relative; padding-left: 22px; }
.legal-body li::before { content: ""; position: absolute; left: 3px; top: 0.75em; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }
/* A section linked to while it is already on screen (nothing scrolls) blinks, so the click visibly lands. */
@keyframes landed { from { color: var(--primary-text); } }
.landed { animation: landed 1.4s ease-out; }
.landed .num { animation: inherit; }

.legal-body a, .policy-intro a { color: var(--primary-text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--primary) 45%, transparent); text-underline-offset: 3px; overflow-wrap: anywhere; }

/* ---- 404 -------------------------------------------------------------------------------------- */
/* Laid out exactly like the landing page's hero, so the headline sits at the same height: the message on the left, and
   where the hero has its image, a large 404 in the headline's highlight gradient, dimmed and fading downwards. On narrow
   screens the number goes under the copy, centred, as the hero image does. */
.missing {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: center; gap: 64px;
  padding-block: clamp(40px, 4vw, 56px) clamp(32px, 4vw, 56px);
}
/* The page is short: the footer stays at the bottom of the window. On phones 100vh is the height with the browser's
   toolbars hidden, which pushes the footer below the screen; 100svh is the height that is always visible. */
body:has(main.missing) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
body:has(main.missing) main { flex: 1; width: 100%; align-content: start; }
.missing-copy { display: grid; justify-items: start; gap: 24px; min-width: 0; }
.missing h1 { font-weight: 600; font-size: clamp(36px, 3.6vw + 8px, 56px); line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
.missing h1 em, .missing-num {
  font-style: normal;
  background: linear-gradient(100deg, var(--hl-a) 0%, var(--hl-b) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* The same box as the hero image: square, up to 480px, at the right edge. */
.missing-art { display: grid; place-items: center; width: 100%; max-width: 480px; aspect-ratio: 1; justify-self: end; min-width: 0; user-select: none; }
/* A little stronger at the foot on light, where a pale orange washes out against white. */
.missing-num {
  display: block;
  font-size: clamp(150px, 14vw + 40px, 260px); font-weight: 600; line-height: 0.9; letter-spacing: -0.065em;
  font-variant-numeric: tabular-nums;
  /* The negative letter spacing also follows the last digit, so the box ends before the right edge of the last 4, and
     the gradient (clipped to the text's box) and the fade (a mask on the box) cut it off. The padding gives that
     space back. */
  padding-right: 0.065em;
  --fade: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.35) 70%, rgba(0, 0, 0, 0.12) 100%);
  -webkit-mask-image: var(--fade); mask-image: var(--fade);
}
:root[data-theme="dark"] .missing-num { --fade: linear-gradient(to bottom, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.42) 70%, rgba(0, 0, 0, 0.08) 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .missing-num { --fade: linear-gradient(to bottom, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.42) 70%, rgba(0, 0, 0, 0.08) 100%); } }

/* ---- Narrow screens --------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-block: 40px 28px; }
  .shot { justify-self: center; max-width: 460px; }
  .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reasons li:nth-child(3) { padding-left: 0; border-left: 0; }
  .reasons li:nth-child(n+3) { border-top: 1px solid var(--border); }
  .verifying { grid-template-columns: 1fr; gap: 20px; padding-top: 48px; }
  .missing { grid-template-columns: 1fr; gap: 32px; padding-block: 40px 28px; }
  .missing-art { justify-self: center; max-width: 460px; aspect-ratio: auto; padding-block: 8px 24px; }
  .missing-num { font-size: clamp(140px, 40vw, 240px); }
  .missing .lead { text-wrap: balance; }
  .contact { grid-template-columns: 1fr; gap: 32px; padding-block: 48px 56px; }
  .legal { grid-template-columns: 1fr; gap: 0; padding-block: 24px 72px; }
  .rail { display: none; }
  .doc-tabs { display: flex; gap: 4px; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--border); overflow-x: auto; }
  .doc-tabs a { padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; }
  .doc-tabs a[aria-current="page"] { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); }
  /* The rail's section list, folded at the top of the document. */
  .toc { display: block; margin-top: 20px; border: 1px solid var(--border); border-radius: 12px; font-size: 14px; }
  .toc summary {
    display: flex; justify-content: space-between; align-items: center; padding: 12px 16px;
    font-weight: 600; color: var(--text); cursor: pointer; list-style: none;
  }
  .toc summary::-webkit-details-marker { display: none; }
  .toc summary::after {
    content: ""; width: 7px; height: 7px; margin: -4px 2px 0 0; transform: rotate(45deg);
    border-right: 1.5px solid var(--faint); border-bottom: 1.5px solid var(--faint); transition: transform 160ms ease;
  }
  .toc[open] summary::after { margin-top: 3px; transform: rotate(-135deg); }
  .toc ol { list-style: none; margin: 0; padding: 0 16px 10px; display: grid; }
  .toc a { display: block; padding: 7px 0; color: var(--muted); line-height: 1.4; }
  .toc li + li a { border-top: 1px solid var(--border); }
  .legal-body h2 { margin-top: 36px; padding-top: 24px; }
  .legal-body p, .legal-body ul { font-size: 15px; }
}
@media (max-width: 560px) {
  /* Hero on a phone: the verification pill moves into the navbar (below), and the spacing tightens, so the buttons and
     nearly the whole product image fit on the first screen. */
  .hero { gap: 20px; padding-top: 14px; }
  .copy { gap: 18px; }
  .hero h1 { font-size: 42px; }
  .lead { font-size: 16px; line-height: 1.55; }
  .actions { padding-top: 0; }
  .shot { max-width: 84%; }
  .reasons { grid-template-columns: 1fr; }
  .reasons li, .reasons li + li { padding: 20px 0 22px; border-left: 0; }
  .reasons li + li { border-top: 1px solid var(--border); }
  .form .row { grid-template-columns: 1fr; }
  /* The pill becomes a second row of the navbar, as the breadcrumb row is on docs.pawapass.com: clear over the glow at
     the top, frosted with the navbar once the page scrolls, and always in reach. */
  .copy > .aside { display: none; }
  .nav-aside {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 8px; min-height: 44px;
    padding: 4px max(20px, env(safe-area-inset-right, 0px)) 4px max(20px, env(safe-area-inset-left, 0px));
    font-size: 13.5px; color: var(--muted); border-bottom: 1px solid var(--nav-line); transition: color 160ms ease;
  }
  .nav-aside > span, .nav-aside > b { white-space: nowrap; }
  .nav-aside > b { color: var(--text); font-weight: 500; }
  @media (hover: hover) { .nav-aside:hover { color: var(--text); } }
  :root:has(.nav-aside) { --nav-cover: calc(var(--nav-h) + 45px + env(safe-area-inset-top, 0px)); }
  /* 404 on a phone: one centred block, set a little high in the space between the navbar and the footer. The number is
     the picture and the headline its caption, close under it, then the button. The lead only repeats the headline. */
  body:has(main.missing) main { align-content: center; }
  .missing { gap: 8px; padding-block: 24px 64px; justify-items: center; text-align: center; }
  .missing-copy { gap: 20px; justify-items: center; }
  /* One line, a caption under the number: about 250px wide, so it fits from 320px screens up. Without nowrap it broke
     into two lines on an iPhone, though not in Chrome. */
  .missing h1 { font-size: 24px; letter-spacing: -0.02em; white-space: nowrap; }
  .missing .lead { display: none; }
  .missing .actions { justify-content: center; }
  .missing-art { order: -1; justify-self: center; justify-items: center; padding-block: 0; }
  .missing-num { font-size: clamp(120px, 40vw, 180px); }
  /* Footer: legal links on the first line, the copyright under them. */
  .foot .wrap { display: grid; }
  /* 44px tap targets for the footer links without spreading the footer out. */
  .foot nav { order: -1; gap: 0 20px; }
  .foot nav a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (min-width: 561px) { .lead span, .help p span { display: block; } }

/* ---- Inside the webapp or backoffice iframe --------------------------------------------------- */
/* The verification flow shows the legal pages in a small frame: no site chrome, tight spacing. */
.framed body { background-image: none; font-size: 14px; }
.framed .nav, .framed .foot, .framed .rail, .framed .skip { display: none; }
.framed .wrap { padding-left: 16px; padding-right: 16px; }
.framed .legal { grid-template-columns: 1fr; gap: 0; padding-block: 16px 32px; }
.framed .doc-tabs { display: flex; gap: 4px; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.framed .doc-tabs a { padding: 5px 11px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.framed .doc-tabs a[aria-current="page"] { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); }
.framed .doc-head h1 { font-size: 26px; }
.framed .legal-body p, .framed .legal-body ul, .framed .policy-intro p { font-size: 14.5px; line-height: 1.65; }
.framed .legal-body h2 { margin-top: 28px; padding-top: 20px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
