/* =========================================================
   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-v {
  width: 520px;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  font-family: var(--f-text), 'Inter', system-ui, sans-serif;
}
.tpv-bezel {
  background: linear-gradient(165deg, #1a1a18 0%, #0a0b08 100%);
  border-radius: 42px;
  padding: 20px 18px 14px;
  box-shadow:
    0 60px 120px -30px rgba(0,0,0,.7),
    0 1px 0 rgba(255,255,255,.08) inset,
    0 -1px 0 rgba(0,0,0,.6) inset;
  position: relative;
  border: 1px solid #1f1f1c;
}
.tpv-bezel::before {
  content: "";
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #2a2a25 0%, #121210 100%);
  box-shadow: inset 0 0 1px #000;
}
.tpv-screen {
  aspect-ratio: 3 / 4;
  background: #0b0c09;
  border-radius: 24px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #f2f3ef;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.04);
  box-shadow: inset 0 0 0 1px rgba(194,240,95,.02);
}
.tpv-homebar {
  width: 100px;
  height: 4px;
  border-radius: 2px;
  background: #3a3a35;
  margin: 8px auto 0;
}

/* Status bar */
.tpv-status {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 10px;
  color: #8d8f84;
  letter-spacing: .04em;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.tpv-stat-right { display: flex; align-items: center; gap: 5px; }
.tpv-dot-live {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 6px var(--lime);
  animation: tpvPulse 2s infinite;
}
@keyframes tpvPulse { 50% { opacity: .4; } }
.tpv-sep { opacity: .3; }

/* Time + weather */
.tpv-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 6px 2px 2px;
}
.tpv-time {
  font-family: var(--f-head); font-weight: 700; font-size: 40px;
  letter-spacing: -0.03em; line-height: 1;
}
.tpv-date {
  font-family: var(--f-mono); font-size: 10.5px;
  color: #8d8f84; margin-top: 4px;
  letter-spacing: .02em;
}
.tpv-weather { text-align: right; }
.tpv-temp-out {
  font-family: var(--f-head); font-weight: 600; font-size: 22px;
  color: var(--lime); line-height: 1;
}
.tpv-wx { font-size: 10.5px; color: #8d8f84; margin-top: 4px; }

/* Room selector */
.tpv-rooms {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  padding: 2px 0;
}
.tpv-room {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 9px;
  padding: 8px 4px;
  text-align: center;
  cursor: pointer;
  color: #c8cac0;
  font-family: inherit;
  transition: all .18s;
}
.tpv-room:hover { background: rgba(194,240,95,.08); border-color: rgba(194,240,95,.2); }
.tpv-room.on {
  background: var(--lime);
  border-color: var(--lime);
  color: #0a0e06;
  box-shadow: 0 6px 18px -6px rgba(194,240,95,.5);
}
.tpv-room-n {
  font-family: var(--f-head); font-weight: 700; font-size: 11px;
  letter-spacing: -0.005em;
}
.tpv-room-s {
  font-family: var(--f-mono); font-size: 8.5px;
  margin-top: 2px; opacity: .75;
  letter-spacing: .02em;
}

/* Current room banner */
.tpv-current {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(194,240,95,.08), rgba(194,240,95,.02));
  border: 1px solid rgba(194,240,95,.14);
  border-radius: 12px;
}
.tpv-cur-k {
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .12em;
  color: var(--lime); text-transform: uppercase;
}
.tpv-cur-n {
  font-family: var(--f-head); font-weight: 700; font-size: 17px;
  margin-top: 2px; letter-spacing: -0.01em;
}
.tpv-cur-metrics { display: flex; gap: 16px; }
.tpv-cur-m-k { font-family: var(--f-mono); font-size: 8.5px; color: #8d8f84; letter-spacing: .08em; }
.tpv-cur-m-v {
  font-family: var(--f-head); font-weight: 700; font-size: 15px;
  color: #fff; margin-top: 1px;
}
.tpv-cur-m-v.warn { color: #f5a623; }

/* Climate big card */
.tpv-climate {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 12px 14px 10px;
}
.tpv-clim-k {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em;
  color: #8d8f84; text-transform: uppercase;
  margin-bottom: 6px;
}
.tpv-clim-body {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 12px; align-items: center;
  padding: 4px 0 8px;
}
.tpv-clim-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: #fff; font-size: 20px; font-family: var(--f-head);
  cursor: pointer;
  transition: all .15s;
}
.tpv-clim-btn:hover { background: rgba(194,240,95,.14); border-color: rgba(194,240,95,.4); }
.tpv-clim-temp { text-align: center; }
.tpv-clim-big {
  font-family: var(--f-head); font-weight: 700; font-size: 44px;
  color: var(--lime); line-height: 1;
  letter-spacing: -0.03em;
}
.tpv-clim-sub { font-size: 10px; color: #8d8f84; margin-top: 4px; }
.tpv-clim-modes {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.tpv-clim-modes span {
  text-align: center;
  padding: 6px 2px;
  border-radius: 7px;
  font-family: var(--f-mono); font-size: 9.5px;
  color: #8d8f84; letter-spacing: .04em;
  cursor: pointer;
}
.tpv-clim-modes span.on { background: var(--lime); color: #0a0e06; }

/* Control grid */
.tpv-controls {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.tpv-ctrl {
  aspect-ratio: 1;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px;
  color: #c8cac0;
  cursor: pointer;
  font-family: inherit;
  transition: all .18s;
  padding: 6px 2px;
}
.tpv-ctrl:hover { background: rgba(194,240,95,.08); border-color: rgba(194,240,95,.2); }
.tpv-ctrl.on {
  background: var(--lime);
  border-color: var(--lime);
  color: #0a0e06;
  box-shadow: 0 6px 14px -4px rgba(194,240,95,.45);
}
.tpv-ctrl .lbl {
  font-family: var(--f-head); font-weight: 700; font-size: 10px;
  margin-top: 3px;
}
.tpv-ctrl .state {
  font-family: var(--f-mono); font-size: 7.5px;
  opacity: .7; letter-spacing: .08em;
}
.tpv-ctrl.on .state { opacity: .85; }

/* Scenes */
.tpv-scenes {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 10px 12px;
}
.tpv-scenes-k {
  font-family: var(--f-mono); font-size: 9.5px; color: #8d8f84;
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 6px;
}
.tpv-scene-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.tpv-scene {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  padding: 6px 2px;
  color: #c8cac0;
  font-family: var(--f-head); font-weight: 600; font-size: 9.5px;
  cursor: pointer;
  transition: all .15s;
  line-height: 1.3;
}
.tpv-scene:hover { background: rgba(194,240,95,.1); color: #fff; }

/* Footer */
.tpv-foot {
  margin-top: auto;
  display: flex; justify-content: space-between;
  font-family: var(--f-mono); font-size: 9.5px; color: #6b6d62;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.04);
}

/* Back-compat shell: keep old .tpanel selectors as no-ops */
.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); }


/* =========================================================
   Hero: dark-mode device mockup (shown only in dark mode)
   ========================================================= */
.hero-product-light { display: block; }
.hero-product-dark  { display: none; }
.theme-dark .hero-product-light { display: none; }
.theme-dark .hero-product-dark  { display: block; }

.hd-stage {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: visible;
}
.hd-glow {
  position: absolute;
  left: 10%; right: 10%;
  top: 55%;
  height: 40%;
  background: radial-gradient(ellipse at 50% 50%, rgba(165,230,53,0.18) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.hd-floor {
  position: absolute;
  inset: 55% 0 0 0;
  width: 100%;
  height: 45%;
  opacity: 0.55;
}

/* Laptop — FRONT VIEW (no tilt) */
.hd-laptop {
  position: absolute;
  left: 4%;
  top: 6%;
  width: 70%;
  aspect-ratio: 16 / 10;
}
.hd-laptop-screen {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #141712 0%, #0c0f0b 100%);
  border-radius: 14px 14px 4px 4px;
  border: 1.5px solid #2a3a1c;
  box-shadow:
    0 0 0 1.5px #1a2413 inset,
    0 30px 80px -20px rgba(0,0,0,0.85),
    0 0 0 8px #161b10,
    0 0 0 9px #2a3a1c,
    0 0 60px -10px rgba(165,230,53,0.15);
  overflow: hidden;
  padding: 16px 14px 14px;
}
.hd-laptop-screen::before {
  /* camera notch */
  content: "";
  position: absolute;
  top: 4px; left: 50%; transform: translateX(-50%);
  width: 6px; height: 6px;
  background: #1a1a1a;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px #0a0d08;
}
.hd-laptop-base {
  position: absolute;
  left: -9%; right: -9%;
  bottom: -5%;
  height: 14px;
  background: linear-gradient(180deg, #1e2713 0%, #141a0d 100%);
  border-radius: 0 0 10px 10px;
  box-shadow:
    inset 0 1px 0 #2e3c1e,
    0 8px 20px rgba(0,0,0,0.5);
}
.hd-laptop-base::before {
  /* trackpad notch */
  content: "";
  position: absolute;
  left: 45%; right: 45%;
  top: 0; height: 4px;
  background: #0a0d08;
  border-radius: 0 0 4px 4px;
}
.hd-laptop-hinge {
  position: absolute;
  left: -2%; right: -2%;
  bottom: -1px;
  height: 4px;
  background: linear-gradient(180deg, #0a0d08 0%, #161b10 100%);
  border-radius: 0 0 2px 2px;
}

/* iPad — in front of laptop, to the right, FRONT VIEW */
.hd-ipad {
  position: absolute;
  right: 2%;
  bottom: 0%;
  width: 28%;
  aspect-ratio: 3 / 4;
  z-index: 2;
}
.hd-ipad-screen {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #141712 0%, #0c0f0b 100%);
  border-radius: 18px;
  box-shadow:
    0 0 0 1.5px #1a2413 inset,
    0 40px 80px -20px rgba(0,0,0,0.9),
    0 0 0 8px #161b10,
    0 0 0 9px #2a3a1c,
    0 0 80px -10px rgba(165,230,53,0.2);
  overflow: hidden;
  padding: 12px 10px 14px;
}
.hd-ipad-screen::after {
  /* home indicator */
  content: "";
  position: absolute;
  left: 40%; right: 40%; bottom: 5px;
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
}

/* UI — laptop & ipad share base */
.hd-ui {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--f-sans);
  font-size: 11px;
  color: #d8ded0;
}
.hd-ui.ipad { gap: 6px; font-size: 9.5px; }

.hd-topbar, .hd-ipad-top {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 2px;
  border-bottom: 1px solid #1f261a;
}
.hd-chip {
  background: #1a1f16;
  border: 1px solid #262d1f;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 500;
  color: #b8c0ad;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.hd-chip-ghost { background: transparent; }
.hd-chip-green {
  background: linear-gradient(90deg, rgba(122,179,48,0.18) 0%, rgba(80,130,20,0.18) 100%);
  border-color: rgba(165,230,53,0.25);
  color: #c5f467;
}
.hd-dot { width: 6px; height: 6px; border-radius: 50%; background: #a5e635; box-shadow: 0 0 6px #a5e635; }
.hd-spacer { flex: 1; }
.hd-avatar {
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, #a5e635, #6bb810);
  flex-shrink: 0;
}

.hd-prop-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 6px;
  border-bottom: 1px solid #1f261a;
}
.hd-prop-thumb {
  width: 34px; height: 34px; border-radius: 6px;
  background:
    linear-gradient(135deg, #3a5626 0%, #1e2d14 100%),
    #1a1f16;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.hd-prop-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(165,230,53,0.3), transparent 60%);
}
.hd-prop-meta { flex: 1; min-width: 0; }
.hd-prop-name { font-weight: 600; color: #eaefe0; font-size: 11px; margin-bottom: 2px; }
.hd-prop-sub { font-size: 9.5px; display: flex; gap: 10px; }
.hd-tag-ok { color: #a5e635; }
.hd-muted { color: #7e8678; }
.hd-prop-kpi { text-align: right; flex-shrink: 0; }
.hd-kpi-label { font-size: 9px; color: #7e8678; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
.hd-kpi-value { font-family: var(--f-head); font-size: 15px; color: #eaefe0; font-weight: 700; letter-spacing: -0.02em; }

.hd-row-2 {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1.8fr;
  gap: 8px;
  padding: 4px 2px;
}
.hd-kpi-card {
  background: #13180f;
  border: 1px solid #232a1c;
  border-radius: 8px;
  padding: 8px 10px;
}
.hd-kpi-card.main {
  background: linear-gradient(135deg, #1a2313 0%, #131810 100%);
  border-color: #2f4020;
}
.hd-kpi-small { font-family: var(--f-head); font-size: 14px; color: #a5e635; font-weight: 700; letter-spacing: -0.02em; }
.hd-kpi-big { font-family: var(--f-head); font-size: 22px; color: #eaefe0; font-weight: 800; letter-spacing: -0.03em; }
.hd-kpi-cap { font-size: 9.5px; color: #7e8678; margin-top: 2px; }

.hd-valuestream {
  background: #13180f;
  border: 1px solid #232a1c;
  border-radius: 8px;
  padding: 7px 10px;
}
.hd-vs-title { font-size: 9.5px; color: #7e8678; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.hd-vs-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; color: #c8cebe;
  padding: 1px 0;
}
.hd-vs-dot { width: 4px; height: 4px; border-radius: 50%; background: #a5e635; }

.hd-chart {
  background: #13180f;
  border: 1px solid #232a1c;
  border-radius: 8px;
  padding: 8px 10px 4px;
  margin: 0 2px;
}
.hd-chart-title { font-size: 10px; color: #9ba295; margin-bottom: 4px; }
.hd-chart-svg { width: 100%; height: 48px; display: block; }

.hd-bottom-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  padding: 0 2px;
}
.hd-bcard {
  background: #13180f;
  border: 1px solid #232a1c;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 10px;
}
.hd-bcard-head { font-weight: 600; color: #eaefe0; margin-bottom: 4px; font-size: 10px; }
.hd-bcard-row { display: flex; justify-content: space-between; font-size: 9.5px; padding: 1px 0; }

/* iPad UI */
.hd-ipad-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 8px 4px;
  border-bottom: 1px solid #1f261a;
}
.hd-istat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hd-istat-v { font-family: var(--f-head); font-size: 18px; font-weight: 800; color: #eaefe0; letter-spacing: -0.03em; }
.hd-istat-l { font-size: 8.5px; color: #7e8678; text-transform: uppercase; letter-spacing: 0.04em; }

.hd-ai-title {
  font-size: 10px; font-weight: 600; color: #c5f467; padding: 6px 4px 2px;
}
.hd-ai-card {
  display: flex; gap: 8px; align-items: flex-start;
  background: #13180f;
  border: 1px solid #232a1c;
  border-left: 2px solid #a5e635;
  border-radius: 6px;
  padding: 7px 8px;
  margin: 3px 0;
}
.hd-ai-card.warn { border-left-color: #f59e0b; }
.hd-ai-icon {
  width: 20px; height: 20px; border-radius: 4px;
  background: #1e2718;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  color: #a5e635;
  flex-shrink: 0;
}
.hd-ai-card.warn .hd-ai-icon { color: #f59e0b; }
.hd-ai-body { flex: 1; min-width: 0; }
.hd-ai-head { font-weight: 600; font-size: 10px; color: #eaefe0; margin-bottom: 2px; line-height: 1.25; }
.hd-ai-desc { font-size: 9px; line-height: 1.35; }
.hd-ai-btn {
  background: #1a2313;
  border: 1px solid #2f4020;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 9.5px;
  font-weight: 600;
  color: #a5e635;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
}
.hd-ai-btn.warn { color: #f59e0b; border-color: #4a3418; }

@media (max-width: 900px) {
  .hd-stage { aspect-ratio: 3 / 2; }
  .hd-laptop { width: 70%; left: 3%; transform: rotateX(22deg) rotateY(18deg) rotateZ(-2deg); }
  .hd-ipad { width: 36%; right: 2%; top: 18%; }
  .hd-ui { font-size: 9px; }
  .hd-kpi-big { font-size: 16px; }
}


/* =========================================================
   Feature visual boxes — consistent 580px, fully filled
   ========================================================= */
.feature-visual { padding: 0; }
.fv-product { background: transparent !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; display: flex; flex-direction: column; gap: 14px; height: auto !important; min-height: 580px; }
.fv-product-frame {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(20,30,15,.25);
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
.fv-product-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: #f6f7f4;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 11px; color: var(--mute);
  flex-shrink: 0;
}
.fv-product-bar .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #d8dcd2;
}
.fv-product-bar .dot.r { background: #ff6258; }
.fv-product-bar .dot.y { background: #febc2e; }
.fv-product-bar .dot.g { background: #28c840; }
.fv-product-url {
  margin-left: 12px;
  padding: 3px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  letter-spacing: .02em;
}
.fv-product-img-wrap {
  flex: 1 1 auto;
  min-height: 0;
  background: #fff;
  display: flex; align-items: flex-start; justify-content: center;
  overflow: hidden;
}
.fv-product-img {
  width: 100%;
  height: auto;
  max-height: 100%;
  display: block;
  object-fit: contain;
  object-position: top center;
}
.fv-product-cap {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--mute-2);
  letter-spacing: .02em;
  text-align: center;
  padding: 0 12px;
}
.feature-visual .fv-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--line);
}
.theme-dark .feature-visual .fv-head { border-color: var(--d-line); }
.fv-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute);
}
.fv-title {
  font-family: var(--f-head);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-top: 4px;
  line-height: 1.15;
}
.theme-dark .fv-title { color: var(--d-ink); }
.fv-head-r { text-align: right; }
.fv-kpi-big {
  font-family: var(--f-head);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--forest);
}
.theme-dark .fv-kpi-big { color: var(--lime); }
.fv-kpi-sub { font-size: 12px; color: var(--mute); margin-top: 2px; }

.fv-tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--bg-softer);
  border: 1px solid var(--line);
  color: var(--mute);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.fv-tag.ok { background: color-mix(in oklab, var(--ok) 14%, white); color: #1e7a31; border-color: transparent; }
.theme-dark .fv-tag.ok { background: color-mix(in oklab, var(--ok) 22%, black); color: #7dd97c; }
.fv-tag.warn { background: color-mix(in oklab, var(--warn) 18%, white); color: #a65c00; border-color: transparent; }
.theme-dark .fv-tag.warn { background: color-mix(in oklab, var(--warn) 24%, black); color: #ffbe5c; }
.fv-tag.mute { color: var(--mute-2); }
.theme-dark .fv-tag { background: var(--d-panel2); border-color: var(--d-line); color: var(--d-mute); }

.fv-foot {
  padding: 16px 28px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 24px;
}
.theme-dark .fv-foot { border-color: var(--d-line); }
.fv-foot.fv-3col { display: grid; grid-template-columns: repeat(3, 1fr); }
.fv-foot-k {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
}
.fv-foot-v {
  font-family: var(--f-head);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-top: 4px;
}
.theme-dark .fv-foot-v { color: var(--d-ink); }

.fv-chart-wrap {
  padding: 20px 28px;
  display: flex;
  align-items: flex-end;
  justify-content: stretch;
}
.fv-chart-wrap > * { width: 100%; }

/* Energy tab bars fill vertically */
.fv-energy .ebars { width: 100%; height: 100%; min-height: 220px; }

/* Water stats grid */
.fv-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 16px 28px 0;
}
.fv-stat-box {
  border: 1px solid var(--line);
  background: var(--bg-softer);
  border-radius: 12px;
  padding: 12px 14px;
}
.theme-dark .fv-stat-box { background: var(--d-bg-2); border-color: var(--d-line); }
.fv-stat-box.hi { border-color: var(--warn); background: color-mix(in oklab, var(--warn) 10%, white); }
.theme-dark .fv-stat-box.hi { background: color-mix(in oklab, var(--warn) 20%, black); border-color: var(--warn); }
.fv-stat-box.hi .fv-foot-v { color: var(--warn); }

/* Action bar (bottom of water/report/security) */
.fv-action-bar {
  margin-top: auto;
  padding: 16px 28px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.fv-action-bar.light {
  background: var(--bg-soft);
  color: var(--ink);
  border-top: 1px solid var(--line);
}
.theme-dark .fv-action-bar.light { background: var(--d-bg-2); border-color: var(--d-line); color: var(--d-ink); }
.fv-action-title { font-size: 14.5px; font-weight: 600; margin-top: 2px; }

/* Access list */
.fv-list {
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}
.fv-guest-row {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.theme-dark .fv-guest-row { border-color: var(--d-line); background: var(--d-bg-2); }
.fv-guest-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(107,216,10,.18);
}
.fv-guest-name { font-family: var(--f-head); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.theme-dark .fv-guest-name { color: var(--d-ink); }
.fv-code {
  font-family: var(--f-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--forest);
}
.theme-dark .fv-code { color: var(--lime); }
.fv-code.off { color: var(--mute-2); }

/* Security grid */
.fv-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 20px 28px;
  align-content: start;
}
.fv-sec-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}
.theme-dark .fv-sec-card { border-color: var(--d-line); background: var(--d-bg-2); }
.fv-sec-v {
  font-family: var(--f-head);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 8px 0 4px;
  color: var(--ink);
}
.theme-dark .fv-sec-v { color: var(--d-ink); }
.fv-sec-s { font-size: 12.5px; color: var(--mute); }

/* Report */
.fv-report-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 22px 28px;
  align-items: start;
}
.fv-report-col { display: flex; flex-direction: column; gap: 14px; }
.fv-score-ring {
  position: relative;
  width: 130px; height: 130px;
  margin: 0 auto;
}
.fv-score-ring svg { width: 100%; height: 100%; }
.fv-score-num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-head);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.theme-dark .fv-score-num { color: var(--d-ink); }
.fv-score-lbl {
  text-align: center;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 4px;
}
.fv-report-list { display: flex; flex-direction: column; gap: 6px; }
.fv-report-line {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.theme-dark .fv-report-line { border-color: var(--d-line); }
.fv-report-summary {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-3);
  padding: 12px 14px;
  background: var(--bg-softer);
  border-radius: 10px;
  border: 1px solid var(--line);
}
.theme-dark .fv-report-summary { background: var(--d-bg-2); border-color: var(--d-line); color: var(--d-mute); }
.fv-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.fv-mini-chip {
  display: inline-flex;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-3);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 500;
}
.theme-dark .fv-mini-chip { background: var(--d-panel2); border-color: var(--d-line); color: var(--d-mute); }

/* Guest portal */
.fv-portal-body {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 24px;
  padding: 20px 28px;
  align-items: center;
}
.fv-portal-phone {
  position: relative;
  border-radius: 28px;
  border: 8px solid #1a1a1a;
  overflow: hidden;
  aspect-ratio: 9/19;
  background: linear-gradient(180deg, #0f1409 0%, #1a2111 100%);
  color: #fff;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,.3);
}
.fv-phone-notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 18px; background: #000; border-radius: 10px; z-index: 2;
}
.fv-phone-screen {
  padding: 24px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}
.fv-phone-topbar {
  font-family: var(--f-mono);
  font-size: 9.5px;
  display: flex;
  justify-content: space-between;
  opacity: .7;
}
.fv-phone-title { text-align: center; }
.fv-phone-h {
  font-family: var(--f-head);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.fv-phone-sub { font-size: 10.5px; opacity: .65; margin-top: 3px; }
.fv-phone-list { display: flex; flex-direction: column; gap: 6px; }
.fv-phone-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  font-size: 11.5px;
}
.fv-phone-ic {
  width: 22px; height: 22px;
  background: rgba(165,230,53,.18);
  color: var(--lime);
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
}
.fv-phone-v { margin-left: auto; opacity: .8; font-family: var(--f-mono); font-size: 10.5px; }
.fv-phone-cta {
  margin-top: auto;
  text-align: center;
  padding: 10px;
  background: var(--lime);
  color: #0b1006;
  border-radius: 10px;
  font-weight: 700;
  font-size: 11.5px;
}
.fv-portal-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.fv-portal-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.theme-dark .fv-portal-item { background: var(--d-bg-2); border-color: var(--d-line); }
.fv-portal-v {
  font-family: var(--f-head);
  font-size: 14.5px;
  font-weight: 600;
  margin-top: 4px;
  letter-spacing: -0.01em;
}
.theme-dark .fv-portal-v { color: var(--d-ink); }

@media (max-width: 900px) {
  .feature-visual { height: auto; min-height: 520px; }
  .fv-report-body, .fv-portal-body { grid-template-columns: 1fr; }
  .fv-grid-2, .fv-portal-info { grid-template-columns: 1fr; }
  .fv-grid-4 { grid-template-columns: repeat(2, 1fr); }
}


/* Tablet typography override — use normal sans, not Cormorant Garamond/Space Grotesk */
.tpv-brand, .tpv-status, .tpv-head, .tpv-time, .tpv-date, .tpv-weather,
.tpv-temp-out, .tpv-wx, .tpv-rooms, .tpv-room, .tpv-room-n, .tpv-room-s,
.tpv-current, .tpv-cur-k, .tpv-cur-n, .tpv-cur-m-k, .tpv-cur-m-v,
.tpv-climate, .tpv-clim-k, .tpv-clim-btn, .tpv-clim-big, .tpv-clim-sub, .tpv-clim-modes,
.tpv-controls, .tpv-ctrl, .tpv-ctrl .lbl, .tpv-ctrl .state,
.tpv-scenes, .tpv-scenes-k, .tpv-scene, .tpv-foot {
  font-family: var(--f-text), 'Inter', system-ui, -apple-system, sans-serif !important;
}
.tpv-time { font-weight: 600; letter-spacing: -0.02em; }
.tpv-room-n, .tpv-cur-n, .tpv-ctrl .lbl { font-weight: 600; letter-spacing: -0.005em; }
.tpv-clim-big { font-weight: 600; letter-spacing: -0.02em; }
.tpv-cur-m-v { font-weight: 600; }
.tpv-scene { font-weight: 500; }

/* Brand bar at top of tablet */
.tpv-brand {
  display: flex; justify-content: space-between; align-items: center;
  padding: 2px 2px 8px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.tpv-logo { height: 22px; width: auto; display: block; }
.tpv-brand-r {
  display: flex; align-items: center; gap: 6px;
  font-size: 10.5px; color: #a8aa9f;
  letter-spacing: .02em;
}


/* ============================================================
   Stats — editorial redesign
   ============================================================ */
.stats-editorial {
  position: relative;
  background: #0b0c09;
  color: #fff;
  padding: 140px 0 120px;
  overflow: hidden;
  isolation: isolate;
}
.theme-dark .stats-editorial { background: #050604; }
.stats-edit-grain {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(107,216,10,.12), transparent 55%),
    radial-gradient(circle at 85% 85%, rgba(107,216,10,.08), transparent 55%),
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: auto, auto, 80px 80px, 80px 80px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(1400px 800px at 50% 50%, black, transparent 80%);
}
.stats-edit-inner { position: relative; z-index: 1; }
.stats-edit-head {
  max-width: 880px;
  margin: 0 auto 72px;
  text-align: center;
}
.stats-edit-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 100px;
  background: rgba(255,255,255,.02);
}
.stats-edit-eyebrow .dot-lg {
  width: 6px; height: 6px; border-radius: 50%;
  background: #6bd80a;
  box-shadow: 0 0 10px rgba(107,216,10,.8);
}
.stats-edit-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.025em;
  margin: 28px 0 24px;
  color: #fff;
}
.stats-edit-title em {
  font-style: italic;
  font-weight: 400;
  color: #6bd80a;
  font-family: 'Goodly', Georgia, serif;
}
.stats-edit-lede {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255,255,255,.6);
  max-width: 620px;
  margin: 0 auto;
}
.stats-edit-meta {
  margin-top: 28px;
  display: inline-flex; gap: 14px; align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: rgba(255,255,255,.4);
  letter-spacing: .05em;
}
.stats-edit-meta .k {
  color: #6bd80a;
  letter-spacing: .14em;
}

.stats-edit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255,255,255,.015);
  backdrop-filter: blur(8px);
}
@media (max-width: 1100px) { .stats-edit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .stats-edit-grid { grid-template-columns: 1fr; } }

.stat-card {
  position: relative;
  padding: 36px 28px 32px;
  border-right: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column;
  min-height: 340px;
  transition: background .3s;
}
.stat-card:last-child { border-right: 0; }
@media (max-width: 1100px) {
  .stat-card:nth-child(2n) { border-right: 0; }
  .stat-card:nth-child(1), .stat-card:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.08); }
}
@media (max-width: 600px) {
  .stat-card { border-right: 0 !important; border-bottom: 1px solid rgba(255,255,255,.08); }
  .stat-card:last-child { border-bottom: 0; }
}
.stat-card:hover { background: rgba(107,216,10,.04); }

.stat-card-top {
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.stat-card-idx {
  color: #6bd80a;
  font-weight: 600;
}
.stat-card-ctx {
  color: rgba(255,255,255,.4);
  text-align: right;
  max-width: 60%;
}

.stat-card-num-row {
  display: flex; align-items: baseline; gap: 4px;
  margin-bottom: 20px;
}
.stat-card-num {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(64px, 7vw, 92px);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.045em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat-card-unit {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 400;
  color: #6bd80a;
  letter-spacing: -.02em;
}

.stat-card-viz {
  flex: 1;
  display: flex; align-items: center; justify-content: flex-start;
  margin-bottom: 20px;
  min-height: 60px;
}
.stat-viz { width: 100%; max-width: 160px; height: 60px; }

.stat-card-foot {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 18px;
}
.stat-card-lbl {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 6px;
}
.stat-card-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  line-height: 1.4;
}

.stats-edit-foot {
  margin-top: 48px;
  display: flex; align-items: center; gap: 16px; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  flex-wrap: wrap;
  text-align: center;
}
.stats-edit-foot .line {
  flex: 0 0 40px;
  height: 1px;
  background: rgba(255,255,255,.15);
}
.stats-edit-foot span:first-child { color: #6bd80a; letter-spacing: .14em; }
@media (max-width: 700px) {
  .stats-edit-foot { flex-direction: column; gap: 8px; }
  .stats-edit-foot .line { display: none; }
}


/* Pricing — included-sensors chip + addon note */
.tier-incl {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 12px 14px;
  background: rgba(0,0,0,.03);
  border: 1px dashed rgba(0,0,0,.12);
  border-radius: 10px;
  margin: 4px 0 20px;
}
.price-card.featured .tier-incl {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.2);
}
.theme-dark .tier-incl {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.1);
}
.tier-incl-k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.price-card.featured .tier-incl-k { color: rgba(255,255,255,.6); }
.theme-dark .tier-incl-k { color: var(--d-mute); }
.tier-incl-v {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.price-card.featured .tier-incl-v { color: #fff; }
.theme-dark .tier-incl-v { color: var(--d-ink); }

.pricing-addon {
  margin-top: 32px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-3);
  padding: 14px 22px;
  background: rgba(107,216,10,.08);
  border: 1px solid rgba(107,216,10,.3);
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
.pricing-addon::before {
  content: "→";
  margin-right: 10px;
  color: var(--lime);
  font-weight: 600;
}
.theme-dark .pricing-addon { color: var(--d-ink); }
.pricing-sec .price-sub { margin-top: 20px; }


/* Pricing — AI report + contract banners */
.pricing-banners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 860px) { .pricing-banners { grid-template-columns: 1fr; } }
.pricing-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
}
.theme-dark .pricing-banner {
  background: var(--d-panel);
  border-color: var(--d-line);
}
.banner-ai {
  background: linear-gradient(135deg, rgba(107,216,10,.06), rgba(107,216,10,.02));
  border-color: rgba(107,216,10,.25);
}
.banner-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(107,216,10,.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  flex-shrink: 0;
}
.theme-dark .banner-icon { color: var(--d-ink); }
.banner-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.3;
}
.theme-dark .banner-title { color: var(--d-ink); }
.banner-body {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-3);
}
.theme-dark .banner-body { color: var(--d-mute); }
.banner-example {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(0,0,0,.03);
  border-left: 2px solid var(--lime);
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink);
  display: flex;
  gap: 10px;
}
.banner-example .k {
  color: var(--lime);
  font-weight: 600;
  letter-spacing: .1em;
  flex-shrink: 0;
}
.theme-dark .banner-example {
  background: rgba(255,255,255,.04);
  color: var(--d-ink);
}


/* ============================================================
   Solutions — problem / rule grid
   ============================================================ */
.solutions-sec {
  background: var(--bg-soft);
  padding: 140px 0 140px;
  position: relative;
}
.theme-dark .solutions-sec { background: var(--d-bg); }

.sol-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 72px;
}
.sol-highlight {
  color: var(--lime);
  font-style: normal;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -.01em;
  position: relative;
}
.sol-highlight::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 6px;
  background: linear-gradient(90deg, transparent, rgba(107,216,10,.35), transparent);
  border-radius: 2px;
}

.sol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.sol-card-wide { grid-column: span 2; }
@media (max-width: 1100px) {
  .sol-grid { grid-template-columns: repeat(2, 1fr); }
  .sol-card-wide { grid-column: span 2; }
}
@media (max-width: 680px) {
  .sol-grid { grid-template-columns: 1fr; }
  .sol-card-wide { grid-column: span 1; }
}

.sol-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 26px 26px;
  box-shadow: 0 1px 2px rgba(0,0,0,.02), 0 8px 24px -16px rgba(0,0,0,.08);
  transition: transform .25s, border-color .4s, box-shadow .25s, background .4s, color .4s;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
.theme-dark .sol-card {
  background: var(--d-panel);
  border-color: var(--d-line);
  box-shadow: none;
}
.sol-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(107,216,10,.18), transparent 60%), linear-gradient(135deg, #0b0c09 0%, #14171f 60%, #1b1208 100%);
  opacity: 0;
  transition: opacity .45s ease;
  z-index: 0;
  pointer-events: none;
}
.sol-card > * { position: relative; z-index: 1; }
.sol-card:hover {
  transform: translateY(-3px);
  border-color: rgba(107,216,10,.5);
  box-shadow: 0 1px 2px rgba(0,0,0,.1), 0 18px 40px -18px rgba(107,216,10,.2);
}
.sol-card:hover::before { opacity: 1; }
.sol-card:hover .sol-card-title,
.sol-card:hover .sol-card-body,
.sol-card:hover .sol-data-v,
.sol-card:hover .sol-rule-body { color: #fff; }
.sol-card:hover .sol-card-quote { color: #b8a9ff; border-left-color: rgba(184,169,255,.5); }
.sol-card:hover .sol-card-icon { background: rgba(255,255,255,.08); color: #fff; }
.sol-card:hover .sol-rule { background: rgba(107,216,10,.14); border-color: rgba(107,216,10,.35); }
.sol-card:hover .sol-rule-head { color: rgba(255,255,255,.55); }
.sol-card:hover .sol-card-data { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }
.sol-card:hover .sol-data-k { color: rgba(255,255,255,.65); }
.sol-card:hover .sol-data-row { border-bottom-color: rgba(255,255,255,.08); }
.sol-card:hover .sol-data-row.tone-ok .sol-data-k { color: #fff; }
.sol-card-wide {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: start;
}
.sol-card-wide .sol-card-main { min-width: 0; }

.sol-card-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  background: rgba(0,0,0,.04);
  flex-shrink: 0;
}
.theme-dark .sol-card-icon {
  background: rgba(255,255,255,.06);
  color: var(--d-ink);
}

.sol-card-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 0 0 10px;
  color: var(--ink);
  line-height: 1.25;
}
.theme-dark .sol-card-title { color: var(--d-ink); }

.sol-card-quote {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-style: normal;
  font-size: 14.5px;
  line-height: 1.45;
  color: #7c5cff;
  margin: 0 0 14px;
  font-weight: 500;
  padding-left: 14px;
  border-left: 2px solid rgba(124,92,255,.35);
  position: relative;
}
.theme-dark .sol-card-quote { color: #a89aff; border-left-color: rgba(168,154,255,.3); }

.sol-card-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-3);
  margin: 0 0 18px;
}
.theme-dark .sol-card-body { color: var(--d-mute); }

.sol-rule {
  margin-top: auto;
  background: rgba(107,216,10,.05);
  border: 1px solid rgba(107,216,10,.18);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: 'JetBrains Mono', monospace;
}
.theme-dark .sol-rule {
  background: rgba(107,216,10,.08);
  border-color: rgba(107,216,10,.22);
}
.sol-rule-head {
  display: flex; align-items: center; gap: 6px;
  font-size: 9.5px;
  letter-spacing: .16em;
  color: var(--ink-3);
  margin-bottom: 8px;
  font-weight: 600;
}
.theme-dark .sol-rule-head { color: var(--d-mute); }
.sol-rule-body {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink);
}
.theme-dark .sol-rule-body { color: var(--d-ink); }
.sol-rule-line { display: block; }
.sol-rule-line + .sol-rule-line { margin-top: 4px; }
.sol-kw {
  color: #6bd80a;
  font-weight: 600;
  letter-spacing: .04em;
}

.sol-card-data {
  background: rgba(0,0,0,.02);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  width: 200px;
  align-self: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
}
.theme-dark .sol-card-data {
  background: rgba(255,255,255,.03);
  border-color: var(--d-line);
}
.sol-data-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.theme-dark .sol-data-row { border-bottom-color: rgba(255,255,255,.06); }
.sol-data-row:last-child { border-bottom: 0; padding-top: 8px; }
.sol-data-k {
  color: var(--ink-3);
  letter-spacing: .02em;
}
.theme-dark .sol-data-k { color: var(--d-mute); }
.sol-data-v {
  color: var(--ink);
  font-weight: 500;
}
.theme-dark .sol-data-v { color: var(--d-ink); }
.sol-data-row.tone-warn .sol-data-v { color: #e34935; }
.sol-data-row.tone-ok .sol-data-v { color: #6bd80a; font-weight: 600; }
.sol-data-row.tone-ok .sol-data-k { color: var(--ink); font-weight: 500; }
.theme-dark .sol-data-row.tone-ok .sol-data-k { color: var(--d-ink); }

@media (max-width: 1100px) {
  .sol-card-wide { display: flex; flex-direction: column; }
  .sol-card-data { width: 100%; }
}


/* ============================================
   HOW IT WORKS — editorial dark (matches stats)
   ============================================ */
.how-edit {
  position: relative;
  background: #0b0c09;
  color: #fff;
  padding: 140px 0 120px;
  overflow: hidden;
  isolation: isolate;
}
.theme-dark .how-edit { background: #050604; }
.how-edit-grain {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 15%, rgba(107,216,10,.12), transparent 55%),
    radial-gradient(circle at 85% 90%, rgba(107,216,10,.08), transparent 55%),
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: auto, auto, 80px 80px, 80px 80px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(1400px 800px at 50% 50%, black, transparent 80%);
}
.how-edit-inner { position: relative; z-index: 1; }

.how-edit-head {
  max-width: 880px;
  margin: 0 auto 72px;
  text-align: center;
}
.how-edit-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 100px;
  background: rgba(255,255,255,.02);
}
.how-edit-eyebrow .dot-lg {
  width: 6px; height: 6px; border-radius: 50%;
  background: #6bd80a;
  box-shadow: 0 0 10px rgba(107,216,10,.8);
}
.how-edit-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.025em;
  margin: 28px 0 24px;
  color: #fff;
}
.how-edit-title em {
  font-style: italic;
  font-weight: 400;
  color: #6bd80a;
  font-family: 'Goodly', Georgia, serif;
}
.how-edit-lede {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255,255,255,.6);
  max-width: 620px;
  margin: 0 auto;
}
.how-edit-meta {
  margin-top: 28px;
  display: inline-flex; gap: 14px; align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: rgba(255,255,255,.4);
  letter-spacing: .05em;
}
.how-edit-meta .k { color: #6bd80a; letter-spacing: .14em; }

.how-edit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255,255,255,.015);
  backdrop-filter: blur(8px);
}
@media (max-width: 1100px) { .how-edit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .how-edit-grid { grid-template-columns: 1fr; } }

.how-edit-card {
  position: relative;
  padding: 32px 26px 28px;
  border-right: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column;
  min-height: 360px;
  transition: background .3s;
}
.how-edit-card:last-child { border-right: 0; }
@media (max-width: 1100px) {
  .how-edit-card:nth-child(2n) { border-right: 0; }
  .how-edit-card:nth-child(1), .how-edit-card:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.08); }
}
@media (max-width: 600px) {
  .how-edit-card { border-right: 0 !important; border-bottom: 1px solid rgba(255,255,255,.08); }
  .how-edit-card:last-child { border-bottom: 0; }
}
.how-edit-card:hover { background: rgba(107,216,10,.04); }

.how-edit-top {
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.how-edit-idx { color: #6bd80a; font-weight: 600; }
.how-edit-tag { color: rgba(255,255,255,.4); text-align: right; }

.how-edit-viz {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  min-height: 90px;
}
.how-viz { width: 100%; max-width: 180px; height: 90px; }

.how-edit-foot {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 18px;
}
.how-edit-lbl {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 8px;
}
.how-edit-desc {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,.55);
}

.how-edit-footbar {
  margin-top: 48px;
  display: flex; align-items: center; gap: 16px; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  flex-wrap: wrap;
  text-align: center;
}
.how-edit-footbar .line {
  flex: 0 0 40px;
  height: 1px;
  background: rgba(255,255,255,.15);
}
.how-edit-footbar span:first-child { color: #6bd80a; letter-spacing: .14em; }
@media (max-width: 700px) {
  .how-edit-footbar { flex-direction: column; gap: 8px; }
  .how-edit-footbar .line { display: none; }
}


/* ============================================
   AJAX / PARTNERSHIP — editorial dark
   ============================================ */
.ajax-edit {
  position: relative;
  background: #0b0c09;
  color: #fff;
  padding: 140px 0 120px;
  overflow: hidden;
  isolation: isolate;
}
.theme-dark .ajax-edit { background: #050604; }
.ajax-edit-grain {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 85% 15%, rgba(107,216,10,.12), transparent 55%),
    radial-gradient(circle at 15% 90%, rgba(141,138,255,.08), transparent 55%),
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: auto, auto, 80px 80px, 80px 80px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(1400px 800px at 50% 50%, black, transparent 80%);
}
.ajax-edit-inner { position: relative; z-index: 1; }

.ajax-edit-head { max-width: 880px; margin: 0 auto 72px; text-align: center; }
.ajax-edit-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 100px;
  background: rgba(255,255,255,.02);
}
.ajax-edit-eyebrow .dot-lg {
  width: 6px; height: 6px; border-radius: 50%;
  background: #6bd80a;
  box-shadow: 0 0 10px rgba(107,216,10,.8);
}
.ajax-edit-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.025em;
  margin: 28px 0 24px;
  color: #fff;
}
.ajax-edit-title em {
  font-style: italic;
  font-weight: 400;
  color: #6bd80a;
  font-family: 'Goodly', Georgia, serif;
}
.ajax-edit-lede {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255,255,255,.6);
  max-width: 620px;
  margin: 0 auto;
}
.ajax-edit-meta {
  margin-top: 28px;
  display: inline-flex; gap: 14px; align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: rgba(255,255,255,.4);
  letter-spacing: .05em;
}
.ajax-edit-meta .k { color: #6bd80a; letter-spacing: .14em; }

.ajax-edit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255,255,255,.015);
  backdrop-filter: blur(8px);
}
@media (max-width: 1100px) { .ajax-edit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .ajax-edit-grid { grid-template-columns: 1fr; } }

.ajax-edit-card {
  position: relative;
  padding: 32px 26px 28px;
  border-right: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column;
  min-height: 320px;
  transition: background .3s;
}
.ajax-edit-card:last-child { border-right: 0; }
@media (max-width: 1100px) {
  .ajax-edit-card:nth-child(2n) { border-right: 0; }
  .ajax-edit-card:nth-child(1), .ajax-edit-card:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.08); }
}
@media (max-width: 600px) {
  .ajax-edit-card { border-right: 0 !important; border-bottom: 1px solid rgba(255,255,255,.08); }
  .ajax-edit-card:last-child { border-bottom: 0; }
}
.ajax-edit-card:hover { background: rgba(107,216,10,.04); }

.ajax-edit-top {
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.ajax-edit-idx { color: #6bd80a; font-weight: 600; }
.ajax-edit-tag { color: rgba(255,255,255,.4); text-align: right; }

.ajax-edit-viz {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  min-height: 80px;
}
.ajax-viz { width: 100%; max-width: 200px; height: 80px; }

.ajax-edit-foot {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 18px;
}
.ajax-edit-lbl {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 6px;
}
.ajax-edit-desc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}


/* ============================================
   MAP — editorial dark
   ============================================ */
.map-edit {
  position: relative;
  background: #0b0c09;
  color: #fff;
  padding: 140px 0 120px;
  overflow: hidden;
  isolation: isolate;
}
.theme-dark .map-edit { background: #050604; }
.map-edit-grain {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 12% 40%, rgba(107,216,10,.12), transparent 55%),
    radial-gradient(circle at 90% 70%, rgba(107,216,10,.08), transparent 55%),
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: auto, auto, 80px 80px, 80px 80px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(1400px 800px at 50% 50%, black, transparent 80%);
}
.map-edit-inner { position: relative; z-index: 1; }

.map-edit-head { max-width: 880px; margin: 0 auto 64px; text-align: center; }
.map-edit-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 100px;
  background: rgba(255,255,255,.02);
}
.map-edit-eyebrow .dot-lg {
  width: 6px; height: 6px; border-radius: 50%;
  background: #6bd80a;
  box-shadow: 0 0 10px rgba(107,216,10,.8);
}
.map-edit-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.025em;
  margin: 28px 0 24px;
  color: #fff;
}
.map-edit-title em {
  font-style: italic;
  font-weight: 400;
  color: #6bd80a;
  font-family: 'Goodly', Georgia, serif;
}
.map-edit-lede {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255,255,255,.6);
  max-width: 620px;
  margin: 0 auto;
}
.map-edit-meta {
  margin-top: 28px;
  display: inline-flex; gap: 14px; align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: rgba(255,255,255,.4);
  letter-spacing: .05em;
}
.map-edit-meta .k { color: #6bd80a; letter-spacing: .14em; }

.map-edit-body {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
}
@media (max-width: 1000px) {
  .map-edit-body { grid-template-columns: 1fr; }
}

.map-edit-frame, .map-edit-side {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,.015);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
}
.map-edit-framebar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.map-edit-idx { color: #6bd80a; font-weight: 600; }
.map-edit-tag { color: rgba(255,255,255,.5); }
.map-edit-pulse {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.55);
}
.map-edit-pulse .dot-lg {
  width: 6px; height: 6px; border-radius: 50%;
  background: #6bd80a;
  box-shadow: 0 0 10px rgba(107,216,10,.8);
  animation: mapPulse 1.6s ease-in-out infinite;
}
@keyframes mapPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.85); }
}
.map-edit-count { margin-left: auto; color: rgba(255,255,255,.4); }

.map-edit-frame-inner {
  flex: 1;
  padding: 14px;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-edit-frame-inner .map-svg { width: 100%; height: 100%; max-height: 480px; }

/* Dark theme map SVG fills */
.map-edit .map-svg path[fill="#f0f0ea"],
.map-edit .map-svg rect[fill="#f0f0ea"] {
  fill: rgba(255,255,255,.04) !important;
  stroke: rgba(255,255,255,.12) !important;
}
.map-edit .map-svg text[fill="#9a9d95"] { fill: rgba(255,255,255,.35) !important; }
.map-edit .map-svg text[fill="#1a1a1a"] { fill: #fff !important; }
.map-edit .map-svg text[fill="#6b6f66"] { fill: rgba(255,255,255,.5) !important; }
.map-edit .map-svg .map-pin circle[stroke="#fff"] { stroke: #0b0c09 !important; }
.map-edit .map-svg .map-pin circle[stroke="#1a1a1a"] { stroke: #6bd80a !important; }
.map-edit .map-svg rect[fill*="mgrid"] { fill: transparent !important; }

/* Sidebar list (map-edit) — restyle existing map-list items to fit dark canvas */
.map-edit-side .map-list {
  padding: 10px;
  gap: 6px;
  display: flex;
  flex-direction: column;
}
.map-edit-side .map-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.015);
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.map-edit-side .map-item:hover {
  background: rgba(107,216,10,.05);
  border-color: rgba(107,216,10,.25);
}
.map-edit-side .map-item.active {
  background: rgba(107,216,10,.08);
  border-color: rgba(107,216,10,.45);
  box-shadow: 0 0 0 1px rgba(107,216,10,.2), 0 0 24px -8px rgba(107,216,10,.3);
}
.map-edit-side .map-item .pin {
  width: 8px; height: 8px; border-radius: 50%;
  background: #6bd80a;
  box-shadow: 0 0 10px rgba(107,216,10,.8);
}
.map-edit-side .map-item .name {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 3px;
}
.map-edit-side .map-item .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.map-edit-side .map-item .status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: #6bd80a;
  letter-spacing: .04em;
}
.map-edit-side .map-item .status.warn { color: #ff9933; }


/* ============================================================
   PRICING — editorial (dark canvas, index cards, bar visuals)
   ============================================================ */
.pricing-edit {
  position: relative;
  background: var(--bg);
  color: #0b0d09;
  padding: 140px 0 160px;
  overflow: hidden;
  isolation: isolate;
}
.pricing-edit .pricing-edit-grain {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(107,216,10,.06), transparent 55%),
    radial-gradient(circle at 85% 85%, rgba(107,216,10,.04), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.pricing-edit-inner { position: relative; z-index: 1; }

.pricing-edit-head {
  max-width: 820px;
  margin: 0 auto 72px;
  text-align: center;
}
.pricing-edit-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(0,0,0,.55);
  margin-bottom: 28px;
}
.pricing-edit-eyebrow .dot-lg {
  width: 8px; height: 8px; border-radius: 50%;
  background: #6bd80a;
  box-shadow: 0 0 12px rgba(107,216,10,.5);
  animation: pulsePrice 2.2s ease-in-out infinite;
}
@keyframes pulsePrice {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(.85); }
}
.pricing-edit-title {
  font-family: 'Goodly', Georgia, serif;
  font-weight: 400;
  font-size: clamp(44px, 5.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: #0b0d09;
}
.pricing-edit-title em {
  font-style: italic;
  color: rgba(0,0,0,.45);
}
.pricing-edit-lede {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(0,0,0,.6);
  max-width: 620px;
  margin: 0 auto 24px;
}
.pricing-edit-meta {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 16px;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 999px;
  background: rgba(0,0,0,.02);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .06em;
  color: rgba(0,0,0,.55);
}
.pricing-edit-meta .k {
  color: #3a7a06;
  letter-spacing: .15em;
}

/* Grid */
.pricing-edit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
@media (max-width: 960px) {
  .pricing-edit-grid { grid-template-columns: 1fr; gap: 14px; }
}

.pricing-edit-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 20px;
  padding: 28px 28px 32px;
  display: flex; flex-direction: column;
  transition: all .3s ease;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.pricing-edit-card:hover {
  border-color: rgba(0,0,0,.15);
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -20px rgba(0,0,0,.12);
}
.pricing-edit-card.featured {
  background: #0b0d09;
  color: #e8ebe1;
  border-color: #0b0d09;
  box-shadow:
    0 0 0 1px rgba(107,216,10,.3) inset,
    0 30px 70px -20px rgba(107,216,10,.35),
    0 24px 60px -20px rgba(0,0,0,.3);
}
.pricing-edit-card.featured::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 3px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, transparent, #6bd80a, transparent);
}

.pricing-edit-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.pricing-edit-idx {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(0,0,0,.4);
  letter-spacing: .12em;
  padding: 4px 8px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 4px;
}
.pricing-edit-card.featured .pricing-edit-idx {
  background: #6bd80a;
  color: #0b0d09;
  border-color: #6bd80a;
  font-weight: 700;
}
.pricing-edit-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .2em;
  color: rgba(0,0,0,.45);
  text-transform: uppercase;
}
.pricing-edit-card.featured .pricing-edit-tag {
  color: #6bd80a;
  text-shadow: 0 0 8px rgba(107,216,10,.4);
}

.pricing-edit-name {
  font-family: 'Goodly', Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: #0b0d09;
}
.pricing-edit-card.featured .pricing-edit-name { color: #e8ebe1; }
.pricing-edit-desc {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(0,0,0,.55);
  margin-bottom: 28px;
  min-height: 42px;
}
.pricing-edit-card.featured .pricing-edit-desc { color: rgba(255,255,255,.55); }

.pricing-edit-price-row {
  display: flex; align-items: baseline; gap: 6px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px dashed rgba(0,0,0,.1);
}
.pricing-edit-card.featured .pricing-edit-price-row {
  border-bottom-color: rgba(255,255,255,.1);
}
.pricing-edit-cur {
  font-family: 'Goodly', Georgia, serif;
  font-size: 28px;
  color: rgba(0,0,0,.6);
}
.pricing-edit-card.featured .pricing-edit-cur { color: rgba(255,255,255,.7); }
.pricing-edit-n {
  font-family: 'Goodly', Georgia, serif;
  font-size: 72px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #0b0d09;
}
.pricing-edit-card.featured .pricing-edit-n {
  color: #6bd80a;
}
.pricing-edit-per {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(0,0,0,.45);
  letter-spacing: .04em;
  margin-left: 4px;
}
.pricing-edit-card.featured .pricing-edit-per { color: rgba(255,255,255,.45); }

.pricing-edit-viz {
  margin-bottom: 20px;
  height: 70px;
}
.price-viz { width: 100%; height: 100%; }
.pricing-edit-card:not(.featured) .price-viz rect[fill^="rgba(255"] {
  fill: rgba(0,0,0,.2);
}
.pricing-edit-card:not(.featured) .price-viz line[stroke^="rgba(255"] {
  stroke: rgba(0,0,0,.12);
}

.pricing-edit-incl {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: rgba(0,0,0,.03);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 10px;
  margin-bottom: 16px;
}
.pricing-edit-card.featured .pricing-edit-incl {
  background: rgba(0,0,0,.3);
  border-color: rgba(255,255,255,.06);
}
.pricing-edit-incl .k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .15em;
  color: rgba(0,0,0,.5);
  text-transform: uppercase;
}
.pricing-edit-card.featured .pricing-edit-incl .k { color: rgba(255,255,255,.5); }
.pricing-edit-incl .v {
  font-size: 14px;
  font-weight: 600;
  color: #0b0d09;
}
.pricing-edit-card.featured .pricing-edit-incl .v {
  color: #6bd80a;
}

.pricing-edit-cta {
  display: block;
  text-align: center;
  padding: 14px;
  border-radius: 10px;
  background: rgba(0,0,0,.04);
  color: #0b0d09;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,.1);
  transition: all .2s ease;
  margin-bottom: 24px;
}
.pricing-edit-cta:hover {
  background: rgba(0,0,0,.08);
  border-color: rgba(0,0,0,.2);
}
.pricing-edit-cta.primary {
  background: #6bd80a;
  color: #0b0d09;
  border-color: #6bd80a;
  box-shadow: 0 10px 28px -10px rgba(107,216,10,.5);
}
.pricing-edit-cta.primary:hover {
  background: #7ae822;
  box-shadow: 0 14px 36px -10px rgba(107,216,10,.7);
}

.pricing-edit-feats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex; flex-direction: column;
  gap: 10px;
}
.pricing-edit-feats li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(0,0,0,.75);
}
.pricing-edit-card.featured .pricing-edit-feats li { color: rgba(255,255,255,.8); }
.pricing-edit-feats li svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.pricing-edit-addon {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: rgba(0,0,0,.02);
  border: 1px dashed rgba(0,0,0,.15);
  border-radius: 14px;
  margin-bottom: 32px;
  font-size: 14px;
  color: rgba(0,0,0,.7);
}
.pricing-edit-addon .k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .2em;
  color: #3a7a06;
  padding: 4px 10px;
  border: 1px solid rgba(107,216,10,.3);
  background: rgba(107,216,10,.08);
  border-radius: 4px;
  flex-shrink: 0;
}

.pricing-edit-banners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 48px;
}
@media (max-width: 760px) {
  .pricing-edit-banners { grid-template-columns: 1fr; }
}
.pricing-edit-banner {
  position: relative;
  padding: 28px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
}
.pricing-edit-banner-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.pricing-edit-banner-top .pricing-edit-idx {
  background: rgba(107,216,10,.15);
  color: #3a7a06;
  border-color: rgba(107,216,10,.3);
  font-weight: 700;
}
.pricing-edit-banner-title {
  font-family: 'Goodly', Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 10px;
  color: #0b0d09;
}
.pricing-edit-banner-body {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(0,0,0,.65);
}
.pricing-edit-banner-ex {
  margin-top: 18px;
  padding: 12px 14px;
  background: rgba(0,0,0,.04);
  border-left: 2px solid #6bd80a;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(0,0,0,.8);
  display: flex; gap: 12px; align-items: flex-start;
}
.pricing-edit-banner-ex .k {
  color: #3a7a06;
  letter-spacing: .15em;
  flex-shrink: 0;
}

.pricing-edit-foot {
  display: flex; align-items: center; justify-content: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,.06);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .12em;
  color: rgba(0,0,0,.5);
  text-transform: uppercase;
}
.pricing-edit-foot .line {
  flex: 1;
  max-width: 200px;
  height: 1px;
  background: rgba(0,0,0,.1);
}

/* ============================================================
   REPORT — editorial (frame + step cards)
   ============================================================ */
.report-edit {
  position: relative;
  background: #0b0d09;
  color: #e8ebe1;
  padding: 140px 0 160px;
  overflow: hidden;
  isolation: isolate;
}
.report-edit .report-edit-grain {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(107,216,10,.045), transparent 55%),
    radial-gradient(circle at 10% 80%, rgba(107,216,10,.03), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.report-edit-inner { position: relative; z-index: 1; }

.report-edit-head {
  max-width: 820px;
  margin: 0 auto 72px;
  text-align: center;
}
.report-edit-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 28px;
}
.report-edit-eyebrow .dot-lg {
  width: 8px; height: 8px; border-radius: 50%;
  background: #6bd80a;
  box-shadow: 0 0 12px rgba(107,216,10,.6);
  animation: pulsePrice 2.2s ease-in-out infinite;
}
.report-edit-title {
  font-family: 'Goodly', Georgia, serif;
  font-weight: 400;
  font-size: clamp(44px, 5.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}
.report-edit-title em {
  font-style: italic;
  color: rgba(255,255,255,.55);
}
.report-edit-lede {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255,255,255,.65);
  max-width: 620px;
  margin: 0 auto 24px;
}
.report-edit-meta {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .06em;
  color: rgba(255,255,255,.55);
}
.report-edit-meta .k {
  color: #6bd80a;
  letter-spacing: .15em;
}

.report-edit-body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1040px) {
  .report-edit-body { grid-template-columns: 1fr; }
}

.report-edit-frame {
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 16px;
  position: sticky;
  top: 24px;
}
.report-edit-framebar {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 10px 14px;
  border-bottom: 1px dashed rgba(255,255,255,.1);
  margin-bottom: 16px;
}
.report-edit-framebar .report-edit-idx {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  background: #6bd80a;
  color: #0b0d09;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: .1em;
}
.report-edit-framebar .report-edit-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .2em;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  flex: 1;
}
.report-edit-framebar .report-edit-pulse {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .15em;
  color: #6bd80a;
  text-transform: uppercase;
}
.report-edit-framebar .report-edit-pulse .dot-lg {
  width: 7px; height: 7px; border-radius: 50%;
  background: #6bd80a;
  box-shadow: 0 0 10px rgba(107,216,10,.7);
  animation: pulsePrice 1.6s ease-in-out infinite;
}
.report-edit-frame-inner {
  background: #f5f1e8;
  border-radius: 12px;
  overflow: hidden;
  padding: 24px;
}
.report-edit-frame-inner .report-paper {
  box-shadow: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  transform: none !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* steps list */
.report-edit-side {
  display: flex; flex-direction: column; gap: 14px;
}
.report-edit-steps {
  display: flex; flex-direction: column; gap: 14px;
}
.report-edit-step {
  position: relative;
  padding: 22px 24px 24px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  cursor: pointer;
  transition: all .25s ease;
}
.report-edit-step:hover {
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.15);
}
.report-edit-step.active {
  background: linear-gradient(180deg, rgba(107,216,10,.08) 0%, rgba(107,216,10,.02) 100%);
  border-color: rgba(107,216,10,.4);
  box-shadow: 0 0 0 1px rgba(107,216,10,.2) inset;
}
.report-edit-step-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.report-edit-step-idx {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,.4);
  letter-spacing: .12em;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 4px;
}
.report-edit-step.active .report-edit-step-idx {
  background: #6bd80a;
  color: #0b0d09;
  border-color: #6bd80a;
  font-weight: 700;
}
.report-edit-step-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .2em;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
}
.report-edit-step.active .report-edit-step-tag {
  color: #6bd80a;
}
.report-edit-step-title {
  font-family: 'Goodly', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: #e8ebe1;
}
.report-edit-step-desc {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,.6);
}


/* ============================================================
   GOUDY — editorial section titles + card titles
   Classical calligraphic display face (Goudy Bookletter 1911)
   ============================================================ */
.pricing-edit-title,
.pricing-edit-name,
.pricing-edit-banner-title,
.report-edit-title,
.report-edit-step-title,
.how-edit-title,
.how-edit-step-title,
.ajax-edit-title,
.ajax-edit-card-title,
.map-edit-title,
.stats-editorial-title,
.stats-editorial-card-title {
  font-family: var(--f-goudy) !important;
  font-weight: 500 !important;
  letter-spacing: -0.005em;
}

/* display titles get extra tracking adjustment because Goudy runs wide */
.pricing-edit-title,
.report-edit-title,
.how-edit-title,
.ajax-edit-title,
.map-edit-title,
.stats-editorial-title {
  font-weight: 600 !important;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.pricing-edit-title em,
.report-edit-title em,
.how-edit-title em,
.ajax-edit-title em,
.map-edit-title em,
.stats-editorial-title em {
  font-style: italic;
  font-weight: 500 !important;
}


/* ---------- FinalCTA — application form ---------- */
.final-cta .fcta-form {
  max-width: 560px;
  margin: 12px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.fcta-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 640px) { .fcta-row-2 { grid-template-columns: 1fr; } }
.fcta-field { display: block; position: relative; }
.fcta-lbl {
  position: absolute;
  left: 16px; top: 14px;
  font-size: 13px;
  color: rgba(255,255,255,.35);
  pointer-events: none;
  transition: transform .15s ease, font-size .15s ease, color .15s ease;
  letter-spacing: -.005em;
}
.fcta-field input,
.fcta-field select,
.fcta-field textarea {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  font-size: 14.5px;
  letter-spacing: -.005em;
  outline: none;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
  font-family: inherit;
}
.fcta-field textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.fcta-field select { appearance: none; cursor: pointer; color: rgba(255,255,255,.55); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='white' stroke-opacity='.5' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.fcta-field select:valid, .fcta-field select:focus { color: #fff; }
.fcta-field input::placeholder,
.fcta-field textarea::placeholder { color: rgba(255,255,255,.35); }
.fcta-field input:focus,
.fcta-field select:focus,
.fcta-field textarea:focus {
  border-color: rgba(107,216,10,.5);
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 3px rgba(107,216,10,.12);
}
/* hide labels — we use placeholders */
.fcta-lbl { display: none; }

.fcta-submit {
  margin-top: 4px;
  width: 100%;
  padding: 16px 20px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: #0a1500;
  background: linear-gradient(180deg, #8fec2a 0%, #6bd80a 100%);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px -10px rgba(107,216,10,.5), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .12s ease, box-shadow .12s ease;
}
.fcta-submit:hover { transform: translateY(-1px); box-shadow: 0 12px 32px -10px rgba(107,216,10,.6), inset 0 1px 0 rgba(255,255,255,.35); }
.fcta-submit:active { transform: translateY(0); }

.fcta-note {
  text-align: center;
  font-size: 12.5px;
  color: rgba(255,255,255,.45);
  letter-spacing: -.005em;
  margin-top: 6px;
}

/* Light-density override (when body.dark-density-low inverts final-cta) */
body.dark-density-low .fcta-field input,
body.dark-density-low .fcta-field select,
body.dark-density-low .fcta-field textarea {
  background: rgba(0,0,0,.03);
  border-color: rgba(0,0,0,.1);
  color: var(--ink);
}
body.dark-density-low .fcta-field input::placeholder,
body.dark-density-low .fcta-field textarea::placeholder { color: rgba(0,0,0,.4); }
body.dark-density-low .fcta-field select { color: rgba(0,0,0,.5); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='black' stroke-opacity='.4' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>"); }
body.dark-density-low .fcta-note { color: rgba(0,0,0,.5); }

/* Hide the old cta-row if ever present */
.final-cta .cta-row { display: none; }

.touchpanel-sec .eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #6bd80a;
  box-shadow: 0 0 10px rgba(107,216,10,.8);
}
.touchpanel-sec .eyebrow .dot::before { display: none; }


/* Feature tabs - pill bar style */
.features .tabs {
  background: #0b0d09 !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 100px !important;
  padding: 4px !important;
  gap: 2px !important;
  display: inline-flex !important;
  flex-wrap: nowrap !important;
}
.features .tab {
  background: transparent !important;
  color: rgba(255,255,255,.5) !important;
  border-radius: 100px !important;
  padding: 8px 18px !important;
  font-size: 13px !important;
  transition: all .2s !important;
}
.features .tab:hover {
  background: rgba(255,255,255,.06) !important;
  color: rgba(255,255,255,.8) !important;
  transform: none !important;
}
.features .tab.active {
  background: #6BD80A !important;
  color: #0b0d09 !important;
  box-shadow: 0 4px 14px rgba(107,216,10,.3) !important;
}
.theme-dark .features .tabs {
  background: #111410 !important;
  border-color: rgba(255,255,255,.06) !important;
}


.site-footer {
  position: relative !important;
  overflow: hidden !important;
}

.footer-watermark-inline {
  margin-bottom: -0.2em !important;
}


.footer-bottom, .footer-compliance {
  position: relative;
  z-index: 2;
}

/* Force touchpanel eyebrow green dot */
section.touchpanel-sec .eyebrow .dot {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: #6bd80a !important;
  box-shadow: 0 0 10px rgba(107,216,10,.8) !important;
}
section.touchpanel-sec .eyebrow .dot::before {
  display: none !important;
}






/* Force final-cta eyebrow green dot */
section.final-cta .eyebrow .dot { width: 6px !important; height: 6px !important; background: #6bd80a !important; box-shadow: 0 0 10px rgba(107,216,10,.8) !important; }
section.final-cta .eyebrow .dot::before { display: none !important; }


/* Footer watermark - behind content, partially visible at bottom */
.site-footer { position: relative !important; overflow: hidden !important; }
.site-footer .wrap-wide { position: relative; z-index: 1; }
.footer-watermark-row {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  padding: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
}
.footer-watermark-inline {
  transform: translateY(35%) !important;
}
