/* =========================================================
   LogiOS — landing tokens
   ========================================================= */
:root {
  /* Brand */
  --lime:   #6BD80A;
  --lime-2: #9CFF3E;
  --forest: #3A7A06;
  --pine:   #1E3A08;
  --brand-grad: linear-gradient(135deg, #6BD80A 0%, #3A7A06 50%, #1E3A08 100%);
  --brand-grad-soft: linear-gradient(135deg, rgba(107,216,10,.14) 0%, rgba(58,122,6,.10) 60%, rgba(30,58,8,.08) 100%);
  --purple: #8D8AFF;

  /* Status */
  --ok: #34c759;
  --warn: #ff9f0a;
  --crit: #ff5f57;

  /* Surfaces — light */
  --bg:        #ffffff;
  --bg-soft:   #f6f6f3;
  --bg-softer: #fbfbf8;
  --ink:       #0e0f0c;
  --ink-2:     #1a1a1a;
  --ink-3:     #3d3f3a;
  --mute:      #6b6f66;
  --mute-2:    #9a9d95;
  --line:      #e7e7e1;
  --line-2:    #ededea;
  --chip-bg:   #f1f1ed;

  /* Surfaces — dark */
  --d-bg:     #0b0d09;
  --d-bg-2:   #111410;
  --d-panel:  #151814;
  --d-panel2: #1b1f1a;
  --d-line:   #23281f;
  --d-line-2: #2d3329;
  --d-ink:    #f2f3ef;
  --d-mute:   #9aa196;
  --d-mute-2: #6b7265;

  /* Radii — per brief */
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --pill: 100px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(14,15,12,.04), 0 2px 6px rgba(14,15,12,.04);
  --shadow-md: 0 10px 30px -10px rgba(14,15,12,.12), 0 2px 8px rgba(14,15,12,.05);
  --shadow-lg: 0 30px 80px -20px rgba(14,15,12,.22), 0 8px 24px -8px rgba(14,15,12,.12);
  --shadow-glow: 0 30px 80px -20px rgba(107,216,10,.25), 0 8px 24px -8px rgba(58,122,6,.18);

  /* Type scale */
  --t-base: 16px;
  --t-scale: 1;

  --f-head: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-body);
  font-size: calc(var(--t-base) * var(--t-scale));
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.theme-dark {
  background: var(--d-bg);
  color: var(--d-ink);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* --- Layout helpers --- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.wrap-wide { max-width: 1360px; margin: 0 auto; padding: 0 28px; }

/* --- Typography --- */
.h-display {
  font-family: var(--f-head);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
  font-size: clamp(48px, 6.2vw, 88px);
  color: var(--ink);
}
.theme-dark .h-display { color: var(--d-ink); }

.h-xl {
  font-family: var(--f-head);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  font-size: clamp(38px, 4.2vw, 60px);
}
.h-lg {
  font-family: var(--f-head);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-size: clamp(28px, 3vw, 42px);
}
.h-md {
  font-family: var(--f-head);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-size: 22px;
}
.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 62ch;
}
.theme-dark .lede { color: var(--d-mute); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--bg);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(107,216,10,.18);
}
.theme-dark .eyebrow { background: var(--d-panel); border-color: var(--d-line); color: var(--d-mute); }

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

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--pill);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: #0b1006;
  background: var(--brand-grad);
  box-shadow: 0 10px 24px -8px rgba(58,122,6,.45), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-primary:hover { box-shadow: 0 14px 30px -6px rgba(58,122,6,.55), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); }
.theme-dark .btn-ghost { border-color: var(--d-line-2); color: var(--d-ink); }
.theme-dark .btn-ghost:hover { border-color: var(--d-ink); }
.btn-dark {
  background: var(--ink-2);
  color: #fff;
}
.btn-sm { padding: 10px 16px; font-size: 13.5px; }

/* --- Logo --- */
.logo {
  font-family: var(--f-head);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 22px;
  display: inline-flex; align-items: baseline;
  color: var(--ink-2);
  position: relative;
}
.theme-dark .logo { color: var(--d-ink); }
.logo .logi { position: relative; }
.logo .logi .dot {
  position: absolute;
  top: -2px; left: 11.5px;
  width: 6.5px; height: 6.5px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px rgba(107,216,10,.6);
}
.logo .os {
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  margin-left: 1px;
}

/* --- Nav --- */
.nav {
  position: sticky; top: 0; z-index: 100;
  padding: 14px 0;
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  background: rgba(255,255,255,.72);
  border-bottom: 1px solid rgba(231,231,225,.6);
}
.theme-dark .nav {
  background: rgba(11,13,9,.7);
  border-bottom: 1px solid rgba(45,51,41,.6);
}
.nav .inner {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.nav ul {
  list-style: none; display: flex; gap: 26px; padding: 0; margin: 0;
  font-size: 14.5px; color: var(--ink-3); font-weight: 500;
}
.theme-dark .nav ul { color: var(--d-mute); }
.nav ul a:hover { color: var(--ink); }
.theme-dark .nav ul a:hover { color: var(--d-ink); }
.nav .right { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  display: inline-flex; border: 1px solid var(--line); border-radius: var(--pill);
  padding: 3px; font-size: 12px; font-weight: 600;
  font-family: var(--f-mono);
}
.theme-dark .lang-toggle { border-color: var(--d-line-2); }
.lang-toggle button {
  padding: 5px 10px; border-radius: var(--pill);
  background: transparent; border: 0; cursor: pointer;
  color: var(--mute);
  letter-spacing: 0.05em;
}
.lang-toggle button.active {
  background: var(--ink-2); color: #fff;
}
.theme-dark .lang-toggle button.active { background: var(--d-ink); color: var(--d-bg); }

.icon-btn {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line);
  cursor: pointer; color: var(--ink-3);
}
.theme-dark .icon-btn { border-color: var(--d-line-2); color: var(--d-mute); }
.icon-btn:hover { color: var(--ink); }

/* =========================================================
   Sections
   ========================================================= */
section { position: relative; }

/* Scooped section transitions */
.scoop-top {
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: 48px 0 120px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(107,216,10,.18), transparent 60%),
    radial-gradient(700px 400px at 10% 10%, rgba(141,138,255,.12), transparent 60%);
  z-index: 0;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(14,15,12,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14,15,12,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(1200px 600px at 50% 0%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(1200px 600px at 50% 0%, black, transparent 70%);
}
.theme-dark .hero-grid-bg {
  background-image:
    linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
}
.hero .wrap { position: relative; z-index: 1; }

.hero-head {
  text-align: left;
  max-width: 980px;
}
.hero-head h1 span.grad {
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-head .sub {
  margin-top: 26px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-3);
  max-width: 58ch;
}
.theme-dark .hero-head .sub { color: var(--d-mute); }

.hero-cta {
  display: flex; gap: 12px; margin-top: 32px; align-items: center; flex-wrap: wrap;
}
.hero-meta {
  display: flex; gap: 24px; margin-top: 22px;
  font-size: 13.5px; color: var(--mute);
  font-family: var(--f-mono);
}
.hero-meta span::before {
  content: "✓";
  color: var(--lime);
  margin-right: 6px;
  font-weight: bold;
}

/* Hero product — laptop + iPad */
.hero-product {
  margin-top: 64px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: end;
}
.hero-floats {
  position: absolute; inset: -20px 0 -20px 0;
  pointer-events: none;
}

/* Laptop frame */
.laptop {
  position: relative;
  border-radius: 18px;
  background: linear-gradient(180deg, #222 0%, #111 100%);
  padding: 14px 14px 16px;
  box-shadow: var(--shadow-lg);
}
.laptop-screen {
  aspect-ratio: 16/10;
  background: var(--bg);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}
.theme-dark .laptop-screen { background: #0f1410; border-color: #1e241c; }
.laptop-base {
  height: 14px;
  margin: 4px -30px 0;
  background: linear-gradient(180deg, #2a2a2a 0%, #0a0a0a 100%);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  position: relative;
}
.laptop-base::before {
  content: "";
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 120px; height: 6px;
  background: #000;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* iPad frame */
.ipad {
  position: relative;
  border-radius: 28px;
  background: #1a1a1a;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  transform: translateY(-20px);
}
.ipad-screen {
  aspect-ratio: 3/4;
  background: var(--bg);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}
.theme-dark .ipad-screen { background: #0f1410; }

/* Floating spec cards */
.spec-float {
  position: absolute;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: 12.5px;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 10px;
  pointer-events: auto;
  z-index: 3;
}
.theme-dark .spec-float { background: var(--d-panel); border-color: var(--d-line-2); color: var(--d-ink); }
.spec-float .icn {
  width: 28px; height: 28px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-soft);
  color: var(--ink);
}
.theme-dark .spec-float .icn { background: var(--d-panel2); color: var(--d-ink); }
.spec-float .val { font-family: var(--f-mono); font-weight: 600; }
.spec-float .lbl { color: var(--mute); font-family: var(--f-mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.theme-dark .spec-float .lbl { color: var(--d-mute-2); }

.float-1 { top: -10px; left: -16px; }
.float-2 { top: 42%; left: -40px; }
.float-3 { bottom: 30px; right: -20px; }
.float-4 { top: 22%; right: 280px; }

@keyframes floatA { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }
@keyframes floatB { 0%,100% { transform: translateY(0) } 50% { transform: translateY(5px) } }
.spec-float.f-a { animation: floatA 5.5s ease-in-out infinite; }
.spec-float.f-b { animation: floatB 6.5s ease-in-out infinite; }

/* =========================================================
   Logo bar
   ========================================================= */
.logobar {
  padding: 48px 0 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-softer);
}
.theme-dark .logobar { background: var(--d-bg-2); border-color: var(--d-line); }
.logobar .title {
  text-align: center;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 24px;
}
.logobar .row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  align-items: center;
  padding-bottom: 12px;
}
.logo-chip {
  display: flex; align-items: center; justify-content: center;
  height: 56px;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--mute);
  opacity: 0.8;
  border-radius: var(--r-sm);
}

/* =========================================================
   Dashboard showcase (full-bleed)
   ========================================================= */
.dash-show {
  padding: 110px 0 120px;
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}
.theme-dark .dash-show { background: var(--d-bg-2); }
.dash-show .header { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.dash-show .header .eyebrow { margin-bottom: 18px; }

.dash-frame {
  max-width: 1280px;
  margin: 0 auto;
  border-radius: var(--r-lg);
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.theme-dark .dash-frame { background: var(--d-panel); border-color: var(--d-line); }

/* =========================================================
   Features tabs
   ========================================================= */
.features {
  padding: 110px 0 120px;
}
.features .head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
  align-items: end;
}
.tabs {
  display: flex; gap: 6px;
  border: 1px solid var(--line);
  background: var(--bg-softer);
  border-radius: var(--pill);
  padding: 4px;
  flex-wrap: wrap;
}
.theme-dark .tabs { background: var(--d-panel); border-color: var(--d-line); }
.tab {
  padding: 10px 14px;
  border-radius: var(--pill);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 8px;
}
.theme-dark .tab { color: var(--d-mute); }
.tab.active {
  background: var(--bg);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.theme-dark .tab.active { background: var(--d-panel2); color: var(--d-ink); border-color: var(--d-line-2); }

.feature-body {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 48px;
  align-items: start;
}
.feature-detail h3 { margin: 18px 0 14px; }
.feature-detail .lede { font-size: 17px; }
.feature-bullets { margin: 24px 0 0; padding: 0; list-style: none; }
.feature-bullets li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}
.theme-dark .feature-bullets li { border-color: var(--d-line); }
.feature-bullets li:last-child { border-bottom: 1px solid var(--line); }
.theme-dark .feature-bullets li:last-child { border-bottom-color: var(--d-line); }
.feature-bullets .k {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
  flex-shrink: 0;
  width: 80px;
  padding-top: 2px;
}

.feature-visual {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
  min-height: 460px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.theme-dark .feature-visual { background: var(--d-panel); border-color: var(--d-line); }

/* =========================================================
   Touch panel section
   ========================================================= */
.touchpanel-sec {
  padding: 120px 0;
  background: var(--ink);
  color: var(--d-ink);
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  position: relative;
  overflow: hidden;
}
.touchpanel-sec .head { max-width: 640px; margin-bottom: 64px; }
.touchpanel-sec .head .eyebrow { background: #1a1d17; border-color: #2a2f26; color: #9aa196; }
.touchpanel-sec .head h2 { color: #fff; }
.touchpanel-sec .head .lede { color: #a4a99e; }
.touchpanel-sec .grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}
.touchpanel-mount {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #1a1d17 0%, #0e1109 100%);
  border: 1px solid #2a2f26;
  padding: 48px;
  display: flex; align-items: center; justify-content: center;
}
.tp-features { display: grid; gap: 20px; }
.tp-feature {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  padding: 18px;
  background: #12150f;
  border: 1px solid #23281f;
  border-radius: var(--r-md);
  transition: background .2s, border .2s;
}
.tp-feature:hover {
  background: #171b13;
  border-color: #3a4233;
}
.tp-feature .icn {
  width: 42px; height: 42px; border-radius: 12px;
  background: #1a1d17; border: 1px solid #2a2f26;
  display: flex; align-items: center; justify-content: center;
  color: var(--lime);
}
.tp-feature .title { font-weight: 600; margin-bottom: 4px; color: #fff; font-family: var(--f-head); letter-spacing: -0.01em; }
.tp-feature .desc { font-size: 13.5px; color: #9aa196; line-height: 1.5; }

/* =========================================================
   Report walkthrough
   ========================================================= */
.report-sec {
  padding: 120px 0;
  background: var(--bg);
}
.theme-dark .report-sec { background: var(--d-bg); }
.report-sec .head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.report-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.report-paper {
  border-radius: var(--r-lg);
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 36px;
  aspect-ratio: 8.5/11;
  position: relative;
  overflow: hidden;
}
.theme-dark .report-paper { background: var(--d-panel); border-color: var(--d-line); }

.report-steps { display: grid; gap: 14px; }
.report-step {
  padding: 24px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg);
  position: relative;
  cursor: pointer;
  transition: all .25s ease;
}
.theme-dark .report-step { background: var(--d-panel); border-color: var(--d-line); }
.report-step.active {
  border-color: transparent;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.report-step.active .step-num { background: var(--lime); color: #0b1006; }
.report-step .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--bg-soft); color: var(--ink);
  font-family: var(--f-mono); font-weight: 600; font-size: 12px;
  margin-bottom: 12px;
}
.theme-dark .report-step .step-num { background: var(--d-panel2); color: var(--d-ink); }
.report-step .step-title { font-weight: 600; font-family: var(--f-head); letter-spacing: -0.01em; font-size: 17px; margin-bottom: 6px; }
.report-step .step-desc { font-size: 13.5px; line-height: 1.5; opacity: 0.75; }

/* =========================================================
   How it works
   ========================================================= */
.how {
  padding: 120px 0;
  background: var(--bg-soft);
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}
.theme-dark .how { background: var(--d-bg-2); }
.how .head { text-align: center; margin-bottom: 72px; }
.how-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.how-timeline::before {
  content: "";
  position: absolute;
  top: 24px; left: 8%; right: 8%; height: 2px;
  background: linear-gradient(to right, var(--line) 0%, var(--lime) 50%, var(--line) 100%);
}
.how-step { text-align: center; padding: 0 18px; position: relative; z-index: 1; }
.how-step .num {
  width: 48px; height: 48px; border-radius: 50%;
  margin: 0 auto 24px;
  background: var(--bg);
  border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-weight: 600; font-size: 15px;
}
.how-step.on .num {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.theme-dark .how-step .num { background: var(--d-panel); border-color: var(--d-line-2); }
.how-step .title { font-family: var(--f-head); font-weight: 700; font-size: 19px; letter-spacing: -0.015em; margin-bottom: 10px; }
.how-step .desc { font-size: 14.5px; color: var(--ink-3); line-height: 1.55; }
.theme-dark .how-step .desc { color: var(--d-mute); }

/* =========================================================
   Stats band
   ========================================================= */
.stats-band {
  padding: 88px 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.theme-dark .stats-band { background: var(--d-bg); border-color: var(--d-line); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat { padding: 0 28px; border-right: 1px solid var(--line); }
.theme-dark .stat { border-color: var(--d-line); }
.stat:last-child { border-right: 0; }
.stat .num {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 60px;
  letter-spacing: -0.03em;
  line-height: 1;
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.stat .unit { font-family: var(--f-head); font-weight: 600; font-size: 24px; color: var(--ink-3); margin-left: 2px; }
.theme-dark .stat .unit { color: var(--d-mute); }
.stat .lbl { margin-top: 14px; font-size: 14px; color: var(--ink-3); line-height: 1.45; max-width: 220px; }
.theme-dark .stat .lbl { color: var(--d-mute); }
.stat .sub {
  margin-top: 8px; font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute);
}

/* =========================================================
   Pricing
   ========================================================= */
.pricing-sec {
  padding: 120px 0;
  background: var(--bg-soft);
}
.theme-dark .pricing-sec { background: var(--d-bg-2); }
.pricing-sec .head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.pricing-controls {
  display: flex; justify-content: center; align-items: center; gap: 32px;
  margin-bottom: 48px; flex-wrap: wrap;
}
.segmented {
  display: inline-flex; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--pill); padding: 4px;
}
.theme-dark .segmented { background: var(--d-panel); border-color: var(--d-line); }
.segmented button {
  padding: 8px 18px; border-radius: var(--pill);
  background: transparent; border: 0; cursor: pointer;
  font-size: 13.5px; font-weight: 500; color: var(--ink-3);
}
.theme-dark .segmented button { color: var(--d-mute); }
.segmented button.active { background: var(--ink); color: #fff; font-weight: 600; }
.theme-dark .segmented button.active { background: var(--d-ink); color: var(--d-bg); }

.property-slider {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg); border: 1px solid var(--line);
  padding: 10px 18px; border-radius: var(--pill);
}
.theme-dark .property-slider { background: var(--d-panel); border-color: var(--d-line); }
.property-slider .lbl { font-size: 13px; color: var(--mute); font-family: var(--f-mono); }
.property-slider input[type="range"] {
  width: 160px;
  accent-color: var(--forest);
}
.property-slider .val { font-family: var(--f-mono); font-weight: 700; font-size: 14px; min-width: 30px; text-align: right; }

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.price-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  transition: border-color .2s, transform .2s;
}
.theme-dark .price-card { background: var(--d-panel); border-color: var(--d-line); }
.price-card:hover { transform: translateY(-3px); }
.price-card.featured {
  background: var(--ink);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}
.price-card.featured .lede { color: rgba(255,255,255,.75); }
.price-card .tier-name { font-family: var(--f-head); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; margin-bottom: 6px; }
.price-card .tier-desc { font-size: 14px; color: var(--ink-3); line-height: 1.5; margin-bottom: 28px; min-height: 42px; }
.theme-dark .price-card .tier-desc { color: var(--d-mute); }
.price-card.featured .tier-desc { color: rgba(255,255,255,.7); }
.price-card .price {
  display: flex; align-items: baseline; gap: 6px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.price-card.featured .price { border-color: #2a2f26; }
.theme-dark .price-card .price { border-color: var(--d-line); }
.price-card .price .n { font-family: var(--f-head); font-weight: 700; font-size: 56px; letter-spacing: -0.03em; line-height: 1; }
.price-card .price .cur { font-family: var(--f-head); font-weight: 700; font-size: 32px; }
.price-card .price .per { font-size: 13.5px; color: var(--mute); }
.price-card.featured .price .per { color: rgba(255,255,255,.55); }
.price-card .tier-btn {
  width: 100%; margin-top: 0;
}
.price-features { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.price-features li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; line-height: 1.5;
}
.price-features li::before {
  content: ""; flex-shrink: 0;
  width: 16px; height: 16px; margin-top: 2px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--lime) 22%, transparent);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'><path d='M2 5 L4.2 7.2 L8 3' fill='none' stroke='%236BD80A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: center;
}
.price-card.featured .price-features li::before {
  background-color: rgba(107,216,10,.3);
}
.featured-badge {
  position: absolute; top: 20px; right: 20px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 600;
  padding: 4px 10px; border-radius: var(--pill);
  background: var(--lime); color: #0b1006;
}
.price-sub {
  text-align: center; margin-top: 28px;
  font-family: var(--f-mono); font-size: 12px;
  color: var(--mute); letter-spacing: .04em;
}

/* =========================================================
   Entry offer callout
   ========================================================= */
.entry-offer {
  padding: 96px 0;
  background: var(--bg);
}
.theme-dark .entry-offer { background: var(--d-bg); }
.entry-card {
  max-width: 1080px;
  margin: 0 auto;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #0f1409 0%, #1a2111 100%);
  border: 1px solid #2a2f26;
  padding: 56px;
  color: #fff;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.entry-card::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 380px; height: 380px;
  background: var(--brand-grad);
  border-radius: 50%;
  opacity: 0.35;
  filter: blur(60px);
  pointer-events: none;
}
.entry-card .content { position: relative; z-index: 1; }
.entry-card h3 {
  font-family: var(--f-head); font-weight: 700;
  font-size: 44px; letter-spacing: -0.03em; line-height: 1.02;
  margin: 14px 0 16px;
}
.entry-card h3 .grad {
  background: linear-gradient(90deg, var(--lime-2), var(--lime));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.entry-card .desc { color: rgba(255,255,255,.75); font-size: 16px; line-height: 1.55; max-width: 42ch; }
.entry-card .eyebrow { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: #b3b8ad; }
.entry-steps { position: relative; z-index: 1; display: grid; gap: 12px; }
.entry-step {
  display: grid; grid-template-columns: 32px 1fr auto; gap: 16px;
  padding: 16px 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-md);
  align-items: center;
}
.entry-step .n { font-family: var(--f-mono); font-weight: 600; color: var(--lime); }
.entry-step .t { font-weight: 500; font-size: 14.5px; }
.entry-step .time { font-family: var(--f-mono); font-size: 11.5px; color: rgba(255,255,255,.5); letter-spacing: .06em; text-transform: uppercase; }

/* =========================================================
   Ajax partnership
   ========================================================= */
.ajax-strip {
  padding: 72px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.theme-dark .ajax-strip { background: var(--d-bg-2); border-color: var(--d-line); }
.ajax-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.ajax-badges {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.ajax-badge {
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 13.5px;
}
.theme-dark .ajax-badge { background: var(--d-panel); border-color: var(--d-line); }
.ajax-badge .k { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.ajax-badge .v { font-family: var(--f-head); font-weight: 600; font-size: 17px; }

/* =========================================================
   Map section
   ========================================================= */
.map-sec {
  padding: 120px 0;
  background: var(--bg);
  overflow: hidden;
}
.theme-dark .map-sec { background: var(--d-bg); }
.map-row {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
}
.map-frame {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}
.theme-dark .map-frame { background: var(--d-panel); border-color: var(--d-line); }

.map-list {
  display: grid; gap: 10px;
}
.map-item {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  align-items: center;
  cursor: pointer;
  transition: border-color .2s;
}
.theme-dark .map-item { background: var(--d-panel); border-color: var(--d-line); }
.map-item:hover, .map-item.active { border-color: var(--ink); }
.theme-dark .map-item:hover, .theme-dark .map-item.active { border-color: var(--d-ink); }
.map-item .pin {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(107,216,10,.18);
  margin-left: 7px;
}
.map-item .meta { font-family: var(--f-mono); font-size: 11.5px; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.map-item .name { font-weight: 600; font-size: 15px; margin-top: 2px; font-family: var(--f-head); letter-spacing: -0.01em; }
.map-item .status { font-family: var(--f-mono); font-size: 12px; font-weight: 600; }
.map-item .status.ok { color: var(--ok); }
.map-item .status.warn { color: var(--warn); }

/* =========================================================
   Testimonial
   ========================================================= */
.testimonial {
  padding: 120px 0;
  background: var(--bg-soft);
}
.theme-dark .testimonial { background: var(--d-bg-2); }
.testimonial-card {
  max-width: 960px;
  margin: 0 auto;
  text-align: left;
  padding: 56px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.theme-dark .testimonial-card { background: var(--d-panel); border-color: var(--d-line); }
.testimonial-card .quote {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
  margin: 20px 0 32px;
  text-wrap: balance;
}
.theme-dark .testimonial-card .quote { color: var(--d-ink); }
.testimonial-card .author {
  display: flex; align-items: center; gap: 16px;
  padding-top: 28px; border-top: 1px solid var(--line);
}
.theme-dark .testimonial-card .author { border-color: var(--d-line); }
.testimonial-card .avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand-grad);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-head); font-weight: 700; color: #0b1006; font-size: 17px;
}
.testimonial-card .name { font-weight: 600; font-family: var(--f-head); }
.testimonial-card .role { font-size: 13.5px; color: var(--mute); }

/* =========================================================
   FAQ
   ========================================================= */
.faq-sec { padding: 120px 0; background: var(--bg); }
.theme-dark .faq-sec { background: var(--d-bg); }
.faq-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 48px;
  align-items: start;
}
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.theme-dark .faq-list { border-color: var(--d-line); }
.faq-item { border-bottom: 1px solid var(--line); }
.theme-dark .faq-item { border-color: var(--d-line); }
.faq-q {
  width: 100%; text-align: left; background: transparent; border: 0;
  padding: 24px 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--f-head); font-weight: 600; font-size: 18px; letter-spacing: -0.015em;
  color: var(--ink);
}
.theme-dark .faq-q { color: var(--d-ink); }
.faq-q .plus {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
  transition: transform .2s;
}
.theme-dark .faq-q .plus { border-color: var(--d-line-2); }
.faq-item.open .faq-q .plus { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  font-size: 15px; line-height: 1.6; color: var(--ink-3);
}
.theme-dark .faq-a { color: var(--d-mute); }
.faq-item.open .faq-a { max-height: 400px; padding: 0 0 24px; }

/* =========================================================
   Final CTA + footer
   ========================================================= */
.final-cta {
  padding: 140px 0 120px;
  background: var(--ink);
  color: #fff;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  bottom: -40%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(107,216,10,.32), transparent 60%);
  pointer-events: none;
}
.final-cta .inner { text-align: center; max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }
.final-cta h2 {
  font-family: var(--f-head); font-weight: 700; font-size: clamp(44px, 5vw, 72px);
  letter-spacing: -0.03em; line-height: 1.02;
  margin: 20px 0 20px;
}
.final-cta h2 .grad { background: linear-gradient(90deg, var(--lime-2), var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.final-cta .sub { font-size: 19px; color: rgba(255,255,255,.7); margin-bottom: 36px; max-width: 52ch; margin-left: auto; margin-right: auto; }
.final-cta .cta-row { display: inline-flex; gap: 12px; }
.final-cta .cta-row .btn-ghost { border-color: rgba(255,255,255,.2); color: #fff; }
.final-cta .cta-row .btn-ghost:hover { border-color: #fff; }

footer.site-footer {
  background: var(--ink);
  color: #9aa196;
  padding: 80px 0 20px;
  position: relative;
  overflow: hidden;
}
.footer-watermark {
  position: absolute;
  left: 0; right: 0; bottom: -140px;
  text-align: center;
  font-family: var(--f-head); font-weight: 700;
  font-size: 400px;
  letter-spacing: -0.05em;
  line-height: 0.7;
  background: linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,0) 80%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  pointer-events: none;
  white-space: nowrap;
}
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid #23281f;
}
.footer-grid .brand-col .tagline { margin-top: 18px; font-size: 14px; color: #6b7265; max-width: 26ch; line-height: 1.55; }
.footer-grid h4 { color: #fff; font-family: var(--f-head); font-weight: 600; font-size: 14px; letter-spacing: -0.005em; margin: 0 0 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.footer-grid ul a:hover { color: #fff; }
.footer-bottom {
  position: relative;
  padding: 28px 0 0;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 12px; color: #6b7265; letter-spacing: .04em;
}

/* =========================================================
   Dashboard internals
   ========================================================= */
.dash {
  display: grid;
  grid-template-columns: 200px 1fr;
  height: 100%;
  font-family: var(--f-body);
  color: var(--ink);
}
.theme-dark .dash { color: var(--d-ink); }
.dash-side {
  background: var(--bg-softer);
  border-right: 1px solid var(--line);
  padding: 18px 14px;
}
.theme-dark .dash-side { background: var(--d-bg-2); border-right-color: var(--d-line); }
.dash-side .logo { font-size: 16px; margin-bottom: 24px; display: block; padding-left: 4px; }
.dash-side .logo .dot { left: 8.5px; width: 4.5px; height: 4.5px; top: -1px; }
.dash-side .group-t {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--mute); padding: 12px 8px 6px;
}
.dash-side .nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px; color: var(--ink-3);
  cursor: pointer;
}
.theme-dark .dash-side .nav-item { color: var(--d-mute); }
.dash-side .nav-item.active {
  background: var(--bg); color: var(--ink); font-weight: 600;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.theme-dark .dash-side .nav-item.active { background: var(--d-panel); color: var(--d-ink); border-color: var(--d-line); }
.dash-side .nav-item .count {
  margin-left: auto; font-family: var(--f-mono); font-size: 10.5px;
  background: var(--chip-bg); padding: 1px 6px; border-radius: 6px; color: var(--mute);
}
.dash-side .nav-item.alert .count { background: color-mix(in oklab, var(--warn) 20%, white); color: var(--warn); }

.dash-main { display: grid; grid-template-rows: auto 1fr; }
.dash-top {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.theme-dark .dash-top { border-color: var(--d-line); }
.dash-top .search {
  flex: 1; max-width: 280px;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  background: var(--bg-softer); border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12.5px; color: var(--mute);
}
.theme-dark .dash-top .search { background: var(--d-bg-2); border-color: var(--d-line); }
.dash-top .search kbd {
  margin-left: auto; font-family: var(--f-mono); font-size: 10px;
  background: var(--bg); border: 1px solid var(--line); padding: 1px 5px; border-radius: 4px;
}
.dash-top .chip {
  padding: 5px 10px; border-radius: 6px;
  font-family: var(--f-mono); font-size: 11px;
  background: color-mix(in oklab, var(--ok) 14%, white); color: #1e7a31;
}
.theme-dark .dash-top .chip { background: color-mix(in oklab, var(--ok) 18%, black); color: #7dd97c; }
.dash-top .avatar-sm {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-grad);
}

.dash-body {
  padding: 20px;
  display: grid;
  gap: 14px;
  overflow: hidden;
}
.dash-body .row {
  display: grid; gap: 14px;
}
.dash-body .row.r1 { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
.dash-body .row.r2 { grid-template-columns: 2fr 1fr; }
.dash-body .row.r3 { grid-template-columns: 1fr 1fr 1fr; }

.kpi {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px 16px;
  display: grid; gap: 6px;
}
.theme-dark .kpi { background: var(--d-panel); border-color: var(--d-line); }
.kpi .lbl { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.kpi .val { font-family: var(--f-head); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; }
.kpi .delta { font-family: var(--f-mono); font-size: 11px; color: var(--ok); }
.kpi .delta.neg { color: var(--crit); }
.kpi.big .val { font-size: 30px; }

.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px;
  display: grid; gap: 10px;
  min-height: 0;
}
.theme-dark .card { background: var(--d-panel); border-color: var(--d-line); }
.card .head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; font-weight: 600;
}
.card .head .sub { font-family: var(--f-mono); font-size: 10.5px; color: var(--mute); font-weight: 400; letter-spacing: .05em; }

.chart-svg { width: 100%; height: 100%; display: block; }

.prop-list .item {
  display: grid; grid-template-columns: 12px 1fr auto auto; gap: 10px;
  padding: 7px 4px;
  align-items: center;
  font-size: 12.5px;
  border-bottom: 1px solid var(--line-2);
}
.theme-dark .prop-list .item { border-color: var(--d-line); }
.prop-list .item:last-child { border-bottom: 0; }
.prop-list .pin { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); margin-left: 3px; }
.prop-list .pin.warn { background: var(--warn); }
.prop-list .pin.crit { background: var(--crit); }
.prop-list .name { font-weight: 500; }
.prop-list .meta { font-family: var(--f-mono); font-size: 10.5px; color: var(--mute); }
.prop-list .stat {
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 600;
  padding: 2px 7px; border-radius: 6px;
  background: color-mix(in oklab, var(--ok) 12%, white); color: #1e7a31;
}
.theme-dark .prop-list .stat { background: color-mix(in oklab, var(--ok) 18%, black); color: #7dd97c; }
.prop-list .stat.warn { background: color-mix(in oklab, var(--warn) 14%, white); color: #a65c00; }
.theme-dark .prop-list .stat.warn { background: color-mix(in oklab, var(--warn) 22%, black); color: #ffbe5c; }
.prop-list .stat.crit { background: color-mix(in oklab, var(--crit) 14%, white); color: #a4181c; }

.events .ev {
  display: grid; grid-template-columns: 16px 1fr auto; gap: 10px;
  padding: 8px 0;
  font-size: 12px;
  border-bottom: 1px dashed var(--line-2);
  align-items: center;
}
.theme-dark .events .ev { border-color: var(--d-line); }
.events .ev:last-child { border: 0; }
.events .dot {
  width: 8px; height: 8px; border-radius: 50%; margin-top: 4px;
  background: var(--ok);
}
.events .dot.warn { background: var(--warn); }
.events .dot.crit { background: var(--crit); box-shadow: 0 0 0 3px rgba(255,95,87,.15); }
.events .t { color: var(--ink-3); }
.theme-dark .events .t { color: var(--d-mute); }
.events .ti { font-family: var(--f-mono); font-size: 10.5px; color: var(--mute); }

/* Energy bars */
.ebars {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 3px;
  align-items: end;
  height: 90px;
  padding-top: 4px;
}
.ebars .b {
  background: var(--brand-grad);
  border-radius: 2px;
  min-height: 4px;
  opacity: 0.85;
}
.ebars .b.accent { background: var(--lime); }

.legend {
  display: flex; gap: 14px; font-family: var(--f-mono); font-size: 10.5px; color: var(--mute);
}
.legend .ld {
  width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 5px; vertical-align: middle;
}

/* =========================================================
   iPad dashboard content
   ========================================================= */
.ipad-ui {
  padding: 18px;
  height: 100%;
  display: grid; gap: 14px;
  grid-template-rows: auto auto 1fr auto;
  font-family: var(--f-body);
  color: var(--ink);
}
.theme-dark .ipad-ui { color: var(--d-ink); }
.ipad-ui .statusbar {
  display: flex; justify-content: space-between;
  font-family: var(--f-mono); font-size: 10px; color: var(--ink-3);
}
.ipad-ui .statusbar .time { font-weight: 600; color: var(--ink); }
.theme-dark .ipad-ui .statusbar .time { color: var(--d-ink); }
.ipad-ui .title-row {
  display: flex; justify-content: space-between; align-items: center;
}
.ipad-ui .title {
  font-family: var(--f-head); font-weight: 700; font-size: 19px; letter-spacing: -0.02em;
}
.ipad-ui .filter-chip {
  font-family: var(--f-mono); font-size: 10.5px; color: var(--mute);
  padding: 4px 8px; border: 1px solid var(--line); border-radius: var(--pill);
}
.theme-dark .ipad-ui .filter-chip { border-color: var(--d-line-2); }
.ipad-cards { display: grid; gap: 10px; overflow: hidden; }
.ipad-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-softer);
  display: grid; gap: 6px;
}
.theme-dark .ipad-card { background: var(--d-bg-2); border-color: var(--d-line); }
.ipad-card .top { display: flex; justify-content: space-between; align-items: center; }
.ipad-card .name { font-weight: 600; font-size: 13px; }
.ipad-card .occ {
  font-family: var(--f-mono); font-size: 10px; padding: 1px 7px;
  border-radius: var(--pill);
  background: color-mix(in oklab, var(--lime) 22%, white); color: var(--forest);
  letter-spacing: 0.05em;
}
.theme-dark .ipad-card .occ { background: color-mix(in oklab, var(--lime) 18%, black); color: var(--lime); }
.ipad-card .occ.vacant { background: var(--chip-bg); color: var(--mute); }
.theme-dark .ipad-card .occ.vacant { background: var(--d-panel); color: var(--d-mute); }
.ipad-card .metrics {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
  font-family: var(--f-mono); font-size: 10.5px;
}
.ipad-card .metrics .m .k { color: var(--mute); font-size: 9.5px; }
.ipad-card .metrics .m .v { font-weight: 600; color: var(--ink); }
.theme-dark .ipad-card .metrics .m .v { color: var(--d-ink); }
.ipad-footer {
  display: flex; justify-content: space-around;
  padding: 8px 0 2px;
  border-top: 1px solid var(--line);
}
.theme-dark .ipad-footer { border-color: var(--d-line); }
.ipad-footer .t {
  width: 28px; height: 28px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--mute);
}
.ipad-footer .t.active { background: var(--ink); color: #fff; }
.theme-dark .ipad-footer .t.active { background: var(--d-ink); color: var(--d-bg); }

/* =========================================================
   Touch panel UI
   ========================================================= */
.tpanel {
  width: 340px;
  aspect-ratio: 4/3;
  border-radius: 24px;
  padding: 22px;
  background: linear-gradient(155deg, #f8f8f4 0%, #e8e8e0 100%);
  border: 1px solid #d4d4cc;
  box-shadow: 0 20px 60px -10px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.8);
  color: #1a1a1a;
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
}
.tpanel.dark {
  background: linear-gradient(155deg, #1c1c18 0%, #0d0e0b 100%);
  border-color: #2a2a26;
  color: #f2f3ef;
}
.tpanel .tp-top {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 10px;
}
.tpanel .tp-title {
  font-family: var(--f-head); font-weight: 700; font-size: 15px; letter-spacing: -0.015em;
}
.tpanel .tp-time { font-family: var(--f-head); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.tpanel .tp-controls {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.tp-ctrl {
  aspect-ratio: 1;
  border-radius: 12px;
  background: rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.08);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all .2s;
}
.tpanel.dark .tp-ctrl { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
.tp-ctrl:hover { background: rgba(107,216,10,.12); border-color: rgba(107,216,10,.35); }
.tp-ctrl.on {
  background: #1a1a1a; color: #fff; border-color: #1a1a1a;
}
.tpanel.dark .tp-ctrl.on { background: var(--lime); color: #0b1006; border-color: var(--lime); }
.tp-ctrl .lbl { font-size: 9px; font-family: var(--f-mono); letter-spacing: .04em; }
.tpanel .tp-footer {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 10px; opacity: 0.6;
}

/* =========================================================
   Report paper
   ========================================================= */
.report-head {
  display: flex; justify-content: space-between; align-items: start;
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.theme-dark .report-head { border-color: var(--d-line); }
.report-head .meta { font-family: var(--f-mono); font-size: 10.5px; color: var(--mute); letter-spacing: .06em; }
.report-head h4 { font-family: var(--f-head); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin: 6px 0; }
.report-head .addr { font-size: 12.5px; color: var(--ink-3); }
.report-score {
  width: 84px; height: 84px; border-radius: 50%;
  background: conic-gradient(var(--lime) 0% 92%, var(--line) 92% 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.report-score::before {
  content: "";
  position: absolute; inset: 5px;
  border-radius: 50%;
  background: var(--bg);
}
.theme-dark .report-score::before { background: var(--d-panel); }
.report-score .n { position: relative; z-index: 1; font-family: var(--f-head); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; }

.report-blocks { display: grid; gap: 16px; margin-top: 20px; }
.report-block {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.theme-dark .report-block { border-color: var(--d-line); }
.report-block .k {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--mute); padding-top: 2px;
}
.report-block .v { font-size: 13px; line-height: 1.5; }
.report-block .v strong { font-family: var(--f-head); font-weight: 700; letter-spacing: -0.01em; }
.report-block .v .tags { display: flex; gap: 6px; margin-top: 8px; }
.report-block .v .tag {
  font-family: var(--f-mono); font-size: 10px;
  padding: 2px 7px; border-radius: var(--pill);
  background: var(--chip-bg); color: var(--ink-3);
}
.theme-dark .report-block .v .tag { background: var(--d-panel2); color: var(--d-mute); }
.report-block .v .tag.ok { background: color-mix(in oklab, var(--ok) 16%, white); color: #1e7a31; }
.report-block .v .tag.warn { background: color-mix(in oklab, var(--warn) 18%, white); color: #a65c00; }
.report-block .v .bar-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.report-block .v .bar { flex: 1; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.theme-dark .report-block .v .bar { background: var(--d-line); }
.report-block .v .bar .f { height: 100%; background: var(--brand-grad); border-radius: 3px; }
.report-block .v .nums {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-top: 8px;
}
.report-block .v .nums .n { font-family: var(--f-head); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.report-block .v .nums .l { font-family: var(--f-mono); font-size: 10px; color: var(--mute); letter-spacing: .06em; }

.report-watermark {
  position: absolute;
  bottom: 22px; right: 28px;
  font-family: var(--f-mono); font-size: 10px; color: var(--mute); letter-spacing: .1em;
}

/* =========================================================
   Map SVG
   ========================================================= */
.map-svg-wrap { position: absolute; inset: 0; }
.map-svg { width: 100%; height: 100%; }
.map-pin {
  transform-origin: center;
}
.map-pin circle.pulse { fill: var(--lime); opacity: .25; animation: pulse 2.5s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulse { 0% { transform: scale(1); opacity: .25 } 100% { transform: scale(3); opacity: 0 } }

/* =========================================================
   Tweaks panel
   ========================================================= */
.tweaks-panel {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 1000;
  width: 300px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  font-family: var(--f-body);
  display: none;
}
.theme-dark .tweaks-panel { background: var(--d-panel); border-color: var(--d-line-2); color: var(--d-ink); }
.tweaks-panel.open { display: block; }
.tweaks-panel h5 {
  margin: 0 0 14px;
  font-family: var(--f-head); font-weight: 700; font-size: 14px; letter-spacing: -0.015em;
  display: flex; justify-content: space-between; align-items: center;
}
.tweaks-panel h5 .close {
  background: transparent; border: 0; cursor: pointer; font-size: 18px; color: var(--mute);
}
.tweak { margin-bottom: 16px; }
.tweak .lbl { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); margin-bottom: 8px; display: block; }
.tweak .segs { display: flex; gap: 4px; }
.tweak .segs button {
  flex: 1;
  padding: 7px 10px; border-radius: 8px;
  background: var(--bg-soft); border: 1px solid var(--line);
  cursor: pointer; font-size: 12px; color: var(--ink-3);
}
.theme-dark .tweak .segs button { background: var(--d-bg-2); border-color: var(--d-line); color: var(--d-mute); }
.tweak .segs button.active { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }
.theme-dark .tweak .segs button.active { background: var(--d-ink); color: var(--d-bg); border-color: var(--d-ink); }

/* Accent intensity — vibrant/subtle */
body.accent-subtle { --brand-grad: linear-gradient(135deg, #7fc44a 0%, #4a7a2d 50%, #2f4d1a 100%); }
body.accent-vibrant { --brand-grad: linear-gradient(135deg, #7cff12 0%, #3fb80a 40%, #1e5f05 100%); }

/* Type scale */
body.type-compact { --t-scale: 0.94; }
body.type-generous { --t-scale: 1.08; }

/* Hero variants */
.hero.var-dark {
  background: var(--ink);
  color: #fff;
}
.hero.var-dark .hero-head h1 { color: #fff; }
.hero.var-dark .hero-head .sub { color: rgba(255,255,255,.7); }
.hero.var-dark .hero-grid-bg {
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
}
.hero.var-dark .eyebrow { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.7); }
.hero.var-dark .hero-meta { color: rgba(255,255,255,.55); }
.hero.var-dark .btn-ghost { border-color: rgba(255,255,255,.2); color: #fff; }

/* Centered hero variant */
.hero.var-center .hero-head { text-align: center; margin: 0 auto; }
.hero.var-center .hero-head .sub { margin-left: auto; margin-right: auto; }
.hero.var-center .hero-cta { justify-content: center; }
.hero.var-center .hero-meta { justify-content: center; }

/* Dark density */
body.dark-density-low .touchpanel-sec,
body.dark-density-low .final-cta {
  background: var(--bg-soft); color: var(--ink);
}
body.dark-density-low .touchpanel-sec .head h2,
body.dark-density-low .final-cta h2 { color: var(--ink); }
body.dark-density-low .touchpanel-sec .head .lede { color: var(--ink-3); }
body.dark-density-low .final-cta .sub { color: var(--ink-3); }
body.dark-density-low .tp-feature { background: var(--bg); border-color: var(--line); color: var(--ink); }
body.dark-density-low .tp-feature .title { color: var(--ink); }
body.dark-density-low .tp-feature .desc { color: var(--ink-3); }
body.dark-density-low .tp-feature .icn { background: var(--bg-soft); border-color: var(--line); }

body.dark-density-high .dash-show,
body.dark-density-high .testimonial,
body.dark-density-high .pricing-sec,
body.dark-density-high .faq-sec {
  background: var(--ink);
  color: #fff;
}
body.dark-density-high .dash-show .header h2,
body.dark-density-high .testimonial-card .quote,
body.dark-density-high .pricing-sec .head h2,
body.dark-density-high .faq-sec .head h2 { color: #fff; }

/* =========================================================
   Utility
   ========================================================= */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--pill);
  font-family: var(--f-mono); font-size: 10.5px;
  background: var(--chip-bg); color: var(--ink-3);
  letter-spacing: .04em;
}
.theme-dark .pill { background: var(--d-panel2); color: var(--d-mute); }
.pill.ok { background: color-mix(in oklab, var(--ok) 16%, white); color: #1e7a31; }
.pill.warn { background: color-mix(in oklab, var(--warn) 18%, white); color: #a65c00; }

.divider {
  height: 1px; background: var(--line); margin: 20px 0;
}
.theme-dark .divider { background: var(--d-line); }
