:root {
  --ink: #0a2342;
  --ink-2: #173b62;
  --blue: #1769e0;
  --blue-dark: #0d52bd;
  --mint: #4de2b1;
  --mint-soft: #dffaf1;
  --sky: #eaf3ff;
  --paper: #ffffff;
  --cloud: #f5f8fc;
  --line: #cbd8e7;
  --muted: #52677d;
  --danger: #b42318;
  --shadow: 0 22px 60px rgba(10, 35, 66, .12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 35%, rgba(77, 226, 177, .14), transparent 25rem),
    radial-gradient(circle at 92% 10%, rgba(23, 105, 224, .12), transparent 28rem),
    var(--cloud);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
button, input, select { font: inherit; }
button, label[for] { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: var(--blue-dark); }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 20; background: white; padding: .75rem 1rem; border-radius: .5rem; }
.skip-link:focus { top: 1rem; }
.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; }

.desktop-gate { display: none; min-height: 100vh; padding: 2rem; place-items: center; background: radial-gradient(circle at 50% 0%, #173b62, var(--ink) 58%); }
.desktop-card { width: min(640px, 100%); padding: clamp(2rem, 5vw, 4rem); border-radius: 30px; background: white; box-shadow: 0 30px 90px rgba(0,0,0,.28); text-align: center; }
.desktop-card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 3rem; }
.desktop-card .brand-mark { width: 52px; height: 52px; background: var(--ink); }
.desktop-card .brand-mark svg { fill: white; }
.desktop-card .brand-mark .check { stroke: var(--mint); }
.desktop-card .language-button { background: white; color: var(--ink); color-scheme: light; border-color: var(--line); }
.desktop-card h1 { max-width: none; font-size: clamp(3rem, 6vw, 4.75rem); }
.desktop-message { max-width: 500px; margin: 1.5rem auto 2rem; color: var(--muted); font-size: 1.2rem; }
.desktop-url { display: grid; gap: .45rem; padding: 1.2rem; border: 2px solid var(--line); border-radius: 16px; background: var(--cloud); overflow-wrap: anywhere; }
.desktop-url span { color: var(--muted); font-size: .9rem; }
.desktop-url strong { color: var(--blue-dark); }
.desktop-privacy { margin: 1.4rem 0 0; color: var(--muted); font-size: .9rem; }

.topbar {
  min-height: 80px;
  padding: 0 clamp(1rem, 4vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--ink);
  color: white;
}
.brand { display: flex; align-items: center; gap: .7rem; color: white; text-decoration: none; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.brand-lockup { display: grid; line-height: 1.05; }
.brand-lockup b { font-size: 1.28rem; }
.brand-lockup small { margin-top: .22rem; color: #b9cce0; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; background: white; border-radius: 12px; }
.brand-mark svg { width: 30px; height: 30px; fill: var(--ink); }
.brand-mark .check { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.top-actions { display: flex; align-items: center; gap: 1rem; }
.not-government { font-size: .86rem; color: #c8d8e8; }
.language-control { position: relative; }
.language-button { min-height: 44px; padding: .5rem 2.2rem .5rem .9rem; border: 1px solid #71879e; border-radius: 10px; background: var(--ink); color: white; font-weight: 700; cursor: pointer; color-scheme: dark; }
.language-button:hover { background: rgba(255,255,255,.08); }

.shell { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 1.2rem 0 4rem; }
.trust-strip { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 44px; margin-bottom: 1.2rem; color: var(--ink-2); font-weight: 700; font-size: .92rem; }
.trust-strip svg { width: 24px; height: 24px; fill: var(--mint-soft); stroke: var(--ink-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.progress { max-width: 560px; margin: 0 auto 1.7rem; }
.progress ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.progress li { position: relative; display: flex; align-items: center; gap: .5rem; color: #728398; font-size: .86rem; font-weight: 700; }
.progress li:not(:last-child)::after { content: ""; position: absolute; left: 40px; right: 10px; top: 16px; height: 2px; background: var(--line); z-index: -1; }
.progress span { width: 34px; height: 34px; display: grid; place-items: center; background: #dde5ee; border: 3px solid var(--cloud); border-radius: 50%; }
.progress .active { color: var(--ink); }
.progress .active span { background: var(--blue); color: white; }
.progress .complete span { background: var(--mint); color: var(--ink); }

.screen { display: none; min-height: 620px; padding: clamp(1.4rem, 5vw, 4.5rem); background: rgba(255,255,255,.96); border: 1px solid #dfe8f2; border-radius: var(--radius); box-shadow: var(--shadow); }
.screen.active { display: block; animation: enter .32s ease-out both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }
.intro-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.eyebrow { margin: 0 0 .8rem; color: var(--blue-dark); font-size: .78rem; font-weight: 900; letter-spacing: .13em; }
h1 { max-width: 820px; margin: 0; font-size: clamp(2.35rem, 6vw, 4.65rem); line-height: .98; letter-spacing: -.055em; }
.lede { max-width: 720px; margin: 1.25rem 0 1.8rem; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.55; }
.choice-block { max-width: 650px; margin: 0 0 1.6rem; }
.choice-block h2 { margin: 0 0 .65rem; font-size: 1rem; }
.big-check { display: flex; align-items: flex-start; gap: .85rem; padding: .9rem 1rem; margin: .65rem 0; border: 1px solid var(--line); border-radius: 14px; background: white; cursor: pointer; }
.big-check:hover { border-color: var(--blue); background: #f8fbff; }
.big-check input { width: 23px; height: 23px; accent-color: var(--blue); flex: 0 0 auto; }
.big-check span { display: grid; gap: .1rem; }
.big-check strong { font-size: 1rem; }
.big-check small { color: var(--muted); font-size: .85rem; }
.deadline-card { max-width: 650px; display: flex; align-items: center; gap: .85rem; margin: 0 0 1.6rem; padding: 1rem; border: 2px solid #f0c44f; border-radius: 16px; background: #fff7da; }
.deadline-card > span { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #f4c943; color: var(--ink); font-weight: 950; }
.deadline-card p { display: grid; gap: .1rem; margin: 0; }
.deadline-card strong { font-size: 1.02rem; }
.deadline-card small { color: var(--muted); font-size: .86rem; }

.primary, .secondary { min-height: 54px; border-radius: 14px; font-weight: 850; cursor: pointer; transition: transform .16s ease, background .16s ease, box-shadow .16s ease; }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; border: 0; padding: .8rem 1.35rem; background: var(--blue); color: white; box-shadow: 0 10px 25px rgba(23,105,224,.25); }
.primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.primary:active, .secondary:active { transform: translateY(1px); }
.primary svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.jumbo { min-height: 66px; padding: .9rem 1.6rem; font-size: 1.15rem; }
.secondary { border: 2px solid var(--line); padding: .8rem 1.2rem; background: white; }
.secondary:hover { border-color: var(--blue); background: var(--sky); }
.full { width: 100%; }
.text-button { display: block; margin-top: 1rem; border: 0; background: none; color: var(--blue-dark); text-decoration: underline; font-weight: 750; cursor: pointer; }

.id-visual { position: relative; min-height: 480px; display: grid; place-items: center; border-radius: 30px; background: linear-gradient(145deg, var(--sky), #dcecff); overflow: hidden; }
.id-visual::before { content: ""; position: absolute; width: 360px; height: 360px; border: 80px solid rgba(255,255,255,.52); border-radius: 50%; }
.sample-id { position: relative; width: min(82%, 400px); aspect-ratio: 1.58; padding: 1.25rem; transform: rotate(-3deg); background: linear-gradient(155deg, white, #e5edf5); border: 1px solid white; border-radius: 20px; box-shadow: 0 25px 50px rgba(10,35,66,.22); }
.sample-head { display: flex; justify-content: space-between; color: var(--blue-dark); font-size: .68rem; letter-spacing: .08em; }
.sample-body { display: grid; grid-template-columns: 34% 1fr; gap: 1rem; margin-top: 1rem; }
.portrait { height: 104px; display: grid; place-items: center; background: var(--sky); border-radius: 12px; overflow: hidden; }
.portrait svg { width: 70px; fill: #9eb3c9; }
.sample-lines { display: grid; align-content: center; gap: .65rem; }
.sample-lines b, .sample-lines span { display: block; height: 7px; border-radius: 10px; background: #9eb3c9; }
.sample-lines b { width: 74%; height: 12px; background: var(--ink-2); }
.sample-lines span:nth-child(3) { width: 85%; }
.sample-lines span:nth-child(4) { width: 62%; }
.barcode { height: 33px; margin-top: 1.1rem; background: repeating-linear-gradient(90deg, #152e49 0 2px, transparent 2px 4px, #152e49 4px 5px, transparent 5px 8px); opacity: .72; }
.scan-corners { position: absolute; inset: 11%; z-index: 2; pointer-events: none; }
.scan-corners i { position: absolute; width: 58px; height: 58px; border-color: var(--blue); border-style: solid; }
.scan-corners i:nth-child(1) { left: 0; top: 0; border-width: 5px 0 0 5px; border-radius: 15px 0 0 0; }
.scan-corners i:nth-child(2) { right: 0; top: 0; border-width: 5px 5px 0 0; border-radius: 0 15px 0 0; }
.scan-corners i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 5px 5px; border-radius: 0 0 0 15px; }
.scan-corners i:nth-child(4) { right: 0; bottom: 0; border-width: 0 5px 5px 0; border-radius: 0 0 15px 0; }
.local-pill { position: absolute; bottom: 1.6rem; display: flex; align-items: center; gap: .5rem; padding: .55rem .8rem; background: var(--ink); color: white; border-radius: 999px; font-size: .82rem; }
.local-pill span { width: 9px; height: 9px; background: var(--mint); border-radius: 50%; box-shadow: 0 0 0 4px rgba(77,226,177,.18); }

.back-button { margin: -1rem 0 2rem; border: 0; background: none; color: var(--blue-dark); font-weight: 800; cursor: pointer; }
.back-button span:first-child { font-size: 1.7rem; vertical-align: -.1rem; }
.narrow { width: min(700px, 100%); margin: 0 auto; }
.narrow h1, #check-title { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.scanner { min-height: 300px; display: grid; place-items: center; align-content: center; gap: .55rem; padding: 2rem; border: 3px dashed #8eb8ea; border-radius: 22px; background: var(--sky); text-align: center; cursor: pointer; transition: background .2s, border .2s; }
.scanner:hover { background: #dcecff; border-color: var(--blue); }
.scanner input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.scanner-icon { width: 76px; height: 76px; display: grid; place-items: center; background: white; border-radius: 22px; box-shadow: 0 10px 20px rgba(10,35,66,.1); }
.scanner-icon svg { width: 46px; fill: none; stroke: var(--blue); stroke-width: 2.7; stroke-linecap: round; }
.scanner strong { font-size: 1.25rem; }
.scanner small { color: var(--muted); }
.scan-status, .scan-preview { margin: 1rem 0; padding: 1rem; display: flex; align-items: center; gap: 1rem; border-radius: 15px; background: var(--mint-soft); }
.scan-status[hidden], .scan-preview[hidden] { display: none; }
.scan-status div:last-child, .scan-preview div { display: grid; }
.scan-status span, .scan-preview span { color: var(--muted); font-size: .9rem; }
.spinner { width: 32px; height: 32px; border: 4px solid rgba(23,105,224,.2); border-top-color: var(--blue); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scan-preview img { width: 76px; height: 54px; object-fit: cover; border-radius: 8px; background: white; }

.form-layout { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.2rem; }
.reassurance { min-width: 250px; display: flex; align-items: center; gap: .75rem; padding: 1rem; background: var(--mint-soft); border-radius: 16px; }
.reassurance > span { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; background: var(--mint); border-radius: 50%; font-weight: 900; }
.reassurance p { display: grid; margin: 0; }
.reassurance small { color: var(--muted); }
.field-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.field-grid label { display: grid; gap: .4rem; font-weight: 800; }
.field-grid label > span { font-size: .92rem; }
.field-grid label small { color: var(--muted); font-weight: 500; }
.field-grid .wide { grid-column: span 3; }
.field-grid input, .field-grid select { width: 100%; min-height: 56px; border: 2px solid var(--line); border-radius: 12px; background: white; color: var(--ink); padding: .7rem .85rem; font-size: 1.05rem; }
.fixed-value { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .7rem .85rem; border: 2px solid var(--line); border-radius: 12px; background: var(--sky); font-size: 1.05rem; }
.fixed-value small { padding: .25rem .5rem; background: white; border-radius: 999px; font-size: .72rem !important; }
.field-grid input:focus, .field-grid select:focus { outline: 4px solid rgba(23,105,224,.15); border-color: var(--blue); }
.field-grid .invalid { border-color: var(--danger); }
.form-error { color: var(--danger); font-weight: 750; }
.align-right { display: flex; margin: 1.5rem 0 0 auto; }

.finish-card { width: min(760px, 100%); margin: 0 auto; text-align: center; }
.success-mark { margin-bottom: 1rem; }
.success-mark svg { width: 76px; height: 76px; fill: var(--mint-soft); stroke: var(--blue-dark); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.finish-card .lede { margin-left: auto; margin-right: auto; }
.destination-list { display: grid; gap: .9rem; margin: 2rem 0; text-align: left; }
.destination { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: .8rem; min-height: 86px; padding: 1rem; border: 2px solid var(--line); border-radius: 16px; background: white; color: var(--ink); text-decoration: none; }
.destination:hover { border-color: var(--blue); box-shadow: 0 10px 24px rgba(23,105,224,.11); }
.destination-icon { width: 44px; height: 44px; display: grid; place-items: center; background: var(--sky); border-radius: 12px; font-size: 1.25rem; }
.destination-copy { display: grid; }
.destination-copy small { color: var(--muted); }
.destination-go { color: var(--blue-dark); font-weight: 850; }
.signature-note { display: flex; gap: .9rem; padding: 1rem; margin-bottom: 1.2rem; background: #fff6d9; border-radius: 16px; text-align: left; }
.signature-note svg { width: 28px; flex: 0 0 auto; fill: none; stroke: var(--ink); stroke-width: 1.8; }
.signature-note p { display: grid; margin: 0; }
.signature-note span { color: var(--muted); }
.signature-note a { width: fit-content; margin-top: .55rem; font-weight: 850; }

footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 1rem 0 3rem; color: var(--muted); font-size: .88rem; }
footer a { font-weight: 800; }
.timeout { position: fixed; left: 50%; bottom: 1rem; z-index: 10; transform: translateX(-50%); width: min(560px, calc(100% - 2rem)); display: grid; grid-template-columns: 1fr auto; gap: .15rem 1rem; padding: 1rem 1.1rem; background: var(--ink); color: white; border-radius: 16px; box-shadow: var(--shadow); }
.timeout[hidden] { display: none; }
.timeout span { color: #c8d8e8; }
.timeout button { grid-column: 2; grid-row: 1 / 3; border: 0; padding: .6rem .8rem; border-radius: 10px; background: var(--mint); color: var(--ink); font-weight: 850; cursor: pointer; }

@media (max-width: 850px) {
  .intro-grid { grid-template-columns: 1fr; }
  .id-visual { min-height: 360px; }
  .form-layout { display: grid; }
  .reassurance { min-width: 0; }
  .field-grid { grid-template-columns: 1fr 1fr; }
  .field-grid .wide { grid-column: span 2; }
}
@media (hover: hover) and (pointer: fine) {
  .desktop-gate { display: grid; }
  .mobile-app { display: none; }
}
@media (max-width: 600px) {
  .topbar { min-height: 68px; }
  .not-government { display: none; }
  .shell { width: min(100% - 1rem, 1180px); padding-top: .6rem; }
  .screen { min-height: 0; padding: 1.4rem 1rem 2rem; border-radius: 18px; }
  .trust-strip { justify-content: flex-start; padding: 0 .4rem; font-size: .8rem; }
  .progress strong { display: none; }
  .progress ol { padding-left: 18%; }
  .progress li:not(:last-child)::after { left: 36px; right: 4px; }
  .id-visual { display: none; }
  h1 { font-size: 2.65rem; }
  .field-grid { grid-template-columns: 1fr; }
  .field-grid .wide { grid-column: auto; }
  .align-right { width: 100%; }
  .destination { grid-template-columns: 42px 1fr; }
  .destination-go { grid-column: 2; }
  footer { display: grid; padding: 1rem .5rem 2.5rem; }
  .timeout { grid-template-columns: 1fr; }
  .timeout button { grid-column: auto; grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (prefers-contrast: more) {
  :root { --line: #52677d; --muted: #29435f; }
  .screen { border-width: 2px; }
}
