/* ═══════════════════════════════════════════
   WATTMATIC — design system
═══════════════════════════════════════════ */
:root {
  /* Background layers */
  --wm-bg:           #ffffff;
  --wm-bg-raised:    #f7f7f5;
  --wm-bg-overlay:   #f0f0ed;
  --wm-bg-subtle:    rgba(10,37,64,0.03);

  /* Text hierarchy */
  --wm-text:         #0a0a0b;
  --wm-soft:         rgba(10,37,64,0.72);
  --wm-muted:        rgba(10,37,64,0.48);
  --wm-faint:        rgba(10,37,64,0.24);

  /* Borders */
  --wm-border:       rgba(10,37,64,0.10);
  --wm-border-mid:   rgba(10,37,64,0.16);

  /* Accent — EKD Solar brand orange #EF870E  H32 S89% L50% */
  --wm-accent:       #EF870E;
  --wm-accent-dim:   rgba(239,135,14,0.10);
  --wm-accent-glow:  rgba(239,135,14,0.05);
  --wm-btn-primary-top: #f3b65a;
  --wm-btn-primary-mid: #eea23a;
  --wm-btn-primary-bottom: #e4871f;
  --wm-btn-primary-border: #c97a1b;

  /* Video grade: premium-neutral (less gray, less oppressive) */
  --wm-video-filter-cold: grayscale(0.02) saturate(1.03) contrast(1.05) brightness(0.98);

  /* Functional */
  --wm-green:        #16a34a;
  --wm-blue:         #2563eb;
  --wm-red:          #dc2626;

  /* Geometry */
  --wm-radius-xl:    28px;
  --wm-radius-lg:    18px;
  --wm-radius-md:    10px;
  --wm-radius-sm:    6px;

  /* Shadows */
  --wm-shadow-sm:    0 1px 3px rgba(10,37,64,0.08), 0 0 0 1px rgba(10,37,64,0.06);
  --wm-shadow-md:    0 4px 16px rgba(10,37,64,0.10), 0 0 0 1px rgba(10,37,64,0.06);

  /* Layout */
  --wm-max:          1280px;
  --wm-space:        100px;
  --wm-title-size:   clamp(1.4rem, 2.5vw, 2.3rem);
  --wm-selling-title-size: clamp(1rem, 2.1vw, 1.75rem);
  --wm-selling-title-weight: 600;
  --wm-selling-title-line: 1.12;
  --wm-point-title-size: clamp(1rem, 1.95vw, 1.7rem);
  /* Type weights: unified 4-step scale */
  --wm-w-regular: 400;
  --wm-w-medium: 500;
  --wm-w-semibold: 600;
  --wm-w-bold: 700;
  /* Type rhythm: unified line-height + tracking */
  --wm-lh-tight: 1.14;
  --wm-lh-title: 1.22;
  --wm-lh-body: 1.62;
  --wm-lh-body-tight: 1.5;
  --wm-ls-title: -0.02em;
  --wm-ls-title-soft: -0.015em;
  --wm-ls-body: 0;
  --wm-ls-label: 0.1em;

  /* Legacy aliases kept for compat */
  --wm-violet:       #EF870E;
  --wm-mint:         #16a34a;
  --wm-panel:        #f7f7f5;
  --wm-panel-strong: #f0f0ed;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-weight: var(--wm-w-regular);
  background: var(--wm-bg);
  color: var(--wm-text);
  line-height: var(--wm-lh-body);
  letter-spacing: var(--wm-ls-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: var(--wm-w-semibold);
  line-height: var(--wm-lh-tight);
  letter-spacing: var(--wm-ls-title);
  font-family: var(--font-display);
  color: var(--wm-text);
}
p {
  margin: 0;
  color: var(--wm-soft);
  line-height: var(--wm-lh-body);
  letter-spacing: var(--wm-ls-body);
}

.wm-page { padding-top: 72px; }
.wm-container { width: min(var(--wm-max), calc(100% - 40px)); margin: 0 auto; }
.section { padding: var(--wm-space) 0; position: relative; }

.wm-eyebrow {
  margin: 0;
  color: var(--wm-muted);
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: var(--wm-ls-label);
  text-transform: uppercase;
}

.wm-section-head h2 {
  margin-top: 12px;
  max-width: 14ch;
  font-size: var(--wm-title-size);
  font-weight: var(--wm-selling-title-weight);
  line-height: 1.1;
  letter-spacing: -0.018em;
}

#system-visualizer .wm-section-head h2 {
  font-size: var(--wm-selling-title-size);
  font-weight: var(--wm-selling-title-weight);
  line-height: var(--wm-selling-title-line);
}
#faq .wm-section-head h2 {
  font-size: var(--wm-selling-title-size);
  font-weight: var(--wm-selling-title-weight);
  line-height: var(--wm-selling-title-line);
}
#system-visualizer.section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.wm-section-head p {
  margin-top: 14px;
  max-width: 58ch;
}

/* Typography harmonization layer */
.wm-hero-copy h1,
.wm-proof-header h2,
.wm-ab-title,
.wm-tariff-headline,
.wm-offgrid-title,
.wm-offgrid-support-title,
.wm-reliability-title,
.wm-specs-title,
.wm-final-grid h2 {
  line-height: var(--wm-lh-tight);
  letter-spacing: var(--wm-ls-title);
}

.wm-hero-copy > p,
.wm-proof-body,
.wm-ab-side-lead,
.wm-ab-side-quote,
.wm-tariff-sub,
.wm-offgrid-sub,
.wm-offgrid-board-copy,
.wm-offgrid-note-desc,
.wm-reliability-detail,
.wm-faq-lead,
.wm-faq-list p,
.wm-final-grid > .reveal p,
.wm-form label,
.wm-form-feedback {
  line-height: var(--wm-lh-body);
  letter-spacing: var(--wm-ls-body);
}

.wm-mode-card-name,
.wm-offgrid-board-title,
.wm-offgrid-note-title,
.wm-vspec-label,
.wm-vspec-val,
.wm-btn {
  line-height: var(--wm-lh-body-tight);
}

.wm-mode-label,
.wm-offgrid-support-kicker,
.wm-offgrid-group-label,
.wm-reliability-kicker-text,
.wm-faq-signals span {
  letter-spacing: var(--wm-ls-label);
}

/* Hero */
.wm-hero {
  padding-top: 34px;
  overflow: hidden;
  /* no horizontal padding — hero bleeds to section edges */
}
.wm-hero-aura {
  display: none;
}

/* Full-bleed cinematic hero — edge-to-edge with small side margin */
.wm-hero-media {
  position: relative;
  width: calc(100% - 36px);   /* match wm-container side gutter */
  margin: 0 auto;
  aspect-ratio: 21 / 9;       /* ultra-wide cinematic */
  border-radius: var(--wm-radius-xl);
  overflow: hidden;
  background: transparent;
  box-shadow: 0 22px 56px rgba(10, 20, 40, 0.18);
}
.wm-media-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
  filter: var(--wm-video-filter-cold);
}

/* Rounded video shells: remove flat backing planes behind corners */
.wm-hero-media,
.wm-bento-col--video,
.wm-ab-cinematic,
.wm-afci-video-wrap,
.wm-offgrid-card,
.wm-reliability-card,
.wm-card-video-wrap {
  background: transparent;
  isolation: isolate;
}

/* Ensure overlays and pseudo layers follow rounded corners exactly */
.wm-hero-overlay,
.wm-bento-col--video::after,
.wm-ab-overlay,
.wm-afci-video-wrap::after,
.wm-reliability-overlay {
  border-radius: inherit;
}

.wm-offgrid-media {
  border-radius: inherit;
  overflow: hidden;
}

/* 渐变遮罩：左侧加深，让白色文字可读 */
.wm-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(4, 12, 24, 0.66) 0%,
      rgba(6, 22, 40, 0.42) 46%,
      rgba(6, 22, 40, 0.08) 74%
    ),
    linear-gradient(
      to top,
      rgba(4, 12, 24, 0.36) 0%,
      rgba(5, 18, 34, 0.12) 42%,
      rgba(73, 140, 197, 0.08) 100%
    );
  pointer-events: none;
  z-index: 1;
}

/* 文案层：叠在视频左下区域 */
.wm-hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 4vw, 52px) clamp(24px, 5vw, 60px);
  max-width: 55%;
  z-index: 2;
}
.wm-hero-copy .wm-eyebrow {
  color: rgba(255, 255, 255, 0.65);
}
.wm-hero-copy h1 {
  margin: 10px 0 16px;
  font-size: var(--wm-title-size);
  color: #ffffff;
  max-width: 16ch;
  line-height: 1.06;
  letter-spacing: -0.022em;
}
.wm-hero-copy > p {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  max-width: 46ch;
  line-height: 1.65;
}

.wm-hero-proof {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wm-hero-proof li {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(7, 14, 24, 0.34);
  color: rgba(255, 255, 255, 0.86);
}

.wm-hero-proof strong {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.01em;
}

.wm-hero-proof span {
  font-size: 0.72rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.78);
}

/* Buttons */
.wm-cta-row { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.wm-btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 18px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 220ms ease, background 220ms ease, border-color 220ms ease, color 220ms ease;
}
.wm-btn:hover {
  opacity: 1;
  transform: translateY(-1px);
}
.wm-btn:active {
  transform: translateY(0);
}
.wm-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}
.wm-btn--primary {
  color: #081f35;
  border-color: var(--wm-btn-primary-border);
  background: linear-gradient(180deg, var(--wm-btn-primary-top) 0%, var(--wm-btn-primary-mid) 58%, var(--wm-btn-primary-bottom) 100%);
  box-shadow:
    0 5px 14px rgba(239,135,14,0.2),
    0 1px 0 rgba(255,255,255,0.34) inset;
}
.wm-btn--primary:hover {
  border-color: #bd7012;
  background: linear-gradient(180deg, #f3b65a 0%, #ed9f33 58%, #e2811a 100%);
  box-shadow:
    0 8px 18px rgba(239,135,14,0.26),
    0 1px 0 rgba(255,255,255,0.34) inset;
}
.wm-btn--secondary {
  color: rgba(10,37,64,0.86);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  border-color: rgba(10,37,64,0.15);
  box-shadow: 0 1px 0 rgba(255,255,255,0.86) inset, 0 2px 8px rgba(10,37,64,0.06);
}
.wm-btn--secondary:hover {
  border-color: rgba(10,37,64,0.24);
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(10,37,64,0.10), 0 1px 0 rgba(255,255,255,0.92) inset;
}
.wm-btn--ghost,
.wm-btn--ghost:where([class]) {
  color: rgba(255,255,255,0.9) !important;
  background: rgba(7, 16, 28, 0.36) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  box-shadow: none;
}
.wm-btn--ghost:hover {
  background: rgba(7, 16, 28, 0.48) !important;
}

.wm-chip-row {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wm-chip {
  border: 1px solid var(--wm-border);
  border-radius: 999px;
  background: rgba(10, 37, 64, 0.04);
  color: var(--wm-text);
  font-size: 0.79rem;
  padding: 8px 13px;
}

/* ─── Engineering Signals — Bento Layout ─── */

/* Section header */
.wm-proof-header {
  margin-bottom: 40px;
  text-align: center;
}
.wm-proof-header .wm-eyebrow {
  margin-bottom: 10px;
}
.wm-proof-header h2 {
  font-size: var(--wm-selling-title-size);
  font-weight: var(--wm-selling-title-weight);
  line-height: var(--wm-selling-title-line);
  max-width: 18ch;
  margin: 0 auto;
  color: var(--wm-text);
  letter-spacing: -0.03em;
}
.wm-proof-body {
  margin: 18px auto 0;
  max-width: 50ch;
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--wm-soft);
}

/* Bento grid: left stat col | center video | right stat col */
.wm-bento-grid {
  display: grid;
  grid-template-columns: 1fr 2.4fr 1fr;
  grid-template-rows: 1fr;
  gap: 16px;
  align-items: stretch;
  min-height: 480px;
}

/* Shared column base */
.wm-bento-col {
  border-radius: 18px;
  overflow: hidden;
}

/* Left & right stat columns */
.wm-bento-col--left,
.wm-bento-col--right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 28px;
  background: #f7f7f5;
  border-radius: 18px;
  gap: 0;
}

/* Individual stat block inside columns */
.wm-bento-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Horizontal rule between the two stats */
.wm-bento-divider {
  flex-shrink: 0;
  height: 1px;
  background: #e2e2de;
  margin: 24px 0;
}

/* Label above the number */
.wm-bento-label {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--wm-muted);
}

/* The big editorial number */
.wm-bento-number {
  font-size: clamp(2.6rem, 3.8vw, 3.6rem);
  font-weight: 400;
  line-height: 1;
  color: var(--wm-text);
  letter-spacing: -0.02em;
}

/* Unit suffix (kW, ms, %) — smaller, inline */
.wm-bento-unit {
  font-size: 0.46em;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--wm-muted);
  vertical-align: middle;
  margin-left: 2px;
}

/* Description text below number */
.wm-bento-desc {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--wm-muted);
  line-height: 1.5;
  max-width: 22ch;
}

/* Center video column */
.wm-bento-col--video {
  position: relative;
  margin: 0;
  background: transparent;
  min-height: 480px;
}

/* Video column internals */
.wm-bento-col--video::after {
  content: "";
  position: absolute;
  inset: 0;
  /* cold-tech readability matte */
  background: linear-gradient(
    to top,
    rgba(3, 10, 20, 0.90) 0%,
    rgba(5, 18, 34, 0.50) 36%,
    rgba(57, 126, 181, 0.14) 72%,
    rgba(57, 126, 181, 0) 100%
  );
  pointer-events: none;
  z-index: 1;
}
.wm-install-video-media {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  display: block;
  filter: var(--wm-video-filter-cold);
}

/* Bottom bar: title left, badges right — same baseline */
.wm-install-bar {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  left: 32px;
  right: 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.wm-install-title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.25rem, 1.9vw, 1.9rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.wm-install-video-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.wm-install-video-badges span {
  display: block;
  padding: 5px 10px;
  font-size: 0.70rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 3px;
  backdrop-filter: blur(8px);
  background: transparent;
  white-space: nowrap;
}

/* Generic media placeholder */
.wm-media-placeholder {
  min-height: 210px;
  border-radius: 14px;
  background: rgba(10, 37, 64, 0.04);
  color: rgba(10, 37, 64, 0.55);
  font-size: 0.82rem;
  text-align: center;
  display: grid;
  place-items: center;
  padding: 16px;
}

/* ── Active Balancing — Cinematic Full-Width ───────── */

/* Outer figure: rounded card, clips video + content */
/* AB section: video (68%) + quote (32%) side by side */
.wm-ab-layout {
  display: flex;
  align-items: stretch;
  gap: 48px;
}

.wm-ab-cinematic {
  position: relative;
  flex: 0 0 62%;
  margin: 0;
  border-radius: var(--wm-radius-xl);
  overflow: hidden;
  background: transparent;
  aspect-ratio: 16 / 9;
  box-shadow: 0 14px 34px rgba(10, 20, 40, 0.16);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Right-side narrative panel */
.wm-ab-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 8px 0 8px 6px;
  border-left: 1px solid var(--wm-border-mid);
}
.wm-ab-side-lead {
  margin: 0;
  font-size: clamp(0.95rem, 1.22vw, 1.05rem);
  font-weight: 400;
  line-height: 1.72;
  color: var(--wm-soft);
  letter-spacing: -0.006em;
  padding-left: 28px;
}
.wm-ab-side-lead--accent {
  color: rgba(10, 37, 64, 0.86);
  font-weight: 500;
}
.wm-ab-side-quote {
  margin: 8px 0 0;
  padding-left: 28px;
  font-size: clamp(0.98rem, 1.32vw, 1.2rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--wm-muted);
  letter-spacing: -0.008em;
}

/* Video fills the entire figure */
.wm-ab-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: var(--wm-video-filter-cold);
}

/* Gradient overlay: dark at bottom for readability, subtle at top */
.wm-ab-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(8, 30, 52, 0.05) 0%,
      rgba(5, 18, 34, 0.18) 44%,
      rgba(4, 12, 24, 0.46) 78%,
      rgba(4, 12, 24, 0.56) 100%
    );
  pointer-events: none;
}

/* All content sits above overlay */
.wm-ab-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(28px, 4vw, 46px) clamp(28px, 4.5vw, 48px);
  justify-content: flex-start;
}

/* Top-left: eyebrow + title */
.wm-ab-inner-head {
  text-align: left;
  max-width: 420px;
}
.wm-eyebrow--light {
  color: rgba(255, 255, 255, 0.40);
  letter-spacing: 0.14em;
}
.wm-ab-title {
  margin: 10px 0 0;
  font-size: var(--wm-point-title-size);
  color: #ffffff;
  line-height: 1.15;
  font-weight: var(--wm-selling-title-weight);
  letter-spacing: -0.02em;
}
.wm-ab-desc {
  margin: 16px 0 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.50);
  line-height: 1.7;
  max-width: 38ch;
}
.wm-ab-desc--accent {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 500;
}

/* Stat rail: three equal columns + two rules */
.wm-ab-rail {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding-top: 24px;
}
.wm-ab-rail-rule {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 clamp(24px, 3vw, 40px);
}
.wm-ab-rail-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wm-ab-rail-value {
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  font-family: var(--font-display);
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.02em;
}
.wm-ab-rail-desc {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.4;
  white-space: nowrap;
}
.wm-ab-rail--external {
  margin-top: 20px;
  padding: 20px 26px;
  border: 1px solid var(--wm-border);
  border-top: 1px solid var(--wm-border);
  border-radius: var(--wm-radius-lg);
  background: var(--wm-bg-raised);
}
.wm-ab-rail--external .wm-ab-rail-rule {
  background: var(--wm-border-mid);
}
.wm-ab-rail--external .wm-ab-rail-value {
  color: var(--wm-text);
}
.wm-ab-rail--external .wm-ab-rail-desc {
  color: var(--wm-soft);
  white-space: normal;
  max-width: 26ch;
}
.wm-ab-rail-desc--note {
  white-space: normal;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.65;
  max-width: 28ch;
}

/* Shared card styles still used elsewhere */
.wm-safety-card,
.wm-quick-specs,
.wm-form,
.wm-designer-panel,
.wm-designer-scene,
.wm-designer-summary,
.wm-faq-list details {
  border-radius: var(--wm-radius-lg);
  background: rgba(10, 37, 64, 0.03);
}
.wm-safety-card,
.wm-quick-specs,
.wm-form,
.wm-designer-panel,
.wm-designer-scene,
.wm-designer-summary { padding: 20px; }
.wm-designer-panel h3,
.wm-designer-summary h3 { font-size: 1.08rem; }

.wm-key-list,
.wm-designer-summary ul,
.wm-faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.wm-key-list li,
.wm-designer-summary li {
  color: var(--wm-soft);
  display: flex;
  gap: 8px;
}
.wm-key-list li::before,
.wm-designer-summary li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--wm-violet), var(--wm-mint));
  flex: 0 0 auto;
}

/* ── AI Energy Engine section ─────────────────────────────────── */
.wm-tariff-shell {
  border-radius: var(--wm-radius-xl);
  padding: 40px;
  background: #ffffff;
  border: 1px solid rgba(10, 37, 64, 0.07);
  box-shadow:
    0 1px 2px rgba(10, 37, 64, 0.04),
    0 8px 32px rgba(10, 37, 64, 0.07),
    0 32px 64px rgba(10, 37, 64, 0.04);
}
.wm-tariff-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 48px;
  align-items: center;
}

/* Eyebrow row with live pulse */
.wm-tariff-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wm-tariff-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wm-accent);
  box-shadow: 0 0 0 0 rgba(245, 197, 24, 0.5);
  animation: wm-pulse-ring 2.2s ease-out infinite;
  flex-shrink: 0;
}
@keyframes wm-pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(239,135,14,0.55); }
  60%  { box-shadow: 0 0 0 7px rgba(239,135,14,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,135,14,0); }
}

/* Asymmetric headline */
.wm-tariff-headline {
  display: flex;
  flex-direction: column;
  margin-top: 14px;
  font-size: var(--wm-selling-title-size);
  font-weight: var(--wm-selling-title-weight);
  line-height: var(--wm-selling-title-line);
  letter-spacing: -0.03em;
  gap: 0;
}
.wm-tariff-hl-line1 {
  color: var(--wm-muted);
  font-size: 0.68em;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  margin-bottom: 2px;
}
.wm-tariff-hl-line2 {
  font-size: 1em;
  color: var(--wm-text);
}
.wm-tariff-hl-accent {
  font-style: normal;
  position: relative;
  color: var(--wm-text);
}
.wm-tariff-hl-accent::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--wm-accent);
  opacity: 0.85;
}
.wm-tariff-hl-line3 {
  font-size: 1em;
  color: var(--wm-text);
}

/* Stat strip */
.wm-tariff-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 28px;
  padding: 16px 20px;
  background: var(--wm-bg-raised);
  border-radius: var(--wm-radius-md);
  border: 1px solid var(--wm-border);
}
.wm-tariff-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  padding: 0 16px;
}
.wm-tariff-stat:first-child { padding-left: 0; }
.wm-tariff-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--wm-border);
  flex-shrink: 0;
}
.wm-tariff-stat-num {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--wm-text);
}
.wm-tariff-stat-unit {
  font-size: 0.55em;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--wm-muted);
  margin-left: 2px;
  vertical-align: middle;
}
.wm-tariff-stat-label {
  margin-top: 3px;
  font-size: 0.70rem;
  color: var(--wm-muted);
  letter-spacing: 0.01em;
  line-height: 1.3;
}

/* Body copy */
.wm-tariff-body {
  margin-top: 20px;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--wm-soft);
  max-width: 38ch;
}

/* Mode section */
.wm-mode-section {
  margin-top: 28px;
}
.wm-mode-label {
  margin: 0 0 10px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--wm-muted);
}

/* Horizontal scroll track */
.wm-mode-track-wrap {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -4px;
  padding: 4px 4px 2px;
}
.wm-mode-track-wrap::-webkit-scrollbar { display: none; }
.wm-mode-track {
  display: flex;
  gap: 8px;
  width: max-content;
}

/* Mode cards */
.wm-mode-card {
  display: grid;
  grid-template-rows: 32px auto 1fr;
  align-items: start;
  gap: 6px;
  width: 128px;
  flex-shrink: 0;
  min-height: 156px;
  padding: 14px 14px 13px;
  border-radius: var(--wm-radius-md);
  border: 1px solid rgba(15,34,56,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,251,255,0.98) 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.90) inset,
    0 4px 14px rgba(10,37,64,0.06);
  cursor: pointer;
  text-align: left;
  transition:
    border-color 200ms ease,
    background 200ms ease,
    box-shadow 200ms ease,
    transform 180ms ease;
}
.wm-mode-card:hover {
  border-color: rgba(15,34,56,0.20);
  background: linear-gradient(180deg, rgba(255,255,255,0.99) 0%, rgba(244,248,253,0.99) 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.92) inset,
    0 10px 22px rgba(10,37,64,0.10);
  transform: translateY(-2px);
}
.wm-mode-card[aria-selected="true"] {
  border-color: rgba(15,34,56,0.26);
  background: linear-gradient(180deg, rgba(255,255,255,0.99) 0%, rgba(242,247,253,0.99) 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.94) inset,
    0 14px 24px rgba(10,37,64,0.12);
  transform: translateY(-2px);
}
.wm-mode-card--ai[aria-selected="true"] {
  border-color: rgba(239,135,14,0.52);
  background: linear-gradient(180deg, rgba(255,252,246,0.99) 0%, rgba(255,244,226,0.99) 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.96) inset,
    0 14px 24px rgba(239,135,14,0.18);
}
.wm-mode-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(245,248,252,0.98) 0%, rgba(236,241,247,0.98) 100%);
  color: rgba(15,34,56,0.46);
  transition: background 200ms ease, color 200ms ease;
}
.wm-mode-card[aria-selected="true"] .wm-mode-card-icon {
  background: linear-gradient(180deg, rgba(239,244,250,0.98) 0%, rgba(230,237,246,0.98) 100%);
  color: rgba(15,34,56,0.80);
}
.wm-mode-card--ai[aria-selected="true"] .wm-mode-card-icon {
  background: linear-gradient(180deg, rgba(255,232,194,0.98) 0%, rgba(255,214,146,0.98) 100%);
  color: #91500f;
}
.wm-mode-card--ai[aria-selected="true"] .wm-mode-card-name {
  color: #7a460f;
}
.wm-mode-card-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--wm-text);
  line-height: 1.2;
  min-height: 1.45em;
}
.wm-mode-card-desc {
  font-size: 0.71rem;
  color: var(--wm-muted);
  line-height: 1.5;
  letter-spacing: 0.004em;
  min-height: 4.5em;
}
.wm-mode-card[aria-selected="true"] .wm-mode-card-desc {
  color: var(--wm-soft);
}

/* Description line below cards */
.wm-tou-desc {
  margin-top: 14px;
  min-height: 2.8em;
  font-size: 0.84rem;
  color: var(--wm-soft);
  line-height: 1.6;
  transition: opacity 200ms ease;
}

/* AI state row — inside dashboard, below legend */
.wm-dash-ai-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 16px 13px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.wm-dash-ai-dot {
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--wm-accent);
  margin-top: 5px;
  box-shadow: 0 0 6px rgba(239,135,14,0.5);
}
.wm-ai-state {
  margin: 0;
  color: rgba(255,255,255,0.52);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.01em;
  transition: opacity 0.3s ease;
}

/* ─── Curved screen wrapper — perspective container for 3D tilt ─── */
.wm-screen-wrap {
  position: relative;
  perspective: 900px;
  perspective-origin: 50% 50%;
  border-radius: 22px;
  overflow: hidden;
}

/* Scanline sweep element */
.wm-scanline {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  border-radius: 20px;
  overflow: hidden;
}
.wm-scanline::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 40px;
  top: -40px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255,255,255,0.04) 45%,
    rgba(255,255,255,0.07) 50%,
    rgba(255,255,255,0.04) 55%,
    transparent 100%
  );
  opacity: 0;
  transition: none;
}
.wm-scanline.is-scanning::after {
  animation: wmScanSweep 1.1s cubic-bezier(0.25, 0, 0.6, 1) forwards;
}
@keyframes wmScanSweep {
  0%   { top: -40px; opacity: 0; }
  6%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { top: calc(100% + 40px); opacity: 0; }
}

/* ─── Live Energy Dashboard — curved screen optical effect ─── */
.wm-dashboard {
  border-radius: 20px;
  background: #0c0c0e;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  /* Smooth return from 3D tilt */
  transition: transform 0.12s ease, box-shadow 0.25s ease;
  transform-style: preserve-3d;
  will-change: transform;

  /* Outer device border */
  border: 1px solid rgba(255,255,255,0.12);

  /* Multi-layer shadow + curved edge inset highlights */
  box-shadow:
    /* Top arc bevel — brightest, glass curves away from viewer */
    inset 0 1px 0 rgba(255,255,255,0.20),
    /* Bottom bevel */
    inset 0 -1px 0 rgba(255,255,255,0.05),
    /* Left edge — catching side light */
    inset 2px 0 8px rgba(255,255,255,0.04),
    /* Right edge */
    inset -2px 0 8px rgba(255,255,255,0.04),
    /* Device drop shadow */
    0 8px 32px rgba(0,0,0,0.60),
    0 24px 64px rgba(0,0,0,0.40),
    /* Screen colour bleed */
    0 0 60px rgba(96,165,250,0.07),
    0 0 60px rgba(52,211,153,0.05);
}

/* ── Top bar ── */
.wm-dash-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 11px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.wm-dash-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.60rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #4ade80;
  text-transform: uppercase;
}
.wm-dash-pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74,222,128,0.5);
  animation: wmPulse 2.4s ease-out infinite;
}
@keyframes wmPulse {
  0%   { box-shadow: 0 0 0 0   rgba(74,222,128,0.5); }
  60%  { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0   rgba(74,222,128,0); }
}
.wm-dash-title {
  flex: 1;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
}
.wm-dash-clock {
  font-size: 0.68rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,0.42);
  letter-spacing: 0.08em;
}

/* ── KPI row ── */
.wm-dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.wm-dash-kpi {
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}
.wm-dash-kpi + .wm-dash-kpi::before {
  content: '';
  position: absolute;
  left: 0; top: 14px; bottom: 12px;
  width: 1px;
  background: rgba(255,255,255,0.06);
}
.wm-dash-kpi-label {
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}
.wm-dash-kpi-val {
  font-size: 1.42rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,0.92);
  line-height: 1;
  letter-spacing: -0.02em;
  transition: color 0.35s ease;
}
.wm-dash-kpi-unit {
  font-size: 0.56rem;
  color: rgba(255,255,255,0.22);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.wm-dash-kpi-mode {
  font-size: 0.80rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
}

/* SOC progress bar under the SOC KPI */
.wm-dash-soc-bar {
  margin-top: 5px;
  height: 2px;
  border-radius: 1px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.wm-dash-soc-fill {
  height: 100%;
  border-radius: 1px;
  background: rgba(255,255,255,0.55);
  width: var(--soc, 0%);
  transition: width 0.8s ease, background 0.4s ease;
}

/* ── Canvas chart ── */
.wm-dash-chart-wrap {
  position: relative;
  overflow: hidden;
  background: #0c0c0e;
  height: 180px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
#wm-energy-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ── Dispatch band ── */
.wm-dash-band {
  display: flex;
  height: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  gap: 1px;
  background: rgba(255,255,255,0.04);
}
.wm-dash-band-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  transition: opacity 0.3s ease;
}
.wm-dash-band-seg em {
  font-style: normal;
  font-weight: 400;
  font-size: 0.54rem;
  color: rgba(255,255,255,0.32);
  letter-spacing: 0.04em;
}
.wm-dash-band-seg.is-active {
  opacity: 1;
}
.wm-dash-band-seg:not(.is-active) {
  opacity: 0.45;
}
.wm-band-charge    { background: rgba(37,99,235,0.28); }
.wm-band-hold      { background: rgba(255,255,255,0.05); }
.wm-band-discharge { background: rgba(234,88,12,0.28); }
.wm-band-reserve   { background: rgba(22,163,74,0.18); }

/* ── Legend ── */
.wm-dash-legend {
  display: flex;
  gap: 18px;
  padding: 10px 16px;
}
.wm-dash-leg {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.60rem;
  font-weight: 500;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.04em;
}
.wm-dash-leg::before {
  content: '';
  display: inline-block;
  flex-shrink: 0;
}
/* Tariff: bar chart icon — 3 tiny columns */
.wm-dash-leg--tariff::before {
  width: 14px;
  height: 10px;
  background:
    linear-gradient(to top, rgba(212,118,7,0.85) 100%, transparent 0) 0 100% / 3px 55% no-repeat,
    linear-gradient(to top, rgba(212,118,7,0.85) 100%, transparent 0) 5.5px 100% / 3px 85% no-repeat,
    linear-gradient(to top, rgba(212,118,7,0.85) 100%, transparent 0) 11px 100% / 3px 40% no-repeat;
}
/* Load + PV: line icon */
.wm-dash-leg--load::before,
.wm-dash-leg--pv::before {
  width: 20px;
  height: 1.5px;
  border-radius: 1px;
  margin-bottom: 1px;
}
.wm-dash-leg--load::before { background: rgba(96,165,250,0.9); }
.wm-dash-leg--pv::before   { background: rgba(52,211,153,0.9); }

.wm-tariff-viz {
  border-radius: var(--wm-radius-lg);
  background: rgba(255, 255, 255, 0.78);
  padding: 20px;
}
.wm-ai-panel {
  margin-top: 14px;
  position: relative;
  border-radius: var(--wm-radius-lg);
  padding: 16px;
  background:
    radial-gradient(circle at 50% 30%, rgba(212, 144, 10, 0.22), transparent 56%),
    linear-gradient(135deg, rgba(10, 37, 64, 0.86), rgba(20, 36, 72, 0.86));
  overflow: hidden;
}
.wm-ai-glow {
  position: absolute;
  inset: -35% -20%;
  background: conic-gradient(from 0deg, rgba(212, 144, 10, 0), rgba(247, 201, 75, 0.28), rgba(212, 144, 10, 0));
  animation: wmAiRotate 8s linear infinite;
}
.wm-ai-core {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  margin: 8px auto 14px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  letter-spacing: 0.04em;
  font-weight: 700;
  background: linear-gradient(135deg, var(--wm-violet), var(--wm-blue));
  box-shadow: 0 0 0 8px rgba(212, 144, 10, 0.16), 0 0 34px rgba(247, 201, 75, 0.45);
}
.wm-ai-track {
  position: relative;
  z-index: 2;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
.wm-ai-track::after {
  content: "";
  position: absolute;
  left: -30%;
  top: 0;
  width: 30%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
  animation: wmAiSweep 2.8s ease-in-out infinite;
}
.wm-ai-steps {
  position: relative;
  z-index: 2;
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.wm-ai-step {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font: inherit;
  font-size: 0.74rem;
  padding: 7px 8px;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
}
.wm-ai-step.is-active {
  color: #fff;
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--wm-violet), var(--wm-blue));
}
.wm-viz-label {
  color: var(--wm-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* 24h TOU timeline bar */
.wm-tou-timeline {
  margin-top: 14px;
  display: flex;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  gap: 2px;
}
.wm-tou-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  line-height: 1.3;
  text-align: center;
  padding: 0 4px;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.wm-tou-segment em {
  font-style: normal;
  font-weight: 700;
  display: block;
}
.wm-tou-low      { background: #2d6a9f; }
.wm-tou-mid      { background: #4a5568; }
.wm-tou-high     { background: #b45309; }

.wm-viz-caption {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--wm-muted);
  line-height: 1.5;
}

/* Live signal indicators */
.wm-tou-signals {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.wm-tou-signal {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.80rem;
  color: var(--wm-soft);
}
.wm-tou-signal-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.wm-tou-signal-dot--green  { background: #16a34a; box-shadow: 0 0 5px rgba(22,163,74,0.55); }
.wm-tou-signal-dot--yellow { background: #EF870E; box-shadow: 0 0 5px rgba(239,135,14,0.55); }
.wm-tou-signal-dot--blue   { background: #2563eb; box-shadow: 0 0 5px rgba(37,99,235,0.55); }
.wm-tariff-media {
  margin-top: 16px;
  border-radius: var(--wm-radius-md);
  overflow: hidden;
  background: rgba(10, 37, 64, 0.04);
}
.wm-tariff-shot {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.03) brightness(0.94);
}
.wm-tariff-media figcaption {
  padding: 10px 12px;
  color: var(--wm-muted);
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.72);
}

/* Ecosystem */
/* ══════════════════════════════════════════════════════════════
   ECOSYSTEM — open / editorial layout
   Canvas (light bg, airy) + right info stream (page-native)
   ══════════════════════════════════════════════════════════════ */

.wm-ecosystem-layout { display: block; margin-top: 0; }
.wm-ecosystem-stage  { display: block; }

/* Ecosystem section — tighter vertical padding so it fits one screen */
.wm-ecosystem { padding-top: 60px; padding-bottom: 60px; }

/* ── Two-column layout ────────────────────────────────────── */
.wm-eco-layout {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: stretch;
}

/* ── Canvas area — pure white card, premium elevation ─────── */
.wm-eco-canvas-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  /* 4-layer shadow system: top highlight → soft body → depth → ambient */
  box-shadow:
    0 0 0 1px rgba(10,37,64,0.07),
    0 1px 2px rgba(10,37,64,0.04),
    0 8px 24px rgba(10,37,64,0.07),
    0 24px 48px rgba(10,37,64,0.05);
  border: none;
  min-height: clamp(280px, 38vh, 400px);
}
#wm-eco-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Device pills float at bottom of canvas */
.wm-eco-pills-row {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(to top, rgba(255,255,255,0.97) 55%, rgba(255,255,255,0));
}
.wm-device-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.wm-device-list button {
  border: 1px solid var(--wm-border);
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  color: var(--wm-muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 5px 12px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: color 160ms ease, background 160ms ease,
              border-color 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
}
.wm-device-list button:hover {
  color: var(--wm-text);
  border-color: var(--wm-border-mid);
  background: #fff;
  box-shadow: var(--wm-shadow-sm);
}
.wm-device-list button.is-active {
  color: #C4700A;
  background: rgba(239,135,14,0.08);
  border-color: rgba(239,135,14,0.50);
  box-shadow: none;
}

/* ── Right: macOS Terminal window ────────────────────────── */
.wm-eco-stream {
  background: #1e1e1e;          /* macOS Terminal "Pro" dark */
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.55),
    0 8px 32px rgba(0,0,0,0.32),
    0 24px 56px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
}

/* ── Title bar ── */
.wm-eco-term-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  background: #2d2d2d;
  border-bottom: 1px solid rgba(0,0,0,0.4);
  flex-shrink: 0;
}
.wm-eco-term-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.wm-eco-term-dot--red    { background: #ff5f57; }
.wm-eco-term-dot--yellow { background: #febc2e; }
.wm-eco-term-dot--green  { background: #28c840; }
.wm-eco-term-title {
  flex: 1;
  text-align: center;
  font-size: 0.68rem;
  font-family: "SF Mono", ui-monospace, monospace;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.02em;
  margin-left: -50px; /* compensate dots to visually center text */
  pointer-events: none;
  user-select: none;
}

/* ── Terminal body ── */
.wm-eco-stream-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  flex: 1;
  padding: 14px 16px;
}

/* Each log line */
.wm-eco-log-line {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 6px;
  align-items: baseline;
  padding: 3px 0;
  border-bottom: none;
  opacity: 0;
  animation: wm-log-fade-in 180ms ease forwards;
}
.wm-eco-log-line:last-child { border-bottom: none; }
@keyframes wm-log-fade-in {
  from { opacity: 0; transform: translateY(3px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Timestamp — dim green, mono */
.wm-eco-log-ts {
  font-size: 0.60rem;
  color: rgba(255,255,255,0.22);
  font-family: "SF Mono", ui-monospace, monospace;
  padding-top: 0;
  user-select: none;
  letter-spacing: 0.01em;
}

/* Log text — mono, on dark */
.wm-eco-log-text {
  font-size: 0.72rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.70);
  font-family: "SF Mono", ui-monospace, monospace;
  white-space: normal;
  word-break: break-all;
}
/* Terminal color scheme for log types */
.wm-eco-log-text.is-info   { color: rgba(255,255,255,0.42); }
.wm-eco-log-text.is-value  { color: #febc2e; font-weight: 400; } /* amber — values */
.wm-eco-log-text.is-ok     { color: #28c840; font-weight: 400; } /* green — success */
.wm-eco-log-text.is-system { color: #6eb8f7; font-weight: 400; } /* blue — system */
.wm-eco-log-text.is-warn   { color: #ff5f57; font-weight: 400; } /* red — warn */

/* Cursor — classic block blink */
.wm-eco-cursor {
  display: inline-block;
  width: 7px;
  height: 0.85em;
  background: rgba(255,255,255,0.75);
  vertical-align: text-bottom;
  margin-left: 1px;
  animation: wm-cursor-blink 1.1s step-end infinite;
}
@keyframes wm-cursor-blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* Safety/specs/form */
.wm-final-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.88fr) minmax(0, 1.12fr);
  gap: 18px 44px;
  align-items: start;
}
.wm-final-grid > .reveal {
  align-self: start;
  padding-top: 8px;
}
.wm-final-grid > .reveal .wm-eyebrow {
  color: rgba(10, 37, 64, 0.44);
  letter-spacing: 0.14em;
}
.wm-final-grid > .reveal h2 {
  margin-top: 10px;
  font-size: var(--wm-point-title-size);
  font-weight: var(--wm-selling-title-weight);
  line-height: 1.14;
  letter-spacing: -0.018em;
  max-width: 14ch;
  text-wrap: balance;
}
.wm-final-grid > .reveal > p:not(.wm-eyebrow) {
  margin-top: 12px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--wm-soft);
  max-width: 38ch;
}
.wm-final-trust {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}
.wm-final-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(10, 37, 64, 0.62);
  letter-spacing: 0.01em;
}
.wm-final-trust span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(239, 135, 14, 0.9), rgba(14, 165, 233, 0.75));
  box-shadow: 0 0 0 2px rgba(239, 135, 14, 0.13);
}
.wm-final-grid > .reveal::after {
  content: "";
  display: block;
  width: 132px;
  height: 1px;
  margin-top: 18px;
  background: linear-gradient(90deg, rgba(10, 37, 64, 0.24), rgba(10, 37, 64, 0));
}

/* ── Safety section: stacked full-width cards ───────── */
.wm-safety-stack {
  display: flex;
  flex-direction: column;
  gap: var(--wm-space);
}

/* shared card shell */
.wm-safety-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--wm-surface, #f5f5f7);
}

/* ── Card 1 (AFCI): bare — text left, rounded video right ── */
.wm-safety-card--afci {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0;          /* vertical breathing room, no card bg */
}
.wm-afci-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.wm-afci-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: transparent;
}
.wm-afci-video-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(
      to top,
      rgba(4, 12, 24, 0.56) 0%,
      rgba(4, 12, 24, 0.16) 46%,
      rgba(4, 12, 24, 0) 72%
    ),
    radial-gradient(78% 62% at 84% 14%, rgba(81, 147, 201, 0.12) 0%, rgba(81, 147, 201, 0) 70%);
}
.wm-afci-video-wrap .wm-card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: var(--wm-video-filter-cold);
}

/* ── AFCI video: bottom caption badge ───────────────── */
.wm-afci-video-caption {
  position: absolute;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 2;
}
.wm-afci-caption-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.wm-afci-caption-label::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 11px;
  background: rgba(255,255,255,0.2);
  margin-left: 10px;
  vertical-align: middle;
}
.wm-afci-caption-stat {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}

/* ── Off-grid: cinematic hero card ─────────────────────── */
.wm-offgrid-card {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: transparent;
  isolation: isolate;
  border: 1px solid rgba(177, 214, 245, 0.18);
  box-shadow:
    0 20px 48px rgba(2, 8, 18, 0.30),
    0 1px 0 rgba(214, 234, 252, 0.10) inset,
    0 -1px 0 rgba(24, 46, 70, 0.22) inset;
}
.wm-offgrid-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.wm-offgrid-media::before,
.wm-offgrid-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.wm-offgrid-media::before {
  z-index: 1;
  background:
    radial-gradient(92% 72% at 70% 66%, rgba(87, 150, 206, 0.26) 0%, rgba(87, 150, 206, 0) 64%),
    radial-gradient(78% 58% at 20% 10%, rgba(166, 212, 247, 0.16) 0%, rgba(166, 212, 247, 0) 68%);
  mix-blend-mode: screen;
  opacity: 0.72;
}
.wm-offgrid-media::after {
  z-index: 2;
  background:
    linear-gradient(135deg, rgba(8, 9, 14, 0.36) 0%, rgba(8, 9, 14, 0) 36%),
    radial-gradient(130% 96% at 50% 50%, rgba(8, 9, 14, 0) 56%, rgba(8, 9, 14, 0.42) 100%);
}
.wm-offgrid-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0b1627 0%, #1a2a4a 40%, #0d1f35 100%);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.2);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}
.wm-offgrid-card video,
.wm-offgrid-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
  filter: var(--wm-video-filter-cold);
}
.wm-offgrid-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(
    136deg,
    rgba(231, 244, 255, 0.58) 0%,
    rgba(169, 207, 240, 0.34) 36%,
    rgba(95, 154, 206, 0.24) 72%,
    rgba(193, 225, 252, 0.32) 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.62;
  pointer-events: none;
  z-index: 3;
  transition: opacity 380ms ease;
}
.wm-offgrid-card::after {
  content: "";
  position: absolute;
  inset: -42%;
  border-radius: inherit;
  background: conic-gradient(
    from 220deg at 50% 50%,
    rgba(166, 211, 247, 0) 0deg,
    rgba(166, 211, 247, 0.34) 56deg,
    rgba(166, 211, 247, 0) 118deg,
    rgba(88, 149, 205, 0.28) 188deg,
    rgba(88, 149, 205, 0) 246deg,
    rgba(202, 230, 255, 0.22) 316deg,
    rgba(202, 230, 255, 0) 360deg
  );
  filter: blur(22px);
  opacity: 0.16;
  pointer-events: none;
  z-index: 1;
  animation: wm-offgrid-edge-drift 22s linear infinite;
  transition: opacity 380ms ease;
}
.wm-offgrid-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 44px 48px;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(3, 10, 20, 0.70) 0%,
    rgba(4, 14, 28, 0.40) 46%,
    rgba(4, 14, 28, 0.10) 100%
  );
}
@keyframes wm-offgrid-edge-drift {
  to { transform: rotate(1turn) scale(1.02); }
}
@media (hover: hover) and (pointer: fine) {
  .wm-offgrid-card:hover::before {
    opacity: 0.94;
  }
  .wm-offgrid-card:hover::after {
    opacity: 0.22;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wm-offgrid-card::after {
    animation: none;
    opacity: 0.14;
  }
}
.wm-offgrid-copy {
  max-width: 52ch;
}
.wm-offgrid-copy .wm-eyebrow--light {
  margin-bottom: 10px;
}
.wm-offgrid-title {
  margin: 0 0 14px;
  font-size: var(--wm-point-title-size);
  font-weight: var(--wm-selling-title-weight);
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.15;
}
.wm-offgrid-sub {
  margin: 0;
  font-size: clamp(0.88rem, 1.3vw, 1rem);
  color: rgba(255,255,255,0.68);
  line-height: 1.65;
}

/* ── Off-grid: decision-first board + engineer drill-down ── */
.wm-offgrid-support {
  --wm-offgrid-ink: #0f2238;
  --wm-offgrid-muted: rgba(15, 34, 56, 0.52);
  --wm-offgrid-soft: rgba(15, 34, 56, 0.72);
  --wm-offgrid-line: rgba(15, 34, 56, 0.10);
  --wm-offgrid-line-strong: rgba(15, 34, 56, 0.16);
  --wm-offgrid-focus: #f2ad1b;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 4px 4px 0;
}
.wm-offgrid-support-head {
  margin: 0 auto;
  max-width: 70ch;
  text-align: center;
}
.wm-offgrid-support-kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wm-offgrid-muted);
}
.wm-offgrid-support-title {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--wm-offgrid-ink);
  font-weight: 600;
}
.wm-offgrid-board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.wm-offgrid-board-card {
  appearance: none;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--wm-offgrid-line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 254, 255, 0.98) 100%);
  box-shadow:
    0 10px 24px rgba(10, 28, 50, 0.06),
    0 1px 0 rgba(255,255,255,0.88) inset;
  width: 100%;
  min-height: 196px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 240ms ease,
    box-shadow 240ms ease,
    transform 240ms ease,
    background 240ms ease;
}
.wm-offgrid-board-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(15,34,56,0.05) 0%, rgba(15,34,56,0.26) 52%, rgba(15,34,56,0.05) 100%);
  opacity: 0;
  transition: opacity 240ms ease;
}
.wm-offgrid-board-card:hover,
.wm-offgrid-board-card:focus-visible {
  border-color: var(--wm-offgrid-line-strong);
  box-shadow:
    0 16px 30px rgba(10, 28, 50, 0.10),
    0 1px 0 rgba(255,255,255,0.92) inset;
  transform: translateY(-2px);
  outline: none;
}
.wm-offgrid-board-card:hover::before,
.wm-offgrid-board-card:focus-visible::before {
  opacity: 0.7;
}
.wm-offgrid-board-card.is-active {
  border-color: rgba(15, 34, 56, 0.20);
  background:
    linear-gradient(168deg, rgba(255, 255, 255, 0.99) 0%, rgba(249, 251, 253, 0.98) 100%);
  box-shadow:
    0 16px 32px rgba(12, 30, 52, 0.10),
    0 0 0 1px rgba(15, 34, 56, 0.06) inset;
}
.wm-offgrid-board-card.is-active::before {
  opacity: 0.78;
}
.wm-offgrid-board-label {
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--wm-offgrid-muted);
}
.wm-offgrid-board-value {
  position: relative;
  margin-top: 2px;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--wm-offgrid-ink);
}
.wm-offgrid-board-card.is-active .wm-offgrid-board-value {
  color: #f0a814;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.42), 0 0 14px rgba(242, 173, 27, 0.20);
}
.wm-offgrid-board-card.is-active .wm-offgrid-board-value::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  margin-left: 10px;
  margin-bottom: 4px;
  background: var(--wm-offgrid-focus);
  box-shadow: 0 0 0 4px rgba(242, 173, 27, 0.20), 0 0 12px rgba(242, 173, 27, 0.32);
}
.wm-offgrid-board-title {
  margin-top: 4px;
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: -0.012em;
  font-weight: 600;
  color: var(--wm-offgrid-ink);
}
.wm-offgrid-board-copy {
  margin-top: auto;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--wm-offgrid-soft);
}
.wm-offgrid-note-stage {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--wm-offgrid-line);
  background:
    radial-gradient(120% 120% at 10% 0%, rgba(15, 34, 56, 0.04) 0%, rgba(15, 34, 56, 0) 46%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 254, 255, 0.97) 100%);
  padding: 22px 24px 20px;
  box-shadow:
    0 12px 28px rgba(10, 28, 50, 0.08),
    0 1px 0 rgba(255,255,255,0.9) inset;
}
.wm-offgrid-group-label {
  margin: 0 0 8px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wm-offgrid-muted);
}
.wm-offgrid-group-label--notes {
  margin-bottom: 10px;
}
.wm-offgrid-note-panel {
  display: none;
}
.wm-offgrid-note-panel.is-active {
  display: block;
  animation: wm-offgrid-note-in 320ms ease both;
}
@keyframes wm-offgrid-note-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.wm-offgrid-note-title {
  margin: 0 0 8px;
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--wm-offgrid-ink);
}
.wm-offgrid-note-desc {
  margin: 0;
  max-width: 78ch;
  font-size: 0.93rem;
  line-height: 1.62;
  color: var(--wm-offgrid-soft);
}
.wm-offgrid-note-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.wm-offgrid-note-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 34, 56, 0.11);
  font-size: 0.73rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(15, 34, 56, 0.62);
}
.wm-offgrid-summary {
  font-size: clamp(0.93rem, 1.25vw, 1.02rem);
  color: rgba(15, 34, 56, 0.64);
  line-height: 1.7;
  max-width: 72ch;
  margin: 0 auto;
  text-align: center;
  padding-top: 4px;
}

/* ── Card 3 (Reliability): full-bleed cinematic dark card ── */
.wm-reliability-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: transparent;
  isolation: isolate;
  border: 1px solid rgba(231, 238, 248, 0.28);
  box-shadow:
    0 18px 40px rgba(3, 7, 16, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.wm-reliability-card::before {
  content: none;
}
.wm-reliability-card::after {
  content: none;
}
.wm-reliability-card .wm-card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
  transform: scale(1.012);
  filter: var(--wm-video-filter-cold);
}
.wm-reliability-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 48px;
  z-index: 3;
  background: linear-gradient(
    to bottom,
    rgba(5, 18, 34, 0.36) 0%,
    rgba(5, 18, 34, 0.12) 44%,
    rgba(3, 10, 20, 0.62) 100%
  );
}
.wm-reliability-overlay::before {
  content: none;
}
@keyframes wm-reliability-edge-scan {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.03); }
  100% { transform: rotate(360deg) scale(1); }
}
@media (hover: hover) and (pointer: fine) {
  .wm-reliability-card:hover::before {
    opacity: 0.96;
  }
  .wm-reliability-card:hover::after {
    opacity: 0.32;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wm-reliability-card::after {
    animation: none;
    opacity: 0.16;
  }
}

/* Center block: headline + tagline */
.wm-reliability-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: auto;          /* true vertical center within flex */
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  gap: 14px;
}
.wm-reliability-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(
    140deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.06) 52%,
    rgba(16, 20, 30, 0.2) 100%
  );
  backdrop-filter: blur(10px) saturate(112%);
  -webkit-backdrop-filter: blur(10px) saturate(112%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}
.wm-reliability-kicker-line {
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.92));
}
.wm-reliability-kicker-text {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(238, 245, 255, 0.88);
}
.wm-reliability-kicker-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(241, 248, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14);
}
.wm-reliability-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: var(--wm-selling-title-weight);
  letter-spacing: -0.035em;
  color: #f6f9fd;
  line-height: var(--wm-selling-title-line);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.44),
    0 0 22px rgba(255, 255, 255, 0.16);
}
.wm-reliability-sub {
  margin: 0;
  font-size: clamp(0.92rem, 1.15vw, 1.06rem);
  color: rgba(229, 237, 247, 0.87);
  font-weight: 400;
  letter-spacing: 0.02em;
  max-width: 44ch;
  line-height: 1.55;
}

/* Bottom block: detail copy + spec strip */
.wm-reliability-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 14px 16px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(
    140deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.06) 52%,
    rgba(16, 20, 30, 0.22) 100%
  );
  backdrop-filter: blur(10px) saturate(112%);
  -webkit-backdrop-filter: blur(10px) saturate(112%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 12px 28px rgba(4, 8, 14, 0.24);
  position: relative;
  z-index: 1;
}
.wm-reliability-bottom::before {
  content: none;
}
.wm-reliability-bottom::after {
  content: none;
}
.wm-reliability-detail {
  margin: 0;
  font-size: clamp(0.79rem, 0.98vw, 0.9rem);
  color: rgba(238, 245, 255, 0.9);
  line-height: 1.6;
  max-width: 62ch;
  position: relative;
  z-index: 1;
}
.wm-reliability-spec-strip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.wm-reliability-spec-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(
    140deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.06) 52%,
    rgba(16, 20, 30, 0.2) 100%
  );
  backdrop-filter: blur(10px) saturate(112%);
  -webkit-backdrop-filter: blur(10px) saturate(112%);
  font-size: clamp(0.7rem, 1vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(238, 245, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 8px 16px rgba(5, 8, 14, 0.2);
  position: relative;
  overflow: hidden;
}
.wm-reliability-spec-pill::before {
  content: none;
}
.wm-reliability-spec-pill::after {
  content: none;
}

/* ── Shared text styles ─────────────────────────────── */
.wm-safety-copy {
  display: flex;
  flex-direction: column;
}
.wm-safety-title {
  margin: 8px 0 12px;
  font-size: var(--wm-point-title-size);
  font-weight: var(--wm-selling-title-weight);
  letter-spacing: -0.02em;
  color: var(--wm-ink);
  line-height: 1.15;
}
.wm-safety-desc {
  color: var(--wm-soft);
  font-size: 0.97rem;
  line-height: 1.7;
}
.wm-safety-card .wm-media-placeholder {
  min-height: 240px;
  border-radius: 12px;
}

/* ── Video primitives ───────────────────────────────── */
.wm-card-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: transparent;
}
.wm-card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: var(--wm-video-filter-cold);
}

.wm-note { margin-top: 12px; color: var(--wm-muted); font-size: 0.82rem; }

/* ── Specs section: Tesla-style layout ──────────────────── */

/* Header: title left, tabs right */
/* ── Specs: Tesla exact layout (light bg) ───────────────────── */

.wm-specs {
  background: #fff;
}

/* Top row: large title left, tabs right */
.wm-specs-top {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 0;
}

/* Title — Tesla "Powerwall Specs" scale */
.wm-specs-title {
  font-size: var(--wm-point-title-size);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--wm-ink);
  margin: 0;
  padding-bottom: 18px;
  line-height: 1.15;
  white-space: nowrap;
}

/* Tabs — only occupy right col, underline active */
.wm-series-tabs {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  width: clamp(420px, 46vw, 720px);
  max-width: 100%;
  margin-left: auto;
  gap: 0;
  border-bottom: 1px solid rgba(10,37,64,0.14);
}
.wm-series-tabs button {
  position: relative;
  flex: 1;
  background: none;
  border: none;
  padding: 0 8px 18px;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 400;
  color: rgba(10,37,64,0.28);
  cursor: pointer;
  transition: color 160ms ease;
  white-space: nowrap;
  text-align: center;
  letter-spacing: 0;
}
.wm-series-tabs button::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #101114;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}
.wm-series-tabs button:hover { color: rgba(10,37,64,0.62); }
.wm-series-tabs button.is-active {
  color: #101114;
  font-weight: 400;
}
.wm-series-tabs button.is-active::after { transform: scaleX(1); }

/* Panel */
.wm-specs-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0;
}

/* Each group row — group title above 4-col spec grid */
.wm-spec-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 56px 0;
  border-top: 1px solid rgba(10,37,64,0.10);
}
.wm-spec-group:first-child {
  border-top: none;
  padding-top: 64px;
}
.wm-spec-group:last-child {
  padding-bottom: 0;
}

/* Group name — Tesla "Power" / "Features" / "Warranty" */
.wm-spec-group-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--wm-ink);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

/* 4-col data grid */
.wm-spec-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 26px;
  align-items: start;
}
.wm-spec-cell {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

/* dt — small muted label */
.wm-spec-cell dt {
  font-size: 0.8125rem;
  color: rgba(10,37,64,0.38);
  margin-bottom: 8px;
  font-weight: 400;
  line-height: 1.4;
}

/* dd — body copy, normal weight, multi-line */
.wm-spec-cell dd {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--wm-ink);
  line-height: 1.55;
  letter-spacing: 0;
  display: flex;
  flex-direction: column;
}
.wm-spec-cell dd span { display: block; }

/* CTA button */

#faq {
  position: relative;
  overflow: clip;
  isolation: isolate;
  background: #ffffff;
}
#faq::before {
  content: none;
}
#faq::after {
  content: none;
}
#faq .wm-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 22px 30px;
  align-items: start;
}
#faq .wm-section-head {
  position: sticky;
  top: 92px;
  padding: 22px 20px 20px;
  border-radius: 20px;
  border: 1px solid rgba(10,37,64,0.08);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(10,37,64,0.08);
}
#faq .wm-section-head::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 12px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(10,37,64,0.22), rgba(10,37,64,0));
}
#faq .wm-section-head .wm-eyebrow {
  color: rgba(10,37,64,0.45);
}
#faq .wm-section-head h2 {
  max-width: none;
  color: var(--wm-ink);
}
.wm-faq-lead {
  margin-top: 14px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(10,37,64,0.62);
}
.wm-faq-signals {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}
.wm-faq-signals span {
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(10,37,64,0.66);
  background: linear-gradient(135deg, rgba(244,247,251,0.98), rgba(237,243,250,0.98));
  box-shadow: 0 0 0 1px rgba(10,37,64,0.08) inset;
}

.wm-faq-list {
  position: relative;
  margin-top: 0;
  display: grid;
  gap: 14px;
  counter-reset: wm-faq;
}
.wm-faq-list::before {
  content: none;
}
.wm-faq-list > details {
  position: relative;
  z-index: 1;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(10,37,64,0.09);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(10,37,64,0.04);
  transition: border-color 240ms ease, box-shadow 240ms ease, background-color 240ms ease;
}
.wm-faq-list > details::before {
  content: none;
}
.wm-faq-list > details::after {
  content: none;
}
.wm-faq-list > details[open] {
  border-color: rgba(10,37,64,0.18);
  box-shadow: 0 8px 20px rgba(10,37,64,0.06);
  background: #ffffff;
}
.wm-faq-list summary {
  position: relative;
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0;
  padding: 15px 52px 15px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.38;
  color: var(--wm-ink);
  cursor: pointer;
  transition: color 220ms ease;
}
.wm-faq-list summary::-webkit-details-marker {
  display: none;
}
.wm-faq-list summary::before {
  counter-increment: wm-faq;
  content: counter(wm-faq, decimal-leading-zero);
  flex: 0 0 auto;
  margin-top: 1px;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(10,37,64,0.58);
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(10,37,64,0.08) inset;
}
.wm-faq-list summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1.6px solid rgba(10,37,64,0.45);
  border-bottom: 1.6px solid rgba(10,37,64,0.45);
  transform: translateY(-62%) rotate(45deg);
  transition: transform 240ms ease, border-color 240ms ease;
}
.wm-faq-list > details[open] summary {
  color: #091e33;
}
.wm-faq-list > details[open] summary::after {
  transform: translateY(-34%) rotate(-135deg);
  border-color: rgba(10,37,64,0.62);
}
.wm-faq-list p {
  margin: 0;
  padding: 0 20px 16px 56px;
  color: rgba(10,37,64,0.75);
  line-height: 1.68;
  font-size: 0.9rem;
  border-top: 1px solid rgba(10,37,64,0.06);
  background: #ffffff;
  animation: wm-faq-answer-in 280ms ease;
}
@media (hover: hover) {
  .wm-faq-list > details:hover {
    border-color: rgba(10,37,64,0.14);
    box-shadow: 0 4px 12px rgba(10,37,64,0.05);
  }
  .wm-faq-list > details:hover summary {
    color: #0a2540;
  }
}
@keyframes wm-faq-answer-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 1040px) {
  #faq .wm-container {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  #faq .wm-section-head {
    position: static;
    top: auto;
    padding: 18px 16px;
  }
}

.wm-final-cta {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}
.wm-final-cta::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: rgba(10, 37, 64, 0.08);
}
.wm-final-cta::after {
  content: "";
  position: absolute;
  right: 7%;
  top: 14%;
  width: 360px;
  height: 360px;
  background:
    radial-gradient(circle at 35% 30%, rgba(14, 165, 233, 0.09), rgba(14, 165, 233, 0) 62%),
    radial-gradient(circle at 66% 62%, rgba(239, 135, 14, 0.08), rgba(239, 135, 14, 0) 68%);
  pointer-events: none;
}
.wm-final-cta .wm-container {
  position: relative;
  z-index: 1;
}

.wm-final-cta .wm-form {
  --wm-form-x: 50%;
  --wm-form-y: 38%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 20px 42px rgba(10, 37, 64, 0.08), 0 1px 0 rgba(255, 255, 255, 0.92) inset;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  transition: border-color 220ms ease, box-shadow 260ms ease, transform 220ms ease;
}
.wm-final-cta .wm-form > * {
  position: relative;
  z-index: 1;
}
.wm-final-cta .wm-form::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) padding-box,
    radial-gradient(240px 220px at var(--wm-form-x) var(--wm-form-y), rgba(14, 165, 233, 0.55), rgba(14, 165, 233, 0) 72%) border-box,
    radial-gradient(220px 190px at calc(var(--wm-form-x) + 10%) calc(var(--wm-form-y) + 16%), rgba(239, 135, 14, 0.5), rgba(239, 135, 14, 0) 74%) border-box;
  background-clip: padding-box, border-box, border-box;
  opacity: 0.58;
  transition: opacity 240ms ease;
  pointer-events: none;
  z-index: 0;
}
.wm-final-cta .wm-form::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 38%,
    rgba(255, 255, 255, 0.82) 50%,
    rgba(255, 255, 255, 0) 62%
  );
  transform: translateX(-62%);
  opacity: 0;
  transition: opacity 260ms ease, transform 1150ms cubic-bezier(0.22, 0.72, 0.14, 1);
  pointer-events: none;
  z-index: 0;
}
.wm-final-cta .wm-form:focus-within {
  transform: translateY(-1px);
  box-shadow: 0 24px 50px rgba(10, 37, 64, 0.12), 0 0 0 1px rgba(14, 165, 233, 0.1) inset;
}
.wm-final-cta .wm-form:hover::after,
.wm-final-cta .wm-form:focus-within::after {
  opacity: 0.62;
  transform: translateX(62%);
}
.wm-final-cta .wm-form:hover::before,
.wm-final-cta .wm-form:focus-within::before {
  opacity: 0.9;
}
.wm-final-cta .wm-form-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.wm-final-cta .wm-form-head p {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(10, 37, 64, 0.7);
  text-transform: uppercase;
}
.wm-final-cta .wm-form-head span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(10, 37, 64, 0.62);
  background: rgba(10, 37, 64, 0.06);
}
.wm-final-cta .wm-form > label:nth-of-type(1),
.wm-final-cta .wm-form > label:nth-of-type(2) {
  grid-column: span 1;
}
.wm-final-cta .wm-form > label:nth-of-type(3),
.wm-final-cta .wm-form > fieldset,
.wm-final-cta .wm-form > .wm-cta-row,
.wm-final-cta .wm-form > .wm-form-feedback {
  grid-column: 1 / -1;
}
.wm-final-cta .wm-form label,
.wm-final-cta .wm-form legend {
  color: rgba(10, 37, 64, 0.86);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: grid;
  gap: 8px;
}
.wm-final-cta .wm-form label:focus-within,
.wm-final-cta .wm-form fieldset:focus-within legend {
  color: #0a2540;
}
.wm-final-cta .wm-form input {
  height: 52px;
  border: 1px solid rgba(10, 37, 64, 0.14);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
  padding: 0 14px;
  color: var(--wm-text);
  font: inherit;
  font-size: 0.96rem;
  letter-spacing: 0.002em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease, transform 180ms ease;
}
.wm-final-cta .wm-form input::placeholder {
  color: rgba(10, 37, 64, 0.42);
}
.wm-final-cta .wm-form input:hover {
  border-color: rgba(10, 37, 64, 0.22);
  background: #ffffff;
}
.wm-final-cta .wm-form input:focus-visible {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(14, 165, 233, 0.46);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16), 0 8px 18px rgba(10, 37, 64, 0.08);
  background: #ffffff;
}
.wm-final-cta .wm-form fieldset {
  border: 0;
  margin: 2px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid rgba(10, 37, 64, 0.08);
}

.wm-final-cta .wm-usage-options,
.wm-final-cta .wm-toggle-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.wm-final-cta .wm-usage-options button,
.wm-final-cta .wm-toggle {
  border: 1px solid rgba(10, 37, 64, 0.1);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fb 100%);
  color: rgba(10, 37, 64, 0.72);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  padding: 8px 14px;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.76) inset;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.wm-final-cta .wm-usage-options button.is-active,
.wm-final-cta .wm-toggle.is-active {
  color: #0a2540;
  background: linear-gradient(180deg, #fff8ef 0%, #fff1df 100%);
  border-color: rgba(239, 135, 14, 0.42);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.78) inset, 0 6px 14px rgba(239, 135, 14, 0.14);
}
.wm-final-cta .wm-usage-options button:focus-visible,
.wm-final-cta .wm-toggle:focus-visible {
  outline: none;
  border-color: rgba(14, 165, 233, 0.44);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
@media (hover: hover) {
  .wm-final-cta .wm-usage-options button:hover,
  .wm-final-cta .wm-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(10, 37, 64, 0.24);
    background: #ffffff;
    box-shadow: 0 6px 12px rgba(10, 37, 64, 0.08);
  }
}
.wm-final-cta .wm-cta-row {
  margin-top: 10px;
  gap: 10px;
}
.wm-final-cta .wm-btn {
  height: 46px;
  border-radius: 14px;
  padding: 0 22px;
  font-size: 0.9rem;
  font-weight: 600;
}
.wm-final-cta .wm-btn:hover {
  opacity: 1;
}
.wm-final-cta .wm-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16);
}
.wm-final-cta .wm-btn--primary {
  box-shadow:
    0 7px 16px rgba(239, 135, 14, 0.22),
    0 1px 0 rgba(255,255,255,0.36) inset;
}
.wm-final-cta .wm-btn--secondary {
  box-shadow: 0 1px 0 rgba(255,255,255,0.84) inset, 0 2px 8px rgba(10,37,64,0.06);
}
.wm-final-cta .wm-btn--secondary:hover {
  box-shadow: 0 5px 12px rgba(10,37,64,0.1), 0 1px 0 rgba(255,255,255,0.88) inset;
}
.wm-final-cta .wm-form-feedback {
  min-height: 20px;
  margin-top: 4px;
  color: #0a7f59;
  font-size: 0.82rem;
}

/* Designer visualizer */
.wm-designer-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1.05fr 1.2fr 0.95fr;
  gap: 14px;
  align-items: start;
}
.wm-designer-panel p { margin-top: 6px; }

.wm-module-buttons {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.wm-module-buttons button {
  border: 0;
  border-radius: 999px;
  background: rgba(10, 37, 64, 0.06);
  color: var(--wm-soft);
  font: inherit;
  font-size: 0.76rem;
  padding: 7px 10px;
  cursor: pointer;
}
.wm-module-buttons button.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--wm-violet), var(--wm-blue));
}
.wm-slider-label,
.wm-rotate-label {
  margin-top: 12px;
  display: block;
  color: var(--wm-muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.wm-module-slider,
.wm-rotate-slider { margin-top: 8px; width: 100%; accent-color: var(--wm-violet); }

.wm-designer-data {
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}
.wm-designer-data dt { color: var(--wm-muted); font-size: 0.77rem; }
.wm-designer-data dd { margin: 0; color: var(--wm-text); font-weight: 600; }

.wm-scene-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--wm-soft);
  font-size: 0.82rem;
}
.wm-scene-controls label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.wm-scene-controls button {
  border: 1px solid var(--wm-border);
  border-radius: 999px;
  background: rgba(10, 37, 64, 0.05);
  color: var(--wm-violet);
  padding: 7px 11px;
  font: inherit;
  font-size: 0.76rem;
  cursor: pointer;
}

.wm-scene-canvas {
  margin-top: 12px;
  height: 330px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f4f8ff 0%, #ecf5ff 58%, #edf5f2 100%);
  perspective: 900px;
}
.wm-scene-bg,
.wm-scene-house,
.wm-scene-ground { position: absolute; }
.wm-scene-bg { inset: 0; background: radial-gradient(circle at 18% 20%, rgba(212, 144, 10, 0.2), transparent 38%); }
.wm-scene-house {
  right: 10%;
  top: 18%;
  width: 44%;
  height: 56%;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #eef4fb);
  box-shadow: inset 0 0 0 1px rgba(10, 37, 64, 0.06);
}
.wm-scene-ground {
  left: -8%;
  right: -8%;
  bottom: -14%;
  height: 42%;
  border-radius: 100%;
  background: radial-gradient(ellipse at center, rgba(184, 115, 51, 0.24), rgba(184, 115, 51, 0.03));
}

.wm-system-rig {
  position: absolute;
  z-index: 2;
  left: 16%;
  right: 12%;
  bottom: 15%;
  display: grid;
  grid-template-columns: 98px 1fr 100px;
  align-items: end;
  gap: 18px;
  transform-style: preserve-3d;
  transform: rotateY(var(--wm-rot, 0deg));
  transition: transform 260ms ease;
}

.wm-unit {
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f1f6fc);
  box-shadow: 0 12px 20px rgba(10, 37, 64, 0.12);
  display: grid;
  place-items: center;
  color: var(--wm-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.wm-unit-inverter { height: 136px; }
.wm-unit-panel { height: 102px; }
.wm-unit-battery {
  height: 280px;
  padding: 10px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.wm-battery-stack {
  width: 86px;
  display: grid;
  grid-template-rows: repeat(var(--wm-modules, 3), 28px);
  gap: 4px;
  align-content: end;
}
.wm-battery-module {
  border-radius: 6px;
  background: linear-gradient(180deg, #fff, #e9f2fd);
  box-shadow: inset 0 0 0 1px rgba(10, 37, 64, 0.08);
}
.wm-battery-label {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--wm-violet);
  font-size: 0.76rem;
  font-weight: 700;
}

.wm-wiring {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 220ms ease;
}
.wm-wiring path {
  fill: none;
  stroke: rgba(212, 144, 10, 0.72);
  stroke-width: 1.4;
}
.wm-scene-canvas.show-wiring .wm-wiring { opacity: 1; }

.wm-scene-canvas.is-night {
  background: linear-gradient(180deg, #101b35 0%, #16284a 58%, #182b30 100%);
}
.wm-scene-canvas.is-night .wm-scene-house {
  background: linear-gradient(180deg, #1f355f, #223a64);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* ── System Configurator (Terminal + 3D Viewer) ──────────────────────────── */

/* Shell layout */
.wm-config-shell {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
  align-items: stretch;
  /* Fill remaining viewport after section padding (100px×2) + section head (~110px) + margin */
  height: calc(100vh - 360px);
  min-height: 420px;
  max-height: 680px;
}

/* ── Terminal ── */
.wm-terminal {
  border-radius: var(--wm-radius-lg);
  background: #1a1a1f;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.28), 0 0 0 1px rgba(255,255,255,0.06);
}

.wm-term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: #2a2a30;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.wm-term-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.wm-term-dot--red    { background: #ff5f57; }
.wm-term-dot--yellow { background: #febc2e; }
.wm-term-dot--green  { background: #28c840; }

.wm-term-title {
  margin-left: 8px;
  flex: 1;
  text-align: center;
  color: rgba(255,255,255,0.38);
  font-size: 0.72rem;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

.wm-term-body {
  flex: 1;
  padding: 14px 16px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wm-term-output {
  flex: 1;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.80rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.80);
}

/* Individual terminal lines */
.wm-tline {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
}
.wm-tline--prompt  { color: #28c840; }
.wm-tline--system  { color: rgba(255,255,255,0.40); }
.wm-tline--question { color: #febc2e; font-weight: 600; margin-top: 10px; }
.wm-tline--answer  { color: var(--wm-accent); }
.wm-tline--success { color: #28c840; margin-top: 8px; }
.wm-tline--dim     { color: rgba(255,255,255,0.30); font-size: 0.74rem; }

/* Blinking cursor */
.wm-cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: rgba(255,255,255,0.7);
  vertical-align: text-bottom;
  animation: wm-blink 1.1s step-end infinite;
}
@keyframes wm-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Choice buttons */
.wm-term-choices {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wm-term-choice-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--wm-radius-sm);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.80);
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.78rem;
  cursor: pointer;
  overflow: hidden;
  transform: translateY(4px);
  opacity: 0;
  animation: wm-choice-enter 420ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--wm-enter-delay, 0ms);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 220ms ease, box-shadow 220ms ease;
  text-align: left;
}
.wm-term-choice-btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(239,135,14,0) 0%, rgba(255,190,92,0.34) 48%, rgba(239,135,14,0) 100%);
  transform: translateX(-120%);
  opacity: 0;
  transition: transform 600ms ease, opacity 300ms ease;
  pointer-events: none;
}
.wm-term-choice-btn:hover::before {
  transform: translateX(120%);
  opacity: 1;
}
.wm-term-choice-btn:hover {
  background: rgba(239,135,14,0.12);
  border-color: rgba(239,135,14,0.40);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.22), 0 0 0 1px rgba(239,135,14,0.18) inset;
}
.wm-term-choice-btn:focus-visible {
  outline: none;
  border-color: rgba(255,195,112,0.65);
  box-shadow: 0 0 0 2px rgba(239,135,14,0.20), 0 0 0 1px rgba(255,219,164,0.65) inset;
}
.wm-term-choice-btn:first-child {
  animation-name: wm-choice-enter, wm-choice-guidance;
  animation-duration: 420ms, 2.8s;
  animation-delay: var(--wm-enter-delay, 0ms), 1.0s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1), ease-in-out;
  animation-fill-mode: forwards, both;
  animation-iteration-count: 1, infinite;
}
.wm-term-choice-btn .wm-choice-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  color: var(--wm-accent);
  font-weight: 700;
  font-size: 0.72rem;
  flex-shrink: 0;
  transition: background 180ms ease, color 180ms ease, transform 220ms ease;
}
.wm-term-choice-btn:hover .wm-choice-key {
  background: rgba(255,199,120,0.22);
  transform: scale(1.04);
}
.wm-choice-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wm-choice-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.90);
  line-height: 1;
}
.wm-choice-sub {
  font-size: 0.70rem;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.03em;
  line-height: 1;
}

@keyframes wm-choice-enter {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wm-choice-guidance {
  0%, 100% {
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 0 0 rgba(239,135,14,0);
  }
  45% {
    border-color: rgba(255,184,92,0.48);
    box-shadow: 0 0 0 3px rgba(239,135,14,0.10), 0 8px 22px rgba(0,0,0,0.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wm-term-choice-btn {
    animation: none;
    opacity: 1;
    transform: none;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
  }
  .wm-term-choice-btn::before {
    display: none;
  }
  .wm-term-choice-btn:first-child {
    animation: none;
  }
}

/* Reset button */
.wm-term-reset {
  margin-top: 16px;
  align-self: flex-start;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--wm-radius-sm);
  background: transparent;
  color: rgba(255,255,255,0.40);
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.74rem;
  padding: 6px 12px;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease;
}
.wm-term-reset:hover {
  color: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.28);
}

/* ── 360° Viewer ── */
.wm-viewer {
  border-radius: var(--wm-radius-lg);
  background: #fff;
  border: 1px solid var(--wm-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--wm-shadow-sm);
}

/* Idle state */
.wm-viewer-idle {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 28px;
}
.wm-viewer-idle::before {
  content: "";
  position: absolute;
  inset: -16% -10% auto -10%;
  height: 58%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0));
  pointer-events: none;
  z-index: 0;
}
.wm-viewer-idle::after {
  content: "";
  position: absolute;
  left: 26%;
  bottom: 22%;
  width: min(420px, 66%);
  aspect-ratio: 1 / 0.42;
  background: radial-gradient(ellipse at center, rgba(248, 182, 124, 0.35), rgba(248, 182, 124, 0));
  filter: blur(16px);
  pointer-events: none;
  z-index: 0;
}
.wm-viewer-idle-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 52%;
  image-rendering: auto;
}
.wm-viewer-idle-content {
  --wm-idle-mx: 50%;
  --wm-idle-my: 50%;
  --wm-idle-tilt-x: 0deg;
  --wm-idle-tilt-y: 0deg;
  --wm-idle-scale: 1;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(470px, calc(100% - 44px));
  min-height: 168px;
  padding: 24px 34px 22px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.74);
  background:
    radial-gradient(170px 106px at var(--wm-idle-mx) var(--wm-idle-my), rgba(255,255,255,0.48), rgba(255,255,255,0) 74%),
    linear-gradient(165deg, rgba(251, 253, 255, 0.88), rgba(242, 247, 252, 0.82));
  backdrop-filter: blur(4px);
  box-shadow:
    0 24px 44px rgba(10, 37, 64, 0.16),
    0 2px 10px rgba(10, 37, 64, 0.08),
    0 0 0 1px rgba(255,255,255,0.32) inset;
  transform-style: preserve-3d;
  perspective: 900px;
  will-change: transform, box-shadow, background;
  transition: box-shadow 260ms ease, border-color 260ms ease, background 260ms ease;
  animation: wm-idle-card-float 5.6s ease-in-out infinite;
  overflow: hidden;
}
.wm-viewer-idle-content::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255,255,255,0.78), rgba(157,183,214,0.18), rgba(255,255,255,0.64));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.wm-viewer-idle-content::after {
  content: "";
  position: absolute;
  top: -22%;
  left: -70%;
  width: 50%;
  height: 155%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.42), rgba(255,255,255,0));
  transform: rotate(10deg);
  filter: blur(0.3px);
  animation: wm-idle-card-sheen 7.2s ease-in-out infinite;
  pointer-events: none;
}
.wm-viewer-idle-content.is-hover {
  border-color: rgba(255,255,255,0.88);
  box-shadow:
    0 28px 48px rgba(10, 37, 64, 0.22),
    0 0 0 1px rgba(255,255,255,0.44) inset,
    0 0 30px rgba(185, 214, 250, 0.24);
}
.wm-viewer-idle-content.is-hover::after {
  animation-duration: 4.6s;
}
.wm-viewer-idle-icon {
  width: 44px;
  height: 44px;
  color: rgba(104, 119, 136, 0.72);
  animation: wm-idle-icon-breathe 3.2s ease-in-out infinite;
}
.wm-viewer-idle-icon svg { width: 100%; height: 100%; }
.wm-viewer-idle p {
  margin: 0;
  max-width: 25ch;
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1.48;
  color: #5d6c7e;
}
@keyframes wm-idle-card-float {
  0%, 100% {
    transform: translateY(0) rotateX(var(--wm-idle-tilt-x)) rotateY(var(--wm-idle-tilt-y)) scale(var(--wm-idle-scale));
  }
  50% {
    transform: translateY(-4px) rotateX(var(--wm-idle-tilt-x)) rotateY(var(--wm-idle-tilt-y)) scale(var(--wm-idle-scale));
  }
}
@keyframes wm-idle-card-sheen {
  0%, 20% { left: -65%; opacity: 0; }
  35%, 62% { opacity: 0.95; }
  80%, 100% { left: 125%; opacity: 0; }
}
@keyframes wm-idle-icon-breathe {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.035); }
}

/* Result state */
.wm-viewer-result {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Ensure native hidden state is not overridden by component display rules */
.wm-viewer-idle[hidden],
.wm-viewer-result[hidden] {
  display: none !important;
}

/* ── 360° stage ── */
.wm-360-stage {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #ffffff;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2px, 0.8vw, 10px) clamp(4px, 0.8vw, 10px) clamp(8px, 1.4vw, 16px);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.wm-360-stage:active { cursor: grabbing; }

/* The visible frame image */
.wm-360-frame {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  pointer-events: none;
  filter: drop-shadow(0 20px 32px rgba(10,37,64,0.10));
  transform: translateY(0) scale(1.2);
  transform-origin: center center;
  transition: opacity 60ms linear;
}

/* Loading overlay */
.wm-360-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  z-index: 10;
  transition: opacity 300ms ease;
}
.wm-360-loader.is-done {
  opacity: 0;
  pointer-events: none;
}
.wm-360-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(10,37,64,0.10);
  border-top-color: var(--wm-accent);
  border-radius: 50%;
  animation: wm-spin 0.8s linear infinite;
}
@keyframes wm-spin { to { transform: rotate(360deg); } }
.wm-360-loader span {
  font-size: 0.78rem;
  color: var(--wm-muted);
  letter-spacing: 0.04em;
}

.wm-360-empty {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(2px);
  padding: 20px;
}
.wm-360-empty strong {
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: #0a2540;
}
.wm-360-empty span {
  max-width: 42ch;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--wm-muted);
}
.wm-360-empty[hidden] {
  display: none !important;
}

/* 360° drag hint */
.wm-360-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--wm-muted);
  pointer-events: none;
  opacity: 1;
  transition: opacity 500ms ease;
}
.wm-360-hint.is-hidden { opacity: 0; }
.wm-360-hint svg { width: 80px; height: 20px; }
.wm-360-hint span {
  font-size: 0.70rem;
  letter-spacing: 0.10em;
  font-weight: 600;
}

/* Dynamic dimension overlay */
.wm-dims-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: hidden;
}
.wm-dim-tag {
  position: absolute;
  min-width: 132px;
  padding: 8px 10px 9px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.42);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 28px rgba(4, 20, 38, 0.16), inset 0 1px 0 rgba(255,255,255,0.55);
  animation: wm-dim-glow 2.6s ease-in-out infinite;
}
.wm-dim-tag::before,
.wm-dim-tag::after {
  content: "";
  position: absolute;
  opacity: 0.95;
}
.wm-dim-tag-label {
  display: block;
  font-size: 0.60rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(10, 37, 64, 0.72);
}
.wm-dim-tag-value {
  display: block;
  margin-top: 2px;
  font-size: 0.90rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0a2540;
}

.wm-dim-tag--height {
  top: 14%;
  left: 5.5%;
  background: linear-gradient(160deg, rgba(49, 237, 255, 0.34), rgba(255, 255, 255, 0.88));
}
.wm-dim-tag--height::after {
  left: calc(100% + 8px);
  top: 50%;
  width: 84px;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(31, 222, 255, 0.95), rgba(31, 222, 255, 0.08));
  box-shadow: 0 0 10px rgba(31, 222, 255, 0.55);
}
.wm-dim-tag--height::before {
  left: calc(100% + 90px);
  top: calc(50% - 96px);
  width: 2px;
  height: 192px;
  background: linear-gradient(180deg, rgba(31, 222, 255, 0.2), rgba(31, 222, 255, 0.95), rgba(31, 222, 255, 0.2));
  box-shadow: 0 0 12px rgba(31, 222, 255, 0.65);
}

.wm-dim-tag--width {
  left: 50%;
  top: clamp(78%, 84%, 90%);
  bottom: auto;
  transform: translate(-50%, -50%);
  background: linear-gradient(160deg, rgba(255, 199, 44, 0.40), rgba(255, 255, 255, 0.90));
  animation-delay: 0.22s;
}
.wm-dim-tag--width::before {
  left: 10px;
  right: 10px;
  top: -11px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 184, 0, 0.2), rgba(255, 184, 0, 0.95), rgba(255, 184, 0, 0.2));
  box-shadow: 0 0 10px rgba(255, 184, 0, 0.52);
}
.wm-dim-tag--width::after {
  left: 50%;
  top: -22px;
  width: 2px;
  height: 10px;
  transform: translateX(-50%);
  background: rgba(255, 184, 0, 0.95);
  box-shadow: 0 0 8px rgba(255, 184, 0, 0.55);
}

.wm-dim-tag--depth {
  top: 26%;
  right: 6%;
  background: linear-gradient(160deg, rgba(104, 255, 145, 0.34), rgba(255, 255, 255, 0.90));
  animation-delay: 0.45s;
}
.wm-dim-tag--depth::before {
  right: calc(100% + 6px);
  top: 50%;
  width: 70px;
  height: 2px;
  transform: translateY(-50%) skewX(-22deg);
  background: linear-gradient(90deg, rgba(54, 226, 112, 0.9), rgba(54, 226, 112, 0.1));
  box-shadow: 0 0 10px rgba(54, 226, 112, 0.52);
}
.wm-dim-tag--depth::after {
  right: calc(100% + 72px);
  top: calc(50% - 16px);
  width: 2px;
  height: 32px;
  background: rgba(54, 226, 112, 0.95);
  box-shadow: 0 0 8px rgba(54, 226, 112, 0.55);
}

.wm-dims-overlay.is-live .wm-dim-tag {
  opacity: 1;
}

@keyframes wm-dim-glow {
  0%, 100% { box-shadow: 0 10px 28px rgba(4, 20, 38, 0.16), inset 0 1px 0 rgba(255,255,255,0.55); }
  50% { box-shadow: 0 14px 34px rgba(4, 20, 38, 0.22), inset 0 1px 0 rgba(255,255,255,0.75); }
}

/* ── Hotspots ── */
.wm-hotspot {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.9);
  background: rgba(10,37,64,0.55);
  backdrop-filter: blur(4px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: background 150ms ease, transform 150ms ease;
  z-index: 5;
  padding: 0;
  /* pulse ring */
  box-shadow: 0 0 0 0 rgba(239,135,14,0.5);
  animation: wm-hotspot-pulse 2.4s ease-out infinite;
}
.wm-hotspot svg { width: 16px; height: 16px; }
.wm-hotspot:hover {
  background: var(--wm-accent);
  transform: translate(-50%, -50%) scale(1.15);
  animation: none;
}
@keyframes wm-hotspot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(239,135,14,0.45); }
  70%  { box-shadow: 0 0 0 10px rgba(239,135,14,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,135,14,0); }
}

/* Tooltip */
.wm-hotspot-tip {
  position: absolute;
  z-index: 20;
  background: rgba(10,37,64,0.92);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: var(--wm-radius-md);
  max-width: 220px;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.wm-hotspot-tip::before {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 16px;
  width: 12px;
  height: 6px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* Spec bar */
.wm-viewer-specbar {
  display: flex;
  align-items: stretch;
  border-top: 1px solid var(--wm-border);
  background: #fff;
  flex-shrink: 0;
}
.wm-vspec {
  flex: 1 1 0;
  min-width: 0;
  padding: 9px 12px;
  border-right: 1px solid var(--wm-border);
}
.wm-viewer-specbar .wm-vspec:nth-child(3) {
  flex: 1.25 1 0;
}
.wm-vspec--cta {
  border-right: none;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 6px 12px;
}
.wm-vspec-label {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wm-muted);
  margin-bottom: 2px;
}
.wm-vspec-val {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--wm-text);
  line-height: 1.24;
}
.wm-viewer-specbar .wm-vspec:nth-child(3) .wm-vspec-val {
  font-size: 0.78rem;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .wm-config-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .wm-terminal { min-height: 340px; }
  .wm-360-stage {
    min-height: 300px;
    padding: 10px 8px 20px;
  }
  .wm-viewer-idle {
    padding: 18px;
  }
  .wm-viewer-idle-content {
    width: min(420px, calc(100% - 16px));
    min-height: 150px;
    padding: 20px 20px 18px;
    border-radius: 16px;
  }
  .wm-viewer-idle-icon {
    width: 38px;
    height: 38px;
  }
  .wm-viewer-idle p {
    font-size: 0.9rem;
    line-height: 1.44;
  }
  .wm-360-frame {
    transform: translateY(0) scale(1.08);
  }
  .wm-viewer-specbar { flex-wrap: wrap; }
  .wm-vspec { flex: 1 1 45%; }
  .wm-dim-tag {
    min-width: 116px;
    padding: 7px 8px 8px;
  }
  .wm-dim-tag-value {
    font-size: 0.82rem;
  }
  .wm-dim-tag--height {
    top: 10%;
    left: 4%;
  }
  .wm-dim-tag--height::after,
  .wm-dim-tag--height::before,
  .wm-dim-tag--depth::before,
  .wm-dim-tag--depth::after {
    display: none;
  }
  .wm-dim-tag--width {
    top: clamp(76%, 84%, 92%);
    bottom: auto;
  }
  .wm-dim-tag--depth {
    top: 16%;
    right: 4%;
  }
  .wm-faq-list {
    gap: 10px;
  }
  .wm-faq-lead {
    font-size: 0.84rem;
    line-height: 1.62;
  }
  .wm-faq-signals {
    gap: 6px;
  }
  .wm-faq-signals span {
    width: 100%;
    font-size: 0.64rem;
    text-align: center;
  }
  .wm-faq-list summary {
    padding: 12px 40px 12px 12px;
    gap: 10px;
    font-size: 0.84rem;
  }
  .wm-faq-list p {
    padding: 0 14px 12px 42px;
    font-size: 0.86rem;
    line-height: 1.6;
  }
  .wm-final-cta .wm-form input {
    height: 46px;
    font-size: 0.92rem;
  }
  .wm-final-cta .wm-usage-options button,
  .wm-final-cta .wm-toggle {
    font-size: 0.84rem;
    padding: 7px 12px;
  }
  .wm-final-cta .wm-form-head p {
    font-size: 0.74rem;
  }
  .wm-final-cta .wm-form-head span {
    font-size: 0.66rem;
  }
  .wm-final-cta .wm-btn {
    height: 40px;
    font-size: 0.86rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wm-viewer-idle-content,
  .wm-viewer-idle-content::after,
  .wm-viewer-idle-icon {
    animation: none !important;
    transform: none !important;
  }
  .wm-final-cta .wm-form::before {
    animation: none !important;
  }
  .wm-final-cta .wm-form::after {
    transition: none !important;
  }
}

/* Footer */
.wm-footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--wm-border);
}
.wm-footer-grid { display: flex; justify-content: space-between; gap: 16px; }
.wm-footer-links { display: inline-flex; gap: 16px; flex-wrap: wrap; }
.wm-footer-links a {
  text-decoration: none;
  color: var(--wm-muted);
  font-size: 0.84rem;
  transition: color 150ms ease;
}
.wm-footer-links a:hover { color: var(--wm-soft); }
.wm-footer p {
  margin: 14px auto 0;
  width: min(var(--wm-max), calc(100% - 40px));
  color: var(--wm-faint);
  font-size: 0.76rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 480ms ease, transform 480ms ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1180px) {
  .wm-bento-grid {
    grid-template-columns: 1fr 1.8fr 1fr;
  }
}

@media (max-width: 980px) {
  :root { --wm-space: 92px; }
  .wm-page { padding-top: 64px; }
  .wm-hero { padding-top: 22px; }
  .wm-container { width: min(var(--wm-max), calc(100% - 40px)); }
  .wm-ab-body,
  .wm-ab-why-grid,
  .wm-tariff-grid,
  .wm-designer-grid,
  .wm-ecosystem-layout,
  .wm-final-grid,
  .wm-quick-specs dl { grid-template-columns: 1fr; }
  .wm-final-grid {
    gap: 20px;
  }
  .wm-final-grid > .reveal {
    padding-top: 0;
  }
  .wm-final-grid > .reveal h2 {
    max-width: 18ch;
  }
  .wm-final-trust {
    margin-top: 12px;
    gap: 6px;
  }
  .wm-final-trust span {
    font-size: 0.76rem;
  }
  .wm-final-grid > .reveal::after {
    width: 96px;
    margin-top: 14px;
  }
  .wm-final-cta .wm-form {
    padding: 18px;
    border-radius: 18px;
    gap: 10px;
    grid-template-columns: 1fr;
  }
  .wm-final-cta .wm-form > label:nth-of-type(1),
  .wm-final-cta .wm-form > label:nth-of-type(2),
  .wm-final-cta .wm-form > label:nth-of-type(3),
  .wm-final-cta .wm-form > fieldset,
  .wm-final-cta .wm-form > .wm-cta-row,
  .wm-final-cta .wm-form > .wm-form-feedback {
    grid-column: 1 / -1;
  }

  /* Specs: collapse to single column on mobile */
  .wm-specs-top,
  .wm-spec-group {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .wm-specs-title { padding-bottom: 0; }
  .wm-specs-title {
    font-size: var(--wm-point-title-size);
    line-height: var(--wm-selling-title-line);
  }
  .wm-spec-group { padding: 36px 0; }
  .wm-series-tabs {
    width: 100%;
    justify-content: space-between;
  }
  .wm-series-tabs button { font-size: 0.88rem; }
  .wm-spec-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 20px;
  }

  /* Off-grid card: tighten on mobile */
  .wm-offgrid-card {
    aspect-ratio: 4 / 3;
  }
  .wm-offgrid-overlay {
    padding: 28px 24px;
  }
  .wm-offgrid-support-head {
    text-align: left;
    margin: 0;
  }
  .wm-offgrid-support-title br {
    display: none;
  }
  .wm-offgrid-board-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .wm-offgrid-board-card {
    min-height: auto;
    padding: 16px;
  }
  .wm-offgrid-board-value {
    font-size: clamp(1.42rem, 8vw, 1.86rem);
  }
  .wm-offgrid-note-stage {
    padding: 18px 16px 16px;
  }
  .wm-offgrid-note-desc {
    font-size: 0.88rem;
    line-height: 1.58;
  }
  .wm-offgrid-note-pills {
    gap: 8px;
    margin-top: 12px;
  }
  .wm-offgrid-summary {
    text-align: left;
    margin: 0;
    max-width: none;
  }

  /* Safety card 1: collapse to stacked on mobile */
  .wm-safety-card--afci {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 0;
  }
  /* Safety card 2: aspect-ratio tightens on mobile */
  .wm-reliability-card {
    aspect-ratio: 4 / 3;
  }
  .wm-reliability-overlay {
    padding: 24px 20px;
  }
  .wm-reliability-kicker {
    padding: 6px 10px 6px 8px;
    gap: 8px;
  }
  .wm-reliability-kicker-text {
    font-size: 0.58rem;
    letter-spacing: 0.14em;
  }
  .wm-reliability-title {
    font-size: var(--wm-point-title-size);
  }
  .wm-reliability-sub {
    max-width: 30ch;
    font-size: 0.9rem;
  }
  .wm-reliability-bottom {
    width: 100%;
    padding: 12px 12px 13px;
    gap: 10px;
  }
  .wm-reliability-detail {
    font-size: 0.79rem;
    line-height: 1.5;
  }
  .wm-reliability-spec-strip {
    gap: 6px;
  }
  .wm-reliability-spec-pill {
    min-height: 24px;
    padding: 0 10px;
    font-size: 0.64rem;
    letter-spacing: 0.09em;
  }

  /* 移动端：16:9，文案字号缩小 */
  .wm-hero-media {
    aspect-ratio: 4 / 5;
    width: calc(100% - 24px);
  }
  .wm-hero-copy {
    max-width: 100%;
    padding: 18px 16px;
  }
  .wm-hero-copy h1 {
    margin: 8px 0 10px;
    font-size: clamp(1.3rem, 7vw, 1.95rem);
    max-width: 14ch;
    line-height: 1.08;
    letter-spacing: -0.018em;
  }
  .wm-hero-copy > p {
    max-width: 32ch;
    font-size: 0.82rem;
    line-height: 1.5;
  }
  .wm-hero-proof {
    gap: 6px;
    margin-top: 8px;
  }
  .wm-hero-proof li {
    padding: 5px 8px;
  }
  .wm-hero-proof li:nth-child(3) {
    display: none;
  }
  .wm-hero-proof strong {
    font-size: 0.72rem;
  }
  .wm-hero-proof span {
    font-size: 0.66rem;
  }
  .wm-hero .wm-cta-row {
    margin-top: 10px;
    gap: 8px;
  }
  /* Bento: hide stat cols on mobile, show video only */
  .wm-bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: unset;
  }
  .wm-bento-col--left,
  .wm-bento-col--right {
    display: none;
  }
  .wm-bento-col--video {
    min-height: 320px;
  }
  .wm-install-video-media { min-height: 320px; }
  .wm-install-bar { bottom: 16px; left: 18px; right: 18px; }
  .wm-install-title { font-size: clamp(0.92rem, 3.8vw, 1.14rem); }

  /* AB layout: stack vertically on mobile */
  .wm-ab-layout { flex-direction: column; gap: 18px; }
  .wm-ab-cinematic { flex: unset; aspect-ratio: unset; min-height: 420px; }
  .wm-ab-side {
    border-left: 0;
    padding: 0 2px;
    gap: 10px;
  }
  .wm-ab-side-lead,
  .wm-ab-side-quote {
    padding-left: 0;
  }
  .wm-ab-side-quote {
    margin-top: 4px;
  }
  .wm-ab-rail {
    grid-template-columns: 1fr;
    gap: 16px 0;
  }
  .wm-ab-rail--external {
    margin-top: 14px;
    padding: 16px 14px;
  }
  .wm-ab-rail-rule { display: none; }
  .wm-ab-rail-item--wide { border-left: none; padding-left: 0; }
  .wm-ab-rail-desc { white-space: normal; }
  .wm-tariff-shell { padding: 22px; }

  /* Stat strip: 3 stats still fit on most phones, tighten padding */
  .wm-tariff-stats {
    padding: 12px 14px;
  }
  .wm-tariff-stat { padding: 0 10px; }
  .wm-tariff-stat-num { font-size: 1.25rem; }

  /* Mode cards: keep horizontal scroll, ensure cards don't get too wide */
  .wm-mode-card {
    width: 116px;
    min-height: 150px;
    padding: 12px 12px 11px;
  }
  .wm-mode-card-name {
    min-height: 1.4em;
  }
  .wm-mode-card-desc {
    min-height: 4.8em;
  }

  .wm-viz-line {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 8px;
    gap: 6px;
  }
  .wm-ai-steps { grid-template-columns: 1fr 1fr; }

  .wm-system-rig {
    left: 8%;
    right: 8%;
    grid-template-columns: 82px 1fr 84px;
    gap: 10px;
  }
  .wm-unit-battery { height: 250px; }
  .wm-tariff-shot { height: 190px; }
  .wm-footer-grid { flex-direction: column; align-items: flex-start; }

  /* ── Dashboard mobile tweaks ── */
  /* KPI row: 2×2 grid on narrow screens */
  .wm-dash-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Restore the divider lines in 2×2 layout */
  .wm-dash-kpi:nth-child(3)::before {
    display: none; /* top-left of second row — no left border */
  }
  .wm-dash-kpi:nth-child(3) {
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .wm-dash-kpi:nth-child(4) {
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  /* Slightly smaller KPI value on mobile */
  .wm-dash-kpi-val { font-size: 1.12rem; }

  /* Shorter canvas on mobile */
  .wm-dash-chart-wrap { height: 140px; }

  /* Dispatch band: wrap labels on very narrow */
  .wm-dash-band-seg em { display: none; } /* hide sub-labels to save space */

  /* Legend: smaller gap */
  .wm-dash-legend { gap: 12px; padding: 8px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@keyframes wmAiRotate { to { transform: rotate(360deg); } }
@keyframes wmAiSweep {
  0% { left: -30%; }
  100% { left: 100%; }
}
