/* Dossier website. The app's "Stack" design system (DESIGN.md at the repository root), for the web. */

@font-face { font-family: "Geist"; src: url("../fonts/geist_regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist_semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist_bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist_mono_medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist_mono_semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --page: #eceef2; --surface: #fff; --raised: #fff; --sunken: #e1e4ea;
  --hairline: #d5d9e0; --strong: #6b7280;
  --ink: #0f1115; --ink-2: #4b5160; --ink-3: #5d6474; --on-ink: #fff; --ink-pressed: #2a2e38;
  --selected: #dde1e8;
  --safe: #146c41; --safe-bg: #dcf3e6; --risky: #834c00; --risky-bg: #ffebc2; --lapsed: #b3231a; --lapsed-bg: #fde1dd;
  --lapsed-solid: #c2261d;
  --passport: #8a1f33; --visa: #5a36d6; --licence: #bf1f63; --vehicle: #00806f; --insurance: #1554c0;
  --pill-safe: #146c41; --pill-risky: #834c00; --pill-lapsed: #b3231a;
  --shadow-card: 0 16px 26px -16px rgba(10, 14, 25, .6);
  --shadow-thumb: 0 5px 8px -5px rgba(10, 14, 25, .6);
  --shadow-float: 0 10px 24px -10px rgba(10, 14, 25, .4);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --settle: cubic-bezier(.2, 1.25, .4, 1);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0b0c0f; --surface: #17191e; --raised: #1f2229; --sunken: #14161a;
    --hairline: #2a2e36; --strong: #8b92a0;
    --ink: #f3f4f6; --ink-2: #b4b9c4; --ink-3: #9aa0ad; --on-ink: #0f1115; --ink-pressed: #d5d8de;
    --selected: #2a2e36;
    --safe: #5fd699; --safe-bg: #12301f; --risky: #ffbf3d; --risky-bg: #3a2a05; --lapsed: #ff8a7f; --lapsed-bg: #45130f;
    --shadow-card: 0 16px 26px -16px rgba(0, 0, 0, .85);
    --shadow-thumb: 0 5px 8px -5px rgba(0, 0, 0, .85);
    --shadow-float: 0 10px 24px -10px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #0b0c0f; --surface: #17191e; --raised: #1f2229; --sunken: #14161a;
  --hairline: #2a2e36; --strong: #8b92a0;
  --ink: #f3f4f6; --ink-2: #b4b9c4; --ink-3: #9aa0ad; --on-ink: #0f1115; --ink-pressed: #d5d8de;
  --selected: #2a2e36;
  --safe: #5fd699; --safe-bg: #12301f; --risky: #ffbf3d; --risky-bg: #3a2a05; --lapsed: #ff8a7f; --lapsed-bg: #45130f;
  --shadow-card: 0 16px 26px -16px rgba(0, 0, 0, .85);
  --shadow-thumb: 0 5px 8px -5px rgba(0, 0, 0, .85);
  --shadow-float: 0 10px 24px -10px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--page); color: var(--ink); font: 400 16px/1.55 var(--sans);
  font-feature-settings: "tnum"; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip; accent-color: var(--ink); caret-color: var(--ink);
}
::selection { background: var(--ink); color: var(--on-ink); }
html { scrollbar-color: var(--strong) var(--page); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--page); }
::-webkit-scrollbar-thumb { background: var(--hairline); border: 3px solid var(--page); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--strong); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
img, svg { display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.ic { width: 20px; height: 20px; flex: none; }

.wrap { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 24px; }
.wrap.narrow { max-width: 760px; }
@media (max-width: 600px) { .wrap { padding-inline: 16px; } }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* Type */
h1 { font-weight: 700; font-size: clamp(2.5rem, 5.4vw, 4.25rem); line-height: 1.02; letter-spacing: -.035em; }
h2 { font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.06; letter-spacing: -.03em; }
h3 { font-weight: 600; font-size: 1.1875rem; line-height: 1.26; letter-spacing: -.01em; }
.lead { font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.note { color: var(--ink-3); font-size: .9375rem; max-width: 62ch; }
.fine { color: var(--ink-3); font-size: .8125rem; line-height: 1.45; }

/* Buttons: ink pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: 999px; background: var(--ink); color: var(--on-ink); font-weight: 600; font-size: 15px; text-decoration: none;
  transition: background .08s, transform .2s var(--settle);
}
.btn:hover { background: var(--ink-pressed); }
.btn:active { transform: scale(.97); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.stores.center { justify-content: center; }
/* The official badges, shown as published: same height, no recolouring or added chrome. */
.store { display: inline-flex; border-radius: 8px; transition: transform .2s var(--settle), opacity .15s; }
.store img { height: 48px; width: auto; }
.store:hover { opacity: .86; }
.store:active { transform: scale(.97); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--page); border-bottom: 1px solid transparent; transition: border-color .25s, background-color .25s; padding-top: env(safe-area-inset-top); }
.top.scrolled { border-bottom-color: var(--hairline); }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .top.scrolled { background: color-mix(in srgb, var(--page) 80%, transparent); -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px); }
}
.topin { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.02em; text-decoration: none; }
.brand img { border-radius: 8px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: 14px; text-decoration: none; }
.nav a:hover { color: var(--ink); background: var(--sunken); }
.langs { position: relative; }
.langs summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 999px;
  color: var(--ink-2); font-weight: 600; font-size: 14px; cursor: pointer;
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover { color: var(--ink); background: var(--sunken); }
.langs .ic { width: 18px; height: 18px; }
.langs .chev { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.langs[open] .chev { transform: rotate(180deg); }
.langs ul {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; padding: 6px; background: var(--raised);
  border-radius: 16px; box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-float);
}
.langs li a { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; font-size: 15px; }
.langs li a:hover { background: var(--sunken); }
.langs li a[aria-current] { font-weight: 600; background: var(--selected); }
@media (max-width: 900px) { .nav { display: none; } .langs { margin-left: auto; } }
@media (max-width: 420px) { .langs summary span { display: none; } }

section { padding-block: clamp(72px, 10vw, 128px) 0; }
.sechead { display: grid; gap: 16px; }

/* Hero */
.hero { padding-top: clamp(28px, 6vw, 72px); }
.heroin { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.herocopy { display: grid; gap: 24px; justify-items: start; }
.herocopy .lead { font-size: clamp(1.125rem, 1.7vw, 1.3125rem); }
.platforms { color: var(--ink-3); font-size: 14px; }
.herostack { margin: 0; display: grid; gap: 16px; max-width: 440px; justify-self: end; width: 100%; }
.herostack figcaption { color: var(--ink-3); font-size: 12px; }
@media (max-width: 860px) {
  .heroin { grid-template-columns: 1fr; }
  .herostack { justify-self: stretch; max-width: 460px; }
}

/* Verdict headline, badge, pill, inline */
.vh { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tv { font-weight: 700; font-size: 26px; line-height: 30px; letter-spacing: -.5px; }
.badge { display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding: 0 8px 0 6px; border-radius: 8px; font-weight: 700; font-size: 13px; line-height: 16px; white-space: nowrap; }
.badge .ic { width: 16px; height: 16px; }
.badge.lg { min-height: 32px; padding: 0 12px 0 8px; gap: 8px; }
.badge.safe { background: var(--safe-bg); color: var(--safe); }
.badge.risky { background: var(--risky-bg); color: var(--risky); }
.badge.lapsed { background: var(--lapsed-solid); color: #fff; }
.pill { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 0 10px 0 8px; border-radius: 999px; background: #fff; font-weight: 700; font-size: 13px; white-space: nowrap; }
.pill .ic { width: 16px; height: 16px; }
.pill.safe { color: var(--pill-safe); } .pill.risky { color: var(--pill-risky); } .pill.lapsed { color: var(--pill-lapsed); }
.vin { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 13px; }
.vin .ic { width: 16px; height: 16px; }
.vin.safe { color: var(--safe); } .vin.risky { color: var(--risky); } .vin.lapsed { color: var(--lapsed); }

/* Timeline */
.timeline { display: grid; gap: 8px; }
.tl-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; align-items: center; height: 12px; }
.seg { height: 6px; border-radius: 3px; background: var(--hairline); transition: height .45s var(--settle), background-color .3s var(--ease); }
.seg.past { background: var(--strong); }
.seg.cur { height: 12px; border-radius: 6px; }
.seg.cur.safe { background: var(--safe); } .seg.cur.risky { background: var(--risky); } .seg.cur.lapsed { background: var(--lapsed-solid); }
.tl-labels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; font-size: 12px; color: var(--ink-2); }
.tl-labels span { overflow-wrap: anywhere; }
.tl-labels .cur { color: var(--ink); font-weight: 700; }

/* Document card */
.stack { position: relative; padding-top: 46px; }
.peek {
  position: absolute; height: 80px; border-radius: 22px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), var(--shadow-card);
  background-image: radial-gradient(130% 100% at 0 0, rgba(255, 255, 255, .18), transparent 55%);
}
.peek:nth-child(1) { top: 0; left: 21px; right: 21px; }
.peek:nth-child(2) { top: 15px; left: 14px; right: 14px; }
.peek:nth-child(3) { top: 30px; left: 7px; right: 7px; }
.stack:has(.peek:nth-child(3)) { padding-top: 46px; }
.stack:not(:has(.peek:nth-child(3))) { padding-top: 31px; }
.stack:not(:has(.peek:nth-child(3))) .peek:nth-child(1) { left: 14px; right: 14px; }
.stack:not(:has(.peek:nth-child(3))) .peek:nth-child(2) { left: 7px; right: 7px; }
.passport { background-color: var(--passport); } .visa { background-color: var(--visa); } .licence { background-color: var(--licence); }
.vehicle { background-color: var(--vehicle); } .insurance { background-color: var(--insurance); }
.dcard {
  position: relative; overflow: hidden; min-height: 214px; display: flex; flex-direction: column; padding: 16px 18px; border-radius: 22px; color: #fff;
  background-image: radial-gradient(130% 100% at 0 0, rgba(255, 255, 255, .18), transparent 55%), linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .2));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), var(--shadow-card);
}
.dcard .wm { position: absolute; right: -26px; bottom: -34px; width: 190px; height: 190px; opacity: .16; color: #fff; }
.dcard .hd { position: relative; display: flex; align-items: center; gap: 10px; padding-right: 44px; font-weight: 600; font-size: 19px; line-height: 24px; letter-spacing: -.2px; }
.dcard .gl { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, .2); }
.dcard .gl svg { width: 20px; height: 20px; }
.dcard .cc { position: absolute; right: 16px; top: 16px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .8); font: 600 12px var(--mono); }
.dcard .idn { position: relative; margin-top: 30px; font: 600 26px/30px var(--mono); letter-spacing: .3px; }
.dcard .sub { position: relative; margin-top: 4px; font-size: 13px; line-height: 16px; opacity: .9; }
.dcard .ft { position: relative; margin-top: auto; padding-top: 20px; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.dcard .fl small { display: block; font-size: 12px; line-height: 15px; opacity: .88; }
.dcard .fl span { font: 500 15px/20px var(--mono); }


/* How it works: the three verdicts, and the reminders on the way */
.howbody { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); margin-top: 48px; align-items: start; }
.verdicts li { display: grid; gap: 10px; padding: 24px; }
.verdicts li + li { border-top: 1px solid var(--hairline); }
.verdicts h3 { font-weight: 700; font-size: 22px; line-height: 27px; letter-spacing: -.3px; }
.verdicts p { max-width: 62ch; }
.reminders { display: grid; gap: 14px; }
.reminders > h3 { font-size: 1.1875rem; }
.reminders > p { color: var(--ink-2); }
.reminders .timeline { margin: 6px 0 4px; }
.notifs { display: grid; gap: 10px; }
.reminders .note { margin-top: 8px; }
@media (max-width: 860px) { .howbody { grid-template-columns: 1fr; } }

/* A notification, as it lands on the phone */
.notif .nb { font-size: 14px; line-height: 20px; color: var(--ink-2); margin-top: 2px; }
.notif {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 22px;
  background: var(--raised); box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-float);
}
.notif img { border-radius: 8px; margin-top: 2px; }
.notif .nt { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.notif .lockic { width: 14px; height: 14px; }
.notif .nh { font-weight: 600; font-size: 15px; line-height: 20px; }
.notif.locked { background: var(--sunken); box-shadow: inset 0 0 0 1px var(--hairline); }
/* Groups and rows (flat surfaces) */
.group { background: var(--surface); border-radius: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }

.privlist { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; }
.privlist li:nth-child(2) { border-top: 0; }
.privlist li:nth-child(odd) { border-right: 1px solid var(--hairline); }
@media (max-width: 860px) { .privlist { grid-template-columns: 1fr; } .privlist li:nth-child(2) { border-top: 1px solid var(--hairline); } .privlist li:nth-child(odd) { border-right: 0; } }
.privlist li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding: 20px 22px; }
.privlist li + li { border-top: 1px solid var(--hairline); }
.privlist h3 { font-size: 1rem; line-height: 1.4; }
.privlist p { color: var(--ink-2); margin-top: 4px; }
.privlist .pi { color: var(--ink-2); padding-top: 1px; }
.plat { display: inline-block; font-size: 12px; font-weight: 700; color: var(--ink); background: var(--sunken); border-radius: 6px; padding: 1px 7px; margin-right: 4px; }


.result { display: grid; gap: 14px; padding: 24px; }
.result .vh { align-items: flex-start; }
.result h3 { font-weight: 700; font-size: 22px; line-height: 27px; letter-spacing: -.3px; max-width: 20ch; }

.hh { display: grid; gap: 16px; }
.mtabs { display: flex; gap: 8px; }
.mtabs span { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 5px; border-radius: 999px; background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: 14px; }
.mtabs i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--sunken); color: var(--ink); font-style: normal; font-weight: 700; font-size: 12px; }
.mtabs .on { background: var(--ink); color: var(--on-ink); }
.mtabs .on i { background: var(--on-ink); color: var(--ink); }
.rows .row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; min-height: 72px; }
.rows .row + .row { border-top: 1px solid var(--hairline); }
.thumb {
  width: 50px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: #fff;
  background-image: radial-gradient(130% 100% at 0 0, rgba(255, 255, 255, .18), transparent 55%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), var(--shadow-thumb);
}
.thumb svg { width: 18px; height: 18px; }
.thumb.sm { width: 44px; height: 32px; } .thumb.xs { width: 34px; height: 24px; border-radius: 6px; } .thumb.xs svg { width: 14px; height: 14px; }
.rt { display: grid; min-width: 0; } .rn { font-weight: 600; font-size: 16px; } .rm { color: var(--ink-2); font-size: 13px; }
.rr { display: grid; justify-items: end; gap: 2px; } .rtime { font-weight: 600; font-size: 14px; }

/* The widget, 4 x 2 */
.widget { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px; max-width: 460px; border-radius: 28px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-float); justify-self: center; width: 100%; }
.wh { display: grid; gap: 10px; align-content: start; }
.whtop { display: flex; align-items: center; gap: 8px; }
.wbar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; align-items: center; height: 12px; margin-top: 6px; }
.wbar i { height: 6px; border-radius: 3px; background: var(--hairline); } .wbar .past { background: var(--strong); } .wbar .cur { height: 12px; border-radius: 6px; } .wbar .cur.lapsed { background: var(--lapsed-solid); }
.wtime { font-weight: 700; font-size: 24px; line-height: 28px; letter-spacing: -.4px; margin-top: 8px; } .wname { font-weight: 500; font-size: 15px; }
.wrows { display: grid; gap: 12px; align-content: center; }
.wrows li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; }
.wrows b { display: block; font-weight: 600; font-size: 14px; } .wrows em { font-style: normal; font-weight: 700; font-size: 12px; color: var(--ink-2); } .wrows em.risky { color: var(--risky); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.plan { display: grid; gap: 8px; align-content: start; padding: 24px; border-radius: 16px; background: var(--surface); }
.plan h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; }
.plan p { color: var(--ink-2); }
.plan .per { color: var(--ink-3); font-size: .875rem; margin-top: auto; }
.pricing .note { margin-top: 20px; } .pricing .fine { margin-top: 8px; }
.pricing .fine .plat { font-size: 11px; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }

/* Languages: the same reminder in other scripts */
.proof { display: grid; gap: 14px; }
.proof li { display: grid; gap: 6px; }
.proof .lt { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.langlinks { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; }
.langlinks a { color: var(--ink-2); font-weight: 600; font-size: 15px; text-decoration: none; }
.langlinks a:hover { color: var(--ink); text-decoration: underline; }
.langlinks a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; }

/* FAQ */
.faq h2 { margin-bottom: 24px; }
.qa { border-top: 1px solid var(--hairline); }
.qa:last-child { border-bottom: 1px solid var(--hairline); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; font-weight: 600; font-size: 1.125rem; }
.qa summary::-webkit-details-marker { display: none; }
.qa .chev { transition: transform .25s var(--ease); color: var(--ink-3); }
.qa[open] .chev { transform: rotate(180deg); }
.qa p { padding: 0 0 22px; color: var(--ink-2); max-width: 62ch; }

/* Close */
.close { padding-bottom: clamp(72px, 10vw, 128px); }
.closein { display: grid; justify-items: center; text-align: center; gap: 20px; }
.closein .lead { margin-inline: auto; }
.stack.small { width: min(320px, 100%); margin-bottom: 12px; text-align: left; }

/* Footer */
.foot { border-top: 1px solid var(--hairline); padding-block: 40px 48px; }
.footmain { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot nav a { color: var(--ink-2); font-weight: 600; font-size: 14px; text-decoration: none; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }
.langlist { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.langlist a { color: var(--ink-2); text-decoration: none; } .langlist a:hover { color: var(--ink); text-decoration: underline; }
.foot .fine { margin-top: 20px; }

/* Legal and support pages */
.docmain { padding-block: 48px 96px; }
.docmain h1 { font-size: clamp(2.2rem, 4.4vw, 3.25rem); margin-bottom: 16px; }
.docmain .lead { margin-bottom: 12px; }
.docmain h2 { font-size: 1.5rem; letter-spacing: -.02em; margin: 48px 0 12px; }
.docmain h3 { margin: 28px 0 8px; font-size: 1.0625rem; }
.docmain p, .docmain li { color: var(--ink-2); max-width: 68ch; }
.docmain p + p { margin-top: 12px; }
.docmain ul { list-style: disc; padding-left: 1.25em; display: grid; gap: 8px; margin-top: 12px; }
.docmain strong { color: var(--ink); }
.docmain a { color: var(--ink); }
.docmain .meta { color: var(--ink-3); font-size: 14px; }
.callout { margin-top: 24px; padding: 18px 20px; border-radius: 16px; background: var(--surface); }
.callout p { color: var(--ink); }


/* Stands in for the App Store badge until the iPhone app is out: same height, quieter than a link. */
.soon { display: inline-flex; align-items: center; height: 48px; padding: 0 16px; border: 1px dashed var(--strong);
  border-radius: 8px; color: var(--ink-2); font-size: 14px; font-weight: 500; white-space: nowrap; }

/* ---------- Phone menu ---------- */
.menu { display: none; position: static; }
.menu summary {
  list-style: none; display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; border-radius: 999px;
  color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary .ic { width: 22px; height: 22px; grid-area: 1 / 1; transition: transform .35s var(--ease), opacity .2s; }
.menu .shut { opacity: 0; transform: rotate(-90deg) scale(.6); }
.menu[open] .open { opacity: 0; transform: rotate(90deg) scale(.6); }
.menu[open] .shut { opacity: 1; transform: none; }
.sheet {
  position: fixed; left: 0; right: 0; top: calc(68px + env(safe-area-inset-top)); z-index: 19;
  display: grid; gap: 2px; padding: 12px max(16px, env(safe-area-inset-left)) calc(24px + env(safe-area-inset-bottom));
  background: var(--page); border-bottom: 1px solid var(--hairline);
  box-shadow: var(--shadow-float), 0 0 0 100vmax rgba(5, 7, 12, .42);
  animation: sheet-in .35s var(--ease) both;
}
.sheet a:not(.btn) {
  display: flex; align-items: center; min-height: 52px; padding: 0 12px; border-radius: 12px;
  font-weight: 600; font-size: 1.125rem; text-decoration: none; letter-spacing: -.01em;
  animation: rise .45s var(--ease) both;
}
.sheet a:nth-child(2) { animation-delay: 40ms; } .sheet a:nth-child(3) { animation-delay: 80ms; }
.sheet a:nth-child(4) { animation-delay: 120ms; } .sheet a:nth-child(5) { animation-delay: 160ms; }
.sheet a:not(.btn):active { background: var(--sunken); }
.sheet .btn { margin-top: 12px; min-height: 52px; font-size: 16px; animation: rise .45s var(--ease) both; }
html.menu-open { overflow: hidden; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-12px); } }
@media (max-width: 900px) { .menu { display: block; } }
@media (max-width: 560px) {
  .topin { gap: 8px; min-height: 60px; }
  .top .cta { display: none; }
  .langs summary span { display: none; }
  .langs summary { padding: 0 10px; min-height: 44px; }
  .sheet { top: calc(60px + env(safe-area-inset-top)); }
  .langs ul { position: fixed; left: 12px; right: 12px; top: calc(64px + env(safe-area-inset-top)); min-width: 0; max-height: 70vh; overflow: auto; }
  .langs li a { padding: 12px 14px; }
}

/* ---------- Mobile layout ---------- */
html { -webkit-tap-highlight-color: transparent; }
.wrap { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
@media (max-width: 600px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  section { padding-top: 64px; }
  h1 { font-size: clamp(2.25rem, 10vw, 2.75rem); letter-spacing: -.03em; }
  h2 { font-size: clamp(1.75rem, 8vw, 2.125rem); }
  .hero { padding-top: 20px; }
  .herocopy { gap: 18px; }
  .heroin { gap: 40px; }
  .howbody, .privlist { margin-top: 32px; }
  .verdicts li, .result { padding: 20px; }
  .privlist li { padding: 18px 16px; }
  .plans { margin-top: 28px; gap: 12px; }
  .plan { padding: 20px; }
  .qa summary { font-size: 1.0625rem; padding: 18px 0; min-height: 56px; }
  .docmain { padding-block: 28px 72px; }
  .docmain h2 { margin-top: 40px; font-size: 1.3125rem; }
  .callout { padding: 16px; }
  .foot { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
  .foot nav a, .langlist a { display: inline-flex; align-items: center; min-height: 40px; }
  .stores { gap: 10px; }
  .store img { height: 44px; }
  .soon { height: 44px; }
}
@media (max-width: 440px) {
  .dcard { min-height: 196px; padding: 14px 16px; }
  .dcard .idn { font-size: 22px; line-height: 26px; margin-top: 24px; }
  .dcard .hd { font-size: 17px; }
  .dcard .fl span { font-size: 14px; }
  .tv { font-size: 22px; line-height: 26px; }
  .tl-labels { font-size: 11px; }
  .widget { grid-template-columns: 1fr; border-radius: 24px; }
  .mtabs { overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .mtabs::-webkit-scrollbar { display: none; }
  .mtabs span { flex: none; }
  .rows .row { padding: 12px; gap: 10px; }
}
.docmain a, .callout a { overflow-wrap: anywhere; }

/* ---------- Motion ---------- */
:root { interpolate-size: allow-keywords; }

/* Moving between pages: a short cross-fade where the browser supports it. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .22s var(--ease) both vt-out; }
::view-transition-new(root) { animation: .38s var(--ease) both vt-in; }
.top { view-transition-name: top; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* The hero arrives in order: words, buttons, then the stack of cards settling into place. */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes drop { from { opacity: 0; transform: translateY(-22px) scale(.96); } }
@keyframes land { from { opacity: 0; transform: translateY(36px) rotate(-2.5deg) scale(.97); } }
@keyframes pop { 0% { opacity: 0; transform: scale(.6); } 70% { transform: scale(1.06); } }
.herocopy > * { animation: rise .8s var(--ease) both; }
.herocopy > :nth-child(2) { animation-delay: 90ms; }
.herocopy > :nth-child(3) { animation-delay: 180ms; }
.herocopy > :nth-child(4) { animation-delay: 260ms; }
.hero .peek { animation: drop .7s var(--settle) both; }
.hero .peek:nth-child(1) { animation-delay: 380ms; }
.hero .peek:nth-child(2) { animation-delay: 300ms; }
.hero .peek:nth-child(3) { animation-delay: 220ms; }
.hero .dcard { animation: land .9s var(--settle) 120ms both; }
.hero .vh .tv { animation: rise .7s var(--ease) 520ms both; }
.hero .vh .badge { animation: pop .55s var(--settle) 700ms both; }
.hero figcaption { animation: rise .7s var(--ease) 800ms both; }
.hero .stack { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease); will-change: transform; }

/* The card's sheen drifts across once, like light catching a laminated page. */
.hero .dcard::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%);
  transform: translateX(-120%); animation: sheen 1.6s var(--ease) 1.1s both;
}
@keyframes sheen { to { transform: translateX(120%); } }

/* Blocks below the fold rise in as they are reached (classes set by site.js). */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }
.notifs .rv { transform: translateX(28px) scale(.98); }
.notifs .rv.in { transform: none; }

/* Timelines fill from the left, segment by segment, ending on the current one. */
.fill .seg, .fill i { transform: scaleX(0); transform-origin: left center; }
.fill.go .seg, .fill.go i { transform: none; transition: transform .5s var(--ease), height .45s var(--settle); }
.fill.go > :nth-child(2) { transition-delay: 90ms; } .fill.go > :nth-child(3) { transition-delay: 180ms; }
.fill.go > :nth-child(4) { transition-delay: 270ms; } .fill.go > :nth-child(5) { transition-delay: 360ms; }
.fill.go .cur { animation: glow 1.2s var(--ease) .6s; }
@keyframes glow { 50% { filter: brightness(1.25) saturate(1.2); } }

/* The FAQ opens and closes smoothly where the browser can animate to auto height. */
.qa::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
.qa[open]::details-content { block-size: auto; }
.qa p { transition: opacity .35s var(--ease), transform .4s var(--ease); }
.qa:not([open]) p { opacity: 0; transform: translateY(-6px); }
.langs ul { transform-origin: top right; animation: menu-in .22s var(--ease); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } }

/* Hover, for pointers that hover. */
@media (hover: hover) {
  .plan { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
  .plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
  .store:hover { transform: translateY(-2px); }
  .btn:hover { transform: translateY(-1px); }
  .btn:active, .store:active { transform: scale(.97); }
  .notif { transition: transform .3s var(--ease); }
  .notif:hover { transform: translateY(-2px); }
  .nav a { position: relative; transition: color .2s, background-color .2s; }
  .rows .row { transition: background-color .2s; }
  .rows .row:hover { background: var(--sunken); }
  .rows .row:first-child:hover { border-radius: 16px 16px 0 0; } .rows .row:last-child:hover { border-radius: 0 0 16px 16px; }
  .widget { transition: transform .4s var(--ease); }
  .widget:hover { transform: translateY(-3px) rotate(-.4deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-delay: 0s !important; }
  .rv, .fill .seg, .fill i { opacity: 1 !important; transform: none !important; }
  .hero .stack { transform: none !important; }
  .hero .dcard::after { display: none; }
  @view-transition { navigation: none; }
}
