/* Reel Compare UK — single stylesheet: tokens, base, utilities, components */

/* ---------- tokens ---------- */
:root {
  --paper: #F5F8FA;
  --white: #FFFFFF;
  --ink: #1A2733;
  --slate: #33506B;
  --slate-deep: #22374B;
  --slate-mist: #E6EDF3;
  --line: #C9D4DE;
  --lime: #C4E625;
  --lime-ink: #59680B;
  --star-off: #C2CDD8;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
  --wrap: 1120px;
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 64px; --s8: 96px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.028'/%3E%3C/svg%3E");
}

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); }
h3 { font-size: 1.25rem; }

p, li, dd { max-width: 72ch; }

a { color: var(--slate); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

strong { font-weight: 700; }

/* ---------- layout utilities ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s4); }
.wrap-narrow { max-width: 780px; margin-inline: auto; padding-inline: var(--s4); }

.stack > * + * { margin-top: var(--s3); }
.stack-lg > * + * { margin-top: var(--s5); }
.stack-xl > * + * { margin-top: var(--s6); }

.cluster { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.cluster-tight { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.cluster-split { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; justify-content: space-between; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
@media (max-width: 860px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.section { padding-block: var(--s7); }
@media (max-width: 640px) { .section { padding-block: var(--s6); } }

/* ---------- text utilities ---------- */
.kicker {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--slate);
}
.lede { font-size: 1.1875rem; line-height: 1.55; }
.small { font-size: 0.875rem; }
.tiny { font-size: 0.8125rem; color: #4A5A6A; }
.serif { font-family: var(--serif); }
.center { text-align: center; }

/* ---------- rules & dividers (dashed motif) ---------- */
.rule-dash { border: none; border-top: 2px dashed var(--line); }
.rule-dash-dark { border: none; border-top: 2px dashed #46607B; }

/* ---------- badges: flat solid-fill pills ---------- */
.badge {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em;
  background: var(--slate); color: var(--white); white-space: nowrap;
}
.badge-lime { background: var(--lime); color: var(--ink); }
.badge-mist { background: var(--slate-mist); color: var(--slate-deep); }

/* ---------- buttons: outlined / ghost with accent text ---------- */
.btn {
  display: inline-block; padding: 10px 22px;
  border: 2px solid var(--slate); border-radius: 10px;
  font-family: var(--sans); font-size: 1rem; font-weight: 700;
  color: var(--slate); background: transparent; cursor: pointer;
  text-align: center;
}
.btn:hover { background: var(--slate); color: var(--white); text-decoration: none; }
.btn-invert { border-color: var(--white); color: var(--white); }
.btn-invert:hover { background: var(--white); color: var(--slate-deep); }

/* ---------- stars (five with halves) & dot meters ---------- */
.stars {
  position: relative; display: inline-block;
  font-size: 1.25rem; line-height: 1; letter-spacing: 2px;
  color: var(--star-off); white-space: nowrap;
}
.stars > .fill {
  position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap;
  width: calc(var(--v) / 5 * 100%); color: var(--slate);
}
.card-head .stars { color: #5E7690; }
.card-head .stars > .fill { color: var(--lime); }

.meter {
  position: relative; display: inline-block;
  font-size: 0.8rem; line-height: 1; letter-spacing: 3px;
  color: var(--star-off); white-space: nowrap;
}
.meter > .fill {
  position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap;
  width: calc(var(--v) / 5 * 100%); color: var(--slate);
}

/* ---------- age notice bar ---------- */
.agebar {
  position: sticky; top: 0; z-index: 60;
  background: var(--ink); color: #DEE7EE;
  font-size: 0.8125rem; line-height: 1.35;
  padding: 6px 0;
}
.agebar .wrap { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; justify-content: center; text-align: center; }
.agebar .badge-lime { font-size: 0.72rem; padding: 1px 9px; }
.agebar a { color: var(--lime); }

/* ---------- masthead ---------- */
.masthead { background: var(--paper); border-bottom: 3px double var(--slate); }
.masthead .wrap { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s4); align-items: center; justify-content: space-between; padding-block: var(--s3); }
.brand { display: flex; gap: 12px; align-items: center; }
.brand img { width: 40px; height: 40px; }
.brand-name { font-family: var(--serif); font-weight: 900; font-size: 1.375rem; color: var(--ink); line-height: 1.1; }
.brand-sub { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--slate); }
.brand:hover { text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); }
.nav a {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--slate-deep);
}
.dateline {
  border-top: 1px solid var(--line);
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: #4A5A6A;
}
.dateline .wrap { display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: space-between; padding-block: 7px; }

/* ---------- poster hero ---------- */
.hero { padding-block: var(--s8) var(--s6); }
@media (max-width: 640px) { .hero { padding-block: var(--s6) var(--s5); } }
.hero h1 {
  font-size: clamp(2.75rem, 8.5vw, 6.75rem);
  font-weight: 900; line-height: 1.02; letter-spacing: -0.015em;
  max-width: 14ch;
}
.hero h1 .hl {
  background: linear-gradient(transparent 58%, var(--lime) 58%, var(--lime) 94%, transparent 94%);
  padding-inline: 0.04em;
}
.hero .lede { max-width: 52ch; }

/* ---------- notice strips ---------- */
.notice {
  border-left: 6px solid var(--lime);
  background: var(--white); border-radius: 0 12px 12px 0;
  padding: var(--s3) var(--s4);
  font-size: 0.9rem;
}
.notice-ink { background: var(--slate-mist); }

/* ---------- stats strip ---------- */
.stats { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s6); }
.stat .num { font-family: var(--serif); font-weight: 900; font-size: 2.25rem; line-height: 1; color: var(--slate); }
.stat .lbl { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: #4A5A6A; margin-top: 6px; }

/* ---------- showcase cards: rounded, accent header, facts | action ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 6px solid var(--lime);
  border-radius: 18px;
  overflow: hidden;
}
.card-head {
  background: var(--slate); color: var(--white);
  padding: var(--s3) var(--s4);
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4);
  align-items: center; justify-content: space-between;
}
.card-head .rank { font-family: var(--serif); font-weight: 900; font-size: 1.75rem; color: var(--lime); line-height: 1; }
.card-head .name { font-family: var(--serif); font-weight: 700; font-size: 1.45rem; color: var(--white); line-height: 1.15; }
.card-head .scorebox { display: flex; gap: 10px; align-items: baseline; }
.card-head .scoreval { font-size: 0.9rem; font-weight: 700; color: #D6E0EA; }
.card-body { display: grid; grid-template-columns: 1.7fr 1fr; }
@media (max-width: 780px) { .card-body { grid-template-columns: 1fr; } }
.card-facts { padding: var(--s4); }
.card-facts .logo-box {
  height: 56px; display: flex; align-items: center; margin-bottom: var(--s3);
}
.card-facts .logo-box img { max-height: 44px; width: auto; max-width: 190px; }
.logo-fallback {
  font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--slate);
}
.factline { display: flex; gap: 10px; align-items: baseline; font-size: 0.92rem; }
.factline .k { font-weight: 700; color: var(--slate-deep); white-space: nowrap; }
.card-action {
  padding: var(--s4);
  background: var(--slate-mist);
  border-left: 2px dashed var(--line);
  display: flex; flex-direction: column; gap: var(--s3);
}
@media (max-width: 780px) { .card-action { border-left: none; border-top: 2px dashed var(--line); } }
.offerline { font-size: 0.95rem; }
.offerline .offer { font-weight: 700; color: var(--slate-deep); }
.card-action .btn { align-self: stretch; }
.card-action .more { font-size: 0.9rem; font-weight: 700; }

/* ---------- scorecards ---------- */
.scorecard {
  background: var(--white); border: 1px solid var(--line);
  border-left: 6px solid var(--slate);
  border-radius: 18px; padding: var(--s4);
}
.scorecard h3 { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; }
.scorecard h3 .total { font-size: 0.85rem; font-family: var(--sans); font-weight: 700; color: #4A5A6A; }
.scorerows { margin-top: var(--s3); display: grid; gap: 9px; }
.scorerow {
  display: grid; grid-template-columns: 150px 1fr auto; gap: 12px; align-items: baseline;
  font-size: 0.9rem; padding-bottom: 8px; border-bottom: 1px dashed var(--slate-mist);
}
.scorerow:last-child { border-bottom: none; padding-bottom: 0; }
.scorerow .crit { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--slate); }
.scorerow .val { color: var(--ink); }
@media (max-width: 640px) {
  .scorerow { grid-template-columns: 1fr auto; }
  .scorerow .val { grid-column: 1 / -1; }
}

/* ---------- figures ---------- */
.figure { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--white); }
.figure img { width: 100%; }
.figure figcaption { padding: 10px var(--s3); font-size: 0.82rem; color: #4A5A6A; border-top: 2px dashed var(--slate-mist); }

/* ---------- tinted / banded sections ---------- */
.band-ink { background: var(--slate-deep); color: #DCE5ED; }
.band-ink h2, .band-ink h3 { color: var(--white); }
.band-ink a { color: var(--lime); }
.band-poster {
  background-color: var(--paper);
  background-image: linear-gradient(rgba(245,248,250,0.88), rgba(245,248,250,0.88)), url("/assets/img/band-poster.jpg");
  background-size: cover; background-position: center;
  border-block: 1px solid var(--line);
}
.page-head {
  background-color: var(--paper);
  background-image: linear-gradient(rgba(245,248,250,0.9), rgba(245,248,250,0.9)), url("/assets/img/band-poster.jpg");
  background-size: cover; background-position: left bottom;
  border-bottom: 1px solid var(--line);
  padding-block: var(--s7) var(--s6);
}
@media (max-width: 640px) { .page-head { padding-block: var(--s6) var(--s5); } }

/* ---------- FAQ myth/fact panels ---------- */
.mythfact { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
@media (max-width: 780px) { .mythfact { grid-template-columns: 1fr; } }
.panel {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: var(--s4);
}
.panel-myth { border-left: 6px solid var(--star-off); }
.panel-fact { border-left: 6px solid var(--lime); }

/* ---------- safety cards ---------- */
.safety-card {
  display: flex; flex-direction: column; gap: var(--s2); justify-content: space-between;
  background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--lime);
  border-radius: 18px; padding: var(--s4); color: var(--ink);
}
.safety-card:hover { text-decoration: none; border-color: var(--slate); }
.safety-card:hover .go { text-decoration: underline; text-underline-offset: 3px; }
.safety-card .logo-strip { height: 44px; display: flex; align-items: center; }
.safety-card .logo-strip img { max-height: 38px; width: auto; max-width: 160px; }
.safety-card .go { font-size: 0.85rem; font-weight: 700; color: var(--slate); }

/* ---------- glossary-ish definition rows ---------- */
.defrow { padding-block: var(--s3); border-bottom: 2px dashed var(--slate-mist); }
.defrow:last-child { border-bottom: none; }
.defrow dt { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; }
.defrow dd { margin-top: 4px; }

/* ---------- article layout ---------- */
.article { display: grid; gap: var(--s5); }
.article h2 { padding-top: var(--s3); }

/* ---------- forms ---------- */
.field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: var(--white);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--slate); outline-offset: 1px; }

/* ---------- footer ---------- */
.foot { background: var(--slate-deep); color: #C7D3DF; font-size: 0.9rem; }
.foot a { color: #E4ECF3; }
.foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s5); padding-block: var(--s6); }
@media (max-width: 860px) { .foot .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot .cols { grid-template-columns: 1fr; } }
.foot .col-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: #8FA5B8; margin-bottom: var(--s3); }
.foot ul { list-style: none; }
.foot li + li { margin-top: 8px; }
.foot .legalline { padding-block: var(--s4); font-size: 0.8125rem; color: #9FB2C2; }

/* ---------- cookie banner ---------- */
.cookiebar {
  position: fixed; inset-inline: var(--s3); bottom: var(--s3); z-index: 70;
  max-width: 560px; margin-inline: auto;
  background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--lime);
  border-radius: 14px; padding: var(--s3) var(--s4);
  box-shadow: 0 8px 28px rgba(26, 39, 51, 0.18);
  display: none;
}
.cookiebar.is-open { display: block; }
.cookiebar .btn { padding: 7px 18px; font-size: 0.9rem; }

/* ---------- misc ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--lime); color: var(--ink); padding: 8px 16px; font-weight: 700;
}
.skip:focus { left: 0; }

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