/* Shared by every page (landing, photo tool, guides): header, footer, passport covers, sliders and scroll reveals.
   Fixed pixel sizes and site- prefixed classes, so it never collides with the landing page's or the app's own rules. */
.site-head {
  --sh-green: #22292B; --sh-green-2: #394447; --sh-ink: #090B0C; --sh-page: #F9FBFB;
  position: relative; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 84px; padding: 0 32px;
  background: color-mix(in srgb, var(--sh-page) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.site-brand {
  justify-self: start; display: flex; align-items: center; gap: 9px;
  color: var(--sh-ink); text-decoration: none;
  font-family: "Inter Tight", Inter, sans-serif; font-weight: 700; font-size: 21px; letter-spacing: -0.02em;
  view-transition-name: brand;
}
/* brand logo (public/brand/*.svg as <img>, so the animation inside them runs). Light/dark pairs swap on data-theme. */
.brand-logo { display: block; height: 28px; width: auto; }
.brand-mark { display: none; height: 28px; width: 28px; }
.on-dark, [data-theme="dark"] .on-light { display: none; }
[data-theme="dark"] .on-dark { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* brand loader (o → 1 → profile); role="status" with hidden text for screen readers */
.ovp-loader { display: inline-grid; place-items: center; line-height: 0; }
.ovp-loader img { width: 100%; height: 100%; }
/* page-to-page loader (NAV_LOADER_SCRIPT in lib/pages.js): brand loader on a frosted page tint.
   .nav-loader covers the page being left; html.nav-loading::after covers the arriving page until it has loaded. */
:root { --nl-scrim: rgba(249, 251, 251, .72); --nl-mark: url(/brand/onevisaphoto-loader.svg); }
[data-theme="dark"] { --nl-scrim: rgba(9, 11, 12, .72); --nl-mark: url(/brand/onevisaphoto-loader-light.svg); }
.nav-loader, html.nav-loading::after {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--nl-scrim); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.nav-loader { display: grid; place-items: center; opacity: 0; transition: opacity .12s ease; pointer-events: none; }
.nav-loader.on { opacity: 1; pointer-events: auto; }
.nav-loader .ovp-loader { width: 56px; height: 56px; }
html.nav-loading::after { content: ""; background: var(--nl-mark) center / 56px 56px no-repeat, var(--nl-scrim); transition: opacity .2s ease; }
html.nav-loaded::after { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .nav-loader, html.nav-loading::after { transition: none; } }
.site-nav { display: flex; gap: 31px; font-size: 15.5px; font-weight: 400; }
.site-nav a { color: var(--sh-ink); text-decoration: none; white-space: nowrap; transition: color .2s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--sh-green); }
.site-nav a[aria-current="page"] { font-weight: 500; }
.site-nav .nav-short { display: none; }
.site-cta {
  justify-self: end; display: inline-flex; align-items: center; height: 42px; padding: 0 18px;
  border-radius: 999px; background: var(--sh-green); color: var(--on-green); text-decoration: none;
  font-size: 14.5px; font-weight: 600; transition: background .15s;
}
.site-cta:hover { background: var(--sh-green-2); }
.site-head .site-slot { justify-self: center; }
.site-end { justify-self: end; display: flex; align-items: center; gap: 10px; }
.theme-toggle { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--sh-ink); cursor: pointer; transition: background .15s, color .15s; }
.theme-toggle:hover { background: rgba(34, 41, 43, .06); }
.theme-toggle:focus-visible { outline: 2px solid var(--sh-green); outline-offset: 2px; }
.theme-toggle svg { width: 19px; height: 19px; display: block; }
.theme-toggle .tt-sun, [data-theme="dark"] .theme-toggle .tt-moon { display: none; }
[data-theme="dark"] .theme-toggle .tt-sun { display: block; }
@media (max-width: 960px) {
  .site-head { grid-template-columns: auto 1fr auto; height: 68px; padding: 0 16px; gap: 12px; }
  .theme-toggle { width: 36px; height: 36px; }
  .site-brand { font-size: 20px; gap: 8px; }
  .site-brand .brand-logo { height: 26px; }
  .site-nav { justify-self: end; gap: 16px; font-size: 14px; }
  .site-nav .nav-full { display: none; }
  .site-nav .nav-short { display: inline; }
  .site-cta { display: none; }
  .site-head .site-slot { justify-self: end; }
}

/* ---------- footer: the back of a passport's data page (scan-in in footer.js) ----------
   Security-paper linework fading down the sheet, the links, then the machine-readable zone set
   full width. The MRZ is the one loud element; everything above it stays quiet. */
@property --cpf-scan { syntax: '<percentage>'; inherits: true; initial-value: 100%; }
.cpf {
  --cpf-paper: #F1F3F3; --cpf-ink: #090B0C; --cpf-green: #22292B; --cpf-muted: #4B585B;
  --cpf-rule: #D0D6D8; --cpf-fill: #9CA8AB; --cpf-scan-light: 156, 168, 171; --cpf-green-2: #394447;
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--cpf-paper); color: var(--cpf-ink); border-top: 1px solid var(--cpf-rule);
  font: 14.5px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased;
}
:where(.cpf) ul { list-style: none; margin: 0; padding: 0; }
:where(.cpf) p { margin: 0; }
/* guilloche: interleaved sine strokes, like the background print on a passport page */
.cpf-paper {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='36' fill='none' stroke='%2322292B' stroke-width='.6' stroke-opacity='.22'><path d='M0 18C30 4 90 4 120 18S210 32 240 18'/><path d='M0 18C30 32 90 32 120 18S210 4 240 18'/><path d='M0 9C40 0 80 0 120 9S200 18 240 9'/><path d='M0 27C40 36 80 36 120 27S200 18 240 27'/></svg>");
  background-size: 240px 36px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.cpf-in { box-sizing: border-box; max-width: 1160px; margin: 0 auto; padding: 72px 32px 0; }
.cpf-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }

.cpf-about { max-width: 340px; }
.cpf-brand {
  display: inline-flex; align-items: center; gap: 9px; color: var(--cpf-ink); text-decoration: none;
  font: 700 21px/1 "Inter Tight", Inter, sans-serif; letter-spacing: -.02em;
}
.cpf-brand .brand-logo { height: 26px; }
.cpf-about p { margin-top: 16px; color: var(--cpf-muted); }
.cpf-copy { margin: 48px 0 0; font-size: 13px; color: var(--cpf-muted); }
.cpf-cta {
  display: inline-flex; align-items: center; height: 42px; margin-top: 22px; padding: 0 18px; border-radius: 999px;
  background: var(--cpf-green); color: var(--on-green); text-decoration: none; font-size: 14.5px; font-weight: 600; transition: background .15s;
}
.cpf-cta:hover { background: var(--cpf-green-2); }

.cpf .cpf-h { margin: 4px 0 14px; font: 600 14.5px/1.3 Inter, system-ui, sans-serif; letter-spacing: 0; text-transform: none; color: var(--cpf-ink); }
.cpf-link {
  display: inline-block; padding: 4px 0; color: var(--cpf-muted); text-decoration: underline;
  text-decoration-color: transparent; text-underline-offset: 4px; transition: color .15s, text-decoration-color .15s;
}
.cpf-link:hover { color: var(--cpf-green); text-decoration-color: currentColor; }
.cpf a:focus-visible { outline: 2px solid var(--cpf-green); outline-offset: 3px; border-radius: 4px; }

/* MRZ: 44 monospaced characters per line, sized so a line spans the column exactly
   (IBM Plex Mono advances .6em per character, so 44 characters are 26.4em). */
.cpf-mrz { container-type: inline-size; margin-top: 18px; padding: 28px 0; border-top: 1px solid var(--cpf-rule); }
.cpf-mrz-t {
  position: relative; font: 500 calc(100cqw / 26.4)/1.3 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0; color: var(--cpf-ink); white-space: pre; user-select: none; -webkit-user-select: none;
}
.cpf-mrz-l { display: block; clip-path: inset(-10% calc(100% - var(--cpf-scan)) -10% 0); }
.cpf-mrz-t i { font-style: normal; color: var(--cpf-fill); }
/* the scanner pass: a bar of light leads the print across both lines */
.cpf-mrz-t::after {
  content: ''; position: absolute; top: -8%; bottom: -8%; left: var(--cpf-scan); width: 3px; translate: -50% 0; opacity: 0;
  background: rgb(var(--cpf-scan-light)); box-shadow: 0 0 18px 4px rgba(var(--cpf-scan-light), .55); border-radius: 2px;
}
.cpf[data-in="false"] .cpf-mrz-t { --cpf-scan: 0%; }
.cpf[data-in="true"] .cpf-mrz-t { transition: --cpf-scan 1.6s cubic-bezier(.45, .05, .35, 1) .15s; }
.cpf[data-in="true"] .cpf-mrz-t::after { animation: cpf-bar 1.75s ease .15s both; }
@keyframes cpf-bar { 0%, 100% { opacity: 0; } 8%, 85% { opacity: 1; } }

@media (max-width: 860px) {
  .cpf-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px 24px; }
  .cpf-about { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 560px) {
  .cpf-in { padding: 56px 16px 0; }
  .cpf-copy { margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .cpf .cpf-mrz-t { --cpf-scan: 100% !important; transition: none !important; }
  .cpf .cpf-mrz-t::after { animation: none !important; opacity: 0; }
}

/* ---------- passport cover (our own drawing: cover colour, gold lettering, flag, chip mark) ---------- */
.pp {
  --pp: #1d2b4f;
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  aspect-ratio: 5 / 7; padding: 11% 8% 9%; border-radius: 4px 12px 12px 4px;
  background:
    linear-gradient(115deg, rgba(255,255,255,.16), rgba(255,255,255,0) 38%, rgba(0,0,0,.18) 100%),
    var(--pp);
  box-shadow: inset 6px 0 0 rgba(0,0,0,.18), inset 7px 0 0 rgba(255,255,255,.08), 0 10px 24px rgba(9, 11, 12, .18), 0 2px 4px rgba(9, 11, 12, .12);
  color: #E2C27E; text-align: center; font-family: "Inter Tight", Inter, sans-serif; overflow: hidden;
}
.pp::after { content: ''; position: absolute; inset: 5%; border: 1px solid rgba(226, 194, 126, .28); border-radius: 2px 8px 8px 2px; pointer-events: none; }
.pp-country { font-weight: 700; font-size: var(--pp-fs, 11px); letter-spacing: .14em; text-transform: uppercase; line-height: 1.25; }
.pp-seal { width: 46%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; border: 2px solid #E2C27E; box-shadow: 0 0 0 3px rgba(226, 194, 126, .25); overflow: hidden; background: rgba(0,0,0,.12); }
.pp-seal img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.pp-seal span { font-size: 2em; }
.pp-type { font-weight: 700; font-size: var(--pp-fs, 11px); letter-spacing: .2em; text-transform: uppercase; }
.pp-foot { display: flex; flex-direction: column; align-items: center; width: 100%; }
.pp-chip { width: 16%; aspect-ratio: 5 / 3; border: 1.5px solid #E2C27E; border-radius: 3px; position: relative; margin-top: 6%; }
.pp-chip::before { content: ''; position: absolute; left: 50%; top: 50%; width: 32%; aspect-ratio: 1; border: 1.5px solid #E2C27E; border-radius: 50%; transform: translate(-50%, -50%); }

/* ---------- horizontal slider (native scroll + snap, arrow buttons scroll by one card) ---------- */
.slider { position: relative; }
.slider-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: var(--slide, 280px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 24px; padding: 6px 24px 22px;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track > * { scroll-snap-align: start; }
.slider-btns { display: flex; gap: 8px; }
.slider-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--surface-ink);
  display: grid; place-items: center; cursor: pointer; transition: background .15s, opacity .2s, transform .15s;
}
.slider-btn:hover:not(:disabled) { background: var(--surface-2); }
.slider-btn:active:not(:disabled) { transform: scale(.94); }
.slider-btn:disabled { opacity: .35; cursor: default; }
.slider-btn svg { width: 18px; height: 18px; }

/* ---------- scroll reveal: hidden state is added by JS only, so content shows without it ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(48px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
.js-reveal .reveal-x > * { opacity: 0; transform: translateX(60px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i, 0) * 70ms); }
.js-reveal .reveal-x.in > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal, .js-reveal .reveal-x > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- landing page sections under the hero ---------- */
.home { --h-green: #22292B; --h-green-2: #394447; --h-ink: #090B0C; --h-muted: #4B585B; --h-line: rgba(34, 41, 43, .12); --h-mint: #F1F3F3;
  color: var(--h-ink); font: 15px/1.55 Inter, system-ui, -apple-system, sans-serif;
  /* items waiting to slide in (.reveal-x) sit 60px to the right; clip keeps them from widening the page on
     phones (body overflow-x: hidden doesn't stop that) and, unlike hidden, leaves the sticky flag band working */
  overflow-x: clip; }
.home-in { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.home-sec { padding: 88px 0; border-top: 1px solid var(--h-line); }
.home h2 { margin: 0; font-family: "Inter Tight", Inter, sans-serif; font-weight: 700; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.06; letter-spacing: -0.03em; max-width: 720px; }
.home h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.home p { margin: 0; }
.home-kicker { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--h-muted); margin-bottom: 12px !important; }
.home-lead { color: var(--h-muted); font-size: 17px; line-height: 1.6; max-width: 640px; margin-top: 16px !important; }
.home-lead a { color: var(--h-green); }
.home-link { color: var(--h-green); font-weight: 600; text-decoration: none; white-space: nowrap; display: inline-block; margin-top: 18px; }
.home-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.home-btn { display: inline-flex; align-items: center; height: 50px; padding: 0 24px; margin-top: 26px; border-radius: 999px; background: var(--h-green); color: var(--on-green); font-weight: 600; text-decoration: none; transition: background .15s, transform .15s; }
.home-btn:hover { background: var(--h-green-2); transform: translateY(-1px); }
.home-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 30px; }
.home-head-side { display: flex; flex-direction: column; align-items: flex-end; gap: 0; flex: none; }
.home-head-side .home-link { margin-top: 14px; }

/* full-bleed tracks that line up with the 1160px column */
.home .slider-track { --edge: max(24px, calc((100vw - 1160px) / 2 + 24px)); padding: 8px var(--edge) 28px; scroll-padding: 0 var(--edge); }
/* ---------- how it works: taller than the screen with the content centred, so for a stretch of scrolling it fills the
   whole window and neither the hero above nor the documents below show ---------- */
.how-sec { min-height: 140svh; box-sizing: border-box; display: grid; align-content: center; padding: 116px 0 56px; }
.how-sec .home-in { width: 100%; box-sizing: border-box; }
.how-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.how-hint-touch { display: none; }
@media (hover: none) { .how-hint-mouse { display: none; } .how-hint-touch { display: inline; } }
.how-steps { list-style: none; margin: clamp(28px, 4.5vh, 52px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 340px)); justify-content: center; gap: 12px; }
.how-steps > li { display: flex; justify-content: center; min-width: 0; }
/* StepCard (lib/pages.js stepCard, public/step-card.js). Layers, bottom to top: the step digit as a dot matrix, the
   illustration, the hover twinkle, then chips and text. Light theme: a white card with mist ink dots; dark theme: a black
   card with white dots. step-card.js reads --sc-dot (the dot colour, as r, g, b) and --sc-twinkle (comma list) and
   redraws when the theme changes. */
.step-card { --card-w: min(100%, max(280px, calc((100svh - 360px) / 1.3))); position: relative; width: var(--card-w);
  margin: 0; perspective: 1000px; outline: none; -webkit-tap-highlight-color: transparent;
  --sc-bg: #fff; --sc-line: rgba(34, 41, 43, .12); --sc-line-hover: rgba(34, 41, 43, .28);
  --sc-dot: 34, 41, 43; --sc-twinkle: #F1F3F3,#E3E7E8,#D0D6D8;
  --sc-title: #090B0C; --sc-desc: #4B585B;
  --sc-chip-bg: rgba(34, 41, 43, .04); --sc-chip-line: rgba(34, 41, 43, .12); --sc-chip-ink: #394447; --sc-chip-icon: #67787C;
  --sc-tip-bg: #22292B; --sc-tip-ink: #fff; --sc-tip-ring: rgba(255, 255, 255, .08);
  --sc-shadow: 0 1px 2px rgba(34, 41, 43, .06), 0 12px 28px -16px rgba(34, 41, 43, .3); }
[data-theme="dark"] .step-card {
  --sc-bg: #000; --sc-line: rgba(255, 255, 255, .08); --sc-line-hover: rgba(255, 255, 255, .2);
  --sc-dot: 255, 255, 255; --sc-twinkle: #2e2e2e,#404040,#555555;
  --sc-title: #fff; --sc-desc: rgba(255, 255, 255, .55);
  --sc-chip-bg: rgba(255, 255, 255, .05); --sc-chip-line: rgba(255, 255, 255, .1); --sc-chip-ink: rgba(255, 255, 255, .72); --sc-chip-icon: rgba(255, 255, 255, .55);
  --sc-tip-bg: #fff; --sc-tip-ink: #18181b; --sc-tip-ring: rgba(24, 24, 27, .08);
  --sc-shadow: none; }
.step-card[role="button"] { cursor: pointer; }
/* hover tilt (step-card.js) on a wrapper, so it combines with the flip on the inner layer */
.step-card__tilt { position: relative; transform-style: preserve-3d; }
.step-card[data-tilting] { z-index: 2; }
/* the hint that follows the pointer ("Click for details" / "Click to turn back"); step-card.js moves it, mouse only */
.step-card__tip { position: absolute; top: 0; left: 0; z-index: 4; margin: 16px 0 0 14px; padding: 5px 9px; border-radius: 7px;
  background: var(--sc-tip-bg); box-shadow: 0 0 0 1px var(--sc-tip-ring), 0 8px 18px -8px rgba(0, 0, 0, .45);
  color: var(--sc-tip-ink); font-size: 12px; font-weight: 500; line-height: 16px; white-space: nowrap;
  opacity: 0; pointer-events: none; transform-origin: 0 0; will-change: transform, opacity; }
.step-card__inner { position: relative; aspect-ratio: 4 / 5.2; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.step-card[data-flipped] .step-card__inner { transform: rotateY(180deg); }
.step-card__face { position: absolute; inset: 0; overflow: hidden; border-radius: 16px; border: 1px solid var(--sc-line);
  backface-visibility: hidden; -webkit-backface-visibility: hidden; isolation: isolate; transition: border-color .3s ease; }
.step-card__front { background: var(--sc-bg); color: var(--sc-title); box-shadow: var(--sc-shadow); }
.step-card__back { transform: rotateY(180deg); }
.step-card__num, .step-card__art, .step-card__pixels { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.step-card__num { z-index: 0; opacity: .55; transition: opacity .4s ease; }
.step-card__art { z-index: 1; opacity: .6; transition: opacity .4s ease;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 72%); mask-image: linear-gradient(to bottom, #000 30%, transparent 72%); }
.step-card__pixels { z-index: 2; }
.step-card__chips { position: absolute; z-index: 3; top: 12px; left: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.step-card__chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: var(--sc-chip-bg);
  border: 1px solid var(--sc-chip-line); color: var(--sc-chip-ink); font-size: 13px; line-height: 1; font-weight: 400; white-space: nowrap; }
.step-card__chip svg { width: 14px; height: 14px; color: var(--sc-chip-icon); }
/* the summary reserves room for three lines, so the titles line up across cards */
.step-card__text { position: absolute; z-index: 3; left: 14px; right: 14px; bottom: 14px; }
.home .step-card__text h3 { margin: 0 0 6px; color: var(--sc-title); font: 500 20px/1.3 Inter, sans-serif; letter-spacing: -.01em; }
.step-card__text p { margin: 0; min-height: 5.2em; color: var(--sc-desc); font-size: 15px; line-height: 1.5; }
@media (hover: hover) {
  .step-card:hover .step-card__front { border-color: var(--sc-line-hover); }
  .step-card:hover .step-card__num { opacity: .85; }
  .step-card:hover .step-card__art { opacity: .9; }
}
.step-card:focus-visible .step-card__front { border-color: var(--sc-line-hover); }
.step-card:focus-visible .step-card__face { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(34, 41, 43, .6); }
@media (prefers-reduced-motion: reduce) { .step-card__inner, .step-card__face, .step-card__num, .step-card__art { transition: none; } }
.how-n { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 50%;
  background: #E3E7E8; color: var(--h-green); font: 700 15px/1 "Inter Tight", Inter, sans-serif; }

/* the back: the details */
.step-card__back { --sc-line: rgba(34, 41, 43, .12); background: linear-gradient(160deg, #F9FBFB, #E3E7E8); }
.home .how-back h3 { margin: 0 0 6px; font: 700 clamp(19px, 1.7vw, 22px)/1.15 "Inter Tight", Inter, sans-serif; letter-spacing: -.02em; }
.how-back { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 24px 22px 20px; color: var(--h-ink); }
.how-back .how-n { background: var(--h-green); color: var(--on-green); }
.how-back ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.how-back li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: var(--h-ink); }
.how-back li svg { flex: none; width: 18px; height: 18px; margin-top: 1px; padding: 3px; box-sizing: border-box; border-radius: 50%; background: var(--ok-soft); color: var(--ok-ink); }
.how-back-link { margin-top: auto; color: var(--h-green); font-weight: 600; text-decoration: none; font-size: 14.5px; }
.how-back-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.how-back-hint { margin-top: 8px; color: var(--h-muted); font-size: 12px; }

/* popular documents: just the passport. Hovering its right side (first tap on touch, keyboard
   focus) opens it like a book: the cover swings over on its spine, its inside becomes the left
   page (photo size) and the right page shows the rules. Opening and placement: site.js. */
.doc-slide { position: relative; display: block; color: inherit; text-decoration: none; outline: none; -webkit-tap-highlight-color: transparent; perspective: 2200px; perspective-origin: 0 50%; }
.doc-slide.open { z-index: 3; }
.doc-book {
  --ease: cubic-bezier(.45, .05, .2, 1);
  position: relative; display: block; aspect-ratio: 5 / 7; transform-style: preserve-3d; transform-origin: 0 50%;
  transition: transform .9s var(--ease);
}
/* the open book is centred where it fits in the row (and scaled down if two pages don't fit) */
.doc-slide.open .doc-book { transform: translateX(var(--shift, 50%)) scale(var(--fit, 1)); }
.doc-cover {
  position: absolute; inset: 0; transform-origin: 0 50%; transform-style: preserve-3d;
  transition: transform .9s var(--ease);
}
.doc-slide.open .doc-cover { transform: rotateY(-180deg); }
.doc-face { position: absolute; inset: 0; display: grid; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.doc-front .pp { width: 100%; height: 100%; --pp-fs: 12px; transition: box-shadow .35s; }
.doc-slide:hover .doc-front .pp { box-shadow: inset 6px 0 0 rgba(0,0,0,.18), inset 7px 0 0 rgba(255,255,255,.08), 0 18px 38px rgba(9, 11, 12, .24), 0 3px 6px rgba(9, 11, 12, .14); }
/* a hint at the right edge that the cover can be lifted */
.doc-front::after {
  content: ''; position: absolute; top: 6%; bottom: 6%; right: -3px; width: 4px; border-radius: 0 3px 3px 0;
  background: repeating-linear-gradient(180deg, #F3EEDF 0 2px, #DDD6C3 2px 3px); z-index: -1;
}

/* paper */
.doc-page {
  color: #23302A; font-size: 12.5px; line-height: 1.35; overflow: hidden;
  background:
    repeating-radial-gradient(circle at 120% -10%, transparent 0 7px, color-mix(in srgb, var(--pp) 7%, transparent) 7px 8px),
    linear-gradient(160deg, #FBF8EF, #F1ECDD);
}
.doc-right {
  position: absolute; inset: 0; display: grid; grid-template-rows: auto auto 1fr auto auto; gap: 12px;
  padding: 20px 18px 0 20px; border-radius: 3px 12px 12px 3px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.05), 0 10px 24px rgba(9, 11, 12, .14);
  transition: box-shadow .9s var(--ease);
}
/* the page is shaded while the cover lies on it, and keeps a soft spine fold once open */
.doc-right::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(9,11,12,.16), rgba(9,11,12,0) 22px);
}
.doc-right::after { content: ''; position: absolute; inset: 0; background: rgba(9,11,12,.35); pointer-events: none; transition: opacity .9s var(--ease); }
.doc-slide.open .doc-right::after { opacity: 0; }
.doc-slide.open .doc-right { box-shadow: inset 0 0 0 1px rgba(0,0,0,.05), 14px 22px 40px rgba(9, 11, 12, .18); }
/* the open book's shadow under the left page: a flat layer beneath, fading in as the cover lands */
.doc-book::before {
  content: ''; position: absolute; inset: 0; right: 100%; left: -100%; border-radius: 12px 3px 3px 12px;
  box-shadow: -14px 22px 40px rgba(9, 11, 12, .18); opacity: 0; transition: opacity .5s ease; pointer-events: none;
}
.doc-slide.open .doc-book::before { opacity: 1; transition-delay: .4s; }
.doc-left {
  transform: rotateY(180deg); align-content: center; justify-items: center; text-align: center; gap: 4px; padding: 20px;
  border-radius: 12px 3px 3px 12px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.05);
}
.doc-left::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(270deg, rgba(9,11,12,.16), rgba(9,11,12,0) 22px); }

.doc-page-top { display: flex; justify-content: space-between; align-items: center; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--pp); }
.doc-code { padding: 2px 6px; border-radius: 4px; background: var(--pp); color: #E2C27E; letter-spacing: .1em; }
.doc-page .doc-slide-name { font-family: "Inter Tight", Inter, sans-serif; font-weight: 700; font-size: 18px; line-height: 1.15; letter-spacing: -0.01em; color: #090B0C; }
.doc-page small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #7A847D; }
.doc-rows { display: grid; align-content: start; gap: 10px; padding-top: 12px; border-top: 1px dashed rgba(9,11,12,.16); color: #090B0C; font-weight: 500; font-size: 13px; }
.doc-page .doc-slide-more { font-size: 13px; font-weight: 600; color: var(--h-green, #22292B); }
.doc-mrz { margin: 0 -18px 0 -20px; padding: 7px 10px 8px 20px; font: 9.5px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; color: rgba(9,11,12,.42); background: rgba(9,11,12,.035); white-space: nowrap; overflow: hidden; }
.doc-size { font-family: "Inter Tight", Inter, sans-serif; font-size: 22px; font-weight: 700; color: #090B0C; letter-spacing: -0.01em; margin-bottom: 14px; }
.doc-photo { display: flex; align-items: stretch; gap: 8px; }
.doc-photo-frame { width: 116px; display: grid; place-items: end center; overflow: hidden; border-radius: 3px; background: #fff; box-shadow: 0 0 0 1px rgba(9,11,12,.14), 0 4px 10px rgba(9,11,12,.08); }
.doc-photo-frame svg { width: 82%; height: auto; fill: color-mix(in srgb, var(--pp) 55%, #9AA59E); }

.doc-slide:focus-visible .doc-right { box-shadow: 0 0 0 3px var(--h-green, #22292B), 14px 22px 40px rgba(9, 11, 12, .18); }
@media (prefers-reduced-motion: reduce) { .doc-book, .doc-cover, .doc-right, .doc-right::after { transition: none; } }
.pp-flag { width: 100%; height: 100%; object-fit: cover; display: block; }

/* the shared standard */
.home-split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.home-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.home-rules li { display: grid; grid-template-columns: 26px 1fr; column-gap: 12px; padding: 16px 18px; background: var(--surface); border-radius: 16px; box-shadow: 0 0 0 1px var(--h-line); }
.home-rules li::before { content: '✓'; grid-row: span 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ok-soft); color: var(--ok-ink); font-weight: 700; font-size: 13px; }
.home-rules b { font-size: 15px; }
.home-rules span { color: var(--h-muted); font-size: 14px; line-height: 1.5; }

/* sizes table */
/* overflow stays visible: the hover glow (border-glow.js) blooms 40px outside the box and would add scrollbars */
.home-table-wrap { margin-top: 30px; background: var(--surface); border-radius: 22px; overflow: visible; box-shadow: 0 1px 2px rgba(34,41,43,.06), 0 14px 36px rgba(34,41,43,.08); }
.home-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.home-table th, .home-table td { text-align: left; padding: 18px 24px; border-top: 1px solid var(--h-line); vertical-align: top; }
.home-table thead th { border-top: 0; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--h-muted); background: var(--surface-3); }
.home-table thead th:first-child { border-top-left-radius: 22px; }
.home-table thead th:last-child { border-top-right-radius: 22px; }
.home-table tbody th a { display: inline-flex; align-items: center; gap: 10px; color: var(--h-ink); text-decoration: none; font-weight: 600; }
.home-table tbody th a:hover { color: var(--h-green); text-decoration: underline; text-underline-offset: 3px; }
.home-table-flag { width: 24px; height: 18px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.home-table td { color: var(--h-muted); }

/* guides */
/* horizontal scroll only: overflow-x:auto turns overflow-y to auto too, and the hover lift + border glow then scroll the cards vertically */
.guide-track { --slide: 290px; overflow-y: hidden; }
.guide-slide { display: flex; flex-direction: column; gap: 8px; min-height: 230px; padding: 26px; border-radius: 22px; background: var(--surface); color: inherit; text-decoration: none;
  box-shadow: 0 0 0 1px var(--h-line); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, background .3s; }
.guide-slide:hover { transform: translateY(-5px); box-shadow: 0 0 0 1px rgba(34,41,43,.2), 0 18px 40px rgba(34,41,43,.12); }
.guide-slide-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 10px; border-radius: 14px; background: var(--h-mint); color: var(--h-green); }
.guide-slide-icon svg { width: 24px; height: 24px; }
.guide-slide b { font-size: 18px; letter-spacing: -0.01em; }
.guide-slide > span:not(.guide-slide-icon):not(.doc-slide-more) { color: var(--h-muted); font-size: 14.5px; }

/* ---------- FAQ: heading + buttons on the left; pill questions with a round toggle beside them; answers open as a
   speech bubble set in to the right. faqBlock() in lib/pages.js (home page + photo guide); public/faq.js animates it.
   Pill = soft mist fill (a step brighter when open). Toggle = outlined circle; open, it fills with the primary and the
   plus turns into a minus. Bubble = the primary, so it reads as the inverse of the page in both themes. */
.faq { --fq-ink: #090B0C; --fq-muted: #4B585B; --fq-pill: #F1F3F3; --fq-pill-hover: #E9EDEE; --fq-pill-open: #E3E7E8;
  --fq-line: rgba(34, 41, 43, .22); --fq-line-hover: rgba(34, 41, 43, .5); --fq-primary: #22292B; --fq-primary-2: #394447;
  --fq-ring: rgba(34, 41, 43, .6); --fq-ease: cubic-bezier(.22, .8, .2, 1);
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); gap: 56px; align-items: start; }
[data-theme="dark"] .faq { --fq-ink: #F1F3F3; --fq-muted: #9CA8AB; --fq-pill: #22292B; --fq-pill-hover: #2D3538; --fq-pill-open: #394447;
  --fq-line: rgba(227, 231, 232, .24); --fq-line-hover: rgba(227, 231, 232, .55); --fq-primary: #E3E7E8; --fq-primary-2: #F9FBFB;
  --fq-ring: rgba(227, 231, 232, .6); }
.faq-head { position: sticky; top: 96px; }   /* stays beside a long list of questions */
.faq-head h2 { margin: 0; font-family: "Inter Tight", Inter, sans-serif; font-weight: 700; font-size: clamp(32px, 4vw, 52px);
  line-height: 1.04; letter-spacing: -.03em; color: var(--fq-ink); }
.faq-lead { margin: 16px 0 0; color: var(--fq-muted); font-size: 17px; line-height: 1.6; max-width: 420px; }
.faq-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.faq-btn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  background: var(--fq-primary); color: var(--on-green); font-weight: 500; font-size: 16px; text-decoration: none;
  transition: background .2s, border-color .2s, transform .2s var(--fq-ease); }
.faq-btn:hover { background: var(--fq-primary-2); transform: translateY(-1px); }
.faq-btn--line { background: transparent; color: var(--fq-ink); border-color: var(--fq-line); }
.faq-btn--line:hover { background: transparent; border-color: var(--fq-line-hover); }
.faq-btn svg { width: 18px; height: 18px; transition: transform .2s var(--fq-ease); }
.faq-btn--line:hover svg { transform: translateX(3px); }
.faq-btn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--fq-ring); }
.faq-list { display: grid; gap: 20px; }
.faq-item > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; outline: none;
  -webkit-tap-highlight-color: transparent; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-q { flex: 0 1 75%; min-width: 0; padding: 12px 22px; min-height: 48px; display: flex; align-items: center; border-radius: 999px;
  background: var(--fq-pill); color: var(--fq-ink); font-size: 17px; line-height: 1.35; transition: background .3s var(--fq-ease); }
.faq-item > summary:hover .faq-q { background: var(--fq-pill-hover); }
.faq-item > summary:focus-visible .faq-q { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--fq-ring); }
.faq-plus { flex: none; position: relative; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--fq-line);
  color: var(--fq-ink); transition: background .3s var(--fq-ease), color .3s var(--fq-ease), box-shadow .3s, transform .4s var(--fq-ease); }
.faq-plus::before, .faq-plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; margin: -.75px 0 0 -5.5px;
  border-radius: 2px; background: currentColor; transition: transform .4s var(--fq-ease); }
.faq-plus::after { transform: rotate(90deg); }
.faq-item > summary:hover .faq-plus { box-shadow: inset 0 0 0 1px var(--fq-line-hover); }
/* open (data-closing is set by faq.js while the answer folds away, so pill and toggle turn back straight away) */
.faq-item[open]:not([data-closing]) .faq-q { background: var(--fq-pill-open); }
.faq-item[open]:not([data-closing]) .faq-plus { background: var(--fq-primary); color: var(--on-green); box-shadow: none; transform: rotate(180deg); }
.faq-item[open]:not([data-closing]) .faq-plus::after { transform: rotate(0deg); }
.faq-a { overflow: hidden; }
.faq-a p { margin: 16px 0 4px 25%; padding: 18px 22px; border-radius: 22px; background: var(--fq-primary); color: var(--on-green);
  font-size: 16px; line-height: 1.65; }
.faq-a p a { color: inherit; }
@media (max-width: 900px) {
  .faq { grid-template-columns: 1fr; gap: 32px; }
  .faq-head { position: static; }
}
@media (max-width: 600px) {
  .faq-list { gap: 14px; }
  .faq-q { flex-basis: auto; flex-grow: 1; font-size: 15.5px; padding: 11px 18px; }
  .faq-a p { margin-left: 12%; font-size: 15px; padding: 16px 18px; }
  .faq-btn { height: 46px; padding: 0 20px; font-size: 15px; }
}

/* closing call to action */

@media (max-width: 860px) {
  .home-sec { padding: 60px 0; }
  .home-in { padding: 0 16px; }
  .home .slider-track { --edge: 16px; }
  .home-head { flex-direction: column; align-items: flex-start; gap: 0; margin-bottom: 20px; }
  .home-head-side { flex-direction: row-reverse; align-items: center; justify-content: space-between; width: 100%; margin-top: 14px; }
  .home-head-side .home-link { margin-top: 0; }
  /* how it works on phones: a swipe row, one card at a time with the next peeking in; dots show the step (site.js) */
  .how-sec { min-height: 0; display: block; padding: 60px 0 44px; }
  .how-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .how-steps { display: flex; justify-content: flex-start; gap: 14px; margin: 24px -16px 0; padding: 8px 16px 18px; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .how-steps::-webkit-scrollbar { display: none; }
  .how-steps > li { flex: 0 0 min(86%, 340px); scroll-snap-align: center; }
  .step-card { --card-w: 100%; }
  .home .how-dots { display: flex; justify-content: center; gap: 8px; }
  .how-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(103, 120, 124, .4); cursor: pointer; transition: width .3s ease, background-color .3s ease; }
  .how-dots button[aria-current="true"] { width: 22px; background: var(--h-green); }
  .how-dots button:focus-visible { outline: 2px solid var(--h-green); outline-offset: 3px; }
  .home-split { grid-template-columns: 1fr; gap: 28px; }
  .doc-right { padding: 16px 14px 0 16px; gap: 9px; }
  .doc-mrz { margin: 0 -14px 0 -16px; }
  .doc-photo-frame { width: 100px; }
  .guide-track { --slide: 250px; }
  .home-table thead { display: none; }
  .home-table, .home-table tbody, .home-table tr, .home-table th, .home-table td { display: block; }
  .home-table tr { padding: 14px 18px; border-top: 1px solid var(--h-line); }
  .home-table tr:first-child { border-top: 0; }
  .home-table th, .home-table td { padding: 2px 0; border: 0; }
  .home-table td::before { content: attr(data-label) ': '; color: var(--h-ink); font-weight: 500; }
}
@media (max-width: 960px) { .site-head .app-nav { display: none; } }

/* =====================================================================
   Liquid Glass (web translation of Apple's iOS 26 material), on every page.
   One clear, refractive material for the navigation layer only: the header,
   buttons, sliders' arrows, tabs and the controls over photos. Content (photos,
   cards, text) stays solid. glass.js picks the controls and adds:
     backdrop – on Chromium an SVG lens that bends the background at the rim and
                splits it slightly into red / green / blue, so colour only fringes
                where there is real content behind the glass (stronger while dragged)
     ::after  – a specular highlight that follows the pointer (--mx / --my)
   ===================================================================== */
:root { --lg-spring: cubic-bezier(.34, 1.56, .64, 1); }
/* status green: pass / accepted / done ticks only (like red and amber); never buttons, links, hover or focus */
/* Tailwind's mist scale (exact oklch from Tailwind's source). The hex tokens used across the site are these steps. */
:root {
  --mist-50: oklch(98.7% 0.002 197.1); --mist-100: oklch(96.3% 0.002 197.1); --mist-200: oklch(92.5% 0.005 214.3);
  --mist-300: oklch(87.2% 0.007 219.6); --mist-400: oklch(72.3% 0.014 214.4); --mist-500: oklch(56% 0.021 213.5);
  --mist-600: oklch(45% 0.017 213.2); --mist-700: oklch(37.8% 0.015 216); --mist-800: oklch(27.5% 0.011 216.9);
  --mist-900: oklch(21.8% 0.008 223.9); --mist-950: oklch(14.8% 0.004 228.8);
}
:root { --ok: #16A34A; --ok-ink: #166534; --ok-soft: #DCFCE7; --on-ok: #fff; }
/* surfaces shared by every page; the dark theme block at the end of this file redefines them */
:root { --surface: #fff; --surface-2: #F1F3F3; --surface-3: #F9FBFB; --surface-ink: #22292B; --line-2: rgba(34, 41, 43, .18);
  --on-green: #fff; --feature: #22292B; }
:where(.lg) { position: relative; }   /* zero specificity: absolute / sticky controls keep theirs */
.lg {
  isolation: isolate;
  color: var(--surface-ink);
  background: rgba(255, 255, 255, .14) !important;
  -webkit-backdrop-filter: blur(6px) saturate(185%) brightness(1.05);
  backdrop-filter: blur(6px) saturate(185%) brightness(1.05);
  border: 0 !important;
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, .9),     /* lit top rim */
    inset 0 -1px 1px rgba(255, 255, 255, .45),     /* bottom rim */
    inset 0 0 6px rgba(255, 255, 255, .35),        /* thickness */
    0 0 0 .5px rgba(9, 11, 12, .10),              /* hairline on light backgrounds */
    0 12px 28px -10px rgba(22, 27, 29, .28) !important;
  transition: transform .45s var(--lg-spring), box-shadow .25s;
}
.lg::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background:
    radial-gradient(130px 60px at var(--mx, 28%) var(--my, -18%), rgba(255, 255, 255, .7), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .22), transparent 45%);
  mix-blend-mode: soft-light;
}
.lg > * { position: relative; z-index: 3; }
.lg:is(button, a, label, .ba-knob) { cursor: pointer; }
/* interactive: grows and glows a little under the finger, springs back */
.lg-press:hover:not(:disabled) { box-shadow: inset 0 1.5px 1px #fff, inset 0 -1px 1px rgba(255, 255, 255, .55), inset 0 0 10px rgba(255, 255, 255, .5), 0 0 0 .5px rgba(9, 11, 12, .12), 0 16px 32px -10px rgba(22, 27, 29, .32) !important; }
.lg-press:active:not(:disabled) { transform: scale(1.04); }
.lg:disabled { opacity: .5; }

/* over photos: same glass; labels carry a light smoke so white text reads on white backgrounds too */
.on-photo.lg { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); background: rgba(255, 255, 255, .06) !important; }

/* header: a floating glass bar */
.site-head.lg { background: rgba(255, 255, 255, .22) !important; -webkit-backdrop-filter: blur(16px) saturate(185%); backdrop-filter: blur(16px) saturate(185%); }
.site-head.lg { height: 64px; margin: 12px 16px 0; padding: 0 12px 0 20px; border-radius: 999px; color: var(--sh-ink); }

.site-head.lg .site-nav a { padding: 8px 12px; border-radius: 999px; }
/* bare at the top of the page and after scrolling pauses (glass.js toggles .sh-bare) */
.site-head.lg { transition: background-color .35s ease, box-shadow .35s ease; }
.site-head.lg::after { transition: opacity .35s ease; }
.site-head.lg.sh-bare { background: transparent !important; box-shadow: none !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-head.lg.sh-bare::after { opacity: 0; }

/* sliding glass lens behind the active tab / step; it stretches as it moves */
.lg-lens { position: absolute !important; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; pointer-events: none; z-index: 2;
  transition: transform .55s cubic-bezier(.3, 1.25, .5, 1), width .55s cubic-bezier(.3, 1.25, .5, 1), opacity .2s !important; }
.lg-lens.moving { animation: lens-stretch .55s ease; }
@keyframes lens-stretch { 45% { scale: 1.1 .84; } }

.lg-lens.lg { box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, .95), inset 0 -1px 1px rgba(255, 255, 255, .5), inset 0 0 6px rgba(255, 255, 255, .45), 0 0 0 .5px rgba(9, 11, 12, .12), 0 3px 8px -3px rgba(22, 27, 29, .25) !important; background: rgba(255, 255, 255, .5) !important; }

/* Accessibility: Reduce Transparency → solid; Increase Contrast → clear edges; Reduce Motion → still glass */
@media (prefers-reduced-transparency: reduce) {
  .lg { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: #fff !important; }
  .on-photo.lg { background: rgba(9, 11, 12, .75) !important; }
  .lg::after { display: none; }
}
@media (prefers-contrast: more) {
  .lg { box-shadow: 0 0 0 1.5px #090B0C !important; }
  .on-photo.lg { background: rgba(9, 11, 12, .75) !important; }
}
@media (prefers-reduced-motion: reduce) {
  .lg, .lg-lens { transition: none !important; animation: none !important; }
}
@media (max-width: 960px) {
  .site-head.lg { margin: 8px 10px 0; height: 56px; padding: 0 8px 0 14px; }
}

/* glass inside glass (header button, tab lens): part of the same pane, no second backdrop */
.lg-inner { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: rgba(255, 255, 255, .38) !important; }

/* shared controls */
.site-cta.lg, .home-btn.lg, .cta.lg { color: var(--surface-ink); background: rgba(103, 120, 124, .10) !important; font-weight: 600; }
.pick.lg { color: var(--surface-ink); }
.slider-btn.lg { color: var(--surface-ink); }
.pick.lg[aria-pressed="true"] { background: rgba(103, 120, 124, .18) !important; font-weight: 600; }
@media (max-width: 480px) {
  .site-head.lg { gap: 4px; padding: 0 6px 0 12px; }
  .site-head.lg .site-brand { font-size: 17px; gap: 6px; }
  .site-head.lg .site-brand .brand-logo { height: 23px; }
  .site-head.lg .site-nav { gap: 2px; font-size: 13px; }
  .site-head.lg .site-nav a { padding: 6px 4px; }
  /* brand, both guide links and the theme toggle share one phone-width bar */
  .site-head .theme-toggle { width: 30px; height: 30px; }
  .site-head .theme-toggle svg { width: 16px; height: 16px; }
}
@media (max-width: 380px) {
  .site-head.lg .site-brand { font-size: 15px; }
  .site-head.lg .site-brand .brand-logo { height: 20px; }
  .site-head.lg .site-nav { font-size: 12px; }
  .site-head.lg .site-nav a { padding: 6px 5px; }
}
/* the smallest phones (320px): the logo mark alone, so both guide links and the theme toggle still fit */
@media (max-width: 340px) {
  .site-head .site-brand .brand-logo { display: none; }
  .site-head .site-brand .brand-mark { display: block; width: 26px; height: 26px; }
}

/* popular documents: flags on the rim of a wheel (hub off the left edge), rolled by page scroll.
   The stage pins; the flat flag picks the document, the background gradient and the passport on the right. site.js. */
.arc-sec { position: relative; height: calc(100svh * (1 + (var(--count) - 1) * .5)); }
.arc-stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 30%) minmax(0, 1fr) auto; align-items: center;
  --arc-bg: #F9FBFB; --arc-ink: #090B0C; --arc-muted: rgba(9, 11, 12, .7); --arc-btn: rgba(255, 255, 255, .28);
  background: var(--arc-bg);
}
.arc-wheel { position: relative; height: 100%; }
.arc-card { position: absolute; left: 0; top: 0; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; background: #ddd; will-change: transform;
  box-shadow: 0 1px 2px rgba(0,0,0,.1), 0 14px 34px -10px rgba(0,0,0,.45); }
.arc-card:focus-visible { outline: 3px solid var(--arc-ink); outline-offset: 3px; }
.arc-flag { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.arc-cap { position: relative; z-index: 50; padding: 40px 32px 0 4%; display: grid; justify-items: start; gap: 8px; min-width: 0; }
.arc-cap .home-kicker { color: var(--arc-ink); }
/* the open passport spreads left over the caption, which steps back */
.arc-cap { transition: opacity .5s ease, filter .5s ease; }
.arc-stage:has(.doc-slide.open) .arc-cap { opacity: .12; filter: blur(2px); }
.arc-side { position: relative; z-index: 50; padding: 40px max(48px, 6vw) 0 0; display: grid; justify-items: center; }
.arc-title { margin: 0; font-size: clamp(28px, 3.6vw, 48px); line-height: 1.02; letter-spacing: -.03em; color: var(--arc-ink); }
.arc-meta { color: var(--arc-muted); font-size: 15px; }
.arc-swap { animation: arc-in .6s ease-out both; }
@keyframes arc-in { from { opacity: 0; transform: translateY(12px); } }
.arc-pass { position: relative; width: 250px; margin: 18px 0 8px; }
.arc-pass .doc-slide { display: none; }
.arc-pass .doc-slide.on { display: block; animation: arc-in .5s ease-out both; }
.arc-all { margin-top: 18px; }
.arc-kicker, .arc-nav, .how-dots { display: none; }
@keyframes deck-out { from { transform: none; opacity: 1; } to { transform: translate(-125%, 18px) rotate(-14deg); opacity: 0; } }
@keyframes deck-in { from { transform: translate(-125%, 18px) rotate(-14deg); opacity: 0; } }
.arc-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.arc-btn { margin-top: 0; height: 46px; padding: 0 20px; }
.arc-cap .arc-btn.lg { color: var(--arc-ink); background: var(--arc-btn) !important; }
@media (max-width: 860px) {
  /* phones: no wheel and no pinned scroll. One centred column with a deck of passports: swipe or use the
     arrows to deal the next one (wraps round), tap the top passport to open it. Deck and swipe: site.js. */
  .arc-sec { height: auto; }
  .arc-stage { position: relative; height: auto; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 64px 16px 56px; }
  .arc-wheel { display: none; }
  .arc-cap, .arc-side { display: contents; }
  .arc-cap > *, .arc-side > * { position: relative; z-index: 1; }
  .arc-kicker { display: block; order: 1; margin: 0 0 8px; color: var(--arc-muted); }
  .arc-title { order: 2; font-size: clamp(22px, 7vw, 28px); min-height: 2.1em; display: flex; align-items: flex-end; justify-content: center; }
  .arc-meta { order: 3; margin: 6px 0 0; }
  .arc-pass { order: 4; width: min(200px, 52vw); aspect-ratio: 5 / 7; margin: 52px 0 0; touch-action: pan-y; z-index: 2; }
  .arc-pass .doc-slide { --d: 0; display: block; position: absolute; inset: 0; z-index: calc(20 - var(--d));
    transform: translateY(calc(var(--d) * -14px)) scale(calc(1 - var(--d) * .07)); transform-origin: 50% 0;
    opacity: calc(1 - var(--d) * .22); transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .35s ease; }
  .arc-pass .doc-slide.on { animation: none; }
  .arc-pass .doc-slide:not(.on) { pointer-events: none; }
  .arc-pass .doc-slide.deep { opacity: 0; visibility: hidden; }
  .arc-pass:has(.open) .doc-slide:not(.open) { opacity: 0; }
  .arc-pass .doc-slide.deal-out { z-index: 30; visibility: visible; animation: deck-out .4s cubic-bezier(.4, 0, .7, .2) forwards; }
  .arc-pass .doc-slide.deal-in { z-index: 30; animation: deck-in .45s cubic-bezier(.2, .8, .2, 1) both; }
  .arc-nav { order: 5; display: flex; align-items: center; gap: 16px; margin-top: 26px; }
  .arc-count { min-width: 64px; color: var(--arc-muted); font: 600 14px/1 "Inter Tight", Inter, sans-serif; font-variant-numeric: tabular-nums; }
  .arc-btns { order: 6; justify-content: center; margin-top: 22px; }
  .arc-btn { height: 44px; padding: 0 18px; }
  .arc-all { order: 7; margin-top: 12px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .arc-stage { animation: none; } .arc-swap, .arc-pass .doc-slide.on { animation: none; } }

/* =====================================================================
   Dark theme. <html data-theme="dark"> is set before paint by the head script in lib/pages.js
   (saved choice, else the system setting). Mist runs the other way round: mist 950 page,
   mist 900 surfaces, light mist for primary and text. Status green gets brighter.
   Passport covers and pages, photos and the flag band stay light on purpose.
   ===================================================================== */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ok: #22C55E; --ok-ink: #86EFAC; --ok-soft: rgba(34, 197, 94, .16); --on-ok: #052E16;
  --surface: #161B1D; --surface-2: #22292B; --surface-3: #22292B; --surface-ink: #E3E7E8; --line-2: rgba(227, 231, 232, .2);
  --on-green: #090B0C; --feature: #22292B;
}
[data-theme="dark"] .site-head { --sh-green: #E3E7E8; --sh-green-2: #F9FBFB; --sh-ink: #F1F3F3; --sh-page: #090B0C; }
[data-theme="dark"] .theme-toggle:hover { background: rgba(255, 255, 255, .08); }

[data-theme="dark"] .cpf {
  --cpf-paper: #111517; --cpf-ink: #F1F3F3; --cpf-green: #E3E7E8; --cpf-green-2: #F9FBFB; --cpf-muted: #9CA8AB;
  --cpf-rule: #22292B; --cpf-fill: #4B585B; --cpf-scan-light: 208, 214, 216;
}
[data-theme="dark"] .cpf-paper { filter: invert(1); opacity: .35; }

[data-theme="dark"] .home { --h-green: #E3E7E8; --h-green-2: #F9FBFB; --h-ink: #F1F3F3; --h-muted: #9CA8AB; --h-line: rgba(227, 231, 232, .12); --h-mint: #22292B; }
[data-theme="dark"] .step-card__back { --sc-line: rgba(227, 231, 232, .1); background: linear-gradient(160deg, #22292B, #161B1D); }
/* the documents band goes black at night; its passports stay light (below) */
[data-theme="dark"] .arc-stage { --arc-bg: #000; --arc-ink: #F1F3F3; --arc-muted: rgba(241, 243, 243, .7); --arc-btn: rgba(255, 255, 255, .08); }
/* light islands: passport pages keep the light tokens */
[data-theme="dark"] .doc-page {
  --h-green: #22292B; --h-green-2: #394447; --h-ink: #090B0C; --h-muted: #4B585B; --h-line: rgba(34, 41, 43, .12); --h-mint: #F1F3F3;
  --surface: #fff; --surface-2: #F1F3F3; --surface-ink: #22292B; --on-green: #fff;
}

/* glass on a dark page: a darker tint, dimmer rims, deeper shadow */
[data-theme="dark"] .lg {
  background: rgba(255, 255, 255, .06) !important;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .22),
    inset 0 -1px 1px rgba(255, 255, 255, .06),
    inset 0 0 6px rgba(255, 255, 255, .05),
    0 0 0 .5px rgba(255, 255, 255, .12),
    0 12px 28px -10px rgba(0, 0, 0, .6) !important;
}
[data-theme="dark"] .lg::after {
  background:
    radial-gradient(130px 60px at var(--mx, 28%) var(--my, -18%), rgba(255, 255, 255, .22), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 45%);
}
[data-theme="dark"] .lg-press:hover:not(:disabled) { box-shadow: inset 0 1px 1px rgba(255, 255, 255, .3), inset 0 -1px 1px rgba(255, 255, 255, .08), inset 0 0 10px rgba(255, 255, 255, .08), 0 0 0 .5px rgba(255, 255, 255, .18), 0 16px 32px -10px rgba(0, 0, 0, .7) !important; }
[data-theme="dark"] :where(.site-cta, .home-btn, .btn-primary, .dz-btn).lg { background: rgba(227, 231, 232, .12) !important; }
[data-theme="dark"] .site-head.lg { background: rgba(22, 27, 29, .55) !important; }
[data-theme="dark"] .site-head.lg.sh-bare { background: transparent !important; box-shadow: none !important; }
[data-theme="dark"] .lg-inner { background: rgba(255, 255, 255, .07) !important; }
[data-theme="dark"] .lg-lens.lg { background: rgba(255, 255, 255, .12) !important; box-shadow: inset 0 1px 1px rgba(255, 255, 255, .25), 0 0 0 .5px rgba(255, 255, 255, .14), 0 3px 8px -3px rgba(0, 0, 0, .5) !important; }
[data-theme="dark"] .on-photo.lg { background: rgba(9, 11, 12, .3) !important; }
[data-theme="dark"] .doc-page .lg { box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, .9), inset 0 -1px 1px rgba(255, 255, 255, .45), 0 0 0 .5px rgba(9, 11, 12, .10), 0 12px 28px -10px rgba(22, 27, 29, .28) !important; }
@media (prefers-reduced-transparency: reduce) { [data-theme="dark"] .lg { background: #161B1D !important; } }
@media (prefers-contrast: more) { [data-theme="dark"] .lg { box-shadow: 0 0 0 1.5px #F1F3F3 !important; } }

/* Header "Make my photo" on the landing page: hidden while the hero (which has its own CTA) fills the view,
   it fades in once the hero has scrolled under the header (landing.html adds .cta-on). Space stays reserved. */
body:has(.hero) .site-head .site-cta {
  transition: opacity .3s ease, transform .45s var(--lg-spring), box-shadow .25s, visibility 0s;
}
body:has(.hero) .site-head:not(.cta-on) .site-cta {
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-6px) scale(.96);
  transition: opacity .3s ease, transform .45s var(--lg-spring), visibility 0s linear .3s;
}
/* size and placement: shorter than the bar, level with the theme toggle that sits after it at the right edge */
@media (min-width: 961px) {
  .site-head.lg { padding-right: 14px; }
  .site-head .site-end { gap: 8px; }
  .site-head .theme-toggle { width: 36px; height: 36px; }
  .site-head .site-cta.lg { height: 36px; padding: 0 16px; font-size: 14px; letter-spacing: -.005em; }
}

/* ---------- Border glow: a vanilla port of React Bits' <BorderGlow /> (MIT) ----------
   public/border-glow.js appends <span class="bglow"> to a card the first time the pointer reaches it and writes
   --edge-proximity (0–100) and --cursor-angle as it moves. Near an edge a mist mesh ring, a soft edge fill and an
   outer bloom light up in a cone that faces the pointer. The card's own layout, background and shadow are untouched.
   Mist only (DESIGN.md): dark mist on light surfaces, light mist on dark ones. */
:root { --bglow-1: #67787C; --bglow-2: #394447; --bglow-3: #9CA8AB; --bglow-glow: #67787C;
  --bglow-blend: normal; --bglow-fill-blend: normal; --bglow-fill: .14; }
[data-theme="dark"], .perfect-card { --bglow-1: #E3E7E8; --bglow-2: #9CA8AB; --bglow-3: #D0D6D8; --bglow-glow: #E3E7E8;
  --bglow-blend: plus-lighter; --bglow-fill-blend: soft-light; --bglow-fill: .5; }
.bglow-host { isolation: isolate; }
.bglow-host.bglow-pos { position: relative; }
/* On a <details> the layer lives in the <summary> (see border-glow.js) and takes its corners from there. The summary
   sits in the details' shadow <slot>, so `inherit` would give 0: each card type sets the summary's radius itself. */
details.card > summary { border-radius: var(--radius, 22px); }
.bglow { --edge-proximity: 0; --cursor-angle: 45deg; --edge-sensitivity: 30; --color-sensitivity: 50; --cone-spread: 25; --glow-padding: 40px;
  --bglow-mesh: radial-gradient(at 80% 55%, var(--bglow-1) 0, transparent 50%), radial-gradient(at 69% 34%, var(--bglow-2) 0, transparent 50%),
    radial-gradient(at 8% 6%, var(--bglow-3) 0, transparent 50%), radial-gradient(at 41% 38%, var(--bglow-1) 0, transparent 50%),
    radial-gradient(at 86% 85%, var(--bglow-2) 0, transparent 50%), radial-gradient(at 82% 18%, var(--bglow-3) 0, transparent 50%),
    radial-gradient(at 51% 4%, var(--bglow-2) 0, transparent 50%), linear-gradient(var(--bglow-1) 0 0);
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.bglow > span { position: absolute; inset: 0; border-radius: inherit; transition: opacity .25s ease-out; }
.bglow-host:not(:hover) > .bglow > span, .bglow-host:not(:hover) > summary > .bglow > span { opacity: 0; transition: opacity .75s ease-in-out; }
/* mesh ring on the border, in a cone facing the pointer */
.bglow-ring { z-index: 2; box-sizing: border-box; padding: 1px; background: var(--bglow-mesh);
  opacity: calc((var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  -webkit-mask: conic-gradient(from var(--cursor-angle) at center, #000 calc(var(--cone-spread) * 1%), transparent calc((var(--cone-spread) + 15) * 1%),
      transparent calc((100 - var(--cone-spread) - 15) * 1%), #000 calc((100 - var(--cone-spread)) * 1%)),
    linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: source-in, xor;
  mask: conic-gradient(from var(--cursor-angle) at center, #000 calc(var(--cone-spread) * 1%), transparent calc((var(--cone-spread) + 15) * 1%),
      transparent calc((100 - var(--cone-spread) - 15) * 1%), #000 calc((100 - var(--cone-spread)) * 1%)),
    linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: intersect, exclude; }
/* soft mesh fill along the edges, under the content */
.bglow-fill { z-index: -1; background: var(--bglow-mesh); mix-blend-mode: var(--bglow-fill-blend);
  opacity: calc(var(--bglow-fill) * (var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  -webkit-mask: linear-gradient(#000 0 0), radial-gradient(ellipse at 50% 50%, #000 40%, transparent 65%),
    radial-gradient(ellipse at 66% 66%, #000 5%, transparent 40%), radial-gradient(ellipse at 33% 33%, #000 5%, transparent 40%),
    radial-gradient(ellipse at 66% 33%, #000 5%, transparent 40%), radial-gradient(ellipse at 33% 66%, #000 5%, transparent 40%),
    conic-gradient(from var(--cursor-angle) at center, transparent 5%, #000 15%, #000 85%, transparent 95%);
  -webkit-mask-composite: source-out, source-over, source-over, source-over, source-over, source-over;
  mask: linear-gradient(#000 0 0), radial-gradient(ellipse at 50% 50%, #000 40%, transparent 65%),
    radial-gradient(ellipse at 66% 66%, #000 5%, transparent 40%), radial-gradient(ellipse at 33% 33%, #000 5%, transparent 40%),
    radial-gradient(ellipse at 66% 33%, #000 5%, transparent 40%), radial-gradient(ellipse at 33% 66%, #000 5%, transparent 40%),
    conic-gradient(from var(--cursor-angle) at center, transparent 5%, #000 15%, #000 85%, transparent 95%);
  mask-composite: subtract, add, add, add, add, add; }
/* outer bloom: a lit edge plus a glow spilling in and out of the card */
.bglow > .bglow-edge { z-index: 2; inset: calc(var(--glow-padding) * -1); mix-blend-mode: var(--bglow-blend);
  opacity: calc((var(--edge-proximity) - var(--edge-sensitivity)) / (100 - var(--edge-sensitivity)));
  -webkit-mask: conic-gradient(from var(--cursor-angle) at center, #000 2.5%, transparent 10%, transparent 90%, #000 97.5%);
  mask: conic-gradient(from var(--cursor-angle) at center, #000 2.5%, transparent 10%, transparent 90%, #000 97.5%); }
.bglow-edge::before { content: ""; position: absolute; inset: var(--glow-padding); border-radius: inherit;
  --g60: color-mix(in srgb, var(--bglow-glow) 60%, transparent); --g50: color-mix(in srgb, var(--bglow-glow) 50%, transparent);
  --g40: color-mix(in srgb, var(--bglow-glow) 40%, transparent); --g30: color-mix(in srgb, var(--bglow-glow) 30%, transparent);
  --g20: color-mix(in srgb, var(--bglow-glow) 20%, transparent); --g10: color-mix(in srgb, var(--bglow-glow) 10%, transparent);
  box-shadow: inset 0 0 0 1px var(--bglow-glow), inset 0 0 1px 0 var(--g60), inset 0 0 3px 0 var(--g50), inset 0 0 6px 0 var(--g40),
    inset 0 0 15px 0 var(--g30), inset 0 0 25px 2px var(--g20), inset 0 0 50px 2px var(--g10),
    0 0 1px 0 var(--g60), 0 0 3px 0 var(--g50), 0 0 6px 0 var(--g40), 0 0 15px 0 var(--g30), 0 0 25px 2px var(--g20), 0 0 50px 2px var(--g10); }
