/* =========================================================================
   Home
   ========================================================================= */

/* ---------- HERO: the page seen through a security camera ---------- */
.cctv {
  /* The camera image is always dark, also in the light theme */
  --text: #eef2f6; --text-muted: #9aa6b6; --surface-2: #161c25; --border-strong: rgba(255, 255, 255, .18);
  --primary-text: #ff8a3d;
  position: relative; overflow: hidden; color: var(--text); cursor: crosshair;
  min-height: min(860px, calc(100svh - 110px)); display: grid; align-items: center;
  background: radial-gradient(ellipse 70% 80% at 72% 45%, #18202a 0%, #0a0d12 60%, #050608 100%);
}
.cctv a, .cctv button { cursor: pointer; }
.cctv-noise {
  position: absolute; inset: -50%; pointer-events: none; opacity: .09; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .9s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); } 40% { transform: translate(5%, -3%); }
  60% { transform: translate(-3%, -6%); } 80% { transform: translate(6%, 5%); } 100% { transform: translate(0, 0); }
}
.cctv-scan {
  position: absolute; left: 0; right: 0; top: -30%; height: 30%; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .035) 70%, rgba(255, 255, 255, .07) 100%, transparent);
  animation: sweep 7s linear infinite;
}
@keyframes sweep { to { transform: translateY(440%); } }
.cctv::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .6));
}

/* On-screen display */
.osd { position: absolute; inset: 18px; z-index: 2; pointer-events: none; font: 500 .72rem/1 var(--font-mono); letter-spacing: .08em; color: rgba(238, 242, 246, .78); text-shadow: 0 1px 2px #000; }
.corner { position: absolute; width: 34px; height: 34px; border: 2px solid rgba(238, 242, 246, .55); }
.corner.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.corner.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.corner.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.osd-row { position: absolute; left: 22px; right: 22px; display: flex; justify-content: space-between; gap: 16px; }
.osd-top { top: 14px; }
.osd-bottom { bottom: 14px; }
.rec-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #ff3b3b; vertical-align: 0; animation: blink 1.1s steps(2) infinite; }
.crosshair { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; transform: translate(-50%, -50%); opacity: .3; }
.crosshair::before, .crosshair::after { content: ''; position: absolute; background: #fff; }
.crosshair::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.crosshair::after { top: 50%; left: 0; right: 0; height: 1px; }

/* Detection box following the cursor */
.tracker {
  position: absolute; left: 0; top: 0; z-index: 3; width: 150px; height: 190px; pointer-events: none;
  border: 1.5px solid var(--primary); box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 0 24px rgba(255, 106, 19, .25) inset;
  opacity: 0; transition: opacity .3s, border-color .2s, width .25s, height .25s;
  font: 700 .66rem/1 var(--font-mono); letter-spacing: .06em;
}
.tracker.on { opacity: 1; }
.tracker-label { position: absolute; left: -1.5px; bottom: 100%; padding: 4px 7px; background: var(--primary); color: #140800; white-space: nowrap; }
.tracker-id { position: absolute; left: 6px; bottom: 6px; color: var(--primary); opacity: .9; }
.tracker.hot { border-color: var(--success); box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 0 24px rgba(49, 208, 122, .25) inset; }
.tracker.hot .tracker-label { background: var(--success); color: #03200f; }
.tracker.hot .tracker-id { display: none; }

.cctv-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; padding-top: 110px; padding-bottom: 110px; }
.cctv .kicker { color: rgba(238, 242, 246, .7); }
.cctv h1 { font-size: clamp(3.1rem, 7.6vw, 6.6rem); line-height: .94; letter-spacing: -.05em; margin: 0 0 28px; }
.cctv .lead { color: var(--text-muted); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* PTZ camera that looks at the visitor */
.ptz { position: relative; justify-self: center; width: min(100%, 400px); }
.ptz-svg { width: 100%; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .6)) drop-shadow(0 0 80px rgba(255, 106, 19, .12)); }
#ptz-head { will-change: transform; }
.ir-ring circle { fill: #3a1515; transition: fill .4s; }
.ptz.ir .ir-ring circle { fill: #ff4d4d; filter: drop-shadow(0 0 4px #ff3b3b); }
.iris { animation: iris 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes iris { 0%, 100% { transform: scale(1); } 50% { transform: scale(.6); } }
.ptz-led { fill: var(--success); animation: blink 2s ease-in-out infinite; }
.ptz-tag { display: flex; justify-content: center; gap: 16px; margin-top: 8px; font: 500 .7rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.ptz-tag span + span::before { content: '·'; margin-right: 16px; }

/* Touch screens: no tracking, the camera only patrols; the detection box stays hidden */
@media (hover: none) {
  .cctv { cursor: default; }
  .tracker { display: none; }
}

/* ---------- 01 House (technical drawing) ---------- */
.house { display: grid; grid-template-columns: 1.65fr 1fr; gap: 20px; align-items: stretch; }
.house-stage {
  position: relative; padding: 28px 22px 18px; border-radius: var(--radius-lg); border: 1px solid var(--border);
  background-color: var(--surface);
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 24px 24px; background-position: -1px -1px;
}
.house-svg { width: 100%; overflow: visible; }
.h-line { fill: none; stroke: var(--text-muted); stroke-width: 1.6; stroke-linejoin: round; }
.h-fill { fill: var(--surface-2); }
.h-fill2 { fill: var(--surface-3); }
.h-strong { stroke: var(--text); stroke-width: 2; }
.h-hatch { stroke: var(--border-strong); stroke-width: 2; }
.h-accent-fill { fill: var(--primary); }
.h-dim path { fill: none; stroke: var(--text-muted); stroke-width: 1; opacity: .6; }
.h-dim text { fill: var(--text-muted); font: 500 11px var(--font-mono); letter-spacing: .12em; }
.fence-wires path { fill: none; stroke: var(--primary); stroke-width: 1.6; stroke-dasharray: 5 7; animation: current .6s linear infinite; }
@keyframes current { to { stroke-dashoffset: -12; } }
.h-cone { transform-box: view-box; animation: cone 5s ease-in-out infinite; }
.cone-1 { transform-origin: 378px 206px; }
.cone-2 { transform-origin: 752px 196px; animation-delay: -2.5s; }
@keyframes cone { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
.house.focus-gate .gate-bars { animation: slide 2.4s ease-in-out infinite; }
@keyframes slide { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-46px); } }

.spot {
  position: absolute; left: var(--x); top: var(--y); z-index: 2; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 50%;
  border: 2px solid var(--bg); background: var(--primary); color: var(--on-primary);
  font: 700 .8rem/1 var(--font-mono); transition: transform .2s, background .2s, color .2s;
}
.spot::before { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--primary); animation: spot-ring 2s ease-out infinite; }
@keyframes spot-ring { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.spot:hover { transform: translate(-50%, -50%) scale(1.12); }
.spot[aria-pressed="true"] { background: var(--text); color: var(--bg); transform: translate(-50%, -50%) scale(1.18); }
.spot[aria-pressed="true"]::before { border-color: var(--text); }

.house-panel { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.spot-card { flex: 1; animation: fade .45s ease; }
.spot-card[hidden] { display: none; }
.spot-num { font: 500 .74rem/1 var(--font-mono); letter-spacing: .14em; color: var(--text-muted); }
.spot-art { width: 150px; margin: 18px 0 8px; }
.spot-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.55rem; margin-bottom: 6px; }
.spot-card h3 i { color: var(--primary-text); font-size: 1.5rem; }
.spot-tag { font-family: var(--font-title); font-size: 1.1rem; font-weight: 500; margin-bottom: 10px; }
.spot-card p:not(.spot-tag) { color: var(--text-muted); font-size: .95rem; }
.spot-nav { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.spot-progress { flex: 1; height: 2px; background: var(--border-strong); overflow: hidden; }
.spot-progress span { display: block; height: 100%; width: 0; background: var(--primary); }
.spot-progress span.run { animation: progress 6s linear forwards; }
@keyframes progress { to { width: 100%; } }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }

/* ---------- 02 Night vision comparator ---------- */
.compare {
  --pos: 50%;
  position: relative; aspect-ratio: 16 / 8; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-strong); background: #000; user-select: none; box-shadow: var(--shadow-lg);
}
.compare-layer { position: absolute; inset: 0; }
.street-svg { width: 100%; height: 100%; }
.compare-layer::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
/* left: ordinary camera at night */
.compare-base .street-svg { filter: brightness(.13) saturate(.25) contrast(1.15) blur(1.2px); }
.compare-base::after { background: radial-gradient(circle at 42% 16%, rgba(255, 190, 110, .18), transparent 18%), rgba(10, 20, 40, .25); }
/* right: Vigiar camera */
.compare-top { clip-path: inset(0 0 0 var(--pos)); }
.compare[data-mode="ir"] .compare-top .street-svg { filter: grayscale(1) brightness(1.3) contrast(1.4); }
.compare[data-mode="ir"] .compare-top::after { background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, .55)), repeating-linear-gradient(0deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 3px); }
.compare[data-mode="color"] .compare-top .street-svg { filter: brightness(.88) saturate(1.1) contrast(1.08); }
.compare[data-mode="color"] .compare-top::after { background: radial-gradient(circle at 42% 16%, rgba(255, 200, 120, .45), transparent 22%), linear-gradient(180deg, rgba(6, 12, 34, .88) 0 34%, rgba(6, 12, 34, .25) 52%, rgba(6, 12, 34, .1)); }
.compare[data-mode="day"] .compare-top .street-svg { filter: none; }

.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; box-shadow: 0 0 12px rgba(0, 0, 0, .5); }
.compare-handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #140800; font-size: 1.3rem; box-shadow: 0 6px 20px rgba(0, 0, 0, .45); }
.compare-range { touch-action: pan-y; position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.compare:has(.compare-range:focus-visible) .compare-handle span { outline: 3px solid #fff; outline-offset: 3px; }
.compare-badge { position: absolute; bottom: 16px; left: 16px; z-index: 2; padding: 6px 10px; background: rgba(0, 0, 0, .65); color: #fff; font: 700 .7rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.compare-badge-r { left: auto; right: 16px; background: var(--primary); color: #140800; }
.compare-osd { position: absolute; top: 14px; left: 16px; right: 16px; z-index: 2; display: flex; justify-content: space-between; color: #fff; font: 500 .7rem/1 var(--font-mono); letter-spacing: .1em; text-shadow: 0 1px 2px #000; pointer-events: none; }
.compare-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.compare-modes button { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); text-align: left; transition: border-color .2s, background .2s; }
.compare-modes i { font-size: 1.6rem; color: var(--text-muted); }
.compare-modes strong { display: block; font-size: .98rem; }
.compare-modes small { color: var(--text-muted); font-size: .82rem; }
.compare-modes button[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); }
.compare-modes button[aria-pressed="true"] i { color: var(--primary-text); }

/* ---------- 03 Coverage simulator ---------- */
.sim { display: grid; grid-template-columns: 1.7fr 1fr; gap: 20px; align-items: start; }
.sim-board { position: relative; padding: 14px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.sim-hud { display: flex; justify-content: space-between; gap: 12px; padding: 2px 6px 12px; font: 500 .7rem/1 var(--font-mono); letter-spacing: .1em; color: var(--text-muted); }
.sim-svg { width: 100%; touch-action: none; border-radius: 12px; background: var(--bg-2); }
.sim-gridline { fill: none; stroke: var(--border); stroke-width: 1; }
.sim-wall { stroke: var(--text); stroke-width: 5; stroke-linecap: round; }
.sim-wall.lot { stroke: var(--text-muted); stroke-width: 3; stroke-dasharray: 2 6; }
.sim-cone { fill: rgba(255, 106, 19, .18); stroke: rgba(255, 106, 19, .55); stroke-width: 1; transition: fill .2s; }
.sim-cone.sel { fill: rgba(255, 106, 19, .3); }
.sim-blind circle { fill: var(--danger); opacity: .55; }
.sim-labels text { fill: var(--text-muted); font: 500 9px var(--font-mono); letter-spacing: .14em; text-anchor: middle; opacity: .8; pointer-events: none; }
.sim-cam { cursor: grab; }
.sim-cam:active { cursor: grabbing; }
.sim-cam .body { fill: var(--surface); stroke: var(--primary); stroke-width: 3; }
.sim-cam.sel .body { fill: var(--primary); }
.sim-cam text { fill: var(--text); font: 700 10px var(--font-mono); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.sim-cam.sel text { fill: #140800; }
.sim-cam .arm { stroke: var(--primary); stroke-width: 2; stroke-dasharray: 3 3; }
.sim-cam .hit, .sim-cam .knob.knob-hit { fill: transparent; stroke: none; }
.sim-cam .knob { fill: var(--primary); stroke: var(--bg); stroke-width: 2; cursor: alias; }
.sim-cam:focus { outline: none; }
.sim-cam:focus-visible .body { stroke: var(--text); stroke-width: 4; }

.sim-panel { display: grid; gap: 16px; padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.sim-meter { display: flex; align-items: center; gap: 18px; }
.sim-meter svg { width: 96px; flex-shrink: 0; transform: rotate(-90deg); }
.meter-bg, .meter-fg { fill: none; stroke-width: 10; }
.meter-bg { stroke: var(--surface-3); }
.meter-fg { stroke: var(--primary); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset .3s ease, stroke .3s; }
.sim-meter strong { display: block; font-family: var(--font-title); font-size: 2.6rem; line-height: 1; letter-spacing: -.03em; }
.sim-meter small { color: var(--text-muted); }
.sim-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; border-radius: 12px; overflow: hidden; background: var(--border); border: 1px solid var(--border); }
.sim-stats div { padding: 12px 14px; background: var(--surface-2); }
.sim-stats dt { font: 500 .68rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.sim-stats dd { margin: 6px 0 0; font-family: var(--font-title); font-weight: 700; font-size: 1.4rem; }
.sim-edit[hidden] { display: none; }
.sim-edit-title { margin: 0 0 8px; font: 500 .7rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.sim-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sim-types button { display: grid; gap: 2px; padding: 10px 6px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-2); font-weight: 600; font-size: .88rem; }
.sim-types small { font: 500 .66rem/1.2 var(--font-mono); color: var(--text-muted); }
.sim-types button[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); }
.sim-tools { display: flex; gap: 8px; margin-top: 10px; }
.sim-tools .btn { margin-left: auto; }
.sim-actions { display: grid; gap: 10px; }
.sim-toggle { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--text-muted); cursor: pointer; }
.sim-toggle input { accent-color: var(--primary); width: 16px; height: 16px; }
.sim-kit { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--primary-soft); font-size: .88rem; }
.sim-kit:empty { display: none; }
.sim-kit a { color: var(--primary-text); font-weight: 600; }
.sim-note { margin: 0; font-size: .76rem; color: var(--text-muted); text-align: center; }

/* ---------- App spotlight ---------- */
.spotlight-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.spotlight h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -.035em; }
.phone {
  position: relative; justify-self: center; width: 300px; padding: 12px; border-radius: 46px;
  background: linear-gradient(160deg, #2b323c, #0d1116); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), var(--shadow-lg);
  color: #eef2f6;
}
.phone-notch { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; border-radius: 999px; background: #000; z-index: 2; }
.phone-screen { border-radius: 36px; background: #090c10; padding: 56px 16px 20px; display: grid; gap: 12px; min-height: 560px; }
.app-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-title); font-weight: 700; font-size: 1.2rem; }
.app-top i { color: #98a4b4; }
.app-status { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: 20px; background: var(--primary); color: #140800; }
.app-status i { font-size: 2rem; }
.app-status strong { display: block; font-size: 1.1rem; }
.app-status small { font-size: .78rem; opacity: .85; }
.app-cams { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.app-cams span { aspect-ratio: 16 / 11; border-radius: 12px; background: linear-gradient(160deg, #26303b, #151b22); position: relative; overflow: hidden; }
.app-cams span::after { content: ''; position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: #ff3b3b; animation: blink 1.2s steps(2) infinite; }
.app-cams span:nth-child(2) { background: linear-gradient(200deg, #2f3a47, #161c24); }
.app-cams span:nth-child(3) { background: linear-gradient(120deg, #222a34, #1a2129); }
.app-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.app-actions span { display: grid; justify-items: center; gap: 4px; padding: 12px 4px; border-radius: 14px; background: #151b22; font-size: .66rem; color: #98a4b4; }
.app-actions i { font-size: 1.35rem; color: #eef2f6; }
.app-actions .on { background: rgba(255, 106, 19, .16); color: #ffb27a; }
.app-actions .on i { color: var(--primary); }
.app-event { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #151b22; font-size: .82rem; }
.app-event i { font-size: 1.4rem; color: var(--primary); }
.app-event small { display: block; color: #98a4b4; font-size: .72rem; }

/* ---------- Segment tabs ---------- */
.tab-list { display: flex; gap: 6px; padding: 6px; margin: 0 0 24px; width: fit-content; max-width: 100%; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); overflow-x: auto; }
.tab-list button { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 0; background: none; color: var(--text-muted); font-weight: 600; font-size: .93rem; white-space: nowrap; transition: background .2s, color .2s; }
.tab-list button i { font-size: 1.2rem; }
.tab-list button[aria-selected="true"] { background: var(--primary); color: var(--on-primary); }
.tab-panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 48px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); animation: fade .4s ease; }
.tab-panel[hidden] { display: none; }
.tab-panel h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.tab-panel p { color: var(--text-muted); font-size: 1.05rem; }
.tab-art { padding: 24px; border-radius: var(--radius-lg); background: var(--surface-2); }
.tab-art .device-art { max-width: 340px; margin: 0 auto; }

/* ---------- Store teaser ---------- */
.cat-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; margin-bottom: 28px; }
.cat-tile { display: grid; justify-items: center; gap: 8px; padding: 18px 8px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-align: center; font-size: .82rem; font-weight: 600; transition: border-color .2s; }
.cat-tile i { font-size: 1.7rem; color: var(--primary-text); }
.cat-tile:hover { border-color: var(--primary); }
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 40px; border-radius: var(--radius-lg); overflow: hidden; background: var(--border); border: 1px solid var(--border); }
.perks li { display: flex; gap: 14px; align-items: center; padding: 22px; background: var(--surface); }
.perks i { font-size: 1.8rem; color: var(--primary-text); }
.perks span { font-size: .85rem; color: var(--text-muted); line-height: 1.35; }
.perks strong { display: block; color: var(--text); font-size: .98rem; }

/* ---------- Local store + Instagram ---------- */
.local { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; }
.local-card { padding: 44px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.local-card h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.info-list { display: grid; gap: 14px; margin: 24px 0 30px; }
.info-list li { display: flex; gap: 12px; color: var(--text-muted); }
.info-list i { font-size: 1.3rem; color: var(--primary-text); margin-top: 2px; }
.info-list a:hover { color: var(--text); }
.insta-card { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 16px; border-radius: var(--radius-lg); background: linear-gradient(135deg, #ff6a13, #ff3d6e 55%, #a63cff); color: #fff; }
.insta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; flex: 1; }
.insta-grid span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 14px; background: rgba(0, 0, 0, .22); font-size: 2.2rem; }
.insta-copy { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: rgba(0, 0, 0, .28); }
.insta-copy > i { font-size: 2.2rem; }
.insta-copy small { display: block; font-size: .8rem; opacity: .85; }
.insta-copy .btn { margin-left: auto; background: #fff; color: #111; border: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cat-row { grid-template-columns: repeat(4, 1fr); }
  .house, .sim { grid-template-columns: 1fr; }
  .sim-panel { grid-template-columns: 1fr 1fr; align-items: start; }
  .sim-actions { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .cctv-inner { grid-template-columns: 1fr; padding-top: 80px; padding-bottom: 80px; }
  .ptz { width: min(70%, 300px); grid-row: 1; justify-self: end; margin-bottom: -40px; }
  .ptz-tag { display: none; }
  .spotlight-inner, .tab-panel, .local { grid-template-columns: 1fr; }
  .spotlight-inner { gap: 48px; }
  .spotlight-copy { order: -1; }
  .tab-panel { padding: 28px; gap: 28px; }
  .tab-art { order: -1; }
  .perks { grid-template-columns: 1fr 1fr; }
  .compare { aspect-ratio: 4 / 3; }
  .compare .street-svg { object-fit: cover; }
}

@media (max-width: 640px) {
  .osd-wide { display: none; }
  .osd { inset: 10px; font-size: .6rem; }
  .osd-row { left: 12px; right: 12px; }
  .osd-bottom span:last-child { display: none; }
  .corner { width: 22px; height: 22px; }
  .cctv h1 { font-size: 3.1rem; }
  .hero-actions .btn { width: 100%; }
  .ptz { width: 50%; margin-bottom: -10px; }
  .house-stage { padding: 18px 8px 8px; }
  .spot { width: 26px; height: 26px; font-size: .68rem; }
  .spot::before { inset: -5px; }
  .house-panel { padding: 22px; }
  .compare-modes { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .compare-modes button { flex-direction: column; justify-content: center; gap: 6px; padding: 12px 6px; text-align: center; }
  .compare-modes small { display: none; }
  .compare-modes strong { font-size: .85rem; }
  .compare-badge { font-size: .58rem; bottom: 10px; left: 10px; }
  .compare-badge-r { left: auto; right: 10px; }
  .sim-panel { grid-template-columns: 1fr; }
  .sim-board { padding: 8px; }
  .sim-hud { font-size: .6rem; }
  .phone { width: 270px; }
  .phone-screen { min-height: 500px; }
  .tab-list { width: 100%; }
  .cat-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cat-row .cat-tile:nth-child(7) { display: none; }
  .perks { grid-template-columns: 1fr; }
  .local-card { padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .cctv-noise, .cctv-scan { display: none; }
}
