/* =============================================================
   Banana Bank — banana-paper design system
   Palette + components lifted from the Banana Paper PDF.
   ============================================================= */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: "Baloo 2";
  src: url("assets/fonts/baloo2-var-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("assets/fonts/nunitosans-var-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrainsmono-var-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0c3125;            /* text on yellow surfaces */
  --pine: #0e3b2b;           /* elevated green panels (banners, loop, stats) */
  --pine-deep: #081712;      /* page background — near-black green */
  --cream: #faf3e1;
  --cream-card: #0f2519;     /* card / table / panel surface on dark */
  --tint: #0b2016;           /* alternate section background */
  --head: #f7f1df;           /* headings on dark */
  --banana: #f6c445;
  --banana-bright: #ffd34e;
  --gold: #e0a921;
  --lime: #a6ce39;
  --lime-bright: #b9db4b;
  --teal: #7cc29b;
  --orange: #dd7230;
  --red: #c4574e;
  --blue: #4a7e9b;
  --purple: #7a63b8;
  --body-text: #d5cdb8;      /* body copy on dark */
  --muted: #a4b0a0;
  --faint: #83907f;
  --line: rgba(244, 237, 218, 0.1);
  --ease: cubic-bezier(0.22, 0.75, 0.25, 1);
  --display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body-text);
  background: var(--pine-deep);
  overflow-x: hidden;
}

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

h1, h2, h3 { font-family: var(--display); color: var(--head); }

a { color: inherit; }

::selection { background: var(--banana); color: var(--ink); }

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

.container {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -60px; left: 16px;
  z-index: 200;
  background: var(--banana);
  color: var(--ink);
  font: 700 15px var(--body);
  padding: 10px 18px;
  border-radius: 12px;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* Icon defaults */
.ic {
  width: 20px; height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* Grain overlay for dark surfaces */
.grain { position: relative; }
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.grain > * { position: relative; z-index: 1; }

/* Decorative leaves + sparkles */
.deco { position: absolute; pointer-events: none; }
.leaf path:first-child {
  fill: var(--lime);
  stroke: #07271c;
  stroke-width: 2.5;
  stroke-linejoin: round;
}
.leaf .vein {
  fill: none;
  stroke: #07271c;
  stroke-width: 2;
  stroke-linecap: round;
}
.spark { fill: var(--banana-bright); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 1.02rem var(--display);
  letter-spacing: 0.01em;
  padding: 0.78em 1.5em;
  border-radius: 14px;
  border: 2.5px solid var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease);
}
.btn-primary {
  background: var(--banana);
  color: var(--ink);
  box-shadow: 0 5px 0 #8f6d14;
}
.btn-primary:hover { transform: translateY(3px); box-shadow: 0 2px 0 #8f6d14; background: var(--banana-bright); }
.btn-primary:active { transform: translateY(5px); box-shadow: 0 0 0 #8f6d14; }
.btn-ghost {
  border-color: rgba(250, 243, 225, 0.8);
  color: #f6efdb;
  background: transparent;
}
.btn-ghost:hover { background: rgba(250, 243, 225, 0.12); }
.btn-small { padding: 0.5em 1.05em; font-size: 0.92rem; border-width: 2px; box-shadow: 0 3px 0 #8f6d14; }
.btn-small:hover { transform: translateY(2px); box-shadow: 0 1px 0 #8f6d14; }

/* ---------- Contract address bar ---------- */
.ca-bar {
  background: var(--pine);
  border-bottom: 1.5px solid var(--line);
}
.ca-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding-block: 10px;
}
.ca-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--banana);
}
.ca-label .ic { width: 16px; height: 16px; }
.ca-value {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--head);
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 6px 12px;
  overflow-wrap: anywhere;
  user-select: all;
  -webkit-user-select: all;
}
.ca-copy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
  background: var(--banana);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.ca-copy:hover { background: var(--banana-bright); transform: translateY(-1px); }
.ca-copy .ca-ic { width: 16px; height: 16px; }
.ca-copy .ca-ic-done { display: none; }
.ca-copy.is-copied { background: var(--lime-bright); }
.ca-copy.is-copied .ca-ic-copy { display: none; }
.ca-copy.is-copied .ca-ic-done { display: block; }

@media (max-width: 560px) {
  .ca-label { display: none; }
  .ca-value { font-size: 0.76rem; }
  .ca-row { gap: 8px 10px; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 23, 18, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1.5px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img { border-radius: 10px; }
.brand-name {
  font: 800 1.35rem var(--display);
  color: var(--head);
  letter-spacing: 0.01em;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
}
.site-nav > a:not(.btn) {
  font: 700 0.95rem var(--body);
  color: rgba(244, 237, 218, 0.75);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.site-nav > a:not(.btn):hover,
.site-nav > a.active {
  color: #fff;
  border-bottom-color: var(--banana);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 4px;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(244, 237, 218, 0.85);
  transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.15s;
}
.icon-btn:hover {
  color: var(--banana-bright);
  border-color: rgba(246, 196, 69, 0.55);
  background: rgba(246, 196, 69, 0.08);
  transform: translateY(-1px);
}
.icon-btn .ic { width: 18px; height: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  padding: 10px;
  background: transparent;
  border: 2px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2.6px;
  border-radius: 2px;
  background: #f0e9d6;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background-color: var(--pine-deep);
  background-image:
    radial-gradient(720px 540px at 72% 30%, rgba(246, 196, 69, 0.14), transparent 65%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='132'%3E%3Cpath d='M44 39v10M39 44h10' stroke='%23f6c445' stroke-opacity='0.18' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"),
    linear-gradient(rgba(246, 196, 69, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 196, 69, 0.05) 1px, transparent 1px);
  background-size: auto, 132px 132px, 44px 44px, 44px 44px;
  color: #f6efdb;
  padding-top: clamp(64px, 9vh, 110px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 9px 18px;
  border: 2px solid rgba(246, 196, 69, 0.45);
  border-radius: 999px;
  color: var(--banana-bright);
  font: 800 0.8rem var(--display);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.hero-tag .ic { width: 18px; height: 18px; }
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.02;
  color: #fdf8ea;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: normal;
  color: var(--banana-bright);
}
.hero-sub {
  margin: 0 0 30px;
  max-width: 54ch;
  font-size: 1.13rem;
  color: rgba(250, 243, 225, 0.82);
}
.hero-sub strong { color: var(--banana-bright); font-weight: 800; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-fine {
  margin: 18px 0 0;
  font: 600 0.74rem var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(250, 243, 225, 0.5);
}
.hero-fine::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 9px;
  vertical-align: -0.18em;
  background: var(--banana-bright);
  animation: caret-blink 1.15s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

.hero-art {
  position: relative;
  width: min(100%, 540px);
  justify-self: center;
}
.hero-logo {
  display: block;
  width: 100%;
  filter: drop-shadow(0 26px 44px rgba(0, 0, 0, 0.45));
}
.leaf-1 { width: 96px; top: -2%; left: -9%; --rot: -16deg; }
.leaf-2 { width: 72px; bottom: 5%; right: -5%; --rot: 26deg; }
.spark-1 { width: 28px; top: 5%; right: 1%; --rot: 12deg; }
.spark-2 { width: 20px; bottom: 17%; left: -3%; color: var(--lime-bright); fill: currentColor; --rot: -8deg; }

@keyframes bob {
  from { transform: translateY(-7px) rotate(var(--rot, 0deg)); }
  to   { transform: translateY(9px) rotate(var(--rot, 0deg)); }
}
.float-a, .float-b, .float-c { animation: bob 7s ease-in-out infinite alternate; }
.float-b { animation-duration: 5.4s; animation-delay: -2.2s; }
.float-c { animation-duration: 4.6s; animation-delay: -3.6s; }

.hero-chips { padding: clamp(30px, 5vh, 52px) 0 clamp(38px, 6vh, 58px); }
.chips-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 17px;
  border: 1.5px solid rgba(246, 196, 69, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 700;
  font-size: 0.86rem;
  color: #f0e8d2;
  white-space: nowrap;
}
.chip .ic { width: 17px; height: 17px; color: var(--banana-bright); }

/* ---------- Ticker ---------- */
.ticker {
  position: relative;
  background: var(--banana);
  border-bottom: 3px solid var(--ink);
  overflow: hidden;
}
/* scalloped awning fringe hanging from the hero */
.ticker::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 18px;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle 12px at 13px -4px, var(--pine-deep) 11.5px, rgba(0, 0, 0, 0) 12.7px) repeat-x;
  background-size: 26px 18px;
}
.ticker-track {
  display: flex;
  width: max-content;
  padding: 24px 0 13px;
  animation: marquee 30s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group {
  display: flex;
  align-items: center;
  gap: 38px;
  padding-right: 38px;
  white-space: nowrap;
  font: 800 0.95rem var(--display);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--ink);
}
.ticker-group .ic { width: 19px; height: 19px; transform: rotate(-12deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 108px) 0; scroll-margin-top: 80px; }
.section-tint { background: var(--tint); }

.section-head {
  position: relative;
  padding-top: clamp(28px, 4vw, 44px);
  margin-bottom: clamp(20px, 3vw, 34px);
}
.ghost-num {
  position: absolute;
  top: -0.08em;
  left: -0.05em;
  z-index: 0;
  font: 800 clamp(4.8rem, 10vw, 7.8rem) / 1 var(--display);
  letter-spacing: -0.02em;
  color: rgba(246, 196, 69, 0.07);
  user-select: none;
  pointer-events: none;
}
.kicker {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font: 700 0.74rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--banana-bright);
}
.kicker::before {
  content: "//";
  font: 700 0.85rem var(--mono);
  color: rgba(246, 196, 69, 0.55);
}
.section-head h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.05;
}

.section p { max-width: 76ch; }

.lede {
  font-size: 1.16rem;
  font-weight: 600;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 18px;
}

.pill {
  display: inline-flex;
  margin: clamp(26px, 4vw, 40px) 0 16px;
  padding: 9px 18px;
  background: var(--banana);
  color: var(--ink);
  border-radius: 999px;
  font: 800 0.78rem var(--display);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.note {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 16px 22px;
  margin: 22px 0 0;
}
.note strong { color: var(--head); }
.note-green {
  background: rgba(166, 206, 57, 0.09);
  border: 1.5px solid rgba(166, 206, 57, 0.35);
  color: #e2ecc8;
  font-weight: 700;
}
.note-green h3 { margin: 0 0 6px; font-size: 1.12rem; color: #dcedb4; }
.note-green p { margin: 0; font-weight: 600; color: rgba(226, 236, 200, 0.85); }
.note-green strong { color: var(--lime-bright); }

.fine {
  color: var(--faint);
  font-size: 0.9rem;
  margin: 18px 0 0;
}

/* ---------- Split layouts ---------- */
.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 46px);
  align-items: stretch;
}
.split-rate { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
.split-exits { grid-template-columns: 1.05fr 0.95fr; align-items: stretch; }
.split-main { min-width: 0; }
.split-aside {
  min-width: 0;
  display: grid;
  gap: 18px;
  grid-auto-rows: 1fr;
}
.split-aside .card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-card {
  margin: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: var(--cream-card);
  border: 2px solid rgba(246, 196, 69, 0.45);
  border-radius: 24px;
}
.logo-card img {
  width: min(240px, 60vw);
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.45));
}
.scene-card {
  padding: 14px;
  box-shadow: 0 0 38px rgba(246, 196, 69, 0.14);
}
.scene-card img {
  width: 100%;
  border-radius: 14px;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.4));
}

/* ---------- Core loop ---------- */
.loop {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.loop-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 24px 14px 20px;
  background: var(--pine);
  color: #f5efdd;
  border: 1.5px solid rgba(246, 196, 69, 0.14);
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3);
}
.loop-step .ic { width: 30px; height: 30px; color: var(--banana-bright); margin-bottom: 4px; }
.loop-step strong {
  font: 800 1.28rem var(--display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}
.loop-step span { font-size: 0.88rem; color: rgba(245, 239, 221, 0.72); }
.loop-step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 50%;
  width: 11px; height: 11px;
  border-top: 3.5px solid rgba(246, 196, 69, 0.55);
  border-right: 3.5px solid rgba(246, 196, 69, 0.55);
  transform: translateY(-50%) rotate(45deg);
}
.loop-step.is-earn {
  background: var(--banana);
  color: var(--ink);
  box-shadow: 0 6px 0 rgba(196, 148, 24, 0.45);
}
.loop-step.is-earn .ic { color: var(--ink); }
.loop-step.is-earn span { color: rgba(12, 49, 37, 0.72); }

/* ---------- Stats: one dark counter strip ---------- */
.stats {
  list-style: none;
  margin: clamp(28px, 4vw, 40px) 0 0;
  padding: 24px 8px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background:
    linear-gradient(rgba(246, 196, 69, 0.04) 1px, transparent 1px) 0 0 / 36px 36px,
    var(--pine);
  border-radius: 22px;
  box-shadow: inset 0 0 0 1.5px rgba(246, 196, 69, 0.14);
}
.stat {
  text-align: center;
  padding: 8px 18px;
  border-right: 1.5px dashed rgba(246, 196, 69, 0.24);
}
.stat:last-child { border-right: 0; }
.stat .ic {
  width: 22px; height: 22px;
  margin-bottom: 8px;
  color: rgba(246, 196, 69, 0.55);
}
.stat strong {
  display: block;
  font: 800 clamp(1.6rem, 2.4vw, 2.05rem) var(--display);
  line-height: 1.08;
  color: var(--banana-bright);
  font-variant-numeric: tabular-nums;
}
.stat span {
  font: 600 0.64rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(245, 239, 221, 0.72);
}

/* ---------- Callouts ---------- */
.callout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: clamp(28px, 4vw, 42px);
  padding: 26px 28px;
  background: rgba(246, 196, 69, 0.07);
  border: 2px solid rgba(246, 196, 69, 0.4);
  border-radius: 20px;
}
.callout-ic {
  width: 48px; height: 48px;
  flex: none;
  padding: 10px;
  color: var(--ink);
  background: var(--banana);
  border: 2px solid var(--ink);
  border-radius: 999px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(-6deg);
}
.callout h3 { margin: 0 0 6px; font-size: 1.25rem; font-weight: 800; }
.callout p { margin: 0; color: rgba(213, 205, 184, 0.92); }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--cream-card);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 26px 28px;
  overflow: hidden;
}
.card h3 { margin: 0 0 8px; font-size: 1.24rem; font-weight: 800; }
.card p { margin: 0 0 10px; color: rgba(213, 205, 184, 0.88); }
.card p:last-child { margin-bottom: 0; }
.card strong { color: var(--head); }

.num-chip {
  display: grid;
  place-items: center;
  width: 37px; height: 37px;
  margin-bottom: 13px;
  background: var(--banana);
  color: var(--ink);
  border-radius: 999px;
  font: 800 1.05rem var(--display);
}

.card[class*="bar-"] { padding-bottom: 34px; }
.card[class*="bar-"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 9px;
}
.bar-yellow::after { background: var(--banana); }
.bar-lime::after   { background: var(--lime-bright); }
.bar-teal::after   { background: var(--teal); }
.bar-orange::after { background: var(--orange); }

.card[class*="spine-"] { padding-left: 34px; }
.card[class*="spine-"]::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 9px;
}
.spine-green::before  { background: #5e9e68; }
.spine-red::before    { background: var(--red); }
.spine-lime::before   { background: var(--lime); }
.spine-yellow::before { background: var(--banana); }
.spine-orange::before { background: var(--orange); }
.spine-teal::before   { background: var(--teal); }

.spine-red { background: rgba(196, 87, 78, 0.12); border-color: rgba(196, 87, 78, 0.4); }
.spine-green { background: rgba(94, 158, 104, 0.12); border-color: rgba(94, 158, 104, 0.4); }
.card-penalty {
  background: rgba(221, 114, 48, 0.1);
  border-color: rgba(221, 114, 48, 0.45);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 20px 0 36px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 38px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 4.5px;
  border-radius: 3px;
  background: var(--pine);
}
.tl-node {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
}
.tl-day {
  font: 700 0.8rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--head);
}
.tl-dot {
  width: 21px; height: 21px;
  border-radius: 50%;
  background: var(--banana);
  border: 3px solid var(--pine-deep);
}
.tl-dot-lime { background: var(--lime-bright); }
.tl-label { color: var(--muted); font-size: 0.93rem; }

/* ---------- Banners ---------- */
.banner {
  position: relative;
  overflow: hidden;
  margin-top: clamp(28px, 4vw, 44px);
  padding: clamp(28px, 5vw, 46px);
  background: var(--pine);
  color: #f5efdd;
  border-radius: 26px;
}
.banner-eyebrow {
  margin: 0 0 12px;
  font: 700 0.72rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--banana-bright);
}
.banner-big {
  margin: 0;
  font: 800 clamp(1.25rem, 2.6vw, 1.85rem) var(--display);
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #fdf8ea;
}
.banner-huge {
  margin: 0 0 10px;
  font: 800 clamp(1.7rem, 3.6vw, 2.7rem) var(--display);
  text-transform: uppercase;
  line-height: 1.08;
  color: var(--banana-bright);
}
.banner-fine {
  margin: 16px 0 0;
  font-size: 0.9rem;
  color: rgba(245, 239, 221, 0.62);
  max-width: 60ch;
}
.leaf-banner {
  right: -14px;
  bottom: -16px;
  width: 160px;
  --rot: -18deg;
  transform: rotate(-18deg);
  opacity: 0.95;
}

/* ---------- Rate chart ---------- */
.chart-card {
  position: relative;
  margin: 0;
  background: var(--cream-card);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 24px 22px 14px;
}
/* HUD corner ticks */
.chart-card::before,
.chart-card::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  pointer-events: none;
}
.chart-card::before {
  top: 11px; left: 11px;
  border-top: 2px solid rgba(246, 196, 69, 0.4);
  border-left: 2px solid rgba(246, 196, 69, 0.4);
  border-top-left-radius: 4px;
}
.chart-card::after {
  bottom: 11px; right: 11px;
  border-bottom: 2px solid rgba(246, 196, 69, 0.4);
  border-right: 2px solid rgba(246, 196, 69, 0.4);
  border-bottom-right-radius: 4px;
}
.chart-card figcaption {
  font: 700 0.72rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--head);
  margin: 0 0 12px 8px;
}
.chart { display: block; width: 100%; height: auto; }
.chart-grid line {
  stroke: rgba(244, 237, 218, 0.14);
  stroke-width: 1.5;
  stroke-dasharray: 2 8;
  stroke-linecap: round;
}
.chart-line {
  fill: none;
  stroke: var(--lime);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart-dot circle {
  fill: var(--banana);
  stroke: var(--pine-deep);
  stroke-width: 3;
}
.chart-ylab text {
  font: 600 11.5px var(--mono);
  fill: rgba(213, 205, 184, 0.55);
  text-anchor: end;
}
.chart-vlab text {
  font: 800 16px var(--display);
  fill: var(--head);
  text-anchor: middle;
}
.chart-xlab text {
  font: 600 12px var(--mono);
  fill: rgba(213, 205, 184, 0.55);
  text-anchor: middle;
}

/* ---------- Tables ---------- */
.table-scroll {
  overflow-x: auto;
  background: var(--cream-card);
  border: 1.5px solid var(--line);
  border-radius: 18px;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
}
.table-compact { min-width: 340px; }
thead th {
  background: rgba(246, 196, 69, 0.07);
  color: var(--banana-bright);
  font: 700 0.72rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  padding: 15px 22px;
  border-bottom: 1.5px solid rgba(246, 196, 69, 0.25);
}
tbody td { font-variant-numeric: tabular-nums; }
tbody td {
  padding: 13px 22px;
  border-top: 1px solid rgba(244, 237, 218, 0.07);
  font-weight: 600;
  color: rgba(213, 205, 184, 0.85);
}
tbody tr:first-child td { border-top: 0; }
tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.025); }
tbody td:first-child { font-weight: 800; color: var(--head); }
.ta-r { text-align: right; font-variant-numeric: tabular-nums; }

.cmd {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  background: rgba(246, 196, 69, 0.12);
  border: 1.5px solid rgba(246, 196, 69, 0.45);
  border-radius: 999px;
  font: 700 0.72rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--banana-bright);
  white-space: nowrap;
}
.cmd .ic { width: 16px; height: 16px; }

/* ---------- Tiles (fresh deposit bonus) ---------- */
.tile {
  border-radius: 18px;
  padding: 24px 22px;
  color: #fff;
  box-shadow: 0 5px 0 rgba(10, 46, 33, 0.2);
}
.tile h3 {
  margin: 0 0 6px;
  color: inherit;
  font: 800 1.08rem var(--display);
  text-transform: uppercase;
  letter-spacing: 0.11em;
}
.tile p { margin: 0; font-weight: 700; font-size: 0.95rem; opacity: 0.94; }
.tile-blue   { background: var(--blue);   box-shadow: 0 5px 0 #33607c; }
.tile-lime   { background: var(--lime);   box-shadow: 0 5px 0 #7fa224; color: var(--ink); }
.tile-lime p { opacity: 0.8; }
.tile-purple { background: var(--purple); box-shadow: 0 5px 0 #5a4790; }
.tile-orange { background: var(--orange); box-shadow: 0 5px 0 #ab5217; }

/* ---------- Worked examples ---------- */
.examples { display: grid; gap: 16px; }
.example {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 30px 26px 36px;
}
.example-copy h3 { margin-bottom: 6px; }
.example-copy p { margin: 0 0 4px; }
.formula {
  font: 600 0.88rem var(--mono);
  color: rgba(213, 205, 184, 0.62);
}
.rate-badge {
  flex: none;
  margin: 0;
  padding: 18px 28px;
  background: rgba(246, 196, 69, 0.1);
  border: 1.5px solid rgba(246, 196, 69, 0.35);
  color: var(--banana-bright);
  border-radius: 16px;
  font: 800 clamp(1.5rem, 2.4vw, 1.95rem) var(--display);
  line-height: 1;
  white-space: nowrap;
}
.rate-badge span { font-size: 0.58em; color: rgba(244, 237, 218, 0.75); font-weight: 700; }

/* ---------- Read this ---------- */
.banner-readthis { padding-right: clamp(28px, 12vw, 170px); }
.readthis-text {
  margin: 0;
  max-width: 70ch;
  font-size: 1.06rem;
  color: rgba(250, 243, 225, 0.9);
}
.readthis-text strong { color: var(--banana-bright); }
.readthis-caps {
  margin: 20px 0 0;
  font: 800 1.02rem var(--display);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--banana-bright);
}
.stamp {
  position: absolute;
  top: 26px; right: 28px;
  transform: rotate(8deg);
  padding: 9px 16px;
  border: 2.5px solid #e4685f;
  outline: 2.5px solid #e4685f;
  outline-offset: 3px;
  border-radius: 8px;
  color: #e4685f;
  font: 800 0.92rem var(--display);
  text-transform: uppercase;
  letter-spacing: 0.17em;
  opacity: 0.9;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--pine-deep);
  color: #e7e0cb;
  padding-top: clamp(56px, 8vw, 80px);
  overflow: hidden;
  border-top: 1.5px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: clamp(28px, 4vw, 44px);
  align-items: start;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  align-self: center;
}
.footer-brand img { filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.4)); }
.footer-col h3 {
  margin: 0 0 14px;
  font: 700 0.7rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(246, 196, 69, 0.72);
}
.footer-col a {
  display: block;
  padding: 6px 0;
  color: #e7e0cb;
  font-weight: 600;
  text-decoration: none;
}
.footer-col a:hover { color: var(--banana-bright); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  margin-top: clamp(36px, 5vw, 52px);
  padding: 20px 0;
  border-top: 1px solid rgba(246, 196, 69, 0.16);
  font: 600 0.72rem/1.7 var(--mono);
  color: rgba(231, 224, 203, 0.55);
}
.footer-bottom p { margin: 0; }
.footer-made { display: inline-flex; align-items: center; gap: 8px; }
.footer-made .ic { width: 16px; height: 16px; color: var(--banana-bright); }
.footer-watermark {
  margin: 10px 0 -1.5%;
  font: 800 clamp(3.6rem, 13vw, 10.5rem) var(--display);
  text-transform: uppercase;
  text-align: center;
  line-height: 0.82;
  letter-spacing: 0.02em;
  color: rgba(246, 196, 69, 0.08);
  user-select: none;
  white-space: nowrap;
}

/* =============================================================
   Site-only personality: dark vault section, live charts,
   micro-interactions, Q&A. (Not in the paper — on purpose.)
   ============================================================= */

/* ---------- Dark section (Inside the vault) ---------- */
.section-dark {
  background-color: var(--pine-deep);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='132'%3E%3Cpath d='M44 39v10M39 44h10' stroke='%23f6c445' stroke-opacity='0.16' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"),
    linear-gradient(rgba(246, 196, 69, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 196, 69, 0.045) 1px, transparent 1px);
  background-size: 132px 132px, 44px 44px, 44px 44px;
  color: #ece4cd;
}
.section-dark .ghost-num { color: rgba(246, 196, 69, 0.1); }
.section-dark .kicker { color: var(--banana-bright); }
.section-dark .section-head h2 { color: #fdf8ea; }
.section-dark .lede { color: rgba(250, 243, 225, 0.75); }
.section-dark .pill { background: var(--banana); color: var(--ink); }
.section-dark .fine { color: rgba(250, 243, 225, 0.52); }
.section-dark .card { box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28); border-color: transparent; }
.section-dark .timeline::before { background: rgba(246, 196, 69, 0.22); }
.section-dark .tl-day { color: #fdf8ea; }
.section-dark .tl-label { color: rgba(250, 243, 225, 0.65); }

/* Yellow banner variant (earning base, on dark) */
.banner-yellow { background: var(--banana); }
.banner-yellow .banner-eyebrow { color: rgba(12, 49, 37, 0.66); }
.banner-yellow .banner-big { color: var(--ink); }

/* ---------- Vault timeline: fill + pop + unlock pulse ---------- */
.timeline::after {
  content: "";
  position: absolute;
  top: 38px;
  left: calc(100% / 6);
  width: calc(100% - 100% / 3);
  height: 4.5px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--lime), var(--banana));
}
html.js .timeline.reveal::after { width: 0; }
html.js .timeline.in::after {
  width: calc(100% - 100% / 3);
  transition: width 1.3s var(--ease) 0.35s;
}
.tl-node { z-index: 1; }
html.js .timeline.reveal .tl-dot { transform: scale(0.35); opacity: 0; }
html.js .timeline.in .tl-dot {
  transform: none;
  opacity: 1;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}
html.js .timeline.in .tl-node:nth-child(1) .tl-dot { transition-delay: 0.25s; }
html.js .timeline.in .tl-node:nth-child(2) .tl-dot { transition-delay: 0.75s; }
html.js .timeline.in .tl-node:nth-child(3) .tl-dot { transition-delay: 1.3s; }
.tl-dot { position: relative; }
.tl-node:last-child .tl-dot::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2.5px solid var(--lime-bright);
  opacity: 0;
}
.timeline.in .tl-node:last-child .tl-dot::after,
html:not(.js) .tl-node:last-child .tl-dot::after {
  animation: pulse 2.8s ease-out 1.9s infinite;
}
@keyframes pulse {
  0%   { transform: scale(0.5); opacity: 0.9; }
  70%  { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* ---------- Chart: draw-in line, popping dots ---------- */
.chart-line { stroke-dasharray: 100; }
html.js .chart-card.reveal .chart-line { stroke-dashoffset: 100; }
html.js .chart-card.in .chart-line {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.5s var(--ease) 0.25s;
}
.chart-dot circle {
  transform-box: fill-box;
  transform-origin: center;
  transition: r 0.2s var(--ease);
}
.chart-dot circle:hover { r: 9.5; }
html.js .chart-card.reveal .chart-dot circle { opacity: 0; transform: scale(0.2); }
html.js .chart-card.in .chart-dot circle {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
html.js .chart-card.in .chart-dot circle:nth-child(1) { transition-delay: 0.4s; }
html.js .chart-card.in .chart-dot circle:nth-child(2) { transition-delay: 0.68s; }
html.js .chart-card.in .chart-dot circle:nth-child(3) { transition-delay: 0.96s; }
html.js .chart-card.in .chart-dot circle:nth-child(4) { transition-delay: 1.24s; }
html.js .chart-card.in .chart-dot circle:nth-child(5) { transition-delay: 1.52s; }
html.js .chart-card.reveal .chart-vlab text { opacity: 0; }
html.js .chart-card.in .chart-vlab text {
  opacity: 1;
  transition: opacity 0.4s var(--ease);
}
html.js .chart-card.in .chart-vlab text:nth-child(1) { transition-delay: 0.5s; }
html.js .chart-card.in .chart-vlab text:nth-child(2) { transition-delay: 0.78s; }
html.js .chart-card.in .chart-vlab text:nth-child(3) { transition-delay: 1.06s; }
html.js .chart-card.in .chart-vlab text:nth-child(4) { transition-delay: 1.34s; }
html.js .chart-card.in .chart-vlab text:nth-child(5) { transition-delay: 1.62s; }

/* ---------- Table mini bars ---------- */
.bar-cell {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.bar-cell i {
  flex: none;
  position: relative;
  width: 108px;
  height: 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.bar-cell i::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: calc(var(--w) * 1%);
  min-width: 3px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--lime), var(--banana));
  transition: width 0.9s var(--ease) 0.25s;
}
html.js .table-scroll.reveal:not(.in) .bar-cell i::after { width: 0; min-width: 0; }
.bar-r { justify-content: flex-end; }

/* ---------- Core loop: self-playing cycle ---------- */
.loop-step {
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.loop-step .ic { transition: transform 0.4s var(--ease); }
.loop-step.active,
.loop-step:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 0 rgba(10, 46, 33, 0.14);
}
.loop-step.active .ic,
.loop-step:hover .ic { transform: scale(1.15) rotate(-8deg); }
.loop-step.is-earn.active,
.loop-step.is-earn:hover { box-shadow: 0 14px 0 rgba(196, 148, 24, 0.32); }

/* ---------- Hover lifts ---------- */
.card { transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35); }
.tile { transition: transform 0.25s var(--ease); }
.tile:hover { transform: translateY(-4px); }
tbody tr { transition: background 0.15s; }
tbody tr:hover { background: rgba(233, 180, 36, 0.16); }
.table-commands tr:hover .cmd .ic { animation: wiggle 0.5s var(--ease); }
@keyframes wiggle {
  0% { transform: rotate(0); }
  30% { transform: rotate(-16deg); }
  65% { transform: rotate(10deg); }
  100% { transform: rotate(0); }
}
/* ---------- Boost sticker ---------- */
.banner-yellow-box {
  display: inline-block;
  background: var(--banana);
  color: var(--ink);
  padding: 12px 20px;
  border-radius: 14px;
  transform: rotate(-1.6deg);
  box-shadow: 0 5px 0 rgba(7, 39, 28, 0.45);
  margin-top: 6px;
}
html.js .banner-boost.reveal .banner-yellow-box { opacity: 0; }
html.js .banner-boost.in .banner-yellow-box {
  animation: sticker-in 0.6s var(--ease) 0.35s both;
}
@keyframes sticker-in {
  0%   { opacity: 0; transform: rotate(-7deg) scale(0.82); }
  70%  { opacity: 1; transform: rotate(-0.5deg) scale(1.04); }
  100% { opacity: 1; transform: rotate(-1.6deg) scale(1); }
}

/* ---------- Stamp entrance ---------- */
.stamp { --stamp-rot: 8deg; }
html.js .banner-readthis.reveal .stamp { opacity: 0; }
html.js .banner-readthis.in .stamp {
  animation: stamp-in 0.5s var(--ease) 0.5s both;
}
@keyframes stamp-in {
  0%   { opacity: 0; transform: rotate(calc(var(--stamp-rot) + 7deg)) scale(1.9); }
  70%  { opacity: 1; transform: rotate(var(--stamp-rot)) scale(0.94); }
  100% { opacity: 0.9; transform: rotate(var(--stamp-rot)) scale(1); }
}

/* ---------- Q&A ---------- */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin-top: 4px;
}
.faq {
  background: var(--cream-card);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 2px 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq:hover { border-color: rgba(224, 169, 33, 0.65); }
.faq[open] {
  border-color: var(--banana);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 16px 40px 16px 0;
  font: 800 1.06rem var(--display);
  color: var(--head);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 999px;
  background: rgba(246, 196, 69, 0.14);
  color: var(--banana-bright);
  font: 700 1.25rem/1 var(--display);
  transition: transform 0.3s var(--ease), background 0.2s, color 0.2s;
}
.faq[open] summary::after {
  transform: rotate(45deg);
  background: var(--banana);
  color: var(--ink);
}
.faq-a { padding: 0 0 18px; }
.faq-a p { margin: 0; color: rgba(213, 205, 184, 0.85); max-width: 72ch; }
.faq[open] .faq-a { animation: faq-in 0.35s var(--ease); }
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1.5px;
  height: 3px;
  pointer-events: none;
}
.scroll-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--banana), var(--lime));
  border-radius: 0 3px 3px 0;
}

/* ---------- Rate badge counter ---------- */
/* p.rate-badge outranks the generic `.card p` color override */
p.rate-badge { color: var(--banana-bright); }
.rate-badge b { font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- Reveal on scroll ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(20px);
}
html.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { width: min(72%, 400px); margin-top: 6px; }
  .loop { grid-template-columns: repeat(2, 1fr); }
  .loop-step:not(:last-child)::after { display: none; }
  .loop-step.is-earn { grid-column: span 2; }
  .split, .split-rate, .split-exits { grid-template-columns: 1fr; }
  .split-aside { grid-auto-rows: auto; }
  .logo-card { max-width: 360px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 24px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px 0; padding: 20px 6px; }
  .stat { border-right: 0; }
  .stat:nth-child(odd) { border-right: 1.5px dashed rgba(246, 196, 69, 0.24); }
  .stat:last-child { grid-column: span 2; border-right: 0; }
}

@media (max-width: 1160px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px clamp(20px, 5vw, 40px) 24px;
    background: #0c2118;
    border-bottom: 2.5px solid var(--line);
    box-shadow: 0 22px 36px rgba(0, 0, 0, 0.45);
  }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.btn) {
    font-size: 1.05rem;
    padding: 12px 2px;
    border-bottom: 1.5px dashed var(--line);
  }
  .nav-actions { margin: 16px 0 0; }
  .nav-toggle { display: flex; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .example { flex-direction: column; align-items: flex-start; }
  .rate-badge { align-self: flex-start; }
  .banner-readthis { padding-right: clamp(24px, 5vw, 46px); padding-top: 84px; }
  .stamp { top: 20px; right: auto; left: 28px; transform: rotate(-6deg); --stamp-rot: -6deg; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .timeline::before { top: 36px; }
  .timeline::after { top: 36px; }
  .leaf-banner { width: 110px; opacity: 0.5; }
  .bar-cell { gap: 9px; }
  .bar-cell i { width: 74px; }
  .faq { padding: 0 18px; }
}

@media (max-width: 440px) {
  .grid-4 { grid-template-columns: 1fr; }
  .loop { gap: 12px; }
  .loop-step { padding: 20px 10px 16px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .float-a, .float-b, .float-c { animation: none; }
  .ticker-track { animation: none; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .skip-link { transition: none; }
  html.js .chart-card .chart-line { stroke-dashoffset: 0; transition: none; }
  html.js .chart-card .chart-dot circle,
  html.js .chart-card .chart-vlab text { opacity: 1; transform: none; transition: none; }
  html.js .timeline::after { width: calc(100% - 100% / 3); transition: none; }
  html.js .timeline .tl-dot { transform: none; opacity: 1; transition: none; }
  .tl-node:last-child .tl-dot::after { animation: none !important; }
  html.js .table-scroll .bar-cell i::after { width: calc(var(--w) * 1%); transition: none; }
  .loop-step, .loop-step .ic, .card, .tile { transition: none; }
  .loop-step.active, .loop-step:hover { transform: none; }
  .loop-step.active .ic, .loop-step:hover .ic { transform: none; }
  .card:hover, .tile:hover { transform: none; }
  .table-commands tr:hover .cmd .ic { animation: none; }
  html.js .banner-readthis .stamp { animation: none; opacity: 0.9; }
  .hero-fine::after { animation: none; }
  html.js .banner-boost .banner-yellow-box { animation: none; opacity: 1; }
  .faq[open] .faq-a { animation: none; }
  .faq summary::after { transition: none; }
}
