/* ==========================================================================
   Wheel Spinner — Global Stylesheet
   Palette: deep harbour navy + brass gold + reef mint
   ========================================================================== */

:root {
  /* Core palette */
  --ink: #08192b;
  --sea: #0f3d56;
  --sea-2: #14536f;
  --gold: #f5a623;
  --gold-dark: #d0860c;
  --coral: #e4572e;
  --mint: #1fae97;
  --paper: #f3f7fb;
  --white: #ffffff;
  --line: #dbe5ef;
  --muted: #5b6b7c;

  /* Utility */
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shadow-s: 0 1px 2px rgba(8, 25, 43, .06), 0 2px 8px rgba(8, 25, 43, .05);
  --shadow-m: 0 4px 12px rgba(8, 25, 43, .08), 0 14px 34px rgba(8, 25, 43, .09);
  --shadow-l: 0 18px 60px rgba(8, 25, 43, .22);
  --wrap: 1180px;

  /* Type */
  --font-display: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas { max-width: 100%; display: block; }
a { color: var(--sea-2); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.02em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 1.3rem + 2.9vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.25rem); }
h3 { font-size: clamp(1.18rem, 1.05rem + .55vw, 1.5rem); }
h4 { font-size: 1.09rem; }
h5 { font-size: 1rem; }
h6 { font-size: .93rem; }
p { margin: 0 0 1.05em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--gold); color: var(--ink); padding: 10px 18px; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 .7rem;
  display: block;
  font-weight: 600;
}
.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head p { color: var(--muted); margin-bottom: 0; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  background: var(--ink);
  color: #eaf1f8;
  position: sticky;
  top: 0;
  z-index: 60;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .07);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.24rem;
  letter-spacing: -.02em;
  line-height: 1.05;
}
.brand-name span { color: var(--gold); }
.brand-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: #93a8bd;
  font-weight: 500;
}

.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block;
  padding: 9px 15px;
  color: #d5e2ef;
  font-weight: 500;
  font-size: .95rem;
  border-radius: 999px;
  transition: background .18s, color .18s;
}
.main-nav a:hover { background: rgba(255, 255, 255, .09); color: #fff; text-decoration: none; }
.main-nav a[aria-current="page"] { background: var(--gold); color: var(--ink); font-weight: 600; }

/* Language picker */
.lang { position: relative; flex-shrink: 0; }
.lang-btn {
  display: flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff; cursor: pointer;
  padding: 8px 12px; border-radius: 999px;
  font-family: var(--font-mono); font-size: .8rem; font-weight: 600; letter-spacing: .06em;
}
.lang-btn:hover { background: rgba(255, 255, 255, .18); }
.lang-btn .chev { transition: transform .2s; }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0;
  background: #fff; color: var(--ink);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-l);
  padding: 8px;
  min-width: 208px;
  max-height: 340px; overflow-y: auto;
  display: none; z-index: 80;
}
.lang-menu.open { display: block; }
.lang-menu button {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: start;
  background: none; border: 0; cursor: pointer;
  padding: 9px 11px; border-radius: 9px; font-size: .92rem;
}
.lang-menu button:hover { background: var(--paper); }
.lang-menu button[aria-selected="true"] { background: #eaf4f1; font-weight: 600; }
.lang-menu .code {
  font-family: var(--font-mono); font-size: .68rem; font-weight: 700;
  background: var(--ink); color: #fff; border-radius: 5px; padding: 2px 6px; letter-spacing: .05em;
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff; border-radius: 10px; padding: 9px 11px; cursor: pointer;
}

/* ==========================================================================
   Hero / tool
   ========================================================================== */
.tool-hero {
  background:
    radial-gradient(1000px 460px at 12% -8%, rgba(31, 174, 151, .22), transparent 62%),
    radial-gradient(760px 420px at 92% 4%, rgba(245, 166, 35, .2), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, #0c2439 58%, #0e2c42 100%);
  color: #eef4fa;
  padding: 42px 0 58px;
}
.tool-hero h1 { color: #fff; margin-bottom: .35em; }
.tool-hero .lede { color: #b8cbdd; max-width: 660px; font-size: 1.06rem; }
.hero-top { text-align: center; margin-bottom: 34px; }
.hero-top .lede { margin-inline: auto; }

.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
  gap: 30px;
  align-items: start;
}

/* --- Wheel stage --- */
.wheel-stage {
  position: relative;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 26px;
  padding: 22px;
  backdrop-filter: blur(6px);
}
.wheel-holder {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
}
#wheelCanvas {
  width: 100%; height: 100%;
  cursor: pointer;
  border-radius: 50%;
  touch-action: manipulation;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, .38));
}
/* Fixed pointer at the top of the wheel */
.pointer {
  position: absolute;
  top: -6px; left: 50%;
  translate: -50% 0;
  width: 46px; height: 62px;
  z-index: 5;
  transform-origin: 50% 12%;
  pointer-events: none;
}
.pointer.tick { animation: pointerTick .09s ease-out; }
@keyframes pointerTick {
  0% { rotate: 0deg; }
  45% { rotate: -13deg; }
  100% { rotate: 0deg; }
}
.wheel-hub {
  position: absolute;
  top: 50%; left: 50%;
  translate: -50% -50%;
  width: 21%; height: 21%;
  border-radius: 50%;
  border: 0;
  background: radial-gradient(circle at 34% 30%, #fff5df, var(--gold) 46%, var(--gold-dark) 100%);
  box-shadow: 0 0 0 6px rgba(8, 25, 43, .9), 0 8px 22px rgba(0, 0, 0, .4);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(.72rem, 2.1vw, 1.05rem);
  letter-spacing: .02em;
  cursor: pointer;
  display: grid; place-items: center;
  transition: scale .16s ease;
}
.wheel-hub:hover { scale: 1.06; }
.wheel-hub:active { scale: .96; }
.wheel-hub[disabled] { cursor: progress; opacity: .82; }

.wheel-empty {
  position: absolute; inset: 12%;
  border-radius: 50%;
  display: none;
  place-items: center;
  text-align: center;
  padding: 20px;
  background: rgba(8, 25, 43, .82);
  color: #cfe0ee;
  font-size: .95rem;
}
.wheel-empty.show { display: grid; }

/* Stage toolbar under the wheel */
.stage-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-top: 18px;
}
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .17);
  color: #e7eff7;
  padding: 8px 14px; border-radius: 999px;
  font-size: .85rem; font-weight: 500; cursor: pointer;
  transition: background .18s, border-color .18s;
}
.chip:hover { background: rgba(255, 255, 255, .18); }
.chip[aria-pressed="true"] { background: var(--mint); border-color: var(--mint); color: #04231e; font-weight: 600; }
.chip svg { width: 16px; height: 16px; }

/* --- Names panel --- */
.panel {
  background: var(--white);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
  overflow: hidden;
  color: var(--ink);
}
.panel-tabs { display: flex; border-bottom: 1px solid var(--line); background: #fbfdff; }
.panel-tabs button {
  flex: 1;
  background: none; border: 0; cursor: pointer;
  padding: 14px 10px;
  font-weight: 600; font-size: .92rem; color: var(--muted);
  border-bottom: 3px solid transparent;
}
.panel-tabs button[aria-selected="true"] { color: var(--sea); border-bottom-color: var(--gold); background: #fff; }
.panel-body { padding: 18px; }
.panel-body[hidden] { display: none; }

.field-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px;
}
.field-head label { font-weight: 600; font-size: .95rem; }
.counter-pill {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
  background: var(--paper); border: 1px solid var(--line); color: var(--muted);
  padding: 3px 9px; border-radius: 999px;
}
#namesInput {
  width: 100%;
  min-height: 236px;
  resize: vertical;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: #fcfdff;
  line-height: 1.75;
  font-size: .95rem;
}
#namesInput:focus { border-color: var(--sea-2); background: #fff; }
.hint { font-size: .8rem; color: var(--muted); margin: 9px 0 0; }

.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 11px;
  padding: 11px 17px;
  font-weight: 600; font-size: .92rem;
  cursor: pointer; text-decoration: none;
  transition: transform .12s ease, background .18s, box-shadow .18s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--gold); color: #33230a; box-shadow: 0 6px 16px rgba(245, 166, 35, .35); }
.btn-primary:hover { background: #ffb840; }
.btn-dark { background: var(--sea); color: #fff; }
.btn-dark:hover { background: var(--sea-2); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--sea); }
.btn-ghost:hover { background: var(--paper); }
.btn-sm { padding: 8px 13px; font-size: .85rem; border-radius: 9px; }
.btn-block { width: 100%; }

/* Settings rows */
.setting {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 2px; border-bottom: 1px dashed var(--line);
}
.setting:last-of-type { border-bottom: 0; }
.setting p { margin: 2px 0 0; font-size: .8rem; color: var(--muted); line-height: 1.45; }
.setting strong { font-weight: 600; font-size: .94rem; }

.switch { position: relative; width: 48px; height: 27px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.switch .track {
  position: absolute; inset: 0; background: #c9d6e3; border-radius: 999px; transition: background .2s;
}
.switch .track::after {
  content: ""; position: absolute; top: 3px; inset-inline-start: 3px;
  width: 21px; height: 21px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: translate .2s;
}
.switch input:checked ~ .track { background: var(--mint); }
.switch input:checked ~ .track::after { translate: 21px 0; }
.switch input:focus-visible ~ .track { outline: 3px solid var(--gold); outline-offset: 2px; }

.range-row { padding: 14px 2px 4px; }
.range-row label { font-weight: 600; font-size: .94rem; display: block; margin-bottom: 8px; }
.range-row output { font-family: var(--font-mono); color: var(--sea-2); font-weight: 600; }
input[type="range"] { width: 100%; accent-color: var(--sea-2); }

.theme-swatches { display: flex; gap: 10px; flex-wrap: wrap; padding: 6px 2px 2px; }
.swatch {
  width: 46px; height: 30px; border-radius: 8px; cursor: pointer;
  border: 2px solid transparent; box-shadow: var(--shadow-s); padding: 0;
}
.swatch[aria-pressed="true"] { border-color: var(--ink); }

/* Winner history */
#historyList { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; }
#historyList li {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 4px; border-bottom: 1px solid var(--line); font-size: .94rem;
}
#historyList li:last-child { border-bottom: 0; }
#historyList .rank {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 700;
  background: var(--sea); color: #fff; border-radius: 6px; padding: 3px 7px; flex: none;
}
#historyList .when { margin-inline-start: auto; font-size: .76rem; color: var(--muted); font-family: var(--font-mono); }
.empty-note { color: var(--muted); font-size: .9rem; padding: 12px 2px; margin: 0; }

/* ==========================================================================
   Winner modal + confetti
   ========================================================================== */
#confettiCanvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 190; display: none;
}
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: none; place-items: center;
  padding: 20px;
  background: rgba(8, 25, 43, .68);
  backdrop-filter: blur(4px);
}
.modal.open { display: grid; }
.modal-card {
  background: #fff; border-radius: 24px;
  width: min(460px, 100%);
  padding: 34px 28px 26px;
  text-align: center;
  box-shadow: var(--shadow-l);
  animation: pop .34s cubic-bezier(.2, 1.2, .3, 1);
  position: relative;
}
@keyframes pop { from { transform: scale(.86); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-card .ribbon {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  background: var(--mint); color: #04231e; display: inline-block;
  padding: 5px 14px; border-radius: 999px; font-weight: 700; margin-bottom: 16px;
}
#winnerName {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.7rem, 5.4vw, 2.6rem);
  line-height: 1.12; margin: 0 0 6px;
  word-break: break-word; color: var(--ink);
}
.modal-card .sub { color: var(--muted); font-size: .92rem; margin-bottom: 22px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.modal-close {
  position: absolute; top: 12px; inset-inline-end: 12px;
  background: var(--paper); border: 0; width: 34px; height: 34px; border-radius: 50%;
  cursor: pointer; font-size: 1.15rem; line-height: 1; color: var(--muted);
}
.modal-close:hover { background: var(--line); }

/* Toast */
#toast {
  position: fixed; inset-inline: 0; bottom: 24px; z-index: 300;
  display: flex; justify-content: center; pointer-events: none;
}
#toast span {
  background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 999px;
  font-size: .9rem; box-shadow: var(--shadow-l);
  opacity: 0; translate: 0 14px; transition: opacity .25s, translate .25s;
}
#toast.show span { opacity: 1; translate: 0 0; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 66px 0; }
.section-alt { background: var(--white); }
.section-ink { background: var(--ink); color: #dce7f2; }
.section-ink h2, .section-ink h3 { color: #fff; }

.prose { max-width: 760px; }
.prose h3 { margin-top: 1.7em; }
.prose ul, .prose ol { padding-inline-start: 1.25em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .5em; }
.prose blockquote {
  margin: 1.5em 0; padding: 4px 0 4px 20px;
  border-inline-start: 4px solid var(--gold);
  color: var(--muted); font-style: italic;
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-l); padding: 24px;
  box-shadow: var(--shadow-s);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .94rem; margin-bottom: 0; }
.card .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: #eef6f4; color: var(--sea); margin-bottom: 15px;
}
.card .ico svg { width: 23px; height: 23px; }

/* Numbered steps — the order genuinely matters here */
.steps { counter-reset: step; display: grid; gap: 18px; max-width: 820px; }
.step {
  display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-m); padding: 20px;
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-weight: 700; font-size: 1rem;
  color: var(--gold-dark); background: #fff7e8; border-radius: 10px;
  display: grid; place-items: center; height: 44px;
}
.step h3 { font-size: 1.1rem; margin-bottom: .25em; }
.step p { margin: 0; color: var(--muted); font-size: .94rem; }

/* Activity ticker */
.activity { background: linear-gradient(135deg, var(--sea) 0%, var(--ink) 70%); color: #fff; padding: 58px 0; }
.activity h2 { color: #fff; }
.activity .section-head p { color: #a9c1d5; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.stat {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-l);
  padding: 26px 24px;
}
.stat .label {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 10px; display: block; font-weight: 600;
}
.stat .value {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(1.7rem, 4.6vw, 2.5rem);
  letter-spacing: -.02em; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat .note { font-size: .82rem; color: #a9c1d5; margin: 8px 0 0; }
.live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint); margin-inline-end: 8px;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* FAQ / accordion */
.accordion { max-width: 820px; }
.acc-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); margin-bottom: 12px; overflow: hidden; }
.acc-item h3 { margin: 0; font-size: 1.03rem; }
.acc-item button {
  width: 100%; text-align: start; background: none; border: 0; cursor: pointer;
  padding: 18px 52px 18px 20px; font: inherit; font-family: var(--font-display); font-weight: 700;
  position: relative; color: var(--ink); line-height: 1.35;
}
.acc-item button::after {
  content: "+"; position: absolute; inset-inline-end: 20px; top: 50%; translate: 0 -50%;
  font-size: 1.4rem; color: var(--gold-dark); font-weight: 400; transition: rotate .2s;
}
.acc-item button[aria-expanded="true"]::after { content: "−"; }
.acc-panel { padding: 0 20px 18px; color: var(--muted); font-size: .95rem; }
.acc-panel p:last-child { margin-bottom: 0; }
.acc-panel[hidden] { display: none; }

/* ==========================================================================
   Blog
   ========================================================================== */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); gap: 24px; }
.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper); }
.post-card .body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.12rem; margin-bottom: .45em; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--sea-2); }
.post-card p { color: var(--muted); font-size: .92rem; flex: 1; }
.tag {
  display: inline-block; font-family: var(--font-mono); font-size: .66rem;
  letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  color: var(--sea); background: #e9f3f1; border-radius: 999px; padding: 4px 10px; margin-bottom: 12px;
}
.meta { font-size: .78rem; color: var(--muted); font-family: var(--font-mono); }

.article-head { background: var(--ink); color: #dce7f2; padding: 46px 0 40px; }
.article-head h1 { color: #fff; max-width: 860px; }
.article-head .meta { color: #9db4c8; }
.breadcrumb { font-size: .82rem; margin-bottom: 16px; color: #9db4c8; }
.breadcrumb a { color: var(--gold); }
.breadcrumb span { margin-inline: 7px; opacity: .55; }

.article-body { padding: 46px 0 60px; }
.article-body .prose { font-size: 1.03rem; }
.article-hero { width: 100%; border-radius: var(--radius-l); margin-bottom: 32px; box-shadow: var(--shadow-m); }

.related { background: var(--white); border-top: 1px solid var(--line); padding: 52px 0; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.related li a {
  display: block; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-m); padding: 15px 18px; font-weight: 600; color: var(--sea);
}
.related li a:hover { background: #eaf2f9; text-decoration: none; }

.cta-band {
  background: linear-gradient(120deg, var(--gold) 0%, #ffce6a 100%);
  border-radius: var(--radius-l);
  padding: 30px 28px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px; justify-content: space-between;
  margin: 34px 0;
}
.cta-band h3 { margin: 0 0 4px; color: #33230a; }
.cta-band p { margin: 0; color: #5a4210; font-size: .95rem; }

/* ==========================================================================
   Forms (contact)
   ========================================================================== */
.form-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 30px; align-items: start; }
.form-card { background: #fff; border-radius: var(--radius-l); box-shadow: var(--shadow-m); padding: 28px; }
.form-row { margin-bottom: 17px; }
.form-row label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.form-row .req { color: var(--coral); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-m);
  background: #fcfdff; font-size: .95rem;
}
.form-row textarea { min-height: 148px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--sea-2); background: #fff; }
.form-row .err { color: var(--coral); font-size: .8rem; margin: 6px 0 0; display: none; }
.form-row.invalid input, .form-row.invalid textarea, .form-row.invalid select { border-color: var(--coral); background: #fff7f5; }
.form-row.invalid .err { display: block; }

.rating { display: flex; gap: 6px; }
.rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating label {
  cursor: pointer; font-size: 1.9rem; line-height: 1; color: #d6e0ea; margin: 0;
  transition: color .15s, scale .15s;
}
.rating label:hover, .rating label.on { color: var(--gold); scale: 1.08; }
.form-note { font-size: .82rem; color: var(--muted); }
.success-box {
  display: none; background: #eaf7f3; border: 1px solid #b9e3d7; color: #0d5d4c;
  border-radius: var(--radius-m); padding: 16px 18px; margin-bottom: 18px; font-size: .93rem;
}
.success-box.show { display: block; }

.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list .ico {
  width: 40px; height: 40px; border-radius: 11px; background: #eef6f4; color: var(--sea);
  display: grid; place-items: center; flex: none;
}
.info-list .ico svg { width: 20px; height: 20px; }
.info-list strong { display: block; font-size: .95rem; }
.info-list span { font-size: .88rem; color: var(--muted); }

/* Legal doc layout */
.legal-toc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 20px 24px; margin-bottom: 34px;
}
.legal-toc h2 { font-size: 1.05rem; margin-bottom: .6em; }
.legal-toc ol { margin: 0; padding-inline-start: 1.2em; columns: 2; column-gap: 30px; }
.legal-toc li { margin-bottom: .35em; font-size: .92rem; break-inside: avoid; }
.updated {
  font-family: var(--font-mono); font-size: .78rem; color: var(--muted);
  background: var(--paper); border: 1px solid var(--line);
  display: inline-block; padding: 6px 12px; border-radius: 999px; margin-bottom: 26px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: #a9bccd; padding: 54px 0 26px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 34px; }
.site-footer .footer-head {
  color: #fff; font-size: .82rem; font-family: var(--font-mono); font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase; margin-bottom: 15px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #a9bccd; font-size: .93rem; }
.site-footer a:hover { color: var(--gold); text-decoration: none; }
.site-footer .about p { font-size: .92rem; max-width: 330px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand svg { width: 34px; height: 34px; }
.footer-brand strong { color: #fff; font-family: var(--font-display); font-size: 1.1rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 38px; padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .85rem;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom li { margin: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .tool-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; min-height: 62px; gap: 10px; }
  .nav-toggle { display: block; order: 3; margin-inline-start: auto; }
  .lang { order: 2; margin-inline-start: auto; }
  .main-nav {
    order: 4; flex-basis: 100%; margin: 0;
    display: none; padding-bottom: 12px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 12px 14px; border-radius: 10px; }
  .lang-menu { inset-inline-end: auto; inset-inline-start: 0; }

  .section { padding: 48px 0; }
  .tool-hero { padding: 30px 0 44px; }
  .wheel-stage { padding: 14px; border-radius: 20px; }
  .legal-toc ol { columns: 1; }
  .step { grid-template-columns: 42px 1fr; gap: 13px; padding: 16px; }
  .step::before { height: 38px; font-size: .88rem; }
  .cta-band { padding: 24px 20px; }
  .form-card { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .stage-bar .chip { font-size: .78rem; padding: 7px 11px; }
  .btn { padding: 10px 14px; font-size: .88rem; }
  .modal-card { padding: 28px 18px 20px; }
}

/* Fullscreen mode */
body.wheel-full .site-header,
body.wheel-full .panel,
body.wheel-full .hero-top,
body.wheel-full .section,
body.wheel-full .activity,
body.wheel-full .site-footer { display: none; }
body.wheel-full .tool-hero { padding: 14px 0; min-height: 100vh; display: grid; align-items: center; }
body.wheel-full .wheel-holder { max-width: min(88vh, 760px); }

/* RTL tweaks */
html[dir="rtl"] .step::before { justify-self: center; }
html[dir="rtl"] .prose blockquote { border-inline-start: 4px solid var(--gold); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .stage-bar, .panel, .modal, #toast { display: none !important; }
  body { background: #fff; }
}
