/* My Citizen Test. Retning A, redaktionel (valgt af Bjarke 2. november 2026). */

:root {
  --bg: #faf8f4; --ink: #1c1917; --muted: #6b665f; --line: #e4e0db; --soft: #f1eee8;
  --accent: #4f6353; --accent-ink: #fff; --right: #4f6353; --notice: #b07a3a;
  --card: #fffdf9; --radius: 0; --shadow: none;
  --f-head: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --f-body: -apple-system, "Helvetica Neue", Arial, sans-serif;
  --w: 960px; --h1: clamp(32px, 5vw, 46px); --head-weight: 400;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--f-body); }
a { color: var(--ink); text-underline-offset: 3px; }
h1, h2 { font-family: var(--f-head); font-weight: var(--head-weight); line-height: 1.12; margin: 0 0 16px; }
h1 { font-size: var(--h1); letter-spacing: -0.01em; }
h2 { font-size: clamp(22px, 3vw, 28px); }
[lang="ar"], [lang="fa"] { font-family: "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif; }

.top, main > section, .notice, .foot { width: min(var(--w), 100% - 32px); margin-inline: auto; }

/* Header */
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; color: var(--ink); flex: none; }
.brand-name { font-family: var(--f-head); font-weight: var(--head-weight); font-size: 20px; margin: 0; }
.countries { display: flex; gap: 18px; font-size: 14px; }
.countries a { text-decoration: none; color: var(--muted); }
.countries a[aria-current] { color: var(--ink); font-weight: 500; }
.countries small { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 40px 0 56px; }
.eyebrow, .section-label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.lead { font-size: 18px; max-width: 34em; margin: 0 0 28px; }
.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cta-note { font-size: 13px; color: var(--muted); }
.langs { margin: 24px 0 0; font-size: 14px; color: var(--muted); }
.btn { display: inline-block; font: 500 16px/1 var(--f-body); padding: 15px 22px; border: 1px solid var(--ink); background: transparent; color: var(--ink); border-radius: var(--radius); text-decoration: none; cursor: pointer; min-height: 48px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* Niveau 0: kort-stak i CSS-dybde. Ingen overflow på perspektiv-kæden. */
.stage { perspective: 1100px; perspective-origin: 30% 40%; min-height: 330px; display: grid; place-items: center; }
.stack { position: relative; width: min(340px, 100%); height: 260px; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -14deg)); transition: transform .25s ease-out; }
.card { position: absolute; inset: 0; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card p { margin: 10px 0 0; }
.card-back2 { transform: translate3d(34px, -34px, -90px); opacity: .55; }
.card-back1 { transform: translate3d(17px, -17px, -45px); opacity: .8; }
.card-front { transform: translateZ(30px); }
.tag { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); }
.q-da { font-family: var(--f-head); font-size: 20px; line-height: 1.3; }
.q-en { color: var(--muted); font-size: 14px; }
.opts { display: flex; gap: 10px; margin-top: 16px; }
.opts span { flex: 1; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 15px; }
.opts .right { border-color: var(--right); color: var(--right); font-weight: 500; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .card-back2, .card-back1 { animation: fan linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    @keyframes fan { from { transform: translate3d(0, 0, 0); opacity: 0; } }
  }
}
@media (prefers-reduced-motion: reduce) {
  .stack { transform: none; }
  .card-back1, .card-back2 { display: none; }
  .card-front { transform: none; }
}

/* Uafhængigheds-notits: callout med venstrekant */
.notice { padding: 14px 18px; border-left: 3px solid var(--notice); background: var(--soft); font-size: 14px; border-radius: var(--radius); }

/* Sektioner */
main > section:not(.hero) { padding-top: 56px; }
.qbox { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; max-width: 680px; }
.qbox-head { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.answers { display: grid; gap: 10px; margin: 18px 0; }
.answer { text-align: start; font: 400 16px/1.3 var(--f-body); padding: 14px 16px; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); min-height: 48px; }
.answer.is-right { border-color: var(--right); box-shadow: inset 3px 0 0 var(--right); }
.explain { border-top: 1px solid var(--line); padding-top: 14px; }
.lang-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.lang-tabs button { font: 400 13px/1 var(--f-body); padding: 9px 12px; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: var(--radius); min-height: 36px; cursor: pointer; }
.lang-tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }
.ex { margin: 0 0 10px; }
.source { font-size: 13px; color: var(--muted); margin: 0; }
.mt { white-space: nowrap; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.steps li { padding: 4px 24px 4px 20px; border-left: 1px solid var(--line); font-size: 15px; }
.steps li:first-child { padding-left: 0; border-left: 0; }
.steps strong { display: block; font-family: var(--f-head); font-weight: var(--head-weight); font-size: 18px; margin-bottom: 6px; }

.full h2 { max-width: 26em; }
.waitlist, .contact { display: grid; gap: 14px; max-width: 520px; margin-top: 20px; }
label { display: grid; gap: 6px; font-size: 14px; }
input, select, textarea { font: 400 16px/1.3 var(--f-body); padding: 12px 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: var(--radius); min-height: 48px; width: 100%; }
.consent { grid-template-columns: auto 1fr; align-items: start; color: var(--muted); }
.consent input { width: 22px; min-height: 22px; margin: 2px 0 0; accent-color: var(--accent); }

.foot { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 72px; padding: 32px 0 96px; border-top: 2px solid var(--ink); font-size: 14px; color: var(--muted); }
.foot .brand-name { color: var(--ink); }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 24px; padding: 20px 0 36px; }
  .stage { min-height: 290px; }
  .steps { grid-template-columns: 1fr; gap: 18px; }
  .steps li, .steps li:first-child { padding: 0 0 0 16px; border-left: 1px solid var(--line); }
  .foot { grid-template-columns: 1fr; gap: 24px; }
  .countries { gap: 12px; font-size: 13px; }
  .mt { white-space: normal; }
}


/* Quiz */
.panel { max-width: 680px; }
.muted { color: var(--muted); }
.lang-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.lang-pick .btn { width: 100%; }
.progress { height: 3px; background: var(--line); margin: 12px 0 18px; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.answer { display: flex; gap: 12px; align-items: baseline; cursor: pointer; width: 100%; }
.answer .letter { font-size: 13px; color: var(--muted); flex: none; }
.answer small { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.answer:disabled { cursor: default; color: var(--ink); }
.answer.is-wrong { border-color: #a04a3c; box-shadow: inset 3px 0 0 #a04a3c; }
.verdict { font-family: var(--f-head); font-size: 20px; margin: 4px 0 8px; }
.verdict.ok { color: var(--accent); } .verdict.no { color: #a04a3c; }
.ex-alt { margin: 0 0 8px; }
.link { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#next { margin-top: 18px; }
.scores { display: flex; gap: 0; margin: 8px 0 20px; }
.scores > div { display: grid; padding: 0 28px; border-left: 1px solid var(--line); }
.scores > div:first-child { padding-left: 0; border-left: 0; }
.big { font-family: var(--f-head); font-size: 40px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.scores .label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }
.scores .hint { font-size: 13px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; font-size: 14px; min-height: 1.4em; }
.form-msg.ok { color: var(--accent); } .form-msg.err { color: #a04a3c; }
.flash { border-left: 3px solid var(--notice); padding-left: 12px; }
.prose { max-width: 680px; } .prose h2 { margin-top: 32px; }
@media (max-width: 760px) {
  .btn-wide { width: 100%; text-align: center; }
  .scores > div { padding: 0 18px; }
}
.hero-plain { grid-template-columns: 1fr; padding-bottom: 24px; }
.country-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.country-list a { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.country-list strong { font-family: var(--f-head); font-weight: 400; font-size: 26px; }
.country-list span { color: var(--muted); font-size: 14px; }
