/* =========================================================================
   CAMBEXA — shared stylesheet
   Theme: "Bold dark control-room" — deep slate canvas, teal signal accent,
   glowing seams, mono telemetry detailing.
   All design decisions live in the :root tokens below. Retune here.
   ========================================================================= */

/* ----------------------------------------------------------------------- */
/* 1. DESIGN TOKENS                                                         */
/* ----------------------------------------------------------------------- */
:root {
  /* Brand / accent (pulled from logo: #0D9488 teal, #5EEAD4 light teal) */
  --accent:        #14b8a6;
  --accent-strong: #0d9488;
  --accent-soft:   #5eead4;
  --accent-ink:    #032726;            /* text on accent fills */

  /* Surfaces — control-room slate */
  --bg:        #070b14;                /* page base */
  --bg-2:      #0b1220;                /* sections */
  --surface:   #0f172a;                /* cards */
  --surface-2: #131c30;                /* raised cards / hovers */
  --surface-3: #1b2840;                /* inputs, chips */
  --line:      rgba(148, 163, 184, .14);
  --line-2:    rgba(148, 163, 184, .26);

  /* Text */
  --text:      #e8eef7;
  --text-soft: #aab6c8;
  --text-dim:  #7c8aa0;

  /* Status */
  --good: #34d399;
  --warn: #fbbf24;
  --bad:  #fb7185;

  /* Effects */
  --glow:    0 0 0 1px rgba(20,184,166,.35), 0 0 32px -6px rgba(20,184,166,.55);
  --shadow:  0 24px 60px -28px rgba(0,0,0,.85);
  --shadow-sm: 0 8px 24px -14px rgba(0,0,0,.7);
  --grid-line: rgba(148,163,184,.05);

  /* Type */
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Radius */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Spacing scale */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

  /* Layout */
  --maxw: 1180px;
  --nav-h: 96px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: .45s;
}

/* ----------------------------------------------------------------------- */
/* 2. RESET / BASE                                                          */
/* ----------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* Faint control-room grid wash */
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 46px 46px, 46px 46px;
  background-position: center top;
}

body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p  { color: var(--text-soft); }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: var(--r-sm); z-index: 1200;
  font-weight: 600; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ----------------------------------------------------------------------- */
/* 3. LAYOUT HELPERS                                                        */
/* ----------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--sp-5); }
.section { padding-block: var(--sp-9); position: relative; }
.section--tight { padding-block: var(--sp-8); }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-soft);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--accent); display: inline-block;
}

.section-head { max-width: 680px; margin-bottom: var(--sp-7); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { margin-top: var(--sp-3); }
.section-head p { margin-top: var(--sp-4); font-size: 1.06rem; }

.grid { display: grid; gap: var(--sp-5); }
.lede { font-size: 1.15rem; color: var(--text-soft); }

/* ----------------------------------------------------------------------- */
/* 4. BUTTONS                                                               */
/* ----------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: var(--r-pill);
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  border: 1px solid var(--line-2); background: var(--btn-bg); color: var(--text);
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); border-color: var(--line-2); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--accent-ink); border-color: transparent;
  box-shadow: 0 10px 30px -10px rgba(20,184,166,.6);
}
.btn--primary:hover { box-shadow: 0 16px 40px -10px rgba(20,184,166,.75); }

.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--surface-2); }

.btn--block { width: 100%; }
.btn--lg { padding: 15px 28px; font-size: 1rem; }
.btn .ic { width: 18px; height: 18px; }

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .5; cursor: not-allowed; pointer-events: none;
}

/* ----------------------------------------------------------------------- */
/* 5. HEADER / NAV                                                          */
/* ----------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  height: var(--nav-h);
  background: rgba(7,11,20,.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header.scrolled { background: rgba(7,11,20,.92); border-bottom-color: var(--line-2); }

.nav { height: 100%; display: flex; align-items: center; gap: var(--sp-5); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 75px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: var(--sp-4); }
.nav-links a, .nav-links .menu-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: var(--r-pill);
  color: var(--text-soft); font-size: .93rem; font-weight: 500;
  background: transparent; border: 0;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover, .nav-links .menu-btn:hover { color: var(--text); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--accent-soft); }

/* Dropdown */
.has-menu { position: relative; }
.menu-btn .chev { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.has-menu[data-open="true"] .menu-btn .chev { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 248px; padding: 8px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.has-menu[data-open="true"] .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
}
.dropdown a {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px; border-radius: var(--r-sm); background: transparent;
}
.dropdown a:hover { background: var(--surface-2); }
.dropdown a strong { color: var(--text); font-weight: 600; font-size: .92rem; }
.dropdown a span { color: var(--text-dim); font-size: .8rem; }

.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* Hamburger */
.hamburger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-2);
  border-radius: var(--r-sm); background: var(--surface-2);
  position: relative; flex-shrink: 0;
}
.hamburger span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.hamburger span:nth-child(1) { top: 15px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 27px; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile slide-in panel */
.mobile-nav {
  position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px);
  background: var(--bg-2); border-left: 1px solid var(--line-2);
  z-index: 1000; padding: calc(var(--nav-h) + 12px) var(--sp-5) var(--sp-6);
  transform: translateX(100%); transition: transform .35s var(--ease);
  display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
  visibility: hidden;
}
.mobile-nav.open { transform: translateX(0); visibility: visible; }
.mobile-nav a {
  padding: 13px 14px; border-radius: var(--r-sm); color: var(--text-soft);
  font-size: 1.05rem; font-weight: 500; border: 1px solid transparent;
}
.mobile-nav a:hover, .mobile-nav a[aria-current="page"] {
  background: var(--surface); color: var(--text); border-color: var(--line);
}
.mobile-nav .m-label {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--text-dim); padding: 16px 14px 6px;
}
.mobile-nav .btn { margin-top: var(--sp-4); }
.scrim {
  position: fixed; inset: 0; background: rgba(2,6,14,.6); z-index: 990;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s var(--ease), visibility .3s;
  backdrop-filter: blur(2px);
}
.scrim.show { opacity: 1; visibility: visible; pointer-events: auto; }

/* ----------------------------------------------------------------------- */
/* 6. HERO                                                                  */
/* ----------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: var(--sp-9) var(--sp-8); }
.hero::before {
  content: ""; position: absolute; inset: -20% 0 auto 0; height: 620px; z-index: -1;
  background:
    radial-gradient(60% 60% at 75% 8%, rgba(20,184,166,.20), transparent 60%),
    radial-gradient(50% 50% at 12% 0%, rgba(94,234,212,.10), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--sp-7); align-items: center;
}
.hero h1 { margin-top: var(--sp-4); }
.hero h1 .hl { color: var(--accent-soft); }
.hero .lede { margin-top: var(--sp-5); max-width: 36ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-5); margin-top: var(--sp-6);
  color: var(--text-dim); font-size: .85rem;
}
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px var(--good); }

/* Hero visual: a faux camera viewer panel */
.viewer {
  border-radius: var(--r-lg); border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  box-shadow: var(--shadow); overflow: hidden; position: relative;
}
.viewer-bar {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02);
  font-family: var(--font-mono); font-size: .72rem; color: var(--text-dim);
}
.viewer-bar .live {
  display: inline-flex; align-items: center; gap: 6px; color: var(--bad);
  font-weight: 700; letter-spacing: .1em;
}
.viewer-bar .live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--bad);
  box-shadow: 0 0 8px var(--bad); animation: pulse 1.6s var(--ease) infinite;
}
.viewer-bar .lock { margin-left: auto; color: var(--accent-soft); }
.viewer-feeds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--line); }
.feed {
  aspect-ratio: 16/10; position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 2px, transparent 2px 4px),
    linear-gradient(135deg, #0c1a26, #0a1018);
}
.feed::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 30% 20%, rgba(20,184,166,.16), transparent 60%);
}
.feed .tag {
  position: absolute; left: 8px; bottom: 8px; z-index: 2;
  font-family: var(--font-mono); font-size: .62rem; color: var(--text-soft);
  background: rgba(7,11,20,.7); padding: 3px 7px; border-radius: 4px;
  border: 1px solid var(--line);
}
.feed .scan {
  position: absolute; left: 0; right: 0; top: 0; height: 32%; z-index: 1;
  background: linear-gradient(180deg, rgba(20,184,166,.22), transparent);
  animation: scan 3.4s var(--ease) infinite;
}
.feed:nth-child(2) .scan { animation-delay: .9s; }
.feed:nth-child(3) .scan { animation-delay: 1.7s; }
.feed:nth-child(4) .scan { animation-delay: 2.4s; }
@keyframes scan { 0% { transform: translateY(-100%); } 100% { transform: translateY(420%); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.viewer-foot {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  border-top: 1px solid var(--line); font-family: var(--font-mono);
  font-size: .68rem; color: var(--text-dim);
}
.viewer-foot .ok { color: var(--good); }

/* ----------------------------------------------------------------------- */
/* 7. LOGO / PROTOCOL STRIP                                                 */
/* ----------------------------------------------------------------------- */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); }
.strip-inner { display: flex; align-items: center; gap: var(--sp-6); flex-wrap: wrap; justify-content: center; padding-block: var(--sp-6); }
.strip-label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim); }
.proto {
  font-family: var(--font-mono); font-weight: 600; font-size: 1rem;
  color: var(--text-soft); padding: 8px 16px; border: 1px solid var(--line-2);
  border-radius: var(--r-pill); background: var(--surface);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.proto:hover { color: var(--accent-soft); border-color: var(--accent); }

/* ----------------------------------------------------------------------- */
/* 8. CARDS                                                                 */
/* ----------------------------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-6);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--surface-2); }
.card h3 { margin-bottom: var(--sp-3); }
.card p { font-size: .96rem; }

.card-ic {
  width: 50px; height: 50px; border-radius: var(--r); display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(20,184,166,.18), rgba(20,184,166,.04));
  border: 1px solid var(--line-2); margin-bottom: var(--sp-4); color: var(--accent-soft);
}
.card-ic svg { width: 24px; height: 24px; }

.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }

/* Value props (split) */
.value-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-7); align-items: center; }
.value-list { display: grid; gap: var(--sp-4); }
.value-item { display: flex; gap: var(--sp-4); padding: var(--sp-4) 0; border-top: 1px solid var(--line); }
.value-item:first-child { border-top: 0; }
.value-item .vk { flex-shrink: 0; width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--accent-soft); background: var(--surface-2); border: 1px solid var(--line); }
.value-item h3 { font-size: 1.08rem; margin-bottom: 4px; }
.value-item p { font-size: .93rem; }

/* Decorative bracket panel */
.panel {
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(20,184,166,.10), transparent 55%),
    var(--surface);
  padding: var(--sp-7); position: relative;
}

/* ----------------------------------------------------------------------- */
/* 9. STEPS                                                                 */
/* ----------------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.step { position: relative; padding-top: var(--sp-6); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-mono); font-size: .8rem; color: var(--accent-soft);
  position: absolute; top: 0; left: 0; letter-spacing: .1em;
}
.step::after {
  content: ""; position: absolute; top: 8px; left: 44px; right: -12px; height: 1px;
  background: linear-gradient(90deg, var(--line-2), transparent);
}
.step:last-child::after { display: none; }
.step h3 { font-size: 1.1rem; margin: var(--sp-3) 0 var(--sp-2); }
.step p { font-size: .92rem; }

/* ----------------------------------------------------------------------- */
/* 10. STAT COUNTERS                                                        */
/* ----------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.stat { text-align: center; padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.stat .num {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--text); display: flex; align-items: baseline; justify-content: center; gap: 2px;
}
.stat .num .suffix { color: var(--accent-soft); font-size: .65em; }
.stat .lbl { color: var(--text-dim); font-size: .82rem; margin-top: 6px; font-family: var(--font-mono); letter-spacing: .04em; }

/* ----------------------------------------------------------------------- */
/* 11. PRICING                                                             */
/* ----------------------------------------------------------------------- */
.bill-toggle {
  display: inline-flex; align-items: center; gap: 14px; margin: 0 auto var(--sp-7);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-pill);
  padding: 6px; font-size: .9rem; width: max-content;
}
.bill-toggle .seg {
  border: 0; background: transparent; color: var(--text-soft); padding: 8px 18px;
  border-radius: var(--r-pill); font-weight: 600; transition: all .25s var(--ease);
}
.bill-toggle .seg[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.bill-toggle .save { font-family: var(--font-mono); font-size: .72rem; color: var(--good); letter-spacing: .05em; }

.plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-6); display: flex; flex-direction: column;
}
.plan--featured {
  border-color: var(--accent); background:
    radial-gradient(90% 60% at 50% 0%, rgba(20,184,166,.12), transparent 60%), var(--surface-2);
  box-shadow: var(--glow);
}
.plan .tier { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-soft); }
.plan .badge {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  background: var(--accent); color: var(--accent-ink); padding: 3px 10px; border-radius: var(--r-pill); font-weight: 700;
}
.plan-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-4); }
.price { display: flex; align-items: baseline; gap: 4px; margin: var(--sp-2) 0 var(--sp-2); }
.price .amt { font-family: var(--font-display); font-size: 2.8rem; font-weight: 600; color: var(--text); }
.price .per { color: var(--text-dim); font-size: .9rem; }
.plan .desc { font-size: .92rem; min-height: 44px; }
.plan ul.feat { display: grid; gap: 10px; margin: var(--sp-5) 0; }
.plan ul.feat li { display: flex; gap: 10px; font-size: .92rem; color: var(--text-soft); }
.plan ul.feat li svg { width: 18px; height: 18px; color: var(--accent-soft); flex-shrink: 0; margin-top: 3px; }
.plan ul.feat li.off { color: var(--text-dim); }
.plan ul.feat li.off svg { color: var(--text-dim); }
.plan .btn { margin-top: auto; }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
table.compare th, table.compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .92rem; }
table.compare thead th { font-family: var(--font-display); font-size: 1rem; background: var(--surface); position: sticky; top: 0; }
table.compare tbody th { color: var(--text-soft); font-weight: 500; }
table.compare td { text-align: center; color: var(--text-soft); }
table.compare td:first-child, table.compare th:first-child { text-align: left; }
table.compare tr:last-child td, table.compare tr:last-child th { border-bottom: 0; }
table.compare .yes { color: var(--good); }
table.compare .no { color: var(--text-dim); }
table.compare .feat-col { background: var(--surface); }

/* ----------------------------------------------------------------------- */
/* 12. FAQ ACCORDION                                                       */
/* ----------------------------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: var(--sp-3); }
.faq-cat-title { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-soft); margin: var(--sp-6) 0 var(--sp-2); }
.acc { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.acc[data-open="true"] { border-color: var(--line-2); }
.acc-q {
  width: 100%; text-align: left; background: transparent; border: 0; color: var(--text);
  padding: 18px 20px; font-size: 1.02rem; font-weight: 600; font-family: var(--font-display);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.acc-q .pm { width: 22px; height: 22px; flex-shrink: 0; position: relative; }
.acc-q .pm::before, .acc-q .pm::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--accent-soft);
  transform: translate(-50%,-50%); transition: transform .3s var(--ease);
}
.acc-q .pm::before { width: 13px; height: 2px; }
.acc-q .pm::after { width: 2px; height: 13px; }
.acc[data-open="true"] .acc-q .pm::after { transform: translate(-50%,-50%) scaleY(0); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease); }
.acc-a-inner { padding: 0 20px 20px; color: var(--text-soft); font-size: .96rem; }

/* ----------------------------------------------------------------------- */
/* 13. CTA BAND                                                            */
/* ----------------------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  border: 1px solid var(--line-2); padding: var(--sp-8) var(--sp-7); text-align: center;
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(20,184,166,.22), transparent 60%),
    var(--surface);
}
.cta-band h2 { margin-bottom: var(--sp-3); }
.cta-band p { max-width: 52ch; margin: 0 auto var(--sp-6); }
.cta-band .hero-cta { justify-content: center; }

/* ----------------------------------------------------------------------- */
/* 14. FORMS                                                               */
/* ----------------------------------------------------------------------- */
.field { display: grid; gap: 6px; margin-bottom: var(--sp-4); }
.field label { font-size: .85rem; color: var(--text-soft); font-weight: 500; }
.field label .req { color: var(--accent-soft); }
.input, .textarea, select.input {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--surface-3); border: 1px solid var(--line-2); color: var(--text);
  font-family: inherit; font-size: .95rem; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input:focus, .textarea:focus, select.input:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(20,184,166,.18);
}
.textarea { resize: vertical; min-height: 130px; }
.input::placeholder, .textarea::placeholder { color: var(--text-dim); }
.form-note { font-size: .8rem; color: var(--text-dim); margin-top: var(--sp-3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }

.newsletter { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter .input { flex: 1; min-width: 0; }

/* ----------------------------------------------------------------------- */
/* 15. FOOTER                                                              */
/* ----------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-block: var(--sp-8) var(--sp-6); margin-top: var(--sp-9); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--sp-6); }
.footer-brand img { height: 30px; margin-bottom: var(--sp-4); }
.footer-brand p { font-size: .92rem; max-width: 34ch; }
.platform-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: var(--sp-4); }
.pbadge {
  font-family: var(--font-mono); font-size: .72rem; color: var(--text-soft);
  border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 6px 10px;
  display: inline-flex; align-items: center; gap: 6px; background: var(--surface);
}
.pbadge.soon { color: var(--text-dim); }
.pbadge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--good); }
.pbadge.soon .dot { background: var(--warn); }
.fcol h4 { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); margin-bottom: var(--sp-4); font-weight: 600; }
.fcol a { display: block; color: var(--text-soft); font-size: .92rem; padding: 5px 0; transition: color .2s var(--ease); }
.fcol a:hover { color: var(--accent-soft); }
.footer-news { margin-top: var(--sp-4); }
.footer-news h4 { margin-bottom: var(--sp-3); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-4);
  margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--line);
  font-size: .85rem; color: var(--text-dim);
}
.footer-bottom .legal-links { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--accent-soft); }
.linkbtn { background: none; border: 0; color: var(--text-dim); font-size: .85rem; padding: 0; }
.linkbtn:hover { color: var(--accent-soft); }

/* ----------------------------------------------------------------------- */
/* 16. PAGE HEADER (interior pages)                                        */
/* ----------------------------------------------------------------------- */
.page-hero { padding-block: var(--sp-8) var(--sp-7); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::before {
  content: ""; position: absolute; inset: -40% 0 auto 0; height: 460px; z-index: -1;
  background: radial-gradient(50% 60% at 70% 0%, rgba(20,184,166,.16), transparent 60%);
}
.page-hero h1 { margin-top: var(--sp-4); max-width: 18ch; }
.page-hero p { margin-top: var(--sp-4); max-width: 60ch; font-size: 1.08rem; }
.breadcrumb { font-family: var(--font-mono); font-size: .76rem; color: var(--text-dim); }
.breadcrumb a:hover { color: var(--accent-soft); }

/* Prose (legal / manual) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin: var(--sp-7) 0 var(--sp-3); }
.prose h3 { font-size: 1.15rem; margin: var(--sp-5) 0 var(--sp-2); }
.prose p, .prose li { color: var(--text-soft); font-size: .98rem; }
.prose p { margin-bottom: var(--sp-3); }
.prose ul { display: grid; gap: 8px; margin: 0 0 var(--sp-4) var(--sp-2); }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.prose a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 3px; }
.template-flag {
  border: 1px dashed var(--warn); border-radius: var(--r); padding: var(--sp-4) var(--sp-5);
  background: rgba(251,191,36,.06); color: var(--warn); font-size: .9rem; margin-bottom: var(--sp-6);
  display: flex; gap: 12px; align-items: flex-start;
}
.template-flag svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }

/* TOC */
.legal-layout { display: grid; grid-template-columns: 220px 1fr; gap: var(--sp-7); align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 24px); font-size: .88rem; }
.toc h4 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: var(--sp-3); }
.toc a { display: block; color: var(--text-soft); padding: 5px 0; }
.toc a:hover { color: var(--accent-soft); }

/* ----------------------------------------------------------------------- */
/* 17. PLATFORM / DOWNLOAD CARDS                                            */
/* ----------------------------------------------------------------------- */
.dl-cards { grid-template-columns: repeat(2, 1fr); }
.dl-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3); position: relative; overflow: hidden;
}
.dl-card.live { border-color: var(--line-2); }
.dl-card .os-ic { width: 48px; height: 48px; color: var(--accent-soft); }
.dl-card .os-ic svg { width: 100%; height: 100%; }
.dl-head { display: flex; align-items: center; justify-content: space-between; }
.dl-status { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--r-pill); border: 1px solid var(--line-2); }
.dl-status.on { color: var(--good); border-color: rgba(52,211,153,.4); }
.dl-status.soon { color: var(--warn); border-color: rgba(251,191,36,.4); }
.dl-card h3 { font-size: 1.3rem; }
.dl-card .meta { font-family: var(--font-mono); font-size: .76rem; color: var(--text-dim); }
.dl-card .btn { margin-top: var(--sp-3); }

.req-grid { grid-template-columns: repeat(2, 1fr); }
.req-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--sp-5); }
.req-card h4 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: var(--sp-3); display: flex; align-items: center; gap: 10px; }
.req-card ul { display: grid; gap: 8px; }
.req-card li { display: flex; justify-content: space-between; gap: 16px; font-size: .9rem; color: var(--text-soft); border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.req-card li:last-child { border-bottom: 0; }
.req-card li span:last-child { color: var(--text); font-family: var(--font-mono); font-size: .82rem; }

/* Manual / quickstart */
.manual { display: grid; gap: var(--sp-4); counter-reset: man; }
.man-step { display: grid; grid-template-columns: 48px 1fr; gap: var(--sp-4); padding: var(--sp-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); align-items: start; }
.man-step .n { counter-increment: man; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; color: var(--accent-ink); background: var(--accent); }
.man-step h4 { font-size: 1.05rem; margin-bottom: 4px; }
.man-step p { font-size: .92rem; }

/* ----------------------------------------------------------------------- */
/* 18. SUPPORTED CAMERAS                                                    */
/* ----------------------------------------------------------------------- */
.cam-grid { grid-template-columns: repeat(3, 1fr); }
.cam-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--sp-4) var(--sp-5); display: flex; align-items: center; gap: 14px; }
.cam-item .ck { width: 36px; height: 36px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--surface-2); color: var(--accent-soft); border: 1px solid var(--line); flex-shrink: 0; }
.cam-item strong { font-size: .96rem; display: block; }
.cam-item span { font-size: .82rem; color: var(--text-dim); }

/* ----------------------------------------------------------------------- */
/* 19. ABOUT                                                                */
/* ----------------------------------------------------------------------- */
.principles { grid-template-columns: repeat(3, 1fr); }
.principle { padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.principle .pn { font-family: var(--font-mono); color: var(--accent-soft); font-size: .8rem; }
.principle h3 { font-size: 1.1rem; margin: var(--sp-2) 0; }
.principle p { font-size: .92rem; }

/* ----------------------------------------------------------------------- */
/* 20. CONTACT INFO                                                         */
/* ----------------------------------------------------------------------- */
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--sp-5); display: flex; gap: 14px; align-items: flex-start; }
.contact-card .ci { width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--surface-2); color: var(--accent-soft); border: 1px solid var(--line); flex-shrink: 0; }
.contact-card h4 { font-size: 1rem; margin-bottom: 2px; }
.contact-card p, .contact-card a { font-size: .9rem; color: var(--text-soft); }
.contact-card a:hover { color: var(--accent-soft); }

/* ----------------------------------------------------------------------- */
/* 21. SECURITY                                                             */
/* ----------------------------------------------------------------------- */
.sec-grid { grid-template-columns: repeat(2, 1fr); }
.sec-item { display: flex; gap: var(--sp-4); padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.sec-item .si { width: 44px; height: 44px; flex-shrink: 0; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--accent-soft); background: linear-gradient(135deg, rgba(20,184,166,.16), transparent); border: 1px solid var(--line-2); }
.sec-item h3 { font-size: 1.08rem; margin-bottom: 4px; }
.sec-item p { font-size: .92rem; }

/* ----------------------------------------------------------------------- */
/* 22. 404                                                                  */
/* ----------------------------------------------------------------------- */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: var(--sp-8) 0; }
.nf .code { font-family: var(--font-mono); font-size: clamp(5rem, 18vw, 11rem); font-weight: 700; line-height: 1; color: var(--accent-soft); letter-spacing: -.04em; }
.nf .code .glitch { color: var(--text); }
.nf p { max-width: 44ch; margin: var(--sp-4) auto var(--sp-6); }

/* ----------------------------------------------------------------------- */
/* 23. COOKIE BANNER + MODAL                                                */
/* ----------------------------------------------------------------------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 950;
  max-width: 720px; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: var(--sp-5); box-shadow: var(--shadow);
  display: grid; gap: var(--sp-4); grid-template-columns: 1fr auto; align-items: center;
  transform: translateY(160%); transition: transform .5s var(--ease);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: .88rem; }
.cookie-banner strong { color: var(--text); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 16px; font-size: .85rem; }

/* Modal (generic) — IMPORTANT: closed state must block all pointer events */
.modal {
  position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center;
  padding: var(--sp-5);
  background: rgba(2,6,14,.7); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s var(--ease), visibility .3s;
}
.modal.open { opacity: 1; visibility: visible; pointer-events: auto; }
.modal-card {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  width: min(560px, 100%); max-height: 86vh; overflow-y: auto; box-shadow: var(--shadow);
  transform: translateY(16px) scale(.98); transition: transform .3s var(--ease);
}
.modal.open .modal-card { transform: translateY(0) scale(1); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-5); border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 1.2rem; }
.modal-close { width: 38px; height: 38px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text-soft); display: grid; place-items: center; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: var(--sp-5); }
.modal-foot { padding: var(--sp-5); border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

.cookie-cat { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); }
.cookie-cat:last-of-type { border-bottom: 0; }
.cookie-cat h4 { font-size: 1rem; margin-bottom: 2px; }
.cookie-cat p { font-size: .85rem; }

/* Toggle switch */
.switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .track { position: absolute; inset: 0; background: var(--surface-3); border: 1px solid var(--line-2); border-radius: var(--r-pill); transition: background .25s var(--ease); }
.switch .track::before { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--text-soft); transition: transform .25s var(--ease), background .25s var(--ease); }
.switch input:checked + .track { background: var(--accent); border-color: transparent; }
.switch input:checked + .track::before { transform: translateX(20px); background: var(--accent-ink); }
.switch input:disabled + .track { opacity: .55; cursor: not-allowed; }
.switch input:focus-visible + .track { outline: 2px solid var(--accent-soft); outline-offset: 2px; }

/* ----------------------------------------------------------------------- */
/* 24. TOAST                                                                */
/* ----------------------------------------------------------------------- */
.toast-wrap { position: fixed; right: 16px; bottom: 16px; z-index: 1200; display: grid; gap: 10px; max-width: calc(100vw - 32px); }
.toast {
  background: var(--surface-2); border: 1px solid var(--line-2); border-left: 3px solid var(--accent);
  border-radius: var(--r); padding: 14px 18px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px; min-width: 260px;
  transform: translateX(120%); opacity: 0; transition: transform .4s var(--ease), opacity .4s var(--ease);
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast .ti { width: 22px; height: 22px; color: var(--good); flex-shrink: 0; }
.toast strong { display: block; font-size: .92rem; color: var(--text); }
.toast span { font-size: .82rem; color: var(--text-dim); }

/* ----------------------------------------------------------------------- */
/* 25. SCROLL REVEAL                                                        */
/* ----------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ----------------------------------------------------------------------- */
/* 26. UTILITIES                                                            */
/* ----------------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.muted { color: var(--text-dim); }
.accent { color: var(--accent-soft); }
.mono { font-family: var(--font-mono); }
.hide { display: none !important; }
.divider { height: 1px; background: var(--line); border: 0; margin-block: var(--sp-7); }
.pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; color: var(--accent-soft); border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 6px 14px; background: var(--surface); }

/* ----------------------------------------------------------------------- */
/* 27. RESPONSIVE                                                           */
/* ----------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta .btn:not(.hamburger) { display: none; }
  .hamburger { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .hero .lede { max-width: none; }
  .value-row { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .cards-3, .principles, .cam-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  :root { --sp-9: 64px; --sp-8: 48px; }
  .cards-4, .cards-2, .sec-grid, .dl-cards, .req-grid { grid-template-columns: 1fr; }
  .stats, .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cookie-banner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .man-step { grid-template-columns: 1fr; }
  .wrap { padding-inline: var(--sp-4); }
}

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