* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 4px; }

:root {
  --bg: #0b0713;
  --bg-alt: #120a1e;
  --surface: rgba(21, 15, 34, 0.72);
  --surface-solid: #150f22;
  --border: #2a1f3d;
  --pink: #ff5fa2;
  --pink-soft: #ff9fc7;
  --purple: #a259ff;
  --blue: #5865f2;
  --text: #f2eefb;
  --muted: #9c8fc0;
  --green: #57f287;
  --yellow: #fee75c;
  --red: #ed4245;
  --nav-h: 72px;
}

body {
  font-family: 'Quicksand', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ============ page load choreography ============ */
body.preload * { animation-play-state: paused !important; transition: none !important; }
.load-fade {
  opacity: 0;
  animation: loadFadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes loadFadeIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ============ background ambience ============ */
.bg-glow { position: fixed; border-radius: 50%; filter: blur(140px); opacity: 0.28; z-index: 0; pointer-events: none; animation: drift 16s ease-in-out infinite alternate; }
.bg-glow-1 { width: 520px; height: 520px; background: var(--pink); top: -160px; left: -160px; }
.bg-glow-2 { width: 560px; height: 560px; background: var(--purple); bottom: -180px; right: -160px; animation-delay: 4s; }
.bg-glow-3 { width: 420px; height: 420px; background: var(--blue); top: 50%; left: 50%; opacity: 0.14; animation-delay: 2s; }
@keyframes drift { from { transform: translate(0,0); } to { transform: translate(40px, 26px); } }

.sparkle-field { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.sparkle { position: absolute; width: 3px; height: 3px; background: var(--pink-soft); border-radius: 50%; box-shadow: 0 0 8px 2px rgba(255,159,199,0.7); animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle { 0%,100% { opacity: 0.1; transform: scale(0.7); } 50% { opacity: 0.85; transform: scale(1.2); } }

/* Subtle film-grain, inline SVG turbulence so it's a zero-request texture —
   adds richness to the flat dark background without needing an image file. */
.noise-overlay {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-theme="light"] .noise-overlay { opacity: 0.02; }

/* Alternating section tint for depth — --bg-alt was already defined but
   unused; applying it here instead of introducing a new variable. Sections
   have no separate full-width wrapper, so a plain background would only
   tint the constrained inner box — this box-shadow trick fills the full
   viewport width without needing to restructure the markup. */
.section-alt { background: var(--bg-alt); box-shadow: 0 0 0 100vmax var(--bg-alt); clip-path: inset(0 -100vmax); }
html[data-theme="light"] .section-alt { background: rgba(28,21,48,0.025); box-shadow: 0 0 0 100vmax rgba(28,21,48,0.025); }

/* ============ nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  gap: 20px;
  padding: 0 32px;
  background: rgba(11, 7, 19, 0.7);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s ease, border-color 0.3s ease;
}
/* margin-right:auto on the brand (instead of justify-content:space-between
   on .nav) is what lets .nav-tools sit right next to .nav-toggle as a
   normal grouped sibling instead of getting stranded in the middle of the
   bar — space-between only behaves predictably with exactly two children,
   and this bar now has four (brand / links / tools / toggle). */
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); margin-right: auto; }
.nav-logo { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--pink); box-shadow: 0 0 14px rgba(255,95,162,0.5); object-fit: cover; }
.nav-logo-fallback { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--pink)); display: flex; align-items: center; justify-content: center; font-family: 'Baloo 2', sans-serif; font-weight: 800; }
.nav-wordmark { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 18px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; transition: color 0.2s ease; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -20px; height: 2px; background: linear-gradient(90deg, var(--pink), var(--purple)); }
.nav-cta { padding: 9px 18px; border-radius: 999px; background: linear-gradient(135deg, var(--pink), var(--purple)); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; box-shadow: 0 6px 18px rgba(255,95,162,0.35); transition: transform 0.15s ease, filter 0.15s ease; }
.nav-cta:hover { transform: translateY(-1px); filter: brightness(1.08); }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  /* .nav-tools is now a direct sibling of .nav-links, not nested inside it —
     it stays in the header bar at all times instead of being part of the
     collapsible dropdown, so the theme/language buttons are always exactly
     as reachable as the hamburger icon next to them, open menu or not. */
  .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: rgba(11,7,19,0.97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); max-height: 0; overflow-y: auto; transition: max-height 0.35s ease; }
  .nav-links.open { max-height: min(70vh, 480px); }
  .nav-links a, .nav-links a.active::after { position: static; }
  .nav-links a { width: 100%; padding: 16px 32px; border-bottom: 1px solid rgba(255,255,255,0.04); }
  .nav-cta { margin: 16px 32px; display: inline-block; }
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
  .nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
}
@media (max-width: 380px) {
  /* Very narrow phones: shrink the tool buttons slightly so brand + tools +
     toggle never crowd or wrap within the fixed-height nav bar. */
  .tool-btn { width: 38px; height: 38px; }
}

/* ============ layout helpers ============ */
.page { position: relative; z-index: 1; padding-top: var(--nav-h); }
.section { max-width: 1080px; margin: 0 auto; padding: 90px 28px; scroll-margin-top: calc(var(--nav-h) + 12px); }
.section-tight { padding-top: 40px; padding-bottom: 40px; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--pink-soft); background: rgba(255,95,162,0.1); border: 1px solid rgba(255,95,162,0.25); padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
h1, h2, h3 { font-family: 'Baloo 2', sans-serif; }
h1 { font-weight: 800; }
h2 { font-weight: 700; }
h3 { font-weight: 500; }
.section-title { font-size: 34px; margin-bottom: 12px; }
.section-sub { color: var(--muted); font-size: 16px; }
.grad-text { background: linear-gradient(135deg, var(--pink), var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ============ reveal-on-scroll ============ */
.reveal { transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
html.reveal-on .reveal { opacity: 0; transform: translateY(28px); }
html.reveal-on .reveal.is-visible { opacity: 1; transform: translateY(0); }
html.reveal-on .reveal-left { transform: translateX(-32px); }
html.reveal-on .reveal-left.is-visible { transform: translateX(0); }
html.reveal-on .reveal-right { transform: translateX(32px); }
html.reveal-on .reveal-right.is-visible { transform: translateX(0); }
html.reveal-on .reveal-scale { transform: scale(0.92); }
html.reveal-on .reveal-scale.is-visible { transform: scale(1); }

/* ============ hero ============ */
.hero { min-height: calc(100vh - var(--nav-h)); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 24px; position: relative; }
.hero-mascot { width: 132px; height: 132px; border-radius: 50%; border: 4px solid var(--pink); box-shadow: 0 0 0 6px rgba(255,95,162,0.1), 0 0 44px rgba(255,95,162,0.55); overflow: hidden; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--purple), var(--pink)); margin-bottom: 28px; animation: pulseGlow 3.4s ease-in-out infinite; }
@keyframes pulseGlow { 0%,100% { box-shadow: 0 0 0 6px rgba(255,95,162,0.1), 0 0 44px rgba(255,95,162,0.55); } 50% { box-shadow: 0 0 0 10px rgba(255,95,162,0.06), 0 0 60px rgba(255,95,162,0.8); } }
.hero-mascot img { width: 100%; height: 100%; object-fit: cover; }
.hero-mascot-fallback { font-family: 'Baloo 2', sans-serif; font-size: 56px; font-weight: 800; color: #fff; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.1; margin-bottom: 18px; }
.hero-sub { color: var(--muted); font-size: 17px; max-width: 560px; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.scroll-cue { position: absolute; bottom: 28px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ============ buttons ============ */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; border: none; cursor: pointer; transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary { background: linear-gradient(135deg, var(--pink), var(--purple)); color: #fff; box-shadow: 0 10px 28px rgba(255,95,162,0.35); }
.btn-discord { background: var(--blue); color: #fff; box-shadow: 0 10px 28px rgba(88,101,242,0.35); }
.btn-outline { background: rgba(255,255,255,0.03); border: 1px solid var(--border); color: var(--text); }

/* ============ cards / grids ============ */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border); border-radius: 20px; padding: 28px;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(255,95,162,0.4); box-shadow: 0 20px 50px rgba(255,95,162,0.12); }
.card-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; background: rgba(162,89,255,0.15); border: 1px solid rgba(162,89,255,0.3); color: var(--pink-soft); flex-shrink: 0; }
.card-icon svg { width: 23px; height: 23px; flex-shrink: 0; }
.card-tag { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.3px; color: var(--pink-soft); background: rgba(255,95,162,0.09); border: 1px solid rgba(255,95,162,0.22); padding: 4px 10px; border-radius: 999px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; }

/* ============ steps / timeline ============ */
.steps { position: relative; }
.step { display: flex; gap: 20px; padding: 24px 0; position: relative; }
.step-num { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--pink), var(--purple)); display: flex; align-items: center; justify-content: center; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 17px; box-shadow: 0 0 20px rgba(255,95,162,0.4); }
.step-line { position: absolute; left: 22px; top: 68px; bottom: -24px; width: 2px; background: linear-gradient(180deg, var(--pink), transparent); }
.step:last-child .step-line { display: none; }
.step-body { display: flex; align-items: flex-start; gap: 10px; }
.step-icon { flex-shrink: 0; width: 20px; height: 20px; margin-top: 3px; color: var(--pink-soft); }
.step-body h3 { font-size: 17px; margin-bottom: 6px; }
.step-body p { color: var(--muted); font-size: 14px; }

/* ============ stats ============ */
.stats { display: flex; justify-content: center; gap: 56px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { font-family: 'Baloo 2', sans-serif; font-size: 38px; font-weight: 800; background: linear-gradient(135deg, var(--pink), var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-num.pending { opacity: 0.35; animation: statPulse 1.3s ease-in-out infinite; }
@keyframes statPulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.5; } }
.stat-label { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* ============ command chips (copy-to-clipboard) ============ */
.cmd-chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px 8px 14px; font-family: monospace; font-size: 13px; color: var(--pink-soft); cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease; }
.cmd-chip:hover { border-color: var(--pink); background: rgba(255,95,162,0.06); }
.cmd-chip .copy-icon { width: 14px; height: 14px; color: var(--muted); flex-shrink: 0; }
.cmd-chip.copied .copy-icon { color: var(--green); }

/* ============ accordion (help/faq) ============ */
.accordion-item { border: 1px solid var(--border); border-radius: 16px; margin-bottom: 12px; overflow: hidden; background: var(--surface); }
.accordion-trigger { width: 100%; text-align: left; background: none; border: none; color: var(--text); padding: 20px 22px; font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 15px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; transition: background 0.2s ease; }
.accordion-trigger:hover { background: rgba(255,255,255,0.03); }
.accordion-icon { transition: transform 0.3s ease; color: var(--pink-soft); flex-shrink: 0; }
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.35s cubic-bezier(0.16,1,0.3,1); }
.accordion-item.open .accordion-panel { max-height: 400px; }
.accordion-panel-inner { padding: 0 22px 20px; color: var(--muted); font-size: 14px; line-height: 1.65; }

/* ============ owner card ============ */
.owner-card { max-width: 460px; margin: 0 auto; text-align: center; background: var(--surface); backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: 24px; padding: 40px 32px; }
.owner-avatar-wrap { position: relative; width: 128px; height: 128px; margin: 0 auto 18px; }
.owner-avatar { width: 100%; height: 100%; border-radius: 50%; border: 4px solid var(--pink); box-shadow: 0 0 30px rgba(255,95,162,0.5); object-fit: cover; background: linear-gradient(135deg, var(--purple), var(--pink)); }
.owner-status-dot { position: absolute; bottom: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--surface-solid); background: var(--muted); }
.owner-status-dot.online { background: var(--green); }
.owner-status-dot.idle { background: var(--yellow); }
.owner-status-dot.dnd { background: var(--red); }
.owner-display-name { font-family: 'Baloo 2', sans-serif; font-size: 22px; font-weight: 800; }
.owner-username { color: var(--muted); font-size: 14px; margin-top: 2px; }
.owner-role-badge { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 700; color: var(--pink-soft); background: rgba(255,95,162,0.1); border: 1px solid rgba(255,95,162,0.3); padding: 5px 14px; border-radius: 999px; }
.owner-bio { color: var(--muted); font-size: 14px; margin-top: 18px; line-height: 1.6; }
.spotify-card { display: none; align-items: center; gap: 12px; background: rgba(30, 215, 96, 0.08); border: 1px solid rgba(30, 215, 96, 0.25); border-radius: 14px; padding: 12px 14px; margin-top: 20px; text-align: left; }
.spotify-card.active { display: flex; }
.spotify-art { width: 44px; height: 44px; border-radius: 8px; flex-shrink: 0; object-fit: cover; }
.spotify-info { min-width: 0; }
.spotify-label { color: #1ed760; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; display: flex; align-items: center; gap: 5px; }
.spotify-song { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spotify-artist { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.owner-socials { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }
.social-btn { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text); text-decoration: none; transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease; font-size: 18px; }
.social-btn:hover { transform: translateY(-3px); border-color: var(--pink); background: rgba(255,95,162,0.1); }

/* ============ terms content ============ */
.terms-content h2 { font-size: 20px; margin: 34px 0 12px; }
.terms-content h2:first-child { margin-top: 0; }
.terms-content p { color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.terms-updated { color: var(--muted); font-size: 13px; margin-bottom: 30px; }
.terms-content strong { color: var(--text); }

/* ============ footer ============ */
.footer { border-top: 1px solid var(--border); padding: 56px 28px 32px; position: relative; z-index: 1; }
.footer-inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; gap: 28px; } }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-desc { color: var(--muted); font-size: 14px; max-width: 280px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--pink-soft); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); text-decoration: none; font-size: 14px; margin-bottom: 10px; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { max-width: 1080px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; text-align: center; }
.footer-updated { font-size: 11px; color: var(--muted); opacity: 0.7; text-align: center; margin-top: 6px; }

.spinner { width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--pink); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
  .section { padding: 64px 20px; }
  .stats { gap: 32px; }
}

/* ============ light theme (nav toggle) ============
   Most components already read from these variables, so swapping the
   palette here is enough — only the handful of hardcoded rgba() overlays
   below need an explicit light-mode override. */
html[data-theme="light"] {
  --bg: #f6f3fb; --bg-alt: #ffffff; --surface: rgba(255,255,255,0.78); --surface-solid: #ffffff;
  --border: #e5defa; --text: #1c1530; --muted: #6c6386;
}
html[data-theme="light"] .bg-glow { opacity: 0.14; }
html[data-theme="light"] .sparkle { opacity: 0.5; }
html[data-theme="light"] .nav { background: rgba(255,255,255,0.78); border-bottom-color: rgba(28,21,48,0.08); }
html[data-theme="light"] .tool-btn, html[data-theme="light"] .btn-outline { background: rgba(28,21,48,0.04); }
html[data-theme="light"] .discord-msg-text { color: #3c3552; }
html[data-theme="light"] .sticky-cta { background: rgba(255,255,255,0.92); }
html[data-theme="light"] .status-pill { background: rgba(255,255,255,0.9); }
@media (max-width: 820px) { html[data-theme="light"] .nav-links { background: rgba(255,255,255,0.98); } }

/* ============ nav tools (theme + language toggle) ============ */
.nav-tools { display: flex; align-items: center; gap: 8px; }
.tool-btn { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text); cursor: pointer; transition: border-color 0.2s ease, transform 0.2s ease; flex-shrink: 0; }
.tool-btn:hover { border-color: var(--pink); transform: translateY(-1px); }
.tool-btn svg { width: 17px; height: 17px; }
.lang-btn { width: auto; padding: 0 13px; font-size: 12px; font-weight: 800; letter-spacing: 0.3px; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ============ trust badges (hero) ============ */
.trust-badges { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
.trust-badge { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; color: #8ff5b0; background: rgba(87,242,135,0.09); border: 1px solid rgba(87,242,135,0.25); padding: 7px 14px; border-radius: 999px; }
.trust-badge svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ============ discord-style mockups (hero + live demo) ============ */
.discord-window { background: var(--surface-solid); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; text-align: left; }
.discord-window-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 13px; font-weight: 700; }
.discord-window-dots { display: flex; gap: 6px; }
.discord-window-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.discord-window-body { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.discord-msg { display: flex; gap: 10px; }
.discord-avatar { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, var(--purple), var(--pink)); display: flex; align-items: center; justify-content: center; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 13px; color: #fff; }
.discord-msg-body { min-width: 0; flex: 1; }
.discord-msg-head { display: flex; align-items: center; gap: 6px; font-size: 14px; flex-wrap: wrap; }
.discord-msg-author { font-weight: 700; }
.discord-app-badge { font-size: 10px; font-weight: 700; background: var(--blue); color: #fff; padding: 1px 5px; border-radius: 4px; letter-spacing: 0.3px; }
.discord-msg-time { color: var(--muted); font-size: 11px; }
.discord-msg-text { color: #dcd6ea; font-size: 14px; margin-top: 3px; line-height: 1.55; }
.discord-btn-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.discord-btn { font-size: 13px; font-weight: 700; padding: 6px 13px; border-radius: 6px; border: 1px solid var(--border); background: rgba(255,255,255,0.04); color: var(--text); }
.discord-btn.success { border-color: rgba(87,242,135,0.4); color: #8ff5b0; background: rgba(87,242,135,0.08); }
.discord-btn.primary { border-color: rgba(88,101,242,0.5); color: #aab4ff; background: rgba(88,101,242,0.1); }
.hero-mock { max-width: 400px; width: 100%; margin: 34px auto 0; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 820px) { .demo-grid { grid-template-columns: 1fr; } }

/* Staged reveal for the #demo mockups only — messages start hidden and are
   timed in one by one via site.js once the section scrolls into view. */
.discord-msg.pending { transition: opacity 0.35s ease, transform 0.35s ease; }
html.reveal-on .discord-msg.pending { opacity: 0; transform: translateY(6px); }
html.reveal-on .discord-msg.pending.shown { opacity: 1; transform: translateY(0); }
.typing-indicator { display: none; align-items: center; gap: 4px; padding: 2px 0; }
.typing-indicator.active { display: flex; }
.typing-indicator span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typingBounce 1.1s ease-in-out infinite; }
.typing-indicator span:nth-child(2) { animation-delay: 0.15s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* ============ live status pill ============ */
.status-pill { position: fixed; left: 20px; bottom: 20px; z-index: 95; display: flex; align-items: center; gap: 8px; background: rgba(21,15,34,0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--border); padding: 8px 14px 8px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px 2px rgba(87,242,135,0.6); animation: statusPulse 2s ease-in-out infinite; flex-shrink: 0; }
.status-dot.down { background: var(--red); box-shadow: 0 0 8px 2px rgba(237,66,69,0.6); }
@keyframes statusPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (max-width: 820px) { .status-pill { display: none; } }

/* ============ sticky mobile CTA ============ */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(11,7,19,0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--border); display: none; transform: translateY(110%); transition: transform 0.3s cubic-bezier(0.16,1,0.3,1); }
.sticky-cta .btn { width: 100%; justify-content: center; }
@media (max-width: 820px) { .sticky-cta { display: block; } .sticky-cta.visible { transform: translateY(0); } }

/* ============ final CTA banner ============ */
.cta-banner { position: relative; border-radius: 28px; padding: 64px 32px; text-align: center; background: linear-gradient(135deg, rgba(255,95,162,0.13), rgba(162,89,255,0.13)); border: 1px solid rgba(255,95,162,0.25); overflow: hidden; }
.cta-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 25% 15%, rgba(255,95,162,0.25), transparent 60%); pointer-events: none; }
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner .btn { margin-top: 6px; }

/* ============ back to top ============ */
.back-to-top { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text); margin: 22px auto 0; cursor: pointer; transition: border-color 0.2s ease, transform 0.2s ease; }
.back-to-top:hover { border-color: var(--pink); transform: translateY(-2px); }
.back-to-top svg { width: 16px; height: 16px; }

@media (max-width: 640px) {
  .cta-banner { padding: 46px 22px; border-radius: 22px; }
  body { padding-bottom: 78px; } /* room for the sticky CTA so the footer never sits under it */
}

/* ============ reduced motion ============
   One switch that turns every scroll-reveal, hover-lift, background drift,
   and staged demo animation into an instant state change. Elements that
   rely on IntersectionObserver classes (.reveal, .discord-msg.pending)
   still need is-visible/shown applied by JS to actually show content —
   this only removes the *animated transition*, site.js keeps working
   exactly the same either way. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .bg-glow, .sparkle, .hero-mascot { animation: none !important; }
}

/* ============ icon badges (emoji replacement) ============
   Same visual language as .card-icon, sized down for inline use next to
   an eyebrow label or a section heading — used anywhere the old markup
   had a raw emoji character. */
.icon-badge { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-right: 6px; vertical-align: -5px; color: var(--pink-soft); flex-shrink: 0; }
.icon-badge svg { width: 20px; height: 20px; flex-shrink: 0; }
.icon-badge-lg { width: 52px; height: 52px; border-radius: 15px; background: rgba(162,89,255,0.15); border: 1px solid rgba(162,89,255,0.3); margin: 0 0 16px; vertical-align: initial; }
.icon-badge-lg svg { width: 25px; height: 25px; flex-shrink: 0; }

/* ============ breadcrumbs ============ */
.breadcrumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; transition: color 0.2s ease; }
.breadcrumbs a:hover { color: var(--pink-soft); }
.breadcrumbs .crumb-sep { opacity: 0.5; }
.breadcrumbs .crumb-current { color: var(--text); font-weight: 700; }

/* ============ "why Marin" differentiators ============ */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.why-item { display: flex; gap: 14px; align-items: flex-start; }
.why-item .icon-badge { width: 34px; height: 34px; margin: 0; border-radius: 10px; background: rgba(255,95,162,0.1); border: 1px solid rgba(255,95,162,0.25); flex-shrink: 0; }
.why-item .icon-badge svg { width: 17px; height: 17px; flex-shrink: 0; }
.why-item h4 { font-size: 15px; margin-bottom: 4px; }
.why-item p { color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* ============ for admins / for members split ============ */
.persona-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .persona-grid { grid-template-columns: 1fr; } }
/* ============ premium modules (Premium page) ============ */
/* Not subscription plans — self-contained modules you can add, remove, or
   edit anytime from the admin dashboard. Full-width stacked cards (not a
   cramped grid) so long descriptions stay readable. Long descriptions clamp
   with a fade + toggle; short ones just show in full (see .no-clamp, set by
   premium.html's render script based on actual text length). */
.premium-modules { display: flex; flex-direction: column; gap: 22px; max-width: 820px; margin: 0 auto; }
.premium-card { position: relative; background: var(--surface); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--border); border-radius: 22px; padding: 30px 32px; transition: transform 0.2s ease, border-color 0.2s ease; }
.premium-card:hover { transform: translateY(-3px); }
.premium-card.featured { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink), 0 22px 48px rgba(255,95,162,0.16); }

.premium-card-top { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.premium-icon { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 24px; background: rgba(162,89,255,0.15); border: 1px solid rgba(162,89,255,0.3); flex-shrink: 0; }
.premium-card.featured .premium-icon { background: linear-gradient(135deg, rgba(255,95,162,0.22), rgba(162,89,255,0.22)); border-color: rgba(255,95,162,0.4); }
.premium-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.premium-name { font-family: 'Baloo 2', sans-serif; font-size: 20px; font-weight: 800; margin: 0; }
.premium-badge { font-size: 11.5px; font-weight: 700; letter-spacing: 0.3px; color: #fff; background: linear-gradient(135deg, var(--pink), var(--purple)); padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.premium-tagline { color: var(--pink-soft); font-size: 14px; font-weight: 600; margin: 4px 0 0; }

.premium-desc-wrap { position: relative; margin-bottom: 18px; }
.premium-desc { color: var(--muted); font-size: 14.5px; line-height: 1.75; max-height: 108px; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1); }
.premium-desc p { margin: 0; }
.premium-desc p + p { margin-top: 12px; }
.premium-card.no-clamp .premium-desc { max-height: none; }
.premium-card.expanded .premium-desc { max-height: 1200px; }
.premium-desc-fade { position: absolute; left: 0; right: 0; bottom: 30px; height: 36px; background: linear-gradient(to bottom, transparent, var(--surface-solid)); pointer-events: none; opacity: 1; transition: opacity 0.25s ease; }
.premium-card.expanded .premium-desc-fade, .premium-card.no-clamp .premium-desc-fade { opacity: 0; }
.premium-desc-toggle { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; background: none; border: none; color: var(--pink-soft); font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 13px; cursor: pointer; padding: 0; }
.premium-desc-toggle svg { transition: transform 0.25s ease; }
.premium-card.expanded .premium-desc-toggle svg { transform: rotate(180deg); }
.premium-card.no-clamp .premium-desc-toggle { display: none; }

.premium-highlights { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 0 0 22px; padding: 0; }
.premium-highlights li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.premium-highlights svg { flex-shrink: 0; margin-top: 2px; color: var(--pink-soft); }

.premium-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.06); }
.premium-dm-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 12px; font-weight: 700; font-size: 14px; text-decoration: none; color: #fff; background: linear-gradient(135deg, var(--pink), var(--purple)); box-shadow: 0 10px 24px rgba(255,95,162,0.3); transition: transform 0.15s ease; flex-shrink: 0; }
.premium-dm-btn:hover { transform: translateY(-2px); }
.premium-cta-note { color: var(--muted); font-size: 12.5px; }

.persona-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 30px; }
.persona-card.admins { border-color: rgba(88,101,242,0.3); }
.persona-card.members { border-color: rgba(255,95,162,0.3); }
.persona-card h3 { font-family: 'Baloo 2', sans-serif; font-size: 20px; margin-bottom: 4px; }
.persona-card .persona-tag { display: block; color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.persona-card ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.persona-card li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.persona-card li svg { width: 16px; height: 16px; margin-top: 3px; color: var(--pink-soft); flex-shrink: 0; }

/* ============ ecosystem flow diagram ============
   A horizontal chain on desktop, collapsing to a vertical chain on mobile.
   Pure CSS/HTML, no image assets — each node is a small card, connected
   by an arrow glyph so the whole thing reads as one continuous system
   rather than six unrelated feature cards. */
.eco-flow { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; }
.eco-node { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; text-align: center; min-width: 128px; transition: border-color 0.25s ease, transform 0.25s ease; }
.eco-node:hover { border-color: var(--pink); transform: translateY(-3px); }
.eco-node .icon-badge { width: 30px; height: 30px; margin: 0 auto 10px; border-radius: 9px; background: rgba(162,89,255,0.15); border: 1px solid rgba(162,89,255,0.3); }
.eco-node .icon-badge svg { width: 15px; height: 15px; flex-shrink: 0; }
.eco-node span { display: block; font-weight: 700; font-size: 13.5px; }
.eco-arrow { color: var(--muted); flex-shrink: 0; width: 22px; height: 22px; }
@media (max-width: 900px) {
  .eco-flow { flex-direction: column; }
  .eco-arrow { transform: rotate(90deg); }
}

/* ============ architecture diagram ============ */
.arch-diagram { display: flex; flex-direction: column; align-items: center; gap: 0; }
.arch-root { background: linear-gradient(135deg, var(--pink), var(--purple)); color: #fff; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 16px; padding: 14px 32px; border-radius: 14px; box-shadow: 0 10px 28px rgba(255,95,162,0.3); }
.arch-branches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 780px; width: 100%; margin-top: 0; position: relative; }
.arch-branches::before { content: ""; position: absolute; top: -28px; left: 50%; width: 1px; height: 28px; background: var(--border); }
.arch-branch { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; position: relative; }
.arch-branch::before { content: ""; position: absolute; top: -28px; left: 50%; width: 1px; height: 28px; background: var(--border); }
.arch-branch h4 { font-family: 'Baloo 2', sans-serif; font-size: 15px; color: var(--pink-soft); margin-bottom: 10px; text-align: center; }
.arch-branch ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.arch-branch li { font-size: 13px; color: var(--muted); text-align: center; padding: 6px 8px; border-radius: 8px; background: rgba(255,255,255,0.03); }
@media (max-width: 760px) { .arch-branches { grid-template-columns: 1fr; } .arch-branches::before, .arch-branch::before { display: none; } }

/* ============ comparison table ============ */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 18px; }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.cmp-table th, .cmp-table td { padding: 14px 16px; text-align: center; font-size: 14px; border-bottom: 1px solid var(--border); }
.cmp-table th { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 13px; color: var(--pink-soft); background: rgba(255,95,162,0.05); }
.cmp-table td:first-child, .cmp-table th:first-child { text-align: left; font-weight: 700; color: var(--text); }
.cmp-table tr:last-child td { border-bottom: none; }
.cmp-yes { color: var(--green); }
.cmp-no { color: var(--muted); opacity: 0.5; }

/* ============ permissions grid ============ */
.perm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.perm-item { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.perm-item .perm-name { display: flex; align-items: center; gap: 8px; font-family: monospace; font-weight: 700; font-size: 13.5px; color: var(--pink-soft); margin-bottom: 8px; }
.perm-item p { color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.perm-note { background: rgba(88,101,242,0.08); border: 1px solid rgba(88,101,242,0.25); border-radius: 16px; padding: 20px 22px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.perm-note strong { color: var(--text); }

/* ============ skeleton loaders ============ */
.skel { background: linear-gradient(100deg, rgba(255,255,255,0.04) 30%, rgba(255,255,255,0.09) 50%, rgba(255,255,255,0.04) 70%); background-size: 200% 100%; animation: skelShimmer 1.6s ease-in-out infinite; border-radius: 8px; }
@keyframes skelShimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.skel-avatar { width: 128px; height: 128px; border-radius: 50%; margin: 0 auto 18px; }
.skel-line { height: 14px; border-radius: 6px; margin: 0 auto; }
.skel-line.w-60 { width: 60%; }
.skel-line.w-40 { width: 40%; margin-top: 10px; }
html[data-theme="light"] .skel { background: linear-gradient(100deg, rgba(28,21,48,0.05) 30%, rgba(28,21,48,0.1) 50%, rgba(28,21,48,0.05) 70%); background-size: 200% 100%; }

/* ============ features hub (About page index cards) ============ */
.hub-card { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.hub-card .card-tag { margin-top: auto; padding-top: 12px; }
.hub-card-arrow { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--pink-soft); }
.hub-card-arrow svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.hub-card:hover .hub-card-arrow svg { transform: translateX(3px); }

.stat-fallback { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stat-fallback .fact-check { width: 30px; height: 30px; color: var(--green); margin-bottom: 4px; }
.retention-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 18px 0 22px; }
.retention-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; font-size: 14px; color: var(--muted); }
.retention-list b { color: var(--pink-soft); font-weight: 700; white-space: nowrap; }
.faq-cat-heading { font-family: 'Baloo 2', sans-serif; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--pink-soft); margin: 34px 0 14px; }
.faq-cat-heading:first-child { margin-top: 0; }

/* ============ doc search ============ */
.doc-search-wrap { position: relative; max-width: 480px; margin: 0 auto 40px; }
.doc-search-wrap svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.doc-search { width: 100%; padding: 14px 18px 14px 48px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-family: 'Quicksand', sans-serif; font-size: 15px; }
.doc-search::placeholder { color: var(--muted); }
.doc-search:focus { outline: none; border-color: var(--pink); }
.doc-empty { text-align: center; color: var(--muted); padding: 40px 20px; display: none; }
.doc-empty.visible { display: block; }

/* ============ command doc entries ============ */
.cmd-doc { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; margin-bottom: 16px; }
.cmd-doc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.cmd-doc-head .cmd-chip { font-size: 15px; padding: 9px 14px 9px 16px; }
.cmd-doc-module { font-size: 11px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,0.04); border: 1px solid var(--border); padding: 4px 10px; border-radius: 999px; }
.cmd-doc p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.cmd-doc-meta { display: flex; gap: 16px; margin-top: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.cmd-doc-meta b { color: var(--text); font-weight: 700; }

/* ============ changelog ============ */
.changelog-entry { position: relative; padding: 0 0 40px 28px; border-left: 1px solid var(--border); }
.changelog-entry:last-child { border-left-color: transparent; padding-bottom: 0; }
.changelog-entry::before { content: ""; position: absolute; left: -5px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px rgba(255,95,162,0.15); }
.changelog-version { font-family: 'Baloo 2', sans-serif; font-size: 19px; font-weight: 800; }
.changelog-date { color: var(--muted); font-size: 13px; margin: 2px 0 12px; }
.changelog-entry ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.changelog-entry li { display: flex; gap: 9px; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.changelog-entry li svg { width: 15px; height: 15px; margin-top: 4px; color: var(--pink-soft); flex-shrink: 0; }

/* ============ roadmap ============ */
.roadmap-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
@media (max-width: 820px) { .roadmap-cols { grid-template-columns: 1fr; } }
.roadmap-col h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 14px; }
.roadmap-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.roadmap-col.done .roadmap-dot { background: var(--green); }
.roadmap-col.wip .roadmap-dot { background: var(--yellow); }
.roadmap-col.planned .roadmap-dot { background: var(--muted); }
.roadmap-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 15px 17px; margin-bottom: 10px; font-size: 14px; color: var(--text); line-height: 1.5; }
.roadmap-placeholder { color: var(--muted); font-style: italic; font-size: 13.5px; padding: 15px 0; }

/* ============ footer (5-column) ============ */
.footer-inner.footer-inner-wide { grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; }
@media (max-width: 960px) { .footer-inner.footer-inner-wide { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 700px) { .footer-inner.footer-inner-wide { grid-template-columns: 1fr; } }

/* ============ feature detail pages ============ */
.feature-hero { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.feature-hero .icon-badge-lg { margin: 0 auto 18px; }
.feature-hero h1 { font-family: 'Baloo 2', sans-serif; font-size: clamp(26px, 4vw, 36px); margin: 6px 0 14px; }
.feature-lead { color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.feature-block { max-width: 760px; margin: 0 auto 56px; }
.feature-block h2 { font-family: 'Baloo 2', sans-serif; font-size: 20px; margin-bottom: 14px; }
.feature-block p { color: var(--muted); font-size: 14.5px; line-height: 1.7; margin-bottom: 12px; }
.workflow-steps { display: flex; flex-direction: column; gap: 0; margin: 18px 0; }
.workflow-step { display: flex; gap: 14px; padding: 0 0 22px 0; position: relative; }
.workflow-step:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 32px; width: 1px; height: calc(100% - 10px); background: var(--border); }
.workflow-step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 13px; color: var(--pink-soft); flex-shrink: 0; z-index: 1; }
.workflow-step-body h4 { font-size: 14.5px; margin-bottom: 3px; }
.workflow-step-body p { font-size: 13.5px; margin-bottom: 0; }
.related-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; max-width: 760px; margin: 0 auto; }
.related-features a { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; text-decoration: none; color: var(--text); font-size: 13.5px; font-weight: 700; transition: border-color 0.2s ease, transform 0.2s ease; }
.related-features a:hover { border-color: var(--pink); transform: translateY(-2px); }
.related-features .icon-badge { width: 22px; height: 22px; margin: 0; flex-shrink: 0; }

/* ============ 404 page ============ */
.error-page { min-height: calc(100vh - var(--nav-h)); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 24px; }
.error-code { font-family: 'Baloo 2', sans-serif; font-size: clamp(64px, 14vw, 120px); font-weight: 800; background: linear-gradient(135deg, var(--pink), var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.error-page h1 { font-size: 24px; margin: 12px 0 10px; }
.error-page p { color: var(--muted); max-width: 420px; margin-bottom: 32px; }
/* Floating Dashboard shortcut — injected by site.js on every site page. */
.dash-fab { position: fixed; right: 20px; bottom: 20px; z-index: 96; display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px 13px 18px; border-radius: 999px; background: linear-gradient(135deg, var(--pink), var(--purple)); color: #fff; font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 15.5px; text-decoration: none; box-shadow: 0 12px 32px rgba(255,95,162,0.45), 0 0 0 1px rgba(255,255,255,0.12) inset; transition: transform 0.15s ease, filter 0.15s ease; animation: dash-fab-in 0.5s cubic-bezier(0.34,1.4,0.44,1) 0.35s both; }
.dash-fab svg { width: 18px; height: 18px; flex-shrink: 0; }
.dash-fab:hover { transform: translateY(-2px) scale(1.03); filter: brightness(1.1); color: #fff; }
.dash-fab:active { transform: translateY(0) scale(0.98); }
@keyframes dash-fab-in { from { opacity: 0; transform: translateY(16px) scale(0.9); } }
@media (max-width: 640px) { .dash-fab { right: 14px; bottom: 88px; padding: 12px 18px 12px 15px; font-size: 14.5px; } } /* clears the sticky mobile CTA bar */
@media (prefers-reduced-motion: reduce) { .dash-fab { animation: none; } }
