/* ==========================================================================
   Green Shift Nigeria — main stylesheet
   ========================================================================== */

:root {
  --bg: #060a09;
  --bg-2: #0b1210;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eaf2ee;
  --muted: #92a69e;
  --faint: #5f716a;

  --leaf: #34d399;
  --leaf-2: #10b981;
  --leaf-deep: #064e3b;
  --sun: #f5b942;
  --sun-2: #ffd977;
  --water: #38bdf8;
  --danger: #f2674d;
  --smog: #8a7f73;

  --grad: linear-gradient(100deg, var(--leaf) 0%, #a7f3d0 45%, var(--sun) 100%);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.3, 1.6, .5, 1);

  --display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --body: "Figtree", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.02rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.loading {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--leaf);
  color: #04140e;
}

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

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #1b2a25;
  border-radius: 10px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--leaf-2);
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.grad {
  font-style: normal;
  background: var(--grad);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.mono {
  font-family: var(--mono);
}

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  background: var(--bg);
  transition: opacity .7s var(--ease), visibility .7s;
}

.loader.done {
  opacity: 0;
  visibility: hidden;
}

.loader-leaf {
  width: 72px;
  height: 72px;
}

.loader-leaf path {
  fill: none;
  stroke: var(--leaf);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 140;
  stroke-dashoffset: 140;
  animation: draw 1.2s var(--ease) forwards;
}

.loader-leaf path+path {
  animation-delay: .4s;
}

.loader-word {
  font: 800 1.1rem var(--display);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp .8s .5s var(--ease) forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Chrome ---------- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  z-index: 120;
  background: var(--grad);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 520px;
  height: 520px;
  z-index: 0;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(52, 211, 153, .09), transparent 65%);
  transition: opacity .4s;
  opacity: 0;
}

@media (pointer: fine) {
  .cursor-glow.on {
    opacity: 1;
  }
}

.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 150;
  display: grid;
  gap: 10px;
  max-width: min(380px, calc(100vw - 40px));
}

.toast {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(13, 22, 19, .92);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  font-size: .92rem;
  animation: toastIn .5s var(--spring);
}

.toast i {
  color: var(--leaf);
  margin-top: 3px;
}

.toast.warn i {
  color: var(--sun);
}

.toast.out {
  animation: toastOut .35s var(--ease) forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(.96);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateX(30px);
  }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 100;
  width: min(1200px, calc(100% - 28px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 16px;
  border-radius: 999px;
  background: rgba(8, 14, 12, .45);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line);
  transition: background .4s, border-color .4s, transform .5s var(--ease);
}

.nav.scrolled {
  background: rgba(8, 14, 12, .82);
  border-color: var(--line-2);
}

.nav.hide {
  transform: translate(-50%, -140%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  flex: none;
  display: grid;
  place-items: center;
  color: #04140e;
  background: linear-gradient(135deg, var(--leaf), var(--sun));
  box-shadow: 0 8px 24px -6px rgba(52, 211, 153, .55);
}

.brand-text b {
  display: block;
  font: 800 1rem/1 var(--display);
  letter-spacing: -.01em;
}

.brand-text small {
  font-size: .7rem;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
  transition: color .25s, background .25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--surface-2);
}

.mode-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 5px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  cursor: pointer;
  font-size: .82rem;
  font-weight: 700;
}

.mode-track {
  position: relative;
  width: 52px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4a4038, #5c5249);
  transition: background .5s;
}

.mode-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .7rem;
  background: #cfc6bc;
  color: #3a322b;
  transition: transform .5s var(--spring), background .5s, color .5s;
}

body.shifted .mode-track {
  background: linear-gradient(90deg, var(--leaf-2), var(--sun));
}

body.shifted .mode-thumb {
  transform: translateX(24px);
  background: #fff7df;
  color: #b07b00;
}

.mode-label {
  min-width: 3.4em;
  text-align: left;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  cursor: pointer;
  place-content: center;
  gap: 5px;
}

.menu-btn span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s;
}

.menu-btn[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: .96rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background .3s, color .3s, border-color .3s, box-shadow .3s, transform .3s var(--ease);
}

.btn-primary {
  background: var(--leaf);
  color: #03150e;
  box-shadow: 0 12px 34px -10px rgba(52, 211, 153, .7);
}

.btn-primary:hover {
  background: #6ee7b7;
  box-shadow: 0 18px 44px -10px rgba(52, 211, 153, .85);
}

.btn-ghost {
  background: rgba(255, 255, 255, .06);
  border-color: var(--line-2);
  color: var(--text);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .12);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 10px 16px;
  font-size: .86rem;
}

.btn i {
  transition: transform .3s var(--ease);
}

.btn:hover i.fa-arrow-right {
  transform: translateX(4px);
}

.btn.done {
  background: #a7f3d0;
}

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--leaf);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 72px;
  overflow: hidden;
  background: #3b342d;
}

#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(6, 10, 9, .65) 60%, var(--bg));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: end;
}

.hero-copy {
  max-width: 640px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 30px;
  background: rgba(6, 10, 9, .52);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #c9d8d1;
}

.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--leaf);
  animation: ping 1.8s var(--ease) infinite;
}

@keyframes ping {
  from {
    transform: scale(.6);
    opacity: 1;
  }

  to {
    transform: scale(2.2);
    opacity: 0;
  }
}

.hero-title {
  margin: 0;
  font: 800 clamp(2.8rem, 7vw, 5.6rem)/.98 var(--display);
  letter-spacing: -.045em;
}

.line {
  display: block;
  overflow: hidden;
  padding-bottom: .08em;
}

.line>span {
  display: block;
  transform: translateY(110%);
}

body.ready .line>span {
  animation: rise 1s var(--ease) forwards;
}

body.ready .line:nth-child(2)>span {
  animation-delay: .12s;
}

@keyframes rise {
  to {
    transform: none;
  }
}

#heroWord {
  display: inline-block;
  transition: opacity .35s, transform .35s var(--ease);
}

#heroWord.swap {
  opacity: 0;
  transform: translateY(20%);
}

.hero-sub {
  margin: 20px 0 24px;
  max-width: 50ch;
  color: #cbd8d2;
  font-size: 1.06rem;
}

.hero-sub strong {
  color: #fff;
}

.shift-control {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
}

.shift-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 700;
}

.shift-pct {
  font-family: var(--mono);
  font-size: .86rem;
  color: var(--sun);
}

.shift-ends {
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--muted);
}

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

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

.hero-hud {
  padding: 18px;
  border-radius: 22px;
  background: rgba(6, 10, 9, .5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .1);
  display: grid;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
}

body.ready .hero-hud {
  animation: fadeUp 1s .5s var(--ease) forwards;
}

.hud-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
}

.hud-label {
  font-size: .78rem;
  color: var(--muted);
}

.hud-label i {
  width: 16px;
  color: var(--sun);
}

.hud-val {
  grid-row: 2;
  font: 800 1.5rem/1.1 var(--display);
  font-variant-numeric: tabular-nums;
}

.hud-tag {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  background: rgba(242, 103, 77, .16);
  color: #ffb3a3;
  transition: background .4s, color .4s;
}

.hud-tag.good {
  background: rgba(52, 211, 153, .16);
  color: #a7f3d0;
}

.hud-tag.mid {
  background: rgba(245, 185, 66, .16);
  color: #ffe1a1;
}

.hud-note {
  margin: 2px 0 0;
  font-size: .72rem;
  color: var(--faint);
  text-align: center;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 2;
  transform: translateX(-50%);
  width: 24px;
  height: 38px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, .35);
}

.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: #fff;
  animation: cue 1.8s ease-in-out infinite;
}

@keyframes cue {
  0% {
    opacity: 0;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* range inputs */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  margin: 6px 0 2px;
  background: transparent;
  cursor: pointer;
  --p: 50%;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--leaf) 0 var(--p), rgba(255, 255, 255, .12) var(--p) 100%);
}

input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .12);
}

input[type="range"]::-moz-range-progress {
  height: 6px;
  border-radius: 6px;
  background: var(--leaf);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--leaf);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, .4);
  transition: box-shadow .25s, transform .25s var(--spring);
}

input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--leaf);
}

input[type="range"]:hover::-webkit-slider-thumb {
  box-shadow: 0 0 0 8px rgba(52, 211, 153, .16);
}

input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.15);
}

#shift {
  --p: 0%;
}

#shift::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, var(--smog), var(--sun) var(--p), rgba(255, 255, 255, .12) var(--p));
}

#shift::-webkit-slider-thumb {
  border-color: var(--sun);
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 22px 0;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  align-items: center;
  font: 700 clamp(1.1rem, 2vw, 1.5rem) var(--display);
  letter-spacing: -.01em;
  color: var(--muted);
  animation: marquee 38s linear infinite;
}

.marquee-track i {
  font-style: normal;
  color: var(--leaf);
  font-size: .8em;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Sections ---------- */
main {
  position: relative;
  z-index: 1;
}

.section {
  position: relative;
  padding: clamp(56px, 7vw, 96px) 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 48px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--leaf);
}

.kicker .num {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(52, 211, 153, .12);
}

h2 {
  margin: 0 0 14px;
  font: 800 clamp(2.1rem, 4.6vw, 3.6rem)/1.04 var(--display);
  letter-spacing: -.035em;
}

h3 {
  font-family: var(--display);
  letter-spacing: -.02em;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 62ch;
}

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

/* reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* cards with spotlight */
.card {
  position: relative;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  isolation: isolate;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(52, 211, 153, .09), transparent 45%);
  opacity: 0;
  transition: opacity .4s;
}

.card:hover::before {
  opacity: 1;
}

/* ---------- Problem ---------- */
.problem {
  background: radial-gradient(900px 500px at 85% 0%, rgba(242, 103, 77, .07), transparent 60%);
}

.statement {
  max-width: 22ch;
  font-size: clamp(2.2rem, 5.2vw, 4.2rem);
  margin-bottom: 56px;
}

.statement .dim {
  color: var(--faint);
}

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

.stat {
  padding: 28px;
}

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  background: var(--surface-2);
  font-size: 1.1rem;
}

.stat-num {
  display: block;
  font: 800 clamp(2.4rem, 4.4vw, 3.4rem)/1 var(--display);
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}

.stat-num small {
  font-size: .45em;
  color: var(--muted);
  margin: 0 .15em;
  letter-spacing: 0;
}

.stat p {
  margin: 14px 0 0;
  color: var(--muted);
}

.sun {
  color: var(--sun);
}

.leaf {
  color: var(--leaf);
}

.water {
  color: var(--water);
}

.danger {
  color: var(--danger);
}

.smog {
  color: #c8bdb1;
}

/* ---------- Platform ---------- */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  perspective: 1200px;
}

.module {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 28px 26px;
  min-height: 330px;
  transform-style: preserve-3d;
  transition: transform .5s var(--ease), border-color .4s, opacity .9s var(--ease);
}

.module:hover {
  border-color: rgba(52, 211, 153, .35);
}

.module.featured {
  background: linear-gradient(160deg, rgba(56, 189, 248, .08), rgba(52, 211, 153, .06) 60%, transparent), var(--surface);
  border-color: rgba(56, 189, 248, .28);
}

.module-no {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--faint);
}

.module-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  margin: 8px 0 6px;
  transition: transform .5s var(--spring);
}

.module:hover .module-icon {
  transform: translateZ(30px) rotate(-6deg) scale(1.08);
}

.module h3 {
  margin: 0;
  font-size: 1.6rem;
}

.module p {
  margin: 0;
  color: var(--muted);
}

.module-link {
  margin-top: auto;
  padding-top: 14px;
  font-weight: 700;
  color: var(--leaf);
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.module-link i {
  transition: transform .3s var(--ease);
}

.module:hover .module-link i {
  transform: translateX(5px);
}

.badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: rgba(245, 185, 66, .14);
  color: var(--sun);
  border: 1px solid rgba(245, 185, 66, .3);
}

.roadmap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}

.roadmap-label {
  font-family: var(--mono);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--faint);
  margin-right: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px dashed var(--line-2);
  color: var(--muted);
  font-size: .86rem;
}

/* ---------- Fields ---------- */
.field {
  display: grid;
  gap: 6px;
}

.field+.field {
  margin-top: 22px;
}

.field-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.field label,
.field-label {
  font-weight: 700;
  font-size: .95rem;
}

.field-label {
  margin: 0 0 12px;
}

.field output {
  font: 800 1.15rem var(--display);
  color: var(--leaf);
  font-variant-numeric: tabular-nums;
}

.field small {
  color: var(--faint);
  font-size: .84rem;
}

.select {
  position: relative;
}

.select select,
textarea,
.assume-grid input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .35);
  border: 1px solid var(--line-2);
  color: var(--text);
  font: inherit;
  transition: border-color .25s, box-shadow .25s;
}

.select select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  cursor: pointer;
}

.select select option {
  background: #0d1613;
}

.select i {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: .8rem;
  pointer-events: none;
}

.select select:focus,
textarea:focus,
.assume-grid input:focus {
  outline: none;
  border-color: var(--leaf);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, .14);
}

textarea {
  resize: vertical;
  font-size: .92rem;
}

textarea::placeholder {
  color: var(--faint);
}

/* ---------- Power Shift ---------- */
.power {
  background: radial-gradient(800px 500px at 0% 20%, rgba(245, 185, 66, .06), transparent 60%);
}

.calc {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr);
  gap: 20px;
  align-items: start;
}

.calc-inputs,
.calc-out {
  padding: 28px;
}

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

.metric {
  padding: 18px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, .28);
  border: 1px solid var(--line);
}

.metric b {
  display: block;
  font: 800 clamp(1.3rem, 2.2vw, 1.9rem)/1.1 var(--display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

.metric:first-child b {
  color: var(--danger);
}

.metric span {
  display: block;
  margin-top: 6px;
  font-size: .84rem;
  color: var(--muted);
}

.verdict {
  margin: 24px 0 12px;
  min-height: 2.6em;
  font: 700 clamp(1.15rem, 2vw, 1.55rem)/1.3 var(--display);
  letter-spacing: -.02em;
}

.verdict em {
  font-style: normal;
  color: var(--leaf);
}

.chart {
  padding: 12px 14px 10px;
  border-radius: 18px;
  background: rgba(0, 0, 0, .28);
  border: 1px solid var(--line);
}

.chart svg {
  width: 100%;
  height: auto;
}

.ln {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
}

.ln.gen {
  stroke: var(--danger);
}

.ln.sol {
  stroke: var(--sun);
  stroke-dasharray: 2 0;
}

.ax {
  stroke: rgba(255, 255, 255, .07);
}

.ct {
  font: 600 12px var(--body);
  fill: var(--faint);
}

.legend {
  display: flex;
  gap: 18px;
  padding: 4px 6px 0;
  font-size: .82rem;
  color: var(--muted);
}

.sw {
  display: inline-block;
  width: 18px;
  height: 4px;
  border-radius: 4px;
  margin-right: 8px;
  vertical-align: middle;
}

.sw.gen {
  background: var(--danger);
}

.sw.sol {
  background: var(--sun);
}

.break-dot {
  animation: popIn .6s var(--spring) both;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes popIn {
  from {
    transform: scale(0);
  }
}

.trees {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}

.trees s {
  width: 16px;
  height: 16px;
  display: block;
  border-radius: 50% 0 50% 0;
  background: rgba(255, 255, 255, .08);
  transform: rotate(-45deg) scale(.6);
  transition: transform .5s var(--spring), background .4s;
}

.trees s.on {
  background: var(--leaf);
  transform: rotate(-45deg) scale(1);
  box-shadow: 0 0 12px rgba(52, 211, 153, .45);
}

.tree-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .94rem;
}

.impact {
  margin-top: 20px;
  padding: 28px;
}

.impact-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
}

.impact-head h3 {
  margin: 0 0 4px;
  font-size: 1.35rem;
}

.impact-head h3 i {
  color: var(--danger);
  margin-right: 6px;
}

.impact-head p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

.pill {
  flex: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 800;
  background: rgba(242, 103, 77, .15);
  color: #ffb3a3;
  transition: background .4s, color .4s;
}

.pill.good {
  background: rgba(52, 211, 153, .15);
  color: #a7f3d0;
}

.pill.mid {
  background: rgba(245, 185, 66, .15);
  color: #ffe1a1;
}

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

.meter {
  padding: 18px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, .25);
  border: 1px solid var(--line);
}

.meter-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: .9rem;
  font-weight: 700;
}

.meter-head b {
  font-family: var(--mono);
}

.meter-bar {
  height: 8px;
  margin: 12px 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
}

.meter-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--danger);
  transition: width 1s var(--ease), background .6s;
}

.meter p {
  margin: 0;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.55;
}

.alerts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.alert {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(245, 185, 66, .06);
  border: 1px solid rgba(245, 185, 66, .18);
  color: #e8dcc4;
  font-size: .93rem;
  animation: fadeUp .6s var(--ease) both;
}

.alert i {
  color: var(--sun);
  margin-top: 4px;
}

.alert b {
  color: #fff;
}

.alert a {
  color: var(--sun);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- DrainGuard ---------- */
.drain {
  background: radial-gradient(900px 600px at 100% 30%, rgba(56, 189, 248, .07), transparent 60%);
}

.sim-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 700;
  color: var(--sun);
  background: rgba(245, 185, 66, .1);
  border: 1px solid rgba(245, 185, 66, .25);
}

.pipeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 0;
  margin: 0 0 24px;
  counter-reset: s;
}

.pipeline li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: .92rem;
}

.pipeline li span {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex: none;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: .82rem;
  background: rgba(56, 189, 248, .14);
  color: var(--water);
}

.pipeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 50%;
  width: 12px;
  height: 2px;
  background: linear-gradient(90deg, var(--water), transparent);
}

.drain-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.3fr);
  gap: 20px;
  align-items: start;
}

.report {
  padding: 26px;
}

.report h3 {
  margin: 0 0 22px;
  font-size: 1.3rem;
}

.report h3 i {
  color: var(--water);
  margin-right: 6px;
}

.drop {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 150px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px dashed var(--line-2);
  background: rgba(0, 0, 0, .25);
  cursor: pointer;
  text-align: center;
  transition: border-color .3s, background .3s;
}

.drop:hover,
.drop.drag {
  border-color: var(--water);
  background: rgba(56, 189, 248, .06);
}

.drop-empty {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 18px;
}

.drop-empty i {
  font-size: 1.6rem;
  color: var(--water);
  margin-bottom: 4px;
}

.drop-empty small {
  color: var(--faint);
}

.drop-preview {
  position: absolute;
  inset: 0;
}

.drop-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.drop.scanning .scanline {
  opacity: 1;
  background:
    linear-gradient(180deg, transparent 0 46%, rgba(56, 189, 248, .9) 50%, transparent 54% 100%),
    repeating-linear-gradient(0deg, rgba(56, 189, 248, .08) 0 1px, transparent 1px 12px),
    rgba(4, 20, 30, .35);
  background-size: 100% 200%, auto, auto;
  animation: scan 1.1s linear infinite;
}

@keyframes scan {
  from {
    background-position: 0 100%, 0 0, 0 0;
  }

  to {
    background-position: 0 -100%, 0 0, 0 0;
  }
}

.ai-out {
  margin-top: 20px;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(56, 189, 248, .08), rgba(52, 211, 153, .05));
  border: 1px solid rgba(56, 189, 248, .2);
  transition: box-shadow .5s;
}

.ai-out.flash {
  box-shadow: 0 0 0 3px rgba(56, 189, 248, .35);
}

.ai-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--water);
}

.ai-head .mono {
  color: var(--muted);
  font-weight: 500;
}

.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}

.ai-grid div {
  padding: 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .3);
}

.ai-grid small {
  display: block;
  font-size: .74rem;
  color: var(--faint);
}

.ai-grid b {
  font-size: .95rem;
}

.ai-out p {
  margin: 0;
  font-size: .9rem;
  color: #cfe1da;
  font-style: italic;
}

.radar-wrap {
  display: grid;
  gap: 20px;
}

.radar {
  padding: 14px;
  overflow: hidden;
}

.radar-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 14px;
  font-weight: 700;
  font-size: .92rem;
}

.radar-bar>span i {
  color: var(--water);
  margin-right: 6px;
}

.rain-btn {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  font-size: .8rem;
  font-weight: 700;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  color: var(--muted);
  transition: all .3s;
}

.rain-btn.on {
  background: rgba(56, 189, 248, .14);
  border-color: rgba(56, 189, 248, .4);
  color: #bae6fd;
}

.radar-stage {
  position: relative;
  aspect-ratio: 500 / 410;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(56, 189, 248, .07), transparent 60%),
    #050c0d;
  border: 1px solid var(--line);
}

.radar-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image: radial-gradient(rgba(56, 189, 248, .25) 1px, transparent 1px);
  background-size: 18px 18px;
}

#mapSvg {
  position: relative;
  width: 100%;
  height: 100%;
}

.sweep {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150%;
  aspect-ratio: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg, rgba(52, 211, 153, .22), transparent 16%);
  border-radius: 50%;
  animation: sweep 6s linear infinite;
  mix-blend-mode: screen;
}

@keyframes sweep {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.rain {
  position: absolute;
  inset: -20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .8s;
  background-image:
    repeating-linear-gradient(105deg, transparent 0 18px, rgba(147, 210, 255, .22) 18px 19px, transparent 19px 40px),
    repeating-linear-gradient(105deg, transparent 0 31px, rgba(147, 210, 255, .14) 31px 32px, transparent 32px 57px);
  animation: rain .6s linear infinite;
}

.rain.on {
  opacity: 1;
}

@keyframes rain {
  to {
    background-position: -12px 40px, -18px 57px;
  }
}

.land {
  fill: rgba(52, 211, 153, .05);
  stroke: rgba(52, 211, 153, .45);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.river {
  fill: none;
  stroke: rgba(56, 189, 248, .35);
  stroke-width: 2;
  stroke-linecap: round;
}

.ring-line {
  fill: none;
  stroke: rgba(56, 189, 248, .1);
}

.pin {
  cursor: pointer;
}

.pin .halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: halo 2s var(--ease) infinite;
}

.pin .core {
  transition: r .3s var(--spring);
}

.pin .lbl {
  font: 700 12px var(--body);
  fill: #dbe7e2;
  paint-order: stroke;
  stroke: #050c0d;
  stroke-width: 4px;
}

.pin .val {
  font: 700 10.5px var(--mono);
  paint-order: stroke;
  stroke: #050c0d;
  stroke-width: 4px;
}

.pin.sel .core {
  r: 9;
}

.pin.sel .lbl {
  fill: #fff;
}

.pin:focus {
  outline: none;
}

.pin:focus-visible .core {
  stroke: var(--sun);
  stroke-width: 3;
}

@keyframes halo {
  from {
    transform: scale(.6);
    opacity: .9;
  }

  to {
    transform: scale(2.6);
    opacity: 0;
  }
}

.radar-foot {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 14px 8px 4px;
}

.radar-foot small {
  display: block;
  font-size: .74rem;
  color: var(--faint);
}

.radar-foot b {
  font-size: .95rem;
}

.queue {
  padding: 22px;
}

.queue-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.queue-head h4 {
  margin: 0;
  font: 700 1rem var(--display);
}

.queue-head h4 i {
  color: var(--sun);
  margin-right: 6px;
}

.queue-stats {
  display: flex;
  gap: 14px;
  font-size: .8rem;
  color: var(--muted);
}

.queue-stats b {
  color: var(--leaf);
  font-family: var(--mono);
}

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

.q-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 70px 110px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .25);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: .9rem;
  animation: fadeUp .45s var(--ease) both;
  transition: border-color .25s, background .25s;
}

.q-row:hover,
.q-row.sel {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, .04);
}

.q-rank {
  font: 700 .85rem var(--mono);
  color: var(--faint);
}

.q-name b {
  display: block;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.q-name small {
  color: var(--faint);
  font-size: .78rem;
}

.q-bar {
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
}

.q-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: width .8s var(--ease);
}

.q-status {
  justify-self: end;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
}

.lv-critical {
  color: #ff9b86;
}

.bg-critical {
  background: rgba(242, 103, 77, .16);
  color: #ffb3a3;
}

.lv-high {
  color: #ffc56b;
}

.bg-high {
  background: rgba(245, 185, 66, .16);
  color: #ffe1a1;
}

.lv-moderate {
  color: #fde68a;
}

.bg-moderate {
  background: rgba(253, 230, 138, .12);
  color: #fef3c7;
}

.lv-low {
  color: #6ee7b7;
}

.bg-low {
  background: rgba(52, 211, 153, .15);
  color: #a7f3d0;
}

.bg-done {
  background: rgba(56, 189, 248, .15);
  color: #bae6fd;
}

/* ---------- Loop & Lean ---------- */
.habits {
  background: radial-gradient(800px 500px at 10% 60%, rgba(52, 211, 153, .07), transparent 60%);
}

.habit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.habit-pick,
.habit-result {
  padding: 28px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(0, 0, 0, .3);
  border: 1px solid var(--line-2);
  color: var(--muted);
  font-weight: 600;
  font-size: .92rem;
  transition: all .3s var(--ease);
}

.chip-btn:hover {
  color: var(--text);
  border-color: rgba(52, 211, 153, .4);
  transform: translateY(-2px);
}

.chip-btn[aria-checked="true"] {
  background: var(--leaf);
  border-color: var(--leaf);
  color: #03150e;
  box-shadow: 0 10px 26px -10px rgba(52, 211, 153, .8);
}

.habit-rec {
  margin: 26px 0 0;
  padding: 18px;
  border-radius: 14px;
  background: rgba(52, 211, 153, .06);
  border-left: 3px solid var(--leaf);
  color: #cfe1da;
}

.habit-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ring-wrap {
  position: relative;
  width: 180px;
  height: 180px;
}

.ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, .07);
  stroke-width: 10;
}

.ring-fg {
  fill: none;
  stroke: url(#ringGrad);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.1s var(--ease);
}

.ring-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
}

.ring-center b {
  font: 800 3rem/1 var(--display);
  letter-spacing: -.04em;
}

.ring-center small {
  color: var(--faint);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.habit-result h3 {
  margin: 16px 0 20px;
  font-size: 1.4rem;
}

.habit-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.habit-metrics div {
  padding: 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .28);
  border: 1px solid var(--line);
  display: grid;
  justify-items: center;
  gap: 2px;
}

.habit-metrics i {
  font-size: 1rem;
  margin-bottom: 4px;
}

.habit-metrics b {
  font: 800 1.45rem var(--display);
  font-variant-numeric: tabular-nums;
}

.habit-metrics small {
  color: var(--faint);
  font-size: .76rem;
}

/* ---------- Act ---------- */
.act-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.checklist {
  padding: 24px;
}

.check-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.check-head strong {
  display: block;
  font: 700 1.1rem var(--display);
}

.check-head small {
  color: var(--faint);
}

.mini-ring {
  position: relative;
  width: 56px;
  height: 56px;
  flex: none;
}

.mini-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.mini-ring .ring-bg,
.mini-ring .ring-fg {
  stroke-width: 5;
}

.mini-ring .ring-fg {
  stroke: var(--leaf);
}

.mini-ring b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 700 .78rem var(--mono);
}

.check-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 6px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .25s;
}

.check-row:last-child {
  border-bottom: 0;
}

.check-row:hover {
  background: rgba(255, 255, 255, .02);
}

.check-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-box {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line-2);
  transition: all .3s var(--spring);
}

.check-box i {
  font-size: .7rem;
  color: #03150e;
  transform: scale(0);
  transition: transform .3s var(--spring);
}

.check-row input:checked+.check-box {
  background: var(--leaf);
  border-color: var(--leaf);
  transform: scale(1.08);
}

.check-row input:checked+.check-box i {
  transform: scale(1);
}

.check-row input:focus-visible+.check-box {
  outline: 2px solid var(--sun);
  outline-offset: 2px;
}

.check-text {
  color: var(--muted);
  font-size: .95rem;
  transition: color .3s;
}

.check-text b {
  color: var(--text);
}

.check-row input:checked~.check-text {
  color: var(--faint);
}

.check-row input:checked~.check-text b {
  text-decoration: line-through;
  text-decoration-color: var(--leaf);
  color: var(--muted);
}

.safety h3 {
  margin: 0 0 14px;
  font-size: 1.3rem;
}

.safety h3 i {
  color: var(--sun);
  margin-right: 6px;
}

.alert-card {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  background: rgba(242, 103, 77, .05);
  border: 1px solid rgba(242, 103, 77, .16);
  border-left: 3px solid var(--danger);
  color: var(--muted);
  font-size: .92rem;
}

.alert-card b {
  display: block;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.02rem;
  margin-bottom: 2px;
}

.emergency {
  margin: 16px 0 0;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--surface-2);
  font-weight: 600;
}

.emergency i {
  color: var(--danger);
  margin-right: 8px;
}

.emergency b {
  font: 800 1.3rem var(--display);
  color: #fff;
  margin-left: 6px;
}

.confetti {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 14px;
  z-index: 160;
  pointer-events: none;
  border-radius: 2px;
}

/* ---------- Story ---------- */
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.story-card {
  padding: 26px;
}

.story-card>i {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(52, 211, 153, .1);
  color: var(--leaf);
  font-size: 1.05rem;
}

.story-card h3 {
  margin: 18px 0 8px;
  font-size: 1.25rem;
}

.story-card p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}

.assumptions {
  margin-top: 20px;
  padding: 0;
  overflow: hidden;
}

.assumptions summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 26px;
  cursor: pointer;
  list-style: none;
  font: 700 1.1rem var(--display);
}

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

.assumptions summary span i {
  color: var(--leaf);
  margin-right: 10px;
}

.assumptions summary>i {
  transition: transform .4s var(--ease);
  color: var(--muted);
}

.assumptions[open] summary>i {
  transform: rotate(45deg);
}

.assume-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 0 26px;
}

.assume-grid label {
  display: grid;
  gap: 8px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--muted);
}

.limits {
  margin: 20px 0 0;
  padding: 0 26px 26px 46px;
  color: var(--muted);
  font-size: .9rem;
}

.limits li {
  margin: 6px 0;
}

/* ---------- Finale ---------- */
.finale {
  position: relative;
  padding: clamp(110px, 16vw, 200px) 0;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(600px 400px at 50% 110%, rgba(245, 185, 66, .18), transparent 70%),
    radial-gradient(800px 500px at 50% 120%, rgba(52, 211, 153, .14), transparent 70%);
}

.finale::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -320px;
  width: 640px;
  height: 640px;
  margin-left: -320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 217, 119, .35), rgba(245, 185, 66, .08) 45%, transparent 70%);
  animation: breathe 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes breathe {
  50% {
    transform: scale(1.08);
    opacity: .8;
  }
}

.finale-title {
  font-size: clamp(3.4rem, 11vw, 9rem);
  line-height: .95;
  letter-spacing: -.055em;
  margin: 0;
}

.finale p {
  color: var(--muted);
  font-size: 1.15rem;
  margin: 18px 0 10px;
}

.finale .wrap {
  position: relative;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--faint);
  font-size: .88rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer p {
  margin: 0;
}

.brand.small {
  font: 700 .95rem var(--display);
  color: var(--text);
}

.brand.small .brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  font-size: .8rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-hud {
    grid-template-columns: repeat(3, 1fr);
  }

  .hud-note {
    grid-column: 1 / -1;
  }

  .calc,
  .drain-grid,
  .habit-grid,
  .act-grid {
    grid-template-columns: 1fr;
  }

  .module-grid,
  .story-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 10px;
    background: rgba(8, 14, 12, .96);
    border: 1px solid var(--line-2);
    border-radius: 22px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all .3s var(--ease);
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-links a {
    padding: 12px 16px;
  }

  .menu-btn {
    display: grid;
  }

  .stat-grid,
  .pipeline {
    grid-template-columns: 1fr 1fr;
  }

  .pipeline li::after {
    display: none;
  }
}

@media (max-width: 620px) {

  .wrap,
  .hero-inner {
    padding: 0 16px;
  }

  .nav {
    top: 10px;
    width: calc(100% - 20px);
  }

  .brand-text small,
  .mode-label {
    display: none;
  }

  .mode-switch {
    padding: 5px;
  }

  .hero {
    padding-top: 100px;
  }

  .hero-hud {
    grid-template-columns: 1fr;
  }

  .hud-row {
    padding: 10px 12px;
  }

  .module-grid,
  .story-grid,
  .stat-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .module {
    min-height: 0;
  }

  .q-row {
    grid-template-columns: 30px minmax(0, 1fr) auto;
  }

  .q-bar {
    display: none;
  }

  .radar-foot {
    grid-template-columns: 1fr 1fr;
  }

  .radar-foot .btn {
    grid-column: 1 / -1;
  }

  .impact-head {
    flex-direction: column;
  }

  .calc-inputs,
  .calc-out,
  .impact,
  .report,
  .habit-pick,
  .habit-result,
  .checklist {
    padding: 20px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .line>span {
    transform: none;
  }

  .hero-hud {
    opacity: 1;
    transform: none;
  }
}