/* Rewaa. Layout: the logo's world, kept quiet. Electric-blue fields, the logo's ink and
   white, the R's 45-degree cut corner, and frosted panes over a plain ground lit softly from
   the top. The logo itself appears once, in the header. See DESIGN.md. */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"), url("fonts/archivo-latin-wdth-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Kufi Arabic"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/noto-kufi-arabic-arabic-wght-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

:root {
  --ground: #f3f6ff;
  --surface: #ffffff;
  --plate: #e5ebff;
  --plate-hi: #f2f5ff;
  --ink: #221f20;
  --ink-2: #4a4f63;
  --brand: #1741f9;
  --brand-hover: #0f2fc4;
  --brand-soft: #dfe6ff;
  --on-brand: #ffffff;
  --link: #1741f9;
  --hover: rgb(23 65 249 / 0.07);
  --glass: rgb(255 255 255 / 0.66);
  --glass-strong: rgb(255 255 255 / 0.86);
  --glass-edge: rgb(255 255 255 / 0.95);
  --menu-bg: #fafbff;
  --rule: rgb(34 31 32 / 0.12);
  /* The edge of something to type in or choose: 3:1 against the pane, as a field needs (WCAG 1.4.11). */
  --field-edge: #7f8794;
  /* The ink field: the logo's warm black on a light page; on the navy page a near-black navy, so it does not read brown. */
  --ink-field: #221f20;
  --shadow: 0 20px 44px -26px rgb(23 65 249 / 0.38);
  --glow: rgb(23 65 249 / 0.12);
  --late: #b02e24;
  --card: #ffffff;
  --card-rule: rgb(34 31 32 / 0.16);
  --card-print: #221f20;
  --sheet: #ffffff;
  --bezel: #1c2033;

  --font: "Archivo", "Segoe UI", system-ui, sans-serif;
  --display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --body: "Archivo", "Segoe UI", system-ui, sans-serif;
  --wide: 118%;

  /* One spacing system for the whole site. */
  --pad: clamp(20px, 2.6vw, 32px);
  --gap: clamp(14px, 1.8vw, 20px);
  --section: clamp(40px, 5vw, 64px);
  --r-big: 30px 16px 16px 16px;
  --r-small: 12px 7px 7px 7px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0b1033; --surface: #141d57; --plate: #111a52; --plate-hi: #1a2570; --ink: #f4f6ff; --ink-2: #b3bcdf;
    --brand-hover: #2b52ff; --brand-soft: #1a2566; --link: #9db0ff; --hover: rgb(157 176 255 / 0.12);
    --glass: rgb(20 30 90 / 0.56); --glass-strong: rgb(20 30 90 / 0.86); --glass-edge: rgb(150 172 255 / 0.2); --menu-bg: #10184a;
    --rule: rgb(180 195 255 / 0.15); --field-edge: #7a83b0; --ink-field: #060a24; --shadow: 0 20px 44px -26px rgb(0 0 0 / 0.7);
    --glow: rgb(23 65 249 / 0.34);
    --late: #ff8a7e; --card: #121b52; --card-rule: rgb(244 246 255 / 0.18); --card-print: #f4f6ff; --sheet: #121b52; --bezel: #3a4370;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0b1033; --surface: #141d57; --plate: #111a52; --plate-hi: #1a2570; --ink: #f4f6ff; --ink-2: #b3bcdf;
  --brand-hover: #2b52ff; --brand-soft: #1a2566; --link: #9db0ff; --hover: rgb(157 176 255 / 0.12);
  --glass: rgb(20 30 90 / 0.56); --glass-strong: rgb(20 30 90 / 0.86); --glass-edge: rgb(150 172 255 / 0.2); --menu-bg: #10184a;
  --rule: rgb(180 195 255 / 0.15); --field-edge: #7a83b0; --ink-field: #060a24; --shadow: 0 20px 44px -26px rgb(0 0 0 / 0.7);
  --glow: rgb(23 65 249 / 0.34);
  --late: #ff8a7e; --card: #121b52; --card-rule: rgb(244 246 255 / 0.18); --card-print: #f4f6ff; --sheet: #121b52; --bezel: #3a4370;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; } /* A #link lands below the sticky header. */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; min-height: 100vh; background: var(--ground); color: var(--ink); font: 400 1.0625rem/1.65 var(--font); font-stretch: 100%; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--ground); }
::selection { background: var(--brand); color: var(--on-brand); }
img { max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; }
:focus-visible { outline: 2.5px solid var(--link); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-stretch: var(--wide); text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
/* The Arabic page (docs/BRAND.md 4): Noto Kufi Arabic, whose geometric Kufi build, flat and wide, echoes the wordmark; Latin words and digits stay in Archivo. Arabic is never tracked, and needs taller lines. */
:root:lang(ar) { --font: "Archivo", "Noto Kufi Arabic", "Segoe UI", system-ui, sans-serif; --display: var(--font); --body: var(--font); }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; line-height: 1.35; }
:lang(ar) body { line-height: 1.85; }
p { margin: 0; }
[hidden] { display: none !important; }
/* Read by screen readers, not shown: a heading the outline needs where the design shows none. */
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Off the start edge: in an Arabic page the start is the right, which cannot be scrolled to. */
.skip { position: absolute; inset-inline-start: -999px; top: 8px; z-index: 20; background: var(--ink); color: var(--ground); padding: 8px 14px; border-radius: 8px; }
.skip:focus { inset-inline-start: max(16px, env(safe-area-inset-left, 0px)); }

/* The page's light: one soft wash of brand blue at the top of the page, gone by the end of the
   first screen. It scrolls away with the top; nothing repeats behind the content. */
.scene { position: absolute; inset: 0 0 auto; height: 900px; z-index: -1; pointer-events: none; background: radial-gradient(70% 100% at 50% 0%, var(--glow), transparent 72%); }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.lede { color: var(--ink-2); max-width: 40rem; font-size: 1.15rem; }
.muted { color: var(--ink-2); }
.small { font-size: 0.93rem; }
.stack { display: grid; gap: var(--gap); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 56px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.more { margin-top: 14px; }

/* The logo's corner: a 45-degree cut top-left, rounded elsewhere (cut where the browser supports corner-shape). */
.cut { border-radius: var(--r-big); corner-top-left-shape: bevel; }
.cut-sm { border-radius: var(--r-small); corner-top-left-shape: bevel; }

/* Glass */
.pane { background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .pane { background: var(--glass-strong); } }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; font: 650 1rem/1.2 var(--font); font-stretch: 108%; text-decoration: none; text-align: center; cursor: pointer; border: 1.5px solid transparent; border-radius: var(--r-small); corner-top-left-shape: bevel; transition: background-color .18s, border-color .18s, color .18s; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { background: var(--glass-strong); border-color: var(--rule); color: var(--ink); }
.btn-ghost:hover { border-color: var(--link); color: var(--link); }
.btn-white { background: #ffffff; color: #1741f9; }
.btn-white:hover { background: #e4eaff; }
.btn-outline-white { border-color: rgb(255 255 255 / 0.7); color: #ffffff; }
.btn-outline-white:hover { background: rgb(255 255 255 / 0.12); border-color: #ffffff; }
.link { color: var(--link); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 560px) { .ctas .btn { flex: 1 1 100%; } }

/* Header */
.top { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 12px); z-index: 6; margin-top: 12px; }
.top .bar { display: flex; align-items: center; gap: 10px 16px; padding: 8px 8px 8px 20px; position: relative; isolation: isolate; }
/* The bar's frosting sits on a pseudo-element: a blurred parent would stop the menus inside it from blurring the page. */
.top .bar::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; corner-top-left-shape: inherit; background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); }
.top .bar::before { transition: background-color .25s, box-shadow .25s; }
.top.scrolled .bar::before { background: var(--glass-strong); box-shadow: 0 16px 36px -20px rgb(11 16 51 / 0.35); }
.logo { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.logo img { height: 34px; width: auto; display: block; }
.logo .on-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo .on-light { display: none; } :root:not([data-theme="light"]) .logo .on-dark { display: block; } }
:root[data-theme="dark"] .logo .on-light { display: none; }
:root[data-theme="dark"] .logo .on-dark { display: block; }
.nav { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; font-weight: 500; }
/* 8px between items, so two tinted ones (the current page and the one under the pointer) never run together. */
.nav > ul { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.nav-link, .nav-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; white-space: nowrap; border-radius: var(--r-small); corner-top-left-shape: bevel; color: var(--ink-2); text-decoration: none; font: inherit; background: none; border: 0; cursor: pointer; }
.nav-link:hover, .nav-toggle:hover, .nav-toggle[aria-expanded="true"] { color: var(--ink); background: var(--hover); }
.nav-link[aria-current="page"], .nav-toggle.current { color: var(--ink); background: var(--brand-soft); }
.nav-toggle svg { width: 12px; height: 12px; flex: none; transition: transform .18s; }
.nav-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.has-menu { position: relative; }
/* A dropdown is rounded on all four corners: the R's cut marks only the item you select or point at. */
.menu { position: absolute; top: calc(100% + 12px); left: 0; min-width: 300px; padding: 8px; display: grid; gap: 2px; background: var(--menu-bg); border-radius: 16px; }
.menu a { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r-small); corner-top-left-shape: bevel; text-decoration: none; }
.menu a:hover, .menu a:focus-visible { background: var(--hover); }
.menu a b { font-weight: 650; color: var(--ink); }
.menu a span { font-size: 0.9rem; color: var(--ink-2); }
.nav .btn { min-height: 44px; padding: 0 18px; margin-inline-start: 16px; white-space: nowrap; }
.menu-button { display: none; margin-inline-start: auto; min-height: 44px; }
/* Below 1040px the items no longer fit on one line, so the navigation folds into "Menu". */
@media (max-width: 1040px) {
  .menu-button { display: inline-flex; }
  .nav { display: none; position: absolute; top: calc(100% + 12px); left: 0; right: 0; margin: 0; padding: 14px; flex-direction: column; align-items: stretch; gap: 0; background: var(--menu-bg); border: 1px solid var(--glass-edge); box-shadow: var(--shadow); border-radius: 16px; max-height: calc(100vh - 110px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-link, .nav-toggle { width: 100%; justify-content: space-between; min-height: 48px; font-size: 1.05rem; }
  .menu { position: static; min-width: 0; padding: 4px 0 8px 12px; margin-inline-start: 14px; background: transparent; border: 0; border-inline-start: 2px solid var(--rule); border-radius: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav .btn { margin: 14px 0 0; width: 100%; min-height: 48px; }
}

/* Blue field: the logo's colour at page scale, a little lighter toward its top left, along the
   R's 45-degree cut. Nothing drawn on it: the words are the picture. */
.field { background: linear-gradient(135deg, #3858ff, var(--brand) 45%, #1236d8); color: #ffffff; position: relative; overflow: hidden; isolation: isolate; }
.field .lede, .field .muted { color: #ffffff; } /* Solid: 88% white fell below 4.5:1 on the gradient's light end on phones. */
.field .link { color: #ffffff; }
.field :focus-visible { outline-color: #ffffff; }

/* Ink field: the logo's dark, with one soft blue glow from a corner. */
.ink-field { background: var(--ink-field); color: #ffffff; position: relative; overflow: hidden; isolation: isolate; }
.ink-field::after { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(60% 80% at 0% 100%, rgb(23 65 249 / 0.42), transparent 70%); }
.ink-field .muted { color: rgb(255 255 255 / 0.8); }
.ink-field .link { color: #b9c8ff; }
.ink-field :focus-visible { outline-color: #ffffff; }

/* Inner page heading: a soft blue plate, lighter toward its top left. No pattern: the heading is the content. */
.plate { margin-top: 20px; padding: clamp(24px, 3.6vw, 44px) var(--pad); background: linear-gradient(135deg, var(--plate-hi), var(--plate) 60%); display: grid; gap: 16px; }
.plate h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; line-height: 1; }
.plate .lede { color: var(--ink-2); }
.crumb { font-size: 0.95rem; color: var(--ink-2); }
.crumb a { color: var(--link); }

/* Sections */
.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.section.first { padding-top: var(--gap); }
.section-head { display: grid; gap: 12px; max-width: 48rem; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; line-height: 1.04; }
.box { padding: var(--pad); }
.box h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; line-height: 1.06; margin-bottom: 14px; }
.box > p + p { margin-top: 12px; }
.box .ctas { margin-top: 24px; }

/* Rows inside one pane */
.rows { list-style: none; margin: 0; padding: 0 var(--pad); }
.rows > li { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: 10px 40px; padding: 28px 0; border-top: 1px solid var(--rule); align-items: start; }
.rows > li:first-child { border-top: 0; }
@media (max-width: 860px) { .rows > li { grid-template-columns: minmax(0, 1fr); } }
.rows h3 { font-size: 1.5rem; font-weight: 750; line-height: 1.1; }
.rows p { color: var(--ink-2); }
.chips { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 0.9rem; padding: 4px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--ink); }

/* Sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 21px; height: 2px; background: linear-gradient(90deg, var(--brand), transparent); opacity: .5; }
.steps li { counter-increment: s; display: grid; gap: 8px; align-content: start; position: relative; }
.steps li::before { content: counter(s); width: 44px; height: 44px; display: grid; place-items: center; font: 800 1.05rem var(--font); background: var(--brand); color: #ffffff; margin-bottom: 8px; border-radius: var(--r-small); corner-top-left-shape: bevel; }
.steps h3 { font-size: 1.2rem; font-weight: 700; }
.steps p { color: var(--ink-2); font-size: 0.98rem; }
@media (max-width: 860px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .steps::before { left: 21px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--brand), transparent); }
  .steps li { grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; }
  .steps li::before { grid-row: span 2; margin: 0; }
}

/* Definition rows */
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 4px 20px; padding: 13px 0; border-top: 1px solid var(--rule); }
.facts div:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 520px) { .facts div { grid-template-columns: minmax(0, 1fr); } }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* Plan and price tables */
/* A screenshot of real software (Work, Home): framed like a pane, with its caption under it. */
.shot { margin: 0; display: grid; gap: 10px; min-width: 0; }
/* Rewaa Pulse screens (<pulse-screen> in build.py): a browser window on a computer, a phone on a phone. */
.window { overflow: hidden; border: 1px solid var(--rule); border-radius: var(--r-big); corner-top-left-shape: bevel; background: var(--sheet); box-shadow: 0 44px 80px -52px rgb(23 65 249 / 0.55), 0 20px 40px -30px rgb(18 22 43 / 0.4); }
.window-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 40px; padding: 0 18px 0 30px; border-bottom: 1px solid var(--rule); background: var(--glass-strong); }
.window-bar .dots { display: flex; gap: 7px; }
.window-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-2); opacity: 0.28; }
.window-bar .url { padding: 4px 18px; border-radius: 8px; background: var(--ground); color: var(--ink-2); font-size: 0.8rem; letter-spacing: 0.01em; }
.window img, .device img { display: block; width: 100%; height: auto; }
.device { width: min(100%, 300px); margin-inline: auto; overflow: hidden; border: 7px solid var(--bezel); border-radius: 36px; background: var(--bezel); box-shadow: 0 44px 80px -48px rgb(23 65 249 / 0.6), 0 20px 40px -26px rgb(18 22 43 / 0.45); }
@media (max-width: 760px) {
  /* The phone capture, so the screen reads at its real size: the window becomes a phone. */
  .window { width: min(100%, 300px); margin-inline: auto; border: 7px solid var(--bezel); border-radius: 36px; corner-top-left-shape: round; background: var(--bezel); }
  .window-bar { display: none; }
}
.shot figcaption { color: var(--ink-2); font-size: 0.93rem; }
.phone-shot { justify-items: center; text-align: center; }
.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 36rem; }
.table th, .table td { text-align: start; padding: 16px 20px 16px 0; border-top: 1px solid var(--rule); vertical-align: top; }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table thead th { border-top: 0; font-weight: 600; color: var(--ink-2); font-size: 0.93rem; padding-top: 0; }
.table td:first-child b { font-size: 1.1rem; }
.table .amt { font-weight: 750; font-stretch: 110%; white-space: nowrap; font-size: 1.1rem; }
.table .amt small { display: block; font-weight: 400; font-stretch: 100%; color: var(--ink-2); font-size: 0.85rem; }
/* On a phone, a card per row: the name and the price on one line, the other columns under them with their names (build.py adds data-label). */
@media (max-width: 600px) {
  .table { min-width: 0; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 16px 0; border-top: 1px solid var(--rule); }
  .table tbody tr:first-child { border-top: 0; padding-top: 4px; }
  .table td { display: block; padding: 0 !important; border: 0; }
  .table td:first-child { grid-column: 1; }
  .table td.amt { grid-column: 2; grid-row: 1; text-align: end; }
  .table td:not(:first-child):not(.amt) { grid-column: 1 / -1; color: var(--ink-2); }
  .table td:not(:first-child):not(.amt)[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--ink); }
}

/* FAQ */
.faq details { border-top: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 650; font-size: 1.06rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--link); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; color: var(--ink-2); max-width: 44rem; }

/* Contact */
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.mail a { font: 800 clamp(1.6rem, 4.4vw, 2.7rem)/1.1 var(--font); font-stretch: 112%; color: var(--link); text-decoration: none; overflow-wrap: anywhere; }
.mail a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.copy { font: 600 0.92rem var(--font); min-height: 42px; border: 1px solid var(--rule); background: var(--glass-strong); color: var(--ink); border-radius: var(--r-small); corner-top-left-shape: bevel; padding: 0 14px; cursor: pointer; }
.copy:hover { border-color: var(--link); }
.check { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.check li { padding-inline-start: 30px; position: relative; }
.check li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.3em; width: 18px; height: 18px; background: var(--brand); border-radius: 6px 3px 3px 3px; corner-top-left-shape: bevel; }

/* Forms: one column, labels above, errors under the field after the first try. */
.form { display: grid; gap: 22px; }
/* align-content: a field beside a taller one (one with a hint) keeps its own height. */
.form-row { display: grid; gap: 8px; min-width: 0; align-content: start; }
/* A checkbox tile (.choice) keeps its own padding: without :not, the 18+ box sat on the tile's edge. */
/* 12px from a label to its field (the row's 8px gap and 4px more); a hint or an error under the field stays 8px from it. */
.form-row > label:not(.choice), .form-row legend { font-weight: 650; padding: 0; margin-bottom: 4px; }
.form-row legend { margin-bottom: 12px; } /* A legend sits outside the row's grid, so it gets no gap of its own. */
.form-row .opt { font-weight: 400; color: var(--ink-2); }
.form-row .hint { font-size: 0.92rem; color: var(--ink-2); }
.form-row .err { font-size: 0.93rem; font-weight: 600; color: var(--late); }
.form-row fieldset, fieldset.form-row { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 640px) { .form-2 { grid-template-columns: minmax(0, 1fr); } }
.input { width: 100%; min-height: 48px; padding: 11px 14px; font: 400 1rem/1.4 var(--font); color: var(--ink); background: var(--glass-strong); border: 1.5px solid var(--field-edge); border-radius: var(--r-small); corner-top-left-shape: bevel; transition: border-color .18s, box-shadow .18s; }
.input::placeholder { color: var(--ink-2); opacity: 0.8; }
.input:hover { border-color: color-mix(in oklab, var(--rule), var(--link) 40%); }
.input:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px color-mix(in oklab, var(--link) 22%, transparent); }
.input[aria-invalid="true"] { border-color: var(--late); }
textarea.input { min-height: 160px; resize: vertical; }
select.input { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%234a4f63' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 10px; }
.choice { position: relative; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 14px; background: var(--glass-strong); border: 1.5px solid var(--field-edge); border-radius: var(--r-small); corner-top-left-shape: bevel; cursor: pointer; font-weight: 550; transition: border-color .18s, background-color .18s; }
.choice:hover { border-color: color-mix(in oklab, var(--field-edge), var(--link) 45%); }
.choice input { appearance: none; flex: none; width: 18px; height: 18px; margin: 0; border: 1.5px solid var(--ink-2); border-radius: 50%; display: grid; place-content: center; }
.choice input::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--on-brand); transform: scale(0); transition: transform .12s; }
.choice input:checked { background: var(--brand); border-color: var(--brand); }
.choice input:checked::before { transform: scale(1); }
.choice:has(input:checked) { border-color: var(--link); background: var(--brand-soft); }
.choice:has(input:focus-visible) { outline: 2.5px solid var(--link); outline-offset: 2px; }
.choice:has(input[aria-invalid="true"]) { border-color: var(--late); }
/* A checkbox is a square with a tick, not a dot. */
.choice input[type="checkbox"] { border-radius: 5px; }
.choice input[type="checkbox"]::before { width: 11px; height: 11px; border-radius: 0; clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); }
.choice input[type="checkbox"][aria-invalid="true"] { border-color: var(--late); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-top: 6px; }
.form-foot p { max-width: 30rem; }
@media (max-width: 560px) { .form-foot .btn { width: 100%; } }
.trap { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: var(--r-small); corner-top-left-shape: bevel; border: 1.5px solid var(--late); color: var(--ink); background: color-mix(in oklab, var(--late) 8%, transparent); }
.alert b { color: var(--late); }
.done { display: grid; gap: 16px; justify-items: start; }
.done .mark { width: 52px; height: 52px; display: grid; place-items: center; background: var(--brand); color: #ffffff; border-radius: var(--r-small); corner-top-left-shape: bevel; }
.done .mark svg { width: 24px; height: 24px; }
.done h2 { margin: 0; }
.draft { margin: 0; width: 100%; max-height: 260px; overflow: auto; padding: 14px 16px; font: 400 0.95rem/1.55 var(--font); white-space: pre-wrap; overflow-wrap: anywhere; background: var(--glass-strong); border: 1px solid var(--rule); border-radius: var(--r-small); }
/* One form on its own, centred: the page is the form, with nothing beside it. */
.form-box { max-width: 760px; margin-inline: auto; }
.plate-note { max-width: 40rem; }

/* Closing call to action: a blue field with the R. */
.closer { padding: clamp(28px, 4vw, 48px) var(--pad); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; }
.closer h2 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); font-weight: 850; line-height: 1.04; max-width: 20ch; }
.closer p { margin-top: 10px; max-width: 34rem; }
@media (max-width: 560px) { .closer .btn { width: 100%; } }

/* Long-form text */
.prose { max-width: 48rem; padding: var(--pad); }

/* A policy page: the text, and beside it the list of its sections, which stays in view and
   marks the one being read (site.js). On a phone the list folds into one line above the text. */
.doc-layout { display: grid; grid-template-columns: minmax(0, 52rem) minmax(13rem, 17rem); gap: clamp(20px, 3vw, 40px); align-items: start; }
.doc-layout .prose { max-width: none; }
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); }
.toc summary { font-weight: 700; font-size: 0.95rem; padding: 0 0 10px 14px; list-style: none; pointer-events: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-inline-start: 2px solid var(--rule); max-height: calc(100vh - 160px); overflow-y: auto; }
.toc a { display: block; padding: 6px 12px; margin-inline-start: -2px; border-inline-start: 2px solid transparent; color: var(--ink-2); text-decoration: none; font-size: 0.93rem; line-height: 1.35; transition: color .18s, border-color .18s; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { color: var(--link); border-color: var(--link); font-weight: 600; }
@media (max-width: 960px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; order: -1; }
  .toc details { background: var(--glass-strong); border: 1px solid var(--rule); border-radius: 12px; padding: 12px 16px; }
  .toc summary { pointer-events: auto; cursor: pointer; padding: 0; display: flex; justify-content: space-between; }
  .toc summary::after { content: "+"; color: var(--link); font-weight: 400; }
  .toc details[open] summary::after { content: "−"; }
  .toc ol { margin-top: 10px; max-height: none; }
}
.prose h2 { font-size: 1.55rem; font-weight: 750; margin: 36px 0 10px; }
.prose h2:first-of-type { margin-top: 8px; }
.prose h3 { font-size: 1.1rem; font-weight: 700; margin: 22px 0 6px; font-stretch: 100%; letter-spacing: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-inline-start: 22px; }
.prose li { margin-bottom: 6px; }
/* Restricted countries, built from src/lib/restricted-countries.json. */
.country-list { columns: 4 7rem; column-gap: clamp(16px, 3vw, 32px); margin: 14px 0; padding-inline-start: 18px; }
.country-list li { break-inside: avoid; margin-bottom: 6px; }
.prose a { color: var(--link); }
.prose .meta { display: flex; flex-wrap: wrap; gap: 4px 22px; color: var(--ink-2); font-size: 0.93rem; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--rule); }
.prose .table-scroll { margin: 0 0 18px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.96rem; min-width: 30rem; }
.prose th, .prose td { text-align: start; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { font-weight: 600; color: var(--ink-2); }
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li { border-top: 1px solid var(--rule); }
.doc-list li:first-child { border-top: 0; }
.doc-list a { display: grid; gap: 4px; padding: 16px 0; text-decoration: none; color: var(--ink-2); }
.doc-list li:first-child a { padding-top: 0; }
.doc-list a b { font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.doc-list a:hover b { color: var(--link); text-decoration: underline; }

/* Footer */
footer { padding-block: var(--section) 24px; }
footer .foot { padding: var(--pad) var(--pad) 22px; }
.foot-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 28px; color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 960px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-cols { grid-template-columns: minmax(0, 1fr); } }
.foot-cols h2 { font: 650 0.95rem var(--font); letter-spacing: 0; color: var(--ink); margin-bottom: 8px; }
.foot-cols ul { margin: 0; padding: 0; list-style: none; display: grid; }
.foot-cols ul a { text-decoration: none; display: inline-block; padding-block: 5px; }
.foot-cols ul a:hover { color: var(--ink); text-decoration: underline; }
.foot-brand .logo img { height: 30px; }
.foot-brand p { margin-top: 10px; max-width: 20rem; }
.foot-legal { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; font-size: 0.88rem; color: var(--ink-2); }
.foot-id { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 24px; }
.foot-legal .addr { display: inline-block; }
/* The email and the profiles as line icons (Tabler Icons, assets/icons/), each a 40px target. */
.foot-icons { display: flex; gap: 2px; margin: 0; margin-inline-end: -10px; padding: 0; list-style: none; }
.foot-icons a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-small); color: var(--ink-2); transition: color 0.15s ease, background-color 0.15s ease; }
.foot-icons a:hover { color: var(--link); background: var(--hover); }
.foot-icons svg { width: 20px; height: 20px; stroke-width: 1.75; }
@media (max-width: 600px) { .foot-icons { margin-inline-start: -10px; margin-inline-end: 0; } }

/* Motion: quick and quiet. Headings rise in as a page opens; panes, pictures and steps ease in
   as they scroll into view where the browser can tie an animation to scrolling (elsewhere they
   are simply there, so nothing waits on a script); whatever can be clicked answers the pointer.
   Nothing moves for anyone who asks for less motion. */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  :is(.plate, .hero) > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  :is(.plate, .hero) > :nth-child(2) { animation-delay: .07s; }
  :is(.plate, .hero) > :nth-child(3) { animation-delay: .14s; }
  :is(.plate, .hero) > :nth-child(n+4) { animation-delay: .2s; }
  @supports (animation-timeline: view()) {
    main .section :is(.pane, .box, .shot, .steps > li, .section-head, .rows > li), main .closer {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 30%;
    }
  }
  .btn { transition: background-color .18s, border-color .18s, color .18s, transform .18s, box-shadow .18s; }
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: none; }
  .btn-primary:hover { box-shadow: 0 10px 22px -12px rgb(23 65 249 / 0.7); }
}
.link, .prose a { text-underline-offset: 3px; transition: text-underline-offset .18s, color .18s; }
.link:hover, .prose a:hover { text-underline-offset: 5px; }
.doc-list a b { transition: color .18s; }
