/* ============================================================
   OpsIQ Marketing — Live 3D engine
   Premium animated illustration system for the public site.
   Motion lives mostly in inline SVG (SMIL <animate>) so it runs
   forever with no JS; this sheet provides the 3D glass stages,
   layout for spotlight rows, and the panel float/tilt.
   Brand: violet #7c3aed · blue #2563eb · cyan #06b6d4 · pink #e879f9
   ============================================================ */

/* ---- Spotlight rows (alternating text / illustration) ---- */
.op-spot{padding:clamp(40px,7vw,86px) 0;position:relative}
.op-spot-row{display:grid;grid-template-columns:1fr 1.06fr;gap:clamp(28px,5vw,72px);align-items:center}
.op-spot-row.rev{grid-template-columns:1.06fr 1fr}
.op-spot-row.rev .op-spot-copy{order:2}
.op-spot-row.rev .op-spot-art{order:1}
.op-spot-copy h2{font-size:clamp(26px,3.6vw,44px);letter-spacing:-.045em;line-height:1.04;margin:12px 0 14px}
.op-spot-copy .op-lead{margin:0 0 18px}
.op-spot-feats{display:grid;gap:11px;margin:18px 0 22px}
.op-spot-feat{display:flex;gap:11px;align-items:flex-start;font-size:14.5px;line-height:1.55;color:var(--op-text)}
.op-spot-feat svg{width:20px;height:20px;flex-shrink:0;margin-top:1px;color:#7c3aed}
.op-spot-feat b{font-weight:800}
.op-spot-pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.op-spot-pills span{border:1px solid var(--op-stroke);background:var(--op-surface2);border-radius:999px;padding:7px 12px;font-size:12px;font-weight:800;color:var(--op-muted)}

/* ---- 3D glass stage that holds an animated SVG ---- */
.m3d{position:relative;perspective:1500px}
.m3d-stage{position:relative;border-radius:var(--op-radius,28px);overflow:hidden;
  background:radial-gradient(120% 120% at 15% 0%,rgba(124,58,237,.20),transparent 55%),
             radial-gradient(120% 120% at 100% 100%,rgba(6,182,212,.18),transparent 50%),
             linear-gradient(150deg,rgba(11,16,34,.86),rgba(7,11,24,.92));
  border:1px solid rgba(160,180,255,.18);
  box-shadow:0 40px 120px rgba(8,12,30,.5),inset 0 1px 0 rgba(255,255,255,.06);
  transform-style:preserve-3d}
html[data-theme="light"] .m3d-stage{background:radial-gradient(120% 120% at 15% 0%,rgba(124,58,237,.14),transparent 55%),radial-gradient(120% 120% at 100% 100%,rgba(6,182,212,.12),transparent 50%),linear-gradient(150deg,#0d1430,#0a1024);}
.m3d-stage svg{display:block;width:100%;height:auto}
/* Floating "Live" pill — pinned to the TOP-RIGHT, OUTSIDE/above the stage edge so it
   never collides with the SVG's own title (titles are drawn top-left inside the art).
   The stage also reserves a small top inset so nothing reads as overlapping. */
.m3d-stage{padding-top:6px}
.m3d-stage .m3d-tag{position:absolute;top:-13px;right:18px;z-index:5;display:inline-flex;align-items:center;gap:7px;
  font-size:10.5px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;color:#e6ecff;
  background:linear-gradient(135deg,rgba(124,58,237,.92),rgba(37,99,235,.92));border:1px solid rgba(167,139,250,.5);
  border-radius:999px;padding:6px 13px;box-shadow:0 10px 26px rgba(37,99,235,.4),inset 0 1px 0 rgba(255,255,255,.25);backdrop-filter:blur(6px)}
.m3d-stage .m3d-tag i{width:7px;height:7px;border-radius:50%;background:#34d399;box-shadow:0 0 0 0 rgba(52,211,153,.6);animation:m3dLive 1.6s ease-out infinite}
@keyframes m3dLive{0%{box-shadow:0 0 0 0 rgba(52,211,153,.55)}70%,100%{box-shadow:0 0 0 9px rgba(52,211,153,0)}}

/* ---- hero clearance: keep spotlight heroes clear of the fixed nav ---- */
.op-spot-hero{padding-top:calc(var(--op-nav-h,82px) + 52px)!important;position:relative}
@media(max-width:760px){.op-spot-hero{padding-top:calc(var(--op-nav-h,82px) + 30px)!important}}
/* richer hero backdrop: brand grid + two drifting glows behind every spotlight hero */
.op-spot-hero::before{content:"";position:absolute;inset:0;z-index:-2;pointer-events:none;
  background-image:linear-gradient(rgba(124,58,237,.10) 1px,transparent 1px),linear-gradient(90deg,rgba(6,182,212,.10) 1px,transparent 1px);
  background-size:54px 54px;mask-image:radial-gradient(120% 80% at 70% 0%,#000,transparent 72%)}
.op-spot-hero::after{content:"";position:absolute;z-index:-2;pointer-events:none;width:520px;height:520px;right:-120px;top:-120px;
  border-radius:50%;filter:blur(80px);opacity:.45;background:radial-gradient(circle,rgba(124,58,237,.5),transparent 65%);animation:opFloat 11s ease-in-out infinite}
/* reusable floating accent chips agents can drop into a hero (.op-floaty) */
.op-floaty{position:absolute;z-index:1;border:1px solid var(--op-stroke);border-radius:16px;background:var(--op-surface);
  backdrop-filter:var(--op-blur);box-shadow:var(--op-shadow2);padding:11px 14px;font-size:12.5px;font-weight:800;display:flex;gap:9px;align-items:center}
.op-floaty svg{width:18px;height:18px}
.op-floaty.f1{animation:opFloat 6s ease-in-out infinite}
.op-floaty.f2{animation:opFloat 8s ease-in-out infinite reverse}

/* ---- defensive big-stat: long word values must wrap, not clip/overlap ---- */
.op-big-stat b{font-size:clamp(34px,4.6vw,62px)!important;overflow-wrap:anywhere;word-break:break-word;hyphens:auto;max-width:100%}
.op-big-stat span{overflow-wrap:anywhere}

/* gentle continuous float + a touch of 3D tilt for the whole stage */
@keyframes m3dFloat{0%,100%{transform:translateY(0) rotateX(.6deg) rotateY(-1deg)}50%{transform:translateY(-12px) rotateX(-.6deg) rotateY(1deg)}}
.m3d-float{animation:m3dFloat 8s ease-in-out infinite;will-change:transform}
.m3d-float:hover{animation-play-state:paused}

/* soft drifting orbs behind a section */
.op-spot .op-spot-art{position:relative}
.op-spot-glow{position:absolute;border-radius:50%;filter:blur(60px);opacity:.5;z-index:-1;pointer-events:none}

/* ---- four-pillar grid ---- */
.op-pillars{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:30px}
.op-pillar{position:relative;border:1px solid var(--op-stroke);border-radius:22px;background:var(--op-surface);
  padding:24px 22px 22px;overflow:hidden;transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease}
.op-pillar:hover{transform:translateY(-6px);box-shadow:var(--op-shadow);border-color:rgba(124,58,237,.4)}
.op-pillar-ic{width:54px;height:54px;border-radius:16px;display:flex;align-items:center;justify-content:center;margin-bottom:14px;position:relative}
.op-pillar-ic svg{width:50px;height:50px}
.op-pillar h3{font-size:19px;letter-spacing:-.02em;margin:0 0 6px}
.op-pillar>p{color:var(--op-muted);font-size:13px;line-height:1.6;margin:0 0 14px}
.op-pillar-list{display:grid;gap:8px;list-style:none;padding:0;margin:0}
.op-pillar-list li{display:flex;gap:8px;align-items:center;font-size:12.8px;font-weight:700;color:var(--op-text)}
.op-pillar-list li::before{content:"";width:6px;height:6px;border-radius:50%;background:linear-gradient(135deg,#7c3aed,#06b6d4);flex-shrink:0}

/* ---- comparison table ---- */
.op-cmp{width:100%;border-collapse:separate;border-spacing:0;margin-top:26px;border:1px solid var(--op-stroke);border-radius:18px;overflow:hidden;background:var(--op-surface)}
.op-cmp th,.op-cmp td{padding:14px 16px;text-align:left;font-size:14px;border-bottom:1px solid var(--op-stroke)}
.op-cmp thead th{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--op-muted);background:var(--op-surface2)}
.op-cmp tbody tr:last-child td{border-bottom:0}
.op-cmp .op-cmp-pop{background:linear-gradient(180deg,rgba(124,58,237,.10),rgba(6,182,212,.06));font-weight:800;color:var(--op-text);width:160px}
.op-cmp .yes{color:#13b981;font-weight:800}
.op-cmp td:first-child{font-weight:700}

/* ---- compliance strip ---- */
.op-trust-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:28px}
.op-trust-item{border:1px solid var(--op-stroke);border-radius:18px;background:var(--op-surface);padding:20px}
.op-trust-item svg{width:26px;height:26px;color:#7c3aed;margin-bottom:10px}
.op-trust-item h4{margin:0 0 5px;font-size:15px;letter-spacing:-.01em}
.op-trust-item p{margin:0;color:var(--op-muted);font-size:12.6px;line-height:1.55}

@media(max-width:1024px){
  .op-spot-row,.op-spot-row.rev{grid-template-columns:1fr;gap:30px}
  .op-spot-row.rev .op-spot-copy{order:1}.op-spot-row.rev .op-spot-art{order:2}
  .op-pillars{grid-template-columns:repeat(2,1fr)}
  .op-trust-strip{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:560px){.op-pillars{grid-template-columns:1fr}.op-trust-strip{grid-template-columns:1fr}.op-cmp thead{display:none}.op-cmp td{display:block;border:0;padding:8px 16px}.op-cmp tr{display:block;border-bottom:1px solid var(--op-stroke);padding:8px 0}}

@media(prefers-reduced-motion:reduce){
  .m3d-float{animation:none}
  .m3d-stage .m3d-tag i{animation:none}
}

/* ============================================================
   Premium legal / policy pages (op_doc_page)
   ============================================================ */
.op-legal-hero{padding-bottom:8px}
.op-legal-hero-row{display:grid;grid-template-columns:1.25fr .95fr;gap:clamp(28px,5vw,64px);align-items:center}
.op-legal-hero-row.nosvg{grid-template-columns:1fr;max-width:880px}
.op-legal-title{font-size:clamp(38px,5.4vw,68px)!important;line-height:1.02;letter-spacing:-.04em;margin:14px 0 16px}
.op-legal-meta{display:flex;flex-wrap:wrap;gap:9px;margin-top:20px}
.op-legal-chip{display:inline-flex;align-items:center;gap:7px;padding:8px 13px;border:1px solid var(--op-stroke);border-radius:999px;
  background:var(--op-surface2);backdrop-filter:var(--op-blur);font-size:12.5px;color:var(--op-muted)}
.op-legal-chip b{color:var(--op-text);font-weight:800;text-transform:uppercase;letter-spacing:.06em;font-size:11px}
.op-legal-related{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:18px;font-size:13px}
.op-legal-related span{color:var(--op-muted2);font-weight:800;text-transform:uppercase;letter-spacing:.1em;font-size:11px}
.op-legal-related a{padding:6px 12px;border-radius:999px;border:1px solid var(--op-stroke);background:var(--op-surface);text-decoration:none;font-weight:800;color:var(--op-blue)}
.op-legal-related a:hover{border-color:rgba(124,58,237,.4);transform:translateY(-2px)}
.op-legal-hero-art .m3d-stage{padding:16px}
.op-legal-hero-art svg{display:block;width:100%;height:auto}

/* at a glance */
.op-legal-glance{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}
.op-legal-glance-card{border:1px solid var(--op-stroke);border-radius:20px;background:var(--op-surface);backdrop-filter:var(--op-blur);
  padding:22px;box-shadow:var(--op-shadow2);transition:.25s}
.op-legal-glance-card:hover{transform:translateY(-5px);border-color:rgba(124,58,237,.35)}
.op-legal-glance-card svg{width:30px;height:30px;color:#7c3aed;margin-bottom:12px}
.op-legal-glance-card h3{margin:0 0 6px;font-size:16px;letter-spacing:-.02em}
.op-legal-glance-card p{margin:0;color:var(--op-muted);font-size:13.5px;line-height:1.6}

/* intro callout */
.op-legal-intro{border:1px solid var(--op-stroke);border-left:4px solid #7c3aed;border-radius:16px;background:linear-gradient(135deg,rgba(124,58,237,.07),rgba(6,182,212,.04));
  padding:20px 22px;margin-bottom:30px;color:var(--op-muted);line-height:1.7;font-size:15px}
.op-legal-intro b,.op-legal-intro strong{color:var(--op-text)}

/* doc grid + numbered TOC */
.op-legal-doc{grid-template-columns:268px 1fr;gap:54px}
.op-legal-toc{top:108px;gap:2px!important;max-height:calc(100vh - 140px);overflow:auto;padding-right:6px}
.op-legal-toc-head{font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.12em;color:var(--op-muted2);margin-bottom:12px;padding-left:4px}
.op-legal-toc a{display:flex;gap:10px;align-items:flex-start;padding:8px 10px;border-radius:11px;text-decoration:none;color:var(--op-muted);
  font-size:13px;line-height:1.4;font-weight:650;transition:.18s;border:1px solid transparent}
.op-legal-toc a i{flex:0 0 auto;width:20px;height:20px;border-radius:7px;background:var(--op-surface2);border:1px solid var(--op-stroke);
  display:flex;align-items:center;justify-content:center;font-size:10.5px;font-weight:900;font-style:normal;color:var(--op-muted2)}
.op-legal-toc a:hover{background:rgba(124,58,237,.07);color:var(--op-text)}
.op-legal-toc a.active{background:rgba(124,58,237,.1);color:var(--op-text);border-color:rgba(124,58,237,.22)}
.op-legal-toc a.active i{background:linear-gradient(135deg,#7c3aed,#06b6d4);color:#fff;border-color:transparent}
.op-legal-top{margin-top:10px;color:var(--op-blue)!important;font-weight:800!important}
.op-legal-top i{display:none}

/* section cards */
.op-legal-body{max-width:820px}
.op-legal-section{scroll-margin-top:120px;padding:26px 28px;margin-bottom:18px;border:1px solid var(--op-stroke);border-radius:22px;
  background:var(--op-surface);backdrop-filter:var(--op-blur);box-shadow:0 10px 34px rgba(15,23,42,.05)}
.op-legal-h2{display:flex;gap:14px;align-items:center;font-size:22px;letter-spacing:-.02em;margin:0 0 14px;line-height:1.25}
.op-legal-num{flex:0 0 auto;width:34px;height:34px;border-radius:11px;display:flex;align-items:center;justify-content:center;
  font-size:14px;font-weight:900;color:#fff;background:linear-gradient(135deg,#2563eb,#7c3aed)}
.op-legal-tldr{border-radius:13px;background:rgba(6,182,212,.08);border:1px solid rgba(6,182,212,.22);padding:12px 15px;margin:0 0 16px;
  font-size:13.5px;line-height:1.6;color:var(--op-muted)}
.op-legal-tldr b{color:var(--op-text)}
.op-legal-body h3{font-size:16px;letter-spacing:-.01em;margin:20px 0 8px}
.op-legal-body p,.op-legal-body li{line-height:1.74}
.op-legal-body ul,.op-legal-body ol{padding-left:20px;margin:10px 0}
.op-legal-body li{margin:6px 0}
.op-legal-body code{font-family:"JetBrains Mono",monospace;font-size:12.5px;background:var(--op-surface2);border:1px solid var(--op-stroke);
  border-radius:7px;padding:2px 7px}
.op-legal-body table{width:100%;border-collapse:separate;border-spacing:0;margin:14px 0;border:1px solid var(--op-stroke);border-radius:14px;overflow:hidden;font-size:13.5px}
.op-legal-body th,.op-legal-body td{padding:11px 14px;text-align:left;border-bottom:1px solid var(--op-stroke);vertical-align:top}
.op-legal-body thead th{background:var(--op-surface2);font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--op-muted)}
.op-legal-body tbody tr:last-child td{border-bottom:0}
@media(max-width:1024px){.op-legal-hero-row{grid-template-columns:1fr}.op-legal-hero-art{max-width:520px}.op-legal-doc{grid-template-columns:1fr;gap:24px}.op-legal-toc{position:static;max-height:none;flex-direction:row;flex-wrap:wrap}.op-legal-toc a{font-size:12px}}

/* ============================================================
   Feature matrix table ("Everything in X") — premium, grouped
   ============================================================ */
.op-ftable-wrap{margin-top:26px;border:1px solid var(--op-stroke);border-radius:20px;overflow:hidden;background:var(--op-surface);box-shadow:var(--op-shadow2)}
.op-ftable{width:100%;border-collapse:separate;border-spacing:0;font-size:14px}
.op-ftable th,.op-ftable td{padding:13px 18px;text-align:left;vertical-align:top;border-bottom:1px solid var(--op-stroke)}
.op-ftable thead th{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--op-muted);background:var(--op-surface2);font-weight:900}
.op-ftable tbody tr:last-child td{border-bottom:0}
.op-ftable tbody tr:hover td{background:rgba(124,58,237,.045)}
.op-ftable .op-ft-group td{background:linear-gradient(90deg,rgba(124,58,237,.12),rgba(6,182,212,.05));font-weight:900;font-size:12px;
  letter-spacing:.06em;text-transform:uppercase;color:var(--op-text);border-bottom:1px solid var(--op-stroke)}
.op-ftable .op-ft-group td .op-ft-gi{display:inline-flex;width:22px;height:22px;border-radius:7px;align-items:center;justify-content:center;
  margin-right:9px;vertical-align:middle;background:linear-gradient(135deg,#7c3aed,#06b6d4)}
.op-ftable .op-ft-group td .op-ft-gi svg{width:13px;height:13px;color:#fff}
.op-ftable td:first-child{font-weight:800;color:var(--op-text);width:230px;white-space:nowrap}
.op-ftable td:first-child .op-ft-new{display:inline-block;margin-left:7px;font-size:9.5px;font-weight:900;letter-spacing:.08em;
  color:#fff;background:linear-gradient(135deg,#e879f9,#7c3aed);border-radius:999px;padding:2px 7px;vertical-align:middle}
.op-ftable td:last-child{color:var(--op-muted);line-height:1.55}
@media(max-width:680px){.op-ftable td:first-child{white-space:normal;width:auto;display:block;border-bottom:0;padding-bottom:2px}.op-ftable td:last-child{display:block;padding-top:2px}.op-ftable thead{display:none}}

/* ============================================================
   Fixes (2026-06-15): remove clipped Live pill; make hero
   decorative backgrounds actually visible (the earlier pseudo
   was dropping behind the page bg due to no stacking context).
   ============================================================ */
.m3d-stage .m3d-tag, .m3d-tag { display: none !important; }

/* Heroes form their own stacking context so the deco renders ABOVE the page bg */
.op-spot-hero, .op-page-hero { position: relative; z-index: 0; overflow: hidden; }
.op-spot-hero::before, .op-page-hero::before {
  content:""; position:absolute; inset:-1px; z-index:-1; pointer-events:none;
  background-image:
    linear-gradient(rgba(124,58,237,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,182,212,.15) 1px, transparent 1px);
  background-size:46px 46px;
  -webkit-mask-image:radial-gradient(135% 105% at 68% -8%, #000 38%, transparent 80%);
          mask-image:radial-gradient(135% 105% at 68% -8%, #000 38%, transparent 80%);
}
html[data-theme="light"] .op-spot-hero::before, html[data-theme="light"] .op-page-hero::before {
  background-image:
    linear-gradient(rgba(124,58,237,.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,182,212,.10) 1px, transparent 1px);
}
.op-spot-hero::after, .op-page-hero::after {
  content:""; position:absolute; z-index:-1; pointer-events:none;
  width:600px; height:600px; right:-150px; top:-180px; border-radius:50%;
  filter:blur(90px); opacity:.55;
  background:radial-gradient(circle, rgba(124,58,237,.6), transparent 64%);
  animation:opFloat 12s ease-in-out infinite;
}
/* a second, cyan glow drifting from the lower-left for depth */
.op-spot-hero, .op-page-hero { background-image:
  radial-gradient(420px 420px at 6% 112%, rgba(6,182,212,.16), transparent 60%); }
@media(prefers-reduced-motion:reduce){ .op-spot-hero::after, .op-page-hero::after{ animation:none } }
