/* 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 ----------------------------------------------------------------------------------- */
/* Warm neutrals, as on docs.pawapass.com: the dark background is the docs' own (#0e0d0c), the greys take the tint of
   its gray scale at the brightness this site needs for contrast, and the dark border matches the docs' lines. */
:root {
  --bg: #ffffff;
  --text: #161410;
  --body: #373531;
  --muted: #676561;
  --faint: #6f6d69;
  --focus: #a96410;
  --border: rgba(29, 27, 24, 0.1);
  --primary: #e8a230;
  --primary-text: #a96410;
  --on-primary: #1a1206;
  --glow: rgba(232, 162, 48, 0.1);
  /* The navbar's bottom line: fainter than other lines in light, as on docs.pawapass.com. */
  --nav-line: rgba(29, 27, 24, 0.06);
  /* The navbar where it is solid (phones): on light, white with a little of the glow in it, so the navbar, the notch
     above it (iOS paints it in the navbar's colour) and the glow below read as one warm block. boot.js and site.js
     use the same colour for theme-color. */
  --nav-solid: #fdf9f2;
  --green: #027a4e;
  --warn: #b83c1a;
  --field: #f6f5f2;
  /* Field outlines at 3:1 against the field and the page (WCAG 1.4.11). */
  --field-line: #8a8783;
  --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: #0e0d0c; --text: #f2f0ec; --body: #cccac6; --muted: #a5a39f; --faint: #8f8d89; --focus: #f0b840;
    --border: rgba(240, 230, 214, 0.13); --nav-line: rgba(240, 230, 214, 0.13); --nav-solid: #0e0d0c; --primary: #f0b840; --primary-text: #f0b840;
    --glow: rgba(240, 184, 64, 0.1); --green: #2fc487; --warn: #f07a55; --field: #181613; --field-line: #676460;
    --hl-a: #f3c55a; --hl-b: #ee673a;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e0d0c; --text: #f2f0ec; --body: #cccac6; --muted: #a5a39f; --faint: #8f8d89; --focus: #f0b840;
  --border: rgba(240, 230, 214, 0.13); --nav-line: rgba(240, 230, 214, 0.13); --nav-solid: #0e0d0c; --primary: #f0b840; --primary-text: #f0b840;
  --glow: rgba(240, 184, 64, 0.1); --green: #2fc487; --warn: #f07a55; --field: #181613; --field-line: #676460;
  --hl-a: #f3c55a; --hl-b: #ee673a;
}

/* ---- 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);
  /* The glow at the top of docs.pawapass.com, with the same shape and strength. */
  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; }
: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));
}
/* On phones and small tablets it is solid from the start, as the docs site's navbar is there. A clear one would not
   match the notch above it: iOS paints the status bar area in one flat colour, the page's, and the glow under a clear
   navbar would start right below that flat band. */
@media (max-width: 900px) {
  .nav {
    background: var(--nav-solid);
    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; }
/* 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. The Back to top button sits as high, so at the end of the page it lines up with the
   footer's last line, whose height --foot-row is 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); } }
/* "Back to top": a round button in the bottom corner, frosted like the navbar, shown once the page has scrolled a
   screen (site.js adds .shown). Hidden it is out of the tab order too; without JavaScript it never shows. */
.to-top {
  position: fixed; z-index: 4;
  right: max(20px, env(safe-area-inset-right, 0px));
  /* Centred on the footer's last line when the page is scrolled to the end. */
  bottom: calc(var(--foot-bottom) + var(--foot-row) / 2 - 22px);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--muted);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 14%, transparent);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 200ms, color 160ms ease;
}
.to-top.shown { opacity: 1; visibility: visible; transform: none; transition: opacity 200ms ease, transform 200ms ease, color 160ms ease; }
.to-top svg { width: 16px; height: 16px; transition: transform 160ms ease; }
.to-top:focus-visible { border-radius: 50%; }
@media (hover: hover) { .to-top:hover { color: var(--text); } .to-top:hover svg { transform: translateY(-2px); } }

/* ---- 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);
  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;
}
.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); } }

/* ---- 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; }
.policy-intro { margin-top: 24px; padding: 16px 18px; border-radius: 12px; background: color-mix(in srgb, var(--text) 4%, transparent); }
.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 -------------------------------------------------------------------------------------- */
.missing { display: grid; gap: 16px; justify-items: start; padding-block: 120px; }
.missing h1 { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
.missing p { color: var(--muted); text-wrap: pretty; }

/* ---- 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; }
  .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) {
  :root { --nav-h: 56px; }
  /* Hero on a phone: the verification pill becomes a full-width strip under the navbar, and the spacing tightens, so
     the buttons and nearly the whole product image fit on the first screen. */
  .hero { gap: 20px; padding-top: 0; }
  .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; }
  .aside {
    justify-self: stretch; justify-content: center; min-height: 44px; margin-bottom: 4px; border-radius: 0;
    margin-left: calc(-1 * max(20px, env(safe-area-inset-left, 0px)));
    margin-right: calc(-1 * max(20px, env(safe-area-inset-right, 0px)));
    box-shadow: none; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--text) 4%, transparent);
  }
  @media (hover: hover) { .aside:hover { box-shadow: none; } }
  /* 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; }
  /* Back to top: centred between the two footer lines at the end of the page, halfway from the last line's centre
     (half of --foot-row) to the links' centre (a whole row, the 12px gap and half the 44px links). */
  .to-top { bottom: calc(var(--foot-bottom) + (var(--foot-row) / 2 + var(--foot-row) + 12px + 22px) / 2 - 22px); }
}
@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 .to-top, .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; }
}
