/* ============================================================
   OZO — One Zero One · Design System "Dark SaaS Premium"
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --bg: #030509;
  --bg-2: #060a14;
  --bg-3: #0a101f;
  --surface: rgba(255, 255, 255, .025);
  --surface-2: rgba(255, 255, 255, .05);
  --line: rgba(148, 163, 184, .10);
  --line-2: rgba(148, 163, 184, .20);
  --text: #f2f5fb;
  --muted: #97a3b8;
  --dim: #5d6b82;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --grad: linear-gradient(100deg, var(--cyan) 0%, var(--blue) 55%, var(--violet) 110%);
  --grad-soft: linear-gradient(100deg, rgba(34,211,238,.14), rgba(59,130,246,.14));
  --glow-cyan: 0 0 40px rgba(34, 211, 238, .18);
  --glow-blue: 0 20px 60px rgba(59, 130, 246, .22);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, .45);
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, .55);
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --nav-h: 68px;
  --container: 1140px;
  --ease: cubic-bezier(.22, .8, .26, .99);
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: rgba(34, 211, 238, .32); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, .18); border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, .32); }
::-webkit-scrollbar-track { background: var(--bg); }
:focus-visible { outline: 2px solid rgba(34, 211, 238, .6); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.08;
  text-wrap: balance;
}
p { text-wrap: pretty; }
.mono { font-family: var(--font-mono); letter-spacing: .02em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: .8rem; }
.center { text-align: center; }
.ta-right { text-align: right; }
.inline { display: inline; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- ambient background ---------- */
.bg-aurora { position: fixed; inset: 0; z-index: -3; pointer-events: none; overflow: hidden; }
.bg-aurora::before, .bg-aurora::after {
  content: ""; position: absolute; width: 900px; height: 900px; border-radius: 50%;
  filter: blur(140px); opacity: .16;
}
.bg-aurora::before { background: radial-gradient(circle, var(--blue), transparent 65%); top: -380px; right: -180px; }
.bg-aurora::after { background: radial-gradient(circle, var(--cyan), transparent 65%); top: -260px; left: -320px; opacity: .1; }
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 0%, transparent 75%);
}
.bg-noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.028 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- section scaffolding ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .22em; color: var(--cyan);
}
.eyebrow::before, .eyebrow::after {
  content: ""; width: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .7));
}
.eyebrow::after { background: linear-gradient(90deg, rgba(34, 211, 238, .7), transparent); }
.eyebrow.no-dashes::before, .eyebrow.no-dashes::after { display: none; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; display: grid; gap: 16px; justify-items: center; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.section-sub { color: var(--muted); font-size: 1.08rem; max-width: 620px; }
.section { padding: 110px 0; position: relative; }
.hairline {
  height: 1px; max-width: var(--container); margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, .25), transparent);
}

/* ---------- glass card primitive ---------- */
.glass {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  border-radius: var(--r-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(160deg, rgba(148, 163, 184, .28), rgba(148, 163, 184, .06) 40%, rgba(34, 211, 238, .18));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.spot { overflow: hidden; }
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(34, 211, 238, .09), transparent 45%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.spot:hover::after { opacity: 1; }
.lift { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg), var(--glow-cyan); }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid transparent; border-radius: 12px;
  padding: 12px 22px; font-size: .93rem; font-weight: 600; font-family: var(--font-body);
  letter-spacing: -.01em; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
  overflow: hidden;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), var(--glow-blue);
}
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg); transition: left .6s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 22px 70px rgba(59, 130, 246, .4); }
.btn-primary:hover::after { left: 130%; }
.btn-outline {
  background: rgba(255, 255, 255, .03); color: var(--text);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: rgba(34, 211, 238, .5); background: rgba(34, 211, 238, .06); transform: translateY(-2px); }
.btn-ghost { color: var(--muted); background: transparent; }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.btn-danger { background: rgba(248, 113, 113, .1); color: var(--danger); border-color: rgba(248, 113, 113, .3); }
.btn-danger:hover { background: rgba(248, 113, 113, .16); }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; border-radius: 14px; }
.btn-sm { padding: 7px 13px; font-size: .8rem; border-radius: 9px; }
.linklike { background: none; border: 0; color: var(--muted); }
.linklike:hover { color: var(--text); }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 11px; border-radius: 999px;
  font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em;
  border: 1px solid; white-space: nowrap;
}
.badge-active, .badge-published, .badge-accepted, .badge-synced, .badge-paid, .badge-sent { color: var(--ok); border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .08); }
.badge-draft { color: var(--muted); border-color: var(--line-2); background: var(--surface); }
.badge-past_due, .badge-pending, .badge-offered, .badge-ending { color: var(--warn); border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .07); }
.badge-canceled, .badge-revoked, .badge-expired, .badge-draft, .badge-failed { color: var(--danger); border-color: rgba(248, 113, 113, .35); background: rgba(248, 113, 113, .07); }
.badge-admin, .badge-sync- { color: var(--cyan); border-color: rgba(34, 211, 238, .35); background: rgba(34, 211, 238, .08); }
.badge-customer, .badge-channel { color: var(--muted); border-color: var(--line-2); background: var(--surface); }
.badge-declined { color: var(--dim); border-color: var(--line-2); background: var(--surface); }

/* ---------- alerts ---------- */
.alert { border-radius: var(--r-md); padding: 14px 18px; font-size: .92rem; margin-bottom: 20px; border: 1px solid; }
.alert-error { background: rgba(248, 113, 113, .08); border-color: rgba(248, 113, 113, .3); color: #fecaca; }
.alert-ok { background: rgba(52, 211, 153, .07); border-color: rgba(52, 211, 153, .3); color: #bbf7d0; }
.alert-warn { background: rgba(251, 191, 36, .06); border-color: rgba(251, 191, 36, .28); color: #fde68a; }
.alert-promo { background: rgba(34, 211, 238, .06); border-color: rgba(34, 211, 238, .3); color: #bfe9f5; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(3, 5, 9, .72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; line-height: 0; }
.logo-img {
  display: block;
  height: 46px;
  width: auto;
  max-width: min(220px, 52vw);
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links > a { color: var(--muted); font-size: .9rem; font-weight: 500; transition: color .2s; }
.nav-links > a:hover { color: var(--text); }
main { padding-top: var(--nav-h); }

/* ============================================================
   HERO (home)
   ============================================================ */
.hero { position: relative; padding: 96px 0 40px; text-align: center; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .8rem; font-weight: 500; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 16px; margin-bottom: 30px;
}
.hero-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse 2.2s infinite; }
.hero-pill strong { color: var(--text); font-weight: 600; }
.hero h1 {
  font-size: clamp(2.8rem, 6.4vw, 4.9rem);
  letter-spacing: -.035em;
  margin: 0 auto 24px; max-width: 900px;
}
.hero h1 .sheen {
  background: linear-gradient(100deg, var(--cyan), var(--blue) 45%, var(--violet) 80%, var(--cyan));
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 7s var(--ease) infinite;
}
@keyframes sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero-sub {
  max-width: 660px; margin: 0 auto 36px;
  color: var(--muted); font-size: 1.16rem; line-height: 1.7;
  text-wrap: balance;
}
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-micro { margin-top: 18px; font-size: .78rem; color: var(--dim); display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.hero-micro span { display: inline-flex; align-items: center; gap: 7px; }
.hero-micro svg { width: 13px; height: 13px; color: var(--ok); }

/* ---------- hero mockup collage ---------- */
.hero-stage { position: relative; max-width: 880px; margin: 70px auto 0; perspective: 1400px; }
.hero-glow {
  position: absolute; inset: -8% -10%; z-index: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 30%, rgba(59, 130, 246, .22), transparent 70%);
  filter: blur(50px);
}

/* --- terminal mockup --- */
.term {
  position: relative; z-index: 1;
  border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(180deg, rgba(13, 19, 35, .92), rgba(6, 10, 20, .95));
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .06);
  border: 1px solid rgba(148, 163, 184, .16);
  text-align: left;
  font-family: var(--font-mono); font-size: .82rem; line-height: 1.9;
}
.term-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 18px; border-bottom: 1px solid rgba(148, 163, 184, .1);
  background: rgba(255, 255, 255, .025);
}
.term-dots { display: flex; gap: 7px; }
.term-dots i { width: 11px; height: 11px; border-radius: 50%; }
.term-dots i:nth-child(1) { background: #ff5f57; } .term-dots i:nth-child(2) { background: #febc2e; } .term-dots i:nth-child(3) { background: #28c840; }
.term-title { font-size: .72rem; color: var(--dim); letter-spacing: .08em; }
.term-tabs { display: flex; gap: 6px; margin-left: auto; }
.term-tab { font-size: .66rem; padding: 4px 12px; border-radius: 7px; color: var(--dim); border: 1px solid transparent; }
.term-tab.on { color: var(--cyan); border-color: rgba(34, 211, 238, .3); background: rgba(34, 211, 238, .07); }
.term-body { padding: 20px 24px 26px; }
.term-line { display: flex; gap: 10px; white-space: pre-wrap; }
.term-prompt { color: var(--cyan); }
.term-cmd { color: var(--text); }
.term-out { color: var(--dim); }
.term-out b { color: var(--ok); font-weight: 500; }
.term-out .hl { color: var(--text); }
.typing { display: inline-block; overflow: hidden; vertical-align: bottom; white-space: nowrap; animation: typing 1.6s steps(24) .8s both; }
@keyframes typing { from { max-width: 0; } to { max-width: 100%; } }
.caret { display: inline-block; width: 8px; height: 1.15em; background: var(--cyan); vertical-align: text-bottom; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* --- floating cards over mockup --- */
.float-card {
  position: absolute; z-index: 2;
  border-radius: var(--r-md);
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(14, 20, 38, .88), rgba(9, 13, 26, .92));
  border: 1px solid rgba(148, 163, 184, .22);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: .8rem;
  animation: floaty 7s ease-in-out infinite;
}
.float-card .fc-label { font-size: .64rem; text-transform: uppercase; letter-spacing: .16em; color: var(--dim); margin-bottom: 5px; }
.float-card .fc-key { font-family: var(--font-mono); color: var(--cyan); font-size: .82rem; letter-spacing: .05em; }
.float-card .fc-row { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.float-card .fc-row .ok-ico { color: var(--ok); }
.fc-1 { top: -26px; right: 6%; animation-delay: .8s; }
.fc-2 { bottom: -22px; left: 5%; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-section { padding: 64px 0 10px; overflow: hidden; }
.marquee {
  display: flex; gap: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 56px; padding-right: 56px; animation: scrollx 30s linear infinite; flex-shrink: 0; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scrollx { to { transform: translateX(-100%); } }
.marquee-item {
  display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  font-family: var(--font-mono); font-size: .8rem; color: var(--dim);
  letter-spacing: .14em; text-transform: uppercase;
}
.marquee-item svg { width: 15px; height: 15px; color: rgba(34, 211, 238, .55); }

/* ============================================================
   TRUST STATS (counters)
   ============================================================ */
.stats-band { padding: 40px 0 30px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat-cell { background: linear-gradient(180deg, rgba(13, 19, 35, .8), rgba(6, 10, 20, .9)); padding: 34px 20px; text-align: center; }
.stat-num { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -.03em; }
.stat-num small { font-size: .6em; color: var(--cyan); }
.stat-label { margin-top: 6px; font-size: .78rem; color: var(--dim); letter-spacing: .05em; }

/* ============================================================
   BENTO
   ============================================================ */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento-card { grid-column: span 2; padding: 30px 28px; display: flex; flex-direction: column; gap: 12px; min-height: 200px; }
.bento-card.wide { grid-column: span 3; }
.bento-card.tall { grid-column: span 3; grid-row: span 2; min-height: 0; }
.bento-ico {
  width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--grad-soft); border: 1px solid rgba(34, 211, 238, .25); color: var(--cyan);
  margin-bottom: 4px;
}
.bento-ico svg { width: 19px; height: 19px; }
.bento-card h3 { font-size: 1.08rem; letter-spacing: -.015em; }
.bento-card p { font-size: .9rem; color: var(--muted); line-height: 1.65; }
.bento-card .bento-fine { margin-top: auto; font-family: var(--font-mono); font-size: .7rem; color: var(--dim); letter-spacing: .1em; text-transform: uppercase; }

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.product-card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 28px; color: var(--text); border-radius: var(--r-lg);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg), var(--glow-cyan); }
.product-card:hover .view-link { color: var(--cyan); gap: 10px; }
.pc-slug { display: flex; align-items: center; justify-content: space-between; font-size: .68rem; color: var(--dim); letter-spacing: .14em; text-transform: uppercase; }
.pc-slug .pc-kind { color: rgba(34, 211, 238, .7); }
.product-card h3 { font-size: 1.35rem; }
.product-card .pc-tag { color: var(--muted); font-size: .93rem; }
.mini-features { list-style: none; display: grid; gap: 7px; margin: 4px 0; }
.mini-features li { font-size: .84rem; color: var(--muted); padding-left: 20px; position: relative; }
.mini-features li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; border-radius: 3px; background: var(--grad-soft); border: 1px solid rgba(34, 211, 238, .35); }
.pc-prices { display: flex; gap: 8px; margin-top: 2px; }
.pc-price {
  font-family: var(--font-mono); font-size: .72rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px;
  background: rgba(255, 255, 255, .02);
}
.pc-price.best { color: var(--cyan); border-color: rgba(34, 211, 238, .35); background: rgba(34, 211, 238, .06); }
.product-card-foot {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem; color: var(--dim);
}
.view-link { color: var(--muted); font-weight: 600; font-size: .86rem; display: inline-flex; align-items: center; gap: 6px; transition: gap .25s var(--ease), color .25s; }
.pc-draft { opacity: .55; }

/* ============================================================
   STEPS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .4), rgba(139, 92, 246, .4), transparent);
}
.step { position: relative; text-align: center; padding: 0 18px; }
.step-num {
  width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--cyan);
  background: linear-gradient(180deg, rgba(13, 19, 35, .9), rgba(6, 10, 20, .95));
  border: 1px solid rgba(34, 211, 238, .3);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, .06);
  position: relative; z-index: 1;
}
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { font-size: .9rem; color: var(--muted); max-width: 300px; margin: 0 auto; }

/* ============================================================
   QUOTES
   ============================================================ */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.quote-card { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.quote-stars { display: flex; gap: 3px; color: #fbbf24; }
.quote-stars svg { width: 14px; height: 14px; }
.quote-card blockquote { font-size: .95rem; color: #dbe3f0; line-height: 1.7; flex: 1; }
.quote-who { display: flex; align-items: center; gap: 12px; }
.qa {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: .82rem; font-weight: 700; color: #fff;
  background: var(--grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
}
.quote-who div b { display: block; font-size: .86rem; color: var(--text); font-weight: 600; }
.quote-who div span { font-size: .74rem; color: var(--dim); }

/* ============================================================
   COMPARE
   ============================================================ */
.compare-wrap { max-width: 860px; margin: 0 auto; }
.compare-wrap table { font-size: .92rem; }
.col-ozo { color: var(--text); background: rgba(34, 211, 238, .045); }
thead .col-ozo { background: rgba(34, 211, 238, .09); color: var(--cyan); }
td.cmp-bad { color: var(--dim); }
.cmp-ico { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; align-items: center; justify-content: center; margin-right: 9px; vertical-align: middle; }
.cmp-ico.bad { background: rgba(248, 113, 113, .12); color: var(--danger); }
.cmp-ico.good { background: rgba(52, 211, 153, .14); color: var(--ok); }
.cmp-ico svg { width: 10px; height: 10px; }
.compare-tag { display: block; text-align: center; margin: -44px auto 26px; width: max-content; padding: 6px 16px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-family: var(--font-mono); color: var(--cyan); background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .3); border-radius: 999px; }

/* ============================================================
   GUARANTEE
   ============================================================ */
.guarantee-box {
  position: relative; max-width: 760px; margin: 0 auto; text-align: center;
  padding: 54px 44px; border-radius: var(--r-xl);
}
.guarantee-box::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, rgba(52, 211, 153, .5), rgba(52, 211, 153, .08) 45%, rgba(34, 211, 238, .35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.seal {
  width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: conic-gradient(from 200deg, rgba(52, 211, 153, .25), rgba(34, 211, 238, .25), rgba(52, 211, 153, .25));
  border: 1px solid rgba(52, 211, 153, .4);
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ok);
  box-shadow: 0 0 50px rgba(52, 211, 153, .15), inset 0 0 24px rgba(52, 211, 153, .1);
}
.guarantee-box h3 { font-size: 1.5rem; margin-bottom: 12px; }
.guarantee-box p { color: var(--muted); max-width: 560px; margin: 0 auto; font-size: .98rem; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item { border-radius: var(--r-md); transition: border-color .25s, background .25s; }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 24px; font-weight: 600; font-size: .98rem; font-family: var(--font-body);
  letter-spacing: -.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-ico {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); color: var(--muted); position: relative;
  transition: transform .3s var(--ease), border-color .3s, color .3s;
}
.faq-item summary .faq-ico::before, .faq-item summary .faq-ico::after {
  content: ""; position: absolute; background: currentColor; border-radius: 2px;
}
.faq-item summary .faq-ico::before { width: 10px; height: 1.6px; }
.faq-item summary .faq-ico::after { width: 1.6px; height: 10px; transition: opacity .2s; }
.faq-item[open] summary .faq-ico { transform: rotate(45deg); border-color: rgba(34, 211, 238, .5); color: var(--cyan); }
.faq-item[open] { background: rgba(34, 211, 238, .03); }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--muted); font-size: .93rem; max-width: 640px; }

/* ============================================================
   FINAL CTA PANEL
   ============================================================ */
.cta-panel {
  position: relative; text-align: center; padding: 90px 40px; border-radius: var(--r-xl); overflow: hidden;
}
.cta-panel::before {
  content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit;
  background: linear-gradient(140deg, rgba(34, 211, 238, .5), rgba(148, 163, 184, .12) 40%, rgba(139, 92, 246, .45));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.cta-panel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 90% at 50% 110%, rgba(59, 130, 246, .22), transparent 70%);
}
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin-bottom: 16px; }
.cta-panel .muted { max-width: 520px; margin: 0 auto 34px; font-size: 1.05rem; }
.ps-line { margin-top: 30px; font-size: .88rem; color: var(--dim); max-width: 600px; margin-left: auto; margin-right: auto; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { position: relative; margin-top: 40px; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(6, 10, 20, .8)); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 64px 0 44px; }
.footer-brand .logo-img { height: 56px; max-width: 240px; margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: .88rem; max-width: 280px; }
.footer-col h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .16em; color: var(--dim); margin-bottom: 16px; font-family: var(--font-mono); font-weight: 500; }
.footer-col a { display: block; color: var(--muted); font-size: .88rem; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 22px 0; border-top: 1px solid var(--line);
  font-size: .78rem; color: var(--dim);
}
.status-pill { display: inline-flex; align-items: center; gap: 8px; }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.footer-bottom .mono { color: rgba(34, 211, 238, .4); }

/* ============================================================
   SALEPAGE
   ============================================================ */
.salepage { padding-top: 24px; }
.promo-banner {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  border-radius: var(--r-md); padding: 13px 20px; font-size: .9rem; margin: 20px auto 34px; max-width: 820px;
  background: linear-gradient(90deg, rgba(34, 211, 238, .1), rgba(139, 92, 246, .12));
  border: 1px solid rgba(34, 211, 238, .3);
}
.promo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulse 2s infinite; }
.promo-banner code { color: var(--cyan); font-weight: 600; }
.countdown { color: var(--cyan); font-weight: 700; }
.welcome-pill {
  display: inline-block; margin-top: 20px; padding: 9px 18px;
  border: 1px dashed rgba(34, 211, 238, .45); border-radius: 999px;
  font-size: .84rem; color: #bfe9f5; background: rgba(34, 211, 238, .05);
}
.sale-hero { position: relative; text-align: center; padding: 56px 0 20px; }
.sale-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); margin: 18px 0 16px; }
.sale-tagline { font-size: 1.24rem; color: var(--muted); max-width: 600px; margin: 0 auto; text-wrap: balance; }
.sale-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.sale-hero-reassure { margin-top: 18px; font-size: .72rem; color: var(--dim); letter-spacing: .12em; text-transform: uppercase; }

.sale-visual { max-width: 960px; margin: 64px auto 0; position: relative; }
.sale-visual .mock { border-radius: var(--r-lg); }
.sale-app-wrap {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, .22);
  box-shadow: var(--shadow-lg), 0 0 70px rgba(34, 211, 238, .14);
  background: #030509;
  text-align: left;
}
.sale-app-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.sale-app-url {
  flex: 1;
  max-width: 420px;
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--dim);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 14px;
  text-align: center;
}
.sale-app-wrap img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  background: #030509;
}
.sale-video-wrap {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 41, 117, .22);
  box-shadow: var(--shadow-lg), 0 0 70px rgba(255, 41, 117, .14);
  background: #120e1d;
}
.sale-video { display: block; width: 100%; height: auto; background: #120e1d; }
.sale-video-cap {
  margin: 0; padding: 10px 16px 14px;
  font-size: .72rem; color: var(--dim); letter-spacing: .06em; text-align: center;
}

.shot-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 12px;
}
.shot-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(6, 10, 20, .7);
  cursor: zoom-in;
  text-align: left;
  color: inherit;
  font: inherit;
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.shot-card:hover, .shot-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 41, 117, .4);
  box-shadow: var(--shadow-lg), 0 0 32px rgba(255, 41, 117, .12);
  outline: none;
}
.shot-wide { grid-column: span 2; }
.shot-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  background: #120e1d;
}
.shot-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 22px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(6, 10, 20, .94));
}
.shot-cap b { font-size: .92rem; color: var(--text); }
.shot-cap span { font-size: .78rem; color: var(--muted); }
.shot-lb {
  position: fixed; inset: 0; z-index: 80;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 24px;
  background: rgba(3, 5, 9, .82);
  backdrop-filter: blur(10px);
}
.shot-lb[hidden] { display: none; }
.shot-lb img {
  max-width: min(1120px, 92vw);
  max-height: 78vh;
  width: auto; height: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 41, 117, .28);
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  background: #120e1d;
}
.shot-lb-cap { margin: 0; color: var(--muted); font-size: .88rem; text-align: center; max-width: 640px; }
.shot-lb-cap b { color: var(--text); }
.shot-lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(6,10,20,.8);
  color: var(--text); font-size: 1.4rem; cursor: pointer;
}
.shot-lb-nav:hover { border-color: var(--cyan); color: var(--cyan); }
.shot-lb-prev { left: 16px; }
.shot-lb-next { right: 16px; }
.shot-lb-close {
  position: absolute; top: 16px; right: 18px;
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(6,10,20,.8);
  color: var(--text); font-size: 1.1rem; cursor: pointer;
}
.shot-lb-close:hover { border-color: var(--danger); color: var(--danger); }
@media (max-width: 900px) {
  .shot-grid { grid-template-columns: 1fr 1fr; }
  .shot-wide { grid-column: 1 / -1; }
  .shot-lb-nav { display: none; }
}
@media (max-width: 560px) {
  .shot-grid { grid-template-columns: 1fr; }
}

/* --- invoice mockup --- */
.mock-invoice { text-align: left; font-size: .82rem; padding: 0; overflow: hidden; }
.mi-head { display: flex; justify-content: space-between; align-items: center; padding: 24px 30px; border-bottom: 1px solid var(--line); }
.mi-head b { font-family: var(--font-display); font-size: 1.05rem; }
.mi-head .mi-due { text-align: right; color: var(--dim); font-size: .72rem; }
.mi-body { padding: 24px 30px; display: grid; gap: 12px; }
.mi-row { display: flex; justify-content: space-between; color: var(--muted); }
.mi-row b { color: var(--text); font-weight: 500; }
.mi-row.total { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; color: var(--text); font-weight: 700; font-size: .95rem; }
.mi-stamp {
  position: absolute; top: 66px; right: 34px; transform: rotate(8deg);
  font-family: var(--font-mono); font-size: .72rem; font-weight: 700; letter-spacing: .3em;
  color: var(--ok); border: 2px solid rgba(52, 211, 153, .55); border-radius: 8px; padding: 5px 14px 5px 17px;
  background: rgba(52, 211, 153, .08);
}
.mock-invoice { position: relative; }

/* --- browser / speed mockup --- */
.mock-browser { overflow: hidden; text-align: left; }
.mb-bar { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.mb-url {
  flex: 1; max-width: 380px; margin: 0 auto;
  font-family: var(--font-mono); font-size: .72rem; color: var(--dim);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 14px; text-align: center;
}
.mb-body { padding: 34px 30px 40px; display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center; }
.gauge {
  width: 150px; height: 150px; border-radius: 50%;
  background: conic-gradient(var(--ok) 0 100%, rgba(148, 163, 184, .12) 0);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.gauge::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--bg-2); }
.gauge b { position: relative; font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--ok); letter-spacing: -.03em; }
.gauge b small { display: block; font-family: var(--font-mono); font-size: .6rem; font-weight: 500; color: var(--dim); text-align: center; letter-spacing: .2em; }
.mb-metrics { display: grid; gap: 12px; }
.mb-metric { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: .82rem; color: var(--muted); border-bottom: 1px dashed var(--line); padding-bottom: 10px; }
.mb-metric .mono { color: var(--ok); font-size: .78rem; }

/* ---------- sticky purchase bar ---------- */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  transform: translateY(110%); transition: transform .45s var(--ease);
  background: rgba(4, 7, 14, .85);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-top: 1px solid var(--line-2);
  padding: 13px 0;
}
.buybar.show { transform: translateY(0); }
.buybar-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.buybar-info b { font-family: var(--font-display); font-size: .95rem; }
.buybar-info .mono { color: var(--cyan); font-size: .82rem; }
.buybar-note { font-size: .72rem; color: var(--dim); }
.buybar-actions { display: flex; gap: 10px; }

/* ============================================================
   LONG-FORM LETTER — mirrors homepage design system
   ============================================================ */
.sale-desc-body { text-align: left; font-size: 1.04rem; color: #c6cfe0; max-width: 780px; margin: 0 auto; }
.sale-desc-body p { margin-bottom: 20px; line-height: 1.8; }
.sale-desc-body strong { color: var(--text); }

/* letter h2 = section-head treatment (eyebrow dashes) */
.sale-desc-body h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 72px 0 20px; color: var(--text); letter-spacing: -.025em;
  display: flex; align-items: center; justify-content: center; gap: 20px; text-align: center;
}
.sale-desc-body h2::before, .sale-desc-body h2::after {
  content: ""; height: 1px; width: 44px; flex-shrink: 0;
}
.sale-desc-body h2::before { background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .55)); }
.sale-desc-body h2::after { background: linear-gradient(90deg, rgba(34, 211, 238, .55), transparent); }

/* letter h3 = bento marker */
.sale-desc-body h3 {
  font-size: 1.28rem; margin: 38px 0 12px; color: var(--text);
  display: flex; align-items: center; gap: 12px; letter-spacing: -.015em;
}
.sale-desc-body h3::before {
  content: ""; width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0;
  background: var(--grad); box-shadow: 0 0 12px rgba(34, 211, 238, .5);
}
.sale-desc-body h4 { font-size: 1rem; margin: 26px 0 8px; color: var(--text); font-weight: 600; }

.sale-desc-body ul { margin: 0 0 20px; list-style: none; display: grid; gap: 10px; }
.sale-desc-body ul li { padding-left: 28px; position: relative; }
.sale-desc-body ul li::before {
  content: ""; position: absolute; left: 2px; top: 10px; width: 8px; height: 8px;
  border-radius: 2.5px; background: var(--grad);
  box-shadow: 0 0 10px rgba(34, 211, 238, .45);
}
.sale-desc-body code {
  font-family: var(--font-mono); font-size: .88em; color: var(--cyan);
  background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .2);
  border-radius: 6px; padding: 1px 7px;
}

/* hook = mini display headline */
.sale-desc-body .sp-hook {
  font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700;
  line-height: 1.35; letter-spacing: -.025em; text-align: center; color: var(--text);
  border: 0; padding: 6px 0 30px; margin-bottom: 8px; text-wrap: balance;
}
.sale-desc-body .sp-hook em {
  font-style: normal; background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* pain / gain = glass panels with gradient hairline (like bento) */
.sale-desc-body .pain-box, .sale-desc-body .gain-box {
  position: relative; border-radius: var(--r-lg);
  padding: 32px 34px; margin: 44px 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.sale-desc-body .pain-box::before, .sale-desc-body .gain-box::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.sale-desc-body .pain-box::before {
  background: linear-gradient(160deg, rgba(248, 113, 113, .45), rgba(148, 163, 184, .08) 45%, rgba(251, 146, 60, .3));
}
.sale-desc-body .gain-box::before {
  background: linear-gradient(160deg, rgba(52, 211, 153, .45), rgba(148, 163, 184, .08) 45%, rgba(34, 211, 238, .3));
}
.sale-desc-body .pain-box h4, .sale-desc-body .gain-box h4 {
  display: flex; align-items: center; gap: 12px;
  margin: -8px 0 16px; font-family: var(--font-display); font-size: 1.12rem; letter-spacing: -.015em;
}
.sale-desc-body .pain-box h4::before, .sale-desc-body .gain-box h4::before {
  content: ""; width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0;
}
.sale-desc-body .pain-box h4 { color: #fca5a5; }
.sale-desc-body .pain-box h4::before { background: var(--danger); box-shadow: 0 0 14px var(--danger); }
.sale-desc-body .gain-box h4 { color: #86efac; }
.sale-desc-body .gain-box h4::before { background: var(--ok); box-shadow: 0 0 14px var(--ok); }
.sale-desc-body .pain-box ul li::before {
  background: linear-gradient(100deg, #f87171, #fb923c); box-shadow: 0 0 10px rgba(248, 113, 113, .45);
}
.sale-desc-body .gain-box ul li::before {
  background: linear-gradient(100deg, #34d399, #22d3ee); box-shadow: 0 0 10px rgba(52, 211, 153, .45);
}

/* who-grid = bento cards (identical to homepage) */
.sale-desc-body .who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 40px 0; }
.sale-desc-body .who-card {
  position: relative; border-radius: var(--r-lg);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.sale-desc-body .who-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(160deg, rgba(148, 163, 184, .28), rgba(148, 163, 184, .06) 40%, rgba(34, 211, 238, .18));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.sale-desc-body .who-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg), var(--glow-cyan); }
.sale-desc-body .who-card h5 {
  font-size: .95rem; margin: 0 0 2px; color: var(--text); font-family: var(--font-display);
  letter-spacing: -.01em; display: flex; align-items: center; gap: 9px;
}
.sale-desc-body .who-card h5::before {
  content: ""; width: 8px; height: 8px; border-radius: 3px; flex-shrink: 0;
  background: var(--grad); box-shadow: 0 0 10px rgba(34, 211, 238, .5);
}
.sale-desc-body .who-card p { font-size: .87rem; margin: 0; color: var(--muted); line-height: 1.65; }

/* compare-table = table-wrap (identical to homepage) */
.sale-desc-body .compare-table {
  width: 100%; margin: 30px 0 38px; font-size: .92rem;
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: rgba(6, 10, 20, .5); border-collapse: separate; border-spacing: 0;
}
.sale-desc-body .compare-table td { padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sale-desc-body .compare-table tr:last-child td { border-bottom: 0; }
.sale-desc-body .compare-table tr:first-child td {
  background: rgba(255, 255, 255, .025); color: var(--dim);
  font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600;
}
.sale-desc-body .compare-table tr:first-child td strong {
  color: var(--text); font-weight: 600; font-size: .78rem;
}
.sale-desc-body .compare-table tr:first-child td:last-child strong { color: var(--cyan); }
.sale-desc-body .compare-table td:last-child { color: var(--text); background: rgba(34, 211, 238, .04); }
.sale-desc-body .compare-table td:first-child { color: var(--text); font-weight: 500; }

/* sp-quote = quote-card */
.sale-desc-body .sp-quote {
  position: relative; border-radius: var(--r-lg);
  padding: 28px 30px; margin: 40px 0;
  background: linear-gradient(180deg, rgba(34, 211, 238, .05), rgba(120, 160, 255, .02));
  font-style: normal; color: #dbe3f0;
}
.sale-desc-body .sp-quote::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(160deg, rgba(34, 211, 238, .4), rgba(148, 163, 184, .08) 50%, rgba(139, 92, 246, .3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.sale-desc-body .sp-quote::after {
  content: "\201C"; position: absolute; top: 6px; left: 20px;
  font-family: var(--font-display); font-size: 3.4rem; line-height: 1;
  color: rgba(34, 211, 238, .35); pointer-events: none;
}
.sale-desc-body .sp-quote > * { position: relative; }
.sale-desc-body .sp-quote footer { font-family: var(--font-mono); font-size: .74rem; color: var(--dim); margin-top: 10px; }

/* spec-list = stats band (identical to homepage) */
.sale-desc-body .spec-list {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; margin: 40px 0;
}
.sale-desc-body .spec-list div {
  background: linear-gradient(180deg, rgba(13, 19, 35, .8), rgba(6, 10, 20, .9));
  padding: 26px 14px; text-align: center; border: 0; border-radius: 0;
  font-size: .76rem; color: var(--dim); transition: background .25s;
}
.sale-desc-body .spec-list div:hover { background: linear-gradient(180deg, rgba(13, 19, 35, .95), rgba(6, 10, 20, .95)); }
.sale-desc-body .spec-list strong {
  display: block; font-family: var(--font-display); font-size: 1.45rem;
  font-weight: 700; letter-spacing: -.03em; margin-bottom: 4px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (max-width: 860px) {
  .sale-desc-body .who-grid { grid-template-columns: 1fr; }
  .sale-desc-body .spec-list { grid-template-columns: 1fr 1fr; }
  .sale-desc-body .pain-box, .sale-desc-body .gain-box { padding: 26px 22px; }
}

/* ---------- features at a glance ---------- */
.features-list { list-style: none; max-width: 680px; margin: 30px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.features-list li {
  display: flex; gap: 12px; align-items: flex-start; text-align: left; font-size: .92rem;
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px;
  background: var(--surface); transition: border-color .25s, transform .25s var(--ease);
}
.features-list li:hover { border-color: rgba(34, 211, 238, .4); transform: translateY(-2px); }
.feat-check {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(52, 211, 153, .14); color: var(--ok);
}
.feat-check svg { width: 11px; height: 11px; }

/* ---------- pricing ---------- */
.pricing-card {
  position: relative; max-width: 660px; margin: 40px auto 0; padding: 44px 40px; border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
}
.pricing-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(160deg, rgba(34, 211, 238, .45), rgba(148, 163, 184, .1) 45%, rgba(139, 92, 246, .4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.price-row { display: flex; align-items: stretch; gap: 30px; flex-wrap: wrap; justify-content: center; }
.price-col { flex: 1 1 220px; display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; position: relative; padding-top: 8px; }
.price-divider { width: 1px; background: var(--line); }
.price-plan { font-size: .78rem; text-transform: uppercase; letter-spacing: .18em; color: var(--dim); font-family: var(--font-mono); }
.price-amount { font-family: var(--font-display); font-size: 2.7rem; font-weight: 700; letter-spacing: -.04em; }
.price-amount span { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-badge {
  position: absolute; top: -16px;
  background: var(--grad); color: #fff; font-size: .66rem; font-weight: 700;
  padding: 5px 14px; border-radius: 999px; text-transform: uppercase; letter-spacing: .12em;
  box-shadow: 0 6px 24px rgba(59, 130, 246, .45);
}
.price-note { font-size: .76rem; color: var(--dim); }
.pricing-assure { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .74rem; color: var(--muted); letter-spacing: .08em; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.pricing-assure span::before { content: "✓ "; color: var(--ok); }
.sale-fineprint { margin-top: 18px; font-size: .78rem; color: var(--dim); text-align: center; }

.invoice-toolbar { display: flex; justify-content: space-between; align-items: center; margin: 24px 0 16px; }
.invoice-sheet { padding: 36px 40px; max-width: 760px; margin: 0 auto 48px; border-radius: var(--r-lg); }
.inv-head { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.inv-meta { text-align: right; }
.inv-meta h1 { font-size: 1.6rem; margin: 0 0 6px; }
.inv-brand { font-family: var(--font-display); font-weight: 600; margin: 8px 0 4px; }
.inv-logo { display: block; max-height: 48px; width: auto; margin-bottom: 8px; }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 24px; }
.inv-parties h2 { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); margin: 0 0 6px; }
.inv-lines { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.inv-lines th, .inv-lines td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; }
.inv-lines tfoot th { border-bottom: 0; padding-top: 14px; }
.inv-foot { margin-top: 28px; }
.sheet-classic { background: #fff; color: #141414; border: 1px solid rgba(255,255,255,.08); }
.sheet-classic .muted, .sheet-classic .inv-parties h2 { color: #6b7280; }
.sheet-classic .inv-lines th, .sheet-classic .inv-lines td { border-bottom-color: #e5e7eb; }
.sheet-studio { background: #12141a; color: #ececec; border: 1px solid rgba(34,211,238,.22); box-shadow: 0 0 0 3px #12141a, 0 0 0 4px rgba(34,211,238,.35); }
.sheet-studio .muted, .sheet-studio .inv-parties h2 { color: #9aa3b2; }
.sheet-minimal { background: #f7f5ef; color: #161616; border: 1px solid rgba(0,0,0,.06); }
.sheet-minimal .inv-meta h1 { font-size: 2rem; font-weight: 500; }
.sheet-minimal .muted, .sheet-minimal .inv-parties h2 { color: #6b6b6b; }
.tpl-label { font-size: .84rem; font-weight: 500; color: var(--muted); }
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tpl-card {
  display: grid; gap: 8px; padding: 12px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255,255,255,.02);
  cursor: pointer; color: inherit;
}
.tpl-card input { position: absolute; opacity: 0; pointer-events: none; }
.tpl-card:has(input:checked) { border-color: rgba(34,211,238,.55); box-shadow: 0 0 0 3px rgba(34,211,238,.12); }
.tpl-card b { font-size: .92rem; }
.tpl-card span { font-size: .78rem; color: var(--muted); line-height: 1.4; }
.tpl-mini { display: block; height: 92px; border-radius: 8px; position: relative; overflow: hidden; }
.tpl-mini .ln { display: block; height: 4px; width: 70%; margin: 8px 12px; border-radius: 2px; background: currentColor; opacity: .35; }
.tpl-mini .ln.s { width: 48%; opacity: .2; }
.tpl-mini .ln.fat { height: 10px; width: 54%; opacity: .55; }
.tpl-mini-classic { background: #f4f4f5; color: #111; }
.tpl-mini-classic .bar { display: block; height: 22px; background: #0b1220; }
.tpl-mini-classic .rule { display: block; height: 3px; background: #22d3ee; }
.tpl-mini-studio { background: #12141a; color: #ececec; }
.tpl-mini-studio .spine { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: #22d3ee; }
.tpl-mini-studio .ln { margin-left: 18px; }
.tpl-mini-minimal { background: #f7f5ef; color: #111; padding-top: 16px; }
.logo-preview { display: grid; gap: 10px; align-content: start; }
.logo-preview img { max-height: 64px; width: auto; object-fit: contain; background: #fff; border-radius: 8px; padding: 8px 12px; }
@media (max-width: 800px) { .tpl-grid { grid-template-columns: 1fr; } }

.mind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.mind-card { display: grid; gap: 6px; padding: 18px 18px 16px; border-radius: var(--r-lg); }
.mind-card b { font-family: var(--font-display); font-size: 1.05rem; }
.mind-shell { position: relative; }
.mind-work { display: flex; align-items: stretch; min-height: 0; }
.mind-side {
  width: 260px; flex: none; overflow: auto;
  border-right: 1px solid var(--line);
  background: rgba(4, 7, 14, .55);
  padding: 12px;
  max-height: calc(100vh - 140px);
}
.mind-side input { margin-bottom: 10px; padding: 8px 10px; }
.mind-stage { flex: 1; min-width: 0; position: relative; }
#mind-outline { display: grid; gap: 2px; }
.ol-item {
  display: block; width: 100%; text-align: left;
  background: transparent; border: 0; color: var(--muted);
  border-radius: 8px; padding: 6px 8px; cursor: pointer;
  font: inherit; font-size: .84rem;
}
.ol-item.on, .ol-item:hover { background: rgba(34,211,238,.08); color: var(--text); }
#layout { width: auto; padding: 8px 10px; }
@media (max-width: 800px) {
  .mind-work { flex-direction: column; }
  .mind-side { width: auto; max-height: 180px; }
}
.mind-bar [hidden] { display: none !important; }
.mind-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 16px; border-bottom: 1px solid var(--line);
  background: rgba(4,7,14,.8);
}
.mind-bar input[type="text"] { max-width: 320px; padding: 8px 12px; }
#mind { display: block; width: 100%; background: #070b14; cursor: grab; touch-action: none; }
#mind:active { cursor: grabbing; }
.mind-help { margin: 0; padding: 8px 16px 12px; font-size: .72rem; color: var(--dim); }
.mind-edit {
  position: absolute; z-index: 5;
  background: #0c1220; color: var(--text);
  border: 1px solid rgba(34,211,238,.55); border-radius: 8px;
  padding: 6px 8px; font: 600 14px Inter, system-ui, sans-serif;
}
@media print {
  .nav, .footer, .invoice-toolbar, .buybar, .backtotop, .bg-aurora, .bg-grid, .bg-noise, .scroll-progress { display: none !important; }
  body { background: #fff !important; color: #111 !important; }
  .invoice-sheet { box-shadow: none; border: 0; background: #fff; color: #111; }
}

/* ============================================================
   AUTH
   ============================================================ */
.auth-wrap { display: flex; justify-content: center; padding: 80px 24px 100px; }
.auth-card { width: 100%; max-width: 430px; padding: 44px 40px; border-radius: var(--r-xl); text-align: center; }
.auth-card h1 { font-size: 1.65rem; margin-bottom: 8px; }
.auth-card > p { margin-bottom: 26px; color: var(--muted); }
.auth-mark { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .6em; color: rgba(34, 211, 238, .55); margin-bottom: 18px; }
.auth-alt { margin-top: 20px; font-size: .88rem; color: var(--muted); }
.stack { display: grid; gap: 16px; text-align: left; }
.stack label, .form-row label { display: grid; gap: 7px; font-size: .84rem; font-weight: 500; color: var(--muted); }
input, textarea, select {
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); border-radius: 11px;
  color: var(--text); font: inherit; padding: 12px 15px; width: 100%;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: rgba(34, 211, 238, .55); box-shadow: 0 0 0 4px rgba(34, 211, 238, .1); background: rgba(34, 211, 238, .03); }
input::placeholder, textarea::placeholder { color: var(--dim); }
.check-label { display: flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 500; color: var(--muted); }
.check-label input { width: auto; }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dash { padding: 60px 0 100px; }
.dash-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 36px; flex-wrap: wrap; gap: 16px; }
.dash-head h1 { font-size: 2rem; }
.dash-head-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.app-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.app-nav a { color: var(--muted); padding: 8px 14px; border-radius: 11px; font-size: .9rem; font-weight: 500; border: 1px solid transparent; }
.app-nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.app-nav a.on { color: var(--text); background: linear-gradient(90deg, rgba(34,211,238,.12), rgba(34,211,238,.04)); border-color: rgba(34,211,238,.25); }
.app-nav-back { margin-left: auto; }
.app-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 40px; }
.app-stat { padding: 18px 20px; }
.app-stat b { display: block; font-size: 1.55rem; font-family: var(--font-display); letter-spacing: -.03em; }
.app-stat span { color: var(--dim); font-size: .78rem; }
@media (max-width: 700px) { .app-stats { grid-template-columns: 1fr; } }

html.js .line-fallback {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
html:not(.js) .line-table-wrap { display: none; }
.line-table-label {
  font-size: .84rem; font-weight: 500; color: var(--muted); margin-bottom: 8px;
}
.line-table { width: 100%; border-collapse: collapse; }
.line-table th {
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--dim); font-weight: 600; padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.line-table td {
  padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: middle;
}
.line-table tbody td:first-child { width: 48%; }
.line-table input { padding: 8px 10px; border-radius: 8px; }
.line-table input[data-qty] { width: 72px; text-align: right; }
.line-table input[data-unit] { width: 118px; text-align: right; }
.line-amt { color: var(--text); font-size: .88rem; white-space: nowrap; }
.line-table tfoot th, .line-table tfoot td {
  border-bottom: 0; padding-top: 14px; font-size: .95rem;
}
.line-del {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid transparent; background: transparent;
  color: var(--dim); cursor: pointer; font-size: 1.15rem; line-height: 1;
}
.line-del:hover { color: var(--danger); border-color: rgba(248,113,113,.35); }
#add-line { margin-top: 10px; }
@media (max-width: 700px) {
  .line-table input[data-qty], .line-table input[data-unit] { width: 100%; }
}
.alert-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.account-card { max-width: 560px; }
.account-meta { margin: 0 0 8px; }
.account-meta dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); margin-bottom: 4px; }
.account-meta dd { margin: 0 0 14px; color: var(--text); }
.dash-section { margin-bottom: 52px; }
.dash-section h2 { font-size: 1.25rem; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.dash-section h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.license-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.license-card { padding: 24px; border-radius: var(--r-lg); }
.license-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.license-top h3 { font-size: 1.08rem; }
.license-k { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); margin-bottom: 6px; }
.license-key-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.license-key {
  background: rgba(34, 211, 238, .05); border: 1px solid rgba(34, 211, 238, .3);
  border-radius: 10px; padding: 9px 14px; font-family: var(--font-mono);
  font-size: .92rem; color: var(--cyan); letter-spacing: .06em; user-select: all;
  white-space: nowrap;
}
.license-key-lg { font-size: 1.02rem; }
.license-meta { font-size: .8rem; color: var(--dim); margin-bottom: 12px; }
.device-list { list-style: none; margin: 12px 0; display: grid; gap: 7px; font-size: .76rem; }
.device-list li { color: var(--muted); padding: 8px 12px; background: rgba(255, 255, 255, .02); border: 1px solid var(--line); border-radius: 9px; }
.empty-cta { border: 1px dashed var(--line-2); border-radius: var(--r-lg); padding: 48px; display: grid; gap: 16px; justify-items: center; }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(6, 10, 20, .5); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 640px; }
thead th {
  text-align: left; padding: 14px 18px; color: var(--dim);
  font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600;
  border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02);
}
tbody td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: rgba(34, 211, 238, .02); }
tbody tr:last-child td { border-bottom: 0; }
.actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.searchbar { display: flex; gap: 10px; margin-bottom: 18px; max-width: 480px; }
.days-input { width: 70px !important; padding: 5px 8px !important; }
.extend-form { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--dim); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.form-actions { display: flex; gap: 12px; margin-top: 6px; }

/* ============================================================
   ADMIN
   ============================================================ */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side {
  border-right: 1px solid var(--line);
  background: rgba(6, 10, 20, .7);
  display: flex; flex-direction: column; gap: 28px;
  padding: 26px 18px; position: sticky; top: 0; height: 100vh;
  overflow-x: hidden; overflow-y: auto;
}
.admin-brand { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 0 8px; }
.admin-brand .mono { color: rgba(34, 211, 238, .6); font-size: .64rem; letter-spacing: .4em; text-transform: uppercase; }
.admin-nav { display: grid; gap: 3px; }
.admin-nav a { color: var(--muted); padding: 10px 14px; border-radius: 11px; font-size: .9rem; font-weight: 500; transition: all .2s; border: 1px solid transparent; }
.admin-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.admin-nav a.on { color: var(--text); background: linear-gradient(90deg, rgba(34, 211, 238, .12), rgba(34, 211, 238, .04)); border-color: rgba(34, 211, 238, .25); }
.admin-side-foot { margin-top: auto; display: grid; gap: 8px; font-size: .84rem; padding: 0 8px; }
.admin-main { padding: 34px 40px 90px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.admin-topbar h1 { font-size: 1.6rem; }
.panel { border-radius: var(--r-lg); padding: 28px; margin-bottom: 22px; }
.panel-head { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat-grid-4 { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.stat-card { padding: 22px; border-radius: var(--r-lg); }
.stat-num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; letter-spacing: -.03em; }
.stat-label { font-size: .72rem; color: var(--dim); text-transform: uppercase; letter-spacing: .12em; margin-top: 4px; }

/* ---------- error page ---------- */
.legal-wrap { max-width: 760px; margin: 0 auto; }
.legal-head { margin-bottom: 36px; text-align: left; justify-items: start; }
.legal-page { padding-top: 48px; }
.center-page { max-width: 640px; margin: 110px auto; padding: 0 24px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.error-code { font-family: var(--font-display); font-size: 6rem; font-weight: 700; letter-spacing: -.04em; background: linear-gradient(100deg, rgba(34,211,238,.5), rgba(59,130,246,.3)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ============================================================
   SUCCESS / CANCEL
   ============================================================ */
.success-check {
  width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff; font-size: 1.7rem; font-weight: 700;
  box-shadow: 0 0 50px rgba(59, 130, 246, .45);
}
.center-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 18px 0; flex-wrap: wrap; }
.cancel-kicker { font-family: var(--font-mono); color: var(--cyan); font-size: .68rem; letter-spacing: .34em; text-transform: uppercase; margin-bottom: 12px; }
.offer-box, .cooldown-box { border-radius: var(--r-lg); padding: 28px; margin: 22px 0; }
.offer-box { border: 1px solid rgba(34, 211, 238, .35); background: linear-gradient(180deg, rgba(34, 211, 238, .06), transparent); }
.offer-percent { font-family: var(--font-display); font-size: 3rem; font-weight: 700; letter-spacing: -.04em; }
.cooldown-box { border: 1px solid var(--line-2); background: var(--surface); }
.cooldown-date { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--cyan); margin-top: 6px; letter-spacing: -.02em; }
.offer-actions { display: grid; gap: 10px; margin-top: 10px; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card, .bento-card.wide, .bento-card.tall { grid-column: span 2; grid-row: auto; min-height: 0; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .mb-body { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .mb-metric { text-align: left; }
}
@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .admin-nav { display: flex; flex-wrap: wrap; }
  .admin-side-foot { margin: 0; display: flex; gap: 14px; }
}
@media (max-width: 640px) {
  .nav-links > a:not(.btn), .nav-links form { display: none; }
  .section { padding: 76px 0; }
  .hero { padding: 64px 0 20px; }
  .hero-pill { max-width: calc(100% - 8px); font-size: .75rem; text-wrap: balance; }
  .nav-inner .logo-img, .logo-img { height: 38px; }
  .footer-brand .logo-img { height: 48px; }
  .fc-1 { right: 2%; top: -18px; }
  .fc-2 { left: 2%; }
  .float-card { padding: 11px 14px; font-size: .72rem; }
  .term { font-size: .72rem; }
  .features-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .buybar-note { display: none; }
  .price-row { gap: 20px; }
  .price-divider { display: none; }
  .stat-cell { padding: 24px 14px; }
}

/* ============================================================
   v2 ADDITIONS · motion, drawer, toggle, bento features, OG
   ============================================================ */

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--grad); z-index: 300;
  box-shadow: 0 0 12px rgba(34, 211, 238, .5);
}

/* ---------- burger + mobile drawer ---------- */
.burger {
  display: none; flex-direction: column; gap: 5px; justify-content: center;
  width: 40px; height: 40px; padding: 9px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); border-radius: 10px;
}
.burger span { display: block; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s var(--ease), opacity .2s; }
body.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 95;
  background: rgba(3, 5, 9, .96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-110%); transition: transform .4s var(--ease);
  padding: 10px 28px 26px;
}
body.menu-open .mobile-menu { transform: translateY(0); }
.mobile-menu nav { display: grid; gap: 4px; }
.mobile-menu a {
  color: var(--text); font-size: 1.05rem; font-weight: 500;
  padding: 14px 10px; border-bottom: 1px solid var(--line);
}
.mobile-menu a.btn { margin-top: 14px; text-align: center; border-bottom: 0; }
@media (max-width: 860px) {
  .burger { display: flex; }
  .nav-links { display: none; }
}

/* ---------- scroll-spy ---------- */
.nav-links > a.active { color: var(--cyan); }

/* ---------- plan toggle ---------- */
.plan-toggle {
  display: flex; gap: 4px; margin: 0 auto 8px; width: max-content;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px;
}
.pt-opt {
  border: 0; background: transparent; color: var(--muted);
  font: inherit; font-size: .88rem; font-weight: 600;
  padding: 9px 22px; border-radius: 999px;
  transition: all .25s var(--ease);
  display: inline-flex; align-items: center; gap: 8px;
}
.pt-opt.on {
  background: var(--grad); color: #fff;
  box-shadow: 0 6px 20px rgba(59, 130, 246, .35);
}
.pt-save {
  font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  background: rgba(52, 211, 153, .18); color: var(--ok);
  border-radius: 999px; padding: 2px 8px;
}
.pt-opt.on .pt-save { background: rgba(255, 255, 255, .22); color: #fff; }
.plan-view { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 30px 0 10px; }
.plan-view .price-note b.save-badge {
  color: var(--ok); background: rgba(52, 211, 153, .12);
  border: 1px solid rgba(52, 211, 153, .35);
  border-radius: 999px; padding: 3px 12px; font-weight: 600;
}
body.plan-yearly .js-pm { display: none !important; }
body:not(.plan-yearly) .js-py { display: none !important; }
.plan-cta { display: flex; justify-content: center; padding: 8px 0 6px; }

/* ---------- salepage proof row ---------- */
.sale-proof {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-top: 30px; flex-wrap: wrap;
}
.avatar-stack { display: flex; }
.avatar-stack .qa { width: 34px; height: 34px; font-size: .72rem; border: 2px solid var(--bg); margin-left: -9px; }
.avatar-stack .qa:first-child { margin-left: 0; }
.avatar-stack .qa.more { background: rgba(255, 255, 255, .08); color: var(--muted); font-family: var(--font-mono); font-size: .6rem; backdrop-filter: blur(6px); }
.proof-text { font-size: .88rem; color: var(--muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.proof-text b { color: var(--text); }
.stars-row { display: inline-flex; gap: 2px; color: #fbbf24; }
.stars-row svg { width: 14px; height: 14px; }

/* ---------- features with icons ---------- */
.features-list li { align-items: center; }
.fico { margin: 0; flex-shrink: 0; }
.fico svg { display: block; }

/* ---------- FAQ two columns ---------- */
.faq-list.cols { display: block; columns: 2; column-gap: 16px; max-width: 900px; }
.faq-list.cols .faq-item { break-inside: avoid; margin-bottom: 12px; }
@media (max-width: 860px) { .faq-list.cols { columns: 1; } }

/* ---------- payment chips ---------- */
.pay-chips {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-top: 26px; font-size: .66rem; letter-spacing: .18em; color: var(--dim);
}
.pay-chips span {
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 14px;
  background: rgba(255, 255, 255, .02);
}

/* ---------- guarantee seal shimmer ---------- */
.seal-shimmer { position: relative; overflow: hidden; }
.seal-shimmer::before {
  content: ""; position: absolute; inset: -40%;
  background: conic-gradient(from 0deg, transparent 0 340deg, rgba(52, 211, 153, .5) 355deg, transparent 360deg);
  animation: seal-spin 5s linear infinite;
}
.seal-shimmer b, .seal-shimmer { isolation: isolate; }
@keyframes seal-spin { to { transform: rotate(360deg); } }

/* ---------- product-card mini mockups (home) ---------- */
.pc-mock {
  position: relative; height: 96px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background:
    radial-gradient(120% 140% at 50% -20%, rgba(34, 211, 238, .08), transparent 60%), var(--bg-2);
}
.pcm-term { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; font-family: var(--font-mono); font-size: .68rem; }
.pcmd { display: flex; gap: 4px; margin-bottom: 2px; }
.pcmd i { width: 7px; height: 7px; border-radius: 50%; background: rgba(248, 113, 113, .8); }
.pcmd i:nth-child(2) { background: rgba(251, 191, 36, .8); }
.pcmd i:nth-child(3) { background: rgba(52, 211, 153, .8); }
.pclin b { color: var(--cyan); font-weight: 500; margin-right: 6px; }
.pclin.dim { color: var(--dim); }
.pcm-inv { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.pcil { display: block; height: 7px; border-radius: 4px; background: rgba(148, 163, 184, .22); }
.pcil.w40 { width: 40%; } .pcil.w45 { width: 45%; } .pcil.w60 { width: 60%; } .pcil.w70 { width: 70%; } .pcil.w80 { width: 80%; }
.pcpaid {
  position: absolute; top: 10px; right: 12px;
  font-size: .56rem; font-weight: 700; letter-spacing: .25em; color: var(--ok);
  border: 1.5px solid rgba(52, 211, 153, .55); border-radius: 6px; padding: 3px 8px 3px 11px;
  transform: rotate(6deg); background: rgba(52, 211, 153, .08);
}
.pcm-land { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 14px; }
.pcgauge {
  width: 62px; height: 62px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(var(--ok) 0 100%, rgba(148, 163, 184, .15) 0);
  display: flex; align-items: center; justify-content: center; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--ok);
  isolation: isolate;
}
.pcgauge::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--bg-2); z-index: -1; }
.pcbars { display: flex; flex-direction: column; gap: 8px; flex: 1; max-width: 130px; }

/* ============================================================
   SHOWCASE BENTO · animated product demos
   ============================================================ */
.sc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sc-card { display: flex; flex-direction: column; overflow: hidden; }
.sc-card.big { grid-row: span 1; }
.sc-demo {
  height: 210px; padding: 22px; position: relative; overflow: hidden;
  background:
    radial-gradient(120% 120% at 50% -10%, rgba(34, 211, 238, .07), transparent 60%), var(--bg-2);
  border-bottom: 1px solid var(--line);
  font-size: .78rem;
}
.sc-cap { padding: 18px 22px 20px; display: grid; gap: 4px; }
.sc-cap b { font-family: var(--font-display); font-size: .98rem; letter-spacing: -.01em; }
.sc-cap span { font-size: .84rem; color: var(--muted); line-height: 1.6; }

/* all demo animations wait for .play */
.sc-demo [data-anim] { opacity: 0; }
.sc-card.play [data-anim] { animation-fill-mode: both; }

/* --- terminal: search live --- */
.sc-search { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.ss-box {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 11px 14px; color: var(--text);
}
.ss-prompt { color: var(--cyan); }
.ss-query { display: inline-block; overflow: hidden; white-space: nowrap; width: 0; vertical-align: bottom; color: var(--cyan); }
.sc-card.play .ss-query { animation: sstype 2.8s steps(5) .5s infinite; }
@keyframes sstype { 0% { width: 0; } 22% { width: 5ch; } 55% { width: 5ch; opacity: 1; } 72% { opacity: 0; width: 5ch; } 78% { width: 0; opacity: 0; } 100% { width: 0; opacity: 0; } }
.ss-caret { width: 8px; height: 1.05em; background: var(--cyan); animation: blink 1s steps(1) infinite; }
.ss-result {
  display: flex; flex-direction: column; gap: 3px;
  background: rgba(13, 19, 35, .9); border: 1px solid rgba(34, 211, 238, .3);
  border-radius: 10px; padding: 12px 14px;
  opacity: 0; transform: translateY(8px);
}
.sc-card.play .ss-result { animation: ssresult 2.8s ease .5s infinite; }
@keyframes ssresult { 0%, 20% { opacity: 0; transform: translateY(8px); } 30% { opacity: 1; transform: none; } 62% { opacity: 1; } 72% { opacity: 0; } 100% { opacity: 0; } }
.ss-result b { color: var(--cyan); font-weight: 600; }
.ss-result span { color: var(--dim); font-size: .7rem; }
.ss-result i { font-style: normal; color: var(--ok); font-size: .7rem; margin-top: 3px; }

/* --- terminal: tunnel --- */
.sc-tunnel { display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.st-old, .st-new { display: flex; flex-direction: column; gap: 4px; }
.st-old s { color: var(--dim); text-decoration-color: rgba(248, 113, 113, .7); word-break: break-all; }
.st-old .st-x { color: var(--danger); font-size: .7rem; }
.st-new b { color: var(--text); }
.st-new b::before { content: "➜ "; color: var(--cyan); }
.st-new span { color: var(--ok); font-size: .72rem; }
.sc-card.play .st-old s { animation: strike 3.4s ease .4s infinite; }
.sc-card.play .st-new { animation: stnew 3.4s ease 1.6s infinite; opacity: 0; }
@keyframes strike { 0% { opacity: .4; } 15% { opacity: 1; } 45% { opacity: .55; } 100% { opacity: .35; } }
@keyframes stnew { 0%, 40% { opacity: 0; transform: translateX(-8px); } 52% { opacity: 1; transform: none; } 88% { opacity: 1; } 100% { opacity: 0; } }

/* --- terminal: groups --- */
.sc-groups { display: flex; flex-wrap: wrap; gap: 9px; align-content: center; justify-content: center; }
.sg-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(34, 211, 238, .06); border: 1px solid rgba(34, 211, 238, .3);
  border-radius: 999px; padding: 8px 16px; color: var(--text);
  opacity: 0; transform: scale(.7);
}
.sg-chip b { color: var(--cyan); }
.sc-card.play .sg-chip { animation: sgpop .5s var(--ease) both; }
.sc-card.play .sg-chip:nth-child(1) { animation-delay: .3s; }
.sc-card.play .sg-chip:nth-child(2) { animation-delay: .5s; }
.sc-card.play .sg-chip:nth-child(3) { animation-delay: .7s; }
.sc-card.play .sg-chip:nth-child(4) { animation-delay: .9s; }
@keyframes sgpop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
.sg-note { width: 100%; text-align: center; color: var(--dim); font-size: .7rem; opacity: 0; }
.sc-card.play .sg-note { animation: fadeup .5s ease 1.3s both; }
@keyframes fadeup { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* --- terminal: vault --- */
.sc-vault { display: flex; align-items: center; justify-content: center; gap: 24px; }
.sv-lock {
  width: 74px; height: 74px; border-radius: 20px; position: relative; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(52, 211, 153, .08); border: 1px solid rgba(52, 211, 153, .35); color: var(--ok);
}
.sv-lock svg { width: 30px; height: 30px; }
.sv-ring {
  position: absolute; inset: -3px; border-radius: 24px;
  border: 1.5px solid rgba(52, 211, 153, .6); opacity: 0;
}
.sc-card.play .sv-ring { animation: svring 2.2s ease-out 1s infinite; }
@keyframes svring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.45); } }
.sv-text { color: var(--text); line-height: 1.9; }
.sv-text i { font-style: normal; color: var(--dim); font-size: .72rem; }

/* --- invoice: timer --- */
.sc-timer { display: flex; align-items: center; justify-content: center; gap: 30px; }
.tm-ring {
  width: 108px; height: 108px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(var(--ok) 0 100%, rgba(148, 163, 184, .15) 0);
  display: flex; align-items: center; justify-content: center; position: relative;
  isolation: isolate;
}
.tm-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--bg-2); z-index: -1; }
.tm-ring::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  background: conic-gradient(rgba(52, 211, 153, .7) 0 25%, transparent 25%);
  z-index: -2; opacity: 0;
}
.sc-card.play .tm-ring::after { animation: tmsweep 2.6s var(--ease) infinite; }
@keyframes tmsweep { 0% { transform: rotate(0deg); opacity: .9; } 100% { transform: rotate(720deg); opacity: .9; } }
.tm-ring b { font-family: var(--font-display); font-size: 1.7rem; color: var(--ok); }
.tm-ring small { font-size: .7rem; color: var(--dim); }
.tm-doc { display: flex; flex-direction: column; gap: 10px; width: 180px; }
.tm-doc .pcil { opacity: 0; transform: translateX(-10px); }
.sc-card.play .tm-doc .pcil:nth-of-type(1) { animation: docline .4s ease .4s both; }
.sc-card.play .tm-doc .pcil:nth-of-type(2) { animation: docline .4s ease .7s both; }
.sc-card.play .tm-doc .pcil:nth-of-type(3) { animation: docline .4s ease 1s both; }
@keyframes docline { to { opacity: 1; transform: none; } }
.tm-total { color: var(--ok); font-size: .95rem; margin-top: 4px; opacity: 0; }
.sc-card.play .tm-total { animation: fadeup .5s ease 1.5s both; }

/* --- invoice: reminders --- */
.sc-remind { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.sr-msg {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .035); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 14px; color: var(--muted); font-size: .74rem;
  opacity: 0; transform: translateX(-12px);
}
.sr-day { color: var(--cyan); font-size: .62rem; letter-spacing: .1em; flex-shrink: 0; }
.sc-card.play .sr-msg:nth-child(1) { animation: remin .5s ease .4s both; }
.sc-card.play .sr-msg:nth-child(2) { animation: remin .5s ease 1.3s both; }
.sc-card.play .sr-msg:nth-child(3) { animation: remin .5s ease 2.2s both; }
@keyframes remin { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.sr-paid {
  align-self: flex-end; color: var(--ok);
  border: 1.5px solid rgba(52, 211, 153, .5); border-radius: 8px; padding: 5px 12px;
  font-size: .68rem; letter-spacing: .12em; transform: rotate(4deg);
  opacity: 0;
}
.sc-card.play .sr-paid { animation: paidpop .45s var(--ease) 3.1s both; }
@keyframes paidpop { from { opacity: 0; transform: rotate(4deg) scale(1.6); } to { opacity: 1; transform: rotate(4deg) scale(1); } }

/* --- invoice: portal --- */
.sc-portal { display: flex; flex-direction: column; gap: 12px; justify-content: center; align-items: center; }
.sp-link {
  color: var(--cyan); background: rgba(34, 211, 238, .07); border: 1px solid rgba(34, 211, 238, .3);
  border-radius: 999px; padding: 7px 16px; font-size: .72rem;
}
.sp-screen {
  width: 200px; background: rgba(13, 19, 35, .9); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 9px;
}
.sp-pay {
  background: var(--grad); color: #fff; text-align: center; border-radius: 8px;
  padding: 8px; font-size: .78rem; font-weight: 600;
}
.sc-card.play .sp-pay { animation: paypulse 2s ease 1.4s infinite; }
@keyframes paypulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, .4); } 50% { box-shadow: 0 0 0 9px rgba(59, 130, 246, 0); } }
.sp-done { color: var(--ok); font-size: .72rem; opacity: 0; }
.sc-card.play .sp-done { animation: fadeup .5s ease 2.2s both; }

/* --- invoice: fx ticker --- */
.sc-fx { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.fx-row {
  display: flex; justify-content: space-between; align-items: center;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; color: var(--muted);
}
.fx-row b { color: var(--text); }
.sc-card.play .fx-row:nth-child(1) { animation: fxhl 3s ease infinite; }
.sc-card.play .fx-row:nth-child(2) { animation: fxhl 3s ease .4s infinite; }
.sc-card.play .fx-row:nth-child(3) { animation: fxhl 3s ease .8s infinite; }
@keyframes fxhl { 0%, 100% { border-color: var(--line); } 12% { border-color: rgba(34, 211, 238, .55); background: rgba(34, 211, 238, .04); } 30% { border-color: var(--line); background: none; } }

/* --- landing: gauge sweep --- */
.sc-gauge-demo { display: flex; align-items: center; justify-content: center; gap: 34px; }
.sc-gauge-demo .gauge { width: 118px; height: 118px; }
.sc-gauge-demo .gauge b { font-size: 2rem; }
.gd-anim { isolation: isolate; }
.gd-anim::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  background: conic-gradient(rgba(52, 211, 153, .6) 0 18%, transparent 20%);
  opacity: 0; z-index: -2;
}
.sc-card.play .gd-anim::after { animation: gdsweep 2.4s var(--ease) infinite; }
@keyframes gdsweep { 0% { transform: rotate(0deg); opacity: 1; } 100% { transform: rotate(900deg); opacity: 1; } }
.gd-rows { display: grid; gap: 12px; min-width: 220px; }
.gd-ok { color: var(--ok); }

/* --- landing: A/B duel --- */
.sc-ab { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.ab-opt {
  display: grid; grid-template-columns: 30px 1fr 60px; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; position: relative;
}
.ab-tag { color: var(--dim); }
.ab-head { font-size: .8rem; color: var(--muted); }
.ab-bar { height: 6px; border-radius: 4px; background: rgba(148, 163, 184, .14); overflow: hidden; }
.ab-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: rgba(148, 163, 184, .5); }
.ab-pct { text-align: right; color: var(--dim); font-size: .74rem; }
.sc-card.play .ab-bar i { animation: abfill 1.1s var(--ease) .5s both; }
@keyframes abfill { from { width: 0; } to { width: var(--w); } }
.ab-opt.win { border-color: rgba(52, 211, 153, .45); background: rgba(52, 211, 153, .04); }
.ab-opt.win .ab-bar i { background: var(--grad); }
.ab-opt.win .ab-pct { color: var(--ok); }
.ab-opt.win::after {
  content: "WINNER"; position: absolute; top: -9px; right: 12px;
  font-size: .56rem; font-weight: 700; letter-spacing: .16em;
  background: var(--ok); color: #04291c; border-radius: 999px; padding: 2px 9px;
  opacity: 0;
}
.sc-card.play .ab-opt.win::after { animation: fadeup .4s ease 1.7s both; }

/* --- landing: weight bar --- */
.sc-weight { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.wt-row { display: grid; grid-template-columns: 110px 1fr 60px; align-items: center; gap: 12px; color: var(--muted); font-size: .74rem; }
.wt-row b { text-align: right; color: var(--text); }
.wt-bar { height: 10px; border-radius: 6px; background: rgba(148, 163, 184, .12); overflow: hidden; }
.wt-bar i { display: block; height: 100%; width: 0; border-radius: 6px; }
.wt-bar i.bad { background: linear-gradient(90deg, rgba(248, 113, 113, .8), rgba(251, 146, 60, .8)); }
.wt-bar i.good { background: linear-gradient(90deg, #34d399, #22d3ee); }
.sc-card.play .wt-bar .bad { animation: abfill 1.2s var(--ease) .4s both; }
.sc-card.play .wt-bar .good { animation: abfill 1s var(--ease) 1.3s both; }

/* --- landing: deploy --- */
.sc-deploy { display: flex; flex-direction: column; gap: 18px; align-items: center; justify-content: center; }
.dp-steps { display: flex; gap: 10px; }
.dp-step {
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 18px;
  color: var(--dim); font-size: .72rem; opacity: .5;
}
.sc-card.play .dp-step { animation: dpon .45s ease both; }
.sc-card.play .dp-step:nth-child(1) { animation-delay: .4s; }
.sc-card.play .dp-step:nth-child(2) { animation-delay: 1s; }
.sc-card.play .dp-step:nth-child(3) { animation-delay: 1.6s; }
@keyframes dpon { to { opacity: 1; color: var(--cyan); border-color: rgba(34, 211, 238, .45); } }
.dp-live { color: var(--ok); font-size: .8rem; opacity: 0; }
.sc-card.play .dp-live { animation: livepulse 1.8s ease 2.4s infinite; }
@keyframes livepulse { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 1; } }

/* ============================================================
   BEFORE / AFTER SLIDER
   ============================================================ */
.ba-slider {
  position: relative; max-width: 900px; margin: 0 auto;
  height: 380px; border-radius: var(--r-lg); overflow: hidden;
  touch-action: none;
}
.ba-pane { position: absolute; inset: 0; padding: 34px 36px; display: flex; align-items: center; }
.ba-after { background: linear-gradient(160deg, rgba(52, 211, 153, .06), rgba(34, 211, 238, .05) 60%, transparent), var(--bg-2); justify-content: flex-end; }
.ba-after .ba-doc { width: 44%; }
.ba-before {
  background:
    radial-gradient(120% 140% at 50% -10%, rgba(248, 113, 113, .07), transparent 60%), #0a0d16;
  clip-path: inset(0 calc(100% - var(--x, 50%)) 0 0);
  justify-content: flex-start;
}
.ba-before .ba-doc { width: 46%; }
.ba-doc { width: 100%; display: flex; flex-direction: column; gap: 12px; font-size: .82rem; }
.ba-title { font-weight: 600; color: var(--text); margin-bottom: 6px; }
.ba-title.dim { color: var(--dim); }
.ba-title.gd-ok { color: var(--ok); }
.ba-line { display: flex; gap: 10px; align-items: baseline; color: var(--muted); }
.ba-line b { color: var(--text); }
.ba-line .bad { color: var(--danger); flex-shrink: 0; }
.ba-line .good { color: var(--ok); flex-shrink: 0; }
.ba-label {
  position: absolute; top: 18px; z-index: 3;
  font-size: .62rem; letter-spacing: .2em; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px;
  background: rgba(3, 5, 9, .7); backdrop-filter: blur(8px);
  pointer-events: none;
}
.ba-label.l { left: 18px; }
.ba-label.r { right: 18px; color: var(--ok); border-color: rgba(52, 211, 153, .4); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--x, 50%); z-index: 4;
  width: 2px; background: var(--cyan); box-shadow: 0 0 18px rgba(34, 211, 238, .6);
  pointer-events: none;
}
.ba-handle i {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--cyan);
  display: flex; align-items: center; justify-content: center;
}
.ba-handle i::before { content: "⇄"; color: var(--cyan); font-size: 1.1rem; }
.ba-slider input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0; z-index: 5;
}
@media (max-width: 720px) {
  .sc-grid { grid-template-columns: 1fr; }
  .ba-slider { height: 420px; }
  .ba-pane { padding: 60px 22px 24px; align-items: flex-start; }
  .ba-doc, .ba-after .ba-doc, .ba-before .ba-doc { width: 100% !important; font-size: .74rem; }
}

/* ---------- admin: stripe test/live cards ---------- */
.stripe-mode-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stripe-mode-card {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px; background: rgba(255, 255, 255, .02);
  display: flex; flex-direction: column; gap: 10px; opacity: .75;
  transition: opacity .25s, border-color .25s;
}
.stripe-mode-card.on { opacity: 1; border-color: rgba(34, 211, 238, .45); box-shadow: var(--glow-cyan); }
.stripe-mode-card.stripe-live.on { border-color: rgba(52, 211, 153, .5); box-shadow: 0 0 40px rgba(52, 211, 153, .12); }
.smc-head { display: flex; gap: 8px; align-items: center; }
.badge-live { color: var(--warn); border-color: rgba(251, 191, 36, .45); background: rgba(251, 191, 36, .08); }
.stripe-mode-card.stripe-live.on .badge-live { color: var(--ok); border-color: rgba(52, 211, 153, .5); background: rgba(52, 211, 153, .08); }
.smc-line { font-size: .8rem; color: var(--text); word-break: break-all; }
.smc-actions { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
@media (max-width: 720px) { .stripe-mode-row { grid-template-columns: 1fr; } }

/* ---------- admin: stripe key forms ---------- */
.smc-form { display: grid; gap: 10px; margin-top: 4px; }
.smc-form .smc-field { display: grid; gap: 5px; font-size: .78rem; color: var(--muted); font-weight: 500; }
.smc-form input[type="password"], .smc-form input[type="text"] {
  font-family: var(--font-mono); font-size: .8rem;
}

/* ---------- admin: API & SDK docs ---------- */
.docs-grid { display: grid; gap: 14px; margin-bottom: 18px; }
.docs-item { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.docs-k { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); min-width: 220px; }
.docs-actions { display: flex; align-items: center; gap: 14px; margin-top: 6px; flex-wrap: wrap; }
.docs-steps { display: grid; gap: 10px; margin: 8px 0 12px 20px; color: var(--muted); }
.docs-steps b { color: var(--text); }
.ep { border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; margin-bottom: 16px; }
.ep-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.ep-path { font-weight: 600; font-size: .95rem; color: var(--text); }
.code-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
@media (max-width: 860px) { .code-cols { grid-template-columns: 1fr; } }
.code {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; font-size: .78rem; line-height: 1.7; overflow-x: auto;
  color: #c8d3e6; white-space: pre; margin: 6px 0 0;
}
.docs-k + .code { margin-top: 6px; }
.tab-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tab-btn {
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 9px;
  color: var(--muted); font-size: .8rem; font-weight: 600; padding: 8px 16px;
}
.tab-btn.on { color: var(--cyan); border-color: rgba(34, 211, 238, .45); background: rgba(34, 211, 238, .08); }
.tab-pane { display: none; }
.tab-pane.on { display: block; }

/* ============================================================
   UX/IX POLISH · v3
   ============================================================ */

/* page entrance */
.page-enter { animation: pagefade .5s var(--ease) both; }
@keyframes pagefade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* skip link */
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 400;
  background: var(--grad); color: #fff; padding: 10px 18px; border-radius: 10px;
  font-weight: 600; transition: top .25s var(--ease);
}
.skip-link:focus { top: 12px; }

/* back to top */
.backtotop {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 15, 29, .85); border: 1px solid var(--line-2); color: var(--cyan);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  cursor: pointer; opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), border-color .2s;
}
.backtotop.show { opacity: 1; transform: none; pointer-events: auto; }
.backtotop:hover { border-color: var(--cyan); }
.backtotop svg { width: 18px; height: 18px; }
body.plan-yearly .backtotop, .buybar.show ~ .backtotop { bottom: 80px; }

/* password field */
.pw-label { display: grid; gap: 7px; }
.pw-field { position: relative; display: block; }
.pw-field input { padding-right: 46px; width: 100%; }
.pw-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent;
  color: var(--dim); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: color .2s, background .2s;
}
.pw-toggle:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.pw-toggle svg { width: 17px; height: 17px; }
.pw-toggle .eye-off { display: none; }
.pw-toggle.shown .eye-off { display: block; }
.pw-toggle.shown .eye-on { display: none; }

/* password hint (register) */
.pw-hint { display: flex; align-items: center; gap: 8px; font-size: .74rem; color: var(--dim); margin-top: 2px; }
.pw-hint-bar { height: 4px; flex: 1; max-width: 160px; border-radius: 3px; background: rgba(148, 163, 184, .18); overflow: hidden; position: relative; }
.pw-hint-bar::after {
  content: ""; position: absolute; inset: 0; width: 0;
  background: var(--grad); transition: width .3s var(--ease), background .3s;
}
input:focus + .pw-toggle ~ .pw-hint, .pw-hint.on { color: var(--muted); }
.pw-hint.ok { color: var(--ok); }
.pw-hint.ok .pw-hint-bar::after { width: 100%; background: var(--ok); }
.pw-hint.mid .pw-hint-bar::after { width: 55%; }

/* loading button */
.btn[data-loading-btn], .btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading::before {
  content: ""; width: 14px; height: 14px; margin-right: 2px;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-ghost.is-loading::before, .btn-outline.is-loading::before { border-color: rgba(148, 163, 184, .4); border-top-color: var(--text); }

/* shake on error */
.auth-card.shake { animation: shake .5s var(--ease); }
@keyframes shake {
  10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(3px); }
  30%, 50%, 70% { transform: translateX(-5px); } 40%, 60% { transform: translateX(5px); }
}

/* confetti */
.confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 250; }

/* dashboard: mobile table → stacked cards */
@media (max-width: 720px) {
  .table-wrap table { min-width: 0; }
  .dash .table-wrap thead { display: none; }
  .dash .table-wrap tbody tr {
    display: grid; gap: 6px; padding: 16px; border-bottom: 1px solid var(--line);
  }
  .dash .table-wrap tbody td { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 0; padding: 2px 0; }
  .dash .table-wrap tbody td::before {
    content: attr(data-label); font-size: .68rem; text-transform: uppercase;
    letter-spacing: .12em; color: var(--dim);
  }
  .dash .table-wrap tbody td[data-label]:last-child { justify-content: flex-end; }
  .dash .table-wrap tbody td::before { display: none; }
  .dash .table-wrap tbody td[data-label="Renews"] { flex-direction: column; align-items: flex-start; }
}
.device-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dev-label { font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }
.dev-id { color: var(--muted); font-size: .78rem; letter-spacing: 0; }

/* buybar iOS safe area */
.buybar { padding-bottom: max(13px, env(safe-area-inset-bottom)); }

/* ============================================================
   v4 · CRISP TEXT LOGO + ADMIN REDESIGN
   ============================================================ */

/* ---------- crisp gradient text logo (replaces raster logo in nav/footer/admin) ---------- */
.logo-mark {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.55rem; letter-spacing: -.035em; line-height: 1;
  user-select: none;
}
.logo-mark .lg {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(34, 211, 238, .35));
}
.brand-sub {
  font-size: .52rem; font-weight: 500; letter-spacing: .42em;
  color: var(--dim); text-transform: uppercase; transform: translateY(-2px);
}
.nav-inner .logo-img { height: 46px; }
.footer-brand .logo-img { height: 56px; }

/* ---------- admin shell polish ---------- */
.admin-body .bg-aurora { opacity: .55; }
.admin-body .bg-grid { opacity: .5; }
.admin-side {
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 12, 24, .92), rgba(4, 7, 14, .96));
}
.admin-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 4px 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.admin-brand .logo-img { height: 40px; max-width: 160px; }
.admin-chip {
  font-size: .58rem; letter-spacing: .34em; color: var(--cyan);
  background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .3);
  border-radius: 999px; padding: 3px 10px 3px 13px;
}
.admin-nav { display: grid; gap: 2px; }
.admin-group {
  font-size: .6rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--dim); padding: 14px 12px 6px; opacity: .8;
}
.admin-nav a {
  display: flex; align-items: center; gap: 11px;
  color: var(--muted); padding: 9px 12px; border-radius: 10px;
  font-size: .9rem; font-weight: 500; border: 1px solid transparent;
  position: relative; transition: all .18s var(--ease);
}
.admin-nav a svg {
  width: 16px; height: 16px; max-width: 16px; max-height: 16px;
  opacity: .75; flex-shrink: 0; display: block;
}
.admin-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .045); }
.admin-nav a.on {
  color: var(--text);
  background: linear-gradient(90deg, rgba(34, 211, 238, .14), rgba(34, 211, 238, .03));
  border-color: rgba(34, 211, 238, .28);
}
.admin-nav a.on::before {
  content: ""; position: absolute; left: -1px; top: 20%; bottom: 20%; width: 3px;
  border-radius: 3px; background: var(--grad); box-shadow: 0 0 10px rgba(34, 211, 238, .6);
}
.admin-nav a.on svg { color: var(--cyan); opacity: 1; }

/* user card (sidebar bottom) */
.admin-user {
  margin-top: auto; display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 10px 12px; background: rgba(255, 255, 255, .025);
}
.admin-user .qa { width: 34px; height: 34px; font-size: .8rem; flex-shrink: 0; }
.au-meta { min-width: 0; flex: 1; display: grid; gap: 1px; }
.au-meta b { font-size: .74rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-meta a { font-size: .68rem; color: var(--cyan); }
.au-logout {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  border: 1px solid var(--line-2); background: transparent; color: var(--muted);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: all .2s;
}
.au-logout:hover { color: var(--danger); border-color: rgba(248, 113, 113, .4); background: rgba(248, 113, 113, .08); }
.au-logout svg { width: 15px; height: 15px; }

/* topbar */
.admin-topbar { padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }

/* quick actions */
.quick-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }

/* stat cards — visible glass + accent */
.stat-card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px 22px; display: flex; flex-direction: column-reverse; gap: 6px;
  transition: transform .25s var(--ease), border-color .25s;
}
.stat-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, rgba(34, 211, 238, .5), transparent 70%);
}
.stat-card:hover { transform: translateY(-3px); border-color: rgba(34, 211, 238, .35); }
.stat-card .stat-num { font-size: 2rem; }
.stat-card .stat-label { margin: 0; font-size: .7rem; }

/* panels — visible glass containers */
.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
  border: 1px solid var(--line); border-radius: var(--r-lg);
}
.panel h2 {
  font-size: 1.05rem; letter-spacing: -.01em;
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.panel h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* empty state */
.empty-box {
  display: grid; justify-items: center; gap: 8px; text-align: center;
  border: 1px dashed var(--line-2); border-radius: var(--r-md);
  padding: 42px 24px; color: var(--muted);
}
.empty-box svg {
  width: 36px; height: 36px; max-width: 36px; max-height: 36px;
  color: var(--dim); margin-bottom: 2px; display: block;
}
.empty-box b { color: var(--text); font-family: var(--font-display); letter-spacing: -.01em; }
.empty-box span { font-size: .86rem; max-width: 380px; }

@media (max-width: 860px) {
  .admin-brand { border-bottom: 0; }
  .admin-group { display: none; }
  .admin-nav a { padding: 8px 10px; }
  .admin-user { width: 100%; }
}
