/*
  Latitude 28 -- styles.css
  Visual family: Sunny Regional (primary) with Civic Editorial as a bounded
  secondary influence limited to two dimensions: evidence/checked-date label
  treatment and the stat-bar / source-note component structure. See README
  for the full originality transformation table and five-decision block.
*/

/* ---------- Tokens ---------- */
:root {
  --ink: #1c3a3c;
  --ink-soft: #33565a;
  --muted: #5b6f72;
  --surface: #fdf8ee;
  --surface-alt: #f7efdc;
  --surface-card: #ffffff;
  --line: #e3d8bd;
  --line-strong: #cdbd93;
  --brand: #1f7a7e;
  --brand-strong: #145256;
  --accent: #dd7a26;
  --accent-strong: #b75f16;
  --action: #1f7a7e;
  --action-hover: #145256;
  --warning: #a23b2e;
  --focus: #0b5cab;
  --evidence-bg: #fbf3e2;
  --evidence-border: #cdbd93;

  --font-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-meta: ui-monospace, "Consolas", "SFMono-Regular", monospace;

  --step--1: clamp(.76rem, .73rem + .12vw, .84rem);
  --step-0: clamp(1rem, .96rem + .18vw, 1.06rem);
  --step-1: clamp(1.2rem, 1.1rem + .4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + .8vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.8vw, 2.7rem);

  --space-1: .35rem;
  --space-2: .65rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.25rem;
  --space-6: 3.5rem;
  --container: 75rem;
  --reading: 44rem;

  --radius-control: 6px;
  --radius-card: 12px;
  --radius-special: 18px;
  --radius-round: 50%;

  --border-thin: 1px solid var(--line);
  --border-strong: 2px solid var(--ink);
  --border-accent: 3px solid var(--accent);

  --shadow-low: 0 4px 14px rgb(30 60 60 / .08);
  --shadow-raised: 0 12px 30px rgb(30 60 60 / .14);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-strong); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; margin: 0 0 var(--space-3); }
p { margin: 0 0 var(--space-3); }
ul, ol { margin: 0 0 var(--space-3); padding-left: 1.3rem; }
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--space-4); }
@media (max-width: 480px) { .container { padding-inline: var(--space-3); } }

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

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--surface);
  border-bottom: var(--border-thin);
  position: relative;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
@media (max-width: 900px) {
  .site-header .container { min-height: 58px; }
}
.brand {
  display: flex; align-items: center; gap: .55rem;
  text-decoration: none; color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-1);
}
.brand-mark {
  width: 34px; height: 34px; flex: none; position: relative;
  border-radius: var(--radius-round);
  background: conic-gradient(from 210deg, var(--accent), var(--brand) 55%, var(--brand-strong) 100%);
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px var(--line-strong);
}
.brand-mark::after {
  content: "";
  position: absolute; inset: 8px;
  border-radius: var(--radius-round);
  background: var(--surface);
}
.brand-name span { color: var(--brand-strong); }
.brand-name em { color: var(--accent-strong); font-style: normal; }

.nav-toggle {
  position: fixed; top: 0; left: 0;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.nav-btn {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: var(--border-thin); border-radius: var(--radius-control);
  background: var(--surface-card); cursor: pointer;
}
.nav-btn .bar-wrap { position: relative; width: 20px; height: 14px; }
.nav-btn .bar, .nav-btn .bar::before, .nav-btn .bar::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--ink);
}
.nav-btn .bar { top: 6px; }
.nav-btn .bar::before { top: -6px; }
.nav-btn .bar::after { top: 6px; }
.nav-btn .btn-label-open { display: inline; }
.nav-btn .btn-label-close { display: none; }
.nav-toggle:checked ~ .nav-btn .btn-label-open { display: none; }
.nav-toggle:checked ~ .nav-btn .btn-label-close { display: inline; }
.nav-toggle:checked ~ .nav-btn .bar { background: transparent; }
.nav-toggle:checked ~ .nav-btn .bar::before { transform: rotate(45deg); top: 0; }
.nav-toggle:checked ~ .nav-btn .bar::after { transform: rotate(-45deg); top: 0; }
.nav-toggle:focus-visible ~ .nav-btn { outline: 3px solid var(--focus); outline-offset: 2px; }
.nav-btn .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.site-nav ul {
  display: flex; gap: var(--space-4); list-style: none; margin: 0; padding: 0;
}
.site-nav a {
  text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: var(--step--1);
  padding: .4rem .1rem; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brand-strong); border-bottom-color: var(--accent); }

@media (max-width: 900px) {
  .nav-btn { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface-card); border-bottom: var(--border-thin);
    box-shadow: var(--shadow-low);
  }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: var(--space-2) var(--space-4); }
  .site-nav a { display: block; min-height: 44px; display: flex; align-items: center; }
}

/* ---------- Hero ---------- */
.hero { padding-block: var(--space-4) var(--space-3); position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--surface-alt) 0%, var(--surface) 65%);
}
.hero::after {
  content: "";
  position: absolute; right: -10%; top: -30%; width: 55%; height: 220%; z-index: -1;
  background: radial-gradient(circle at 30% 30%, rgb(221 122 38 / .16), transparent 60%),
              radial-gradient(circle at 70% 60%, rgb(31 122 126 / .14), transparent 55%);
  transform: rotate(8deg);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--space-4); align-items: start; min-width: 0;
}
.hero-grid > * { min-width: 0; }
.hero h1 { font-size: var(--step-3); max-width: 24ch; margin-bottom: var(--space-2); }
.hero-intro { max-width: 58ch; font-size: var(--step-0); color: var(--ink-soft); margin-bottom: var(--space-2); }

.hero-more-toggle { position: fixed; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hero-more-label {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 44px; cursor: pointer;
  font-weight: 700; color: var(--brand-strong); font-size: var(--step--1);
  margin-bottom: var(--space-2);
}
.hero-more-label::after {
  content: ""; width: 7px; height: 7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s ease;
}
.hero-more-toggle:checked ~ .hero-more-label .txt-more { display: none; }
.hero-more-toggle:not(:checked) ~ .hero-more-label .txt-less { display: none; }
.hero-more-toggle:checked ~ .hero-more-label::after { transform: rotate(-135deg); }
.hero-more { display: none; max-width: 58ch; color: var(--ink-soft); }
.hero-more-toggle:checked ~ .hero-more { display: block; }

.reviewer-row {
  display: flex; flex-wrap: nowrap; align-items: center; gap: var(--space-2);
  border: var(--border-thin); border-radius: var(--radius-card);
  background: var(--surface-card); padding: var(--space-2) var(--space-3);
  max-width: 40rem; min-width: 0; width: 100%; box-shadow: var(--shadow-low);
  overflow: hidden;
}
.reviewer-avatar {
  width: 44px; height: 44px; border-radius: var(--radius-round); flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, var(--brand), var(--brand-strong));
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  object-fit: cover;
}
.reviewer-id { min-width: 0; flex: 1 1 auto; overflow: hidden; }
.reviewer-name { font-weight: 700; font-size: var(--step--1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reviewer-role-long { display: inline; }
.reviewer-role-short { display: none; }
.reviewer-role {
  color: var(--muted); font-size: .78rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.reviewer-stats {
  margin-left: auto; padding-left: var(--space-2); border-left: var(--border-thin);
  display: flex; gap: var(--space-2); font-size: .72rem; color: var(--muted); font-family: var(--font-meta);
  white-space: nowrap; flex: none; min-width: 0;
}
@media (max-width: 480px) {
  .reviewer-role-long { display: none; }
  .reviewer-role-short { display: inline; }
}
@media (max-width: 400px) {
  .reviewer-stats { display: none; }
}
@media (max-width: 360px) {
  .reviewer-avatar { width: 34px; height: 34px; font-size: .8rem; }
  .reviewer-row { gap: .5rem; padding: .5rem .6rem; }
  .reviewer-name { font-size: .82rem; }
  .reviewer-role { font-size: .68rem; }
}

.editor-choice {
  border: var(--border-thin); border-radius: var(--radius-special);
  background: var(--surface-card); padding: var(--space-4);
  box-shadow: var(--shadow-raised);
  border-top: var(--border-accent);
  display: none;
}
.editor-choice .ec-eyebrow {
  font-family: var(--font-meta); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand-strong); font-weight: 700; margin-bottom: .4rem;
}
.editor-choice .ec-name { font-size: var(--step-1); margin-bottom: .2rem; }
.editor-choice .ec-offer {
  background: var(--evidence-bg); border-left: 4px solid var(--accent);
  border-radius: var(--radius-control); padding: var(--space-2) var(--space-3);
  margin-block: var(--space-2);
}
.editor-choice .ec-offer strong { color: var(--accent-strong); }
.editor-choice .ec-terms { font-size: .82rem; color: var(--muted); margin-bottom: var(--space-3); }

@media (min-width: 901px) {
  .hero-grid { grid-template-columns: minmax(0,1fr) 20rem; gap: var(--space-5); }
  .editor-choice { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .7rem 1.3rem;
  border-radius: var(--radius-control); border: none;
  font-weight: 700; font-size: var(--step--1); text-decoration: none;
  cursor: pointer; text-align: center;
}
.btn-primary { background: var(--action); color: #fff; }
.btn-primary:hover { background: var(--action-hover); }
.btn-block { width: 100%; }
.btn-outline { background: transparent; border: 2px solid var(--brand); color: var(--brand-strong); }

/* ---------- Section shells ---------- */
section { padding-block: var(--space-5); }
.section-tight { padding-block: var(--space-4); }
.section-title { font-size: var(--step-2); margin-bottom: var(--space-2); }
.section-lede { color: var(--ink-soft); max-width: var(--reading); margin-bottom: var(--space-4); }
.center { text-align: center; }
.section-alt { background: var(--surface-alt); }

/* ---------- Compact ranked list ---------- */
.ranked-list { display: flex; flex-direction: column; gap: var(--space-2); }
.op-card {
  display: grid;
  grid-template-columns: 42px 15rem minmax(0, 1fr) 10.5rem;
  align-items: center;
  gap: var(--space-3);
  background: var(--surface-card);
  border: var(--border-thin);
  border-radius: var(--radius-card);
  padding: var(--space-2) var(--space-3);
}
.op-card.is-first {
  border-top: var(--border-accent);
  box-shadow: var(--shadow-low);
}
@media (min-width: 981px) {
  .op-card {
    grid-template-columns: 68px 24rem minmax(0, 1fr) 17rem;
    gap: 1.6rem;
    padding: 1.1rem 1.7rem;
  }
  .op-rank { width: 54px; height: 54px; font-size: 1.5rem; }
  .op-mark { width: 64px; height: 64px; }
  .op-name { font-size: 1.3rem; }
  .op-offer { font-size: 1.15rem; padding: .65rem 1.1rem; }
  .op-cta { font-size: 1.1rem; padding: .9rem 1.4rem; min-height: 54px; }
}
.op-rank {
  width: 34px; height: 34px; border-radius: var(--radius-control);
  background: var(--brand); color: #fff; font-family: var(--font-meta); font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: .95rem;
}
.op-card.is-first .op-rank { background: var(--accent); }
.op-name-wrap { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.op-mark {
  width: 40px; height: 40px; flex: none; border-radius: var(--radius-control);
  background: var(--surface); border: var(--border-thin); box-sizing: border-box; padding: 3px;
  object-fit: contain; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: .85rem;
}
.op-name { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-name a { color: var(--ink); text-decoration: none; }
.op-badge {
  display: inline-block; font-family: var(--font-meta); font-size: .65rem; text-transform: uppercase;
  letter-spacing: .04em; background: var(--accent); color: #fff; padding: .1rem .4rem; border-radius: 4px;
  margin-left: .4rem;
}
.op-offer {
  background: var(--evidence-bg); border-left: 3px solid var(--accent);
  border-radius: var(--radius-control); padding: .4rem .7rem; font-size: .86rem; color: var(--ink-soft);
  min-width: 0;
}
.op-offer strong { color: var(--accent-strong); }
.op-cta { width: 100%; }

@media (max-width: 980px) {
  .op-card {
    grid-template-columns: 36px 1fr;
    grid-template-areas: "rank name" "offer offer" "cta cta";
    row-gap: .5rem;
  }
  .op-rank { grid-area: rank; }
  .op-name-wrap { grid-area: name; }
  .op-offer { grid-area: offer; }
  .op-cta { grid-area: cta; }
}
@media (max-width: 700px) {
  .op-card { padding: var(--space-3); }
}

.list-note { font-size: .82rem; color: var(--muted); margin-top: var(--space-3); max-width: var(--reading); }

/* ---------- Quick comparison table ---------- */
.compare-wrap { overflow-x: auto; }
table.compare {
  width: 100%; border-collapse: collapse; min-width: 640px;
}
table.compare th, table.compare td { padding: .65rem .8rem; border: var(--border-thin); font-size: .88rem; text-align: left; }
table.compare thead th {
  background: var(--brand-strong); color: #fff; border-bottom: 3px solid var(--accent);
  font-family: var(--font-meta); text-transform: uppercase; font-size: .72rem; letter-spacing: .04em;
}
table.compare tbody tr:nth-child(even) { background: var(--surface-alt); }
table.compare tbody tr:hover { background: var(--evidence-bg); }
table.compare caption { text-align: left; padding-bottom: .5rem; font-size: .85rem; color: var(--muted); }

/* ---------- Full reviews ---------- */
.reviews-list { display: flex; flex-direction: column; gap: var(--space-4); }
.review-card {
  border: var(--border-thin); border-radius: var(--radius-card);
  background: var(--surface-card); padding: var(--space-4);
  scroll-margin-top: 90px;
}
.review-head { display: flex; align-items: flex-start; gap: var(--space-3); margin-bottom: var(--space-2); }
.review-rank {
  flex: none; width: 40px; height: 40px; border-radius: var(--radius-control);
  background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-meta); font-weight: 700;
}
.review-mark {
  flex: none; width: 56px; height: 56px; border-radius: var(--radius-control);
  background: var(--surface); border: var(--border-thin); box-sizing: border-box; padding: 4px;
  object-fit: contain; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
}
.review-id-block { min-width: 0; }
.review-name { font-size: var(--step-1); margin: 0; }
.review-tagline {
  font-family: var(--font-meta); text-transform: uppercase; font-size: .7rem; letter-spacing: .04em;
  color: var(--accent-strong); font-weight: 700;
}
.review-verdict {
  border-left: 3px solid var(--accent); padding-left: .8rem; font-style: italic;
  color: var(--ink-soft); margin-block: var(--space-2);
}
.stat-bar {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2);
  border: var(--evidence-border) solid 1px; background: var(--evidence-bg);
  border-radius: var(--radius-control); padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-3);
}
.stat-col { min-width: 0; }
.stat-label {
  display: block; font-family: var(--font-meta); font-size: .66rem; text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted); margin-bottom: .15rem;
}
.stat-value { font-weight: 700; color: var(--ink); font-size: .92rem; }
.review-prose { max-width: var(--reading); color: var(--ink-soft); }
.review-prose p { margin-bottom: .8rem; }
.review-cta-row { margin-top: var(--space-3); }
.review-source {
  margin-top: var(--space-2); font-size: .74rem; color: var(--muted); font-family: var(--font-meta);
}

@media (min-width: 560px) {
  .stat-bar { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* ---------- How We Rank / method grids ---------- */
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
@media (max-width: 980px) { .method-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .method-grid { grid-template-columns: 1fr; } }
.method-card {
  border: var(--border-thin); border-radius: var(--radius-card);
  background: var(--surface-card); padding: var(--space-3);
  text-align: center;
}
.method-card .m-tile {
  width: 46px; height: 46px; margin-inline: auto; margin-bottom: .6rem;
  border-radius: var(--radius-control); background: var(--surface-alt); border: var(--border-thin);
  display: flex; align-items: center; justify-content: center; color: var(--brand-strong); font-weight: 700;
}
.method-card h3 { font-size: var(--step-0); margin-bottom: .3rem; }
.method-card p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ---------- Safe Gambling panel ---------- */
.safe-panel {
  border: var(--border-thin); border-left: 4px solid var(--warning);
  border-radius: var(--radius-card); background: var(--surface-card);
  padding: var(--space-4); display: grid; gap: var(--space-3);
}
@media (min-width: 700px) { .safe-panel { grid-template-columns: repeat(3, 1fr); } }
.safe-panel .sp-item h3 { font-size: var(--step-0); margin-bottom: .3rem; }
.safe-panel .sp-item p { font-size: .88rem; color: var(--muted); margin-bottom: .3rem; }

/* ---------- Article + sidebar ---------- */
.article-wrap { display: block; }
.article-head { margin-inline: 0; max-width: var(--reading); }
@media (min-width: 1100px) {
  .article-grid { display: grid; grid-template-columns: minmax(0,1fr) 17rem; gap: var(--space-5); align-items: start; }
  .article-toc-wrap { align-self: stretch; height: 100%; }
  .article-toc {
    position: sticky; top: var(--space-4);
    border: var(--border-thin); border-radius: var(--radius-card);
    background: var(--surface-card); padding: var(--space-3);
  }
}
.article-toc { display: none; }
@media (min-width: 1100px) { .article-toc { display: block; } }
.article-toc h2 { font-size: var(--step--1); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: .6rem; }
.article-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.article-toc li { counter-increment: toc; margin-bottom: .35rem; font-size: .84rem; }
.article-toc li::before { content: counter(toc) ". "; color: var(--accent-strong); font-weight: 700; }
.article-toc a { text-decoration: none; color: var(--ink-soft); }
.article-toc a:hover { color: var(--brand-strong); }

.article-body { max-width: var(--reading); }
.article-body h2 { font-size: var(--step-1); margin-top: var(--space-5); scroll-margin-top: 90px; }
.article-body h2 .num { color: var(--accent-strong); font-family: var(--font-meta); margin-right: .4rem; }
.article-body p { color: var(--ink-soft); }
.article-body dl { border-top: var(--border-thin); padding-top: var(--space-2); }
.article-body dt { font-weight: 700; color: var(--ink); }
.article-body dd { margin: 0 0 var(--space-2); color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-item { border: var(--border-thin); border-radius: var(--radius-control); margin-bottom: var(--space-2); background: var(--surface-card); }
.faq-item summary {
  padding: var(--space-2) var(--space-3); cursor: pointer; font-weight: 700; list-style: none;
  display: flex; justify-content: space-between; align-items: center; min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.2rem; color: var(--accent-strong); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 var(--space-3) var(--space-3); color: var(--ink-soft); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-strong); color: #fdf8ee; padding-block: var(--space-5) var(--space-4); margin-top: var(--space-6); }
.footer-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(4, 1fr); margin-bottom: var(--space-4); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; font-size: var(--step--1); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { color: #e4ecec; text-decoration: none; font-size: .9rem; }
.site-footer a:hover { text-decoration: underline; }
.footer-legal { border-top: 1px solid rgb(255 255 255 / .18); padding-top: var(--space-3); font-size: .78rem; color: #cfe0e0; }
.footer-legal .trust-links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: .6rem; }
.footer-legal .trust-links a { color: #cfe0e0; }

/* ---------- Cookie notice ---------- */
.cookie-toggle { position: fixed; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cookie-note {
  position: fixed; left: var(--space-3); right: var(--space-3); bottom: var(--space-3); z-index: 90;
  background: var(--ink); color: #fdf8ee; border-radius: var(--radius-control);
  padding: .7rem 1rem; display: flex; align-items: center; gap: var(--space-3);
  box-shadow: var(--shadow-raised);
  opacity: 0; visibility: hidden;
  animation: cookie-note-in .35s ease-out 2s forwards;
}
@keyframes cookie-note-in { from { opacity: 0; visibility: visible; } to { opacity: 1; visibility: visible; } }
.cookie-note p { margin: 0; font-size: .82rem; flex: 1; }
.cookie-note a { color: #fff; text-decoration: underline; }
.cookie-dismiss {
  flex: none; min-height: 44px; padding: .4rem 1rem; border-radius: var(--radius-control);
  background: var(--accent); color: #fff; font-weight: 700; border: none; cursor: pointer; font-size: .82rem;
}
.cookie-toggle:checked ~ .cookie-note { display: none; }
@media (max-width: 560px) {
  .cookie-note { flex-wrap: nowrap; font-size: .76rem; }
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 16px; bottom: 16px; width: 42px; height: 42px; z-index: 80;
  border-radius: var(--radius-round); background: var(--brand-strong); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.to-top::before {
  content: ""; width: 10px; height: 10px; border-top: 3px solid #fff; border-left: 3px solid #fff;
  transform: rotate(45deg) translateY(2px);
}
.cookie-toggle:not(:checked) ~ .to-top { bottom: 6.5rem; }
@media (max-width: 560px) { .cookie-toggle:not(:checked) ~ .to-top { bottom: 7.5rem; } }

@supports (animation-timeline: scroll()) {
  .to-top {
    animation: to-top-reveal linear both;
    animation-timeline: scroll();
    animation-range: 300px 700px;
  }
  @keyframes to-top-reveal { from { opacity: 0; visibility: hidden; } to { opacity: 1; visibility: visible; } }
}
@media (prefers-reduced-motion: reduce) {
  .to-top { animation: none; opacity: 1; visibility: visible; }
}

/* ---------- Generic page content (legal pages) ---------- */
.page-head { padding-block: var(--space-4) var(--space-3); background: var(--surface-alt); border-bottom: var(--border-thin); }
.page-head h1 { font-size: var(--step-2); margin-bottom: .3rem; }
.page-head p { color: var(--muted); margin: 0; }
.page-body { max-width: var(--reading); }
.page-body h2 { font-size: var(--step-1); margin-top: var(--space-4); }
.page-body p { color: var(--ink-soft); }
.callout {
  border: var(--border-thin); border-left: 4px solid var(--brand);
  background: var(--surface-alt); border-radius: var(--radius-control);
  padding: var(--space-3); margin-block: var(--space-3);
}

/* ---------- Contact form ---------- */
.contact-form { max-width: 34rem; display: grid; gap: var(--space-3); }
.contact-form label { display: block; font-weight: 700; margin-bottom: .3rem; font-size: .9rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: .6rem .7rem; border: var(--border-thin); border-radius: var(--radius-control);
  font-family: var(--font-body); font-size: 1rem; background: var(--surface-card); color: var(--ink);
}
.contact-form textarea { min-height: 8rem; resize: vertical; }
.contact-note { font-size: .82rem; color: var(--muted); }

/* ---------- 404 ---------- */
.error-hero { text-align: center; padding-block: var(--space-6); }
.error-hero .code { font-family: var(--font-meta); font-size: var(--step-3); color: var(--brand); }
.error-links { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; margin-top: var(--space-3); }

/* ---------- Attention micro-interactions ---------- */
@keyframes cta-wiggle {
  0%, 90%, 100% { transform: rotate(0deg); }
  92% { transform: rotate(-1.5deg); }
  95% { transform: rotate(1.5deg); }
  98% { transform: rotate(-1deg); }
}
.btn-primary { animation: cta-wiggle 4.5s ease-in-out infinite; }
.btn-primary:hover { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .btn-primary { animation: none; }
}
