:root {
  --bg: #ffffff;
  --ink: #171a20;
  --muted: #5c5e62;
  --soft: #f4f4f4;
  --line: #e3e3e3;
  --panel: #ffffff;
  --accent: #1b3b6f;
  --accent-strong: #0d1b30;
  --accent-soft: #eef2f8;
  --success: #15803d;
  --warning: #5c5e62;
  --danger: #b42318;
  --shadow: 0 10px 40px rgba(23, 26, 32, 0.10);
  --radius: 4px;
  --badge: #e0721c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Inter", "Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
.primary-button,
.secondary-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
}

button:hover,
.primary-button:hover,
.secondary-button:hover {
  opacity: 0.88;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 30px rgba(14, 116, 144, 0.18);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--soft);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 249, 250, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--accent-strong);
  color: #fff;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.main-nav a {
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 700;
}

.main-nav a:hover {
  background: var(--soft);
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.icon-button b {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent-strong);
  color: #fff;
  font-size: 12px;
}

.nav-toggle {
  display: none;
}

body.page-ready .page-section {
  display: none;
}

body[data-page="home"] .page-section[data-page~="home"],
body[data-page="services"] .page-section[data-page~="services"],
body[data-page="shop"] .page-section[data-page~="shop"],
body[data-page="coverage"] .page-section[data-page~="coverage"],
body[data-page="build-package"] .page-section[data-page~="build-package"],
body[data-page="content"] .page-section[data-page~="content"],
body[data-page="industries"] .page-section[data-page~="industries"],
body[data-page="contact"] .page-section[data-page~="contact"],
body[data-page="register"] .page-section[data-page~="register"],
body[data-page="dealer"] .page-section[data-page~="dealer"],
body[data-page="admin"] .page-section[data-page~="admin"] {
  display: grid;
}

body[data-page="shop"] .section-band,
body[data-page="content"] .section-band,
body[data-page="industries"] .section-band,
body[data-page="contact"] .section-band,
body[data-page="register"] .section-band,
body[data-page="build-package"] .section-band,
body[data-page="build-package"] .package-builder {
  min-height: calc(100vh - 72px);
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  padding: clamp(54px, 8vw, 92px) clamp(18px, 4vw, 48px) clamp(28px, 5vw, 64px);
  color: #fff;
  background: #07131f;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 13, 16, 0.18) 0%, rgba(8, 13, 16, 0.46) 52%, rgba(8, 13, 16, 0.78) 100%),
    linear-gradient(90deg, rgba(8, 13, 16, 0.42), rgba(8, 13, 16, 0.06), rgba(8, 13, 16, 0.4));
  pointer-events: none;
}

.hero-media-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media-stage img,
.hero-media-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy h1 {
  max-width: 1040px;
  margin: 0 auto 16px;
  color: #fff;
  font-size: clamp(42px, 7.5vw, 96px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(1100px, 100%);
  min-width: 0;
  text-align: center;
}

.hero-copy p {
  max-width: 760px;
  margin-inline: auto;
  color: rgba(247, 251, 249, 0.78);
  font-size: 18px;
  line-height: 1.75;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-actions,
.filter-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  position: sticky;
  top: 88px;
  z-index: 2;
  justify-content: center;
  margin-top: 22px;
}

.hero-actions .primary-button,
.hero-actions .secondary-button {
  min-width: min(320px, calc(50vw - 30px));
  min-height: 56px;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.hero-actions .primary-button {
  background: var(--accent);
}

.hero-actions .secondary-button {
  background: rgba(255, 255, 255, 0.92);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 34px;
}

.trust-strip span,
.feature-list span,
.tag-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.hero .trust-strip span {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.09);
  color: rgba(247, 251, 249, 0.86);
}

.section-band,
.split-section,
.package-builder,
.admin-shell {
  padding: clamp(44px, 7vw, 86px) clamp(18px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-head h2,
.split-section h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.section-head p,
.split-section p {
  color: var(--muted);
  line-height: 1.7;
}

.monitoring-explainer {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
  padding: clamp(44px, 7vw, 86px) clamp(18px, 4vw, 48px);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(23,26,32,0.08), rgba(255, 255, 255, 0.94)),
    var(--surface);
}

.explainer-media {
  overflow: hidden;
  border: 1px solid rgba(23,26,32,0.14);
  border-radius: 18px;
  background: #071016;
  box-shadow: 0 28px 70px rgba(23,26,32,0.16);
}

.explainer-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.explainer-copy {
  min-width: 0;
}

.explainer-copy h2 {
  max-width: 760px;
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.03;
}

.explainer-lede {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.event-example {
  max-width: 760px;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(135deg, #0d1b30, #1b3b6f);
  color: #fff;
  box-shadow: 0 22px 54px rgba(23,26,32,0.16);
}

.event-example strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}

.event-example p {
  margin: 0;
  color: rgba(247, 251, 249, 0.78);
  line-height: 1.65;
}

.event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.event-tags span {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.explainer-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.explainer-proof span {
  max-width: 360px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

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

.workflow-steps article {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--panel);
}

.workflow-steps article img { display: none; }

.workflow-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.workflow-steps h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.workflow-steps p {
  margin: 0;
  padding: 0 8px;
  color: var(--muted);
  line-height: 1.6;
}

.iqbox-motion-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(46px, 7vw, 92px) clamp(18px, 4vw, 48px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 18%, rgba(15, 126, 145, 0.14), transparent 32%),
    linear-gradient(135deg, #f8fbfa 0%, #eef5f4 52%, #ffffff 100%);
}

.iqbox-motion-copy {
  display: grid;
  gap: 16px;
  max-width: 680px;
}

.iqbox-motion-copy h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 76px);
  line-height: 0.98;
}

.iqbox-motion-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.iqbox-motion-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.iqbox-motion-points span {
  border: 1px solid rgba(23,26,32,0.13);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.iqbox-animation {
  min-width: 0;
}

.iqbox-scene {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(23,26,32,0.16);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(7, 18, 22, 0.14), rgba(7, 18, 22, 0.02)),
    linear-gradient(135deg, #ececec 0%, #f9f9f9 42%, #eaeaea 100%);
  box-shadow: 0 30px 80px rgba(23,26,32,0.16);
  isolation: isolate;
}

.site-floor {
  position: absolute;
  inset: auto -10% 0;
  height: 38%;
  background:
    repeating-linear-gradient(90deg, rgba(23,26,32,0.08) 0 2px, transparent 2px 72px),
    linear-gradient(180deg, rgba(178, 197, 199, 0.28), rgba(92, 115, 118, 0.2));
  transform: skewY(-5deg);
  transform-origin: left bottom;
}

.site-building {
  position: absolute;
  top: 42px;
  left: 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 46%;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(12, 30, 34, 0.9), rgba(33, 58, 62, 0.76));
  box-shadow: 0 22px 58px rgba(4, 14, 18, 0.18);
}

.site-building span {
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, rgba(58, 133, 149, 0.5), rgba(12, 38, 44, 0.5));
  animation: windowScan 7.5s infinite ease-in-out;
}

.site-building span:nth-child(2) { animation-delay: 0.6s; }
.site-building span:nth-child(3) { animation-delay: 1.2s; }
.site-building span:nth-child(4) { animation-delay: 1.8s; }

.site-gate {
  position: absolute;
  right: 12%;
  bottom: 24%;
  width: 150px;
  height: 90px;
  border: 8px solid rgba(23,26,32,0.28);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
}

.site-gate::before,
.site-gate::after {
  content: "";
  position: absolute;
  bottom: -48px;
  width: 10px;
  height: 70px;
  border-radius: 999px;
  background: rgba(23,26,32,0.32);
}

.site-gate::before { left: 20px; }
.site-gate::after { right: 20px; }

.site-vehicle {
  position: absolute;
  left: 11%;
  bottom: 19%;
  width: 170px;
  height: 70px;
  border-radius: 18px 42px 18px 18px;
  background: linear-gradient(135deg, #fff, #b7c6c7);
  box-shadow: 0 20px 36px rgba(7, 18, 22, 0.16);
}

.site-vehicle::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 28px;
  width: 54px;
  height: 22px;
  border-radius: 10px;
  background: rgba(9, 44, 52, 0.42);
}

.site-vehicle::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 24px;
  bottom: -13px;
  height: 26px;
  border-radius: 999px;
  background: radial-gradient(circle at 18px center, #171a20 0 9px, transparent 10px), radial-gradient(circle at calc(100% - 18px) center, #171a20 0 9px, transparent 10px);
}

.intruder-dot {
  position: absolute;
  right: 33%;
  bottom: 26%;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #111b20;
  box-shadow: 0 0 0 8px rgba(205, 47, 38, 0.12);
  animation: intruderMove 7.5s infinite ease-in-out;
}

.intruder-dot::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 7px;
  width: 5px;
  height: 38px;
  border-radius: 999px;
  background: #111b20;
}

.iqbox-device {
  position: absolute;
  right: 10%;
  top: 58px;
  width: min(34%, 270px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 28px 58px rgba(23,26,32,0.14);
  animation: deviceFloat 4.8s infinite ease-in-out;
}

.iqbox-device img {
  position: relative;
  z-index: 2;
  width: 86%;
  height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 28px 20px rgba(23,26,32,0.18));
}

.device-pulse {
  position: absolute;
  inset: 14%;
  border: 2px solid rgba(15, 126, 145, 0.42);
  border-radius: 999px;
  animation: devicePulse 2.6s infinite ease-out;
}

.device-light {
  position: absolute;
  z-index: 3;
  bottom: 29%;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  opacity: 0;
  animation: warningBlink 1.1s infinite;
}

.device-light.red {
  left: 43%;
  background: #df2935;
  box-shadow: 0 0 24px #df2935;
}

.device-light.blue {
  right: 43%;
  background: #276ef1;
  box-shadow: 0 0 24px #276ef1;
  animation-delay: 0.45s;
}

.camera-cone {
  position: absolute;
  z-index: 1;
  width: 320px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 30% 50%, rgba(15, 126, 145, 0.28), rgba(15, 126, 145, 0.08) 48%, transparent 70%);
  mix-blend-mode: multiply;
  animation: coneSweep 7.5s infinite ease-in-out;
}

.cone-a {
  right: 31%;
  top: 188px;
  transform: rotate(28deg);
}

.cone-b {
  right: 18%;
  top: 242px;
  transform: rotate(72deg);
  animation-delay: 1s;
}

.signal-line {
  position: absolute;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transform-origin: left center;
  animation: signalFlow 7.5s infinite ease-in-out;
}

.line-review {
  top: 238px;
  right: 30%;
  width: 300px;
  transform: rotate(166deg);
}

.line-alert {
  right: 16%;
  bottom: 144px;
  width: 230px;
  transform: rotate(22deg);
  animation-delay: 1.2s;
}

.monitor-panel {
  position: absolute;
  left: 48px;
  bottom: 46px;
  width: min(42%, 360px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(7, 18, 22, 0.92), rgba(16, 68, 76, 0.86));
  color: #fff;
  box-shadow: 0 22px 58px rgba(7, 18, 22, 0.22);
  animation: panelWake 7.5s infinite ease-in-out;
}

.panel-label,
.monitor-panel small,
.phone-alert small {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.monitor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.monitor-grid span {
  min-height: 50px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 14px),
    rgba(25, 117, 132, 0.44);
  animation: feedFlicker 2.8s infinite ease-in-out;
}

.monitor-grid span:nth-child(2) { animation-delay: 0.3s; }
.monitor-grid span:nth-child(3) { animation-delay: 0.8s; }
.monitor-grid span:nth-child(4) { animation-delay: 1.1s; }

.monitor-panel strong {
  display: block;
  margin-bottom: 4px;
  font-size: 20px;
}

.phone-alert {
  position: absolute;
  right: 42px;
  bottom: 42px;
  width: 186px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 54px rgba(23,26,32,0.18);
  animation: phoneNotice 7.5s infinite ease-in-out;
}

.phone-alert span {
  display: block;
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: var(--accent);
  box-shadow: inset 0 -10px 18px rgba(0, 0, 0, 0.16);
}

.phone-alert strong {
  display: block;
  font-size: 17px;
}

.phone-alert small {
  color: var(--muted);
}

.motion-timeline {
  position: absolute;
  top: 22px;
  left: 22px;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.motion-timeline li {
  border: 1px solid rgba(23,26,32,0.11);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  animation: timelineStep 7.5s infinite ease-in-out;
}

.motion-timeline li:nth-child(2) { animation-delay: 1.8s; }
.motion-timeline li:nth-child(3) { animation-delay: 3.5s; }

.motion-timeline span {
  color: var(--accent);
}

@keyframes windowScan {
  0%, 100% { opacity: 0.62; }
  40%, 54% { opacity: 1; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
}

@keyframes intruderMove {
  0% { transform: translate(-28px, 8px); opacity: 0; }
  18%, 68% { opacity: 1; }
  46% { transform: translate(-105px, -16px); }
  100% { transform: translate(-170px, -38px); opacity: 0; }
}

@keyframes deviceFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes devicePulse {
  0% { opacity: 0.7; transform: scale(0.72); }
  80%, 100% { opacity: 0; transform: scale(1.25); }
}

@keyframes warningBlink {
  0%, 40%, 100% { opacity: 0; }
  44%, 62% { opacity: 1; }
}

@keyframes coneSweep {
  0%, 100% { opacity: 0.18; filter: blur(0); }
  45%, 66% { opacity: 0.72; filter: blur(1px); }
}

@keyframes signalFlow {
  0%, 30%, 100% { opacity: 0; background-position: -200px 0; }
  42%, 68% { opacity: 1; background-position: 200px 0; }
}

@keyframes panelWake {
  0%, 28%, 100% { transform: translateY(12px); opacity: 0.72; }
  44%, 78% { transform: translateY(0); opacity: 1; }
}

@keyframes feedFlicker {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}

@keyframes phoneNotice {
  0%, 50%, 100% { transform: translateY(28px); opacity: 0; }
  62%, 84% { transform: translateY(0); opacity: 1; }
}

@keyframes timelineStep {
  0%, 38%, 100% { border-color: rgba(23,26,32,0.11); background: rgba(255, 255, 255, 0.8); }
  45%, 70% { border-color: rgba(15, 126, 145, 0.38); background: rgba(231, 246, 247, 0.95); color: var(--ink); }
}

.story-copy {
  display: grid;
  gap: 16px;
  max-width: 660px;
}

.story-copy h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 70px);
  line-height: 0.98;
}

.story-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.story-script {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.story-script li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(23,26,32,0.11);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.story-script span {
  color: var(--accent);
  font-weight: 950;
}

.story-script li:focus-visible {
  outline: 3px solid rgba(15, 126, 145, 0.24);
  outline-offset: 2px;
}

[data-story-scene="1"] .story-script li:nth-child(1),
[data-story-scene="2"] .story-script li:nth-child(2),
[data-story-scene="3"] .story-script li:nth-child(3),
[data-story-scene="4"] .story-script li:nth-child(4),
[data-story-scene="5"] .story-script li:nth-child(5),
[data-story-scene="6"] .story-script li:nth-child(6),
[data-story-scene="7"] .story-script li:nth-child(7),
[data-story-scene="8"] .story-script li:nth-child(8),
[data-story-scene="9"] .story-script li:nth-child(9),
[data-story-scene="10"] .story-script li:nth-child(10) {
  border-color: rgba(15, 126, 145, 0.36);
  background: #e8f7f8;
  color: var(--ink);
  transform: translateX(6px);
}

.story-player {
  position: relative;
  min-width: 0;
}

.story-progress {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 22px;
  z-index: 5;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 1px 0 rgba(23,26,32,0.08);
}

.story-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1b3b6f, #2d5596);
  transform-origin: left center;
  transform: scaleX(var(--story-progress, 0));
}

.story-stage {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(23,26,32,0.16);
  border-radius: 24px;
  background: #061216;
  box-shadow: 0 30px 80px rgba(23,26,32,0.16);
  isolation: isolate;
}

.story-scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: stretch;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.45s ease, transform 0.7s ease;
}

.story-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 12, 16, 0.7), rgba(4, 12, 16, 0.16) 46%, rgba(4, 12, 16, 0.58)),
    linear-gradient(180deg, rgba(4, 12, 16, 0.12), rgba(4, 12, 16, 0.58));
  pointer-events: none;
}

.story-scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}

.scene-2 img,
.scene-6 img,
.scene-10 img {
  object-fit: contain;
  padding: 80px 70px 160px;
  background:
    radial-gradient(circle at 66% 36%, rgba(15, 126, 145, 0.13), transparent 32%),
    linear-gradient(135deg, #f9f9f9, #ececec);
}

[data-story-scene="1"] .scene-1,
[data-story-scene="2"] .scene-2,
[data-story-scene="3"] .scene-3,
[data-story-scene="4"] .scene-4,
[data-story-scene="5"] .scene-5,
[data-story-scene="6"] .scene-6,
[data-story-scene="7"] .scene-7,
[data-story-scene="8"] .scene-8,
[data-story-scene="9"] .scene-9,
[data-story-scene="10"] .scene-10 {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.scene-caption {
  position: absolute;
  left: clamp(18px, 4vw, 42px);
  bottom: clamp(18px, 4vw, 42px);
  z-index: 4;
  width: min(560px, calc(100% - 36px));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: clamp(18px, 3vw, 28px);
  background: rgba(5, 18, 22, 0.78);
  color: #fff;
  backdrop-filter: blur(14px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.22);
}

.scene-caption span {
  color: #9db4d6;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.scene-caption h3 {
  margin: 8px 0 8px;
  font-size: clamp(24px, 3.2vw, 42px);
  line-height: 1.02;
}

.scene-caption p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.55;
}

.coverage-rings,
.warning-waves {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.coverage-rings span,
.warning-waves span {
  position: absolute;
  width: 220px;
  height: 220px;
  border: 2px solid rgba(15, 126, 145, 0.24);
  border-radius: 999px;
  animation: storyPulse 2.6s infinite ease-out;
}

.coverage-rings span:nth-child(2),
.warning-waves span:nth-child(2) { animation-delay: 0.6s; }
.coverage-rings span:nth-child(3),
.warning-waves span:nth-child(3) { animation-delay: 1.2s; }

.warning-waves span {
  border-color: rgba(214, 47, 43, 0.26);
}

.detection-box {
  position: absolute;
  right: 25%;
  top: 34%;
  z-index: 3;
  width: 170px;
  height: 118px;
  border: 3px solid #9db4d6;
  border-radius: 14px;
  box-shadow: 0 0 0 999px rgba(6, 18, 22, 0.08), 0 0 38px rgba(141, 230, 238, 0.48);
  animation: detectBlink 1.2s infinite;
}

.signal-beam {
  position: absolute;
  left: 30%;
  top: 42%;
  z-index: 3;
  width: 42%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #9db4d6, transparent);
  transform: rotate(-14deg);
  animation: beamFlow 1.8s infinite;
}

.review-checklist,
.incident-note,
.phone-card,
.final-card {
  position: absolute;
  right: clamp(18px, 4vw, 42px);
  top: clamp(54px, 8vw, 86px);
  z-index: 4;
  display: grid;
  gap: 10px;
  width: min(340px, calc(100% - 36px));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.18);
}

.review-checklist b,
.incident-note b,
.phone-card b,
.final-card b {
  font-size: 18px;
}

.review-checklist span,
.incident-note span,
.phone-card p {
  border: 1px solid rgba(23,26,32,0.1);
  border-radius: 999px;
  padding: 9px 10px;
  background: #f4faf9;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.phone-card {
  left: clamp(18px, 4vw, 42px);
  right: auto;
  top: clamp(54px, 8vw, 86px);
}

.phone-dot {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent);
  box-shadow: inset 0 -12px 18px rgba(0, 0, 0, 0.14);
}

.phone-card p {
  border-radius: 12px;
  line-height: 1.45;
}

.final-card {
  background: rgba(5, 18, 22, 0.78);
  color: #fff;
}

.industry-fit-card {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.industry-fit-card b {
  grid-column: 1 / -1;
}

.final-card b {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 10px;
}

@keyframes storyPulse {
  0% { opacity: 0.7; transform: scale(0.62); }
  100% { opacity: 0; transform: scale(2.3); }
}

@keyframes detectBlink {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes beamFlow {
  0% { opacity: 0; background-position: -160px 0; }
  40%, 70% { opacity: 1; }
  100% { opacity: 0; background-position: 160px 0; }
}

.row-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  max-width: none;
}

.card-grid,
.product-grid,
.article-grid,
.industry-grid,
.plan-grid,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.product-card,
.article-card,
.industry-card,
.plan-card,
.quote-card,
.admin-note,
.metric,
.seo-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.service-card {
  overflow: hidden;
}

.service-card img,
.product-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--soft);
}

.service-card div,
.product-body,
.article-card,
.quote-card,
.admin-note,
.seo-list article {
  padding: 18px;
}

.service-card span,
.article-card span,
.seo-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.service-card h3,
.product-card h3,
.article-card h3,
.quote-card h3 {
  margin: 8px 0;
  font-size: 22px;
}

.service-card p,
.product-card p,
.article-card p {
  color: var(--muted);
  line-height: 1.65;
}

.text-link {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.card-actions button,
.article-card button {
  min-height: 38px;
  padding: 8px 12px;
  background: var(--soft);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  background: #eef4f7;
}

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

.feature-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  min-height: 150px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 36px rgba(16, 24, 32, 0.08);
}

.feature-media {
  min-height: 100%;
  background: #f8fbfc;
}

.feature-media img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: contain;
  padding: 12px;
}

.feature-copy {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
}

.feature-copy h3 {
  margin: 0;
  font-size: 20px;
}

.feature-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feature-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--accent-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.quote-card {
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
}

.form-note {
  margin: 0;
  font-size: 13px;
}

.payment-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.member-registration-section {
  background: #f8fbfc;
}

.member-registration-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(18px, 4vw, 44px);
  align-items: start;
}

.member-registration-copy {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.member-registration-copy h3 {
  margin: 0;
  font-size: 26px;
}

.member-registration-copy ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.filter-row button.active,
.admin-tabs button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.user-login-button {
  min-height: 48px;
  white-space: nowrap;
}

.user-login-button.logged-in {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-3d-stage {
  --motion-x: 0px;
  --motion-y: 0px;
  --shine-x: 50%;
  --shine-y: 45%;
  --shadow-x: 0px;
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 270px;
  border: 0;
  border-radius: 0;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 86%, rgba(16, 24, 32, 0.14), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f1f6f8 100%);
  cursor: zoom-in;
  overflow: hidden;
}

.product-motion-light {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  background:
    radial-gradient(circle at var(--shine-x) var(--shine-y), rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.28) 18%, transparent 42%),
    linear-gradient(115deg, transparent 24%, rgba(255, 255, 255, 0.32) 45%, transparent 66%);
  transform: translateX(calc(var(--motion-x) * -0.45));
  transition: opacity 0.24s ease, transform 0.24s ease;
  pointer-events: none;
}

.product-3d-stage:hover .product-motion-light,
.product-3d-stage:focus-visible .product-motion-light {
  opacity: 1;
}

.product-3d-plane {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(86%, 340px);
  height: 210px;
  transform: translate3d(var(--motion-x), var(--motion-y), 0) scale(1);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-3d-stage:hover .product-3d-plane,
.product-3d-stage:focus-visible .product-3d-plane {
  transform: translate3d(var(--motion-x), var(--motion-y), 0) scale(1.045);
}

.product-3d-plane img,
.product-card .product-3d-plane img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 20px rgba(16, 24, 32, 0.18));
  background: transparent;
  transition: filter 0.22s ease;
}

.product-3d-stage:hover .product-3d-plane img,
.product-3d-stage:focus-visible .product-3d-plane img {
  filter: drop-shadow(0 30px 24px rgba(16, 24, 32, 0.22));
}

.product-shadow {
  position: absolute;
  left: 50%;
  bottom: 32px;
  width: min(56%, 260px);
  height: 30px;
  border-radius: 999px;
  background: radial-gradient(ellipse, rgba(16, 24, 32, 0.26), rgba(16, 24, 32, 0));
  transform: translateX(calc(-50% + var(--shadow-x))) scale(1);
  filter: blur(5px);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.product-3d-stage:hover .product-shadow,
.product-3d-stage:focus-visible .product-shadow {
  opacity: 0.9;
  transform: translateX(calc(-50% + var(--shadow-x))) scale(1.08);
}

.detail-product-stage {
  min-height: 430px;
  border-radius: var(--radius);
}

.detail-product-stage .product-3d-plane {
  width: min(92%, 560px);
  height: 390px;
}

.detail-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
  gap: 8px;
  width: 100%;
  margin-top: 16px;
}

.detail-gallery-thumbs button {
  min-height: 68px;
  border-color: var(--line);
  padding: 4px;
  background: #fff;
}

.detail-gallery-thumbs button.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.detail-gallery-thumbs img {
  width: 100%;
  height: 62px;
  object-fit: contain;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
}

.product-footer div {
  display: flex;
  gap: 8px;
}

.product-footer strong {
  font-size: 22px;
}

.article-card small {
  display: block;
  margin-top: 18px;
  color: var(--muted);
}

.article-card button {
  margin-top: 14px;
}

.industry-card {
  display: grid;
  overflow: hidden;
}

.industry-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--soft);
}

.industry-card > div {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.plan-card {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.plan-card h3 {
  margin: 6px 0 8px;
  font-size: 24px;
}

.plan-card p,
.plan-card li {
  color: var(--muted);
  line-height: 1.65;
}

.plan-card > strong {
  font-size: 30px;
}

.plan-card small {
  color: var(--muted);
  font-size: 13px;
}

.plan-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.package-builder {
  background: #fff;
}

.builder-shell {
  position: relative;
  padding-bottom: 24px;
}

.builder-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  min-height: 720px;
}

.builder-media {
  display: grid;
  justify-items: center;
  text-align: center;
}

.builder-media h2 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(42px, 6vw, 82px);
  font-weight: 840;
  line-height: 0.95;
}

.builder-media img {
  width: min(780px, 100%);
  max-height: 420px;
  object-fit: contain;
  margin: 24px 0;
}

.builder-specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: min(760px, 100%);
}

.builder-specs span {
  color: var(--muted);
  font-weight: 700;
}

.builder-specs b {
  display: block;
  color: var(--ink);
  font-size: 22px;
}

.builder-panel {
  display: grid;
  gap: 18px;
}

.builder-head h3 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.05;
}

.builder-group {
  display: grid;
  gap: 10px;
}

.builder-group > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.builder-group button {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.builder-group button.selected {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.builder-group small {
  color: var(--muted);
  text-align: right;
}

.builder-series {
  display: grid;
  gap: 10px;
}

.builder-series-toggle {
  align-items: center;
  width: 100%;
  background: #f8fbfc;
}

.builder-series-toggle span {
  display: grid;
  gap: 4px;
}

.builder-series-toggle small {
  text-align: left;
}

.builder-series-toggle strong {
  color: var(--accent);
  white-space: nowrap;
}

.builder-series-body {
  display: none;
  gap: 10px;
}

.builder-series.open .builder-series-body {
  display: grid;
}

.builder-device {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: #fff;
  color: var(--ink);
}

.builder-product-device {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
}

.builder-device.selected {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.builder-device small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.builder-device-copy {
  min-width: 0;
}

.builder-device-copy b {
  display: block;
  overflow-wrap: anywhere;
}

.builder-thumb {
  display: block;
  width: 104px;
  height: 72px;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: #f8fbfc;
}

.builder-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  transform: scale(1.22);
}

.qty-control {
  display: grid;
  grid-template-columns: 36px 34px 36px;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.qty-control button {
  min-height: 36px;
  padding: 0;
  justify-content: center;
}

.member-gate,
.member-status {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--soft);
}

.member-gate p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.member-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.member-form-grid textarea {
  min-height: 72px;
}

.address-fieldset {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.7);
}

.address-fieldset legend {
  padding: 0 6px;
  color: var(--ink);
  font-weight: 700;
}

.address-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 0.62fr 0.72fr;
  gap: 8px;
}

.member-gate input,
.member-gate select,
.member-gate textarea {
  min-height: 42px;
}

.member-checkbox {
  display: flex;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
}

.member-checkbox input {
  width: auto;
  min-height: 0;
  margin-top: 3px;
}

.legal-consent-box {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.legal-doc-list {
  display: grid;
  gap: 6px;
  max-height: 180px;
  overflow: auto;
}

.legal-doc-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--soft);
}

.legal-doc-list summary {
  cursor: pointer;
  font-weight: 600;
}

.legal-doc-list summary span {
  color: var(--muted);
  font-size: 12px;
}

.member-gate button {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.member-gate-fineprint {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.member-gate-fineprint a {
  color: var(--accent);
  font-weight: 600;
}

.price-locked {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}

.member-status span {
  color: var(--muted);
}

.builder-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.builder-tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
}

.builder-tabs button.active {
  border-bottom-color: var(--accent);
  color: var(--accent-strong);
}

.builder-order-bar {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  width: min(760px, 100%);
  margin: 28px 0 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 50px rgba(16, 24, 32, 0.14);
  backdrop-filter: blur(12px);
}

.builder-order-bar strong {
  display: block;
  font-size: 32px;
}

.builder-order-bar span {
  display: block;
  max-width: 540px;
  color: var(--muted);
}

.image-zoom-content {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 32px);
  background: #fff;
}

.image-zoom-content img {
  width: min(920px, 88vw);
  max-height: 78vh;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbfc;
}

.image-zoom-content h3 {
  margin: 0;
  font-size: 24px;
}

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

.contact-grid div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
}

.contact-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.industry-card h3 {
  margin: 0;
  font-size: 22px;
}

.industry-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 980px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: #fff;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.partner-box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.partner-box div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
}

.partner-box span {
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  display: grid;
  gap: 14px;
  padding: 24px clamp(18px, 4vw, 48px);
  border-top: 1px solid var(--line);
  background: #f4f7f5;
  color: var(--muted);
  font-size: 14px;
}

.site-footer strong {
  display: block;
  color: var(--ink);
}

.partner-footer {
  max-width: 860px;
  color: var(--muted);
}

.partner-footer summary {
  width: max-content;
  cursor: pointer;
  color: #777f86;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.partner-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
}

.partner-footer h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 22px;
}

.partner-footer .partner-box {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.partner-footer .partner-box div {
  padding: 10px;
}

.partner-footer .partner-box strong {
  font-size: 16px;
}

.partner-mini-form {
  display: grid;
  gap: 10px;
}

.partner-mini-form input {
  min-height: 38px;
}

.partner-mini-form button {
  min-height: 40px;
  background: var(--ink);
  color: #fff;
}

.quote-section {
  background: #fff;
}

.full-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1120px;
}

.wide {
  grid-column: 1 / -1;
}

.admin-shell {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  background: var(--soft);
  color: var(--ink);
}

.admin-sidebar {
  position: sticky;
  top: 88px;
  align-self: start;
  max-height: calc(100vh - 104px);
  overflow: auto;
  padding: 20px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.admin-sidebar h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 2px 0 4px;
}

.admin-sidebar-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 13px;
}

.admin-tabs {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.admin-tab-group {
  display: grid;
  gap: 2px;
  padding: 0;
  border: none;
}

.admin-tab-group > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 8px 6px;
}

.admin-tabs button {
  text-align: left;
}

.admin-sidebar .eyebrow {
  color: var(--muted);
}

.admin-shell .admin-tabs button {
  min-height: 38px;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-weight: 500;
  padding: 8px 12px;
}

.admin-shell .admin-tabs button:hover {
  background: var(--soft);
  color: var(--ink);
  opacity: 1;
}

.admin-shell .admin-tabs button.active {
  border: none;
  background: var(--ink);
  color: #fff;
}

.admin-role-card {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--ink);
}

.admin-role-card span,
.admin-role-card small {
  display: block;
}

.admin-role-card span { font-weight: 600; font-size: 14px; }

.admin-role-card small {
  color: var(--muted);
  font-size: 12px;
}

.admin-tabs ~ [data-admin-logout],
.admin-sidebar [data-admin-logout] {
  margin-top: 12px;
  width: 100%;
}

.admin-workspace {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.admin-topbar {
  position: sticky;
  top: 88px;
  z-index: 7;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  color: var(--ink);
}

.admin-topbar:empty {
  display: none;
}

.admin-topbar .eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
}

.admin-topbar h3 {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.admin-topbar p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.admin-topbar-actions button,
.admin-view-site {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.admin-view-site {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.admin-panel {
  min-height: 420px;
  min-width: 0;
  display: grid;
  gap: 16px;
}

.admin-panel .metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.admin-panel .metric,
.admin-panel .admin-note,
.admin-panel .admin-form,
.admin-panel .admin-fieldset,
.admin-panel .collection-list article,
.admin-panel .member-card,
.admin-panel .sales-link-card,
.admin-panel .affiliate-card,
.admin-panel .seo-list article {
  border-color: var(--line);
  background: var(--panel);
  box-shadow: none;
}

.admin-panel .admin-note {
  display: grid;
  gap: 12px;
}

.admin-panel .admin-note button,
.admin-toolbar button,
.admin-actions button {
  min-height: 40px;
  border-radius: var(--radius);
}

.admin-panel .admin-note,
.admin-panel .metric,
.admin-panel .seo-list article,
.admin-panel .admin-form,
.admin-panel .hero-media-admin,
.admin-panel .admin-fieldset,
.admin-panel .integration-status,
.admin-panel .editor-heading,
.admin-panel .collection-list article,
.admin-panel .affiliate-card,
.admin-panel .member-card,
.admin-panel .sales-link-card {
  color: var(--ink);
}

.admin-panel h3,
.admin-panel h4,
.hero-media-admin strong,
.admin-fieldset legend {
  color: var(--ink);
}

.admin-panel .admin-note p,
.admin-panel .metric span,
.admin-panel .collection-list p,
.admin-panel .affiliate-card small,
.admin-panel .member-card p,
.admin-panel .sales-link-card span,
.hero-media-admin p,
.editor-heading p,
.admin-hint {
  color: var(--muted);
}

.ai-draft {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
  color: var(--ink);
}

.ai-draft img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.ai-draft pre {
  white-space: pre-wrap;
  margin: 14px 0;
  color: var(--muted);
  font: inherit;
  line-height: 1.6;
}

.image-uploader {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 16px;
  align-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--soft);
}

.image-uploader strong,
.image-uploader span,
.image-uploader small {
  display: block;
}

.image-uploader span,
.image-uploader small {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.image-uploader img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.gallery-uploader {
  grid-template-columns: minmax(0, 1fr);
}

.gallery-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
}

.gallery-preview img {
  width: 100%;
  height: 72px;
  aspect-ratio: auto;
  object-fit: contain;
  padding: 4px;
}

.detail-copy p {
  margin: 0 0 12px;
}

.admin-login {
  display: grid;
  gap: 16px;
  max-width: 520px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-login h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.admin-login .eyebrow {
  color: var(--muted);
}

.admin-login p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.metric {
  padding: 20px;
}

.metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
}

.admin-list span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.affiliate-list {
  display: grid;
  gap: 14px;
}

.affiliate-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
}

.affiliate-card span {
  display: block;
  color: var(--muted);
}

.member-admin-grid,
.sales-link-grid {
  display: grid;
  gap: 14px;
}

.member-card,
.sales-link-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
}

.member-card-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.member-card-meta span,
.sales-link-card span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: var(--soft);
  font-size: 13px;
}

.member-table-wrap table {
  min-width: 1040px;
}

.lead-filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 220px auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.92);
}

.lead-filter-bar label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.lead-filter-bar input,
.lead-filter-bar select {
  min-height: 40px;
  font-size: 14px;
  text-transform: none;
}

.lead-filter-bar button {
  min-height: 40px;
  border-radius: 10px;
}

.lead-table-wrap table {
  min-width: 1180px;
}

.partner-table-wrap table {
  min-width: 1120px;
}

.partner-work-table th,
.partner-work-table td {
  padding: 10px 12px;
  vertical-align: middle;
  font-size: 13px;
}

.partner-work-table th {
  background: #f3f8f8;
  color: #334753;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.partner-work-table td strong,
.partner-work-table td span,
.partner-work-table td small {
  display: block;
}

.partner-work-table td small {
  max-width: 280px;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.partner-work-table code {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  background: #f7faf9;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.compact-copy-input {
  width: min(360px, 100%);
  min-height: 34px;
  border-radius: 10px;
  padding: 6px 9px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.partner-flow-note {
  margin-bottom: 14px;
}

.lead-work-table th,
.lead-work-table td {
  padding: 9px 10px;
  vertical-align: middle;
  font-size: 13px;
}

.lead-work-table th {
  background: #f3f8f8;
  color: #334753;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lead-work-table td strong,
.lead-work-table td span,
.lead-work-table td small {
  display: block;
}

.lead-work-table td small {
  max-width: 260px;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-compact-table th,
.member-compact-table td {
  padding: 9px 10px;
  vertical-align: middle;
  font-size: 13px;
}

.member-compact-table th {
  background: #f3f8f8;
  color: #334753;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.member-compact-table td strong,
.member-compact-table td span,
.member-compact-table td small {
  display: block;
}

.member-compact-table td strong {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-compact-table td small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.status-pill {
  width: max-content;
  max-width: 150px;
  border: 1px solid rgba(83, 104, 118, 0.18);
  border-radius: 999px;
  padding: 4px 8px;
  background: #f7faf9;
  color: #334753;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill.good {
  border-color: rgba(12, 112, 95, 0.22);
  background: #e8f6f1;
  color: #0b5c4e;
}

.status-pill.warn {
  border-color: rgba(176, 112, 12, 0.22);
  background: #fff7e8;
  color: #7b4a09;
}

.member-quick-select {
  width: 132px;
  min-height: 32px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f7faf9;
  font-size: 11px;
  font-weight: 700;
}

.member-quick-select.good {
  border-color: rgba(12, 112, 95, 0.24);
  background: #e8f6f1;
  color: #0b5c4e;
}

.member-row-actions {
  display: flex;
  gap: 6px;
  white-space: nowrap;
}

.member-row-actions button,
.member-compact-table td > button {
  min-height: 32px;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 12px;
}

.member-detail-content {
  display: grid;
  gap: 18px;
}

.member-detail-head,
.member-detail-notes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
}

.member-detail-head h2 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
}

.member-detail-head p,
.member-detail-notes p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.member-detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.member-detail-actions button {
  min-height: 38px;
  border-radius: 10px;
}

.member-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.member-detail-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-detail-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
}

.member-detail-block h3,
.member-detail-notes h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.member-detail-block dl {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 8px 0;
  border-top: 1px solid rgba(83, 104, 118, 0.12);
}

.member-detail-block dl:first-of-type {
  border-top: 0;
}

.member-detail-block dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.member-detail-block dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.member-detail-block ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.sales-tool-layout {
  display: grid;
  gap: 18px;
}

.affiliate-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.affiliate-metrics span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--soft);
  font-size: 13px;
}

.affiliate-metrics b {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 16px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.editor-panel {
  margin-top: 16px;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
}

.admin-fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: #fff;
}

.admin-fieldset legend {
  padding: 0 8px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.checkbox-field input {
  width: 18px;
  height: 18px;
}

.integration-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.integration-status {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
  color: var(--ink);
}

.integration-status span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.integration-status strong {
  color: #8a4b00;
}

.integration-status.good strong {
  color: #1b3b6f;
}

.integration-status p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.admin-form button,
.admin-form label:has(textarea),
.editor-heading {
  grid-column: 1 / -1;
}

.editor-heading {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: #f8fbfc;
}

.editor-heading h4,
.editor-heading p {
  margin: 0;
}

.editor-heading p {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
}

th {
  background: var(--soft);
}

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

.seo-list code {
  display: inline-block;
  margin-top: 8px;
  color: var(--muted);
}

.upload-button {
  display: inline-flex;
  width: max-content;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.upload-button input {
  display: none;
}

.hero-media-admin {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #f8fbfc;
  color: var(--ink);
}

.hero-media-admin p {
  max-width: 760px;
  color: var(--muted);
}

.hero-media-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  aspect-ratio: 16 / 7;
}

.hero-media-preview img,
.hero-media-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 100%;
  height: 100%;
  padding: 4px;
}

.hero-preview-grid img {
  min-width: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.hero-carousel {
  position: absolute;
  inset: 0;
}

.hero-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroFade calc(var(--slide-count) * 5s) infinite;
  animation-delay: calc(var(--slide-index) * 5s);
}

@keyframes heroFade {
  0%, 100% { opacity: 0; }
  5%, 28% { opacity: 1; }
  35% { opacity: 0; }
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(420px, 100vw);
  height: 100vh;
  padding: 20px;
  border-left: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: transform 0.2s ease;
}

.checkout-form {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.cart-drawer.open {
  transform: translateX(0);
}

.support-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 95;
}

.support-chat[hidden] {
  display: none;
}

.support-chat-button {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 0;
  border-radius: 50%;
  background: #1b3b6f;
  box-shadow: 0 20px 48px rgba(23,26,32,0.26);
}

.support-chat-button span {
  position: relative;
  width: 34px;
  height: 24px;
  border-radius: 999px;
  background: #fff;
}

.support-chat-button span::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: -8px;
  width: 0;
  height: 0;
  border-top: 10px solid #fff;
  border-left: 10px solid transparent;
}

.support-chat-panel {
  position: absolute;
  right: 0;
  bottom: 92px;
  display: none;
  flex-direction: column;
  width: min(390px, calc(100vw - 28px));
  height: min(680px, calc(100svh - 104px));
  max-height: calc(100svh - 104px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.support-chat.open .support-chat-panel {
  display: flex;
}

.support-chat.open .support-chat-button {
  display: none;
}

.support-chat-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  color: #fff;
  background: linear-gradient(135deg, #0d1b30, #1b3b6f);
}
.support-chat-head strong { font-size: 15px; }

.support-chat-head div {
  display: grid;
  gap: 4px;
}

.support-chat-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.support-chat-head-actions button {
  min-width: 34px;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 0 10px;
  color: #0d1b30;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
}

.support-chat-head span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.35;
}

.support-chat-messages {
  flex: 1 1 auto;
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
  background: #f5f8f9;
}

.support-chat-actions,
.support-chat-form {
  flex: 0 0 auto;
}

.chat-message {
  display: grid;
  gap: 8px;
  width: fit-content;
  max-width: 90%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.chat-feedback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.chat-feedback button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.chat-feedback.saved {
  border-top: 0;
  padding-top: 0;
  color: var(--accent);
  font-weight: 700;
}

.chat-message.user {
  justify-self: end;
  border-color: rgba(15, 107, 138, 0.28);
  background: #1b3b6f;
  color: #fff;
}

.chat-transfer {
  display: grid;
  gap: 8px;
}

.chat-transfer button,
.chat-transfer a,
.support-chat-actions button,
.support-chat-form button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.support-chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px 0;
  background: #fff;
}

.support-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px 14px 14px;
  background: #fff;
}

.support-chat-form textarea {
  min-height: 48px;
  resize: none;
  border-radius: 14px;
}

.support-chat-form button {
  align-self: stretch;
  min-width: 56px;
  border-radius: 14px;
  color: #fff;
  background: #1b3b6f;
  font-size: 0;
}

.support-chat-form button::before {
  content: "->";
  font-size: 18px;
  font-weight: 700;
}

.drawer-head,
.cart-line,
.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.icon-only {
  width: 42px;
  padding: 0;
  font-size: 22px;
}

.cart-line {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.cart-line span {
  display: block;
  color: var(--muted);
}

.cart-line button {
  min-width: 36px;
  min-height: 36px;
  padding: 0;
}

.cart-line small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.cart-total {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 20px;
}

.empty-state {
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  border-radius: 999px;
  padding: 12px 16px;
  background: var(--accent-strong);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.detail-modal {
  width: min(1180px, calc(100vw - 28px));
  max-height: 90vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  color: var(--ink);
  background: #f7f9fa;
  box-shadow: var(--shadow);
}

.detail-modal::backdrop {
  background: rgba(7, 19, 31, 0.66);
}

.auth-modal {
  position: relative;
  width: min(440px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.auth-modal::backdrop {
  background: rgba(7, 19, 31, 0.66);
}

.auth-modal #closeAuth {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.auth-tab {
  padding: 16px 12px;
  border: none;
  background: var(--soft);
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.auth-tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.auth-card {
  display: grid;
  gap: 12px;
  padding: 26px 28px 28px;
  background: #fff;
}

.auth-card[hidden] { display: none; }

.auth-card label {
  display: grid;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.auth-card input {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
}

.auth-optional { color: var(--muted); font-weight: 400; }

.auth-switch {
  text-align: center;
  font-size: 14px;
  margin: 4px 0 0 !important;
}

.auth-switch .text-link {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
}

.auth-card h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.auth-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.auth-help {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #f8fbfc;
}

.auth-help summary {
  cursor: pointer;
  font-weight: 600;
}

.auth-help div {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.auth-help button {
  min-height: 40px;
  border-radius: 10px;
}

.detail-close {
  position: sticky;
  top: 16px;
  z-index: 5;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin: 16px 16px -56px auto;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(16, 24, 32, 0.12);
}

.detail-content {
  padding: 28px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.detail-gallery,
.detail-summary-card,
.detail-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.detail-gallery {
  min-height: 520px;
  display: grid;
  place-items: center;
  padding: 34px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f7f5 100%);
}

.detail-gallery img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
}

.detail-gallery .product-3d-plane img {
  width: 100%;
  height: 100%;
  max-height: none;
}

.detail-summary-card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 4vw, 42px);
}

.detail-summary-card h2 {
  max-width: 720px;
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 840;
  line-height: 0.98;
}

.detail-summary-card p,
.detail-copy p,
.detail-block li {
  color: var(--muted);
  line-height: 1.7;
}

.detail-price {
  display: block;
  margin: 4px 0 18px;
  color: var(--accent);
  font-size: clamp(28px, 4vw, 44px);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.detail-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.detail-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 18px;
  margin-top: 18px;
}

.detail-block {
  padding: 22px;
}

.detail-block > span {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.detail-block ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.detail-meta {
  display: grid;
  gap: 8px;
}

.detail-meta span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 42px;
    padding: 0;
  }

  .main-nav {
    position: absolute;
    top: 71px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .main-nav a {
    padding: 13px 14px;
    color: var(--ink);
  }

  .main-nav.open {
    display: flex;
  }

  .header-actions {
    justify-content: end;
  }

  .hero,
  .split-section,
  .monitoring-explainer,
  .iqbox-motion-section,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .builder-stage {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .builder-order-bar {
    width: 100%;
    margin: 18px 0 0;
  }

  .ai-draft {
    grid-template-columns: 1fr;
  }

  .image-uploader {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .admin-sidebar {
    position: static;
    max-height: none;
  }

  .admin-topbar {
    position: static;
  }

  .admin-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
  }

  .admin-tab-group {
    min-width: 220px;
    scroll-snap-align: start;
  }

  .affiliate-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .card-grid,
  .product-grid,
  .article-grid,
  .industry-grid,
  .plan-grid,
  .metric-grid,
  .workflow-steps,
  .integration-status-grid,
  .member-registration-shell,
  .full-form,
  .admin-form,
  .admin-fieldset,
  .trust-strip,
  .partner-box,
  .partner-footer-grid,
  .partner-footer .partner-box,
  .feature-list,
  .hero-media-admin {
    grid-template-columns: 1fr;
  }

  .member-form-grid,
  .address-grid,
  .member-card-meta,
  .member-detail-head,
  .member-detail-notes,
  .member-detail-grid,
  .member-detail-grid.compact {
    grid-template-columns: 1fr;
  }

  .member-detail-actions {
    justify-content: stretch;
  }

  .member-detail-actions button {
    flex: 1 1 160px;
  }

  .row-head,
  .admin-list article {
    align-items: stretch;
    flex-direction: column;
  }

  .site-header {
    padding-inline: 14px;
  }

  .section-band,
  .split-section,
  .monitoring-explainer,
  .iqbox-motion-section,
  .package-builder,
  .admin-shell {
    padding: 34px 14px;
  }

  .iqbox-scene {
    min-height: 500px;
  }

  .story-stage {
    min-height: 560px;
  }

  .iqbox-device {
    right: 6%;
    width: min(42%, 220px);
  }

  .site-building {
    left: 22px;
    width: 54%;
  }

  .monitor-panel {
    left: 22px;
    width: min(54%, 320px);
  }

  .phone-alert {
    right: 22px;
    width: 168px;
  }

  .builder-stage {
    gap: 24px;
  }

  .builder-media img {
    max-height: 260px;
    margin: 16px 0;
  }

  .builder-media h2 {
    font-size: 36px;
  }

  .builder-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .builder-specs span {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    background: #f8fbfc;
  }

  .admin-shell {
    gap: 16px;
  }

  .admin-sidebar h2 {
    margin-bottom: 10px;
  }

  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .lead-filter-bar {
    grid-template-columns: 1fr;
  }

  .admin-toolbar button,
  .admin-note button,
  .admin-actions button {
    width: 100%;
  }

  .admin-form {
    padding: 12px;
  }

  .admin-fieldset {
    padding: 12px;
  }

  .table-wrap {
    max-width: calc(100vw - 28px);
  }

  .header-actions .primary-button {
    display: none;
  }
}

@media (max-width: 520px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 64px;
    padding-block: 8px;
  }

  .nav-toggle {
    width: 58px;
    justify-self: end;
  }

  .main-nav {
    top: 64px;
    left: 10px;
    right: 10px;
  }

  .header-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .header-actions .user-login-button,
  .header-actions .icon-button {
    width: 100%;
    min-height: 42px;
    justify-content: center;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 15px;
    white-space: nowrap;
  }

  .icon-button {
    width: 46px;
    padding-inline: 8px;
    justify-content: center;
  }

  .icon-button span {
    display: none;
  }

  .header-actions .icon-button,
  .header-actions .primary-button {
    display: none;
  }

  .header-actions {
    display: flex;
  }

  html,
  body {
    overflow-x: hidden;
  }

  .hero-copy h1 {
    font-size: 34px;
    overflow-wrap: anywhere;
  }

  .hero {
    min-height: calc(100svh - 112px);
    max-width: 100vw;
    overflow: hidden;
    padding-top: 58px;
    padding-bottom: 34px;
  }

  .hero-copy,
  .hero-copy h1,
  .hero-copy p {
    max-width: min(340px, calc(100vw - 36px));
  }

  .hero-copy p {
    font-size: 16px;
    line-height: 1.55;
  }

  .hero-actions {
    position: static;
    width: 100%;
  }

  .hero-actions .primary-button,
  .hero-actions .secondary-button {
    width: 100%;
    min-width: 0;
  }

  .section-head h2,
  .split-section h2,
  .iqbox-motion-copy h2,
  .admin-sidebar h2 {
    font-size: 30px;
  }

  .admin-tabs {
    margin-top: 12px;
  }

  .admin-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-topbar-actions {
    justify-content: stretch;
  }

  .admin-topbar-actions button,
  .admin-view-site {
    flex: 1 1 120px;
  }

  .admin-tab-group {
    min-width: 190px;
    padding: 7px;
  }

  .admin-shell .admin-tabs button {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .admin-panel .admin-note,
  .admin-panel .admin-form,
  .admin-panel .metric,
  .admin-panel .affiliate-card,
  .admin-panel .member-card,
  .admin-panel .sales-link-card,
  .integration-status,
  .admin-list article {
    border-radius: 10px;
  }

  .metric-grid {
    gap: 10px;
  }

  .metric {
    padding: 14px;
  }

  .metric strong {
    font-size: 24px;
  }

  .detail-content {
    padding: 18px 14px;
  }

  .detail-hero,
  .detail-section-grid {
    grid-template-columns: 1fr;
  }

  .detail-gallery {
    min-height: 320px;
    padding: 20px;
  }

  .detail-modal {
    width: 100vw;
    max-height: 100svh;
    border-radius: 0;
  }

  .cart-drawer {
    width: 100vw;
    padding: 14px;
  }

  .support-chat {
    right: 14px;
    bottom: 14px;
  }

  .support-chat-button {
    width: 64px;
    height: 64px;
  }

  .support-chat-panel {
    position: fixed;
    right: 14px;
    left: 14px;
    bottom: 14px;
    top: 14px;
    width: auto;
    height: auto;
    max-height: none;
  }

  .checkout-form {
    gap: 8px;
  }

  .detail-summary-card h2 {
    font-size: 34px;
  }

  .product-footer,
  .product-footer div {
    align-items: stretch;
    flex-direction: column;
  }

  .builder-product-device {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .feature-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .iqbox-scene {
    min-height: 430px;
    border-radius: 16px;
  }

  .story-stage {
    min-height: 540px;
    border-radius: 16px;
  }

  .story-progress {
    left: 12px;
    right: 12px;
    top: 12px;
  }

  .story-copy > p {
    font-size: 16px;
    line-height: 1.6;
  }

  .story-script li {
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 9px 10px;
    font-size: 13px;
  }

  .scene-caption {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    padding: 16px;
    border-radius: 14px;
  }

  .scene-caption h3 {
    font-size: 24px;
  }

  .scene-caption p {
    font-size: 14px;
  }

  .scene-2 img,
  .scene-6 img,
  .scene-10 img {
    padding: 84px 34px 190px;
  }

  .review-checklist,
  .incident-note,
  .phone-card,
  .final-card {
    left: 12px;
    right: 12px;
    top: 52px;
    width: auto;
    padding: 12px;
    border-radius: 14px;
  }

  .detection-box {
    right: 14%;
    top: 29%;
    width: 118px;
    height: 88px;
  }

  .signal-beam {
    left: 12%;
    top: 39%;
    width: 66%;
  }

  .motion-timeline {
    left: 12px;
    right: 12px;
    top: 12px;
    overflow-x: auto;
  }

  .motion-timeline li {
    flex: 0 0 auto;
    padding: 6px 8px;
    font-size: 11px;
  }

  .site-building {
    top: 68px;
    width: 62%;
    min-height: 128px;
    gap: 6px;
    padding: 8px;
  }

  .iqbox-device {
    top: 94px;
    right: -3%;
    width: min(48%, 180px);
    border-radius: 18px;
  }

  .camera-cone {
    width: 210px;
    height: 145px;
  }

  .cone-a {
    right: 26%;
    top: 176px;
  }

  .cone-b {
    right: 12%;
    top: 212px;
  }

  .site-vehicle {
    left: 7%;
    bottom: 24%;
    width: 126px;
    height: 54px;
  }

  .site-gate {
    right: 7%;
    bottom: 26%;
    width: 98px;
    height: 62px;
  }

  .monitor-panel {
    left: 12px;
    bottom: 14px;
    width: calc(100% - 24px);
    padding: 12px;
  }

  .monitor-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin: 8px 0;
  }

  .monitor-grid span {
    min-height: 36px;
  }

  .phone-alert {
    right: 12px;
    bottom: 136px;
    width: 148px;
    padding: 11px;
  }

  .line-review,
  .line-alert {
    display: none;
  }

  .feature-media img {
    min-height: 132px;
    padding: 10px;
  }

  .builder-product-device .qty-control {
    grid-column: 1 / -1;
    justify-self: stretch;
    grid-template-columns: 1fr 44px 1fr;
  }

  .builder-thumb {
    width: 82px;
    height: 60px;
  }

  .affiliate-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .builder-specs,
  .builder-order-bar {
    grid-template-columns: 1fr;
  }

  .builder-order-bar {
    display: grid;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
    border-radius: 14px 14px 0 0;
    margin-inline: -14px;
    width: calc(100% + 28px);
  }

  .builder-order-bar strong {
    font-size: 24px;
  }

  .builder-order-bar span {
    font-size: 13px;
    line-height: 1.45;
  }

  .builder-order-bar .primary-button {
    width: 100%;
  }

  .builder-group button,
  .builder-device {
    flex-direction: column;
    align-items: stretch;
  }

  .builder-group small {
    text-align: left;
  }

  .member-registration-copy {
    position: static;
    padding: 16px;
  }

  .member-gate {
    padding: 14px;
  }

  .address-fieldset {
    padding: 10px;
  }

  .hero-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@supports (padding: max(0px)) {
  @media (max-width: 520px) {
    .builder-order-bar,
    .cart-drawer {
      padding-bottom: max(14px, env(safe-area-inset-bottom));
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-building span,
  .intruder-dot,
  .iqbox-device,
  .device-pulse,
  .device-light,
  .camera-cone,
  .signal-line,
  .monitor-panel,
  .monitor-grid span,
  .phone-alert,
  .motion-timeline li {
    animation: none !important;
  }

  .story-progress span,
  .story-scene,
  .coverage-rings span,
  .warning-waves span,
  .detection-box,
  .signal-beam {
    animation: none !important;
  }

  .intruder-dot,
  .monitor-panel,
  .phone-alert,
  .story-scene:first-child {
    animation: none !important;
  }
}

/* ===== Instant estimator ===== */
.estimator {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 4vw, 48px);
  background: var(--soft);
}
.estimator-head {
  max-width: 760px;
  margin: 0 auto clamp(28px, 4vw, 48px);
  text-align: center;
}
.estimator-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 6px 0 12px;
}
.estimator-head p { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 0 auto; }
.estimator-shell {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}
.estimator-controls {
  display: grid;
  gap: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
}
.estimator-field > label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.estimator-field > label span { color: var(--ink); }
.estimator-sites { display: flex; flex-wrap: wrap; gap: 8px; }
.estimator-sites button {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}
.estimator-sites button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.estimator-series-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.estimator-series-tabs button {
  min-height: 38px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}
.estimator-series-tabs button.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.estimator-products { display: grid; gap: 10px; }
.estimator-product-card {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  cursor: pointer;
}
.estimator-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
  border-radius: 999px;
  background: var(--badge);
  color: #fff;
}
.estimator-locked {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}
.estimator-locked:hover { text-decoration: underline; }
.estimator-summary .estimator-locked { color: #9db4d6; }
.estimator-product-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.estimator-product-details {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--muted);
  white-space: nowrap;
}
.estimator-product-details:hover { color: var(--ink); border-color: var(--muted); opacity: 1; }
.estimator-product-add {
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  white-space: nowrap;
}
.estimator-product-add:hover { opacity: 0.88; }
/* quantity stepper */
.estimator-qty { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; width: max-content; }
.estimator-qty button {
  width: 40px; height: 40px;
  border: none;
  background: var(--panel);
  font-size: 18px; font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}
.estimator-qty button:hover { background: var(--soft); opacity: 1; }
.estimator-qty span { min-width: 40px; text-align: center; font-size: 15px; font-weight: 600; }
.estimator-qty-sm button { width: 32px; height: 32px; font-size: 16px; }
.estimator-qty-sm span { min-width: 30px; font-size: 14px; }
/* summary cart */
.estimator-cart { display: grid; gap: 10px; margin-bottom: 18px; }
.estimator-cart-empty { margin: 0; font-size: 13px; color: rgba(255,255,255,0.55); }
.estimator-cart-line { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; }
.estimator-cart-name { font-size: 13px; font-weight: 500; color: #fff; line-height: 1.3; }
.estimator-cart-name small { display: block; font-weight: 400; color: rgba(255,255,255,0.55); font-size: 12px; margin-top: 2px; }
.estimator-cart-line .estimator-qty { border-color: rgba(255,255,255,0.22); }
.estimator-cart-line .estimator-qty button { background: transparent; color: #fff; }
.estimator-cart-line .estimator-qty button:hover { background: rgba(255,255,255,0.1); }
.estimator-cart-line .estimator-qty span { color: #fff; }
.estimator-cart-sub { font-size: 14px; font-weight: 600; color: #fff; min-width: 64px; text-align: right; }
/* detail modal */
.estimator-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.estimator-modal[hidden] { display: none; }
.estimator-modal-backdrop { position: absolute; inset: 0; background: rgba(23,26,32,0.55); }
.estimator-modal-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: var(--panel);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 32px);
}
.estimator-modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px;
  border: none; background: var(--soft); border-radius: var(--radius);
  font-size: 20px; color: var(--ink); cursor: pointer;
}
.estimator-modal-head { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; margin-bottom: 18px; }
.estimator-modal-head img { width: 96px; height: 96px; object-fit: contain; background: var(--soft); border-radius: var(--radius); }
.estimator-modal-eyebrow { margin: 0 0 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.estimator-modal-head h3 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.estimator-modal-sku { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.estimator-modal-price { margin: 6px 0 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.estimator-modal-summary { color: var(--muted); line-height: 1.6; font-size: 14px; margin: 0 0 18px; }
.estimator-modal-specs { display: grid; gap: 0; border-top: 1px solid var(--line); margin-bottom: 20px; }
.estimator-modal-spec { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.estimator-modal-spec span { color: var(--muted); }
.estimator-modal-spec b { font-weight: 500; }
.estimator-modal-pick { width: 100%; }
/* booking modal */
.booking-recap { background: var(--soft); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; display: grid; gap: 8px; }
.booking-recap-empty { margin: 0; font-size: 13px; color: var(--muted); }
.booking-recap-line { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.booking-recap-line span { color: var(--muted); }
.booking-recap-line b { font-weight: 600; }
.booking-recap-total { border-top: 1px solid var(--line); padding-top: 8px; }
.booking-recap-total span, .booking-recap-total b { color: var(--ink); }
.booking-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.booking-form label { display: grid; gap: 5px; font-size: 13px; font-weight: 500; color: var(--ink); }
.booking-form input, .booking-form select, .booking-form textarea {
  min-height: 42px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); font: inherit;
}
.booking-form textarea { resize: vertical; min-height: 60px; }
.booking-wide { grid-column: 1 / -1; }
.booking-submit { grid-column: 1 / -1; width: 100%; }
.booking-fineprint { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--muted); text-align: center; }
@media (max-width: 520px) { .booking-form { grid-template-columns: 1fr; } }
.estimator-product-card:hover { border-color: var(--muted); opacity: 1; }
.estimator-product-card.active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.estimator-product-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: var(--soft);
  border-radius: var(--radius);
}
.estimator-product-info { display: grid; gap: 2px; min-width: 0; }
.estimator-product-info strong { font-size: 14px; font-weight: 600; }
.estimator-product-info span { font-size: 12px; color: var(--muted); }
.estimator-product-info b { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.estimator-tiers { display: grid; gap: 10px; }
.estimator-tier-card {
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  cursor: pointer;
}
.estimator-tier-card:hover { border-color: var(--muted); opacity: 1; }
.estimator-tier-card.active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.estimator-tier-card strong { font-size: 15px; font-weight: 600; }
.estimator-tier-card b { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.estimator-tier-card b i { font-size: 12px; font-weight: 400; font-style: normal; color: var(--muted); margin-left: 4px; }
.estimator-tier-card span { font-size: 12px; color: var(--muted); line-height: 1.5; }
.estimator-line-total {
  border-top: 1px solid rgba(255,255,255,0.28);
  margin-top: 4px;
  padding-top: 14px;
}
.estimator-line-total strong { font-size: 16px; }
.estimator-field input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}
.estimator-range-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.estimator-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.estimator-toggle button {
  min-height: 40px;
  padding: 8px 26px;
  border: none;
  background: var(--panel);
  color: var(--ink);
  font-weight: 500;
}
.estimator-toggle button.active { background: var(--accent); color: #fff; }
.estimator-hint { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.estimator-summary {
  position: sticky;
  top: 88px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
}
.estimator-summary-label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.estimator-amount {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 6px 0 22px;
}
.estimator-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.14);
  font-size: 14px;
  color: rgba(255,255,255,0.78);
}
.estimator-line strong { color: #fff; font-weight: 600; }
.estimator-line-monthly strong { color: #9db4d6; }
.estimator-cta { width: 100%; margin-top: 16px; }
.estimator-summary .secondary-button {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}
.estimator-disclaimer { margin: 18px 0 0; font-size: 12px; line-height: 1.5; color: rgba(255,255,255,0.55); }
@media (max-width: 860px) {
  .estimator-shell { grid-template-columns: 1fr; }
  .estimator-summary { position: static; }
}

/* ===== Estimator admin panel (synced) ===== */
.estimator-admin { padding: 4px 2px 8px; }
.estimator-admin h4 {
  margin: 22px 0 12px;
  font-size: 15px;
  font-weight: 600;
}
.estimator-admin-products, .estimator-admin-tiers { display: grid; gap: 12px; }
.estimator-admin-product {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--soft);
}
.estimator-admin-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.estimator-admin-field.wide { grid-column: 1 / -1; }
.estimator-admin-field textarea {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  font: inherit;
  resize: vertical;
}
.estimator-admin-del { margin-top: 12px; }
.estimator-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.estimator-admin-field { display: grid; gap: 4px; }
.estimator-admin-field > span { font-size: 13px; font-weight: 600; color: var(--ink); }
.estimator-admin-field input {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.estimator-admin-field small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.estimator-admin-sites-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
}
.estimator-admin-sites { display: grid; gap: 8px; margin-top: 8px; }
.estimator-admin-site-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 40px;
  gap: 10px;
  align-items: center;
}
.estimator-admin-site-row input {
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.estimator-admin-site-head span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.estimator-admin-site-head { align-items: end; }
.estimator-admin-preview {
  margin-top: 22px;
  padding: 14px 16px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
}
.estimator-admin-preview strong { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.estimator-admin-preview span { font-size: 14px; color: var(--ink); }
@media (max-width: 640px) {
  .estimator-admin-site-row { grid-template-columns: 1fr 1fr; }
  .estimator-admin-site-head { display: none; }
}

/* ===== Trust bar (under hero) ===== */
.trust-bar { background: var(--ink); padding: 0; min-height: 0 !important; }
.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1200px;
  margin: 0 auto;
}
.trust-bar-item {
  padding: 22px 24px;
  border-right: 1px solid rgba(255,255,255,0.1);
  color: #fff;
}
.trust-bar-item:last-child { border-right: none; }
.trust-bar-item strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.trust-bar-item span { font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.4; }
@media (max-width: 860px) {
  .trust-bar-inner { grid-template-columns: 1fr 1fr; }
  .trust-bar-item:nth-child(2) { border-right: none; }
  .trust-bar-item:nth-child(1), .trust-bar-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.1); }
}
@media (max-width: 480px) {
  .trust-bar-inner { grid-template-columns: 1fr; }
  .trust-bar-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
}

/* ===== Reviews ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.review-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review-stars { color: #e0a51c; font-size: 16px; letter-spacing: 2px; }
.review-card p { margin: 0; color: var(--ink); line-height: 1.6; font-size: 15px; flex: 1; }
.review-author strong { display: block; font-size: 14px; font-weight: 600; }
.review-author span { font-size: 13px; color: var(--muted); }
.reviews-note { text-align: center; color: var(--muted); font-size: 12px; margin: 24px 0 0; }

/* ===== Service area ===== */
.service-area-tool { max-width: 640px; margin: 0 auto; text-align: center; }
.service-area-form { display: flex; gap: 10px; margin-bottom: 16px; }
.service-area-form input {
  flex: 1;
  min-height: 52px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 16px;
  background: var(--panel);
}
.service-area-form .primary-button { min-height: 52px; white-space: nowrap; }
.service-area-result { font-size: 15px; line-height: 1.6; padding: 0 8px; min-height: 24px; }
.service-area-result.is-covered { color: var(--success); }
.service-area-result.is-outside { color: var(--muted); }
.service-area-result a:not(.primary-button) { color: var(--accent); font-weight: 600; }
.service-area-cta { display: inline-block; margin-top: 14px; color: #fff; }
.service-area-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.service-area-list span {
  font-size: 13px;
  color: var(--muted);
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
@media (max-width: 520px) {
  .service-area-form { flex-direction: column; }
}

/* ===== Service Area page ===== */
.coverage-page {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 4vw, 48px);
  border-top: 1px solid var(--line);
  gap: clamp(36px, 6vw, 64px);
}
.coverage-hero { max-width: 760px; }
.coverage-hero h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 600; letter-spacing: -0.02em; margin: 6px 0 14px; }
.coverage-hero p { color: var(--muted); font-size: 16px; line-height: 1.6; }

/* counters */
.coverage-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.coverage-stat { background: var(--ink); padding: 28px 24px; text-align: center; }
.coverage-stat strong {
  display: block;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.coverage-stat span { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 6px; display: block; }
@media (max-width: 720px) { .coverage-stats { grid-template-columns: 1fr 1fr; } }

/* map */
.coverage-map-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.coverage-map {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(12px, 2vw, 24px);
  display: flex;
  justify-content: center;
}
.coverage-map svg { width: 100%; max-width: 460px; height: auto; display: block; }
.cv-state { fill: #dfe3e8; stroke: var(--muted); stroke-width: 1.2; stroke-linejoin: round; }
.cv-dot { fill: var(--badge); }
.cv-pulse { fill: var(--badge); opacity: 0.22; transform-origin: center; transform-box: fill-box; animation: cvPulse 2.6s ease-out infinite; }
.cv-marker:hover .cv-dot, .cv-marker:focus .cv-dot { fill: var(--accent); }
@keyframes cvPulse {
  0% { transform: scale(0.6); opacity: 0.4; }
  70% { transform: scale(1.6); opacity: 0; }
  100% { opacity: 0; }
}
.coverage-map-side h3 { font-size: 22px; font-weight: 600; margin: 0 0 10px; }
.coverage-map-side p { color: var(--muted); line-height: 1.6; margin: 0 0 18px; }
.coverage-legend { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); margin-bottom: 22px; }
.coverage-legend-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--badge); display: inline-block; }
@media (max-width: 760px) { .coverage-map-wrap { grid-template-columns: 1fr; } }

/* city grid */
.coverage-cities h3 { font-size: 22px; font-weight: 600; margin: 0 0 18px; }
.coverage-city-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.coverage-city-chip {
  font-size: 14px;
  color: var(--ink);
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}
.coverage-cities-note { margin: 20px 0 0; color: var(--muted); font-size: 14px; }
.coverage-cities-note a { color: var(--accent); font-weight: 600; }

/* coverage-check block */
.coverage-check {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
}
.coverage-check-copy h3 { font-size: 22px; font-weight: 600; margin: 0 0 10px; }
.coverage-check-copy p { color: var(--muted); line-height: 1.6; margin: 0; }
.coverage-check .service-area-tool { max-width: none; text-align: left; }
.coverage-check .service-area-result { text-align: left; }
@media (max-width: 720px) { .coverage-check { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .cv-pulse { animation: none; } }

/* footer bottom bar with legal links */
.footer-bottom {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.footer-contact { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--muted); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-legal a { font-size: 13px; font-weight: 500; color: var(--ink); text-decoration: none; }
.footer-legal a:hover { color: var(--accent); }
.footer-copy { width: 100%; font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.footer-licenses { width: 100%; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.footer-licenses span:first-child { font-weight: 600; color: var(--ink); }

/* cookie consent banner */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-text { flex: 1; min-width: 220px; }
.cookie-banner-text strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.cookie-banner-text span { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.5; }
.cookie-banner-text a { color: #9db4d6; }
.cookie-banner-actions { display: flex; gap: 10px; }
.cookie-banner-actions button {
  min-height: 40px;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.3);
}
.cookie-decline { background: transparent; color: #fff; }
.cookie-decline:hover { background: rgba(255,255,255,0.1); }
.cookie-accept { background: #fff; color: var(--ink); border-color: #fff; }
.cookie-accept:hover { opacity: 0.9; }
@media (max-width: 520px) {
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions button { flex: 1; }
}

/* inline chat quick-action chips */
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0; }
.chat-chips button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  cursor: pointer;
}
.chat-chips button:hover { border-color: var(--accent); color: var(--accent); }
/* ===== Dealer Portal ===== */
.dealer-portal { padding: clamp(44px, 7vw, 86px) clamp(18px, 4vw, 48px); border-top: 1px solid var(--line); }
.dealer-portal-shell { max-width: 900px; margin: 0 auto; width: 100%; display: grid; gap: 20px; }
.dealer-empty { text-align: center; max-width: 480px; margin: 0 auto; display: grid; gap: 12px; }
.dealer-empty h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 600; letter-spacing: -0.02em; }
.dealer-empty p { color: var(--muted); }
.dealer-empty .primary-button { justify-self: center; margin-top: 8px; }
.dealer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dealer-head h2 { font-size: clamp(24px, 3.5vw, 34px); font-weight: 600; letter-spacing: -0.02em; margin: 4px 0 6px; }
.dealer-head p { color: var(--muted); margin: 0; }
.dealer-head strong { color: var(--ink); }
.dealer-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dealer-stat { background: var(--ink); padding: 22px 16px; text-align: center; }
.dealer-stat strong { display: block; font-size: clamp(22px, 3vw, 30px); font-weight: 600; color: #fff; letter-spacing: -0.02em; }
.dealer-stat span { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 5px; display: block; }
@media (max-width: 640px) { .dealer-stats { grid-template-columns: 1fr 1fr; } }
.dealer-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.dealer-card h3 { font-size: 17px; font-weight: 600; margin: 0 0 6px; }
.dealer-card > p { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.dealer-link-row { display: flex; gap: 8px; margin-bottom: 12px; }
.dealer-link-row input { flex: 1; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; background: var(--soft); }
.dealer-list { display: grid; gap: 8px; }
.dealer-list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.dealer-list-row strong { display: block; font-size: 14px; font-weight: 600; }
.dealer-list-row span { font-size: 13px; color: var(--muted); }
.dealer-pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--ink); }
.dealer-amount { font-size: 15px; font-weight: 600; }
.dealer-muted { color: var(--muted); font-size: 14px; margin: 0; }
.member-detail-dealer { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 12px; padding: 12px 16px; background: var(--accent-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.member-detail-dealer span { font-size: 14px; }
.member-detail-dealer label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.member-detail-dealer input { width: 80px; min-height: 38px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius); }
.estimator-addr-error { grid-column: 1 / -1; margin: 0; color: var(--danger); font-size: 13px; }
.estimator-pay-note { margin: 8px 0 0; font-size: 12px; color: rgba(255,255,255,0.55); text-align: center; }
/* chat smart CTA button */
.chat-cta-row { background: transparent !important; padding: 0 !important; border: none !important; }
.chat-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius);
}
.chat-cta:hover { opacity: 0.9; }
/* end of stylesheet */