/* Testamenteudenadvokat.dk – design system */
:root {
  --color-navy: #173a59;
  --color-navy-deep: #10293f;
  --color-blue: #285f84;
  --color-blue-soft: #dfeaf2;
  --color-offwhite: #f8fafb;
  --color-surface: #ffffff;
  --color-border: #d9e3ea;
  --color-text: #22313f;
  --color-muted: #667785;
  --color-warn-bg: #fdf6ec;
  --color-warn-border: #e3c98f;
  --color-ok-bg: #eef6f0;
  --color-ok-border: #b8d8c4;
  --radius-sm: 8px;
  --radius-md: 14px;
  --shadow-soft: 0 8px 24px rgba(23, 58, 89, .08);
  --shadow-lift: 0 14px 34px rgba(23, 58, 89, .13);
  --content-width: 1180px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-offwhite);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--color-navy); }

:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap { max-width: var(--content-width); margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-navy);
  color: #fff;
  padding: .75rem 1.25rem;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .9rem;
  padding-bottom: .9rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--color-navy);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: .05em;
  white-space: nowrap;
}
.logo img { width: 40px; height: 40px; }
.logo:hover { color: var(--color-blue); }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: block;
  padding: .55rem .55rem;
  text-decoration: none;
  color: var(--color-text);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: color .18s ease, background-color .18s ease;
}
.site-nav a:hover { color: var(--color-navy); background: var(--color-blue-soft); }
.site-nav a[aria-current="page"] { color: var(--color-navy); background: var(--color-blue-soft); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: .6rem .9rem;
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--color-navy);
  cursor: pointer;
}
.menu-toggle .bars { display: inline-block; width: 20px; height: 2px; background: var(--color-navy); position: relative; }
.menu-toggle .bars::before, .menu-toggle .bars::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--color-navy);
  transition: transform .2s ease, top .2s ease;
}
.menu-toggle .bars::before { top: -6px; }
.menu-toggle .bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    z-index: 50;
  }
  .js .site-nav.open { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1.25rem; gap: .15rem; }
  .js .site-nav a { padding: .8rem .9rem; font-size: .9rem; }
  .site-header { position: relative; }
  .no-js .site-nav ul { flex-wrap: wrap; }
}
@media (max-width: 960px) {
  html:not(.js) .site-nav ul { flex-wrap: wrap; }
  html:not(.js) .menu-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, #eef4f8 0%, var(--color-offwhite) 100%);
  border-bottom: 1px solid var(--color-border);
  padding: 3.5rem 0 3rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.14;
  color: var(--color-navy);
  margin: 0 0 1.1rem;
  letter-spacing: -.01em;
}
.hero .lede { font-size: 1.16rem; line-height: 1.65; color: var(--color-text); max-width: 34rem; margin: 0 0 1.6rem; }
.hero-media img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.8rem; }

.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--color-navy); color: #fff; }
.btn-primary:hover { background: var(--color-blue); color: #fff; }
.btn-secondary { background: transparent; color: var(--color-navy); border: 1.5px solid var(--color-navy); }
.btn-secondary:hover { background: var(--color-navy); color: #fff; }

.trust-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 34rem;
}
.trust-points li {
  position: relative;
  padding-left: 1.7rem;
  font-size: .95rem;
  color: var(--color-text);
}
.trust-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .32em;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--color-blue-soft) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23173a59" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"><polyline points="5 13 10 18 19 7"/></svg>') center / .68rem no-repeat;
}

/* ---------- Page hero (undersider) ---------- */
.page-hero {
  background: linear-gradient(180deg, #eef4f8 0%, var(--color-offwhite) 100%);
  border-bottom: 1px solid var(--color-border);
  padding: 2.2rem 0 2.4rem;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.2;
  color: var(--color-navy);
  margin: 0 auto .9rem;
  max-width: 46rem;
}
.page-hero .lede { font-size: 1.1rem; max-width: 44rem; margin: 0 auto; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: .9rem 0 0; font-size: .88rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.breadcrumb li { display: flex; align-items: center; gap: .35rem; color: var(--color-muted); }
.breadcrumb li + li::before { content: "›"; color: var(--color-border); font-weight: 700; }
.breadcrumb a { color: var(--color-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-blue); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--color-text); font-weight: 600; }

/* ---------- Layout ---------- */
.content { padding: 2.6rem 0 3.6rem; }
.article-body { max-width: none; }
.wrap.article-body { max-width: var(--content-width); }
.article-body h2 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  line-height: 1.3;
  color: var(--color-navy);
  margin: 2.6rem 0 .9rem;
}
.article-body h3 { font-size: 1.14rem; color: var(--color-navy); margin: 1.8rem 0 .6rem; }
.article-body p { margin: 0 0 1.1rem; }
.article-body ul, .article-body ol { margin: 0 0 1.2rem; padding-left: 1.4rem; }
.article-body li { margin-bottom: .45rem; }
.article-body img.inline-img {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  margin: 1.6rem 0;
}

/* ---------- Boxes ---------- */
.answer-box, .fact-box, .warn-box, .source-box {
  border-radius: var(--radius-md);
  padding: 1.3rem 1.5rem;
  margin: 1.6rem 0;
  font-size: 1rem;
}
.answer-box { background: var(--color-blue-soft); border: 1px solid #c6d9e6; }
.answer-box p:last-child, .fact-box p:last-child, .warn-box p:last-child, .source-box p:last-child { margin-bottom: 0; }
.answer-box .box-label, .fact-box .box-label, .warn-box .box-label, .source-box .box-label {
  display: block;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: .45rem;
}
.fact-box { background: var(--color-ok-bg); border: 1px solid var(--color-ok-border); }
.fact-box .box-label { color: #2e6b46; }
.warn-box { background: var(--color-warn-bg); border: 1px solid var(--color-warn-border); }
.warn-box .box-label { color: #8a6a1f; }
.source-box { background: #f1f4f6; border: 1px solid var(--color-border); font-size: .92rem; color: var(--color-muted); }
.source-box .box-label { color: var(--color-muted); }

/* ---------- Cards ---------- */
.section { padding: 3rem 0; }
.section-alt { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.section-head { max-width: 44rem; margin-bottom: 2rem; }
.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--color-navy);
  margin: 0 0 .7rem;
  line-height: 1.25;
}
.section-head p { margin: 0; color: var(--color-muted); font-size: 1.05rem; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; }
.card-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.5rem 1.4rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.card { text-decoration: none; color: inherit; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: #b9cdd9; }
.card h3 { font-family: var(--font-serif); font-size: 1.18rem; color: var(--color-navy); margin: 0 0 .55rem; line-height: 1.35; }
.card p { margin: 0 0 .9rem; font-size: .96rem; color: var(--color-text); flex: 1; }
.card .card-link { font-size: .9rem; font-weight: 600; color: var(--color-blue); }
.card .card-link::after { content: " →"; }
.card .card-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-blue-soft);
  line-height: 1;
  margin-bottom: .6rem;
  font-weight: 700;
}

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: step; margin: 1.6rem 0; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.4rem 3.4rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: .1rem;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}
.steps li::after {
  content: "";
  position: absolute;
  left: 1.12rem;
  top: 2.6rem;
  bottom: .2rem;
  width: 2px;
  background: var(--color-border);
}
.steps li:last-child::after { display: none; }
.steps h3 { margin: .35rem 0 .35rem; }
.steps p { margin: 0; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 1.6rem 0; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
caption { text-align: left; padding: .9rem 1.1rem 0; font-size: .88rem; color: var(--color-muted); }
th, td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--color-border); vertical-align: top; }
thead th { background: var(--color-navy); color: #fff; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; }
tbody th { font-weight: 600; color: var(--color-navy); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #f4f8fa; }

/* ---------- FAQ ---------- */
.faq { margin: 2rem 0; }
.faq details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: .7rem;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 1rem 3rem 1rem 1.2rem;
  font-weight: 600;
  color: var(--color-navy);
  position: relative;
  list-style: none;
  transition: background-color .15s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--color-blue);
  transition: transform .2s ease;
}
.faq details[open] summary { background: var(--color-blue-soft); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details .faq-answer { padding: .9rem 1.2rem 1.1rem; }
.faq details .faq-answer p { margin: 0 0 .8rem; }
.faq details .faq-answer p:last-child { margin-bottom: 0; }

/* ---------- Author box ---------- */
.author-box {
  display: flex;
  gap: 1.3rem;
  align-items: flex-start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2.6rem 0 0;
  box-shadow: var(--shadow-soft);
}
.author-box img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--color-blue-soft); }
.author-box .author-name { font-family: var(--font-serif); font-weight: 700; color: var(--color-navy); font-size: 1.08rem; margin: 0 0 .15rem; }
.author-box .author-role { font-size: .85rem; color: var(--color-muted); margin: 0 0 .6rem; }
.author-box p { margin: 0 0 .6rem; font-size: .95rem; }
.author-box p:last-child { margin-bottom: 0; }

.meta-line { font-size: .88rem; color: var(--color-muted); margin: 0 0 1.4rem; }
.meta-line strong { color: var(--color-text); font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--color-navy);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 2.6rem 2.4rem;
  text-align: center;
  margin: 3rem 0 0;
}
.cta-band h2 { font-family: var(--font-serif); font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 .7rem; color: #fff; }
.cta-band p { margin: 0 auto 1.5rem; max-width: 36rem; color: #cfdde8; }
.cta-band .btn-primary { background: #fff; color: var(--color-navy); }
.cta-band .btn-primary:hover { background: var(--color-blue-soft); color: var(--color-navy); }
.cta-band .btn-secondary { border-color: #fff; color: #fff; margin-left: .6rem; }
.cta-band .btn-secondary:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy-deep);
  color: #b9c9d6;
  margin-top: 4rem;
  padding: 3.2rem 0 2rem;
  font-size: .92rem;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.2rem; }
.footer-brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-family: var(--font-serif); font-weight: 700; font-size: 1.05rem; margin-bottom: .9rem; }
.footer-brand img { width: 34px; height: 34px; }
.site-footer h2 { font-size: .8rem; letter-spacing: .09em; text-transform: uppercase; color: #7e96aa; margin: 0 0 .9rem; font-family: var(--font-sans); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #b9c9d6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  font-size: .84rem;
  color: #8ba1b3;
  text-align: center;
}
.footer-disclaimer p { margin: 0 auto .5rem; max-width: 60rem; }

/* ---------- Entrance motion ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-grid > *, .page-hero .wrap > * { animation: rise .55s ease both; }
.hero-grid > *:nth-child(2) { animation-delay: .12s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-media { order: -1; }
  .card-grid, .card-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 1rem; }
  .logo { font-size: .7rem; letter-spacing: .04em; gap: .45rem; }
  .logo img { width: 28px; height: 28px; }  .card-grid, .card-grid.cols-2 { grid-template-columns: 1fr; }
  .trust-points { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; }
  .hero { padding: 2.4rem 0 2.2rem; }
  .cta-band { padding: 2rem 1.4rem; }
  .cta-band .btn-secondary { margin-left: 0; margin-top: .6rem; }
  .btn { width: 100%; text-align: center; }
  .hero-ctas .btn { width: auto; }
}

@media (max-width: 360px) {
  .logo { font-size: .62rem; gap: .4rem; }
  .logo img { width: 26px; height: 26px; }
  .menu-toggle { padding: .55rem .7rem; font-size: .78rem; }
}

@media (max-width: 360px) {
  .header-inner { padding-left: .9rem; padding-right: .9rem; }
}

@media (max-width: 620px) {
  .table-wrap { overflow-x: visible; border: 0; background: transparent; }
  .table-wrap table { min-width: 0; }
  .table-wrap thead { display: none; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td, .table-wrap tbody th { display: block; width: 100%; }
  .table-wrap tbody tr {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    margin-bottom: .9rem;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
  }
  .table-wrap tbody tr:nth-child(even) { background: var(--color-surface); }
  .table-wrap tbody th {
    background: var(--color-navy);
    color: #fff;
    padding: .7rem 1rem;
    border-bottom: 0;
  }
  .table-wrap tbody td { padding: .65rem 1rem; border-bottom: 1px solid var(--color-border); }
  .table-wrap tbody td:last-child { border-bottom: 0; }
  .table-wrap td::before {
    content: attr(data-label);
    display: block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--color-muted);
    margin-bottom: .15rem;
  }
  .table-wrap caption { padding: .5rem 0 .8rem; }
}

.hero-portrait {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.4rem;
  border: 3px solid var(--color-blue-soft);
  box-shadow: var(--shadow-soft);
}
@media (max-width: 620px) {
  .hero-portrait { width: 120px; height: 120px; }
}

@media (max-width: 900px) {
  .hero h1 { text-align: center; }
}


/* ---------- Anmeldelser / recommendation badge ---------- */
.reco-badge {
  display: inline-block;
  background: var(--color-ok-bg);
  border: 1px solid var(--color-ok-border);
  color: #2e6b46;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 999px;
  margin-bottom: .8rem;
}
.card-reco { border: 2px solid var(--color-ok-border); }
.review-price {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--color-navy);
  margin: .2rem 0 .1rem;
}
.review-price-note { color: var(--color-muted); font-size: .92rem; margin-top: 0; }

/* ---------- Decision guide quiz ---------- */
[hidden] { display: none !important; }
html:not(.js) .quiz { display: none; }
.quiz {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 1.8rem 1.8rem 1.6rem;
  margin: 1.6rem 0 2.2rem;
}
.quiz-progress { height: 6px; background: var(--color-border); border-radius: 999px; overflow: hidden; margin-bottom: .55rem; }
.quiz-progress-bar { display: block; height: 100%; background: var(--color-navy); width: 0; transition: width .3s ease; }
.quiz-step-count { font-size: .82rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--color-muted); margin: 0 0 1rem; }
.quiz fieldset { border: 0; padding: 0; margin: 0; }
.quiz legend { font-family: var(--font-serif); font-size: 1.35rem; color: var(--color-navy); font-weight: 700; padding: 0; margin-bottom: 1rem; line-height: 1.35; }
.quiz-options { display: grid; gap: .7rem; margin-bottom: 1.2rem; }
.quiz-option {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  background: var(--color-offwhite);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: .9rem 1.1rem;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.quiz-option:hover { border-color: #b9cdd9; box-shadow: var(--shadow-soft); }
.quiz-option input { margin-top: .3rem; accent-color: var(--color-navy); flex-shrink: 0; }
.quiz-option:has(input:checked) { border-color: var(--color-navy); background: var(--color-blue-soft); }
.quiz-error { color: #9a3b2e; font-size: .92rem; font-weight: 600; margin: 0 0 .8rem; }
.quiz-nav { display: flex; gap: .7rem; }
.quiz-result {
  background: var(--color-ok-bg);
  border: 1px solid var(--color-ok-border);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.7rem;
}
.quiz-result h3 { font-family: var(--font-serif); color: var(--color-navy); font-size: 1.4rem; margin: 0 0 .6rem; }
.quiz-result .box-label { color: #2e6b46; }
.quiz-result p { margin: 0 0 1.1rem; }
.quiz-result .btn-secondary { margin-left: .6rem; }
@media (max-width: 620px) {
  .quiz { padding: 1.3rem 1.1rem 1.2rem; }
  .quiz-nav { flex-direction: column-reverse; }
  .quiz-nav .btn { width: 100%; text-align: center; }
  .quiz-result .btn { display: block; width: 100%; text-align: center; }
  .quiz-result .btn-secondary { margin: .6rem 0 0; }
}

/* ---------- Scroll reveal (JS adds .reveal; hidden only when JS active) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1 !important; transform: none !important; }
}
@media print {
  html.js .reveal { opacity: 1 !important; transform: none !important; }
}

