/* =========================================================================
   Edge Smart Space — v2
   Light mode by default, dark mode via [data-theme="dark"] on <html>.
   No frameworks, no animation libraries.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  color-scheme: light;
  --bg: #FAFAF8;
  --bg-2: #F3F2EF;
  --surface: #FFFFFF;
  --surface-2: #F7F6F3;
  --line: rgba(18, 18, 18, .08);
  --line-2: rgba(18, 18, 18, .14);
  --text: #121212;
  --muted: #464A52;
  --dim: #8C9097;
  --accent: #0089B8;
  --accent-soft: rgba(0, 137, 184, .10);
  --accent-ink: #006E94;
  --btn-bg: #121212;
  --btn-text: #FFFFFF;
  --btn-hover: #2A2A2A;
  --glass: rgba(255, 255, 255, .72);
  --glass-line: rgba(255, 255, 255, .7);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04), 0 2px 8px rgba(0, 0, 0, .04);
  --shadow: 0 20px 50px -20px rgba(20, 20, 30, .22);
  --hero-veil: linear-gradient(90deg, rgba(250, 250, 248, .97) 0%, rgba(250, 250, 248, .92) 30%, rgba(250, 250, 248, .6) 43%, rgba(250, 250, 248, 0) 56%);
  --hero-veil-m: linear-gradient(0deg, rgba(250, 250, 248, .97) 0%, rgba(250, 250, 248, .9) 52%, rgba(250, 250, 248, .55) 68%, rgba(250, 250, 248, 0) 88%);
  --logo-a: #0096C7; --logo-b: #2563EB; --logo-detail: #121212; --logo-wifi: #0096C7;
  --ok: #0F9D58; --warn: #D98E04; --danger: #D93025;

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 22px;
  --radius-sm: 14px;
  --header-h: 72px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --container: 1200px;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B0B0C;
  --bg-2: #111113;
  --surface: #161618;
  --surface-2: #1C1C1F;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #F2F3F5;
  --muted: #B8BBC2;
  --dim: #6F737B;
  --accent: #22D3EE;
  --accent-soft: rgba(34, 211, 238, .12);
  --accent-ink: #67E8F9;
  --btn-bg: #F2F3F5;
  --btn-text: #0B0B0C;
  --btn-hover: #FFFFFF;
  --glass: rgba(22, 22, 24, .66);
  --glass-line: rgba(255, 255, 255, .10);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
  --hero-veil: linear-gradient(90deg, rgba(11, 11, 12, .94) 0%, rgba(11, 11, 12, .86) 30%, rgba(11, 11, 12, .5) 44%, rgba(11, 11, 12, 0) 58%);
  --hero-veil-m: linear-gradient(0deg, rgba(11, 11, 12, .96) 0%, rgba(11, 11, 12, .86) 52%, rgba(11, 11, 12, .5) 68%, rgba(11, 11, 12, 0) 88%);
  --logo-a: #00F2FE; --logo-b: #4FACFE; --logo-detail: #FFFFFF; --logo-wifi: #00F2FE;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.65 var(--font); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg, canvas, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 650; line-height: 1.1; letter-spacing: -.03em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); letter-spacing: -.04em; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: 1.125rem; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--accent-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 12px; z-index: 300; padding: 10px 16px; border-radius: 10px; background: var(--btn-bg); color: var(--btn-text); }
.skip-link:focus { left: 12px; }

/* theme switch: brief colour transition only while toggling (never on first paint) */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease), fill .45s var(--ease), stop-color .45s var(--ease) !important;
}
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }
.section { padding: clamp(88px, 11vw, 150px) 0; position: relative; }
.section-alt { background: var(--bg-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.eyebrow .num { color: var(--dim); font-variant-numeric: tabular-nums; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.sec-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, border-color .25s, color .25s, box-shadow .25s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-primary:hover { background: var(--btn-hover); box-shadow: var(--shadow-sm); }
.btn-ghost { border-color: var(--line-2); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { height: 40px; padding: 0 18px; font-size: .88rem; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent-ink); }
.link-arrow::after { content: '→'; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); background: rgba(12, 12, 13, .72); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid rgba(255, 255, 255, .08); color: #fff; transition: background-color .35s; }
.site-header.scrolled { background: rgba(12, 12, 13, .88); }
.nav-wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; flex: none; color: #fff; }
/* monotone white logo (header + footer) */
.brand, .foot-logo { --logo-house: #fff; --logo-detail: #fff; --logo-wifi: #fff; color: #fff; }
.brand svg { height: 38px; width: auto; aspect-ratio: 2327 / 460; }
.lg-s1 { stop-color: var(--logo-a); } .lg-s2 { stop-color: var(--logo-b); }
.lg-h { fill: var(--logo-house, url(#essLogoGrad)); } .lg-d { fill: var(--logo-detail); } .lg-t { fill: currentColor; } .lg-w { fill: var(--logo-wifi); }
.lg-p { animation: lgpulse 2.6s ease-in-out infinite; } .lg-a1 { animation-delay: .25s; } .lg-a2 { animation-delay: .5s; }
@keyframes lgpulse { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.main-nav a { position: relative; font-size: .92rem; font-weight: 500; color: rgba(255, 255, 255, .66); transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px; background: #22D3EE; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; position: relative; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); transition: background-color .25s, border-color .25s; }
.nav-toggle:hover { background: rgba(255, 255, 255, .12); }
.nav-toggle span { position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; margin-left: -9px; border-radius: 2px; background: #fff; transition: transform .35s var(--ease), width .35s var(--ease); }
.nav-toggle span:nth-child(1) { transform: translateY(-4px); }
.nav-toggle span:nth-child(2) { transform: translateY(4px); width: 12px; margin-left: -3px; }
.nav-toggle[aria-expanded="true"] { background: #fff; border-color: #fff; }
.nav-toggle[aria-expanded="true"] span { background: #0B0B0C; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: rotate(-45deg); width: 18px; margin-left: -9px; }
.nav-foot { display: none; }

.site-header .nav-cta { background: #fff; color: #0B0B0C; }
.site-header .nav-cta:hover { background: #E9EAEC; }
/* Theme switch: prominent pill */
.theme-switch {
  position: relative; display: inline-flex; align-items: center; justify-content: space-between;
  width: 66px; height: 34px; padding: 0 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .6); flex: none;
}
.theme-switch svg { width: 16px; height: 16px; position: relative; z-index: 1; transition: color .3s; }
.theme-switch .knob {
  position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .18), 0 0 0 1px var(--line);
  transition: transform .45s var(--ease), background-color .3s;
}
.theme-switch .i-sun { color: #E8A100; }
[data-theme="dark"] .theme-switch .knob { transform: translateX(32px); background: #3A3B42; }
[data-theme="dark"] .theme-switch .i-moon { color: #9EC9FF; }
[data-theme="dark"] .theme-switch .i-sun { color: rgba(255, 255, 255, .45); }
.theme-switch:hover { border-color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: calc(var(--header-h) + 40px) 0 72px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: 62% 50%; transition: opacity .6s var(--ease); }
.hero-bg.day { background-image: url('../img/render/hero_day-1920.webp'); }
.hero-bg.dusk { background-image: url('../img/render/hero_dusk-1920.webp'); display: none; }
@media (min-width: 1600px), (min-width: 901px) and (min-resolution: 1.25dppx) {
  .hero-bg.day { background-image: url('../img/render/hero_day-2560.webp'); }
  .hero-bg.dusk { background-image: url('../img/render/hero_dusk-2560.webp'); }
}
[data-theme="dark"] .hero-bg.day { display: none; }
[data-theme="dark"] .hero-bg.dusk { display: block; }
@media (max-width: 900px) {
  .hero-bg.day { background-image: url('../img/render/hero_day-m.webp'); }
  .hero-bg.dusk { background-image: url('../img/render/hero_dusk-m.webp'); }
}
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--hero-veil); }
.hero-content { max-width: 640px; }
.hero-eyebrow { margin-bottom: 26px; }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); font-weight: 500; line-height: 1.04; letter-spacing: -.04em; margin-bottom: 28px; }
.hero h1 .soft { display: block; color: var(--text); font-weight: 400; }
.hero-sub { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.6; font-weight: 400; color: var(--text); opacity: .8; max-width: 40ch; margin-bottom: 40px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; margin: 64px 0 0; padding: 0; font-size: .9rem; font-weight: 500; color: var(--text); }
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* category index under hero */
.cat-strip { border-bottom: 1px solid var(--line); background: var(--bg); }
.cat-strip ul { display: flex; gap: 8px; overflow-x: auto; list-style: none; margin: 0; padding: 18px 0; scrollbar-width: none; }
.cat-strip ul::-webkit-scrollbar { display: none; }
.cat-strip a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font-size: .88rem; font-weight: 500; color: var(--muted); white-space: nowrap; transition: border-color .2s, color .2s; }
.cat-strip a:hover { color: var(--text); border-color: var(--line-2); }
.cat-strip a b { font-weight: 600; color: var(--dim); font-variant-numeric: tabular-nums; }

/* ---------- 01 Touch panels ---------- */
.tp-stage { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: #1a1a1a; box-shadow: var(--shadow); }
.tp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; opacity: 0; transition: opacity 1.1s var(--ease), filter .4s var(--ease); }
.tp-img.on { opacity: 1; }
.tp-panel {
  position: absolute; right: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 2.4vw, 32px); width: min(340px, 42%);
  padding: 20px; border-radius: 20px;
  background: rgba(16, 17, 19, .62); color: #F2F3F5; border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.tp-top { display: flex; justify-content: space-between; align-items: baseline; font-size: .8rem; color: rgba(242, 243, 245, .7); margin-bottom: 14px; }
.tp-top b { color: #fff; font-weight: 600; font-size: .92rem; }
.tp-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tp-key {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 14px;
  min-height: 74px; padding: 11px 11px 10px; border-radius: 14px; text-align: left;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); color: rgba(242, 243, 245, .82);
  font-size: .76rem; font-weight: 500; line-height: 1.2; transition: background-color .3s, border-color .3s, color .3s;
}
.tp-key svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tp-key::after { content: ''; position: absolute; top: 11px; right: 11px; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .25); transition: background-color .3s, box-shadow .3s; }
.tp-key:hover { background: rgba(255, 255, 255, .1); }
.tp-key[aria-pressed="true"] { background: rgba(255, 255, 255, .92); color: #111; border-color: transparent; }
.tp-key[aria-pressed="true"]::after { background: #00C2E0; box-shadow: 0 0 10px #00E1FF; }
.tp-dim { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-top: 14px; font-size: .78rem; color: rgba(242, 243, 245, .7); }
.tp-dim output { min-width: 3.2ch; text-align: right; color: #fff; font-variant-numeric: tabular-nums; }
.tp-status { margin: 12px 0 0; font-size: .78rem; color: rgba(242, 243, 245, .65); }
.tp-status b { color: #fff; font-weight: 600; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #fff var(--fill, 80%), rgba(255, 255, 255, .2) var(--fill, 80%)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .4); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .4); cursor: pointer; }
.tp-loading { position: absolute; left: 20px; top: 20px; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .45); color: #fff; font-size: .75rem; opacity: 0; transition: opacity .3s; pointer-events: none; }
.tp-stage.is-loading .tp-loading { opacity: 1; }

.feature-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: clamp(20px, 3vw, 40px); margin-top: clamp(36px, 5vw, 56px); align-items: start; }
.feature-row .price-block { padding-right: 12px; }
.feature { padding-top: 18px; border-top: 1px solid var(--line-2); }
.feature h3 { font-size: 1rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .94rem; margin: 0; }
.from { color: var(--muted); font-size: .92rem; margin: 0 0 14px; }
.from .price { display: block; font-size: 1.9rem; font-weight: 650; letter-spacing: -.03em; color: var(--text); line-height: 1.15; }
.from small { color: var(--dim); }

/* ---------- 02 Curtains (scroll sequence) ---------- */
.cur-scene { position: relative; height: 270vh; background: #0f0f10; }
.cur-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.cur-canvas, .cur-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cur-fallback { display: none; }
.cur-scrim { position: absolute; inset: 0 0 auto; height: 52%; pointer-events: none; background: linear-gradient(180deg, rgba(8, 9, 10, .62) 0%, rgba(8, 9, 10, .28) 45%, rgba(8, 9, 10, 0) 100%); }
.cur-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(0, 0, 0, .35), transparent 40%); opacity: var(--shade, 0); }
.cur-head { position: absolute; left: 0; right: 0; top: calc(var(--header-h) + 28px); color: #fff; text-shadow: 0 1px 20px rgba(0, 0, 0, .25); transition: opacity .5s var(--ease); }
.cur-head .eyebrow { color: #fff; opacity: .85; }
.cur-head h2 { max-width: 14ch; margin: 0; }
.cur-status { position: absolute; left: 24px; bottom: 24px; display: inline-flex; gap: 10px; align-items: center; padding: 9px 15px; border-radius: 999px; background: rgba(15, 15, 16, .55); color: #fff; font-size: .82rem; border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.cur-status b { font-variant-numeric: tabular-nums; font-weight: 600; }
.cur-status .dot { width: 7px; height: 7px; border-radius: 50%; background: #00D1F0; box-shadow: 0 0 8px #00E1FF; }
.cur-copy {
  position: absolute; left: 50%; bottom: clamp(20px, 5vh, 56px); width: min(560px, calc(100% - 32px));
  padding: clamp(22px, 3vw, 34px); border-radius: var(--radius);
  background: var(--glass); color: var(--text); border: 1px solid var(--glass-line);
  backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: var(--shadow); transform: translate(-50%, 70vh); opacity: 0; will-change: transform, opacity;
}
.cur-copy > * { will-change: transform, opacity; }
.cur-copy h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin-bottom: 10px; }
.cur-copy p { color: var(--muted); font-size: .98rem; }
.check-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.check-list li { position: relative; padding-left: 26px; color: var(--muted); font-size: .94rem; }
.check-list li::before { content: ''; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.check-list b { color: var(--text); font-weight: 600; }
.cur-copy .row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cur-copy .from { margin: 0; }
.cur-copy .from .price { font-size: 1.5rem; }
/* no JS / reduced motion: static open view, copy visible */
.no-motion .cur-scene, .no-js .cur-scene { height: auto; }
.no-motion .cur-sticky, .no-js .cur-sticky { position: relative; height: auto; min-height: 100svh; display: flex; align-items: flex-end; padding: 120px 0 40px; }
.no-motion .cur-canvas, .no-js .cur-canvas { display: none; }
.no-motion .cur-fallback, .no-js .cur-fallback { display: block; }
.no-motion .cur-copy, .no-js .cur-copy { position: relative; left: auto; bottom: auto; transform: none; opacity: 1; margin: 0 auto; }
.no-motion .cur-status, .no-js .cur-status { display: none; }

/* ---------- 03 Security ---------- */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.sec-visual { display: grid; gap: 14px; }
.lock-card { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.fp { position: relative; flex: none; width: 62px; height: 62px; padding: 11px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); overflow: hidden; transition: background-color .4s, color .4s; }
.fp svg { width: 100%; height: 100%; }
.fp .scan { position: absolute; left: 8px; right: 8px; top: 12%; height: 2px; background: currentColor; box-shadow: 0 0 10px currentColor; animation: scan 1.5s ease-in-out infinite alternate; }
.fp.ok { background: rgba(15, 157, 88, .12); color: var(--ok); }
.fp.ok .scan { display: none; }
@keyframes scan { to { top: 84%; } }
.lock-state { margin: 0; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.lock-state i { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.lock-state i.ok { background: var(--ok); }
.lock-meta { margin: 2px 0 0; color: var(--muted); font-size: .86rem; }
.cams { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cam { position: relative; margin: 0; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16 / 10; background: #111; }
.cam img { width: 100%; height: 100%; object-fit: cover; }
.cam.ir img { filter: grayscale(1) contrast(1.15) brightness(1.9); }
.cam.night img { filter: grayscale(.4) brightness(1.4) contrast(1.05); }
.cam::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 3px); pointer-events: none; }
.cam figcaption { position: absolute; inset: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 9px 11px; color: #fff; font: 600 .66rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .05em; background: linear-gradient(rgba(0, 0, 0, .55), transparent); }
.cam figcaption time { margin-left: auto; opacity: .85; font-weight: 500; }
.rec { width: 7px; height: 7px; border-radius: 50%; background: #FF3B30; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .3 } }

/* ---------- 04 Automation & gate ---------- */
.auto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .94rem; margin: 0; }
.card .ico { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.card .ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gate-card { grid-column: span 2; display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; }
.flow-card { grid-row: span 2; }
.gate-status { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .78rem; font-weight: 600; }
.gs-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); transition: background-color .3s; }
.gs-dot.warn { background: var(--warn); animation: blink 1s infinite; }
.gs-dot.ok { background: var(--ok); }
.gate-visual { position: relative; height: 190px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; perspective: 1400px; border-radius: 14px 14px 0 0; border-bottom: 2px solid var(--line-2); background: linear-gradient(to bottom, #1B2230, #12161D); }
.gate-visual::after { content: ''; position: absolute; inset: auto 0 0; height: 60%; pointer-events: none; opacity: 0; background: radial-gradient(60% 100% at 50% 100%, rgba(255, 205, 130, .3), transparent 70%); transition: opacity 1s ease; }
.gate-visual.is-lit::after { opacity: 1; }
.gate-post { position: relative; z-index: 3; width: 12px; height: 86%; background: #343842; border-radius: 4px 4px 0 0; }
.lamp { position: absolute; left: 50%; top: -9px; width: 16px; height: 9px; margin-left: -8px; border-radius: 8px 8px 3px 3px; background: #4A4E58; transition: background-color .6s, box-shadow .6s; }
.is-lit .lamp { background: #FFD28A; box-shadow: 0 0 18px 6px rgba(255, 200, 120, .55); }
.gate-leaf { position: relative; z-index: 2; width: 40%; max-width: 200px; height: 64%; transition: transform 1.5s cubic-bezier(.65, 0, .35, 1);
  background: repeating-linear-gradient(90deg, #8FE9F7 0 3px, transparent 3px 16px), linear-gradient(#8FE9F7, #8FE9F7) top / 100% 3px no-repeat, linear-gradient(#8FE9F7, #8FE9F7) bottom / 100% 3px no-repeat; }
.leaf-l { transform-origin: left center; } .leaf-r { transform-origin: right center; }
.is-open .leaf-l { transform: rotateY(-72deg); } .is-open .leaf-r { transform: rotateY(72deg); }
.gate-beam { position: absolute; z-index: 4; bottom: 22%; left: 50%; width: min(80%, 420px); transform: translateX(-50%); height: 2px; background: repeating-linear-gradient(90deg, #FF5A5A 0 6px, transparent 6px 12px); opacity: .8; transition: opacity .4s; }
.is-open .gate-beam { opacity: 0; }
.gate-car { position: absolute; z-index: 1; left: 50%; bottom: 6px; width: 110px; display: flex; flex-direction: column; align-items: center; transform: translateX(-50%) translateY(-20%) scale(.3); opacity: 0; transition: transform 1.4s cubic-bezier(.25, .8, .3, 1), opacity .9s ease; }
.is-approach .gate-car { transform: translateX(-50%) scale(.8); opacity: 1; }
.is-enter .gate-car { transform: translateX(-50%) translateY(35%) scale(1.8); opacity: 0; transition: transform 1.8s cubic-bezier(.5, 0, .7, .4), opacity 1.4s ease .3s; }
.car-roof { width: 62%; height: 18px; border-radius: 12px 12px 0 0; background: linear-gradient(#3B4F63, #1E2A36); }
.car-body { position: relative; width: 100%; height: 26px; border-radius: 10px; background: linear-gradient(#2F3C49, #1A222B); }
.hl { position: absolute; top: 34%; width: 18%; height: 30%; border-radius: 6px; background: #FFF7DD; box-shadow: 0 0 14px 4px rgba(255, 240, 190, .7); }
.hl-l { left: 7%; } .hl-r { right: 7%; }
.flow { list-style: none; padding: 0; margin: 18px 0 0; }
.flow li { position: relative; display: flex; gap: 14px; padding-bottom: 22px; }
.flow li:last-child { padding-bottom: 0; }
.flow li:not(:last-child)::before { content: ''; position: absolute; left: 19px; top: 42px; bottom: 2px; width: 2px; background: var(--line-2); }
.flow .node { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--dim); transition: all .4s var(--ease); }
.flow .node svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flow li.lit .node { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.flow li.current .node { transform: scale(1.1); box-shadow: 0 0 0 6px var(--accent-soft); }
.flow b { display: block; font-weight: 600; font-size: .95rem; transition: opacity .4s; }
.flow small { color: var(--muted); font-size: .85rem; transition: opacity .4s; }
.flow li:not(.lit) b, .flow li:not(.lit) small { opacity: .5; }

/* ---------- Solutions ---------- */
.sol-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sol { padding: 26px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.sol h3 { margin-bottom: 8px; }
.sol p { color: var(--muted); font-size: .93rem; margin: 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; padding: 0; margin: clamp(48px, 6vw, 72px) 0 0; counter-reset: s; }
.steps li { padding-top: 20px; border-top: 1px solid var(--line-2); counter-increment: s; }
.steps li::before { content: '0' counter(s); display: block; margin-bottom: 12px; color: var(--accent); font-weight: 600; font-size: .85rem; letter-spacing: .08em; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Pricing ---------- */
.cur-toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-top: 8px; }
.cur-toggle button { height: 34px; padding: 0 16px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--muted); transition: background-color .25s, color .25s; }
.cur-toggle button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-text); }
.sub-title { margin: 0 0 16px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.alacarte { list-style: none; padding: 0; margin: 0 0 clamp(48px, 6vw, 72px); display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.alacarte li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.alacarte li:not(:nth-child(3n)) { padding-right: 28px; }
.alacarte li:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.alacarte span { font-weight: 500; }
.alacarte em { font-style: normal; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.alacarte em b { color: var(--text); font-weight: 650; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.plan.featured { border-color: var(--text); box-shadow: var(--shadow); }
.badge { position: absolute; top: -12px; left: 28px; padding: 5px 11px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-text); font-size: .72rem; font-weight: 600; letter-spacing: .04em; }
.plan-tier { margin: 0 0 4px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.plan h3 { font-size: 1.35rem; margin-bottom: 2px; }
.plan-fit { color: var(--muted); font-size: .9rem; }
.plan-price { margin: 14px 0 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.plan-price small { display: block; color: var(--dim); font-size: .8rem; }
.plan-price b { font-size: 2.1rem; font-weight: 650; letter-spacing: -.035em; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; flex: 1; }
.plan li { position: relative; padding-left: 24px; color: var(--muted); font-size: .93rem; }
.plan li::before { content: ''; position: absolute; left: 1px; top: .5em; width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.fine { margin: 24px 0 0; color: var(--dim); font-size: .82rem; text-align: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list span { color: var(--dim); font-size: .88rem; }
.contact-list a:hover { color: var(--accent-ink); }
.form { padding: clamp(24px, 3.4vw, 40px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.field { display: grid; gap: 7px; margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label, .field legend { font-size: .84rem; font-weight: 500; color: var(--muted); padding: 0; }
.field legend { margin-bottom: 10px; }
.field input, .field select, .field textarea { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); transition: border-color .2s, box-shadow .2s; }
.field textarea { height: auto; padding: 12px 14px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.err { color: var(--danger); font-size: .8rem; }
.err:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .85rem; cursor: pointer; transition: all .2s; }
.chip input:checked + span { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); margin: 6px 0 4px; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--text); flex: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { margin-top: 14px; }
.spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { margin: 14px 0 0; font-size: .9rem; text-align: center; min-height: 1.4em; }
.form-status.ok { color: var(--ok); } .form-status.fail { color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: clamp(40px, 6vw, 80px); background: #000; color: #fff; border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0; }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: clamp(48px, 6vw, 64px) 0 clamp(40px, 5vw, 56px); }
.foot-id { display: flex; align-items: center; gap: clamp(20px, 3vw, 36px); flex-wrap: wrap; }
.foot-logo svg { height: 46px; width: auto; aspect-ratio: 2327 / 460; }
.foot-divider { width: 1px; height: 46px; background: rgba(255, 255, 255, .85); }
.foot-social { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.foot-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #fff; color: #fff; transition: background-color .2s, color .2s; }
.foot-social a:hover { background: #fff; color: #000; }
.foot-social svg { width: 17px; height: 17px; fill: currentColor; }
.foot-social svg.st { fill: none; stroke: currentColor; stroke-width: 1.9; }
.foot-social svg.st .dot { fill: currentColor; stroke: none; }
.foot-apps { display: flex; gap: 12px; flex-wrap: wrap; }
.app-badge { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px 0 12px; border-radius: 9px; border: 1.5px solid rgba(255, 255, 255, .9); color: #fff; transition: background-color .2s; }
.app-badge:hover { background: rgba(255, 255, 255, .08); }
.app-badge svg { width: 24px; height: 24px; flex: none; }
.app-badge span { display: flex; flex-direction: column; font-size: 1.05rem; font-weight: 600; line-height: 1.05; letter-spacing: -.01em; }
.app-badge small { font-size: .58rem; font-weight: 500; letter-spacing: .02em; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding-bottom: clamp(48px, 6vw, 72px); }
.foot-cols h3 { margin: 0 0 22px; font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; color: #fff; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.foot-cols a { color: rgba(255, 255, 255, .92); font-size: .98rem; transition: color .2s; }
.foot-cols a:hover { color: #67E8F9; }
.foot-contact { gap: 22px !important; }
.foot-contact li { display: flex; align-items: center; gap: 14px; }
.foot-contact li:first-child { align-items: center; }
.ci { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #000; }
.ci svg { width: 16px; height: 16px; fill: currentColor; }
.foot-contact address { font-style: normal; color: rgba(255, 255, 255, .92); font-size: .98rem; line-height: 1.6; }
.foot-bar { border-top: 1px solid rgba(255, 255, 255, .9); padding: 18px 24px 22px; text-align: center; }
.foot-bar p { margin: 0; font-size: .9rem; color: #fff; }
.foot-bar a { margin-left: 6px; text-decoration: underline; text-underline-offset: 3px; }
.foot-bar a:hover { color: #67E8F9; }
.to-top { position: fixed; right: max(24px, env(safe-area-inset-right)); bottom: calc(max(20px, env(safe-area-inset-bottom)) + 72px); z-index: 149; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #22C55E, #0EA5E9); box-shadow: 0 8px 22px -8px rgba(14, 165, 233, .7); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s var(--ease), visibility .3s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1080px) {
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 44px 32px; }
}
@media (max-width: 600px) {
  .foot-top { flex-direction: column; align-items: flex-start; }
  .foot-logo svg { height: 38px; }
  .foot-divider { display: none; }
  .foot-cols { grid-template-columns: 1fr; gap: 36px; }
  .foot-cols h3 { font-size: 1.15rem; margin-bottom: 16px; }
  .to-top { right: 18px; bottom: 76px; width: 40px; height: 40px; }
}

/* ---------- WhatsApp ---------- */
.wa { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 150; }
.wa-fab { position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 10px 28px -6px rgba(37, 211, 102, .6); transition: transform .3s var(--ease); }
.wa-fab svg { width: 28px; height: 28px; }
.wa-fab::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: ring 2.6s ease-out infinite; }
.wa-fab:hover { transform: scale(1.06); }
@keyframes ring { from { transform: scale(1); opacity: .7 } to { transform: scale(1.7); opacity: 0 } }
.wa-bubble { position: absolute; right: 0; bottom: 70px; width: 280px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transform-origin: bottom right; animation: pop .3s var(--ease); }
.wa-bubble[hidden] { display: none; }
@keyframes pop { from { transform: scale(.9) translateY(8px); opacity: 0 } }
.wa-close { position: absolute; top: 8px; right: 10px; font-size: 1.3rem; line-height: 1; color: var(--dim); padding: 4px; }
.wa-title { margin: 0; font-weight: 600; }
.wa-sub { margin: 0 0 12px; font-size: .78rem; color: #1DA851; }
.wa-msg { padding: 11px 13px; border-radius: 4px 14px 14px 14px; background: var(--surface-2); font-size: .9rem; margin-bottom: 12px; }
.btn-wa { width: 100%; height: 44px; background: #25D366; color: #06210F; }
.btn-wa:hover { background: #2EE374; }

/* ---------- Reveal on scroll ---------- */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- Performance: skip rendering far-below-the-fold sections until needed ---------- */


/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .feature-row { grid-template-columns: 1fr 1fr; }
  .auto-grid { grid-template-columns: 1fr 1fr; }
  .gate-card { grid-column: span 2; }
  .flow-card { grid-row: auto; grid-column: span 2; }
  .flow-card .flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .flow-card .flow li { flex-direction: column; gap: 12px; padding-bottom: 0; }
  .flow-card .flow li:not(:last-child)::before { left: 46px; right: -12px; top: 19px; bottom: auto; width: auto; height: 2px; }
  .plans { gap: 12px; }
  .plan { padding: 28px 22px; }
  .sol-grid, .steps { grid-template-columns: 1fr 1fr; }
  .alacarte { grid-template-columns: 1fr 1fr; }
  .alacarte li:not(:nth-child(3n)), .alacarte li:not(:nth-child(3n+1)) { padding: 18px 4px; border-left: 0; }
  .alacarte li:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line); }
  .alacarte li:nth-child(2n+1) { padding-right: 24px; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .main-nav { position: fixed; inset: var(--header-h) 0 auto; height: calc(100svh - var(--header-h)); margin: 0; padding: 12px 24px calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; background: #0B0B0C; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; overflow-y: auto; }
  .main-nav.open { opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { opacity: 0; transform: translateY(12px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
  .main-nav.open li { opacity: 1; transform: none; }
  .main-nav.open li:nth-child(2) { transition-delay: .04s; } .main-nav.open li:nth-child(3) { transition-delay: .08s; }
  .main-nav.open li:nth-child(4) { transition-delay: .12s; } .main-nav.open li:nth-child(5) { transition-delay: .16s; }
  .main-nav li a { display: flex; align-items: center; justify-content: space-between; padding: 20px 2px; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; color: #fff; }
  .main-nav li a::after { content: '→' !important; position: static !important; height: auto !important; background: none !important; font-size: 1.1rem; font-weight: 400; color: rgba(255, 255, 255, .45); }
  .main-nav li a.active { color: #67E8F9; }
  .nav-foot { display: grid; gap: 14px; margin-top: auto; padding-top: 28px; }
  .nav-foot .btn { height: 52px; background: #fff; color: #0B0B0C; }
  .nav-foot p { margin: 0; text-align: center; font-size: .9rem; color: rgba(255, 255, 255, .6); }
  .nav-foot p a { color: #fff; font-weight: 600; }
  .nav-toggle { display: grid; }
  .nav-cta { display: none; }
  .nav-actions { margin-left: auto; }
  .brand svg { height: 28px; }
  .hero { display: block; min-height: 0; padding: var(--header-h) 0 44px; }
  .hero::before { display: none; }
  .hero-bg { position: relative; inset: auto; z-index: 0; width: 100%; aspect-ratio: 4 / 5; max-height: 62svh; background-position: 50% 55%; }
  .hero-bg.dusk { display: none; }
  [data-theme="dark"] .hero-bg.dusk { display: block; }
  .hero .container { padding-top: 30px; }
  .hero h1 { font-size: clamp(2.6rem, 12vw, 3.6rem); margin-bottom: 18px; }
  .hero-eyebrow { margin-bottom: 16px; }
  .hero-sub { margin-bottom: 28px; }
  .hero-trust { margin-top: 32px; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .tp-stage { aspect-ratio: auto; overflow: visible; box-shadow: none; background: none; }
  .tp-frame { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #1a1a1a; }
  .tp-panel { position: relative; right: auto; bottom: auto; width: auto; margin: -40px 12px 0; }
  .cur-head h2 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .cur-status { left: 16px; top: calc(var(--header-h) + 14px); bottom: auto; }
  .cur-head { top: calc(var(--header-h) + 60px); }
}
@media (min-width: 901px) {
  .tp-frame { position: absolute; inset: 0; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .hero-bg { aspect-ratio: 16 / 10; max-height: none; background-position: 60% 50%; }
  .hero-bg.day { background-image: url('../img/render/hero_day-1920.webp'); }
  .hero-bg.dusk { background-image: url('../img/render/hero_dusk-1920.webp'); }
  .hero .container { padding-top: 40px; }
  .hero-content { max-width: 620px; }
}
@media (max-width: 860px) {
  .plans { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .feature-row, .auto-grid, .sol-grid, .steps, .alacarte, .field-row { grid-template-columns: 1fr; }
  .gate-card { grid-column: auto; grid-template-columns: 1fr; }
  .flow-card { grid-column: auto; }
  .flow-card .flow { display: block; }
  .flow-card .flow li { flex-direction: row; gap: 14px; padding-bottom: 22px; }
  .flow-card .flow li:not(:last-child)::before { left: 19px; right: auto; top: 42px; bottom: 2px; width: 2px; height: auto; }
  .alacarte li:nth-child(n) { padding: 16px 2px; border-left: 0; }
  .hero-ctas .btn { flex: 1; }
  .cams { gap: 10px; }
  .tp-keys { grid-template-columns: repeat(3, 1fr); }
  .contact-list li { grid-template-columns: 90px 1fr; }
  .cur-scene { height: 230vh; }
  .wa-fab { width: 50px; height: 50px; }
  .wa-fab svg { width: 25px; height: 25px; }
  .wa { right: 14px; bottom: 14px; }
}
@media (max-height: 640px) and (min-width: 901px) {
  .cur-copy { padding: 20px 24px; }
  .cur-copy .check-list { display: none; }
}
@media (min-width: 1600px) {
  :root { --container: 1360px; }
  html { font-size: 17px; }
}
@media (min-width: 2200px) {
  :root { --container: 1640px; }
  html { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* two phone numbers stacked */
.phones { display: grid; gap: 4px; }
.foot-contact .phones a { color: rgba(255, 255, 255, .92); }
.contact-list .phones { color: var(--text); font-size: 1rem; }
.contact-list .phones a { color: var(--text); }

/* ================= SEO pass: areas, FAQ, city pages, prose ================= */
.hero h1 .hero-eyebrow { display: flex; width: fit-content; line-height: 1.4; margin-bottom: 26px; }
.area-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.area-card { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.area-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.area-card h3 { margin: 0; font-size: 1.05rem; }
.area-card p { flex: 1; }
.area-card .link-arrow { margin-top: 6px; font-size: .9rem; }

.narrow-faq { max-width: 860px; }
.faq { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.02rem; line-height: 1.4; letter-spacing: -.01em; }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }
.faq-ic { flex: none; position: relative; width: 14px; height: 14px; }
.faq-ic::before, .faq-ic::after { content: ''; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; border-radius: 2px; background: var(--accent); transition: transform .3s var(--ease); }
.faq-ic::after { transform: rotate(90deg); }
.faq-item[open] .faq-ic::after { transform: rotate(0); }
.faq-item p { margin: 0; padding: 0 22px 22px; color: var(--muted); line-height: 1.7; }

/* city landing pages */
.subpage main { padding-top: var(--header-h); }
.city-hero { padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 100px); }
.city-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.city-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 500; line-height: 1.06; margin-bottom: 22px; }
.city-hero .lead { margin-bottom: 32px; }
.city-hero .hero-trust { margin-top: 36px; }
.city-photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 10; background: var(--bg-2); }
.city-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; font-size: .85rem; color: var(--dim); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.city-split { align-items: start; }
.city-intro p { color: var(--muted); line-height: 1.75; }
.city-points { display: grid; gap: 14px; }
.locality-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.locality-list li { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: .92rem; }
.nearby { padding: 56px 0; }
.nearby-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 14px; }
.nearby-list a { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); text-decoration: none; font-size: .92rem; transition: border-color .2s, color .2s; }
.nearby-list a:hover { border-color: var(--accent); color: var(--accent); }

/* privacy / 404 */
.prose-section { padding-top: clamp(48px, 7vw, 96px); }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 500; }
.prose h2 { font-size: 1.3rem; margin-top: 36px; }
.prose p { color: var(--muted); line-height: 1.75; }
.prose .nearby-list { margin-top: 24px; }

@media (max-width: 900px) {
  .city-hero-grid { grid-template-columns: 1fr; }
  .city-photo { order: -1; }
}
@media (max-width: 600px) {
  .faq-item summary { padding: 18px; }
  .faq-item p { padding: 0 18px 18px; }
  .city-hero .hero-ctas .btn { flex: 1 1 100%; justify-content: center; }
}
