/* ============================================================
   CloakPane — marketing site styles
   Dark, premium, stealth aesthetic. Single source of truth.
   ============================================================ */

:root {
  --bg:          #07070b;
  --bg-2:        #0b0b12;
  --panel:       rgba(255,255,255,0.040);
  --panel-2:     rgba(255,255,255,0.022);
  --border:      rgba(255,255,255,0.090);
  --border-2:    rgba(255,255,255,0.150);
  --text:        #f3f3f8;
  --muted:       #a2a2bb;
  --muted-2:     #6f6f88;
  --accent:      #9a8bff;
  --accent-2:    #5b8cff;
  --good:        #37d9a0;
  --warn:        #ff5c7a;
  --grad:        linear-gradient(120deg, #a99bff 0%, #6f9bff 100%);
  --grad-soft:   linear-gradient(120deg, rgba(169,155,255,.18), rgba(111,155,255,.18));
  --radius:      18px;
  --radius-lg:   26px;
  --maxw:        1120px;
  --shadow:      0 24px 60px -20px rgba(0,0,0,.7);
  --shadow-glow: 0 0 60px -10px rgba(123,110,255,.45);
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Ambient background glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 600px at 50% -10%, rgba(123,110,255,.22), transparent 60%),
    radial-gradient(700px 500px at 100% 10%, rgba(91,140,255,.12), transparent 55%),
    radial-gradient(600px 500px at 0% 30%, rgba(169,155,255,.08), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

/* ---------- Typography ---------- */
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); }
.eyebrow {
  text-transform: uppercase; letter-spacing: .22em; font-size: .72rem;
  font-weight: 700; color: var(--accent); margin-bottom: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: .98rem; font-family: var(--font);
  padding: 13px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--grad); color: #0a0a12; font-weight: 700;
  box-shadow: 0 10px 30px -8px rgba(123,110,255,.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(123,110,255,.75); }
.btn-ghost { background: var(--panel); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,.07); border-color: var(--border-2); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--border);
  font-size: .85rem; color: var(--muted); font-weight: 500;
  backdrop-filter: blur(10px);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px var(--good); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(8,8,13,.72);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.22rem; letter-spacing: -0.02em; }
.brand .logo { width: 34px; height: 34px; flex: none; }
.brand b { font-weight: 800; }
.brand .pane { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { color: var(--muted); font-size: .95rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 8px; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 72px; left: 16px; right: 16px;
    background: rgba(12,12,19,.97); backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-radius: var(--radius); padding: 14px;
  }
  .nav-links.open a { padding: 11px 10px; width: 100%; border-radius: 10px; }
  .nav-links.open a:hover { background: var(--panel); }
}

/* ---------- Sections ---------- */
section { padding: clamp(48px, 6vw, 84px) 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto 42px; text-align: center; }
.section-head .lead { margin-top: 16px; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(50px, 8vw, 90px); padding-bottom: clamp(50px, 8vw, 90px); text-align: center; }
.hero .pill { margin-bottom: 26px; }
.hero h1 { max-width: 15ch; margin: 0 auto 22px; }
.hero .lead { max-width: 62ch; margin: 0 auto; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero-trust { display: flex; gap: 10px 24px; justify-content: center; flex-wrap: wrap; margin-top: 30px; color: var(--muted-2); font-size: .9rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { color: var(--good); flex: none; }

/* ---------- Capture demo (hero visual) ---------- */
.demo {
  margin-top: 64px; position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px;
  max-width: 980px; margin-left: auto; margin-right: auto;
}
@media (max-width: 760px) { .demo { grid-template-columns: 1fr; gap: 20px; } }

.demo-card {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); position: relative;
}
.demo-label {
  display: inline-flex; align-items: center; margin: 13px 0 -2px 13px;
  font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
}
.demo-label.you { background: rgba(55,217,160,.14); color: var(--good); border: 1px solid rgba(55,217,160,.3); }
.demo-label.rec { background: rgba(255,92,122,.14); color: var(--warn); border: 1px solid rgba(255,92,122,.3); }
.demo-label.rec .recdot { display:inline-block; width:7px;height:7px;border-radius:50%;background:var(--warn);margin-right:6px; animation: blink 1.3s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }

/* fake browser chrome */
.winbar { display: flex; align-items: center; gap: 7px; padding: 14px 16px 10px; border-bottom: 1px solid var(--border); }
.winbar .dots { display: flex; gap: 6px; }
.winbar .dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.winbar .dots i:nth-child(1){ background:#ff5f57; } .winbar .dots i:nth-child(2){ background:#febc2e; } .winbar .dots i:nth-child(3){ background:#28c840; }
.winbar .url { margin-left: 10px; flex: 1; background: rgba(255,255,255,.06); border-radius: 8px; height: 22px; display: flex; align-items: center; padding: 0 10px; font-size: .72rem; color: var(--muted); gap: 6px; }
.winbar .url svg { width: 11px; height: 11px; color: var(--good); }

.winbody { padding: 18px; height: 230px; position: relative; }
.skel { background: rgba(255,255,255,.07); border-radius: 7px; }
.winbody .row { display: flex; gap: 12px; margin-bottom: 14px; align-items: center; }
.winbody .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--grad-soft); flex: none; }
.winbody .line { height: 11px; }
.winbody .tile { height: 64px; border-radius: 10px; background: linear-gradient(120deg, rgba(169,155,255,.18), rgba(91,140,255,.1)); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }

/* the "recording" side — the ENTIRE CloakPane window is gone (chrome included);
   the recording captures only the desktop/wallpaper where it was */
.demo-card.cloaked {
  background:
    radial-gradient(120% 80% at 18% 8%, rgba(123,110,255,.26), transparent 60%),
    radial-gradient(130% 90% at 92% 95%, rgba(91,140,255,.2), transparent 55%),
    linear-gradient(160deg, #15152a, #0b0b16);
}
.cloaked .winbar { opacity: 0; }   /* no traffic lights, no URL — the window simply isn't captured */
.cloak-overlay {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: var(--muted);
}
.cloak-overlay .lock { width: 46px; height: 46px; color: var(--warn); opacity: .9; }
.cloak-overlay b { color: var(--text); font-size: .98rem; }
.cloak-overlay span { font-size: .8rem; color: var(--muted-2); }
.scanline {
  position: absolute; left: 0; right: 0; height: 2px; z-index: 4;
  background: linear-gradient(90deg, transparent, rgba(255,92,122,.8), transparent);
  box-shadow: 0 0 16px rgba(255,92,122,.6);
  animation: scan 3.2s ease-in-out infinite;
}
@keyframes scan { 0%{ top: 8%; opacity:0 } 15%{opacity:1} 85%{opacity:1} 100%{ top: 92%; opacity:0 } }

/* floating chips around demo */
.chip {
  position: absolute; z-index: 6;
  display: flex; align-items: center; gap: 10px;
  background: rgba(14,14,22,.9); border: 1px solid var(--border);
  border-radius: 14px; padding: 11px 14px; font-size: .82rem; font-weight: 600;
  box-shadow: var(--shadow); backdrop-filter: blur(10px);
  animation: float 6s ease-in-out infinite;
}
.chip .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--grad-soft); color: var(--accent); flex: none; }
.chip small { display: block; color: var(--muted-2); font-weight: 500; font-size: .72rem; }
.chip.c1 { top: -22px; left: -26px; } .chip.c2 { bottom: 40px; left: -44px; animation-delay: -2s; }
.chip.c3 { top: 30px; right: -40px; animation-delay: -4s; } .chip.c4 { bottom: -22px; right: -18px; animation-delay: -1s; }
@keyframes float { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-9px) } }
@media (max-width: 1080px){ .chip { display: none; } }

/* ---------- Logos / use-case strip ---------- */
.usecases { text-align: center; padding-top: 10px; }
.usecases .cap { color: var(--muted-2); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; margin-bottom: 22px; }
.tag-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tag { padding: 9px 16px; border-radius: 999px; background: var(--panel); border: 1px solid var(--border); font-size: .9rem; color: var(--muted); font-weight: 500; }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 920px){ .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px){ .features { grid-template-columns: 1fr; } }
.card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--border-2); box-shadow: var(--shadow); }
.card .ic {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--accent); margin-bottom: 18px;
  border: 1px solid rgba(169,155,255,.2);
}
.card h3 { margin-bottom: 9px; }
.card p { color: var(--muted); font-size: .95rem; }
.card.featured {
  grid-column: span 1; position: relative; overflow: hidden;
  border-color: rgba(169,155,255,.35);
  background: linear-gradient(160deg, rgba(123,110,255,.14), rgba(91,140,255,.05));
}

/* ---------- Comparison table ---------- */
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--panel-2); }
table.compare th, table.compare td { padding: 17px 18px; text-align: center; border-bottom: 1px solid var(--border); font-size: .94rem; }
table.compare thead th { font-weight: 700; color: var(--muted); font-size: .85rem; letter-spacing: .02em; }
table.compare tbody td:first-child, table.compare thead th:first-child { text-align: left; color: var(--text); font-weight: 500; }
table.compare .us { background: linear-gradient(180deg, rgba(123,110,255,.14), rgba(123,110,255,.04)); position: relative; }
table.compare thead .us { color: var(--text); font-weight: 800; }
table.compare .us-head b { display:flex; align-items:center; gap:8px; justify-content:center; }
.yes { color: var(--good); } .no { color: var(--muted-2); }
.yes svg, .no svg { margin: 0 auto; }
table.compare tr:last-child td { border-bottom: 0; }

/* ---------- Privacy promise band ---------- */
.promise {
  background: linear-gradient(160deg, rgba(123,110,255,.12), rgba(91,140,255,.04));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px); text-align: center;
}
.promise .stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 36px; margin-top: 36px; }
.promise .stat b { display: block; font-size: 2rem; font-weight: 800; }
.promise .stat span { color: var(--muted); font-size: .9rem; }

/* ---------- Pricing ---------- */
.price-card {
  max-width: 440px; margin: 0 auto; text-align: center;
  background: linear-gradient(170deg, rgba(123,110,255,.12), rgba(255,255,255,.02));
  border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  padding: 42px 34px; box-shadow: var(--shadow-glow);
}
.price-card .amount { font-size: 3.4rem; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 2px; }
.price-card .amount small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.price-card ul { list-style: none; text-align: left; margin: 26px 0; display: grid; gap: 13px; }
.price-card li { display: flex; gap: 11px; align-items: flex-start; color: var(--muted); font-size: .95rem; }
.price-card li svg { color: var(--good); flex: none; margin-top: 3px; }
.price-note { color: var(--muted-2); font-size: .82rem; margin-top: 14px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: 14px; margin-bottom: 12px; background: var(--panel-2); overflow: hidden; transition: border-color .2s; }
.faq-item:hover { border-color: var(--border-2); }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; cursor: pointer; font-weight: 600; font-size: 1.02rem; list-style: none; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q .plus { flex: none; width: 22px; height: 22px; position: relative; transition: transform .25s; color: var(--accent); }
.faq-item[open] .faq-q .plus { transform: rotate(45deg); }
.faq-a { padding: 0 22px 22px; color: var(--muted); font-size: .96rem; }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  background: radial-gradient(600px 300px at 50% 0%, rgba(123,110,255,.3), transparent 70%);
  border-top: 1px solid var(--border);
}
.cta-band h2 { max-width: 16ch; margin: 0 auto 18px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 60px 0 40px; background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
@media (max-width: 760px){ .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.foot-brand p { color: var(--muted); font-size: .92rem; max-width: 34ch; margin-top: 16px; }
.foot-col h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted-2); margin-bottom: 16px; font-weight: 700; }
.foot-col a { display: block; color: var(--muted); font-size: .93rem; margin-bottom: 11px; transition: color .2s; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding-top: 28px; border-top: 1px solid var(--border); color: var(--muted-2); font-size: .85rem; }

/* ---------- Legal pages (privacy / terms) ---------- */
.legal { max-width: 800px; margin: 0 auto; padding: 60px 0 40px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 8px; }
.legal .updated { color: var(--muted-2); font-size: .9rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.4rem; margin: 40px 0 14px; }
.legal h3 { font-size: 1.1rem; margin: 26px 0 10px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 14px; font-size: .98rem; }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--text); }
.legal .callout {
  background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 12px; padding: 18px 20px; margin: 24px 0;
}
.legal .callout p:last-child { margin-bottom: 0; }

/* ---------- Legal page layout with sticky sidebar ---------- */
.legal-wrap { max-width: 1020px; margin: 0 auto; display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; padding: 48px 0 40px; }
.legal-nav { position: sticky; top: 96px; }
.legal-nav h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted-2); margin-bottom: 14px; font-weight: 700; }
.legal-nav a { display: block; color: var(--muted); font-size: .9rem; padding: 8px 13px; border-radius: 9px; border-left: 2px solid transparent; transition: color .2s, background .2s, border-color .2s; line-height: 1.35; }
.legal-nav a:hover { color: var(--text); background: var(--panel); }
.legal-nav a.active { color: var(--text); border-left-color: var(--accent); background: var(--panel); }
.legal-wrap .legal { max-width: none; padding: 0; }
.legal-wrap .legal h1 { margin-top: 0; }
.legal h2 { scroll-margin-top: 90px; }
@media (max-width: 820px) {
  .legal-wrap { grid-template-columns: 1fr; gap: 22px; padding-top: 30px; }
  .legal-nav { position: static; top: auto; }
  .legal-nav .nav-list { display: flex; flex-wrap: wrap; gap: 8px; }
  .legal-nav .nav-list a { border-left: 0; background: var(--panel); border: 1px solid var(--border); font-size: .82rem; padding: 7px 12px; }
  .legal-nav .nav-list a.active { border-color: var(--accent); }
}

/* ---------- "See it in action" scenario ---------- */
.scene { max-width: 940px; margin: 0 auto; }
.scene-toggle { display: flex; gap: 10px; justify-content: center; margin-bottom: 22px; flex-wrap: wrap; }
.st-btn {
  font-family: var(--font); font-size: .9rem; font-weight: 600; cursor: pointer;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--panel); color: var(--muted); transition: background .2s, color .2s, border-color .2s;
}
.st-btn.active { background: var(--grad); color: #0a0a12; border-color: transparent; }
.st-btn:not(.active):hover { color: var(--text); border-color: var(--border-2); }

.screen {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-2); box-shadow: var(--shadow); aspect-ratio: 16 / 10;
  background:
    radial-gradient(90% 70% at 15% 8%, rgba(123,110,255,.4), transparent 55%),
    radial-gradient(90% 80% at 92% 96%, rgba(91,140,255,.34), transparent 55%),
    linear-gradient(160deg, #1b1b32, #0c0c18);
}
.screen .menubar {
  position: absolute; top: 0; left: 0; right: 0; height: 26px; z-index: 6;
  background: rgba(0,0,0,.28); backdrop-filter: blur(6px);
  display: flex; align-items: center; gap: 16px; padding: 0 14px;
  font-size: .66rem; color: rgba(255,255,255,.72);
}
.screen .menubar .right { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.screen .menubar .menu-rec { color: #ff6b84; font-weight: 700; }

.win { position: absolute; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 44px -14px rgba(0,0,0,.65); border: 1px solid rgba(255,255,255,.1); }
.win .bar { height: 28px; background: #15151f; display: flex; align-items: center; gap: 6px; padding: 0 11px; border-bottom: 1px solid rgba(255,255,255,.07); transition: opacity .5s; }
.win .bar i { width: 9px; height: 9px; border-radius: 50%; }
.win .bar i:nth-child(1){ background:#ff5f57; } .win .bar i:nth-child(2){ background:#febc2e; } .win .bar i:nth-child(3){ background:#28c840; }
.win .bar .t { margin-left: 8px; font-size: .64rem; color: var(--muted); }

.win.call { top: 12%; left: 5%; width: 51%; background: #0e0e16; z-index: 1; }
.win.call .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px; }
.win.call .cam { aspect-ratio: 4/3; border-radius: 8px; background: linear-gradient(145deg,#2b2b48,#1a1a2e); display: grid; place-items: center; }
.win.call .cam svg { width: 24px; height: 24px; color: rgba(255,255,255,.32); }
.win.call .rec { position: absolute; top: 36px; right: 10px; z-index: 3; font-size: .6rem; font-weight: 700; color: #fff; background: rgba(255,60,90,.92); padding: 3px 9px; border-radius: 999px; display: flex; align-items: center; gap: 5px; }
.win.call .rec b { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.3s infinite; }

.win.cloak { top: 33%; right: 5%; width: 48%; background: #0b0b13; z-index: 3; transition: opacity .5s, background .5s, border-color .5s, box-shadow .5s; }
.win.cloak .bar { background: #16111f; }
.win.cloak .bar img { border-radius: 4px; margin-left: 4px; }
.win.cloak .cp-body { padding: 13px; height: 120px; position: relative; }
.win.cloak .cp-body .ln { height: 9px; border-radius: 5px; background: rgba(255,255,255,.1); margin-bottom: 9px; transition: opacity .5s; }
.win.cloak .cp-tile { height: 54px; border-radius: 8px; background: linear-gradient(120deg, rgba(169,155,255,.32), rgba(91,140,255,.16)); transition: opacity .5s; }
.win.cloak .cp-gone {
  position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; opacity: 0; transition: opacity .5s; text-align: center; padding: 10px;
}
.win.cloak .cp-gone svg { width: 28px; height: 28px; color: #fff; opacity: .85; }
.win.cloak .cp-gone b { font-size: .76rem; color: #fff; } .win.cloak .cp-gone span { font-size: .64rem; color: rgba(255,255,255,.68); }

.screen[data-view="rec"] .win.cloak { background: transparent; border-color: rgba(255,255,255,.2); border-style: dashed; box-shadow: none; }
.screen[data-view="rec"] .win.cloak .bar { opacity: 0; }
.screen[data-view="rec"] .win.cloak .cp-body .ln,
.screen[data-view="rec"] .win.cloak .cp-tile { opacity: 0; }
.screen[data-view="rec"] .win.cloak .cp-gone { opacity: 1; }

.scene-caption { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 20px; max-width: 60ch; margin-left: auto; margin-right: auto; }
.scene-caption b { color: var(--text); }
@media (max-width: 620px) {
  .win.call { width: 58%; left: 4%; top: 11%; } .win.cloak { width: 60%; right: 4%; top: 42%; }
  .win.cloak .cp-body { height: 92px; }
  .screen .menubar { gap: 9px; font-size: .58rem; padding: 0 9px; }
  .screen .menubar > span:nth-child(3), .screen .menubar > span:nth-child(4) { display: none; }
  .screen .menubar .right { gap: 8px; }
  .screen .menubar .menu-rec { white-space: nowrap; }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px) scale(.985); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scanline, .chip, .recdot, .scene .screen { animation: none; }
  html { scroll-behavior: auto; }
}
