/* ==========================================================================
   KCASINO TRUST REPORT — main.css
   Concept: data-driven verification report / editorial trust dashboard.
   Palette: cool paper, deep ink, violet signal, teal confirm, amber caution.
   ========================================================================== */

:root {
  --bg: #f5f6f8;
  --bg-soft: #eceff4;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --ink: #12141c;
  --ink-soft: #3f4452;
  --muted: #6b7280;
  --line: #e2e5ec;
  --line-strong: #cbd0da;

  --violet: #5b21b6;
  --violet-bright: #7c3aed;
  --violet-soft: #ede9fe;
  --violet-pale: #f5f3ff;
  --teal: #0f766e;
  --teal-soft: #ccfbf1;
  --amber: #b45309;
  --amber-soft: #fef3c7;
  --rose: #be123c;
  --rose-soft: #ffe4e6;

  --gradient: linear-gradient(135deg, #6d28d9 0%, #4f46e5 55%, #0ea5e9 100%);
  --gradient-soft: linear-gradient(135deg, #f5f3ff 0%, #eef2ff 55%, #ecfeff 100%);

  --sans: "IBM Plex Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --display: "Space Grotesk", "IBM Plex Sans KR", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Menlo,
    Consolas, monospace;

  --wrap: 1180px;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -24px rgba(18, 20, 28, 0.28);
  --shadow-sm: 0 8px 24px -16px rgba(18, 20, 28, 0.35);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a:hover {
  color: var(--violet-bright);
}

:focus-visible {
  outline: 2px solid var(--violet-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--violet-bright);
  color: #fff;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 300;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

.wrap {
  width: min(var(--wrap), 100% - 48px);
  margin-inline: auto;
}

/* ---------- utility bar ---------- */

.utility {
  background: var(--ink);
  color: #c9cdd8;
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

.utility .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 8px;
}

.utility p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.utility .age {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border: 1px solid #4b5061;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.utility .utility-links {
  display: flex;
  gap: 16px;
}

.utility a {
  color: #c9cdd8;
  text-decoration: none;
}

.utility a:hover {
  color: #fff;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(245, 246, 248, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--gradient);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1;
  box-shadow: 0 8px 18px -8px rgba(109, 40, 217, 0.7);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-text small {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 11px;
  border-radius: 9px;
  white-space: nowrap;
}

.nav a:hover {
  background: var(--bg-soft);
  color: var(--ink);
}

.nav .nav-cta {
  margin-left: 6px;
  background: var(--ink);
  color: #fff;
  padding: 9px 15px;
  font-weight: 600;
}

.nav .nav-cta:hover {
  background: var(--violet-bright);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  place-items: center;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

/* ---------- shared type ---------- */

.eyebrow {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet);
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  word-break: keep-all;
}

h1 {
  margin: 0 0 20px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.14;
  letter-spacing: -0.025em;
}

h1 em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 0 0 24px;
  max-width: 60ch;
  font-size: 17px;
  color: var(--ink-soft);
}

.byline {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--muted);
}

.byline strong {
  color: var(--ink-soft);
  font-weight: 600;
}

.byline a {
  color: var(--ink-soft);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease,
    border-color 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn--solid {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.btn--solid:hover {
  background: var(--violet-bright);
  border-color: var(--violet-bright);
  color: #fff;
}

.btn--accent {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(109, 40, 217, 0.8);
}

.btn--accent:hover {
  color: #fff;
  filter: brightness(1.05);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
}

.btn--light {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.btn--light:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 60px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 420px at 82% -8%, rgba(124, 58, 237, 0.14), transparent 62%),
    radial-gradient(700px 380px at 8% 8%, rgba(14, 165, 233, 0.1), transparent 60%),
    var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.28;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  backdrop-filter: blur(6px);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  font-size: 12px;
  color: var(--muted);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta strong {
  color: var(--ink-soft);
  font-weight: 600;
}

/* score card */

.score-card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.score-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.score-card-head span {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.score-card-head strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 11px;
  font-weight: 600;
}

.score-top {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 22px;
}

.score-ring {
  --score: 82;
  position: relative;
  flex: none;
  width: 132px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(
    var(--violet-bright) calc(var(--score) * 1%),
    var(--violet-soft) 0
  );
  display: grid;
  place-items: center;
}

.score-ring::before {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: var(--surface);
}

.score-ring-inner {
  position: relative;
  text-align: center;
  line-height: 1;
}

.score-num {
  display: block;
  font-family: var(--display);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.score-den {
  display: block;
  margin-top: 5px;
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.score-verdict h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
}

.score-verdict p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}

.score-factors {
  display: grid;
  gap: 12px;
}

.factor {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
}

.factor span {
  font-size: 12px;
  color: var(--ink-soft);
}

.factor b {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.factor .bar {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: 999px;
  background: var(--violet-soft);
  overflow: hidden;
}

.factor .bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gradient);
  width: calc(var(--val, 50) * 1%);
}

.score-foot {
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- KPI band ---------- */

.kpi-band {
  position: relative;
  z-index: 2;
  margin-top: -30px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.kpi {
  padding: 20px 24px;
  border-right: 1px solid var(--line);
}

.kpi:last-child {
  border-right: 0;
}

.kpi .kpi-k {
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.kpi .kpi-v {
  margin-top: 6px;
  font-family: var(--display);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.kpi .kpi-v small {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.kpi .kpi-s {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- sections ---------- */

.section {
  padding: 76px 0;
}

.section--tight {
  padding-top: 52px;
}

.section--soft {
  background: var(--surface-2);
  border-block: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 40px;
}

.section-head .kicker {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  padding-top: 8px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(25px, 3.2vw, 37px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.section-sub {
  margin: 0;
  max-width: 68ch;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- findings ---------- */

.finding-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.finding {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.finding .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.chip--ok {
  background: var(--teal-soft);
  color: var(--teal);
}

.chip--base {
  background: var(--amber-soft);
  color: var(--amber);
}

.chip--warn {
  background: var(--rose-soft);
  color: var(--rose);
}

.finding h3 {
  margin: 14px 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.finding p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* ---------- verification cards ---------- */

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.check-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.16s ease, box-shadow 0.16s ease,
    transform 0.16s ease;
}

.check-card:hover {
  border-color: var(--violet-soft);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.check-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.check-card .idx {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.grade {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
}

.grade--a {
  background: var(--teal-soft);
  color: var(--teal);
}

.grade--b {
  background: var(--violet-soft);
  color: var(--violet);
}

.grade--c {
  background: var(--amber-soft);
  color: var(--amber);
}

.check-card h3 {
  margin: 14px 0 6px;
  font-size: 17px;
  font-weight: 700;
}

.check-card p {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--ink-soft);
}

.check-card .meter {
  margin-top: auto;
  height: 6px;
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
}

.check-card .meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gradient);
  width: calc(var(--val, 50) * 1%);
}

.check-card .meter-label {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  font-size: 11px;
  color: var(--muted);
}

.check-card .meter-label b {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- timeline ---------- */

.timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 0 0 26px 46px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--violet-bright);
  box-shadow: 0 0 0 4px var(--violet-pale);
}

.timeline time {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding-top: 3px;
}

.timeline h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
}

.timeline p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* ---------- sources table ---------- */

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.source-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 13.5px;
}

.source-table caption {
  caption-side: bottom;
  padding: 12px 18px 16px;
  text-align: left;
  font-size: 12px;
  color: var(--muted);
}

.source-table th {
  background: var(--surface-2);
  padding: 12px 16px;
  text-align: left;
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.source-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.source-table tbody tr:last-child td {
  border-bottom: 0;
}

.source-table td:first-child {
  font-weight: 600;
  color: var(--ink);
}

.source-table .src-id {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--violet-pale);
  color: var(--violet);
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 600;
}

/* ---------- self-check ---------- */

.selfcheck {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

.checklist {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.check-row:hover {
  border-color: var(--violet-soft);
}

.check-row input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--violet-bright);
  cursor: pointer;
}

.check-row span {
  font-size: 14px;
  color: var(--ink-soft);
}

.check-row.is-done {
  border-color: var(--teal-soft);
  background: #f7fffd;
}

.check-row.is-done span {
  color: var(--teal);
}

.progress-card {
  position: sticky;
  top: 92px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.progress-card .p-label {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.progress-card .p-count {
  margin: 8px 0 14px;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.progress-card .p-count small {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
}

.progress-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--gradient);
  transition: width 0.25s ease;
}

.progress-card .p-note {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- safety ---------- */

.safety {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #e7e9f0;
}

.safety::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 340px at 85% 0%, rgba(124, 58, 237, 0.35), transparent 65%),
    radial-gradient(600px 320px at 5% 100%, rgba(14, 165, 233, 0.2), transparent 60%);
  pointer-events: none;
}

.safety .wrap {
  position: relative;
  z-index: 1;
}

.safety .section-head .kicker {
  color: #c4b5fd;
}

.safety .section-head h2 {
  color: #fff;
}

.safety .section-sub {
  color: #a9afc0;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.safety-card {
  padding: 22px;
  border: 1px solid #2a2e3d;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.safety-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.safety-card p {
  margin: 0;
  font-size: 13.5px;
  color: #a9afc0;
}

.helplines {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid #2a2e3d;
  font-size: 13px;
  color: #a9afc0;
}

.helplines a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid #4b5061;
}

.helplines a:hover {
  border-color: #fff;
  color: #fff;
}

/* ---------- EEAT / methodology ---------- */

.eeat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.eeat-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.eeat-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.eeat-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.eeat-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--ink-soft);
}

.eeat-card li {
  margin-bottom: 6px;
}

.author-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--gradient-soft);
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gradient);
  color: #fff;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
}

.author-box h3 {
  margin: 0 0 3px;
  font-size: 16px;
  font-weight: 700;
}

.author-box p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.author-box a {
  font-size: 12.5px;
  font-weight: 600;
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 17px 20px;
  cursor: pointer;
  list-style: none;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.5;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  color: var(--violet);
}

.faq details[open] summary::after {
  content: "−";
}

.faq .answer {
  max-width: 78ch;
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--ink-soft);
}

.faq .answer p {
  margin: 0;
}

/* ---------- CTA ---------- */

.cta {
  padding: 24px 0 80px;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 32px;
  align-items: center;
  padding: 48px;
  border-radius: calc(var(--radius) + 6px);
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 30px 70px -30px rgba(79, 70, 229, 0.7);
}

.cta-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.cta-panel h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(25px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.02em;
}

.cta-panel p {
  margin: 0;
  font-size: 14.5px;
  color: #e9e6ff;
}

.cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---------- footer ---------- */

.footer {
  padding: 52px 0 26px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  max-width: 42ch;
}

.footer-brand .brand {
  margin-bottom: 14px;
}

.footer-brand p {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.footer-license {
  font-size: 11.5px;
  letter-spacing: 0.01em;
  color: var(--muted);
  line-height: 1.8;
}

.footer h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li {
  margin-bottom: 9px;
  font-size: 13.5px;
}

.footer li a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer li a:hover {
  color: var(--violet);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.footer-bottom p {
  margin: 0;
}

/* ---------- simple content pages ---------- */

.page-hero {
  padding: 60px 0 42px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(700px 300px at 88% -20%, rgba(124, 58, 237, 0.12), transparent 62%),
    var(--bg);
}

.page-hero h1 {
  font-size: clamp(30px, 4.2vw, 46px);
  margin-bottom: 14px;
}

.page-hero .lead {
  margin-bottom: 0;
  font-size: 16px;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-transform: uppercase;
}

.page-body {
  padding: 48px 0 72px;
}

.legal {
  max-width: 840px;
}

.legal h2 {
  margin: 38px 0 12px;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal h3 {
  margin: 24px 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.legal p,
.legal li {
  font-size: 14.5px;
  color: var(--ink-soft);
}

.legal p {
  margin: 0 0 14px;
}

.legal ul,
.legal ol {
  margin: 0 0 16px;
  padding-left: 20px;
}

.legal li {
  margin-bottom: 6px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 13.5px;
}

.legal th,
.legal td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: var(--surface-2);
  font-family: var(--display);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.note {
  margin: 24px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--violet-bright);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface);
  font-size: 13.5px;
  color: var(--ink-soft);
}

.legal-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 404 ---------- */

.notfound {
  display: grid;
  place-items: center;
  min-height: 58vh;
  padding: 72px 0;
  text-align: center;
}

.notfound .code {
  font-family: var(--display);
  font-size: clamp(80px, 18vw, 150px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.notfound h1 {
  font-size: clamp(23px, 3.4vw, 32px);
  margin: 12px 0 10px;
}

.notfound p {
  margin: 0 0 22px;
  color: var(--muted);
}

.notfound .hero-actions {
  justify-content: center;
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .score-card {
    max-width: 520px;
  }

  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }

  .kpi:nth-child(2) {
    border-right: 0;
  }

  .kpi:nth-child(3),
  .kpi:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .finding-grid,
  .check-grid,
  .safety-grid,
  .eeat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .selfcheck {
    grid-template-columns: 1fr;
  }

  .progress-card {
    position: static;
  }

  .cta-panel {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .menu-toggle {
    display: grid;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: -24px;
    right: -24px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 24px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  body.nav-open .nav {
    display: flex;
  }

  .nav a {
    padding: 12px;
    border-radius: 9px;
  }

  .nav .nav-cta {
    margin: 8px 0 0;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .utility .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .utility .utility-links {
    display: none;
  }

  .hero {
    padding: 46px 0 44px;
  }

  .section {
    padding: 52px 0;
  }

  .section--tight {
    padding-top: 38px;
  }

  .kpi-band {
    margin-top: -18px;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .kpi {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .kpi:nth-child(3),
  .kpi:nth-child(4) {
    border-top: 0;
  }

  .kpi:last-child {
    border-bottom: 0;
  }

  .finding-grid,
  .check-grid,
  .safety-grid,
  .eeat-grid {
    grid-template-columns: 1fr;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-left: 40px;
  }

  .cta-panel {
    padding: 30px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .author-box {
    grid-template-columns: 1fr;
  }

  .faq summary {
    font-size: 14.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
