@font-face {
  font-family: Geist;
  src: url("./assets/geist-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans Gurmukhi";
  src: url("./assets/noto-sans-gurmukhi.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0951-0952, U+0964-0965, U+0A01-0A76, U+200C-200D, U+20B9, U+25CC, U+262C, U+A830-A839;
}

:root {
  color-scheme: only light;
  --paper: #f6f8fc;
  --surface: #fff;
  --ink: #141d38;
  --navy: #223b78;
  --blue: #2b52b5;
  --muted: #4b5a79;
  --quiet: #e6edfb;
  --line: #cdd9f0;
  --red: #bd294f;
  --red-hover: #9c1b3d;
  --header-background: #f0f3f8;
  --footer-background: #16213e;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-side: max(env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --page: 70rem;
  --gutter: max(clamp(1.25rem, 4.7vw, 4rem), var(--safe-side));
  --anchor-offset: 6rem;
  --glass-shadow: 0 1px 2px #263c6810, 0 .82rem 2.8rem #4566ae14, inset 0 1px #fff;
  --page-wash: radial-gradient(ellipse at 50% 17%, #fff 0, #fcfdff 32%, transparent 65%),
    linear-gradient(155deg, #eef3fd, #e5edfc 55%, var(--paper) 96%);
  font-family: Geist, "Noto Sans Gurmukhi", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; isolation: isolate; background-color: var(--paper); }
.page-content { display: contents; }

body::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 61rem;
  pointer-events: none;
  background: var(--page-wash);
  mask-image: linear-gradient(black 80%, transparent);
}

button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
img { display: block; max-width: 100%; }
img, .store-badge { -webkit-touch-callout: none; -webkit-user-drag: none; }
img { -webkit-user-select: none; user-select: none; }
figure, p, dl, dd, h1, h2, h3 { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
section[id], :target { scroll-margin-top: calc(var(--anchor-offset) + var(--safe-top)); }

.container {
  width: min(var(--page), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.glass-panel {
  background: linear-gradient(150deg, #ffffffc6, #ffffff61);
  border: 1px solid #fff;
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(1.6rem) saturate(145%);
  backdrop-filter: blur(1.6rem) saturate(145%);
}

.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;
}

.skip-link {
  position: fixed;
  top: calc(.75rem + var(--safe-top));
  left: calc(.75rem + env(safe-area-inset-left, 0px));
  z-index: 4;
  translate: 0 -160%;
  background: var(--surface);
  padding: .8rem 1rem;
}

.skip-link:focus { translate: 0; }

.site-header {
  position: sticky;
  top: calc(.75rem + var(--safe-top));
  z-index: 2;
  width: min(var(--page), calc(100% - var(--gutter) * 2));
  margin: calc(1.15rem + var(--safe-top)) auto 0;
  border-radius: 1.29rem;
}

.header-inner {
  width: 100%;
  min-height: 4.08rem;
  padding: .46rem .68rem .46rem .94rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: .65rem;
  font-size: 1.07rem;
  font-weight: 740;
  letter-spacing: -.035em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img { border-radius: 24%; flex: none; }
.brand-label { display: grid; gap: .13rem; line-height: 1.02; }
.brand-edition { color: var(--muted); font-weight: 600; font-size: .73rem; letter-spacing: -.014em; }
.site-nav {
  display: flex;
  align-items: center;
  padding: .24rem;
  gap: .16rem;
  border-radius: .83rem;
  border: 1px solid #d5e0f6;
  background: #dce7fa64;
}

.site-nav a, .locale-list a, .header-app, .footer-inner nav a { text-decoration: none; }
.site-nav a {
  display: grid;
  place-items: center;
  min-height: 2.15rem;
  padding: .45rem 1.05rem;
  border-radius: .6rem;
  font-size: .88rem;
  font-weight: 620;
  color: var(--muted);
  transition: background-color .18s ease, box-shadow .18s ease, color .18s ease;
}

.site-nav a:hover, .site-nav a[aria-current] {
  background: #ffffffcf;
  color: var(--navy);
  box-shadow: 0 1px 3px #3857861b;
}

@media (min-width: 1024px) {
  .site-nav a { padding-inline: 1.45rem; }
}

.header-actions { justify-self: end; display: flex; align-items: center; gap: .51rem; }
.mobile-menu { display: none; }
.locale-picker { position: relative; }
.locale-trigger {
  display: flex;
  align-items: center;
  gap: .34rem;
  min-height: 2.6rem;
  padding: .33rem .56rem;
  border: 1px solid #d5dff2;
  border-radius: .76rem;
  background: #edf3fd;
  color: var(--navy);
  font-size: .79rem;
  font-weight: 680;
  list-style: none;
  cursor: pointer;
}

.locale-trigger::-webkit-details-marker { display: none; }
.locale-trigger:hover, .locale-picker[open] .locale-trigger { background: #e2ecfe; }
.locale-code { min-width: 1.19rem; text-align: center; }
.locale-globe {
  position: relative;
  width: .87rem;
  height: .87rem;
  border: 1.3px solid currentColor;
  border-radius: 50%;
}

.locale-globe::before, .locale-globe::after { content: ""; position: absolute; }
.locale-globe::before { inset: -1px 2px; border-inline: 1px solid currentColor; border-radius: 50%; }
.locale-globe::after { top: 50%; inset-inline: 0; border-top: 1px solid currentColor; }
.locale-chevron {
  width: .39rem;
  height: .39rem;
  border: solid currentColor;
  border-width: 0 1.55px 1.55px 0;
  transform: translateY(-.1rem) rotate(45deg);
}

.locale-picker[open] .locale-chevron { transform: translateY(.1rem) rotate(225deg); }
.locale-list {
  position: absolute;
  z-index: 4;
  top: calc(100% + .55rem);
  inset-inline-end: 0;
  display: grid;
  gap: .17rem;
  width: max-content;
  min-width: 12.35rem;
  margin: 0;
  padding: .43rem;
  border: 1px solid #d9e3f4;
  border-radius: .9rem;
  background: #fff;
  box-shadow: 0 .7rem 1.5rem #182f551d;
  list-style: none;
}

.locale-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
  min-height: 2.45rem;
  padding: .43rem .62rem;
  border-radius: .53rem;
  color: var(--ink);
  font-size: .91rem;
  font-weight: 560;
}

.locale-list a:hover, .locale-list a[aria-current] { background: #eaf1ff; color: var(--navy); }
.locale-list a[aria-current]::after {
  content: "";
  width: .66rem;
  height: .37rem;
  border: solid var(--blue);
  border-width: 0 0 1.8px 1.8px;
  transform: rotate(-45deg);
}

.header-app {
  display: flex;
  align-items: center;
  gap: .48rem;
  min-height: 2.6rem;
  padding: .48rem .83rem;
  border-radius: .76rem;
  background: var(--ink);
  color: white;
  font-size: .85rem;
  font-weight: 650;
  transition: background-color .18s ease;
}

.header-app:hover { background: var(--navy); }
.footer-inner nav a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: .27em; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .65rem;
  min-height: 3.25rem;
  padding: .82rem 1.33rem;
  border: 1px solid transparent;
  border-radius: 100vmax;
  font-size: .95rem;
  font-weight: 690;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
}

.button-primary { background: var(--red); box-shadow: 0 .32rem .9rem #a627452c, inset 0 1px #ffffff38; color: white; }
.button-primary:hover:not(:disabled) { background: var(--red-hover); }
.button-outline { border-color: #b7c8e8; background: #ffffff9e; color: var(--navy); }
.button-outline:hover:not(:disabled) { background: #e0eaff; border-color: #93aada; }
.text-link { font-weight: 650; color: var(--navy); text-underline-offset: .24em; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--blue); }
.external-link::after { content: "\2197" / ""; margin-left: .35rem; }

.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(1.85rem, 3vw, 2.65rem) clamp(1.65rem, 2.75vw, 2.55rem);
}

.hero::before, .hero::after {
  content: "";
  position: absolute;
  inset-block: 0;
  z-index: -1;
  width: min(45%, 46rem);
  pointer-events: none;
}

.hero::before {
  --contour-start: 1.75rem;
  left: 0;
  background: repeating-radial-gradient(ellipse at -24% 58%, transparent 0 20px, #688bc842 21px, transparent 22.5px 24px);
  mask-image: radial-gradient(ellipse 96% 54% at 0% 40%, #000 8%, transparent 98%);
}

.hero::after {
  --contour-start: -1.75rem;
  right: 0;
  background: repeating-radial-gradient(ellipse at 124% 30%, transparent 0 24px, #688bc83d 25px, transparent 26.5px 28px);
  mask-image: radial-gradient(ellipse 94% 58% at 100% 34%, #000 8%, transparent 98%);
}

.hero > .container { display: grid; }
.hero-copy {
  display: grid;
  grid-row: 1;
  justify-items: center;
  text-align: center;
}

.hero h1, .section-heading h2, .test-guide h2, .app-panel h2, .faq-section h2 {
  font-weight: 700;
  letter-spacing: -.062em;
  color: var(--ink);
}

.hero h1 {
  font-size: clamp(2.4rem, 5.05vw, 4.72rem);
  line-height: 1.03;
  letter-spacing: -.066em;
  text-wrap: balance;
}

.hero h1 > span { display: block; }
.hero-lead {
  margin-bottom: .1em;
  color: #475b79;
  font-size: .64em;
  font-weight: 520;
  line-height: 1.09;
  letter-spacing: -.05em;
}

.hero h1:lang(fr), .hero h1:lang(es) { font-size: clamp(2.25rem, 4.5vw, 4.3rem); }
.hero h1:lang(zh) { letter-spacing: -.035em; line-height: 1.12; }
.hero h1:lang(pa) { font-size: clamp(2.1rem, 3.95vw, 3.95rem); letter-spacing: -.028em; line-height: 1.24; }
.hero-description {
  max-width: 40rem;
  margin-top: .95rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.43;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .55rem 1rem;
  margin-top: 1.15rem;
}

.quiz-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  gap: .55rem;
  min-height: 3rem;
  padding: .6rem 1rem;
  border-color: #244c9d;
  border-radius: .84rem;
  background: linear-gradient(152deg, #4269bd, #2a4992);
  color: #fff;
  box-shadow: 0 .45rem 1rem #234c9137, inset 0 1px #ffffff38;
  font-size: 1rem;
}

.quiz-button:hover { border-color: #204181; background: linear-gradient(152deg, #385dae, #233e82); }
.quiz-button::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 26%, #ffffff42 48%, #ffffff20 55%, transparent 72%);
  transform: translateX(-110%);
}

.quiz-button::after, .practice-preview-action::after { content: "\2192" / ""; font-size: 1.18em; font-weight: 500; line-height: 1; }
.hero-art {
  --art-radius: clamp(.85rem, 1.55vw, 1.32rem);
  grid-row: 2;
  width: 100%;
  margin: clamp(1.65rem, 2.5vw, 2.4rem) auto 0;
  border-radius: var(--art-radius);
  box-shadow: 0 .55rem 2rem #263c681a;
}

.hero-art picture { display: block; border-radius: inherit; }
.hero-art img { width: 100%; height: auto; border-radius: inherit; }

.practice-section { padding-bottom: clamp(2rem, 3.6vw, 3.35rem); }
.section-heading { max-width: 42rem; margin-bottom: 1.4rem; }
.section-heading h2, .test-guide h2, .app-panel h2, .faq-section h2 {
  font-size: clamp(2.15rem, 3.7vw, 3.4rem);
  line-height: 1.04;
}

.section-heading p, .guide-intro p { margin-top: .78rem; color: var(--muted); font-size: 1.04rem; line-height: 1.58; }
.practice-card {
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: clamp(1.2rem, 4vw, 3.25rem);
  background: var(--surface);
}

.practice-card:has(#practice-ready:not([hidden])) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .94fr);
  align-items: center;
  gap: clamp(1.25rem, 4.2vw, 3.8rem);
  border-color: #d9e4f5;
  background: linear-gradient(130deg, #f8fbff, #eaf1fe);
}

.practice-card:has(#practice-ready:not([hidden])) .section-heading { margin: 0; }
.practice-card:has(#practice-active:is([hidden], [data-preview])) + .practice-note { display: none; }
.practice-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "question picture" "action action";
  align-items: center;
  gap: .8rem 1rem;
  width: 100%;
  padding: clamp(1rem, 2.1vw, 1.55rem);
  border: 1px solid #cfddf3;
  border-radius: 1.08rem;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 .25rem 1.2rem #29416b12;
  text-align: start;
}

.practice-preview:hover:not(:disabled) {
  border-color: #9ab4e4;
  background: #fcfdff;
  box-shadow: 0 .37rem 1.3rem #29416b21;
}

.practice-preview-symbol {
  grid-area: picture;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.5rem;
  margin-inline: .13rem;
}

.practice-preview-symbol::before {
  content: "";
  position: absolute;
  inset: .39rem .26rem .44rem .82rem;
  border-radius: .55rem;
  background: #bad1fa;
  transform: rotate(12deg) translate(.1rem, -.14rem);
}

.practice-preview-symbol > span {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.26rem;
  height: 2.77rem;
  border-radius: .57rem;
  background: linear-gradient(155deg, #4468af, #283f80);
  box-shadow: 0 .19rem .55rem #29416b39;
  transform: rotate(-8deg) translateX(-.14rem);
}

.practice-preview-symbol > span::before {
  content: "";
  position: absolute;
  top: .55rem;
  width: .89rem;
  height: .14rem;
  border-radius: 1px;
  background: #c9d9f9;
}

.practice-preview-symbol > span::after {
  content: "";
  width: .81rem;
  height: .46rem;
  border: solid #fff;
  border-width: 0 0 .145rem .145rem;
  transform: translateY(.15rem) rotate(-45deg);
}

.practice-preview-prompt {
  grid-area: question;
  font-size: clamp(1.25rem, 2.15vw, 1.78rem);
  font-weight: 665;
  line-height: 1.22;
  letter-spacing: -.038em;
  text-wrap: pretty;
}

.practice-preview-action {
  grid-area: action;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  margin-top: .29rem;
  padding-top: .72rem;
  border-top: 1px solid #e1e9f8;
  color: #274784;
  font-size: .94rem;
  font-weight: 680;
}

.practice-preview-action::after {
  display: grid;
  place-items: center;
  flex: 0 0 1.88rem;
  height: 1.88rem;
  border-radius: 50%;
  background: #edf3ff;
}

.practice-note { margin-top: .89rem; color: var(--muted); font-size: .875rem; line-height: 1.55; }
.test-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.noscript-note { margin-top: 1rem; color: var(--muted); }
.practice-card:has(#practice-ready[hidden]) .section-heading { max-width: 52rem; margin-inline: auto; }
.practice-card:has(#practice-ready[hidden]) .section-heading h2 { font-size: 1.13rem; color: var(--navy); letter-spacing: -.026em; }
.practice-card:has(#practice-ready[hidden]) .section-heading p { display: none; }

#practice-active { max-width: 52rem; margin-inline: auto; }
.test-status { font-size: .92rem; color: var(--navy); font-weight: 660; }
progress {
  display: block;
  width: 100%;
  height: .35rem;
  margin: .95rem 0 1.82rem;
  appearance: none;
  border: 0;
  border-radius: 100vmax;
  background: var(--quiet);
  color: var(--blue);
  accent-color: var(--blue);
  overflow: hidden;
}

progress::-webkit-progress-bar { background: var(--quiet); }
progress::-webkit-progress-value { background: var(--blue); }
progress::-moz-progress-bar { background: var(--blue); }
.question-title { font-size: clamp(1.45rem, 3.2vw, 2.2rem); font-weight: 670; line-height: 1.23; letter-spacing: -.035em; scroll-margin-top: calc(var(--anchor-offset) + var(--safe-top)); }
#question-options { border: 0; padding: 0; margin: 1.3rem 0 .9rem; min-width: 0; }
.answer-option {
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  gap: .78rem;
  border: 1px solid var(--line);
  border-radius: .92rem;
  background: #ffffffb8;
  padding: .88rem 1rem;
  margin-bottom: .6rem;
  cursor: pointer;
}

.answer-option:hover { border-color: #7595d1; }
#question-options:not(:disabled) .answer-option:has(input:checked) { background: #e3edff; border-color: var(--blue); }
.answer-option.answer-correct { border-color: #428367; background: #edf8f1; }
.answer-option.answer-incorrect { border-color: #ba7180; background: #fbf0f3; }
#question-options:disabled .answer-option { cursor: default; }
.answer-option:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.answer-option input { width: 1.18rem; height: 1.18rem; margin: 0; flex: none; accent-color: var(--blue); }
.answer-option span { line-height: 1.45; }
.question-feedback {
  padding: .92rem 1rem;
  border: 1px solid #d5e0f5;
  border-radius: .88rem;
  background: #f0f5fe;
  color: var(--ink);
}

.question-feedback h4 { margin: 0; color: var(--navy); font-size: 1.02rem; }
.question-feedback p { margin-top: .42rem; line-height: 1.54; }
#feedback-answer { font-weight: 650; }
.result-review { border-top: 1px solid var(--line); margin-top: 1.2rem; }
.result-review summary { font-weight: 670; color: var(--navy); padding: .85rem 0; cursor: pointer; }
.test-actions { justify-content: space-between; margin-top: 1.5rem; }
.text-button {
  display: inline-block;
  padding: .3rem 0;
  margin-top: 1.1rem;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: .9rem;
  font-weight: 620;
  text-decoration: underline;
  text-underline-offset: .23em;
}

:root:has(.result-dialog[open]) { overflow: hidden; }
.result-dialog {
  position: fixed;
  width: min(46rem, calc(100% - 1.5rem));
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d6e0f2;
  border-radius: 1.5rem;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1.25rem 4rem #15274d44;
}

.result-dialog::backdrop { background: #17243b83; backdrop-filter: blur(3px); }
.result-content {
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: clamp(1.15rem, 3.25vw, 2rem);
  overflow: auto;
  overscroll-behavior: contain;
}

.result-close {
  position: absolute;
  z-index: 1;
  inset: .72rem .72rem auto auto;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid #d9e3f6;
  border-radius: 50%;
  background: #f0f5ff;
  color: var(--navy);
  font-size: 1.52rem;
  line-height: 1;
}

.result-close:hover { background: #e4edff; }
.result-intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .84rem;
  padding-right: 2.65rem;
}

.result-icon { width: 3rem; height: 3rem; border-radius: 24%; }
.result-brand { color: var(--muted); font-size: .86rem; font-weight: 660; text-wrap: balance; }
.result-intro h2 {
  margin-top: .2rem;
  color: var(--ink);
  font-size: clamp(1.65rem, 3.6vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -.058em;
  line-height: 1.09;
}

.result-detail { margin-top: .43rem; color: var(--muted); font-size: .97rem; line-height: 1.51; }
.result-app {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 8.8125rem;
  align-items: center;
  gap: clamp(1rem, 3.2vw, 2.15rem);
  margin-top: 1.3rem;
  padding: clamp(1.05rem, 3.7vw, 1.7rem);
  border-radius: 1.08rem;
  background: radial-gradient(ellipse at 86% 4%, #3b5791, transparent 64%), linear-gradient(145deg, #182a50, #253f70);
  color: #fff;
}

.result-app h3 { margin: 0; font-size: clamp(1.48rem, 3.35vw, 2rem); letter-spacing: -.045em; line-height: 1.12; }
.result-app p { margin-top: .55rem; color: #edf3ff; font-size: .96rem; line-height: 1.52; }
.result-app .app-language { font-size: .86rem; font-weight: 650; }
.offer-download {
  min-height: 2.85rem;
  margin-top: .9rem;
  padding: .66rem 1.05rem;
  border-radius: .7rem;
  background: #fff;
  color: #1d3565;
}

.offer-download:hover { background: #e7efff; }
.offer-download:focus-visible { outline-color: #cddeff; }
.offer-qr { display: grid; justify-items: center; gap: .55rem; text-align: center; }
.offer-qr img { width: 100%; height: auto; border-radius: .64rem; background: #fff; }
.offer-qr figcaption { color: #eef4ff; font-size: .82rem; font-weight: 600; }
.result-score { margin-bottom: .28rem; color: var(--navy); font-weight: 680; }
.review-list { margin: 0; padding-left: 1.6rem; }
.review-list li { padding: .8rem 0 1rem .3rem; line-height: 1.52; border-bottom: 1px solid var(--line); }
.review-list li:last-child { border-bottom: 0; }
.review-list h4 { margin: 0 0 .28rem; }
.review-list p { margin-top: .3rem; }

.citizenship-section { margin-bottom: clamp(2rem, 5vw, 4.65rem); }
.citizenship-panel {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(1.2rem, 5vw, 4rem);
  padding: clamp(1.15rem, 4.2vw, 3rem);
  border: 1px solid #dbe5f6;
  border-radius: 1.5rem;
  background: linear-gradient(132deg, #fff, #eef4fd);
}

.citizenship-heading { display: flex; align-items: center; gap: .75rem; }
.citizenship-map { flex: 0 0 3.25rem; width: 3.25rem; height: auto; }
.citizenship-heading h2, .comparison-section h2 {
  font-size: clamp(1.72rem, 3.6vw, 2.9rem);
  letter-spacing: -.055em;
  line-height: 1.08;
  text-wrap: balance;
}

.citizenship-stat { margin-top: 1.12rem; color: var(--muted); line-height: 1.45; }
.citizenship-value {
  color: var(--navy);
  font-size: clamp(2.4rem, 7.1vw, 5.55rem);
  font-weight: 720;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.072em;
  line-height: 1.04;
}

.citizenship-period { margin-top: .37rem; color: var(--red); font-size: .92rem; font-weight: 680; }
.citizenship-chart-label { margin-bottom: .42rem; color: var(--muted); font-size: .86rem; font-weight: 650; }
.citizenship-bars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.citizenship-bar {
  display: grid;
  justify-items: center;
  gap: .33rem;
  min-width: 0;
  padding: .48rem .38rem;
  border: 1px solid transparent;
  border-radius: .92rem;
  background: transparent;
  color: var(--navy);
  font-size: .89rem;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
}

.citizenship-bar:hover, .citizenship-bar[aria-pressed="true"] { border-color: #d3def3; background: #fff; }
.citizenship-bar-axis {
  display: flex;
  align-items: end;
  width: 100%;
  height: clamp(6.2rem, 13vw, 10.1rem);
  overflow: hidden;
  border-radius: .5rem;
  background: #e7eefb;
}

.citizenship-bar-fill {
  position: relative;
  width: 100%;
  height: var(--bar-height);
  border-radius: .48rem .48rem 0 0;
  background: #90acd9;
}

.citizenship-bar-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(#c54b69, #a92c4b);
  opacity: 0;
}

.citizenship-bar[aria-pressed="true"] .citizenship-bar-fill::after { opacity: 1; }
.citizenship-bar-value { color: var(--muted); font-size: .8rem; font-weight: 540; }
.citizenship-source { margin-top: .62rem; color: var(--muted); font-size: .82rem; line-height: 1.48; }
.citizenship-source a { color: var(--navy); text-underline-offset: .2em; }

.comparison-section { padding-block: clamp(2.15rem, 6vw, 4.7rem); border-top: 1px solid var(--line); }
.comparison-table {
  --comparison-tint: #eaf1ff;
  --comparison-border: #d6e2f8;
  width: 100%;
  margin-top: 1.45rem;
  border-spacing: 0;
  table-layout: fixed;
}

.comparison-table col:first-child { width: 29%; }
.comparison-app-column { width: 38%; }
.comparison-table :is(th, td) {
  padding: .78rem clamp(.8rem, 2.6vw, 1.85rem);
  text-align: start;
  line-height: 1.36;
  overflow-wrap: anywhere;
}

.comparison-table thead th { padding-block: 1.12rem; font-weight: 680; }
.comparison-table thead th:nth-child(2) {
  border-top: 1px solid var(--comparison-border);
  border-radius: 1.2rem 1.2rem 0 0;
  background: linear-gradient(145deg, #f8faff, var(--comparison-tint));
}

.comparison-table tbody :is(th, td) { border-top: 1px solid #dfe7f5; }
.comparison-table tbody th { font-weight: 620; }
.comparison-table tbody th:first-child { padding-inline-start: .2rem; }
.comparison-table tbody td { color: var(--muted); }
.comparison-table tr > :nth-child(2) {
  border-color: var(--comparison-border);
  border-inline: 1px solid var(--comparison-border);
  background: var(--comparison-tint);
  color: var(--navy);
  font-weight: 670;
}

.comparison-table tbody tr:last-child > * { border-bottom: 1px solid #dfe7f5; }
.comparison-table tbody tr:last-child td:nth-child(2) { border-bottom-color: var(--comparison-border); border-radius: 0 0 1.2rem 1.2rem; }

.comparison-brand { display: flex; align-items: center; gap: .75rem; }
.comparison-brand img { flex: none; border-radius: 24%; box-shadow: 0 .2rem .55rem #29416b26; }
.comparison-detail { display: block; margin-top: .16rem; color: var(--muted); font-size: .85em; font-weight: 520; }
.comparison-check {
  margin-inline-end: .3rem;
  color: var(--muted);
  font-size: .9em;
  font-weight: 700;
}

.comparison-table td:nth-child(2) .comparison-check { color: var(--blue); }

.test-guide {
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr);
  align-items: start;
  gap: clamp(1.7rem, 6vw, 5rem);
  border-block: 1px solid var(--line);
  padding-block: clamp(2.2rem, 5.5vw, 4.2rem);
}

.guide-intro { max-width: 28rem; }
.guide-intro > a { display: inline-block; margin-top: .83rem; }
.guide-sheet h3 { font-size: 1.35rem; letter-spacing: -.038em; font-weight: 690; }
.guide-sheet > p { line-height: 1.57; margin: .52rem 0 .68rem; color: var(--muted); }
.guide-sheet > .study-plan-link { margin: .95rem 0 .85rem; }
.study-plan-link a { color: var(--navy); font-weight: 650; text-underline-offset: .24em; }
.guide-details { border-top: 1px solid var(--line); }
.guide-details div {
  display: grid;
  grid-template-columns: minmax(6.7rem, .85fr) minmax(0, 1.15fr);
  gap: .73rem;
  align-items: baseline;
  padding: .72rem 0;
  line-height: 1.48;
}

.guide-details div + div { border-top: 1px solid var(--line); }
.guide-details dt { font-weight: 590; font-size: .89rem; color: var(--muted); }
.guide-details dd { color: var(--ink); font-weight: 645; }
.guide-details a { text-underline-offset: .24em; }
.closing-sections { display: grid; grid-template-areas: "app" "feedback"; grid-template-columns: minmax(0, 1fr); }
.app-section {
  grid-area: app;
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr);
  gap: clamp(1.75rem, 5vw, 4.25rem);
  align-items: center;
  padding-block: clamp(3rem, 7.3vw, 6rem);
  border-top: 1px solid var(--line);
}

.app-story img { width: 100%; height: auto; border-radius: 1.5rem; }
.app-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.55rem; }
.app-copy { max-width: 22rem; }
.app-panel h2 { max-width: 9em; font-size: clamp(2rem, 3.3vw, 3.18rem); text-wrap: balance; }
.app-copy > p:not(.app-note) { margin-top: .85rem; line-height: 1.57; color: var(--muted); }
.app-summary-mobile { display: none; }
.app-benefits { padding-left: 1.16rem; margin: .81rem 0 0; line-height: 1.5; color: var(--navy); font-size: .94rem; font-weight: 600; }
.app-benefits li + li { margin-top: .29rem; }
.app-benefits li::marker { color: var(--red); }
.app-note { max-width: 21rem; margin-top: .83rem; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.store-badge { display: inline-block; margin-top: 1.05rem; border-radius: .4rem; }
.store-badge img { width: auto; height: 2.825rem; }
.hero-actions .store-badge { margin: 0; }

.document-header, .document-main, .document-footer { max-width: 46rem; }
.document-header, .document-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
}
.document-header { padding-block: calc(1.65rem + var(--safe-top)) 1.65rem; }
.document-card {
  padding: clamp(1.3rem, 5vw, 3.4rem);
  border-radius: 1.5rem;
  line-height: 1.62;
}
.document-card h1 {
  font-size: clamp(1.85rem, 5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -.05em;
  text-wrap: balance;
}
.document-card .document-intro { margin-top: 1rem; font-size: 1.09rem; }
.document-card section { margin-top: 1.65rem; }
.document-card h2 { font-size: 1.15rem; line-height: 1.32; letter-spacing: -.025em; }
.document-card p { margin-top: .45rem; color: var(--muted); }
.document-links { display: grid; justify-items: start; gap: .6rem; margin-top: 1.5rem; }
.document-card .document-app { padding: clamp(1rem, 3vw, 1.5rem); background: #e7eefb; border-radius: 1rem; }
.document-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1rem; }
.document-actions .store-badge { margin: 0; }
.document-footer { padding-block: 1.45rem calc(2rem + var(--safe-bottom)); color: var(--muted); }
.app-visual { display: grid; place-items: center; padding: .25rem .25rem .6rem; }
.phone-preview {
  position: relative;
  height: clamp(17.25rem, 23vw, 23rem);
  aspect-ratio: .477;
  max-width: 100%;
  padding: .31rem;
  border: 1px solid #bdc9df;
  border-radius: 17% / 8.1%;
  background: linear-gradient(130deg, #646e82, #171b24 23%, #11141c 71%, #757e90);
  box-shadow: inset 0 0 0 2px #141720, 0 1rem 2rem #172a5238;
}

.phone-preview::before, .phone-preview::after {
  content: "";
  position: absolute;
  width: 2px;
  border-radius: 2px;
  background: #8c98af;
}

.phone-preview::before { top: 19%; left: -3px; height: 6%; box-shadow: 0 .99rem #8c98af; }
.phone-preview::after { top: 24%; right: -3px; height: 8.3%; }
.phone-display { position: relative; overflow: hidden; width: 100%; height: 100%; border-radius: 15.4% / 7.35%; background: #08090d; }
.phone-display img { width: 100%; height: 100%; object-fit: cover; }
.dynamic-island {
  position: absolute;
  top: 2.17%;
  left: 50%;
  width: 30%;
  height: 3.63%;
  translate: -50% 0;
  border-radius: 100vmax;
  background: #08090a;
}

.dynamic-island::after {
  content: "";
  position: absolute;
  top: 28%;
  right: 9%;
  aspect-ratio: 1;
  height: 44%;
  border-radius: 50%;
  background: radial-gradient(circle at 54% 46%, #232b42, #121620 46%, #08090a 72%);
}
.faq-section {
  display: grid;
  grid-template-columns: minmax(0, .55fr) minmax(0, 1fr);
  gap: clamp(1.35rem, 4vw, 4rem);
  align-items: start;
  padding-block: clamp(2.8rem, 6vw, 4.95rem);
}

.faq-list { border-block: 1px solid var(--line); }
.faq-list details + details { border-top: 1px solid var(--line); }
.disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-block: .96rem;
  border-radius: .65rem;
  font-weight: 650;
  font-size: 1.02rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: color .22s ease;
}

.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary:focus-visible { outline-offset: 2px; }
.disclosure summary:hover, .disclosure[open] summary { color: var(--blue); }
.disclosure-icon {
  display: grid;
  place-items: center;
  flex: 0 0 2rem;
  height: 2rem;
  border-radius: .66rem;
  background: #e0ebff;
  color: var(--navy);
  transition: background-color .24s ease, color .24s ease;
}

.disclosure-icon::after {
  content: "";
  width: .43rem;
  height: .43rem;
  border: solid currentColor;
  border-width: 0 1.7px 1.7px 0;
  transform: translateY(-.1rem) rotate(45deg);
  transition: transform .24s ease;
}

.disclosure[open] .disclosure-icon { background: #d4e3fd; color: var(--blue); }
.disclosure[open] .disclosure-icon::after { transform: translateY(.1rem) rotate(225deg); }
.disclosure-answer { padding: 0 2.15rem 1.13rem 0; color: var(--muted); line-height: 1.62; }
.disclosure-answer p + p { margin-top: .45rem; }
.disclosure-answer strong { color: var(--ink); }
.disclosure-answer a { text-underline-offset: .24em; }
.faq-app-tip {
  margin-top: .88rem;
  padding: .8rem .98rem;
  border: 1px solid #dce7fa;
  border-radius: .9rem;
  background: #edf3ff;
}

.faq-app-tip .faq-app-name { color: var(--navy); font-size: .85rem; font-weight: 690; }
.faq-app-tip p + p { margin-top: .22rem; }
.faq-app-link { display: inline-block; margin-top: .36rem; color: var(--navy); font-weight: 650; }

.site-footer {
  border-top: 1px solid #344365;
  padding-block: 2.5rem calc(1.65rem + var(--safe-bottom));
  background: var(--footer-background);
  color: #f3f7ff;
}

.site-footer :focus-visible { outline-color: #b6ccfa; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.6rem 2.5rem; }
.publisher { text-decoration: none; font-size: 1.34rem; font-weight: 710; letter-spacing: -.04em; }
.publisher:hover { text-decoration: underline; text-underline-offset: .25em; }
.footer-inner > div p { max-width: 21rem; color: #c4d2ec; margin-top: .52rem; font-size: .9rem; line-height: 1.54; }
.footer-contact { margin-top: .9rem; }
.footer-contact a { display: inline-flex; align-items: center; min-height: 2.75rem; color: #f3f7ff; text-underline-offset: .26em; }
.footer-inner nav { display: flex; gap: clamp(1.8rem, 7vw, 6rem); padding-top: .18rem; font-size: .91rem; }
.footer-inner nav a:hover { color: #d3e2ff; }
.footer-group { display: grid; justify-items: start; gap: .68rem; }
.footer-group p { color: #acbfdf; font-size: .85rem; font-weight: 640; }
.footer-group a { font-weight: 570; }
.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: .65rem 1.2rem;
  border-top: 1px solid #425271;
  margin-top: 1.8rem;
  padding-top: 1rem;
  color: #b6c6e4;
  font-size: .8rem;
  line-height: 1.5;
}

.footer-legal p:first-child { flex: none; }

.feedback-section {
  display: grid;
  grid-area: feedback;
  grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr);
  align-items: center;
  gap: clamp(1.35rem, 4.5vw, 3.75rem);
  margin-bottom: clamp(2.5rem, 5.5vw, 4.2rem);
  padding: clamp(1.25rem, 4.25vw, 2.9rem);
  border: 1px solid #dbe5f6;
  border-radius: 1.68rem;
  background: radial-gradient(ellipse at 11% 22%, #dfebff, #f3f7ff 69%);
}

.feedback-portraits { display: flex; width: max-content; margin-bottom: .97rem; }
.feedback-portraits img {
  width: 3.18rem;
  height: 3.18rem;
  border: 2px solid #f3f7ff;
  border-radius: 50%;
  background: #e4ecfc;
  box-shadow: 0 .18rem .43rem #1c335d26;
  object-fit: cover;
}

.feedback-portraits img + img { margin-inline-start: -.85rem; }
.feedback-intro h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); line-height: 1.09; letter-spacing: -.052em; }
.feedback-topics { margin: .87rem 0 0; padding-inline-start: 1.12rem; color: var(--muted); font-size: 1.02rem; line-height: 1.48; }
.feedback-topics li + li { margin-top: .24rem; }
.feedback-topics li::marker { color: #527fbf; }
.feedback-form {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d4e1f7;
  border-radius: 1.16rem;
  background: var(--surface);
  box-shadow: 0 .48rem 1.48rem #2f4d8318;
}

.feedback-recipient {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .28rem .62rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid #e4ecfa;
  background: #f7faff;
  color: var(--muted);
  font-size: .9rem;
}

.feedback-recipient a { color: var(--navy); font-weight: 620; text-underline-offset: .23em; overflow-wrap: anywhere; }
.feedback-editor { padding: .84rem 1rem .7rem; }
.feedback-editor label { display: block; font-size: .95rem; font-weight: 640; }
.feedback-form textarea {
  display: block;
  width: 100%;
  min-height: 5rem;
  margin-top: .34rem;
  padding: .22rem 0;
  resize: vertical;
  border: 0;
  border-radius: .32rem;
  background: transparent;
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
}

.feedback-form textarea:focus-visible { outline-width: 2px; outline-offset: 3px; }
.feedback-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .8rem; padding: .66rem .82rem; border-top: 1px solid #e4ecfa; background: #f7faff; }
.feedback-actions p { color: var(--muted); font-size: .86rem; line-height: 1.38; }
.feedback-actions .button { min-height: 2.82rem; margin-inline-start: auto; padding: .58rem .88rem; border-radius: .75rem; background: #edf3ff; }
.feedback-actions .button:hover { background: #e0ebff; }

@media (min-width: 801px) and (max-height: 820px) {
  .hero { padding-block-start: clamp(1.4rem, 2.25vw, 2rem); }
  .hero h1 { font-size: clamp(2.4rem, 4.6vw, 4.18rem); }
  .hero h1:lang(fr), .hero h1:lang(es) { font-size: clamp(2.25rem, 4.13vw, 3.82rem); }
  .hero-description { margin-top: .75rem; }
  .hero-actions { margin-top: .85rem; }
  .hero-art { max-width: max(42rem, calc((100svh - 22.25rem) * 2.333)); margin-top: 1.65rem; }
}

@media (max-width: 1000px) {
  .app-section { grid-template-columns: 1fr; }
  .app-panel, .app-story { width: min(100%, 41rem); justify-self: center; }
}

@media (max-width: 800px) {
  :root { --anchor-offset: 5.25rem; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; min-height: 3.65rem; padding: .38rem .48rem .38rem .66rem; gap: .55rem; }
  .site-nav, .header-app { display: none; }
  .brand { font-size: .96rem; gap: .42rem; }
  .brand-edition { font-size: .65rem; }
  .site-header .brand img { width: 1.98rem; height: 1.98rem; }
  .header-actions { gap: .42rem; }
  .locale-trigger { min-height: 2.75rem; gap: .3rem; padding: .35rem .55rem; border-radius: .73rem; font-size: .76rem; }
  .mobile-menu { display: block; }
  .mobile-menu-trigger {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .73rem;
    background: var(--ink);
    color: #fff;
    list-style: none;
    cursor: pointer;
  }

  .mobile-menu-trigger::-webkit-details-marker { display: none; }
  .mobile-menu-trigger span { position: relative; width: 1.07rem; height: 1rem; }
  .mobile-menu-trigger span::before, .mobile-menu-trigger span::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 50%;
    height: 1.6px;
    border-radius: 1px;
    background: currentColor;
  }

  .mobile-menu-trigger span::before { transform: translateY(-4px); }
  .mobile-menu-trigger span::after { transform: translateY(3px); }
  .mobile-menu[open] .mobile-menu-trigger span::before { transform: rotate(45deg); }
  .mobile-menu[open] .mobile-menu-trigger span::after { transform: rotate(-45deg); }
  .mobile-menu-links {
    position: absolute;
    z-index: 4;
    inset: calc(100% + .52rem) 0 auto;
    display: grid;
    gap: .22rem;
    padding: .48rem;
    border: 1px solid #d8e2f5;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 .75rem 1.65rem #182f5524;
  }

  .mobile-menu-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 2.8rem;
    padding: .62rem .8rem;
    border-radius: .6rem;
    color: var(--ink);
    font-weight: 650;
    text-decoration: none;
  }

  .mobile-menu-links a[href^="#"]::after { content: "\203A" / ""; margin-inline-start: .45rem; color: var(--muted); }
  .mobile-menu-links a[aria-current], .mobile-menu-links a:hover { background: #eaf1ff; color: var(--navy); }
  .mobile-menu-links .mobile-menu-app { margin-top: .24rem; background: var(--navy); color: #fff; }
  .mobile-menu-links .mobile-menu-app:hover { background: #2e4a84; color: #fff; }
  .mobile-menu-app::after { content: "\2197" / ""; margin-inline-start: .45rem; }
  .hero h1 { font-size: clamp(2.3rem, 8.5vw, 3.8rem); }
  .hero h1:lang(fr), .hero h1:lang(es) { font-size: clamp(2.05rem, 7.25vw, 3.3rem); }
}

@media (max-width: 800px), (hover: none) and (pointer: coarse) {
  .landing-page {
    overflow: hidden;
    overscroll-behavior: none;
    background-color: var(--header-background);
  }

  .landing-page body {
    position: fixed;
    inset: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: clip;
    background-color: transparent;
  }

  .landing-page body::before { content: none; }

  .page-content {
    display: block;
    min-block-size: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scroll-behavior: smooth;
    background-color: var(--header-background);
  }

  .page-content:has(.result-dialog[open]) { overflow-y: hidden; }
  .page-content:focus-visible { outline-offset: -3px; }
  .page-content :is(section[id], :target, .question-title) { scroll-margin-top: .9rem; }

  .landing-page main {
    display: flow-root;
    background: var(--page-wash), var(--paper);
    background-size: 100% 55rem;
    background-repeat: no-repeat;
  }

  .site-header {
    position: relative;
    top: auto;
    width: 100%;
    margin: 0;
    padding-block-start: var(--safe-top);
    border: 0;
    border-bottom: 1px solid #dfe7f3;
    border-radius: 0;
    background: var(--header-background);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .header-inner {
    width: min(100%, var(--page) + var(--gutter) * 2);
    padding-inline: var(--gutter);
  }

  .locale-list, .mobile-menu-links {
    max-block-size: calc(100dvh - var(--anchor-offset) - var(--safe-top) - var(--safe-bottom));
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }

}

@media (max-width: 740px) {
  :root {
    --gutter: max(clamp(1.25rem, 5.55vw, 2.4rem), var(--safe-side));
    --section-space: clamp(3.35rem, 10.5vw, 4.6rem);
    --section-title: clamp(1.95rem, 7.8vw, 2.72rem);
  }

  body::before { height: 55rem; }
  .header-inner { min-height: 4.15rem; padding-block: .48rem; }
  .brand { gap: .6rem; font-size: 1.02rem; }
  .brand-edition { font-size: .71rem; }
  .site-header .brand img { width: 2.25rem; height: 2.25rem; }
  .header-actions { gap: .46rem; }
  .locale-trigger { min-height: 2.94rem; gap: .36rem; padding-inline: .62rem; border-radius: .89rem; font-size: .85rem; }
  .mobile-menu-trigger {
    width: 2.94rem;
    height: 2.94rem;
    border: 1px solid #d1dff6;
    border-radius: .89rem;
    background: #eaf1ff;
    color: var(--navy);
  }

  .mobile-menu[open] .mobile-menu-trigger { background: var(--ink); color: #fff; }
  .mobile-menu-links { inset: calc(100% + .62rem) var(--gutter) auto; gap: .32rem; padding: .65rem; border-radius: 1.24rem; }
  .mobile-menu-links a { min-height: 3.2rem; padding-inline: .89rem; border-radius: .74rem; }

  .hero { padding-block: clamp(2.45rem, 8.5vw, 4rem) var(--section-space); }
  .hero::before, .hero::after { width: 56%; opacity: .48; }
  .hero-copy { width: min(100%, 36rem); margin-inline: auto; }
  .hero h1 { font-size: clamp(2.37rem, 10.85vw, 4.1rem); line-height: 1.01; }
  .hero h1:lang(fr), .hero h1:lang(es) { font-size: clamp(2.08rem, 9.2vw, 3.78rem); }
  .hero h1:lang(pa) { font-size: clamp(2.02rem, 8.35vw, 3.24rem); }
  .hero-lead { margin-bottom: .35em; font-size: clamp(1.16rem, 4.68vw, 1.62rem); letter-spacing: -.025em; }
  .hero-description { max-width: 28rem; margin-top: 1.02rem; font-size: 1.08rem; line-height: 1.56; }
  .hero-actions { display: grid; justify-items: center; gap: .9rem; width: min(100%, 21rem); margin-top: 1.45rem; }
  .hero-actions .quiz-button {
    grid-row: 1;
    width: 100%;
    min-height: 3.55rem;
    padding: .72rem 1.07rem;
    border-radius: 1.04rem;
    font-size: 1.02rem;
    text-wrap: balance;
  }

  .hero-actions .store-badge { grid-row: 2; }
  .hero-actions .store-badge img { height: 3rem; }
  .hero-art {
    --art-radius: clamp(1.35rem, 6vw, 1.9rem);
    width: min(100%, 39rem);
    margin-top: clamp(1.8rem, 7vw, 2.7rem);
    box-shadow: 0 .75rem 1.95rem #253e7326;
  }

  .practice-section { padding-bottom: var(--section-space); }
  .practice-card { padding: clamp(1.12rem, 4.8vw, 1.8rem); border-radius: 1.5rem; }
  .practice-card:has(#practice-ready:not([hidden])) {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.32rem;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .section-heading h2, .test-guide h2, .faq-section h2, .citizenship-heading h2, .comparison-section h2 {
    font-size: var(--section-title);
    line-height: 1.08;
    letter-spacing: -.05em;
    text-wrap: pretty;
  }

  .section-heading p, .guide-intro p { margin-top: .72rem; font-size: 1.07rem; line-height: 1.56; }
  .practice-preview {
    gap: .74rem .62rem;
    padding: 1.24rem 1.14rem 1rem;
    border-color: #d6e2f5;
    border-radius: 1.38rem;
    background: linear-gradient(145deg, #fff 20%, #edf4ff 100%);
    box-shadow: 0 .48rem 1.25rem #29416b15;
  }

  .practice-preview-prompt { font-size: clamp(1.24rem, 5.2vw, 1.58rem); line-height: 1.22; }
  .practice-preview-action { margin-top: .16rem; padding-top: .68rem; font-size: 1rem; }
  .practice-preview-action::after { height: 2.18rem; flex-basis: 2.18rem; }
  .practice-card:has(#practice-active:not([hidden])) .section-heading { margin-bottom: 1.18rem; }
  .practice-card:has(#practice-active:not([hidden])) .section-heading h2 {
    color: var(--ink);
    font-size: clamp(1.5rem, 5.85vw, 1.95rem);
    letter-spacing: -.042em;
  }

  #practice-active[data-first-question] :is(#question-position, #answer-progress),
  #practice-active[data-preview] #leave-quick,
  #practice-active #prev-question:disabled { display: none; }
  #practice-active progress { margin: .75rem 0 1.35rem; }
  .question-title { font-size: clamp(1.42rem, 5.8vw, 1.95rem); }
  #question-options { margin-top: 1.2rem; }
  .answer-option { min-height: 3.56rem; margin-bottom: .72rem; padding: .83rem .88rem; font-size: 1rem; }
  .test-actions { gap: .58rem; margin-top: 1.32rem; }
  .test-actions .button { min-height: 3.15rem; padding-inline: 1rem; border-radius: .91rem; }
  #practice-active #next-question { margin-inline-start: auto; }
  .question-feedback { padding: 1rem; }

  .citizenship-section { margin-bottom: var(--section-space); }
  .citizenship-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.35rem;
    padding: clamp(1.1rem, 5.45vw, 1.8rem);
    border-radius: 1.45rem;
  }

  .citizenship-heading { gap: .64rem; }
  .citizenship-map { width: 2.8rem; flex-basis: 2.8rem; }
  .citizenship-stat { margin-top: 1.08rem; }
  .citizenship-value { font-size: clamp(3rem, 12.35vw, 4.65rem); }
  .citizenship-chart-label { margin-bottom: .4rem; font-size: .94rem; }
  .citizenship-bars { gap: .36rem; }
  .citizenship-bar { padding: .38rem .22rem .52rem; font-size: .92rem; }
  .citizenship-bar-axis { height: clamp(6.6rem, 28vw, 9.65rem); }
  .citizenship-bar-value { font-size: .86rem; }
  .citizenship-source { margin-top: .9rem; font-size: .88rem; }
  .citizenship-source a { display: block; width: fit-content; margin-top: .2rem; }

  .comparison-section { padding-block: var(--section-space); }
  .comparison-table { margin-top: 1.32rem; font-size: 1rem; }
  .comparison-table :is(th, td) { padding: .76rem clamp(.55rem, 2.1vw, 1rem); }
  .comparison-brand { gap: .56rem; }
  .comparison-brand img { width: 2rem; height: auto; }

  .test-guide, .faq-section { grid-template-columns: minmax(0, 1fr); }
  .test-guide { gap: 1.72rem; padding-block: var(--section-space); }
  .guide-intro { max-width: none; }
  .guide-intro > a { margin-top: 1rem; padding-block: .27rem; }
  .guide-sheet { padding: 1.28rem 1.21rem .28rem; border: 1px solid #dce6f6; border-radius: 1.35rem; background: #fff; }
  .guide-sheet h3 { font-size: 1.45rem; }
  .guide-sheet > p { margin: .55rem 0 .87rem; }
  .guide-details div { grid-template-columns: minmax(0, 1fr); gap: .15rem; padding-block: .85rem; }
  .guide-details dt { font-size: .92rem; }
  .guide-details dd { font-size: 1.04rem; }

  .faq-section { gap: 1.25rem; padding-block: var(--section-space); }
  .faq-list { padding-inline: 1.03rem; border: 1px solid #dce6f6; border-radius: 1.35rem; background: #fff; }
  .disclosure summary { min-height: 3.8rem; padding-block: .95rem; font-size: 1.04rem; }
  .disclosure-icon { height: 2rem; flex-basis: 2rem; }
  .disclosure-answer { padding-right: .32rem; }

  .closing-sections { grid-template-areas: "feedback" "app"; }
  .feedback-section { grid-template-columns: minmax(0, 1fr); gap: 1.05rem; margin-bottom: var(--section-space); padding: 1.08rem; }
  .feedback-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .44rem .6rem; align-items: center; }
  .feedback-portraits { grid-column: 2; grid-row: 1; margin: 0; }
  .feedback-portraits img { width: clamp(2.35rem, 11vw, 2.85rem); height: clamp(2.35rem, 11vw, 2.85rem); }
  .feedback-intro h2 { grid-column: 1; grid-row: 1; font-size: 1.67rem; }
  .feedback-topics { grid-column: 1 / -1; margin-top: .12rem; font-size: .96rem; }

  .app-section { gap: 0; padding-block: var(--section-space) 1.85rem; }
  .app-panel { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 1.75rem; width: 100%; }
  .app-copy { max-width: 29rem; text-align: center; }
  .app-panel h2 { max-width: 15ch; margin-inline: auto; font-size: clamp(2.25rem, 9.3vw, 3.6rem); }
  .app-story, .app-summary-desktop, .app-benefits, .app-note { display: none; }
  .app-copy > p.app-summary-mobile { display: block; max-width: 27ch; margin: 1.02rem auto 0; font-size: 1.1rem; line-height: 1.55; }
  .app-copy .store-badge { margin-top: 1.2rem; }
  .app-copy .store-badge img { height: 3.125rem; }
  .app-visual {
    --phone-width: clamp(13.45rem, 70vw, 18.2rem);
    width: min(calc(100% + 2 * var(--gutter)), 37rem);
    height: calc(var(--phone-width) * 1.44);
    overflow: hidden;
    place-items: start center;
    padding: .86rem .45rem 0;
    background: radial-gradient(ellipse closest-side at 50% 53%, #dbe8ff 0%, #e8f1ff 49%, #e8f1ff00 100%);
    -webkit-mask-image: linear-gradient(#000 73%, #000a 87%, transparent 100%);
    mask-image: linear-gradient(#000 73%, #000a 87%, transparent 100%);
  }

  .phone-preview {
    width: var(--phone-width);
    height: calc(var(--phone-width) / .477);
    padding: .47rem;
    box-shadow: inset 0 0 0 2px #141720, 0 .8rem 1.95rem #19345a34;
  }
  .site-footer { padding-block: 2rem calc(1.55rem + var(--safe-bottom)); }
  .footer-inner { display: grid; gap: 1.4rem; }
  .footer-inner nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 1.2rem;
    border-top: 1px solid #425271;
    padding-block-start: 1.1rem;
  }
  .footer-group { gap: 0; }
  .footer-group p { margin-block-end: .25rem; }
  .footer-group a { display: flex; align-items: center; min-block-size: 2.75rem; }
  .footer-legal { flex-direction: column; margin-block-start: 1.25rem; }
}

@media (max-width: 560px) {
  .comparison-table {
    display: block;
    border: 1px solid #dce6f6;
    border-radius: 1.36rem;
    overflow: hidden;
    background: var(--surface);
    font-size: 1rem;
  }

  .comparison-table colgroup { display: none; }
  .comparison-table :is(thead, tbody) { display: block; }
  .comparison-table tr { display: grid; grid-template-columns: minmax(0, 1.09fr) minmax(0, 1fr); gap: .36rem .76rem; }
  .comparison-table thead { padding: 1rem .98rem; background: linear-gradient(125deg, #eaf2ff, #f8faff 82%); }
  .comparison-table thead th { padding: 0; }
  .comparison-table thead th:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    clip-path: inset(100%);
  }

  .comparison-table thead th:nth-child(2) { align-content: center; border: 0; border-radius: 0; background: transparent; }
  .comparison-table thead th:last-child { align-content: center; padding-inline-start: .72rem; border-inline-start: 1px solid #d6e2f5; background: transparent; }
  .comparison-brand { gap: .47rem; }
  .comparison-brand img { width: 1.85rem; }
  .comparison-table tbody { padding-inline: .98rem; }
  .comparison-table tbody tr { padding-block: .83rem; border-top: 1px solid #e3ebf7; }
  .comparison-table tbody tr > *, .comparison-table tbody tr:last-child > * { border: 0; }
  .comparison-table tbody th { grid-column: 1 / -1; padding: 0; font-size: .92rem; }
  .comparison-table tbody th:first-child { padding-inline-start: 0; }
  .comparison-table tbody td { padding: 0; }
  .comparison-table tbody tr td:nth-child(2), .comparison-table tbody tr:last-child td:nth-child(2) {
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .comparison-table tbody tr td:last-child, .comparison-table tbody tr:last-child td:last-child {
    padding-inline-start: .72rem;
    border-inline-start: 1px solid #e3ebf7;
  }

  .result-dialog {
    --result-enter: result-sheet-in;
    inset: auto 0 0;
    width: 100%;
    margin: 0;
    border-inline: 0;
    border-bottom: 0;
    border-radius: 1.5rem 1.5rem 0 0;
  }

  .result-content {
    max-height: calc(100vh - max(.8rem, var(--safe-top)));
    max-height: calc(100dvh - max(.8rem, var(--safe-top)));
    padding: 1.3rem max(1.25rem, var(--safe-side)) calc(1.45rem + var(--safe-bottom));
  }

  .result-app { grid-template-columns: minmax(0, 1fr); }
  .result-app p { font-size: 1rem; }
  .offer-download { min-height: 3.15rem; }
  .offer-qr { display: none; }
}

@media (max-width: 480px) {
  .result-intro { gap: .63rem; }
  .result-icon { width: 2.35rem; height: 2.35rem; }
}

@media (max-width: 360px) {
  .brand { gap: .46rem; font-size: .93rem; }
  .brand-edition { font-size: .68rem; }
  .site-header .brand img { width: 2.08rem; height: 2.08rem; }
  .locale-trigger { padding-inline: .51rem; }
  .comparison-brand { flex-direction: column; align-items: flex-start; }
}

@keyframes rise-in {
  from { opacity: .35; transform: translateY(.6rem); }
}

@keyframes hero-scene-in {
  from { opacity: .7; clip-path: inset(9% 1.6% 0 round var(--art-radius)); transform: translateY(.8rem); }
  to { opacity: 1; clip-path: inset(0 round var(--art-radius)); transform: translateY(0); }
}

@keyframes hero-contours-in {
  from { opacity: 0; transform: translateX(var(--contour-start)); }
}

@keyframes quiz-button-glint {
  to { transform: translateX(110%); }
}

@keyframes mobile-menu-in {
  from { transform: translateY(-.35rem); }
}

@keyframes result-dialog-in {
  from { opacity: .48; transform: translateY(.6rem) scale(.99); }
}

@keyframes result-sheet-in {
  from { opacity: .6; transform: translateY(1.5rem); }
}

@keyframes mobile-section-in {
  from { opacity: .63; transform: translateY(.62rem); }
}

@keyframes phone-arrive {
  from { opacity: .48; transform: translateY(1.05rem); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero::before, .hero::after { animation: hero-contours-in 4s cubic-bezier(.16, 1, .3, 1) backwards; }
  .hero h1 { animation: rise-in .55s cubic-bezier(.16, 1, .3, 1) both; }
  .hero-description { animation: rise-in .52s .07s cubic-bezier(.16, 1, .3, 1) both; }
  .hero-actions { animation: rise-in .6s .14s cubic-bezier(.16, 1, .3, 1) both; }
  .hero-art { animation: hero-scene-in .92s cubic-bezier(.16, 1, .3, 1) backwards; }
  .quiz-button::before { animation: quiz-button-glint 1.12s .56s ease-out; }
  .mobile-menu[open] .mobile-menu-links { animation: mobile-menu-in .18s ease-out both; }
  .quiz-button::after, .practice-preview-action::after { transition: transform .2s ease; }
  .quiz-button:hover::after, .practice-preview:hover:not(:disabled) .practice-preview-action::after { transform: translateX(.18rem); }
  .citizenship-bar { transition: background-color .32s ease, border-color .32s ease; }
  .citizenship-bar-fill::after { transition: opacity .42s ease; }
  .practice-preview { transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease; }
  .has-entered { animation: rise-in .6s cubic-bezier(.2, .7, .3, 1) both; }
  .phone-preview.has-entered { animation: phone-arrive .79s cubic-bezier(.16, 1, .3, 1) both; }
  #practice-active:not([hidden]) { animation: rise-in .3s ease-out both; }
  .result-dialog[open] { animation: var(--result-enter, result-dialog-in) .27s cubic-bezier(.16, 1, .3, 1) both; }
  .answer-option { animation: rise-in .22s ease-out both; }
  .answer-option:nth-child(2) { animation-delay: .025s; }
  .answer-option:nth-child(3) { animation-delay: .05s; }
  .answer-option:nth-child(4) { animation-delay: .075s; }
  progress::-webkit-progress-value { transition: width .24s ease; }
  .disclosure[open] .disclosure-answer { animation: rise-in .23s ease-out both; }

  @supports (interpolate-size: allow-keywords) and selector(::details-content) {
    .disclosure { interpolate-size: allow-keywords; }
    .disclosure::details-content {
      block-size: 0;
      opacity: 0;
      overflow: clip;
      transition: block-size .3s ease, opacity .22s ease, content-visibility .3s allow-discrete;
    }

    .disclosure[open]::details-content { block-size: auto; opacity: 1; }
    .disclosure[open] .disclosure-answer { animation: none; }
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .practice-ready { perspective: 1000px; }
  .practice-preview {
    transform: rotateX(var(--preview-tilt-x, 0deg)) rotateY(var(--preview-tilt-y, 0deg));
    transition: transform .18s ease-out, border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
  }
}

@media (max-width: 740px) and (prefers-reduced-motion: no-preference) {
  .has-entered { animation: mobile-section-in .48s cubic-bezier(.16, 1, .3, 1) both; }
}

@media (prefers-reduced-motion: reduce) {
  html, .page-content { scroll-behavior: auto; }
  .button, .site-nav a, .header-app, .disclosure summary, .disclosure-icon, .disclosure-icon::after { transition: none; }
}
