/* =========================================================
   JacAI — shared design system
   Dark corporate theme bridging the JacAI indigo/violet brand
   with the Studio1Live Legal gold accent for family continuity.
   ========================================================= */

:root{
  --bg:            #070a12;
  --bg-alt:        #0c1120;
  --surface:       #101627;
  --surface-2:     #141b31;
  --border:        rgba(148,163,184,0.14);
  --border-strong: rgba(148,163,184,0.24);

  --text:          #eef1f8;
  --text-dim:      #9aa5b8;
  --text-faint:    #6b7688;

  --brand-1:       #4f46e5; /* indigo   */
  --brand-2:       #7c3aed; /* violet   */
  --brand-3:       #22d3ee; /* cyan glow */
  --gold:          #f5a623; /* Studio1Live Legal accent */
  --gold-2:        #fbbf24;

  --grad-brand: linear-gradient(135deg,var(--brand-1),var(--brand-2) 55%,var(--brand-3));
  --grad-gold:  linear-gradient(135deg,var(--gold),var(--gold-2));

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-lg: 0 24px 60px -20px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 0 1px rgba(124,58,237,0.25), 0 20px 50px -20px rgba(79,70,229,0.45);

  --maxw: 1180px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
h1,h2,h3,h4{
  font-family:'Space Grotesk','Inter',sans-serif;
  font-weight:600;
  line-height:1.15;
  margin:0 0 .5em;
  letter-spacing:-0.01em;
}
p{ margin:0 0 1em; color:var(--text-dim); }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
ul{ margin:0; padding:0; list-style:none; }

/* background texture */
body::before{
  content:"";
  position:fixed; inset:0; z-index:-2;
  background:
    radial-gradient(700px 400px at 12% -5%, rgba(79,70,229,0.20), transparent 60%),
    radial-gradient(600px 380px at 92% 10%, rgba(34,211,238,0.12), transparent 60%),
    radial-gradient(800px 500px at 50% 110%, rgba(245,166,35,0.08), transparent 60%),
    var(--bg);
}
body::after{
  content:"";
  position:fixed; inset:0; z-index:-1; opacity:.35; pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size:56px 56px;
  mask-image: radial-gradient(1200px 700px at 50% 0%, black, transparent 75%);
}

.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 28px; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:12.5px; font-weight:600; letter-spacing:.08em; text-transform:uppercase;
  color:var(--brand-3);
  background:rgba(34,211,238,0.08);
  border:1px solid rgba(34,211,238,0.25);
  padding:6px 14px; border-radius:999px;
  margin-bottom:16px;
}
.eyebrow.gold{ color:var(--gold-2); background:rgba(245,166,35,0.09); border-color:rgba(245,166,35,0.3); }
.eyebrow .dot{ width:6px; height:6px; border-radius:50%; background:currentColor; box-shadow:0 0 8px currentColor; }

section{ position:relative; padding:104px 0; }
.section-head{ max-width:680px; margin-bottom:56px; }
.section-head p{ font-size:1.08rem; }
h2.section-title{ font-size:clamp(1.9rem,3.4vw,2.7rem); }
.eyebrow + h2.section-title{ margin-top:0; }

/* ---------- Nav ---------- */
.site-nav{
  position:sticky; top:0; z-index:100;
  backdrop-filter:blur(14px);
  background:rgba(7,10,18,0.72);
  border-bottom:1px solid var(--border);
}
.site-nav .wrap{ display:flex; align-items:center; justify-content:space-between; padding:14px 28px; gap:24px; }
.nav-brand{ display:flex; align-items:center; gap:10px; font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:1.15rem; }
.nav-brand .mark{
  width:32px; height:34px;
  display:inline-block; vertical-align:middle;
  filter:drop-shadow(0 6px 14px rgba(124,58,237,0.45));
}
.nav-links{ display:flex; align-items:center; gap:30px; }
.nav-links a{ font-size:.92rem; font-weight:500; color:var(--text-dim); transition:color .2s; white-space:nowrap; }
.nav-links a:hover{ color:var(--text); }
.nav-cta{ display:flex; align-items:center; gap:12px; }
.nav-toggle{
  display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:6px;
}
.nav-toggle span{ width:22px; height:2px; background:var(--text); border-radius:2px; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:13px 24px; border-radius:11px;
  font-weight:600; font-size:.94rem;
  border:1px solid transparent; cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-2px); }
.btn-primary{ background:var(--grad-brand); color:#fff; box-shadow:0 12px 28px -10px rgba(124,58,237,0.65); }
.btn-primary:hover{ box-shadow:0 16px 34px -8px rgba(124,58,237,0.8); }
.btn-gold{ background:var(--grad-gold); color:#1a1200; box-shadow:0 12px 28px -10px rgba(245,166,35,0.55); }
.btn-gold:hover{ box-shadow:0 16px 34px -8px rgba(245,166,35,0.7); }
.btn-ghost{ background:rgba(255,255,255,0.03); color:var(--text); border-color:var(--border-strong); }
.btn-ghost:hover{ background:rgba(255,255,255,0.07); border-color:rgba(255,255,255,0.35); }
.btn-sm{ padding:9px 16px; font-size:.85rem; border-radius:9px; }
.btn-block{ width:100%; }

/* ---------- Hero ---------- */
.hero{ padding:96px 0 80px; position:relative; }
.hero-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:60px; align-items:center; }
.hero h1{ font-size:clamp(2.4rem,4.6vw,3.9rem); }
.hero .lead{ font-size:1.15rem; max-width:540px; }
.hero-cta{ display:flex; gap:14px; flex-wrap:wrap; margin-top:8px; }
.hero-media{ position:relative; }
.hero-media img{ border-radius:20px; border:1px solid var(--border-strong); box-shadow:var(--shadow-lg); }
.hero-media .glow{
  position:absolute; inset:-40px; z-index:-1;
  background:var(--grad-brand); filter:blur(90px); opacity:.35;
}
.stat-row{ display:flex; gap:36px; margin-top:44px; flex-wrap:wrap; }
.stat-row .stat b{ display:block; font-family:'Space Grotesk',sans-serif; font-size:1.7rem; color:#fff; }
.stat-row .stat span{ font-size:.82rem; color:var(--text-faint); text-transform:uppercase; letter-spacing:.05em; }

/* ---------- Cards / grid ---------- */
.grid{ display:grid; gap:24px; }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }

.card{
  background:linear-gradient(180deg, var(--surface), var(--surface-2));
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:28px;
  transition:border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover{ border-color:var(--border-strong); transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.card .icon{
  width:44px; height:44px; border-radius:12px; margin-bottom:18px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(124,58,237,0.14); border:1px solid rgba(124,58,237,0.3);
  font-size:20px;
}
.card h3{ font-size:1.08rem; margin-bottom:8px; }
.card p{ font-size:.92rem; margin-bottom:0; }

/* ---------- Product section (scroll section on homepage) ---------- */
.product-section{ padding:112px 0; border-top:1px solid var(--border); }
.product-section .tag-pill{
  display:inline-block; font-size:.78rem; font-weight:700; letter-spacing:.06em;
  padding:5px 12px; border-radius:999px; margin-bottom:14px; text-transform:uppercase;
}
.product-grid{ display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center; }
.product-grid.reverse .p-media{ order:2; }
.product-grid.reverse .p-copy{ order:1; }
.p-media{ position:relative; }
.p-media img{ border-radius:18px; border:1px solid var(--border-strong); box-shadow:var(--shadow-lg); }
.feature-list{ margin:26px 0; display:grid; gap:12px; }
.feature-list li{ display:flex; gap:10px; align-items:flex-start; font-size:.95rem; color:var(--text-dim); }
.feature-list li .check{
  flex:none; width:20px; height:20px; border-radius:6px; margin-top:2px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(34,211,238,0.14); color:var(--brand-3); font-size:12px; font-weight:800;
}
.product-actions{ display:flex; gap:12px; flex-wrap:wrap; margin-top:24px; }

/* ---------- Video / media slot ---------- */
.media-slot{
  position:relative; border-radius:18px; overflow:hidden;
  border:1px solid var(--border-strong); background:var(--surface);
  aspect-ratio:16/9; display:flex; align-items:center; justify-content:center;
}
.media-slot img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.55; }
.media-slot .play-hint{
  position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; gap:10px;
  color:var(--text-dim); font-size:.85rem; text-align:center; padding:0 24px;
}
.media-slot .play-btn{
  width:64px; height:64px; border-radius:50%; background:var(--grad-brand);
  display:flex; align-items:center; justify-content:center; box-shadow:0 14px 30px -10px rgba(124,58,237,0.7);
}
.media-slot.has-video video{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
}
.media-slot .mute-toggle{
  position:absolute; z-index:2; right:14px; bottom:14px;
  width:34px; height:34px; border-radius:50%; border:1px solid var(--border-strong);
  background:rgba(7,10,18,0.65); backdrop-filter:blur(6px); color:var(--text);
  display:flex; align-items:center; justify-content:center; cursor:pointer; font-size:14px;
}
.media-slot .mute-toggle:hover{ background:rgba(7,10,18,0.85); }

/* ---------- Compact video tiles (feature-showcase strips) ---------- */
.video-tile-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:24px; }
.video-tile-grid.cols-2{ grid-template-columns:repeat(2,1fr); }
.video-tile{
  position:relative; border-radius:14px; overflow:hidden; aspect-ratio:16/9;
  border:1px solid var(--border); background:var(--surface);
}
.video-tile video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.video-tile .tile-label{
  position:absolute; left:0; right:0; bottom:0; z-index:1; padding:10px 12px 8px;
  background:linear-gradient(180deg, transparent, rgba(5,7,14,0.88) 78%);
  font-size:.78rem; font-weight:600; color:var(--text);
}
@media (max-width:760px){
  .video-tile-grid, .video-tile-grid.cols-2{ grid-template-columns:1fr; }
}
.media-slot .play-btn svg{ width:22px; height:22px; fill:#fff; margin-left:3px; }

/* ---------- Zapier / WordPress strip ---------- */
.strip{ border-top:1px solid var(--border); border-bottom:1px solid var(--border); background:rgba(255,255,255,0.015); }
.strip-grid{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
.zap-flow{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-top:20px; }
.zap-node{
  display:flex; align-items:center; gap:8px; padding:10px 16px; border-radius:11px;
  background:var(--surface); border:1px solid var(--border-strong); font-size:.85rem; font-weight:600;
}
.zap-node.accent{ border-color:rgba(255,79,90,0.4); color:#ff8a90; background:rgba(255,79,90,0.08); }
.zap-arrow{ color:var(--text-faint); font-size:1.1rem; }

/* ---------- Badges / credential grid ---------- */
.badge-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
.badge-card{
  display:flex; gap:14px; align-items:flex-start; padding:20px; border-radius:14px;
  background:var(--surface); border:1px solid var(--border);
}
.badge-card .badge-icon{
  flex:none; width:42px; height:42px; border-radius:10px;
  background:var(--grad-gold); display:flex; align-items:center; justify-content:center; font-weight:800; color:#1a1200;
}
.badge-card h4{ font-size:.98rem; margin-bottom:4px; }
.badge-card p{ font-size:.84rem; margin:0; }
.badge-card.pending{ border-style:dashed; opacity:.75; }
.badge-card.pending .badge-icon{ background:rgba(148,163,184,0.14); color:var(--text-faint); }

/* ---------- Status pills (product family / bundle status) ---------- */
.status-pill{
  display:inline-flex; align-items:center; gap:6px; font-size:.72rem; font-weight:700;
  letter-spacing:.04em; padding:4px 11px; border-radius:999px; text-transform:uppercase;
}
.status-pill .dot{ width:6px; height:6px; border-radius:50%; background:currentColor; box-shadow:0 0 6px currentColor; }
.status-pill.live{ background:rgba(34,211,238,0.14); color:var(--brand-3); border:1px solid rgba(34,211,238,0.35); }
.status-pill.progress{ background:rgba(245,166,35,0.12); color:var(--gold-2); border:1px solid rgba(245,166,35,0.35); }

/* ---------- Pricing table ---------- */
.pricing-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; align-items:stretch; }
.price-card{
  display:flex; flex-direction:column;
  background:linear-gradient(180deg, var(--surface), var(--surface-2));
  border:1px solid var(--border); border-radius:var(--radius); padding:28px;
}
.price-card.featured{ border-color:rgba(124,58,237,0.55); box-shadow:var(--shadow-glow); position:relative; }
.price-card .plan-name{ font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:1.1rem; margin-bottom:6px; }
.price-card .plan-price{ font-family:'Space Grotesk',sans-serif; font-size:2.1rem; font-weight:700; color:#fff; margin:10px 0 2px; }
.price-card .plan-price span{ font-size:.85rem; font-weight:500; color:var(--text-faint); }
.price-card .plan-sub{ font-size:.84rem; color:var(--text-dim); margin-bottom:18px; }
.price-card ul{ display:grid; gap:10px; margin:18px 0; flex:1; }
.price-card ul li{ font-size:.88rem; color:var(--text-dim); display:flex; gap:8px; align-items:flex-start; }
.price-card ul li .check{ flex:none; width:18px; height:18px; border-radius:5px; margin-top:2px; display:flex; align-items:center; justify-content:center; background:rgba(34,211,238,0.14); color:var(--brand-3); font-size:11px; font-weight:800; }

.compare-table{ width:100%; border-collapse:collapse; font-size:.88rem; }
.compare-table th, .compare-table td{ padding:14px 16px; text-align:center; border-bottom:1px solid var(--border); }
.compare-table th{ font-family:'Space Grotesk',sans-serif; font-weight:600; color:#fff; }
.compare-table td:first-child, .compare-table th:first-child{ text-align:left; color:var(--text-dim); }
.compare-table tbody tr:hover{ background:rgba(255,255,255,0.02); }
.compare-table .yes{ color:var(--brand-3); font-weight:700; }
.compare-table .no{ color:var(--text-faint); }

/* ---------- Timeline (how-to steps) ---------- */
.steps{ counter-reset:step; display:grid; gap:0; }
.step{
  position:relative; padding:32px 0 32px 64px; border-left:2px solid var(--border);
  margin-left:22px;
}
.step:last-child{ border-color:transparent; }
.step::before{
  counter-increment:step; content:counter(step);
  position:absolute; left:-23px; top:28px; width:44px; height:44px; border-radius:50%;
  background:var(--grad-brand); color:#fff; font-weight:700; font-family:'Space Grotesk',sans-serif;
  display:flex; align-items:center; justify-content:center; box-shadow:0 8px 20px -6px rgba(124,58,237,0.6);
}
.step h3{ font-size:1.15rem; margin-bottom:8px; }
.step .step-note{
  margin-top:14px; padding:14px 16px; border-radius:10px; font-size:.86rem;
  background:rgba(34,211,238,0.06); border:1px solid rgba(34,211,238,0.2); color:#bfe9f2;
}

/* ---------- CTA band ---------- */
.cta-band{
  border-radius:24px; padding:64px; text-align:center;
  background:linear-gradient(135deg, rgba(79,70,229,0.18), rgba(124,58,237,0.1) 50%, rgba(245,166,35,0.08));
  border:1px solid var(--border-strong);
  position:relative; overflow:hidden;
}
.cta-band h2{ font-size:clamp(1.8rem,3.2vw,2.5rem); }
.cta-band .btn-row{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin-top:26px; }

/* ---------- Footer ---------- */
footer{ border-top:1px solid var(--border); padding:64px 0 32px; }
.footer-grid{ display:grid; grid-template-columns:1.3fr 1fr 1fr 1fr 1fr; gap:32px; margin-bottom:48px; }
.footer-brand p{ font-size:.88rem; max-width:280px; }
footer h5{ font-size:.8rem; text-transform:uppercase; letter-spacing:.06em; color:var(--text-faint); margin-bottom:16px; }
footer ul li{ margin-bottom:10px; }
footer ul li a{ font-size:.9rem; color:var(--text-dim); transition:color .2s; }
footer ul li a:hover{ color:var(--text); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
  padding-top:28px; border-top:1px solid var(--border); font-size:.82rem; color:var(--text-faint);
}

/* ---------- Page header (inner pages) ---------- */
.page-header{ padding:88px 0 56px; border-bottom:1px solid var(--border); }
.breadcrumb{ display:flex; gap:8px; align-items:center; font-size:.84rem; color:var(--text-faint); margin-bottom:18px; }
.breadcrumb a{ color:var(--text-dim); }
.breadcrumb a:hover{ color:var(--text); }

/* ---------- Reveal on scroll ---------- */
.reveal{ opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in{ opacity:1; transform:none; }

/* ---------- Misc ---------- */
.divider{ height:1px; background:var(--border); margin:56px 0; }
.quote-block{
  border-left:3px solid var(--brand-2); padding:4px 0 4px 22px; font-size:1.05rem; color:var(--text);
  font-family:'Space Grotesk',sans-serif; font-weight:500;
}
.note-box{
  border:1px solid rgba(245,166,35,0.3); background:rgba(245,166,35,0.06);
  border-radius:12px; padding:18px 20px; font-size:.88rem; color:#f0d9b0;
}
.pill-row{ display:flex; gap:10px; flex-wrap:wrap; }
.pill{
  font-size:.78rem; font-weight:600; padding:6px 13px; border-radius:999px;
  background:rgba(255,255,255,0.04); border:1px solid var(--border-strong); color:var(--text-dim);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .nav-toggle{ display:flex; }
  .nav-links{
    display:none; position:absolute; top:100%; left:0; right:0;
    flex-direction:column; align-items:flex-start; gap:2px;
    background:var(--bg-alt); border-bottom:1px solid var(--border); padding:14px 28px 20px;
  }
  .nav-links.open{ display:flex; }
  .nav-links a{ padding:11px 0; width:100%; border-bottom:1px solid var(--border); }
  .hero-grid, .product-grid, .strip-grid{ grid-template-columns:1fr; gap:40px; }
  .product-grid.reverse .p-media, .product-grid.reverse .p-copy{ order:initial; }
  .grid-3, .grid-4{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr 1fr; }
  .badge-grid{ grid-template-columns:1fr; }
  .pricing-grid{ grid-template-columns:1fr 1fr; }
  .compare-table{ font-size:.8rem; }
}
@media (max-width: 620px){
  section{ padding:72px 0; }
  .grid-3, .grid-4, .grid-2{ grid-template-columns:1fr; }
  .cta-band{ padding:40px 24px; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .stat-row{ gap:24px; }
  .pricing-grid{ grid-template-columns:1fr; }
  .compare-table{ display:block; overflow-x:auto; white-space:nowrap; }
}
@media (max-width: 460px){
  .footer-grid{ grid-template-columns:1fr; }
}

/* ============ JacAI hand mark — 3D spin hero component (v4.8) ============
   Replaces the static hero photo in .hero-media. Pure CSS 3D transforms,
   no video/exported frames. See main.js for the cursor-tilt behavior. */
.jacai-spin-stage{
  position:relative;
  width:min(420px,90vw); height:min(420px,90vw); margin:0 auto;
  perspective:1000px;
  transition:transform .5s cubic-bezier(.22,1,.36,1);
}
.jacai-spin-stage::before{
  content:''; position:absolute; inset:-10%; z-index:0; border-radius:50%;
  background:var(--grad-brand); filter:blur(90px); opacity:.28; pointer-events:none;
}
.jacai-spin-stage .orbit{ position:absolute; inset:0; margin:auto; border-radius:50%; border:1px dashed rgba(148,163,184,0.22); }
.jacai-spin-stage .orbit.o1{ width:100%; height:100%; animation:jacaiRing 26s linear infinite; }
.jacai-spin-stage .orbit.o2{ width:78%; height:78%; border-color:rgba(34,211,238,0.22); animation:jacaiRing 18s linear infinite reverse; }
@keyframes jacaiRing{ from{ transform:rotate(0deg);} to{ transform:rotate(360deg);} }

.jacai-spin-stage .card-3d{
  position:absolute; inset:0; margin:auto; width:62%; height:62%;
  transform-style:preserve-3d;
  animation:jacaiCardSpin 9s linear infinite;
}
.jacai-spin-stage:hover .card-3d{ animation-play-state:paused; }
@keyframes jacaiCardSpin{ from{ transform:rotateY(0deg);} to{ transform:rotateY(360deg);} }

.jacai-spin-stage .face{ position:absolute; inset:0; backface-visibility:hidden; display:flex; align-items:center; justify-content:center; }
.jacai-spin-stage .face svg{ width:100%; height:100%; filter:drop-shadow(0 18px 30px rgba(79,70,229,0.45)); }
.jacai-spin-stage .face.back{ transform:rotateY(180deg); }
.jacai-spin-stage .face.back svg{ filter:brightness(.5) saturate(.6) drop-shadow(0 18px 30px rgba(34,211,238,0.35)); }

.jacai-spin-stage .ground-shadow{
  position:absolute; left:50%; bottom:2%; width:56%; height:22px; margin-left:-28%;
  background:radial-gradient(ellipse at center, rgba(0,0,0,0.55), transparent 72%);
  animation:jacaiShadowPulse 9s linear infinite; filter:blur(2px);
}
@keyframes jacaiShadowPulse{
  0%,100%{ transform:scaleX(1); opacity:.55;} 25%{ transform:scaleX(.55); opacity:.3;}
  50%{ transform:scaleX(1); opacity:.55;} 75%{ transform:scaleX(.55); opacity:.3;}
}

@media (prefers-reduced-motion: reduce){
  .jacai-spin-stage .card-3d, .jacai-spin-stage .orbit, .jacai-spin-stage .ground-shadow{ animation:none !important; }
  .jacai-spin-stage .card-3d{ transform:rotateY(-28deg); }
}

/* ============ Spin-stage: image faces + size variants (v4.10) ============
   Generalizes the v4.8 hand-mark spin component so any raster image can
   spin the same way an inline <svg> does, and adds two smaller presets:
   .size-mini (nav corner logo) and .size-card (product display cards).
   Default (no size-* class) stays the original 420px hero — untouched. */
.jacai-spin-stage .face img{
  width:100%; height:100%; object-fit:contain;
  filter:drop-shadow(0 18px 30px rgba(79,70,229,0.45));
}
.jacai-spin-stage .face.back img{ filter:brightness(.5) saturate(.6) drop-shadow(0 18px 30px rgba(34,211,238,0.35)); }

/* ---- size-mini: left-corner nav logo ---- */
.jacai-spin-stage.size-mini{
  width:32px; height:34px; margin:0; perspective:260px;
  display:inline-block; vertical-align:middle; transition:none;
}
.jacai-spin-stage.size-mini::before{ display:none; }
.jacai-spin-stage.size-mini .orbit,
.jacai-spin-stage.size-mini .ground-shadow{ display:none; }
.jacai-spin-stage.size-mini .card-3d{ width:100%; height:100%; animation-duration:9s; }
.jacai-spin-stage.size-mini .face img{ filter:drop-shadow(0 3px 6px rgba(79,70,229,0.45)); }
.jacai-spin-stage.size-mini .face.back img{ filter:brightness(.5) saturate(.6) drop-shadow(0 3px 6px rgba(34,211,238,0.35)); }

/* ---- size-card: product display cards ---- */
.jacai-spin-stage.size-card{
  display:block; width:min(150px,38vw); height:min(150px,38vw); margin:0 auto 12px; perspective:560px;
}
.jacai-spin-stage.size-card::before{ inset:-6%; filter:blur(36px); opacity:.24; }
.jacai-spin-stage.size-card .orbit.o1{ animation-duration:26s; }
.jacai-spin-stage.size-card .orbit.o2{ animation-duration:18s; }
.jacai-spin-stage.size-card .card-3d{ animation-duration:9s; }
.jacai-spin-stage.size-card .ground-shadow{ height:10px; }

@media (prefers-reduced-motion: reduce){
  .jacai-spin-stage.size-mini .card-3d, .jacai-spin-stage.size-card .card-3d{ animation:none !important; transform:rotateY(-28deg); }
}

/* ============ Auth forms (login / signup / forgot / reset password) ============ */
.auth-wrap{ max-width:460px; margin:0 auto; }
.auth-card{
  border:1px solid var(--border-strong); border-radius:var(--radius);
  background:linear-gradient(180deg,var(--surface),var(--surface-2));
  padding:36px 32px;
}
.auth-field{ margin-bottom:18px; }
.auth-field label{ display:block; font-size:.85rem; color:var(--text-dim); margin-bottom:6px; font-weight:500; }
.auth-field input, .auth-field select{
  width:100%; padding:12px 14px; border-radius:9px; border:1px solid var(--border-strong);
  background:rgba(255,255,255,0.03); color:var(--text); font-size:.95rem; font-family:inherit;
  transition:border-color .15s;
}
.auth-field input:focus, .auth-field select:focus{ outline:none; border-color:var(--brand-2); }
.auth-field .hint{ font-size:.78rem; color:var(--text-faint); margin-top:5px; }
.auth-row-split{ display:flex; justify-content:space-between; align-items:center; font-size:.85rem; margin:-6px 0 18px; }
.auth-row-split a{ color:var(--brand-3); }
.auth-alert{ padding:12px 14px; border-radius:9px; font-size:.86rem; margin-bottom:18px; display:none; }
.auth-alert.show{ display:block; }
.auth-alert.error{ background:rgba(248,113,113,0.1); border:1px solid rgba(248,113,113,0.35); color:#fca5a5; }
.auth-alert.success{ background:rgba(34,211,238,0.1); border:1px solid rgba(34,211,238,0.3); color:var(--brand-3); }
.auth-foot{ text-align:center; font-size:.86rem; color:var(--text-dim); margin-top:20px; }
.auth-foot a{ color:var(--brand-3); font-weight:600; }
.btn.is-loading{ opacity:.65; cursor:default; }
.plan-chip{
  display:inline-flex; align-items:center; gap:8px; font-size:.85rem; font-weight:600;
  padding:8px 14px; border-radius:999px; background:rgba(124,58,237,0.12);
  border:1px solid rgba(124,58,237,0.35); color:#c4b5fd; margin-bottom:22px;
}

/* ============ Account dashboard ============ */
.dash-loading, .dash-error{ text-align:center; padding:60px 24px; color:var(--text-dim); }
.dash-error{ display:none; }
.dash-error.show{ display:block; }
.dash-content{ display:none; }
.dash-content.show{ display:block; }
.dash-org-head{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; margin-bottom:28px; }
.dash-stat-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:16px; margin-bottom:32px; }
.dash-stat{
  border:1px solid var(--border); border-radius:14px; padding:20px;
  background:linear-gradient(180deg,var(--surface),var(--surface-2));
}
.dash-stat .label{ font-size:.78rem; color:var(--text-faint); text-transform:uppercase; letter-spacing:.05em; margin-bottom:8px; }
.dash-stat .value{ font-family:'Space Grotesk',sans-serif; font-size:1.5rem; font-weight:600; }
.dash-stat .sub{ font-size:.8rem; color:var(--text-dim); margin-top:4px; }
.usage-table th{ text-align:left; color:var(--text-faint); font-size:.78rem; text-transform:uppercase; letter-spacing:.04em; }
.usage-table td, .usage-table th{ padding:10px 14px; border-bottom:1px solid var(--border); font-size:.88rem; }
.usage-table td:first-child, .usage-table th:first-child{ text-align:left; }
