/* ==========================================================================
   BADSHAH AI v9.0 — Design System CSS ("White / Black / Blue")
   Source: ~/workspace/v90-stage/website/design/DESIGN-SYSTEM-V2-WHITE-BLUE.md (supersedes DESIGN-SYSTEM.md "Royal Red" as the main palette)
   Status: STAGING — Phase 2 build. Do NOT deploy without Boss approval.
   Rules: English-only UI. NO BLUR anywhere (no backdrop-filter/filter blur).
   Phone-first (base 360px). Full animation (prefers-reduced-motion respected).
   ========================================================================== */

/* ---------- 1. Tokens (DESIGN-SYSTEM-V2 §1 — White / Black / Blue) ---------- */
:root {
  /* Light mode (default) — measured (M) from the login pin, decided (D) where noted */
  --wb-bg-top: #E8EEFA;
  --wb-bg-bottom: #DBE4F5;
  --wb-bg: linear-gradient(180deg, #E8EEFA, #DBE4F5);
  --wb-surface: #FFFFFF;
  --wb-surface-soft: #EDF2FC;
  --wb-ink: #0A1128;
  --wb-black: #0A0A0A;
  --wb-muted: #414C68;
  --wb-placeholder: #55617A;
  --wb-blue: #1D5DDF;
  --wb-blue-bright: #3090FC;
  --wb-blue-deep: #1343A7;
  --wb-blue-grad: linear-gradient(135deg, #3090FC, #1D5DDF 55%, #1343A7);
  --wb-link: #3162E3;
  --wb-checkbox: #2B6CFD;
  --wb-flame: #2767E0;
  --wb-line: #D8E0F2;
  --wb-line-strong: #B9C6E8;
  --wb-btn-glow: rgba(29, 93, 223, .45);
  /* As-needed only: error red, success green, amber. Gold is NOT a brand
     accent (redesign 2026-12-05): the APK uses gold only for the tab-bar
     crown, which lives in app-ui.css — no gold tokens here. */
  --wb-error: #F3122E;
  --wb-success: #22C55E;
  --wb-amber: #F59E0B;
  --radius: 26px;
  --radius-lg: 26px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- 2. Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--wb-bg);
  color: var(--wb-ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 16px; color: var(--wb-ink); }
h1, h2, h3, h4, .display { font-family: 'Baloo 2', 'Inter', sans-serif; font-weight: 800; line-height: 1.15; }
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
@media (min-width: 1024px) {
  h1 { font-size: 44px; }
  h2 { font-size: 30px; }
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }
section { padding: 48px 0; }
@media (min-width: 1024px) { section { padding: 80px 0; } }
.mut { color: var(--wb-muted); }
.mut2 { color: var(--wb-placeholder); }
.gold-text { color: var(--wb-blue); } /* kept for compatibility — renders blue since the redesign; use .blue-text for new code */
.red-text { color: var(--wb-error); }
.blue-text { color: var(--wb-blue); }
.link-blue { color: var(--wb-link); }

/* Wordmark: "BADSHAH" ink + "AI" blue gradient (redesign 2026-12-05) */
.wordmark { font-family: 'Baloo 2', sans-serif; font-weight: 800; }
.wordmark .ai { background: var(--wb-blue-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 3. Nav (all public pages, identical) ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--wb-surface);
  border-bottom: 1px solid var(--wb-line);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 10px 30px rgba(16, 24, 40, .10);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; gap: 24px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.nav-brand img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.nav-links { display: none; gap: 4px; margin-left: auto; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 600;
  color: var(--wb-muted); transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--wb-ink); background: var(--wb-surface-soft); }
.nav-cta { margin-left: auto; }
@media (min-width: 1024px) { .nav-cta { margin-left: 0; } }
.nav-burger { display: block; margin-left: auto; font-size: 24px; color: var(--wb-ink); }
@media (min-width: 1024px) { .nav-burger { display: none; } }
.nav-mobile {
  display: none; padding: 12px 24px 20px; flex-direction: column; gap: 4px;
  border-top: 1px solid var(--wb-line);
}
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 10px 12px; border-radius: 12px; font-weight: 600; }
.nav-mobile a:hover { background: var(--wb-surface-soft); }

/* ---------- 4. Footer (all public pages, identical) ---------- */
.footer { background: var(--wb-surface-soft); border-top: 1px solid var(--wb-line); padding: 48px 0 24px; }
.footer-grid {
  display: grid; gap: 32px; grid-template-columns: 1fr 1fr;
}
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } }
.footer h4 { font-size: 15px; margin-bottom: 12px; }
.footer-col a { display: block; padding: 4px 0; color: var(--wb-muted); font-size: 14px; }
.footer-col a:hover { color: var(--wb-ink); }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--wb-line);
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  color: var(--wb-placeholder); font-size: 13px;
}
.social-row { display: flex; gap: 12px; }
.social-row a { color: var(--wb-muted); font-size: 14px; font-weight: 600; }
.social-row a:hover { color: var(--wb-blue); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; font-size: 16px; font-weight: 600;
  transition: transform .1s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--wb-blue-grad); color: #fff;
  box-shadow: 0 4px 20px var(--wb-btn-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(29, 93, 223, .55); }
.btn-ghost {
  background: transparent; border: 1px solid var(--wb-line-strong); color: var(--wb-ink);
}
.btn-ghost:hover { border-color: var(--wb-blue); }
.btn-gold {
  background: var(--wb-blue-grad); color: #fff;
  box-shadow: 0 4px 20px var(--wb-btn-glow);
}
/* .btn-gold kept for compatibility — renders blue since the redesign; use .btn-primary for new code */
.btn-danger { background: var(--wb-error); color: #fff; }
/* White button — primary actions sitting ON a blue-gradient panel
   (.cta-blue), where a blue button would vanish. White surface, navy text. */
.btn-white {
  background: var(--wb-surface); color: var(--wb-ink);
  box-shadow: 0 4px 20px rgba(10, 17, 40, .25);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(10, 17, 40, .35); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-glow-pulse { animation: ctaGlow 2.4s ease-in-out infinite; }
@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 4px 20px rgba(29, 93, 223, .45); }
  50% { box-shadow: 0 4px 36px rgba(29, 93, 223, .65); }
}

/* ---------- 6. Cards ---------- */
.card {
  background: var(--wb-surface); border: 1px solid var(--wb-line);
  border-radius: var(--radius-lg); padding: 24px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 10px 30px rgba(16, 24, 40, .10);
  transition: transform .2s ease-out, border-color .2s, box-shadow .2s;
}
.card:hover {
  border-color: var(--wb-line-strong); transform: translateY(-4px);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 16px 40px rgba(16, 24, 40, .14);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--wb-muted); font-size: 15px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.stat-card { text-align: left; }
.stat-value { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 36px; line-height: 1.1; }
.stat-label { color: var(--wb-muted); font-size: 13px; margin-top: 4px; }
.delta { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.delta.up { color: var(--wb-success); background: rgba(34, 197, 94, .12); }
.delta.down { color: var(--wb-error); background: rgba(243, 18, 46, .12); }

/* ---------- 7. Badges / pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.badge-gold { background: var(--wb-blue-grad); color: #fff; } /* kept for compatibility — renders blue since the redesign; use .badge-blue for new code */
.badge-red { background: var(--wb-error); color: #fff; }
.badge-green { background: rgba(34, 197, 94, .15); color: var(--wb-success); }
.badge-amber { background: rgba(245, 158, 11, .15); color: var(--wb-amber); }
.badge-outline { border: 1px solid var(--wb-blue); color: var(--wb-blue); background: transparent; }
.badge-blue { background: var(--wb-blue-grad); color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-green { background: var(--wb-success); animation: livePulse 1.6s ease-in-out infinite; }
.dot-amber { background: var(--wb-amber); }
.dot-red { background: var(--wb-error); }
.dot-blue { background: var(--wb-blue); animation: livePulse 1.6s ease-in-out infinite; }
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- 8. Inputs / forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--wb-muted); margin-bottom: 6px; }
.input, select.input, textarea.input {
  width: 100%; background: var(--wb-surface); border: 1px solid var(--wb-line);
  border-radius: 999px; padding: 12px 14px; outline: none;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06);
  transition: border-color .2s, box-shadow .2s;
}
textarea.input { border-radius: 20px; }
.input::placeholder { color: var(--wb-placeholder); }
.input:focus {
  border-color: var(--wb-blue); outline: 2px solid var(--wb-blue);
  box-shadow: 0 0 0 3px rgba(29, 93, 223, .18);
}
textarea.input { min-height: 120px; resize: vertical; }

/* ---------- 9. Tables (admin / legal) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--wb-line); border-radius: var(--radius); background: var(--wb-surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
thead th {
  text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--wb-muted); padding: 12px 16px; border-bottom: 1px solid var(--wb-line);
  background: var(--wb-surface-soft);
}
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--wb-line); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--wb-surface-soft); }

/* ---------- 10. Accordion ---------- */
.acc { border: 1px solid var(--wb-line); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; background: var(--wb-surface); }
.acc-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; font-weight: 600; font-size: 16px; text-align: left;
  background: var(--wb-surface);
}
.acc-head .chev { transition: transform .2s; color: var(--wb-muted); flex-shrink: 0; }
.acc.open .acc-head .chev { transform: rotate(180deg); }
.acc-body { display: none; padding: 0 20px 20px; color: var(--wb-muted); }
.acc.open .acc-body { display: block; animation: fadeSlide .3s var(--ease); }

/* ---------- 11. Hero / sections ---------- */
.hero { padding: 64px 0 48px; text-align: center; }
@media (min-width: 1024px) { .hero { padding: 96px 0 64px; } }
.hero h1 { margin-bottom: 16px; }
.hero p.lead { color: var(--wb-muted); font-size: 18px; max-width: 640px; margin: 0 auto 28px; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.section-head { text-align: center; margin-bottom: 32px; }
.section-head h2 { margin-bottom: 8px; }
.section-head p { color: var(--wb-muted); max-width: 560px; margin: 0 auto; }

/* ---------- 12. Creator placeholders (binding — never a fake photo) ---------- */
.creator-ph {
  border: 1px dashed var(--wb-line-strong); background: var(--wb-surface);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--wb-muted); font-size: 13px; font-weight: 600; letter-spacing: .03em;
  padding: 24px; min-height: 200px;
}
.creator-ph.tall { min-height: 420px; }

/* ---------- 13. Phone frame (App 24 presentations) ---------- */
.phone-stage {
  display: grid; gap: 32px; align-items: start;
}
@media (min-width: 1024px) { .phone-stage { grid-template-columns: 420px 1fr; } }
.phone-frame {
  width: 100%; max-width: 390px; margin: 0 auto; aspect-ratio: 390 / 844;
  border-radius: 36px; border: 3px solid var(--wb-line-strong);
  background: var(--wb-bg);
  box-shadow: 0 0 60px rgba(29, 93, 223, .25), 0 24px 60px rgba(10, 17, 40, .35);
  overflow: hidden; position: relative;
  display: flex; flex-direction: column;
}
.phone-notch {
  height: 28px; display: flex; align-items: center; justify-content: center;
}
.phone-notch::after {
  content: ""; width: 110px; height: 22px; background: #000; border-radius: 999px;
}
.phone-screen { flex: 1; overflow-y: auto; padding: 0 16px 16px; scrollbar-width: none; }
.phone-screen::-webkit-scrollbar { display: none; }
.phone-topbar {
  display: flex; align-items: center; gap: 10px; padding: 8px 0 12px;
  border-bottom: 1px solid var(--wb-line);
}
.phone-topbar img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--wb-blue); }
.phone-topbar .t { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 17px; }
.phone-topbar .s { font-size: 12px; color: var(--wb-muted); }
.phone-bubble {
  max-width: 85%; padding: 10px 14px; border-radius: 18px; margin: 8px 0;
  font-size: 14px; line-height: 1.5;
}
.phone-bubble.ai { background: var(--wb-surface); border: 1px solid var(--wb-line); border-bottom-left-radius: 4px; }
.phone-bubble.user { background: var(--wb-blue); border: 1px solid var(--wb-blue); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.phone-composer {
  display: flex; gap: 8px; padding: 12px 0 4px;
}
.phone-composer .input { flex: 1; border-radius: 999px; }
.phone-send {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--wb-blue-grad); color: #fff; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.phone-nav {
  display: flex; justify-content: space-around; padding: 10px 0 4px;
  border-top: 1px solid var(--wb-line); font-size: 11px; color: var(--wb-muted);
}
.phone-nav .on { color: var(--wb-blue); font-weight: 700; }
.phone-nav span { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.phone-nav .ic { font-size: 18px; }
.screen-panel h3 { margin-bottom: 8px; }
.screen-panel p { color: var(--wb-muted); margin-bottom: 16px; }
.screen-panel ul { list-style: none; margin-bottom: 16px; }
.screen-panel li { padding: 6px 0 6px 24px; position: relative; color: var(--wb-muted); font-size: 15px; }
.screen-panel li::before { content: "✓"; position: absolute; left: 0; color: var(--wb-blue); font-weight: 700; }

/* ---------- 14. Orb — Earth globe (Pinterest pin, procedural Canvas) ---------- */
/* The orb is a live Canvas 2D globe (assets/earth-orb.js) inside .orb — NOT
   a CSS gradient sphere: the old radial-gradient sphere + orbPulse are
   removed (EARTH-ORB-DESIGN.md §1.5, §2.7). The poster
   (earth-orb-poster.jpg, Africa-centred) is the static fallback when
   Canvas / JS / reduced-motion applies — the background URL is relative
   to this CSS file (assets/), so it resolves on every page. The canvas
   follows its container (ResizeObserver re-renders, never stretches), so
   mobile / laptop / computer sizes come from the responsive-modes work —
   no size is invented here. No blur anywhere: glow is box-shadow only. */
.orb-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.orb {
  width: 120px; height: 120px; border-radius: 50%; position: relative; flex-shrink: 0;
  overflow: hidden; background: #000 url(../earth-orb-poster.jpg) center / cover no-repeat;
  box-shadow: 0 0 60px rgba(29, 93, 223, .45), 0 0 24px rgba(29, 93, 223, .25);
}
.orb canvas.earth-orb-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border-radius: 50%; }
.orb.lg { width: 180px; height: 180px; }
.orb.sm { width: 64px; height: 64px; }
.orb-rings { position: relative; }
.orb-rings::before, .orb-rings::after {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 2px solid rgba(29, 93, 223, .6); animation: ringOut 1.6s ease-out infinite;
}
.orb-rings::after { border-color: rgba(19, 67, 167, .5); animation-delay: .8s; }
@keyframes ringOut { from { transform: scale(.85); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 40px; }
.wave i {
  width: 4px; border-radius: 4px; background: var(--wb-blue);
  box-shadow: 0 0 8px rgba(29, 93, 223, .7);
  animation: waveBar .4s ease-in-out infinite alternate;
}
.wave i:nth-child(1) { height: 10px; animation-delay: 0s; }
.wave i:nth-child(2) { height: 18px; animation-delay: .1s; }
.wave i:nth-child(3) { height: 28px; animation-delay: .2s; }
.wave i:nth-child(4) { height: 18px; animation-delay: .3s; }
.wave i:nth-child(5) { height: 10px; animation-delay: .15s; }
@keyframes waveBar { from { transform: scaleY(.5); } to { transform: scaleY(1); } }

/* ---------- 15. Admin shell (B6) ---------- */
.admin-shell { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
@media (min-width: 1024px) { .admin-shell { grid-template-columns: 260px 1fr; } }
.admin-side {
  background: var(--wb-bg-bottom); border-right: 1px solid var(--wb-line);
  padding: 20px 16px; display: none;
}
@media (min-width: 1024px) { .admin-side { display: block; } }
.admin-side .brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 20px; font-size: 19px; }
.admin-side .brand img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.admin-side nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 12px; color: var(--wb-muted); font-weight: 600; font-size: 15px;
}
.admin-side nav a:hover, .admin-side nav a.active { background: var(--wb-surface-soft); color: var(--wb-ink); }
.admin-side nav a.active { border-left: 3px solid var(--wb-blue); }
.admin-main { padding: 20px 24px 48px; min-width: 0; }
.admin-topbar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--wb-line);
}
.admin-topbar h1 { font-size: 26px; }
.admin-topbar .spacer { flex: 1; }
.admin-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--wb-blue-grad);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Baloo 2', sans-serif; font-weight: 800; color: #fff;
}
.toggle {
  width: 48px; height: 26px; border-radius: 999px; background: var(--wb-surface-soft);
  border: 1px solid var(--wb-line-strong); position: relative; flex-shrink: 0;
  transition: background .2s; cursor: pointer;
}
.toggle::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--wb-muted); transition: left .2s, background .2s;
}
.toggle.on { background: var(--wb-blue-grad); }
.toggle.on::after { left: 24px; background: #fff; }
.admin-row {
  display: flex; align-items: center; gap: 12px; padding: 14px 0;
  border-bottom: 1px solid var(--wb-line);
}
.admin-row:last-child { border-bottom: none; }
.admin-row .ic {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  border: 1px solid var(--wb-line-strong); display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.admin-row .lbl { font-weight: 600; }
.admin-row .sub { font-size: 13px; color: var(--wb-muted); }
.admin-row .end { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ---------- 16. Legal doc pattern ---------- */
.legal-doc { max-width: 720px; margin: 0 auto; }
.legal-doc h2 { margin: 32px 0 12px; }
.legal-doc p, .legal-doc li { color: var(--wb-muted); margin-bottom: 12px; }
.legal-doc ul, .legal-doc ol { padding-left: 24px; margin-bottom: 16px; }
.legal-doc .in-short {
  border: 1px solid var(--wb-line-strong); border-left: 3px solid var(--wb-blue);
  background: var(--wb-surface); border-radius: 26px; padding: 14px 18px;
  color: var(--wb-ink); font-size: 15px; margin: 16px 0;
}
.legal-nav {
  position: sticky; top: 84px; display: none;
}
@media (min-width: 1024px) { .legal-nav { display: block; } }
.legal-nav a {
  display: block; padding: 8px 12px; border-radius: 10px; color: var(--wb-muted); font-size: 14px;
  border-left: 2px solid transparent;
}
.legal-nav a.active { color: var(--wb-ink); border-left-color: var(--wb-blue); background: var(--wb-surface-soft); }
.legal-layout { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .legal-layout { grid-template-columns: 220px minmax(0, 1fr); } }

/* ---------- 17. Support pattern ---------- */
.support-hero { text-align: center; padding: 64px 0 32px; }
.support-search {
  max-width: 560px; margin: 24px auto 0; position: relative;
}
.support-search .input { border-radius: 999px; padding: 14px 20px 14px 48px; }
.support-search::before {
  content: "⌕"; position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  color: var(--wb-muted); font-size: 20px;
}
.topic-card { text-align: left; }
.topic-card .ic {
  width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--wb-line-strong);
  display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 12px;
}

/* ---------- 18. Status page (Beamline pattern) ---------- */
.status-banner {
  border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 24px;
  display: flex; align-items: center; gap: 14px; font-weight: 600;
}
.status-banner.ok { background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .4); }
.status-banner.degraded { background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .4); }
.status-banner.down { background: rgba(255, 46, 69, .12); border: 1px solid rgba(255, 46, 69, .5); }
.uptime-bar { display: flex; gap: 2px; }
.uptime-bar i { flex: 1; height: 22px; border-radius: 3px; background: var(--wb-success); min-width: 2px; }
.uptime-bar i.warn { background: var(--wb-amber); }
.uptime-bar i.bad { background: var(--wb-error); }
.uptime-bar i.info { background: var(--wb-blue); }

/* ---------- 19. Changelog (Linear pattern) ---------- */
.changelog { display: grid; gap: 32px; }
@media (min-width: 1024px) { .changelog { grid-template-columns: 200px 1fr 220px; } }
.cl-rail { display: none; }
@media (min-width: 1024px) { .cl-rail { display: block; } }
.cl-rail .m { font-weight: 700; color: var(--wb-muted); margin-bottom: 8px; }
.cl-entry { border: 1px solid var(--wb-line); border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 16px; background: var(--wb-surface); }
.cl-entry .meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.cl-entry .ver { font-family: 'Baloo 2', sans-serif; font-weight: 800; }
.cl-entry ul { list-style: none; margin-top: 10px; }
.cl-entry li { padding: 4px 0 4px 22px; position: relative; color: var(--wb-muted); font-size: 15px; }
.cl-entry li::before { content: "+"; position: absolute; left: 2px; color: var(--wb-blue); font-weight: 700; }
.cl-channels .ch {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px; margin-bottom: 10px;
  border: 1px solid var(--wb-line-strong); border-radius: 12px; font-weight: 600; font-size: 14px;
}
.cl-channels .ch:hover { border-color: var(--wb-blue); }

/* ---------- 20. Community ---------- */
.leader-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--wb-line);
}
.leader-row:last-child { border-bottom: none; }
.leader-row .rank { font-family: 'Baloo 2', sans-serif; font-weight: 800; color: var(--wb-muted); width: 24px; }
.leader-row img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--wb-surface-soft); }
.leader-row .flame { margin-left: auto; color: var(--wb-blue); font-weight: 700; }
.disc-row {
  display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--wb-line); align-items: flex-start;
}
.disc-row img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--wb-surface-soft); flex-shrink: 0; }
.disc-row .t { font-weight: 600; }
.disc-row .m { font-size: 13px; color: var(--wb-placeholder); }

/* ---------- 21. Animation (full animation, §7) ---------- */
@keyframes riseIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeSlide { from { opacity: 0; } to { opacity: 1; } }
.reveal { animation: riseIn .6s var(--ease) both; }
.reveal-1 { animation-delay: .08s; }
.reveal-2 { animation-delay: .16s; }
.reveal-3 { animation-delay: .24s; }
.reveal-4 { animation-delay: .32s; }
.scroll-reveal { opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.scroll-reveal.in { opacity: 1; transform: translateY(0); }
.typing-dots { display: inline-flex; gap: 4px; }
.typing-dots i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--wb-muted);
  animation: dotBounce .9s ease-in-out infinite;
}
.typing-dots i:nth-child(2) { animation-delay: .15s; }
.typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dotBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.toast {
  position: fixed; top: 76px; left: 50%; transform: translateX(-50%) translateY(-8px);
  background: var(--wb-surface); border: 1px solid var(--wb-line-strong); color: var(--wb-ink);
  padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; z-index: 200;
  box-shadow: 0 8px 32px rgba(10, 17, 40, .35);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.back-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  background: var(--wb-blue-grad); color: #fff; border-radius: 999px; padding: 10px 18px;
  font-weight: 700; font-size: 14px; display: none;
  box-shadow: 0 8px 24px rgba(29, 93, 223, .45);
}
.back-top.show { display: block; }

/* Sticky bottom CTA (phone) */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 80;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--wb-bg); border-top: 1px solid var(--wb-line);
  display: none;
}
@media (max-width: 767px) { .sticky-cta { display: block; } .sticky-cta .btn { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .scroll-reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 22. FIX-1 (QA round 1, 2026-12-02) ---------- */
/* S1 — nav fits at 390: no wrap, smaller wordmark/CTA, burger keeps its place */
.nav-inner { flex-wrap: nowrap; gap: 12px; padding: 0 16px; }
.nav-brand { flex-shrink: 0; white-space: nowrap; font-size: 17px; }
.nav-brand img { width: 32px; height: 32px; }
.nav-cta { flex-shrink: 0; white-space: nowrap; padding: 8px 14px; font-size: 14px; }
.nav-burger { margin-left: 0; flex-shrink: 0; }
@media (min-width: 1024px) {
  .nav-inner { padding: 0 24px; gap: 24px; }
  .nav-brand { font-size: 20px; }
  .nav-brand img { width: 36px; height: 36px; }
  .nav-cta { padding: 8px 16px; font-size: 14px; }
}
/* phone admin menu active state (desktop sidebar already had one) */
.nav-mobile a.active { background: var(--wb-surface-soft); color: var(--wb-ink); border-left: 3px solid var(--wb-blue); }
/* S2 — label + sub on separate lines; rows never clip their end control */
.admin-row .lbl { display: block; overflow-wrap: break-word; }
.admin-row .sub { display: block; font-size: 13px; color: var(--wb-muted); overflow-wrap: break-word; }
.admin-row > span, .admin-row > div { min-width: 0; }
.admin-row .ic, .admin-row img { flex-shrink: 0; }
.admin-row .end { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; white-space: nowrap; }
/* badges never wrap mid-word (Status pills at 390) */
.badge { white-space: nowrap; }
/* range inputs on-palette (Feature Gates + any other slider) */
input[type="range"] { accent-color: var(--wb-blue); }
/* Status banner: base class needs its own visible panel (TBD state) */
.status-banner { background: var(--wb-surface); border: 1px solid var(--wb-line-strong); }
/* #37 Cookies: grid item must shrink below the table's min-content width */
.legal-layout { min-width: 0; }
.legal-layout > * { min-width: 0; }
/* auto margins on a grid item size it to max-content (the 412px table) instead
   of stretching to the track — centre with justify-self, not margin:auto */
.legal-doc { min-width: 0; margin: 0; width: 100%; justify-self: center; }
.table-wrap { max-width: 100%; }
/* About hero feature list: ticks detached from centred labels at 390 —
   left-align the list and centre the block itself */
.hero .screen-panel ul { text-align: left; max-width: 320px; margin-left: auto; margin-right: auto; }
/* S4 — compact phone frames so controls + bottom nav reach the first viewport */
.phone-screen { padding: 0 14px 12px; }
.phone-screen .card { padding: 12px 14px; }
.phone-screen .grid { gap: 10px; }
.phone-screen .admin-row { padding: 10px 0; }
.phone-screen h3 { margin-bottom: 6px; }
.phone-screen .orb.lg { width: 150px; height: 150px; }
.phone-topbar { padding: 6px 0 8px; }
.phone-nav { flex-shrink: 0; padding: 8px 0 6px; }
/* call waveform: 5 bars a side, flanking the orb */
.wave-row { display: flex; align-items: center; justify-content: center; gap: 10px; }
.wave-row .wave { flex-shrink: 0; }
.wave-row .orb { flex-shrink: 0; }
.call-controls { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 12px 0 4px; }
/* 16:9 presentation (never stretch a portrait image) */
.video-169 { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; display: block; }
.cover-169 { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; display: block; }
/* icon chips (Tools + Contact cards) */
.icon-chip { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--wb-line-strong); background: var(--wb-surface); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 10px; flex-shrink: 0; }
/* contact avatars: red ring */
.avatar-ring { border: 2px solid var(--wb-blue) !important; border-radius: 50%; object-fit: cover; }
/* camera frame: red corner brackets + full-bleed image */
.cam-frame { position: relative; border-radius: 12px; overflow: hidden; }
.cam-frame img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.cam-frame .corner { position: absolute; width: 22px; height: 22px; border: 3px solid var(--wb-blue); pointer-events: none; }
.cam-frame .corner.tl { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.cam-frame .corner.tr { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.cam-frame .corner.bl { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.cam-frame .corner.br { bottom: 8px; right: 8px; border-left: none; border-top: none; }
/* Community featured images: uniform height */
.feat-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; margin-bottom: 12px; display: block; }
.community-search { max-width: 240px; }
/* data-flow diagram arrows */
.flow { display: grid; gap: 6px; }
.flow-arrow { text-align: center; color: var(--wb-blue); font-size: 22px; line-height: 1.2; font-weight: 800; }
.flow-arrow::before { content: "\2193"; }
@media (min-width: 1024px) {
  .flow { grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; }
  .flow-arrow { align-self: center; }
  .flow-arrow::before { content: "\2192"; }
}
/* file input on-palette */
input[type="file"].input { padding: 8px 12px; }
input[type="file"]::file-selector-button { background: var(--wb-blue-grad); color: #fff; border: none; border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 14px; margin-right: 12px; cursor: pointer; }
/* changelog: rail dots + connector lines from channels to entries */
.cl-rail { position: relative; }
.cl-rail .m { position: relative; padding-left: 22px; }
.cl-rail .m::before { content: ""; position: absolute; left: 0; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--wb-blue); box-shadow: 0 0 0 3px var(--wb-surface), 0 0 0 4px var(--wb-blue); }
.cl-rail .m::after { content: ""; position: absolute; left: 4px; top: 20px; bottom: -14px; width: 2px; background: var(--wb-line-strong); }
.cl-rail .m:last-of-type::after { display: none; }
.cl-channels { border-left: 2px solid var(--wb-line-strong); padding-left: 18px; }
.cl-channels .ch { position: relative; }
.cl-channels .ch::before { content: ""; position: absolute; left: -24px; top: 50%; width: 16px; height: 2px; margin-top: -1px; background: var(--wb-line-strong); }
/* referral code card: blue border (redesign 2026-12-05 — gold removed as a brand accent) */
.gold-border { border: 2px solid var(--wb-blue) !important; } /* kept for compatibility — renders blue since the redesign */
/* mini-site preview (Website Builder) */
.mini-site { border: 1px solid var(--wb-line-strong); border-radius: 12px; overflow: hidden; background: var(--wb-bg-bottom); margin: 12px 0; }
.mini-site .ms-bar { display: flex; gap: 6px; align-items: center; padding: 8px 10px; background: var(--wb-surface); border-bottom: 1px solid var(--wb-line); }
.mini-site .ms-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--wb-blue); }
.mini-site .ms-bar i:nth-child(2) { background: var(--wb-ink); }
.mini-site .ms-bar i:nth-child(3) { background: var(--wb-success); }
.mini-site .ms-bar span { font-size: 11px; color: var(--wb-muted); margin-left: 6px; }
.mini-site .ms-hero { height: 64px; background: linear-gradient(135deg, rgba(48,144,252,.55), rgba(29,93,223,.12)); display: flex; align-items: center; justify-content: center; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 15px; color: #fff; }
.mini-site .ms-row { display: flex; gap: 8px; padding: 10px; }
.mini-site .ms-row i { flex: 1; height: 34px; border-radius: 8px; background: var(--wb-surface-soft); border: 1px solid var(--wb-line); }
/* tighter hero/following-section spacing (Pricing/Download/Contact/Changelog polish) */
.hero-tight { padding-bottom: 24px; }
@media (min-width: 1024px) { .hero-tight { padding-bottom: 32px; } }
.section-tight { padding-top: 16px; }
@media (min-width: 1024px) { .section-tight { padding-top: 24px; } }
/* pricing comparison header: no 3-line wrap at 390 */
.compare thead th { white-space: nowrap; font-size: 13px; }
/* --- shared public block (was identical page-local <style> in all 10 public pages) --- */

.split{display:grid;gap:32px;align-items:flex-start}
@media(min-width:1024px){.split{grid-template-columns:1fr 1fr}.split.left{text-align:left}}
a.card{display:block}
.creator-ring{border:2px solid var(--wb-blue);border-radius:26px;box-shadow:0 0 40px rgba(29,93,223,.35);background:var(--wb-surface-soft);overflow:hidden}
.creator-img{width:100%;height:auto;object-fit:contain}
.portrait-wrap{position:relative}
.fade-bottom{position:absolute;left:0;right:0;bottom:0;height:45%;background:linear-gradient(to top,var(--wb-bg-bottom),rgba(219,228,245,0));pointer-events:none}
.cta-blue{background:var(--wb-blue-grad);border:1px solid var(--wb-line-strong);border-radius:26px;padding:40px 24px;text-align:center;color:#fff}
.cta-blue h1,.cta-blue h2{color:#fff;margin-bottom:8px}
.cta-blue p{color:rgba(255,255,255,.85);margin-bottom:20px}
.cta-blue .meta-line{color:rgba(255,255,255,.85)}
.cta-blue .dim{color:rgba(255,255,255,.75);font-size:14px}
.cta-blue a:not(.btn){color:#fff;text-decoration:underline}
.cta-blue .btn{text-decoration:none}
/* White CTA card — Download hero ONLY (§7 #4: white neomorphic card on the
   pastel bg, blue Download button). The other CTA panels are .cta-blue. */
.cta-white{background:var(--wb-surface);border:1px solid var(--wb-line);border-radius:26px;padding:40px 24px;text-align:center;color:var(--wb-ink);box-shadow:0 1px 2px rgba(16,24,40,.06),0 10px 30px rgba(16,24,40,.10)}
.cta-white h1,.cta-white h2{color:var(--wb-ink);margin-bottom:8px}
.cta-white p{color:var(--wb-muted);margin-bottom:20px}
.cta-white .meta-line{color:var(--wb-muted)}
.cta-white .dim{color:var(--wb-placeholder);font-size:14px}
.cta-white a:not(.btn){color:var(--wb-link);text-decoration:underline}
.cta-white .btn{text-decoration:none}
.cta-logo{width:72px;height:72px;border-radius:18px;object-fit:cover;margin:0 auto 16px;border:2px solid var(--wb-blue)}
.chip-row{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-bottom:32px}
.chip{padding:8px 16px;border-radius:999px;border:1px solid var(--wb-line-strong);font-weight:600;font-size:14px;background:transparent;color:var(--wb-muted)}
.chip.active{background:var(--wb-blue-grad);color:#fff;border-color:transparent}
.step-num{width:44px;height:44px;border-radius:50%;background:var(--wb-blue-grad);color:#fff;display:flex;align-items:center;justify-content:center;font-family:'Baloo 2',sans-serif;font-weight:800;font-size:20px;margin-bottom:12px}
.gold-border{border-color:var(--wb-blue)}
.grid-4{display:grid;gap:16px;grid-template-columns:1fr}
@media(min-width:768px){.grid-4{grid-template-columns:1fr 1fr}}
@media(min-width:1024px){.grid-4{grid-template-columns:1fr 1fr 1fr 1fr}}
.masonry{columns:1;gap:16px}
@media(min-width:768px){.masonry{columns:2}}
@media(min-width:1024px){.masonry{columns:3}}
.masonry .card{break-inside:avoid;margin-bottom:16px}
.price{font-family:'Baloo 2',sans-serif;font-size:44px;font-weight:800;line-height:1.1}
.plan-pop{border:2px solid var(--wb-blue)}
.toggle-pill{display:inline-flex;border:1px solid var(--wb-line-strong);border-radius:999px;padding:4px;gap:4px}
.toggle-pill button{padding:8px 20px;border-radius:999px;font-weight:600;color:var(--wb-muted)}
.toggle-pill button.active{background:var(--wb-blue-grad);color:#fff}
.tl{position:relative;padding-left:28px;border-left:2px solid var(--wb-line-strong)}
.tl-item{margin-bottom:28px;position:relative}
.tl-item::before{content:"";position:absolute;left:-34px;top:6px;width:10px;height:10px;border-radius:50%;background:var(--wb-blue)}
.track{height:4px;background:var(--wb-surface-soft);border-radius:999px;overflow:hidden;margin:0 auto 32px;max-width:640px}
.track i{display:block;height:100%;width:100%;background:var(--wb-blue-grad)}
.check-list{list-style:none;margin:16px 0;text-align:left}
.check-list{max-width:560px;margin-left:auto;margin-right:auto}
.check-list li{padding:6px 0 6px 28px;position:relative;color:var(--wb-muted)}
.check-list li::before{content:"\2713";position:absolute;left:0;color:var(--wb-blue);font-weight:700}
.check-list li.no{color:var(--wb-placeholder)}
.check-list li.no::before{content:"\2014";color:var(--wb-placeholder)}
.blog-img{border-radius:12px;margin-bottom:14px;width:100%;aspect-ratio:16/9;object-fit:cover}
.meta-line{font-size:13px;color:var(--wb-placeholder);margin-bottom:8px}
.quote-big{font-family:'Baloo 2',sans-serif;font-weight:800;font-size:26px;line-height:1.3}
@media(min-width:1024px){.quote-big{font-size:32px}}

.stepper{display:flex;justify-content:space-between;align-items:center;max-width:640px;margin:0 auto 32px;position:relative}
.stepper::before{content:"";position:absolute;left:8px;right:8px;top:50%;height:4px;margin-top:-2px;background:var(--wb-line);border-radius:999px}
.step-dot{position:relative;width:16px;height:16px;border-radius:50%;background:var(--wb-line);border:3px solid var(--wb-bg);box-shadow:0 0 0 2px var(--wb-line)}
.step-dot.active{background:var(--wb-blue);box-shadow:0 0 0 2px var(--wb-blue)}
.tutorial-video{width:100%;max-width:720px;margin:0 auto;display:block;border-radius:26px;border:1px solid var(--wb-line-strong);background:#000;aspect-ratio:16/9}

/* --- shared settings block (was identical page-local <style> in all 12 settings pages) --- */

.settings-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid var(--wb-blue); box-shadow: 0 0 32px color-mix(in srgb, var(--wb-blue) 40%, transparent); }
.settings-photo-sm { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--wb-blue); }
.settings-logo { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; border: 1px solid var(--wb-line-strong); box-shadow: 0 0 32px color-mix(in srgb, var(--wb-blue) 35%, transparent); }
.settings-center { text-align: center; }
.settings-code { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 32px; letter-spacing: .08em; }
.usage-bar { display: flex; gap: 3px; height: 14px; margin: 12px 0 6px; }
.usage-bar i { flex: 1; border-radius: 4px; background: var(--wb-surface-soft); border: 1px solid var(--wb-line); }
.usage-bar i.seg-blue { background: var(--wb-blue); }
.usage-bar i.seg-navy { background: var(--wb-ink); }
.usage-bar i.seg-blue-bright { background: var(--wb-blue-bright); }
.usage-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--wb-muted); }
.usage-legend b { color: var(--wb-ink); }
.font-row { display: flex; align-items: center; gap: 12px; }
.font-row input[type="range"] { flex: 1; accent-color: var(--wb-blue); }
.font-row .a-small { font-size: 13px; }
.font-row .a-big { font-size: 22px; font-weight: 700; }
.settings-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--wb-muted); font-weight: 600; font-size: 15px; }
.settings-nav a:hover { background: var(--wb-surface-soft); color: var(--wb-ink); }
.settings-nav a.active { background: var(--wb-surface-soft); color: var(--wb-ink); border-left: 3px solid var(--wb-blue); }
.settings-nav a.active .cur { color: var(--wb-blue); font-size: 12px; font-weight: 700; margin-left: auto; }
.settings-mt { margin-top: 12px; }
.phone-content { margin-top: 16px; }
.chip-center { justify-content: center; }
.phone-back { font-size: 26px; line-height: 1; color: var(--wb-muted); padding: 0 4px; }
.phone-back:hover { color: var(--wb-ink); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.steps { list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding: 8px 0 8px 36px; position: relative; color: var(--wb-muted); font-size: 15px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--wb-blue-grad); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* --- utility classes (replacing all inline style= attributes) --- */
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }
.my-8 { margin: 8px 0; } .my-12 { margin: 12px 0; } .my-20 { margin: 20px 0; } .my-32-16 { margin: 32px 0 16px; }
.text-center { text-align: center; } .text-left { text-align: left; }
.fs-14 { font-size: 14px; } .fs-20 { font-size: 20px; } .fs-28 { font-size: 28px; }
.max-w-240 { max-width: 240px; } .max-w-560 { max-width: 560px; } .max-w-640 { max-width: 640px; }
.max-w-720 { max-width: 720px; } .max-w-860 { max-width: 860px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.center-640 { max-width: 640px; margin: 0 auto; text-align: center; }
.center-pad-40 { text-align: center; padding: 40px 24px; }
.footer-tag { font-size: 14px; max-width: 280px; }
.flex-280 { max-width: 280px; flex: 1; }
.ph-step { min-height: 120px; margin: 12px 0; }
.avatar-56 { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; margin-bottom: 16px; }
.avatar-120 { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; }
.u-line { text-decoration: underline; }
.hidden { display: none; }
.items-start { align-items: start; }
.search-w { max-width: 240px; }

/* 3D creator viewer (was a page-local <style> in about.html) */

.c3d-wrap{max-width:720px;margin:0 auto}
.c3d-stage{position:relative;height:520px;background:var(--wb-bg);border:1px solid var(--wb-line-strong);border-radius:26px;box-shadow:0 0 40px color-mix(in srgb, var(--wb-blue) 25%, transparent);overflow:hidden}
.c3d-poster{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:var(--wb-bg);transition:opacity .6s ease;z-index:2}
.c3d-poster img{max-height:100%;max-width:100%;object-fit:contain}
.c3d-poster-hidden{opacity:0;pointer-events:none}
.c3d-canvas-wrap{position:absolute;inset:0;z-index:1}
.c3d-canvas{width:100%;height:100%;display:block;touch-action:none}
.c3d-controls{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:16px}
.c3d-controls .btn{padding:10px 16px;font-size:14px}
.c3d-caption{color:var(--wb-muted);text-align:center;margin-top:12px}
.c3d-alt{color:var(--wb-placeholder);font-size:13px;text-align:center;margin-top:6px}
@media (max-width:640px){.c3d-stage{height:420px}}

/* FIX-2 (D1): Tools Hub tap-to-open detail sheet — an overlay inside the
   phone frame. display:none when closed, so it occupies no frame height;
   tapping a tool card opens it with the Try button inside. */
.tool-card { cursor: pointer; }
.tool-card:focus-visible { outline: 2px solid var(--wb-blue); outline-offset: 2px; }
.tool-sheet { position: absolute; left: 0; right: 0; top: 28px; bottom: 0; z-index: 5;
  display: none; align-items: flex-end; background: rgba(10, 17, 40, .72); }
.tool-sheet.open { display: flex; }
.tool-sheet-card { position: relative; width: 100%;
  background: var(--wb-surface); border-top: 1px solid var(--wb-line-strong);
  border-radius: 26px 26px 0 0; padding: 20px 16px 24px;
  box-shadow: 0 -12px 40px rgba(10, 17, 40, .35); }
.tool-sheet-close { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px;
  border-radius: 50%; border: 1px solid var(--wb-line-strong); background: var(--wb-surface-soft);
  color: var(--wb-ink); font-size: 16px; line-height: 1; cursor: pointer; }

/* FIX-2 (D6/D7): cap the desktop frame height on the two dead-space frames
   only (index hero + app chat). Phone width is unchanged — the rule only
   applies at 1024px and up, where the 390/844 frame is taller than the
   chat content inside it. */
@media (min-width: 1024px) { .phone-frame-fill { aspect-ratio: 390 / 720; } }


/* ---------- 23. Responsive — three modes (DESIGN-SYSTEM-V2 §10) ---------- */
/* Cut points are EXACTLY 768px (mobile -> laptop) and 1600px (laptop ->
   desktop). Mode is chosen by CSS viewport width via media queries ONLY —
   never by user-agent sniffing, never by device model. Reference widths:
   360px mobile, 1280px laptop, 1920px desktop. Inside laptop mode there is
   ONE internal layout switch at 1024px (full nav row + sidebars appear);
   it is a detail inside mode L, not a fourth mode. A phone (< 768px) NEVER
   gets the desktop/laptop layout; a desktop (>= 1600px) NEVER gets the
   phone layout. The container is capped at 1200px centred in laptop
   mode; desktop widens it to 1440px (Wave 2, audit W2 — see the D block
   below for the spec-tension note). */

/* M — Mobile (< 768px): base rules above already are the mobile layout
   (single column, full-width cards, 16px side padding, H1 32px, touch
   targets >= 48px). Primary buttons/inputs are 52px on mobile: */
.btn { min-height: 52px; }
.btn-sm { min-height: 0; }
.input, select.input { min-height: 52px; }

/* Wave 2 — W7: the nav row overflowed by ~3px at 390px (burger right edge
   393.2px, scrollWidth 393 on 47 pages). Root cause: Wave 1's injected nav
   toggle (44px, v9.js, before the burger) made the row
   16 + 148 + 12 + 128 + 12 + 44 + 12 + 22 = 393px. Tightening the mobile gap
   12px -> 8px saves 12px. (Toggle removed in the 2026-12-05 redesign —
   light only; the v9.js injection still has to be removed.) */
@media (max-width: 767px) {
  .nav-inner { gap: 8px; }
}

/* Wave 2 — W7: the "Follow BADSHAH" social row inside the About phone
   frame (app/settings/about.html) is a no-wrap flex row of 5 links
   (357px min-content) that forced its card to 387px wide in a ~308px
   frame (scrollWidth 393, cards visibly clipped). Wrap it inside the
   phone frame; the footer .social-row is untouched. */
.phone-screen .social-row { flex-wrap: wrap; justify-content: center; row-gap: 8px; }

/* L — Laptop (768–1599px): 2 columns where appropriate, H1 40px at
   768–1023px, section padding 64px. The 1024px internal switch (nav row,
   sidebars, 3-col grids) is in the rules above. */
@media (min-width: 768px) {
  h1 { font-size: 40px; }
  section { padding: 64px 0; }
  .btn { min-height: 56px; }
  .input, select.input { min-height: 56px; }
  .hero { padding: 80px 0 56px; }
}

/* D — Desktop / computer (>= 1600px): same columns as laptop >= 1024px,
   container WIDENS to 1440px centred (Wave 2, audit W2: laptop and
   desktop were the same 1200px layout with wider empty margins — not two
   modes). Type scale grows, spacing grows, grids widen, admin/legal
   layouts widen. No 5th grid column, no full-bleed stretch, no bigger
   buttons.
   NOTE — spec tension, flagged not hidden: DESIGN-SYSTEM-V2 §10.2 says
   the desktop container "STAYS capped at 1200px". This wave follows the
   audit (W2) + the Wave 2 task instead: 1400–1520px, 1440px chosen.
   If Boss prefers the spec's 1200px, only the .container line reverts. */
@media (min-width: 1600px) {
  h1 { font-size: 56px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
  body { font-size: 17px; }
  section { padding: 96px 0; }
  .container { max-width: 1440px; }
  .hero { padding: 96px 0 64px; }
  /* Wider grids: same column counts as laptop >= 1024px, wider tracks. */
  .card { padding: 28px; }
  .grid-2, .grid-3, .grid-4 { gap: 24px; }
  .masonry { columns: 4; gap: 24px; }
  .split { gap: 48px; }
  .phone-stage { gap: 48px; }
  .footer-grid { gap: 48px; }
  .stat-value { font-size: 44px; }
  /* Wider admin / legal layouts (sidebars grow, content track widens). */
  .admin-shell { grid-template-columns: 280px minmax(0, 1fr); }
  .legal-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .changelog { grid-template-columns: 220px 1fr 240px; }
}

/* Wave 2 — W3: stacked per-plan comparison cards (mobile only). The
   compare table is hidden at <= 767px; the cards below carry the SAME
   8 feature rows as the table (pricing.html), so no sideways swipe is
   ever needed to read plan differences on a phone. */
.compare-cards { display: none; }
.compare-cards .card { text-align: left; }
.compare-cards h3 { margin-bottom: 4px; }
.compare-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--wb-line);
  font-size: 15px;
}
.compare-row:last-child { border-bottom: none; }
.compare-row .yes { color: var(--wb-blue); font-weight: 700; }
.compare-row .no { color: var(--wb-placeholder); }
.compare tbody .yes { color: var(--wb-blue); font-weight: 700; }
.compare tbody .no { color: var(--wb-placeholder); }
@media (max-width: 767px) {
  .table-wrap.compare { display: none; }
  .compare-cards { display: grid; gap: 12px; }
}

/* Wave 2 — W4 + W6: hide the back-to-top button AND the sticky Download
   CTA while the footer is in view (v9.js toggles body.footer-in-view via
   IntersectionObserver), so neither can cover the footer social links on
   a phone. Mid-page both behave exactly as before. */
body.footer-in-view .back-top.show { display: none; }
@media (max-width: 767px) {
  body.footer-in-view .sticky-cta { display: none; }
  /* The sticky CTA bar is ~76px tall at the bottom of a phone; lift the
     back-to-top button above it so the two never overlap mid-page. */
  .back-top { bottom: 100px; }
}

/* Light-only since the 2026-12-05 redesign (APK is light-only, Boss O-10).
   The alternate-theme block and the toggle styles are deleted.
   NOTE: assets/v9.js still injects a toggle button and applies a saved theme —
   that injection must be removed from v9.js (not this file). */

/* ---------- 24. Antigravity (Wave 2, 2026-12-03 — PINTEREST-AUDIT-ANTIGRAVITY.md §5) ---------- */
/* The SINGLE motion spec for the whole product (app values in dp, web in px —
   same numbers). All motion is transform/opacity only — NO blur, NO filter.
   Do NOT touch §14 (Orb) or the palette tokens (§1) from this section.
   Entrance is NOT redefined here: the existing .reveal / .scroll-reveal
   (rise 24px + fade, 600ms, var(--ease), stagger .08s) already IS the §5
   entrance, and .card:hover already IS the §5 lift (−4px, 200ms ease-out).
   Reduced motion: the §21 media query already kills every animation with
   !important; the explicit rule at the end of this section restates it for
   the ag-* classes so the guarantee is visible here too. */
@keyframes agFloatHero { from { transform: translateY(-6px); } to { transform: translateY(6px); } }
@keyframes agFloatMid { from { transform: translateY(-4px); } to { transform: translateY(4px); } }
@keyframes agFloatSm { from { transform: translateY(-3px); } to { transform: translateY(3px); } }
@keyframes agBob2 { from { transform: translateY(-2px); } to { transform: translateY(2px); } }
@keyframes agDrift { from { transform: translateX(-4px); } to { transform: translateX(4px); } }
@keyframes agDriftBg { from { transform: translateX(-8px); } to { transform: translateX(8px); } }
@keyframes agSheetUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
/* Hero float ±6px, 3.0s (creator cutout AG-W3, login logo tile AG-W17, About portrait AG-W10) */
.ag-float-hero { animation: agFloatHero 3s ease-in-out infinite alternate; }
/* Orb float ±4px, 3.0s — the orb's ONE float, over its 2.4s breathe (12s phase
   cycle). Apply to the .orb-rings wrapper, never to .orb itself twice. AG-W1/W6/W13 */
.ag-orb-float { animation: agFloatMid 3s ease-in-out infinite alternate; }
/* General hero float ±4px, 3.0s (Pro card AG-W7 is .ag-pro; code/hero cards) */
.ag-float { animation: agFloatMid 3s ease-in-out infinite alternate; }
/* Small float ±3px, 3.0s, staggered (feature/tool/step cards AG-W4/W9/W14) */
.ag-float-sm { animation: agFloatSm 3s ease-in-out infinite alternate; }
.ag-float-sm:nth-child(2) { animation-delay: .09s; }
.ag-float-sm:nth-child(3) { animation-delay: .18s; }
.ag-float-sm:nth-child(4) { animation-delay: .27s; }
.ag-float-sm:nth-child(5) { animation-delay: .36s; }
.ag-float-sm:nth-child(6) { animation-delay: .45s; }
/* Tiny bob ±2px, 3.0s (guardian/watching pills, flow boxes AG-W20, changelog dot) */
.ag-bob-2 { animation: agBob2 3s ease-in-out infinite alternate; }
/* Slow drift ±4px, 6.0s (phone frame AG-W2 is parallax instead — see v9.js;
   waveform cluster / bg shapes) */
.ag-drift { animation: agDrift 6s ease-in-out infinite alternate; }
/* Large bg circles ±8px, 6.0s, phased (login bg AG-W17 / AG-A22) */
.ag-drift-bg { animation: agDriftBg 6s ease-in-out infinite alternate; }
.login-bg .c2 { animation-delay: 2s; }
.login-bg .c3 { animation-delay: 4s; }
/* Pro card — the ONLY pricing card that floats (AG-W7/P8): ±4px, 3.0s */
.ag-pro { animation: agFloatMid 3s ease-in-out infinite alternate; }
/* Download button bob ±4px, 3.0s (AG-W8) */
.ag-cta-bob { animation: agFloatMid 3s ease-in-out infinite alternate; }
/* Lift on hover −4px + shadow deepen, 200ms ease-out (non-.card elements:
   login social tile, vote buttons, nav pill). .card and .btn-primary already
   lift on hover from §5/§6 — do not add .ag-lift to those. */
.ag-lift { transition: transform .2s ease-out, box-shadow .2s ease-out; }
.ag-lift:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(29, 93, 223, .45); }
.ag-lift-sm { transition: transform .2s ease-out, box-shadow .2s ease-out; }
.ag-lift-sm:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(29, 93, 223, .35); }
/* Tool detail sheet rises on open, 300ms weightless ease (AG-W14 / AG-A7).
   There is no sheet-handle element in the built sheet, so no handle bob. */
.tool-sheet.open .tool-sheet-card { animation: agSheetUp .3s var(--ease) both; }
/* Status banner floats ONLY when degraded (AG-W16 — amber warning, not decoration) */
.status-banner.degraded { animation: agFloatSm 3s ease-in-out infinite alternate; }
/* Changelog: the current (first) timeline dot gently bobs (AG-W12) */
.cl-rail .m:first-child::before { animation: agBob2 3s ease-in-out infinite alternate; }
/* Data-flow boxes settle with a ±2px bob, staggered (AG-W20) */
.flow > .card { animation: agBob2 3s ease-in-out infinite alternate; }
.flow > .card:nth-child(3) { animation-delay: .09s; }
.flow > .card:nth-child(5) { animation-delay: .18s; }
.flow > .card:nth-child(7) { animation-delay: .27s; }
/* Reduced motion — all antigravity off, content fully visible (§5). */
@media (prefers-reduced-motion: reduce) {
  .ag-float-hero, .ag-orb-float, .ag-float, .ag-float-sm, .ag-bob-2,
  .ag-drift, .ag-drift-bg, .ag-pro, .ag-cta-bob,
  .tool-sheet.open .tool-sheet-card, .status-banner.degraded,
  .cl-rail .m:first-child::before, .flow > .card { animation: none !important; }
  .ag-lift:hover, .ag-lift-sm:hover { transform: none; }
  [data-ag-parallax] { transform: none !important; }
}
