/* Listverdict styles
   Colours and type live in the :root tokens below, so the look can be changed in one place. */

:root {
  --leaf: #1F7A4D;
  --leaf-deep: #14532F;
  --leaf-soft: #E2F0E4;
  --forest: #12261C;
  --forest-2: #1C3628;
  --paper: #F3F6EF;
  --card: #FFFFFF;
  --sun: #F6D36B;
  --sun-soft: #FBEDB8;
  --brick: #B4472B;
  --brick-soft: #F8E1D9;
  --amber-ink: #7A5200;
  --ink: #12261C;
  --ink-2: #3B4D42;
  --muted: #56675C;
  --line: #D5DED0;
  --line-strong: #B8C6B1;

  --font-display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-panel: 28px;
  --r-card: 18px;
  --r-input: 12px;
  --shadow: 0 1px 2px rgba(18, 38, 28, .06), 0 8px 24px -12px rgba(18, 38, 28, .18);

  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
}

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

a { color: var(--leaf-deep); text-underline-offset: 3px; }
a:hover { color: var(--leaf); }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
}

p { margin: 0; }

button, input, textarea { font: inherit; color: inherit; }

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

[hidden] { display: none !important; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--forest);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 50;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Header ---------- */

.site-header {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--forest);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
  min-height: 44px;
}
.brand:hover { color: var(--forest); }
.brand-mark { width: 32px; height: 32px; color: var(--leaf); }

.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 999px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-nav a:hover { background: var(--leaf-soft); color: var(--forest); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-primary { background: var(--leaf); color: #fff; }
.btn-primary:hover { background: var(--leaf-deep); color: #fff; }

.btn-ghost { background: transparent; border-color: var(--forest); color: var(--forest); }
.btn-ghost:hover { background: var(--forest); color: #fff; }

.btn-small {
  min-height: 44px;
  padding: 0 16px;
  font-size: 15px;
  background: var(--card);
  border-color: var(--line-strong);
  color: var(--forest);
}
.btn-small:hover { border-color: var(--forest); }

.btn-wide { width: 100%; }

.btn-file { position: relative; overflow: hidden; }
.btn-file input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.btn-file:focus-within { outline: 3px solid var(--leaf); outline-offset: 2px; }

/* ---------- Hero ---------- */

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 56px;
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.6rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  max-width: 11ch;
}

.lede {
  margin-top: 20px;
  font-size: 19px;
  color: var(--ink-2);
  max-width: 34em;
}

.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero-demo {
  margin: 0;
  background: var(--forest);
  color: #F3F6EF;
  border-radius: var(--r-panel);
  padding: 22px;
  display: grid;
  gap: 18px;
}

.demo-cards { display: grid; gap: 10px; }

.demo-card {
  border-radius: var(--r-card);
  padding: 14px 16px;
  font-size: 16px;
  line-height: 1.4;
}
.demo-old { background: var(--forest-2); color: #BFD0C3; }
.demo-new { background: var(--paper); color: var(--forest); }
.demo-new mark { background: var(--sun-soft); color: var(--forest); border-radius: 4px; padding: 0 2px; }

.demo-tag {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  opacity: .8;
}

.demo-meter { display: grid; justify-items: center; gap: 4px; }
.demo-meter .meter { width: min(280px, 100%); }

.demo-result { text-align: center; display: grid; }
.demo-result strong {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--sun);
  line-height: 1.1;
}
.demo-result span { color: #BFD0C3; font-size: 15px; }

.hero-demo figcaption { font-size: 14px; color: #BFD0C3; text-align: center; }

/* Meter (used in the hero and in verdicts) */

.meter-zone { fill: none; stroke-width: 18; stroke-linecap: round; }
.zone-undo { stroke: var(--brick); }
.zone-close { stroke: var(--sun); }
.zone-keep { stroke: var(--leaf); }
.hero-demo .zone-keep { stroke: #3FA96F; }

.needle {
  transform-origin: 120px 120px;
  transform: rotate(var(--deg, 0deg));
  transition: transform 1.1s cubic-bezier(.34, 1.4, .5, 1);
}
.needle line { stroke: currentColor; stroke-width: 5; stroke-linecap: round; }
.needle-hub { fill: currentColor; }

.hero-demo .needle, .hero-demo .needle-hub { color: #F3F6EF; }

/* One page-load moment: the hero needle swings into place */
.hero-demo .needle { animation: needle-in 1.4s cubic-bezier(.34, 1.4, .5, 1) .3s both; }
.hero-demo .demo-result { animation: fade-in .4s ease 1.4s both; }

@keyframes needle-in {
  from { transform: rotate(-90deg); }
  to { transform: rotate(var(--deg)); }
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* ---------- App panel ---------- */

.app {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  scroll-margin-top: 16px;
}

.gate, .tool {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow);
}

.gate { padding: 36px 20px; }

.gate-form {
  max-width: 440px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.gate-form h2 { font-size: clamp(1.7rem, 5vw, 2.2rem); }
.gate-form > p:first-of-type { color: var(--ink-2); margin-bottom: 8px; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: var(--ink-2);
  cursor: pointer;
  padding: 6px 0;
}
.checkbox input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--leaf);
  flex: none;
}

.fine { font-size: 14px; color: var(--muted); }

.form-error { color: var(--brick); font-size: 15px; font-weight: 500; min-height: 0; }
.form-error:empty { display: none; }

/* Tabs */

.tool { padding: 14px; }

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--paper);
  border-radius: 999px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: 1 0 auto;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
}
.tab:hover { color: var(--forest); }
.tab[aria-selected="true"] { background: var(--forest); color: #fff; }

.tab-count {
  display: inline-block;
  min-width: 22px;
  padding: 0 6px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--forest);
  font-size: 13px;
  line-height: 22px;
}
.tab-count:empty { display: none; }

.panel { padding: 22px 8px 10px; }

@media (max-width: 420px) {
  .tab { padding: 0 10px; font-size: 14px; }
}

/* Fields */

.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field-label { font-weight: 600; font-size: 15px; color: var(--forest); }
.optional { font-weight: 400; color: var(--muted); }
.hint { font-size: 14px; color: var(--muted); }

.counter { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.counter.is-warn { color: var(--amber-ink); font-weight: 600; }
.counter.is-bad { color: var(--brick); font-weight: 600; }

.input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-input);
  background: var(--card);
  font-size: 16px;
  line-height: 1.45;
  transition: border-color .15s ease;
}
.input:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px var(--leaf-soft); }
.input.is-invalid { border-color: var(--brick); }
textarea.input { resize: vertical; }
.input-big { font-size: 20px; min-height: 56px; }

/* Tag chips */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  min-height: 52px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-input);
  background: var(--card);
  cursor: text;
}
.chips:focus-within { border-color: var(--leaf); box-shadow: 0 0 0 3px var(--leaf-soft); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  max-width: 100%;
  padding: 0 4px 0 12px;
  min-height: 34px;
  border-radius: 999px;
  background: var(--leaf-soft);
  color: var(--forest);
  font-size: 15px;
}
.chip.is-long { background: var(--brick-soft); color: #7A2A16; }
.chip-text { overflow-wrap: anywhere; }
.chip-x {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: inherit;
}
.chip-x:hover { background: rgba(18, 38, 28, .1); }

.chip-input {
  flex: 1 0 120px;
  min-width: 0;
  min-height: 34px;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 16px;
  padding: 0 6px;
}

/* Checker */

.check-grid { display: grid; gap: 24px; }
.check-grid > * { min-width: 0; }

.check-results {
  background: var(--paper);
  border-radius: var(--r-card);
  padding: 20px;
  align-self: start;
}
.results-title { font-size: 22px; margin-bottom: 14px; }

.tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tip {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  font-size: 16px;
  line-height: 1.45;
}
.tip-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-top: 1px;
}
.tip-bad .tip-icon { background: var(--brick); }
.tip-warn .tip-icon { background: var(--sun); color: var(--forest); }
.tip-good .tip-icon { background: var(--leaf); }
.tip > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.tip-tip .tip-icon { background: var(--leaf-soft); color: var(--leaf-deep); font-style: italic; font-family: Georgia, serif; }
.tip q { quotes: "\201C" "\201D"; font-weight: 600; }

/* Wizard */

.progress { height: 6px; background: var(--paper); border-radius: 999px; overflow: hidden; }
.progress-bar {
  display: block;
  height: 100%;
  width: 20%;
  background: var(--leaf);
  border-radius: 999px;
  transition: width .3s ease;
}
.step-count { margin-top: 10px; font-size: 14px; color: var(--muted); }

.wizard { max-width: 720px; }
.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step-title {
  padding: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 8px 0 8px;
}
.step-help { color: var(--ink-2); margin-bottom: 20px; max-width: 38em; }

.number-pair { display: grid; gap: 4px 16px; }

.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.wizard-nav .btn { min-width: 120px; }

/* Swap cards (old vs new) */

.swap {
  display: grid;
  gap: 12px;
  align-items: stretch;
}

.swap-card {
  border-radius: var(--r-card);
  padding: 16px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.swap-card.is-old { background: var(--paper); border: 1.5px dashed var(--line-strong); }
.swap-card.is-new { background: var(--leaf-soft); border: 1.5px solid #A9D2B4; }

.swap-label { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.swap-title { font-size: 17px; overflow-wrap: anywhere; }
.swap-title mark { background: var(--sun-soft); color: var(--forest); border-radius: 4px; padding: 0 2px; }
.swap-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.swap-tags span {
  font-size: 14px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--line);
}
.swap-tags .is-added { background: var(--sun-soft); border-color: #E8C95A; }
.swap-copy { display: flex; flex-wrap: wrap; gap: 8px; }

.swap-btn {
  justify-self: center;
  align-self: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 0;
  background: var(--forest);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .35s ease;
}
.swap-btn svg { width: 24px; height: 24px; transform: rotate(90deg); }
.swap-btn:hover { background: var(--leaf-deep); }
.swap.is-swapped .swap-btn { transform: rotate(180deg); }

.swap.is-swapped .swap-card:first-child { order: 3; }
.swap.is-swapped .swap-card:last-child { order: 1; }
.swap .swap-btn { order: 2; }
.swap.is-animating .swap-card { animation: swap-pop .35s ease; }

@keyframes swap-pop {
  0% { transform: scale(.97); opacity: .6; }
  100% { transform: none; opacity: 1; }
}

/* My tests */

.tests-empty {
  text-align: center;
  padding: 36px 12px;
  display: grid;
  justify-items: center;
  gap: 10px;
}
.tests-empty h3 { font-size: 24px; }
.tests-empty p { color: var(--ink-2); max-width: 30em; margin-bottom: 8px; }

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

.test-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--card);
}

.ring { width: 64px; height: 64px; position: relative; }
.ring svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--paper); stroke-width: 7; }
.ring-fill { fill: none; stroke: var(--leaf); stroke-width: 7; stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.ring-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 11px;
  line-height: 1.05;
  color: var(--muted);
}
.ring-label b { display: block; font-family: var(--font-display); font-size: 20px; color: var(--forest); }

.verdict-badge {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  line-height: 1.05;
}
.badge-keep { background: var(--leaf); color: #fff; }
.badge-undo { background: var(--brick); color: #fff; }
.badge-close { background: var(--sun); color: var(--forest); }
.badge-data { background: var(--paper); color: var(--ink-2); border: 1.5px dashed var(--line-strong); }

.test-main { min-width: 0; display: grid; gap: 4px; }
.test-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; overflow-wrap: anywhere; }
.test-meta { font-size: 15px; color: var(--muted); }
.test-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.btn-link {
  background: none;
  border: 0;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  min-height: 44px;
  padding: 0 8px;
  font-size: 15px;
}
.btn-link:hover { color: var(--brick); }

.backup {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  font-size: 15px;
  color: var(--muted);
}
.backup-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Fair section ---------- */

.fair {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 20px 40px;
  display: grid;
  gap: 32px;
}
.fair h2 { font-size: clamp(2rem, 5.5vw, 3rem); font-weight: 800; letter-spacing: -0.025em; }
.fair-copy p { margin-top: 14px; color: var(--ink-2); max-width: 38em; font-size: 18px; }

.equation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}
.eq-term { display: grid; }
.eq-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 9vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.eq-label { font-size: 15px; color: var(--muted); }
.eq-op { font-family: var(--font-display); font-size: clamp(2rem, 7vw, 3rem); color: var(--line-strong); }
.eq-answer .eq-num { color: var(--leaf); }

.rules { margin: 0; display: grid; gap: 14px; }
.rules div { display: grid; gap: 2px; }
.rules dt { font-family: var(--font-display); font-weight: 700; font-size: 19px; display: flex; align-items: center; gap: 10px; }
.rules dt::before { content: ""; width: 14px; height: 14px; border-radius: 999px; flex: none; }
.rules dd { margin: 0 0 0 24px; color: var(--ink-2); }
.rule-keep::before { background: var(--leaf); }
.rule-undo::before { background: var(--brick); }
.rule-close::before { background: var(--sun); }
.rule-data::before { background: var(--card); border: 2px dashed var(--line-strong); }

.fair-note { font-size: 15px; color: var(--muted); max-width: 40em; }

/* ---------- Footer ---------- */

.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 20px 48px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  font-size: 15px;
  color: var(--muted);
}
.footer-kofi { font-size: 17px; color: var(--ink-2); }
.footer-kofi a { font-weight: 600; }
.footer-contact { font-size: 16px; line-height: 2; color: var(--ink-2); }
.footer-contact a { font-weight: 600; padding: 8px 0; }
.footer-links a { color: var(--ink-2); display: inline-block; padding: 10px 0; }
.footer-legal { font-size: 13px; }

/* ---------- Dialog (results and verdicts) ---------- */

.dialog {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  border: 0;
  border-radius: 24px;
  padding: 26px 22px 22px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 24px 64px -16px rgba(18, 38, 28, .45);
}
.dialog::backdrop { background: rgba(18, 38, 28, .55); }
.dialog-close-form { position: absolute; top: 10px; right: 10px; margin: 0; }
.dialog-x {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.dialog h2 { font-size: 26px; margin-right: 44px; margin-bottom: 8px; }
.dialog .step-help { margin-bottom: 16px; }
.dialog .wizard-nav { justify-content: flex-end; }

.notice {
  background: var(--sun-soft);
  color: var(--forest);
  border-radius: var(--r-input);
  padding: 12px 14px;
  font-size: 15px;
  margin-bottom: 16px;
}

.verdict { display: grid; gap: 14px; }
.verdict .meter { width: min(300px, 100%); justify-self: center; }
.verdict .needle, .verdict .needle-hub { color: var(--forest); }
.verdict-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 9vw, 3rem);
  line-height: 1;
  text-align: center;
  letter-spacing: -0.02em;
}
.verdict-keep .verdict-word { color: var(--leaf); }
.verdict-undo .verdict-word { color: var(--brick); }
.verdict-close .verdict-word { color: var(--amber-ink); }
.verdict-data .verdict-word { color: var(--ink-2); }
.verdict-points { text-align: center; color: var(--muted); font-size: 16px; }
.verdict-explain { color: var(--ink-2); }
.verdict-numbers {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  margin: 0;
  padding: 14px 16px;
  background: var(--paper);
  border-radius: var(--r-input);
  font-size: 15px;
}
.verdict-numbers dt { color: var(--ink-2); }
.verdict-numbers dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 20px);
  background: var(--forest);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 100;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Larger screens ---------- */

@media (min-width: 640px) {
  .number-pair { grid-template-columns: 1fr 1fr; }
  .rules { grid-template-columns: 1fr 1fr; gap: 20px 32px; }
  .tool { padding: 18px; }
  .panel { padding: 26px 14px 14px; }
  .gate { padding: 56px 32px; }
}

@media (min-width: 900px) {
  .site-header, .hero, .app, .fair, .site-footer { padding-left: 32px; padding-right: 32px; }
  .hero { grid-template-columns: 1.15fr 1fr; padding-top: 48px; padding-bottom: 80px; gap: 56px; }
  .hero-demo { padding: 28px; }
  .check-grid { grid-template-columns: 1.2fr 1fr; gap: 32px; }
  .swap { grid-template-columns: 1fr auto 1fr; }
  .swap-btn svg { transform: none; }
  .fair { grid-template-columns: 1fr 1fr; column-gap: 56px; padding-top: 96px; }
  .fair-copy, .equation { grid-column: 1 / -1; }
  .fair-copy { max-width: 760px; }
  .rules { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .fair-note { grid-column: 1 / -1; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
