/* ============ Gridea — Landing page ============ */


:root {
  /* Brand */
  --brand: oklch(0.7 0.14 200);          /* electric teal, slightly brighter on dark */
  --brand-2: oklch(0.62 0.13 200);
  --brand-soft: oklch(0.28 0.06 200);
  --amber: oklch(0.78 0.16 70);
  --amber-soft: oklch(0.32 0.08 70);
  --red: oklch(0.7 0.18 25);
  --red-soft: oklch(0.32 0.1 25);
  --green: oklch(0.75 0.16 155);

  /* Dark surfaces (hero / map / footer) */
  --d-bg: oklch(0.14 0.022 240);
  --d-bg-2: oklch(0.18 0.024 240);
  --d-surface: oklch(0.21 0.024 240);
  --d-surface-2: oklch(0.25 0.022 240);
  --d-border: oklch(0.3 0.018 240);
  --d-border-soft: oklch(0.25 0.018 240);
  --d-text: oklch(0.98 0.005 240);
  --d-muted: oklch(0.72 0.015 240);
  --d-subtle: oklch(0.55 0.018 240);

  /* Light surfaces */
  --l-bg: oklch(0.985 0.005 240);
  --l-surface: #ffffff;
  --l-surface-2: oklch(0.965 0.006 240);
  --l-border: oklch(0.91 0.006 240);
  --l-border-strong: oklch(0.85 0.008 240);
  --l-text: oklch(0.18 0.018 240);
  --l-muted: oklch(0.5 0.014 240);
  --l-subtle: oklch(0.62 0.014 240);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--l-bg);
  color: var(--l-text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }

.mono { font-family: var(--mono); font-feature-settings: 'tnum'; }
.num { font-variant-numeric: tabular-nums; }

/* ============ Layout ============ */
.section { padding: 96px 32px; }
.section-tight { padding: 64px 32px; }
.container { max-width: 1240px; margin: 0 auto; }
.container-narrow { max-width: 920px; margin: 0 auto; }

.dark { background: var(--d-bg); color: var(--d-text); }
.dark .muted { color: var(--d-muted); }
.dark .subtle { color: var(--d-subtle); }
.light { background: var(--l-bg); color: var(--l-text); }
.light .muted { color: var(--l-muted); }
.light .subtle { color: var(--l-subtle); }

/* Any element with a dark surface as background needs light text */
.hero, .hero-screen, .heromock, .heromock-aside, .heromock-map,
.forecast-widget, .cta-block, .footer, .nav { color: var(--d-text); }
.hero .feed-row, .hero .map-callout, .hero .heromock-side-title { color: var(--d-text); }
.feed-content { text-align: left; }

.muted { color: var(--l-muted); }
.subtle { color: var(--l-subtle); }

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--d-bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--d-border-soft);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 32px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; letter-spacing: -0.015em;
  color: var(--d-text);
}
.brand-mark {
  width: 26px; height: 26px;
  display: grid; place-items: center;
}
.nav-links {
  display: flex; gap: 28px;
  font-size: 14px; font-weight: 500;
  color: var(--d-muted);
}
.nav-links a:hover { color: var(--d-text); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* ============ Typography ============ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  padding: 5px 10px;
  border-radius: 99px;
  background: color-mix(in oklab, var(--brand) 14%, transparent);
  border: 1px solid color-mix(in oklab, var(--brand) 30%, transparent);
}
.dark .eyebrow { background: color-mix(in oklab, var(--brand) 18%, transparent); }

h1.hero-h {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0;
  text-wrap: balance;
  color: var(--d-text);
}
h1.hero-h .accent { color: var(--brand); }
h1.hero-h em {
  font-style: normal;
  background: linear-gradient(180deg, var(--brand) 0%, oklch(0.62 0.13 200) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2.section-h {
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.05;
  margin: 0 0 16px;
  text-wrap: balance;
}
h3.feature-h {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.15;
  margin: 0 0 12px;
}
.lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--l-muted);
  max-width: 640px;
  text-wrap: pretty;
}
.dark .lede { color: var(--d-muted); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
.btn:active { transform: translateY(0.5px); }
.btn-primary {
  background: var(--brand);
  color: var(--d-bg);
}
.btn-primary:hover { background: oklch(0.76 0.13 200); }
.btn-ghost-dark {
  color: var(--d-text);
  border-color: var(--d-border);
  background: transparent;
}
.btn-ghost-dark:hover { background: var(--d-surface); border-color: var(--d-border); }
.btn-ghost {
  color: var(--l-text);
  border-color: var(--l-border-strong);
  background: var(--l-surface);
}
.btn-ghost:hover { background: var(--l-surface-2); }
.btn-link {
  font-size: 14px;
  color: var(--brand);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-link:hover { text-decoration: underline; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 96px 32px 64px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, oklch(0.22 0.06 200 / 0.5), transparent 70%),
              var(--d-bg);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--d-border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--d-border-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, black 30%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
}
.hero-meta {
  display: inline-flex; gap: 8px; align-items: center;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--d-muted);
  max-width: 620px;
  margin: 24px auto 0;
  text-wrap: balance;
}
.hero-cta { display: inline-flex; gap: 12px; margin-top: 32px; }
.hero-trust {
  margin-top: 24px;
  font-size: 13px;
  color: var(--d-subtle);
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-trust-item { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust-item::before {
  content: ''; width: 4px; height: 4px; border-radius: 99px; background: var(--brand);
}

.hero-screen {
  position: relative;
  margin: 64px auto 0;
  max-width: 1180px;
  border-radius: 14px;
  background: var(--d-surface);
  border: 1px solid var(--d-border);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.6), 0 30px 60px -20px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.hero-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 75%, var(--d-bg) 100%);
}

/* ============ Browser window mock ============ */
.win-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--d-border-soft);
  background: var(--d-bg-2);
}
.win-dot {
  width: 11px; height: 11px; border-radius: 99px;
  background: var(--d-border);
}
.win-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--d-bg);
  border: 1px solid var(--d-border-soft);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--d-muted);
  font-family: var(--mono);
  margin: 0 16px 0 4px;
  max-width: 360px;
}
.win-url::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 99px;
  background: var(--green);
}

/* ============ Hero dashboard mockup ============ */
.heromock {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0;
  min-height: 480px;
  background: var(--d-bg-2);
}
.heromock-map {
  position: relative;
  background:
    linear-gradient(180deg, var(--d-bg-2) 0%, var(--d-bg) 100%);
  border-right: 1px solid var(--d-border-soft);
  overflow: hidden;
}
.heromock-aside {
  display: flex;
  flex-direction: column;
}
.heromock-side-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--d-border-soft);
  display: flex; align-items: center; justify-content: space-between;
}
.heromock-side-title { font-size: 13px; font-weight: 600; }

/* Map */
.estonia-map {
  position: absolute;
  inset: 0;
}
.map-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--d-border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--d-border-soft) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.4;
}
.map-pin {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 99px;
  background: var(--brand);
  border: 2px solid var(--d-bg-2);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--brand) 50%, transparent);
  animation: pin-pulse 3s infinite;
}
.map-pin.amber {
  background: var(--amber);
  width: 18px; height: 18px;
  z-index: 2;
  animation: pin-pulse-amber 1.6s infinite;
}
.map-pin.red {
  background: var(--red);
  width: 20px; height: 20px;
  z-index: 3;
  animation: pin-pulse-red 1.2s infinite;
}
@keyframes pin-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--brand) 40%, transparent); }
  50% { box-shadow: 0 0 0 8px color-mix(in oklab, var(--brand) 0%, transparent); }
}
@keyframes pin-pulse-amber {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--amber) 50%, transparent); }
  50% { box-shadow: 0 0 0 10px color-mix(in oklab, var(--amber) 0%, transparent); }
}
@keyframes pin-pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--red) 60%, transparent); }
  50% { box-shadow: 0 0 0 12px color-mix(in oklab, var(--red) 0%, transparent); }
}

.map-stats {
  position: absolute;
  bottom: 16px; left: 16px;
  display: flex;
  gap: 8px;
}
.map-stat {
  background: color-mix(in oklab, var(--d-bg) 75%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--d-border-soft);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11px;
  color: var(--d-muted);
}
.map-stat .v { color: var(--d-text); font-weight: 600; font-size: 13px; display: block; }
.map-stat .v.amber { color: var(--amber); }
.map-stat .v.red { color: var(--red); }

.map-callout {
  position: absolute;
  background: var(--d-surface);
  border: 1px solid var(--d-border);
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: 0 8px 20px -4px rgba(0,0,0,0.4);
  font-size: 12px;
  z-index: 4;
  min-width: 180px;
}
.map-callout::after {
  content: '';
  position: absolute;
  width: 0; height: 0;
  border: 6px solid transparent;
}

/* Side feed */
.feed-row {
  display: flex;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--d-border-soft);
  align-items: flex-start;
}
.feed-row:last-child { border-bottom: none; }
.feed-dot {
  width: 8px; height: 8px;
  border-radius: 99px;
  background: var(--brand);
  margin-top: 6px;
  flex-shrink: 0;
}
.feed-dot.amber { background: var(--amber); }
.feed-dot.red { background: var(--red); }
.feed-content { flex: 1; min-width: 0; }
.feed-title { font-size: 13px; font-weight: 500; margin-bottom: 2px; }
.feed-sub { font-size: 11px; color: var(--d-muted); }
.feed-time { font-size: 11px; color: var(--d-subtle); font-family: var(--mono); }

/* ============ Problem section ============ */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.problem-card {
  background: var(--l-surface);
  border: 1px solid var(--l-border);
  border-radius: 14px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.problem-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: color-mix(in oklab, var(--red) 12%, transparent);
  color: oklch(0.55 0.16 25);
  display: grid; place-items: center;
}
.problem-card h4 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
}
.problem-card p { margin: 0; color: var(--l-muted); font-size: 14px; }
.problem-quote {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--l-border);
  font-size: 13px;
  color: var(--l-subtle);
  font-style: italic;
}

/* ============ Feature sections ============ */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-mock { order: 1; }
.feature-copy { max-width: 480px; }
.feature-bullets {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-bullets li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: var(--l-text);
}
.feature-bullets li svg { color: var(--brand-2); flex-shrink: 0; margin-top: 2px; }
.dark .feature-bullets li { color: var(--d-text); }
.dark .feature-bullets li svg { color: var(--brand); }

.feature-mock {
  border-radius: 14px;
  border: 1px solid var(--l-border);
  background: var(--l-surface);
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(15, 23, 42, 0.15);
}
.dark .feature-mock { background: var(--d-surface); border-color: var(--d-border); box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5); }

.mock-toolbar {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--l-border);
  background: var(--l-surface-2);
  font-size: 12px;
  font-weight: 600;
  gap: 8px;
}
.dark .mock-toolbar { background: var(--d-bg-2); border-color: var(--d-border-soft); }
.mock-toolbar .spacer { flex: 1; }

/* ============ Anomaly feed mock ============ */
.anomaly-feed {
  padding: 12px 0;
}
.anomaly-item {
  display: flex; gap: 14px; align-items: center;
  padding: 12px 18px;
  border-left: 3px solid transparent;
  transition: background 0.1s;
}
.anomaly-item:hover { background: var(--l-surface-2); }
.dark .anomaly-item:hover { background: var(--d-surface-2); }
.anomaly-item.severe { border-left-color: var(--red); background: color-mix(in oklab, var(--red) 5%, transparent); }
.dark .anomaly-item.severe { background: color-mix(in oklab, var(--red) 12%, transparent); }
.anomaly-item.warning { border-left-color: var(--amber); }
.anomaly-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.anomaly-icon.severe { background: color-mix(in oklab, var(--red) 18%, transparent); color: var(--red); }
.anomaly-icon.warning { background: color-mix(in oklab, var(--amber) 18%, transparent); color: var(--amber); }
.anomaly-icon.info { background: color-mix(in oklab, var(--brand) 18%, transparent); color: var(--brand); }
.anomaly-text { flex: 1; min-width: 0; }
.anomaly-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.dark .anomaly-title { color: var(--d-text); }
.anomaly-meta { font-size: 12px; color: var(--l-muted); }
.dark .anomaly-meta { color: var(--d-muted); }
.anomaly-spark { width: 100px; height: 36px; flex-shrink: 0; }
.anomaly-value { text-align: right; font-family: var(--mono); font-size: 13px; flex-shrink: 0; min-width: 80px; }
.anomaly-value .delta.up { color: var(--red); font-weight: 600; }
.anomaly-value .label { font-size: 10px; color: var(--l-subtle); text-transform: uppercase; letter-spacing: 0.05em; }

/* ============ Forecast widget ============ */
.forecast-widget {
  background: var(--d-bg-2);
  border-radius: 16px;
  border: 1px solid var(--d-border);
  padding: 32px;
  color: var(--d-text);
}
.forecast-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.forecast-total {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--d-text);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}
.forecast-total .unit {
  font-size: 22px;
  font-weight: 500;
  color: var(--d-muted);
  margin-left: 4px;
}
.forecast-baseline {
  font-size: 13px;
  color: var(--d-subtle);
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.forecast-baseline .delta {
  display: inline-block; margin-left: 8px;
  padding: 1px 7px; border-radius: 99px;
  font-weight: 600; font-size: 12px;
}
.forecast-baseline .delta.up { color: var(--red); background: color-mix(in oklab, var(--red) 18%, transparent); }
.forecast-baseline .delta.down { color: var(--green); background: color-mix(in oklab, var(--green) 18%, transparent); }
.forecast-baseline .delta.flat { color: var(--d-muted); background: var(--d-surface); }

.forecast-sliders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.slider-row { display: flex; flex-direction: column; gap: 10px; }
.slider-row-head { display: flex; justify-content: space-between; align-items: baseline; }
.slider-label { font-size: 13px; font-weight: 600; color: var(--d-text); }
.slider-sub { font-size: 11px; color: var(--d-subtle); margin-top: 2px; }
.slider-val { font-family: var(--mono); font-size: 16px; font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; }
.slider-val.warm { color: var(--amber); }
.slider-val.cold { color: oklch(0.72 0.13 240); }
.slider-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--d-border);
  border-radius: 2px;
  outline: none;
  position: relative;
}
.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 99px;
  background: var(--brand);
  cursor: grab;
  border: 3px solid var(--d-bg-2);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.slider-input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 99px;
  background: var(--brand);
  cursor: grab;
  border: 3px solid var(--d-bg-2);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.slider-track-marks {
  display: flex; justify-content: space-between;
  margin-top: 4px;
  font-size: 10px;
  font-family: var(--mono);
  color: var(--d-subtle);
}

.forecast-chart {
  position: relative;
  height: 240px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding-top: 30px;
}
.fc-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  height: 100%;
  justify-content: flex-end;
}
.fc-bar-wrap {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  align-items: center;
}
.fc-bar {
  width: 100%;
  border-radius: 4px 4px 0 0;
  background: var(--brand);
  transition: height 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s;
  position: relative;
  min-height: 4px;
}
.fc-bar.cold { background: oklch(0.72 0.13 240); }
.fc-bar.warm { background: var(--amber); }
.fc-bar-baseline {
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--d-text);
  opacity: 0.5;
  border-radius: 1px;
  transition: top 0.35s;
  z-index: 2;
}
.fc-month-label {
  font-size: 11px;
  color: var(--d-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.fc-axis {
  position: absolute;
  left: 0; right: 0; top: 30px; bottom: 28px;
  pointer-events: none;
  display: flex; flex-direction: column;
  justify-content: space-between;
}
.fc-axis-line {
  height: 1px;
  border-top: 1px dashed var(--d-border);
}
.forecast-legend {
  display: flex; gap: 18px;
  font-size: 12px;
  color: var(--d-muted);
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--d-border-soft);
}
.forecast-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.forecast-legend-swatch { width: 12px; height: 12px; border-radius: 3px; }

.scenario-chips {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.chip {
  font-size: 12px; font-weight: 500;
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--d-surface);
  color: var(--d-muted);
  border: 1px solid var(--d-border-soft);
  cursor: pointer;
  transition: all 0.15s;
}
.chip:hover { color: var(--d-text); border-color: var(--d-border); }
.chip.active { background: color-mix(in oklab, var(--brand) 20%, transparent); color: var(--brand); border-color: color-mix(in oklab, var(--brand) 50%, transparent); }

/* ============ Tariff comparison mock ============ */
.tariff-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.tariff-tbl thead th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--l-subtle);
  border-bottom: 1px solid var(--l-border);
  background: var(--l-surface-2);
}
.tariff-tbl tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--l-border);
  vertical-align: middle;
}
.tariff-tbl tbody tr:last-child td { border-bottom: none; }
.tariff-tbl tbody tr.recommended { background: color-mix(in oklab, var(--brand) 6%, transparent); }
.tariff-tbl .pill {
  font-size: 11px; font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--l-surface-2);
  color: var(--l-muted);
}
.tariff-tbl .pill.brand { background: color-mix(in oklab, var(--brand) 18%, transparent); color: var(--brand-2); }
.tariff-tbl .pill.green { background: color-mix(in oklab, var(--green) 18%, transparent); color: oklch(0.5 0.15 155); }
.tariff-tbl .pill.muted { background: var(--l-surface-2); color: var(--l-subtle); }
.tariff-tbl .savings-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  background: color-mix(in oklab, var(--green) 18%, transparent);
  color: oklch(0.5 0.15 155);
}

/* ============ Group management mock ============ */
.groups-mock {
  padding: 18px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  min-height: 360px;
}
.groups-tree { display: flex; flex-direction: column; gap: 2px; }
.tree-node {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}
.tree-node:hover { background: var(--l-surface-2); }
.tree-node.active { background: color-mix(in oklab, var(--brand) 14%, transparent); color: var(--brand-2); font-weight: 600; }
.tree-node.child { padding-left: 24px; }
.tree-count { margin-left: auto; font-size: 11px; color: var(--l-subtle); font-family: var(--mono); }
.tree-node.active .tree-count { color: var(--brand-2); }

.groups-list { background: var(--l-surface-2); border-radius: 8px; padding: 12px; }
.group-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--l-surface);
  margin-bottom: 6px;
  border: 1px solid var(--l-border);
}
.group-item:last-child { margin-bottom: 0; }
.group-mp-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: color-mix(in oklab, var(--brand) 14%, transparent);
  color: var(--brand-2);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.group-mp-name { flex: 1; font-size: 13px; font-weight: 500; }
.group-mp-eic { font-size: 11px; color: var(--l-subtle); font-family: var(--mono); }
.group-mp-kwh { font-family: var(--mono); font-size: 12px; color: var(--l-muted); }

/* ============ Stats strip ============ */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 32px 0;
  border-top: 1px solid var(--d-border-soft);
  border-bottom: 1px solid var(--d-border-soft);
  margin-top: 48px;
}
.stat-item { padding: 0 24px; border-right: 1px solid var(--d-border-soft); }
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 13px; color: var(--d-muted); margin-top: 4px; }

/* ============ Social proof ============ */
.logo-strip {
  display: flex; align-items: center; justify-content: space-around;
  gap: 32px; flex-wrap: wrap;
  margin-top: 32px;
}
.logo-strip .logo {
  font-weight: 700; font-size: 18px; letter-spacing: -0.02em;
  color: var(--l-subtle);
  opacity: 0.7;
  transition: opacity 0.2s;
  display: flex; align-items: center; gap: 8px;
}
.logo-strip .logo:hover { opacity: 1; }

.quote-card {
  background: var(--l-surface);
  border: 1px solid var(--l-border);
  border-radius: 14px;
  padding: 36px;
  display: flex; flex-direction: column; gap: 20px;
}
.quote-mark {
  font-size: 40px; line-height: 1; color: var(--brand-2);
  font-family: serif;
  margin-bottom: -10px;
}
.quote-text {
  font-size: 19px; line-height: 1.45; font-weight: 500;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.quote-author { display: flex; align-items: center; gap: 12px; }
.quote-avatar {
  width: 40px; height: 40px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--brand) 0%, oklch(0.5 0.15 280) 100%);
  color: white;
  display: grid; place-items: center;
  font-weight: 600; font-size: 14px;
}
.quote-author-name { font-weight: 600; font-size: 14px; }
.quote-author-role { font-size: 12px; color: var(--l-muted); }

/* ============ CTA ============ */
.cta-block {
  text-align: center;
  padding: 96px 32px;
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, color-mix(in oklab, var(--brand) 22%, transparent), transparent 70%),
    var(--d-bg);
  color: var(--d-text);
  border-top: 1px solid var(--d-border-soft);
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--d-border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--d-border-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, black 20%, transparent 70%);
  opacity: 0.4;
}
.cta-block > * { position: relative; }
.cta-form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 32px auto 0;
}
.cta-input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--d-surface);
  border: 1px solid var(--d-border);
  color: var(--d-text);
  font-size: 15px;
  outline: none;
}
.cta-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 22%, transparent); }
.cta-input::placeholder { color: var(--d-subtle); }
.cta-form .btn { height: 48px; padding: 0 22px; }
.cta-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--d-subtle);
}

/* ============ Footer ============ */
.footer {
  background: var(--d-bg);
  color: var(--d-muted);
  padding: 48px 32px 32px;
  border-top: 1px solid var(--d-border-soft);
}
.footer-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
}
.footer-col h5 {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--d-subtle);
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 14px; color: var(--d-muted); }
.footer-col a:hover { color: var(--d-text); }
.footer-bottom {
  max-width: 1240px; margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--d-border-soft);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--d-subtle);
}

/* Helpers */
.section-header { text-align: center; margin-bottom: 64px; }
.flex { display: flex; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.items-center { align-items: center; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.right { text-align: right; }

@media (max-width: 900px) {
  .heromock { grid-template-columns: 1fr; }
  .heromock-aside { display: none; }
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reverse .feature-copy { order: 1; }
  .feature-row.reverse .feature-mock { order: 2; }
  .problem-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 16px 24px; border-right: none; }
  .forecast-sliders { grid-template-columns: 1fr; }
  .forecast-total { font-size: 40px; }
}
