/* 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 ----------------------------------------------------------------------------------- */
:root {
  --bg: #ffffff;
  --text: #111318;
  --body: #30343c;
  --muted: #5d636e;
  --faint: #6b717b;
  --focus: #a96410;
  --border: rgba(17, 19, 24, 0.1);
  --primary: #e8a230;
  --primary-text: #a96410;
  --on-primary: #1a1206;
  --glow: rgba(232, 162, 48, 0.16);
  --green: #027a4e;
  --warn: #b83c1a;
  --field: #f6f5f2;
  --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;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e1013; --text: #eef0f3; --body: #c4c9d1; --muted: #9aa1ac; --faint: #858c96; --focus: #f0b840;
    --border: rgba(255, 255, 255, 0.09); --primary: #f0b840; --primary-text: #f0b840;
    --glow: rgba(232, 162, 48, 0.13); --green: #2fc487; --warn: #f07a55; --field: #15181c;
    --hl-a: #f3c55a; --hl-b: #ee673a;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1013; --text: #eef0f3; --body: #c4c9d1; --muted: #9aa1ac; --faint: #858c96; --focus: #f0b840;
  --border: rgba(255, 255, 255, 0.09); --primary: #f0b840; --primary-text: #f0b840;
  --glow: rgba(232, 162, 48, 0.13); --green: #2fc487; --warn: #f07a55; --field: #15181c;
  --hl-a: #f3c55a; --hl-b: #ee673a;
}

/* ---- Base ------------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  background-image: radial-gradient(ellipse 70% 480px at 50% -80px, var(--glow), transparent 70%);
  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; }
.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);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav .wrap { height: var(--nav-h); 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;
}
.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); }

.foot .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px;
  padding-block: 28px max(40px, calc(env(safe-area-inset-bottom, 0px) + 24px));
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--faint);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { transition: color 160ms ease; }
.foot a:hover, .foot a[aria-current="page"] { 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);
  transition: background-color 160ms ease;
}
.btn:hover { background: color-mix(in srgb, var(--primary) 88%, var(--text)); }
.btn svg { width: 14px; height: 14px; transition: transform 160ms ease; }
.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;
}
.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(56px, 8vw, 104px) 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; }

/* ---- Landing: what it is for ------------------------------------------------------------------ */
.reasons {
  list-style: none; margin: 0; padding: 0;
  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; }

/* ---- 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-h);
}
.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; }
.contact-copy > p { font-size: 15px; color: var(--muted); max-width: 44ch; text-wrap: pretty; }
/* What happens after the form is a real sequence, so it is numbered. */
.next { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: next; max-width: 38ch; }
.next li { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 12px; counter-increment: next; }
.next li::before {
  content: counter(next); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--primary-text); background: color-mix(in srgb, var(--primary) 12%, transparent);
}
.next b { font-size: 14px; font-weight: 600; line-height: 26px; }
.next span { font-size: 13.5px; color: var(--muted); line-height: 1.5; 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(--border); 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(--primary); 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; }
.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(env(safe-area-inset-top, 0px) + var(--nav-h) + 32px); align-self: start;
  max-height: calc(100vh - var(--nav-h) - 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:hover, .rail > a[aria-current="page"] { 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; }
.rail ol a:hover { color: var(--text); }
.rail ol a.active { color: var(--primary-text); border-left-color: var(--primary); }

.doc-tabs { 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; }
.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; }
.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-h) + 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-h) + 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); }
.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; }
.missing p { color: var(--muted); }

/* ---- 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); }
  .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); }
  .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; }
  .nav .logo img { height: 24px; }
  .hero h1 { font-size: 46px; }
  .lead { font-size: 16.5px; }
  .shot { max-width: 92%; }
  .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; }
}
@media (min-width: 561px) { .lead span { display: block; } }

/* ---- Inside the webapp or backoffice iframe --------------------------------------------------- */
/* The verification flow shows the legal pages in a small light frame: no site chrome, light theme, 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; }
}
