/* Citizenship Test — the app's page. The same look as the app (ui/theme): the officer's desk — a dark panel,
   the case file on it as plates with cut corners, and one accent, the blue of stamp ink. Always dark.
   Green is only «right», amber only «check this», red only «wrong». The fonts are the app's own (fonts/, OFL):
   Black Ops One for titles, Russo One for labels and buttons, Oswald for short text; paragraphs are set in the
   device's own sans, for reading. */
@font-face { font-family: "Black Ops One"; src: url(../fonts/black_ops_one.ttf) format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Russo One"; src: url(../fonts/russo_one.ttf) format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Oswald"; src: url(../fonts/oswald.ttf) format("truetype"); font-weight: 200 700; font-style: normal; font-display: swap; }
:root {
  color-scheme: dark;
  --bg: #0a0c0f; --bg2: #0e1115; --panel: #13171c; --panel-hi: #171c22; --panel2: #1a2027; --line: #28313b; --line2: #37434f;
  --text: #d9e0e7; --dim: #94a0ac; --ink: #f1f5f9;
  --accent: #7ca9ff; --on-accent: #061430; --accent-hover: #9dbfff;
  --green: #4fe08a; --amber: #ffb62e; --red: #ff5a4a;
  --stencil: "Black Ops One", Impact, "Arial Black", sans-serif;
  --label: "Russo One", "Arial Black", "Segoe UI", sans-serif;
  --short: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --sans: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  /* a plate: the top-left and bottom-right corners cut at 45° by --cut, the other two by --nick */
  --cut: 10px; --nick: 2px;
  --plate: polygon(var(--cut) 0, calc(100% - var(--nick)) 0, 100% var(--nick), 100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%, var(--nick) 100%, 0 calc(100% - var(--nick)), 0 var(--cut));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
  background: var(--bg) linear-gradient(180deg, var(--bg2), var(--bg) 520px) no-repeat;
}
img { max-width: 100%; }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* the bar */
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 0; }
.brand {
  display: flex; align-items: center; gap: 10px; flex: 1 1 0; min-width: 0; margin-right: auto;
  font: 400 clamp(15px, 4.6vw, 20px)/1.1 var(--stencil); letter-spacing: .03em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand img { width: 32px; height: 32px; flex: none; }
.top nav { display: flex; flex-wrap: wrap; gap: 6px 20px; font: 400 13px/1.2 var(--label); letter-spacing: .1em; text-transform: uppercase; }
.top nav a { color: var(--dim); text-decoration: none; padding: 6px 0; }
.top nav a:hover { color: var(--ink); }
.top nav.always { display: flex; }
.lang { display: flex; gap: 6px; }
.lang button {
  font: 400 13px/1 var(--label); letter-spacing: .1em; color: var(--dim); background: var(--panel);
  border: 1px solid var(--line2); border-radius: 2px; padding: 9px 11px; min-width: 44px; cursor: pointer;
}
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 12px #7ca9ff33; }

/* plates: the outline is the element's own colour, the face is drawn 1 px inside it with the same cut corners */
.card, .notice { position: relative; background: var(--line2); clip-path: var(--plate); }
.card::before, .notice::before {
  content: ""; position: absolute; inset: 1px; clip-path: var(--plate);
  background: linear-gradient(180deg, #ffffff0a, #ffffff0a) top / 100% 1px no-repeat, linear-gradient(180deg, var(--panel-hi), var(--panel));
}
.card > *, .notice > * { position: relative; }
.card { padding: 20px 22px; }
.card p { margin: 0; }
.card p + p { margin-top: 8px; }

/* the notice that opens the page: not a government's site */
.notice { color: var(--text); padding: 12px 16px; font-size: 16px; line-height: 1.5; margin: 4px 0 0; }

/* type */
h1, h2 { font-family: var(--stencil); font-weight: 400; text-transform: uppercase; color: var(--ink); margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(30px, 6.2vw, 58px); line-height: 1.08; letter-spacing: .01em; }
h2 { font-size: clamp(22px, 3.6vw, 32px); line-height: 1.2; letter-spacing: .02em; }
h3 { font: 400 14px/1.4 var(--label); letter-spacing: .09em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; overflow-wrap: anywhere; }
.lead { font-size: clamp(18px, 2.4vw, 20px); max-width: 34em; margin: 18px 0 0; }
.small { font-size: 16px; line-height: 1.55; color: var(--dim); }

/* the one primary button: filled with the accent, dark text */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 58px; max-width: 100%; padding: 10px 30px;
  font: 400 16px/1.2 var(--label); letter-spacing: .09em; text-transform: uppercase; text-align: center; text-decoration: none;
  color: var(--accent); background: var(--panel2); clip-path: var(--plate);
}
.btn:hover { color: var(--accent-hover); background: var(--line); }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn small { display: block; font: 500 14px/1.2 var(--short); letter-spacing: .04em; text-transform: none; margin-top: 4px; }

/* the second button: only an outline, the same cut corners */
.btn.outline { position: relative; background: var(--accent); }
.btn.outline::before { content: ""; position: absolute; inset: 1px; clip-path: var(--plate); background: var(--bg2); }
.btn.outline > * { position: relative; }
.btn.outline:hover { background: var(--accent-hover); }
.btn.outline:hover::before { background: var(--panel); }
.eyebrow { margin: 0 0 12px; font: 400 14px/1.3 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

/* the sections */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 36px 0 52px; }
.hero > * { min-width: 0; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.hero .phone, .shots img { padding: 1px; background: var(--line2); clip-path: var(--plate); }
.hero .phone { --cut: 22px; --nick: 4px; justify-self: center; width: min(310px, 78vw); height: auto; display: block; }
.sec { padding: 40px 0; }
.sec-head { margin-bottom: 20px; padding-left: 14px; border-left: 4px solid var(--accent); }
.grid { display: grid; gap: 14px; }
.grid > * { min-width: 0; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; }
.list li { padding-left: 24px; position: relative; min-width: 0; }
.list li::before { content: ""; position: absolute; left: 2px; top: .52em; width: 10px; height: 10px; background: var(--accent); clip-path: polygon(4px 0, 100% 0, 100% 6px, 6px 100%, 0 100%, 0 4px); }
.list b { color: var(--ink); font-weight: 600; }
.shots { --cut: 18px; --nick: 4px; display: flex; gap: 16px; overflow-x: auto; padding: 4px 20px 16px; scroll-snap-type: x mandatory; scrollbar-color: var(--line2) transparent; }
.shots img { height: 520px; width: auto; max-width: none; scroll-snap-align: center; flex: none; }
footer { border-top: 1px solid var(--line); margin-top: 30px; padding: 26px 0 40px; color: var(--dim); font-size: 16px; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
footer .links a { overflow-wrap: anywhere; }

/* the privacy page */
.doc { padding-bottom: 48px; }
.doc h1 { font-size: clamp(28px, 5vw, 42px); margin-top: 18px; }
.doc h2 { font-size: clamp(19px, 3vw, 23px); margin: 34px 0 10px; padding-left: 12px; border-left: 4px solid var(--accent); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--accent); }
.doc b { color: var(--ink); font-weight: 600; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 44px 0; }
.doc code { background: var(--panel2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 2px; font-size: .9em; overflow-wrap: anywhere; }

/* the web version: questions/ */
.intro { margin-top: 14px; }
.controls { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 8px; }
.group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.group .label { font: 400 12px/1 var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-right: 4px; }
.chip {
  font: 400 13px/1.1 var(--label); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); background: var(--panel);
  border: 1px solid var(--line2); border-radius: 2px; padding: 11px 14px; min-height: 44px; cursor: pointer;
}
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 12px #7ca9ff33; }
.part { margin: 34px 0 6px; }
.part h2 { font-size: clamp(20px, 3.4vw, 26px); padding-left: 12px; border-left: 4px solid var(--accent); }
.topic { margin: 22px 0 10px; }
.qa { margin: 0 0 12px; }
.qa .card { padding: 16px 20px; }
.qa .head { display: flex; gap: 12px; align-items: baseline; }
.qa .num { font: 400 15px/1 var(--stencil); color: var(--accent); min-width: 2.2em; }
.qa .qt { color: var(--ink); font-weight: 600; margin: 0; }
.star { color: var(--amber); font: 400 12px/1 var(--label); letter-spacing: .1em; white-space: nowrap; }
.qa ul { margin: 10px 0 0 2.2em; padding-left: 20px; }
.qa li { margin: 3px 0; }
.qa li::marker { color: var(--green); }
.qa .why { margin: 10px 0 0 2.2em; color: var(--dim); font-size: 16px; line-height: 1.5; }
.qa .vary { margin: 10px 0 0 2.2em; color: var(--amber); }
.qa .need { margin: 8px 0 0 2.2em; font: 500 14px/1.2 var(--short); letter-spacing: .04em; color: var(--dim); }
.check { margin: 6px 0 0; }
.check .qbox { margin: 18px 0; }
.check .qtext { font: 500 clamp(22px, 4.4vw, 30px)/1.3 var(--short); color: var(--ink); margin: 6px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.bar { height: 8px; background: var(--panel2); border: 1px solid var(--line); margin: 10px 0 6px; }
.bar i { display: block; height: 100%; background: var(--green); }
.msg { color: var(--dim); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 20px; }
  .grid.c3, .grid.c2, .list { grid-template-columns: 1fr; }
  .top nav { display: none; }
  .shots img { height: 420px; }
}
@media (max-width: 560px) { .top nav.always { display: flex; order: 3; flex-basis: 100%; } }
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .card { padding: 18px 16px; }
  .btn { padding: 10px 20px; width: 100%; }
  .qa .why, .qa ul, .qa .vary, .qa .need { margin-left: 0; }
  .qa .card { padding: 14px 14px; }
  .hero .cta { margin-top: 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
