:root {
  --ink: #07110f;
  --ink-soft: #10201c;
  --paper: #f5f7f2;
  --card: #ffffff;
  --lime: #d9ff43;
  --lime-deep: #b9e900;
  --mint: #64f2c8;
  --text: #17211e;
  --muted: #5a6863;
  --line: #dce3dc;
  --shadow: 0 24px 80px rgba(7, 17, 15, 0.12);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

a { color: inherit; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
}

.skip-link:focus { transform: translateY(0); }

.shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(7, 17, 15, 0.93);
  color: #fff;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-row {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--lime);
  font-size: .62rem;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--lime);
  color: var(--ink);
  font-size: 18px;
  box-shadow: 0 0 0 5px rgba(217, 255, 67, 0.12);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
}

.nav a { text-decoration: none; color: #dce7e2; }
.nav a:hover { color: var(--lime); }

.nav-cta {
  padding: 9px 14px;
  border: 1px solid rgba(217, 255, 67, 0.42);
  border-radius: 999px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 86% 15%, rgba(100, 242, 200, 0.20), transparent 28rem),
    radial-gradient(circle at 15% 90%, rgba(217, 255, 67, 0.13), transparent 30rem),
    var(--ink);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
  background-image:
    linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: center;
  gap: clamp(40px, 7vw, 88px);
  min-height: 680px;
  padding: 82px 0 96px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
}

h1, h2, h3 { line-height: 1.08; letter-spacing: -0.04em; }

h1 {
  max-width: 750px;
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  font-weight: 900;
}

.headline-accent { color: var(--lime); }

.hero-copy {
  max-width: 650px;
  margin: 28px 0 0;
  color: #d5dfdb;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.hero-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 28px 0 0;
  color: #aebdb7;
  font-size: 0.9rem;
}

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

.code-card {
  position: relative;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 28px;
  background: rgba(255,255,255,.075);
  box-shadow: 0 36px 100px rgba(0,0,0,.32);
  backdrop-filter: blur(12px);
}

.code-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px dashed rgba(217, 255, 67, .22);
  border-radius: 20px;
}

.badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(217, 255, 67, .14);
  color: var(--lime);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.code-label { color: #bdcbc5; font-size: .88rem; }

.code-value {
  display: block;
  margin: 3px 0 20px;
  color: #fff;
  font-size: clamp(1.9rem, 7.4vw, 2.7rem);
  font-weight: 950;
  letter-spacing: .03em;
  line-height: 1;
}

.button-row { display: grid; gap: 12px; }

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

.button:hover { transform: translateY(-2px); }

.button-primary {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 12px 34px rgba(217, 255, 67, .2);
}

.button-primary:hover { background: #e5ff75; }

.button-secondary {
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
}

.code-fact {
  margin: 18px 0 0;
  color: #aebdb7;
  font-size: .86rem;
  text-align: center;
}

.trust-strip {
  position: relative;
  z-index: 2;
  margin-top: -36px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.trust-item {
  padding: 26px;
  background: var(--card);
}

.trust-kicker {
  display: block;
  margin-bottom: 5px;
  color: #2b7a62;
  font-size: .75rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.trust-item strong { font-size: 1.02rem; }

.section { padding: clamp(76px, 10vw, 120px) 0; }
.section-white { background: #fff; }

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

.section-head h2,
.split-copy h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  font-weight: 900;
}

.section-head p,
.split-copy > p { margin: 0; color: var(--muted); font-size: 1.08rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}

.step {
  position: relative;
  min-height: 255px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 16px 48px rgba(7,17,15,.06);
  counter-increment: step;
}

.step::before {
  content: "0" counter(step);
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 42px;
  border-radius: 13px;
  background: var(--ink);
  color: var(--lime);
  font-weight: 900;
}

.step h3 { margin: 0 0 10px; font-size: 1.3rem; }
.step p { margin: 0; color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .8fr);
  align-items: start;
  gap: clamp(50px, 8vw, 110px);
}

.copy-list {
  display: grid;
  gap: 18px;
  margin: 34px 0 0;
}

.copy-point {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
}

.copy-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9f8ef;
  color: #176e50;
  font-weight: 900;
}

.copy-point strong { display: block; margin-bottom: 2px; }
.copy-point span:last-child { color: var(--muted); }

.truth-card {
  position: sticky;
  top: 96px;
  overflow: hidden;
  padding: 34px;
  border-radius: 26px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.truth-card::after {
  content: "STROMCHECK";
  position: absolute;
  right: -24px;
  bottom: -15px;
  color: rgba(217,255,67,.08);
  font-size: 4.8rem;
  font-weight: 950;
  letter-spacing: .06em;
  transform: rotate(-90deg) translateX(38%);
  transform-origin: bottom right;
}

.fit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.fit-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.fit-item strong {
  display: block;
  color: var(--ink);
  font-size: .96rem;
}

.fit-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .86rem;
}

.not-fit {
  margin-top: 16px;
  padding: 15px 17px;
  border-left: 4px solid #87928e;
  border-radius: 0 12px 12px 0;
  background: #eef1ef;
  color: #46534f;
  font-size: .9rem;
}

.truth-card h3 { margin: 0 0 20px; color: var(--lime); font-size: 1.5rem; }
.truth-card p { position: relative; z-index: 1; color: #d3dfda; }
.truth-card strong { color: #fff; }

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.fact {
  padding: 24px;
  border-left: 4px solid var(--lime-deep);
  border-radius: 0 16px 16px 0;
  background: #f1f6ee;
}

.fact strong { display: block; margin-bottom: 5px; color: var(--ink); }
.fact span { color: var(--muted); font-size: .94rem; }

.source-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: .85rem;
}

.source-note a { text-underline-offset: 3px; }

.calculator-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.calculator-consent {
  display: grid;
  justify-items: center;
  padding: clamp(34px, 7vw, 70px) 24px;
  text-align: center;
}

.calculator-consent h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.calculator-consent p {
  max-width: 700px;
  margin: 0 0 22px;
  color: var(--muted);
}

.calculator-consent .button { min-width: min(100%, 320px); }

.calculator-frame {
  display: block;
  width: 100%;
  height: 650px;
  border: 0;
  background: #fff;
}

.calculator-frame[hidden] { display: none !important; }

.calculator-fallback {
  padding: 15px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .86rem;
  text-align: center;
}

.calculator-fallback a { font-weight: 800; text-underline-offset: 3px; }

.faq-list { display: grid; gap: 12px; }

details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

summary {
  position: relative;
  padding: 22px 62px 22px 24px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-weight: 850;
}

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

summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: #2b7a62;
  font-size: 1.5rem;
}

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

.faq-answer { padding: 0 24px 23px; color: var(--muted); }
.faq-answer p { margin: 0; }

.final-cta { padding: 70px 0; background: var(--lime); color: var(--ink); }

.cta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
}

.cta-row h2 { margin: 0 0 10px; font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 950; }
.cta-row p { margin: 0; max-width: 700px; }

.button-dark { background: var(--ink); color: #fff; min-width: 250px; }
.button-dark:hover { background: #152d27; }

.site-footer { padding: 38px 0; background: var(--ink); color: #aebdb7; }

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
}

.footer-copy { max-width: 720px; font-size: .84rem; }
.footer-copy p { margin: 7px 0 0; }

.footer-links { display: flex; gap: 18px; white-space: nowrap; font-size: .88rem; }
.footer-links a { color: #e0e9e5; text-underline-offset: 4px; }

.legal-page { min-height: 100vh; background: #fff; }
.legal-main { max-width: 820px; padding: 70px 0 100px; }
.legal-main h1 { color: var(--ink); font-size: clamp(2.5rem, 6vw, 4.6rem); }
.legal-main h2 { margin-top: 42px; color: var(--ink); font-size: 1.55rem; }
.legal-main h3 { margin-top: 28px; color: var(--ink); font-size: 1.2rem; }
.legal-main p, .legal-main li { color: #44504c; }
.back-link { display: inline-block; margin-bottom: 30px; font-weight: 800; text-underline-offset: 4px; }

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  transform: translateY(150%);
  opacity: 0;
  padding: 13px 17px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
  font-weight: 800;
  transition: transform .2s ease, opacity .2s ease;
}

.toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 860px) {
  .nav a:not(.nav-cta) { display: none; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; padding: 70px 0 100px; }
  .code-card { max-width: 620px; }
  .trust-grid, .steps { grid-template-columns: 1fr; }
  .trust-strip { margin-top: -28px; }
  .step { min-height: auto; }
  .step::before { margin-bottom: 26px; }
  .truth-card { position: static; }
  .cta-row { grid-template-columns: 1fr; }
  .button-dark { width: 100%; }
  .footer-row { flex-direction: column; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 28px, 1120px); }
  .header-row { min-height: 62px; }
  .nav-cta { display: none; }
  .brand-copy { font-size: .94rem; }
  h1 { font-size: clamp(2.45rem, 13vw, 3.8rem); }
  .hero-grid { padding-top: 56px; }
  .facts { grid-template-columns: 1fr; }
  .fit-list { grid-template-columns: 1fr; }
  .calculator-frame { height: 720px; }
  .section { padding: 72px 0; }
  .footer-links { flex-wrap: wrap; }
}

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