/* ==========================================================================
   Zenrch Enterprise — site styles
   Light red / white theme. One accent red (--red) used consistently.
   ========================================================================== */

/* Inter (variable), self-hosted. SIL Open Font License, see /fonts/Inter-LICENSE.txt */
@font-face {
  font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2-variations'), url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('/fonts/inter-latin.woff2') format('woff2-variations'), url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --red: #e02a2a;
  --red-600: #c21f1f;
  --red-700: #9e1818;
  --red-50: #fff5f5;
  --red-100: #fdeaea;
  --red-200: #f8d2d2;
  --ink: #111114;
  --text: #1f1f25;
  --muted: #5d5d69;
  --faint: #8a8a96;
  --line: #eee7e8;
  --line-strong: #e2d8da;
  --bg: #ffffff;
  --bg-tint: #fff8f8;
  --green: #1f9d57;
  --amber: #b7791f;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(17, 17, 20, 0.04), 0 2px 8px rgba(17, 17, 20, 0.04);
  --shadow: 0 2px 4px rgba(17, 17, 20, 0.03), 0 12px 32px rgba(17, 17, 20, 0.07);
  --shadow-lg: 0 4px 8px rgba(17, 17, 20, 0.03), 0 24px 60px rgba(224, 42, 42, 0.14);
  --container: 1180px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-600); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 0.5em; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
strong { color: var(--ink); font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
::selection { background: var(--red-200); color: var(--ink); }

:focus-visible { outline: 3px solid rgba(224, 42, 42, 0.45); outline-offset: 2px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.red { color: var(--red); }
.nowrap { white-space: nowrap; }
.stack > * + * { margin-top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--red);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 46px; padding: 0 1.35rem;
  font: inherit; font-weight: 650; font-size: 0.975rem; line-height: 1;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1.5px solid transparent; border-radius: 12px;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { box-shadow: 0 6px 18px rgba(224, 42, 42, 0.28); }
.btn-primary:hover { --btn-bg: var(--red-600); box-shadow: 0 10px 26px rgba(224, 42, 42, 0.34); }
.btn-secondary { --btn-bg: #fff; --btn-fg: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--red); --btn-fg: var(--red); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); }
.btn-ghost:hover { --btn-bg: var(--red-50); --btn-fg: var(--red); }
.btn-white { --btn-bg: #fff; --btn-fg: var(--red); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); }
.btn-white:hover { --btn-fg: var(--red-700); }
.btn-outline-white { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-outline-white:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-danger { --btn-bg: #fff; --btn-fg: var(--red-700); border-color: var(--red-200); }
.btn-danger:hover { --btn-bg: var(--red); --btn-fg: #fff; border-color: var(--red); }
.btn-lg { min-height: 54px; padding: 0 1.75rem; font-size: 1.03rem; border-radius: 14px; }
.btn-sm { min-height: 36px; padding: 0 0.9rem; font-size: 0.875rem; border-radius: 10px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: 0.55; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--red); cursor: pointer; font-weight: 600; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.7rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em;
  color: var(--red); background: var(--red-100);
}
.badge-solid { color: #fff; background: var(--red); }
.badge-dark { color: #fff; background: var(--ink); }
.badge-green { color: var(--green); background: #e8f6ee; }
.badge-amber { color: var(--amber); background: #fdf3e2; }
.badge-grey { color: var(--muted); background: #f1eff0; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.dot-pulse { position: relative; }
.dot-pulse::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.6; } 100% { transform: scale(1.6); opacity: 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 1rem;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--red); border-radius: 2px; }
.center .eyebrow::after { content: ''; width: 22px; height: 2px; background: var(--red); border-radius: 2px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--ink); line-height: 1; }
.logo:hover { color: var(--ink); }
.logo img { display: block; width: auto; flex: none; }
.logo-wordmark { height: 45px; }
.footer-emblem { display: inline-block; }
.footer-emblem img { display: block; height: 72px; width: auto; }
@media (max-width: 380px) { .logo-wordmark { height: 36px; } }

/* ---------- Top status bar ---------- */
.topbar { background: #16161a; color: rgba(255, 255, 255, 0.78); font-size: 0.82rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.topbar-status { display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-status strong { color: #fff; font-weight: 600; }
.topbar-sep { opacity: 0.45; margin: 0 0.15rem; }
.topbar-link { display: inline-flex; align-items: center; gap: 0.4rem; color: #fff; font-weight: 600; white-space: nowrap; }
.topbar-link:hover { color: #c7ccff; }
.topbar-link svg { width: 15px; height: 15px; }
.topbar-link svg:first-child { color: #8c95ff; width: 17px; height: 17px; }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #2fd67a; flex: none; }
.live-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #2fd67a; opacity: 0; animation: pulse 2s infinite; }
@media (max-width: 640px) { .topbar-link, .topbar-extra { display: none; } .topbar-inner { justify-content: center; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}
.site-header.is-scrolled { background: rgba(255, 255, 255, 0.92); border-bottom-color: var(--line); box-shadow: 0 10px 30px rgba(17, 17, 20, 0.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 1.25rem; transition: height 0.3s var(--ease); }
.is-scrolled .header-inner { height: 66px; }
.logo-wordmark { transition: height 0.3s var(--ease); }
.is-scrolled .logo-wordmark { height: 38px; }

.nav { display: flex; align-items: center; gap: 1rem; flex: 1; justify-content: flex-end; }
.nav-links {
  position: relative; display: flex; align-items: center; gap: 2px; padding: 5px;
  background: rgba(246, 240, 241, 0.9); border: 1px solid var(--line); border-radius: 999px;
  margin-right: auto; margin-left: auto;
}
.nav-links a {
  position: relative; z-index: 1; padding: 0.5rem 1rem; border-radius: 999px;
  color: var(--muted); font-weight: 600; font-size: 0.92rem; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-links a.is-active { color: var(--red); }
/* Sliding highlight behind the hovered / active link (positioned by main.js). */
.nav-indicator {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px;
  background: #fff; box-shadow: 0 1px 2px rgba(17, 17, 20, 0.06), 0 4px 12px rgba(17, 17, 20, 0.08);
  opacity: 0; transition: transform 0.35s var(--ease), width 0.35s var(--ease), opacity 0.2s;
}
.nav-links.has-indicator .nav-indicator { opacity: 1; }
html:not(.js) .nav-links a.is-active { background: #fff; }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.nav-text { padding: 0.5rem 0.8rem; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: 0.92rem; }
.nav-text:hover { color: var(--red); background: var(--red-50); }
.nav-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #5865f2; transition: background-color 0.2s, transform 0.2s; }
.nav-icon:hover { background: #eef0fe; color: #4752c4; transform: translateY(-1px); }
.nav-icon svg { width: 21px; height: 21px; }
.nav-icon-label { display: none; }
.nav-cta { margin-left: 0.25rem; }
.btn-primary.nav-cta { position: relative; overflow: hidden; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: #fff; cursor: pointer; align-items: center; justify-content: center; color: var(--ink); flex: none;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }
/* A backdrop-filter makes the header the containing block for fixed
   children, which would trap the mobile menu inside the header. */
.nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }

@media (max-width: 1100px) { .nav-links a { padding: 0.5rem 0.75rem; } }
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h, 80px); bottom: 0;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 1.25rem;
    padding: 1.25rem 20px 2rem; background: #fff;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s; overflow-y: auto;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav-links { flex-direction: column; align-items: stretch; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; }
  .nav-links a { padding: 1rem 0.5rem; font-size: 1.1rem; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav-indicator { display: none; }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .nav-icon { width: auto; height: 50px; display: flex; gap: 0.5rem; background: #f5f6ff; border-radius: 14px; font-weight: 650; }
  .nav-icon-label { display: inline; }
  .nav-text { text-align: center; padding: 0.9rem; border: 1px solid var(--line-strong); border-radius: 14px; }
  .nav-cta { margin: 0; min-height: 52px; }
  .nav-open { overflow: hidden; }
}

/* Scroll progress (width set by main.js) */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); background: linear-gradient(90deg, #ff6b6b, var(--red)); }

/* Admin host */
.admin-header .header-inner { height: 70px; }
.admin-header .logo { gap: 0.75rem; }
.admin-footer { padding: 1.5rem 0; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.85rem; background: #fff; }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section-sm { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section-tint { background: linear-gradient(180deg, var(--bg-tint), #fff); }
.section-tint-solid { background: var(--bg-tint); }
.section-head { max-width: 680px; margin: 0 auto clamp(2.5rem, 5vw, 3.75rem); text-align: center; }
.section-head p { font-size: 1.1rem; color: var(--muted); margin: 0; }
.section-head.left { margin-left: 0; text-align: left; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); line-height: 1.6; }
.divider-red { width: 56px; height: 4px; border-radius: 4px; background: var(--red); margin: 0 auto 1.5rem; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4rem, 8vw, 6rem); background: linear-gradient(180deg, #fff, var(--bg-tint)); }

/* Animated background: drifting colour blobs + a faint grid */
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; will-change: transform; }
.blob.b1 { width: 520px; height: 520px; right: -120px; top: -160px; background: radial-gradient(circle, rgba(255, 107, 107, 0.55), transparent 65%); animation: drift1 18s ease-in-out infinite alternate; }
.blob.b2 { width: 460px; height: 460px; left: -160px; bottom: -200px; background: radial-gradient(circle, rgba(224, 42, 42, 0.28), transparent 65%); animation: drift2 22s ease-in-out infinite alternate; }
.blob.b3 { width: 320px; height: 320px; left: 38%; top: 10%; background: radial-gradient(circle, rgba(255, 170, 120, 0.3), transparent 65%); animation: drift3 26s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-90px, 70px) scale(1.12); } }
@keyframes drift2 { to { transform: translate(110px, -60px) scale(1.1); } }
@keyframes drift3 { to { transform: translate(-70px, 90px) scale(0.9); } }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(17, 17, 20, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(17, 17, 20, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
}

.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin-bottom: 1.4rem; }
.hero h1 .accent { color: var(--red); }
.shimmer-text {
  background: linear-gradient(100deg, var(--red) 0%, var(--red) 40%, #ff8a7a 50%, var(--red) 60%, var(--red) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmer 5s ease-in-out infinite;
}
@keyframes shimmer { 0%, 30% { background-position: 100% 0; } 70%, 100% { background-position: 0 0; } }
.hero .lead { max-width: 560px; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero-note { margin-top: 1.75rem; display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: var(--muted); }
.hero-note svg { width: 18px; height: 18px; color: var(--red); flex: none; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1.5rem;
  padding: 0.45rem 1rem 0.45rem 0.85rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.85); border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm);
  font-size: 0.86rem; color: var(--muted); backdrop-filter: blur(6px);
}
.hero-pill strong { color: var(--ink); }

/* Shiny sweep on primary CTAs */
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite;
}
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }

/* Hero visual */
.hero-visual { position: relative; min-height: 460px; }
.hero-visual [data-depth] { transition: translate 0.25s ease-out; }
.hero-orbit { position: absolute; width: 380px; height: 380px; right: 4%; top: 4%; }
.hero-orb {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff7b7b, var(--red) 55%, #a51b1b);
  box-shadow: 0 40px 90px rgba(224, 42, 42, 0.35), inset 0 -30px 60px rgba(0, 0, 0, 0.12);
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.03); } }
.hero-ring {
  position: absolute; inset: -30px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 60%, rgba(224, 42, 42, 0.55) 75%, transparent 90%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  animation: spin 7s linear infinite;
}
.hero-ring::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed rgba(224, 42, 42, 0.22); }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-dot { position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(224, 42, 42, 0.25), 0 4px 12px rgba(224, 42, 42, 0.4); }
.orbit-dot.d1 { animation: orbit 12s linear infinite; }
.orbit-dot.d2 { width: 7px; height: 7px; margin: -3.5px; animation: orbit 16s linear infinite reverse; animation-delay: -5s; }
.orbit-dot.d3 { width: 6px; height: 6px; margin: -3px; background: var(--red); animation: orbit 20s linear infinite; animation-delay: -11s; }
@keyframes orbit { from { transform: rotate(0deg) translateX(222px) rotate(0deg); } to { transform: rotate(360deg) translateX(222px) rotate(-360deg); } }
.hero-play {
  position: absolute; right: calc(4% + 140px); top: calc(4% + 22px);
  width: 100px; height: 100px; border-radius: 30px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.18); border: 1.5px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 20px 40px rgba(120, 10, 10, 0.25);
  animation: float 7s ease-in-out infinite;
}
.hero-play img { width: auto; height: 58px; }
.mock-card { position: absolute; background: rgba(255, 255, 255, 0.96); border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.mock-library { left: 0; bottom: 18px; width: min(370px, 90%); padding: 1.1rem; }
.mock-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.85rem; }
.mock-head strong { font-size: 0.95rem; }
.mock-row { position: relative; display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.6rem; border-radius: 12px; font-size: 0.86rem; transition: background-color 0.4s; }
.mock-row + .mock-row { border-top: 1px solid var(--line); border-radius: 0; }
.mock-row.is-updating { background: #fffaf0; }
.mock-row.flash { background: #eefaf3; }
.mock-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--red-100); display: grid; place-items: center; flex: none; }
.mock-icon svg { width: 16px; height: 16px; color: var(--red); }
.mock-row .meta { flex: 1; min-width: 0; line-height: 1.3; }
.mock-row .meta b { display: block; color: var(--ink); font-weight: 650; }
.mock-row .meta > span { color: var(--faint); font-size: 0.78rem; }
.mock-progress { display: block; height: 3px; margin-top: 6px; border-radius: 3px; background: transparent; overflow: hidden; }
.mock-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #f5a524, #ffcf5c); transition: width 2.4s linear; }
.mock-row:not(.is-updating) .mock-progress span { width: 0 !important; transition: none; }
.mock-row .badge { transition: background-color 0.3s, color 0.3s; }
.mock-toast { right: 0; top: 10px; padding: 0.8rem 1rem; display: flex; align-items: center; gap: 0.7rem; font-size: 0.85rem; animation: float 6s ease-in-out infinite; min-width: 230px; }
.mock-toast .toast-text { transition: opacity 0.35s, transform 0.35s; }
.mock-toast.is-out .toast-text { opacity: 0; transform: translateY(6px); }
.mock-toast .tick { width: 30px; height: 30px; border-radius: 50%; background: #e8f6ee; color: var(--green); display: grid; place-items: center; flex: none; }
.mock-toast .tick svg { width: 16px; height: 16px; }
.mock-toast b { display: block; color: var(--ink); }
.mock-toast .toast-text span { color: var(--faint); font-size: 0.78rem; }
.mock-stat { right: 6%; bottom: 0; padding: 0.9rem 1.1rem; animation: float 7s ease-in-out infinite 1s; }
.mock-stat .num { font-size: 1.5rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; }
.mock-stat .lbl { font-size: 0.75rem; color: var(--faint); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 420px; max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 520px) {
  .hero-visual { min-height: 380px; }
  .hero-orbit { width: 250px; height: 250px; right: -40px; top: 10px; }
  .orbit-dot { display: none; }
  .hero-play, .mock-stat { display: none; }
  .mock-toast { left: auto; right: 0; top: 0; z-index: 2; min-width: 0; }
  .mock-library { width: 100%; bottom: 0; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust-list { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; }
.trust-list li {
  display: flex; align-items: center; justify-content: center; gap: 0.7rem;
  padding: 1.35rem 1rem; font-weight: 600; font-size: 0.95rem; color: var(--ink); text-align: left;
}
.trust-list li + li { border-left: 1px solid var(--line); }
.trust-list svg { width: 22px; height: 22px; color: var(--red); flex: none; }
@media (max-width: 900px) {
  .trust-list { grid-template-columns: repeat(2, 1fr); }
  .trust-list li { justify-content: flex-start; }
  .trust-list li:nth-child(3) { border-left: 0; }
  .trust-list li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .trust-list { grid-template-columns: 1fr; }
  .trust-list li + li { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Pricing cards ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 2.1rem 1.9rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--red-200); }
.plan-popular {
  border: 2px solid var(--red); box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, var(--red-50), #fff 40%);
  transform: translateY(-12px);
}
.plan-popular:hover { transform: translateY(-16px); box-shadow: var(--shadow-lg); border-color: var(--red); }
.plan-flag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); box-shadow: 0 6px 16px rgba(224, 42, 42, 0.3); padding: 0.4rem 0.9rem; }
.plan-name { display: flex; align-items: center; justify-content: space-between; font-size: 1.1rem; font-weight: 750; color: var(--ink); margin-bottom: 0.35rem; }
.plan-tagline { color: var(--muted); font-size: 0.94rem; min-height: 3em; margin-bottom: 1.4rem; }
.plan-price { display: flex; align-items: baseline; gap: 0.35rem; margin-bottom: 0.3rem; }
.plan-price .amount { font-size: clamp(2.4rem, 4vw, 3rem); font-weight: 850; color: var(--ink); letter-spacing: -0.04em; line-height: 1; }
.plan-price .per { color: var(--muted); font-weight: 550; }
.plan-billing { font-size: 0.82rem; color: var(--faint); margin-bottom: 1.6rem; }
.plan .btn { margin-bottom: 1.6rem; }
.plan-features { list-style: none; margin: 0; padding: 1.5rem 0 0; border-top: 1px solid var(--line); display: grid; gap: 0.8rem; }
.plan-features li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.95rem; line-height: 1.45; }
.check {
  width: 22px; height: 22px; border-radius: 50%; flex: none; margin-top: -1px;
  display: grid; place-items: center; background: var(--red-100); color: var(--red);
}
.check svg { width: 13px; height: 13px; }
.plan-popular .check { background: var(--red); color: #fff; }
.plans-foot { margin-top: 2.5rem; text-align: center; color: var(--muted); font-size: 0.92rem; }
.plans-foot svg { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-right: 0.35rem; color: var(--red); }

@media (max-width: 980px) {
  .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; gap: 2rem; }
  .plan-popular { transform: none; order: -1; }
  .plan-popular:hover { transform: translateY(-4px); }
  .plan-tagline { min-height: 0; }
}

/* ---------- Comparison table ---------- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.95rem; }
.compare th, .compare td { padding: 1.05rem 1.25rem; text-align: center; border-bottom: 1px solid var(--line); }
.compare tr:last-child td { border-bottom: 0; }
.compare th:first-child, .compare td:first-child { text-align: left; font-weight: 550; color: var(--ink); }
.compare thead th { position: sticky; top: 0; background: #fff; padding-top: 1.5rem; padding-bottom: 1.25rem; vertical-align: bottom; }
.compare thead .t-name { display: block; font-size: 1.05rem; font-weight: 750; color: var(--ink); }
.compare thead .t-price { display: block; font-size: 0.85rem; font-weight: 550; color: var(--muted); margin-top: 0.2rem; }
.compare .col-pop { background: var(--red-50); }
.compare thead .col-pop { background: var(--red-50); box-shadow: inset 0 3px 0 var(--red); }
.compare tbody tr:hover td { background: #fffbfb; }
.compare tbody tr:hover td.col-pop { background: var(--red-100); }
.compare .yes, .compare .no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.compare .yes { background: var(--red); color: #fff; }
.compare .no { background: #f3f0f1; color: #b9b3b5; }
.compare .yes svg, .compare .no svg { width: 14px; height: 14px; }
.compare tfoot td { padding: 1.25rem; border-top: 1px solid var(--line); border-bottom: 0; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; position: relative; }
.step {
  position: relative; padding: 2rem 1.75rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.4rem;
  font-weight: 800; font-size: 1.25rem; color: #fff; background: var(--red);
  box-shadow: 0 10px 22px rgba(224, 42, 42, 0.28);
}
.step p { color: var(--muted); margin: 0; }
.steps-line { position: absolute; top: 58px; left: 16%; right: 16%; height: 2px; background: repeating-linear-gradient(90deg, var(--red-200) 0 8px, transparent 8px 16px); z-index: -1; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .steps-line { display: none; }
}

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.review {
  display: flex; flex-direction: column; margin: 0;
  padding: 1.8rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--red-200); }
.stars { display: flex; gap: 3px; color: var(--red); margin-bottom: 1.1rem; }
.stars svg { width: 18px; height: 18px; }
.review blockquote { margin: 0 0 1.5rem; font-size: 1.02rem; line-height: 1.6; color: var(--text); flex: 1; }
.review figcaption { display: flex; align-items: center; gap: 0.8rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 750; font-size: 0.95rem;
  color: var(--red); background: var(--red-100);
}
.review .who b { display: block; color: var(--ink); font-size: 0.95rem; }
.review .who span { font-size: 0.83rem; color: var(--faint); }
@media (max-width: 980px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .reviews { grid-template-columns: 1fr; } }

/* ---------- Feature / icon cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  padding: 1.9rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--red-200); }
.card p { color: var(--muted); margin: 0; }
.icon-tile {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 1.3rem;
  color: var(--red); background: var(--red-100);
  transition: background-color 0.3s, color 0.3s;
}
.card:hover .icon-tile { background: var(--red); color: #fff; }
.icon-tile svg { width: 24px; height: 24px; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Split / story ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split-top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.prose p { color: var(--muted); font-size: 1.06rem; line-height: 1.75; }
.prose p strong { color: var(--ink); }
.prose h2 { margin-top: 0; }
.prose h3 { margin-top: 2rem; }
.prose ul { color: var(--muted); padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }

.panel-red {
  position: relative; overflow: hidden; padding: clamp(2rem, 4vw, 2.75rem); border-radius: var(--radius-lg);
  color: #fff; background: linear-gradient(145deg, #ec3b3b, var(--red) 45%, var(--red-700));
  box-shadow: var(--shadow-lg);
}
.panel-red::after { content: ''; position: absolute; width: 320px; height: 320px; right: -120px; top: -120px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
.panel-red h3 { color: #fff; }
.pillars { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.15rem; position: relative; z-index: 1; }
.pillars li { display: flex; gap: 0.9rem; align-items: flex-start; }
.pillars .n { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.16); font-weight: 750; font-size: 0.9rem; }
.pillars b { display: block; color: #fff; }
.pillars span { color: rgba(255, 255, 255, 0.82); font-size: 0.93rem; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { padding: 1.5rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-align: center; }
.stat .num { display: block; font-size: 1.9rem; font-weight: 850; letter-spacing: -0.03em; color: var(--red); line-height: 1.1; }
.stat .lbl { font-size: 0.88rem; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); text-align: center; overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50rem 22rem at 50% -20%, rgba(224, 42, 42, 0.11), transparent 65%), linear-gradient(180deg, #fff, var(--bg-tint));
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); max-width: 820px; margin: 0 auto 1rem; }
.page-hero .lead { max-width: 640px; margin: 0 auto; }

/* ---------- CTA banner ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 28px;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  color: #fff; text-align: center;
  background: linear-gradient(135deg, #e93535 0%, var(--red) 45%, #a51b1b 100%);
  box-shadow: 0 30px 70px rgba(224, 42, 42, 0.3);
}
.cta-band::before, .cta-band::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.07); }
.cta-band::before { width: 420px; height: 420px; left: -140px; bottom: -220px; }
.cta-band::after { width: 300px; height: 300px; right: -80px; top: -140px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; max-width: 720px; margin: 0 auto 1rem; }
.cta-band p { color: rgba(255, 255, 255, 0.88); font-size: 1.12rem; max-width: 560px; margin: 0 auto 2rem; }
.cta-band .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.85rem; }
.cta-play { width: 72px; height: 72px; margin: 0 auto 1.5rem; border-radius: 20px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.16); border: 1.5px solid rgba(255, 255, 255, 0.35); }
.cta-play img { width: auto; height: 40px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 0.85rem; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.4rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq details[open] { border-color: var(--red-200); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.2rem 0; font-weight: 650; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; font-weight: 400; color: var(--red); line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1.2rem; margin: 0; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field > label, .field-label { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.field .opt { color: var(--faint); font-weight: 500; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.95rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%235d5d69' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.input:hover, .select:hover, .textarea:hover { border-color: #d3c6c8; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(224, 42, 42, 0.12); }
.input[type='file'] { padding: 0.6rem; min-height: 0; }
.input[type='file']::file-selector-button { font: inherit; font-weight: 600; font-size: 0.875rem; border: 0; border-radius: 8px; padding: 0.45rem 0.8rem; margin-right: 0.75rem; background: var(--red-100); color: var(--red); cursor: pointer; }
.has-error .input, .has-error .select, .has-error .textarea { border-color: var(--red); }
.error-text { color: var(--red-700); font-size: 0.85rem; font-weight: 550; }
.hint { color: var(--faint); font-size: 0.85rem; }
.checkbox { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.93rem; color: var(--muted); cursor: pointer; }
.checkbox input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--red); flex: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.choice-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-group-2 { grid-template-columns: repeat(2, 1fr); }
.choice-group legend { padding: 0; margin-bottom: 0.45rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.choice span {
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 0.95rem 0.5rem;
  border: 1.5px solid var(--line-strong); border-radius: 12px; font-weight: 600; font-size: 0.92rem; color: var(--ink);
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s; text-align: center;
}
.choice span svg { width: 22px; height: 22px; color: var(--muted); }
.choice input:hover + span { border-color: #d3c6c8; }
.choice input:checked + span { border-color: var(--red); background: var(--red-50); box-shadow: 0 0 0 3px rgba(224, 42, 42, 0.1); }
.choice input:checked + span svg { color: var(--red); }
.choice input:focus-visible + span { outline: 3px solid rgba(224, 42, 42, 0.45); outline-offset: 2px; }
@media (max-width: 420px) { .choice-group { grid-template-columns: 1fr; } .choice span { flex-direction: row; justify-content: center; } }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.95rem 1.1rem; border-radius: 12px; font-size: 0.95rem; margin-bottom: 1.25rem; border: 1px solid; }
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.alert-success { background: #edf8f2; border-color: #cdebd9; color: #17683c; }
.alert-error { background: var(--red-50); border-color: var(--red-200); color: var(--red-700); }
.alert-info { background: #f7f5f6; border-color: var(--line); color: var(--text); }

/* ---------- Checkout ---------- */
.checkout { display: grid; grid-template-columns: 1.25fr 0.85fr; gap: 2rem; align-items: start; }
@media (max-width: 920px) { .checkout { grid-template-columns: 1fr; } .checkout-summary { order: -1; } }
.checkout-summary { position: sticky; top: 100px; }
.summary-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.summary-top { padding: 1.6rem 1.6rem 1.4rem; background: linear-gradient(160deg, var(--red-50), #fff); border-bottom: 1px solid var(--line); }
.summary-body { padding: 1.4rem 1.6rem 1.6rem; }
.summary-line { display: flex; justify-content: space-between; padding: 0.6rem 0; font-size: 0.95rem; border-bottom: 1px dashed var(--line); }
.summary-line:last-child { border-bottom: 0; }
.summary-line.total { font-weight: 750; color: var(--ink); font-size: 1.05rem; border-top: 1px solid var(--line); border-bottom: 0; margin-top: 0.4rem; padding-top: 1rem; }
.pay-methods { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.9rem; }
.onboard-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.onboard-steps li { display: flex; gap: 0.85rem; align-items: flex-start; font-size: 0.93rem; color: var(--muted); }
.onboard-steps .n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; font-weight: 750; color: var(--red); background: var(--red-100); }
.onboard-steps b { color: var(--ink); display: block; }
.secure-note { display: flex; gap: 0.6rem; align-items: center; font-size: 0.85rem; color: var(--muted); margin-top: 1rem; justify-content: center; }
.secure-note svg { width: 16px; height: 16px; color: var(--red); flex: none; }

.confirm { max-width: 680px; margin: 0 auto; text-align: center; }
.confirm-icon { width: 84px; height: 84px; margin: 0 auto 1.75rem; border-radius: 26px; display: grid; place-items: center; background: var(--red); color: #fff; box-shadow: 0 18px 40px rgba(224, 42, 42, 0.32); }
.confirm-icon svg { width: 40px; height: 40px; }

/* ---------- Contact ---------- */
.contact-cards { display: grid; gap: 1rem; }
.contact-card { display: flex; gap: 1rem; align-items: center; padding: 1.2rem 1.3rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); transition: border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s; }
.contact-card:hover { border-color: var(--red-200); transform: translateY(-2px); box-shadow: var(--shadow-sm); color: var(--text); }
.contact-card .icon-tile { margin: 0; width: 46px; height: 46px; }
.contact-card .badge { margin-left: auto; flex: none; }
.contact-card-primary { border: 2px solid #5865f2; background: #f5f6ff; }
.contact-card-primary:hover { border-color: #4752c4; }
.contact-card-primary .icon-tile { background: #5865f2; color: #fff; }
.contact-card-primary .badge { background: #5865f2; }
.contact-card b { display: block; color: var(--ink); }
.contact-card span { font-size: 0.9rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 4rem 0 2rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-grid h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-grid a:not(.logo):not(.btn) { color: var(--text); font-size: 0.95rem; }
.footer-grid a:not(.logo):not(.btn):hover { color: var(--red); }
.footer-about p { color: var(--muted); font-size: 0.93rem; margin: 1.1rem 0 1.2rem; max-width: 320px; }
.footer-social { display: flex; gap: 0.5rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--ink) !important; transition: all 0.2s; }
.footer-social a:hover { background: var(--red); border-color: var(--red); color: #fff !important; }
.footer-social svg { width: 18px; height: 18px; }
.confidential {
  display: flex; gap: 0.8rem; align-items: flex-start; margin-top: 3rem; padding: 1.1rem 1.3rem;
  background: var(--red-50); border: 1px solid var(--red-100); border-radius: var(--radius);
  font-size: 0.9rem; color: var(--text);
}
.confidential svg { width: 20px; height: 20px; color: var(--red); flex: none; margin-top: 1px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.83rem; color: var(--faint); }
.footer-bottom a { color: var(--faint); }
.footer-bottom a:hover { color: var(--red); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 340px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - 76px); display: grid; place-items: center; padding: 3rem 20px; background: radial-gradient(40rem 20rem at 50% 0%, rgba(224, 42, 42, 0.09), transparent 70%), var(--bg-tint); }
.auth-card { width: 100%; max-width: 440px; }
.auth-card .form-card { padding: 2.25rem; }
.auth-icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin: 0 auto 1.25rem; background: var(--red); color: #fff; box-shadow: 0 12px 28px rgba(224, 42, 42, 0.3); }
.auth-icon svg { width: 26px; height: 26px; }

/* ---------- Error page ---------- */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 4rem 20px; }
.error-code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 900; letter-spacing: -0.05em; color: var(--red-100); -webkit-text-stroke: 2px var(--red); line-height: 1; margin-bottom: 1rem; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: 0.08s; }
.js .reveal-d2 { transition-delay: 0.16s; }
.js .reveal-d3 { transition-delay: 0.24s; }


/* ---------- Utilities ---------- */
.pt-tight { padding-top: 1.5rem; }
.compare .t-flag { margin-bottom: 0.5rem; }
.compare tbody th { font-weight: 550; text-align: left; color: var(--ink); padding: 1.05rem 1.25rem; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child th { border-bottom: 0; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
[hidden] { display: none !important; }
.h3 { font-size: 1.35rem; }
.h4 { font-size: 1.05rem; margin-bottom: 1rem; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.badge svg { width: 14px; height: 14px; }
.plan-features-flat { border-top: 0; padding-top: 0; margin-bottom: 0.5rem; }
.h2-size { font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
.center-actions { justify-content: center; }
.pt-0 { padding-top: 0; }
.pb-tight { padding-bottom: clamp(3rem, 6vw, 4.5rem); }
/* A backdrop-filter makes the header the containing block for fixed
   children, which would trap the mobile menu inside the 76px header. */
.nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
.contact-card .badge { color: #fff; }

/* ---------- Moving trust strip ---------- */
.marquee { position: relative; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.marquee::before, .marquee::after { content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, #fff, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-list { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee-list li { display: flex; align-items: center; gap: 0.65rem; padding: 1.3rem 2.2rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.marquee-list li::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--red-200); margin-left: 2.2rem; margin-right: -2.2rem; }
.marquee-list svg { width: 21px; height: 21px; color: var(--red); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats band ---------- */
.stats-band .stat { box-shadow: var(--shadow-sm); }
.stats-band .num { font-size: clamp(2rem, 4vw, 2.6rem); }

/* ---------- Cursor spotlight (position set by main.js) ---------- */
.spotlight { position: relative; }
.spotlight::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(224, 42, 42, 0.09), transparent 45%);
}
.spotlight:hover::before { opacity: 1; }
.spotlight > * { position: relative; }

/* ---------- Steps connector animates in ---------- */
.steps-line { background: none; }
.steps-line span { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--red-200) 0 8px, transparent 8px 16px); animation: dash 1.2s linear infinite; }
@keyframes dash { to { background-position: 16px 0; } }

/* ---------- Animated border on the popular plan ---------- */
@property --angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.plan-popular { border: 2px solid transparent; background: linear-gradient(180deg, var(--red-50), #fff 40%) padding-box, conic-gradient(from var(--angle), var(--red), #ff9a8a, var(--red-200), var(--red)) border-box; animation: rotate-border 6s linear infinite; }
@keyframes rotate-border { to { --angle: 360deg; } }

/* ---------- Dark section + versus ---------- */
.section-dark { position: relative; isolation: isolate; overflow: hidden; background: #111114; color: rgba(255, 255, 255, 0.78); }
.section-dark .hero-bg .grid-lines { background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px); }
.section-dark .blob.b2 { opacity: 0.8; left: auto; right: -120px; bottom: -220px; background: radial-gradient(circle, rgba(224, 42, 42, 0.45), transparent 65%); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-head p { color: rgba(255, 255, 255, 0.65); }
.versus { display: grid; grid-template-columns: 1fr auto 1.1fr; gap: 1.5rem; align-items: center; max-width: 1000px; margin: 0 auto; }
.versus-col { padding: 2rem; border-radius: var(--radius-lg); }
.versus-col h3 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.15rem; margin-bottom: 1.25rem; }
.versus-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.versus-col li { display: flex; gap: 0.7rem; align-items: flex-start; line-height: 1.45; }
.versus-col li svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.versus-them { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.55); }
.versus-them h3 { color: rgba(255, 255, 255, 0.7); }
.versus-them svg { color: #6b6b75; }
.versus-us { background: linear-gradient(150deg, #e93535, var(--red) 50%, #9e1818); color: #fff; box-shadow: 0 30px 70px rgba(224, 42, 42, 0.35); }
.versus-us svg { color: #fff; }
.versus-us.spotlight::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.14), transparent 45%); }
.versus-vs { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 0.85rem; letter-spacing: 0.05em; color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); background: #1c1c21; }
@media (max-width: 860px) { .versus { grid-template-columns: 1fr; } .versus-vs { margin: 0 auto; } }

/* ---------- Proof ---------- */
.page-hero-dark { background: #111114; color: rgba(255, 255, 255, 0.72); isolation: isolate; }
.page-hero-dark::before { display: none; }
.page-hero-dark h1 { color: #fff; }
.page-hero-dark .lead { color: rgba(255, 255, 255, 0.7); }
.page-hero-dark .grid-lines { background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px); mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, #000 20%, transparent 75%); }
.page-hero-dark .blob.b1 { opacity: 0.5; }
.proof-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }
.proof-stats span { padding: 0.55rem 1.1rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.05); font-size: 0.9rem; }
.proof-stats strong { color: #fff; }
.filter-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 2rem; }
.chip { font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; padding: 0.55rem 1rem; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--muted); transition: all 0.2s; }
.chip span { margin-left: 0.3rem; font-size: 0.78rem; opacity: 0.7; }
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.is-active { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(224, 42, 42, 0.25); }
.proof-grid { columns: 3 300px; column-gap: 1.5rem; }
.proof-grid-teaser { columns: 3 260px; }
.proof-card { break-inside: avoid; margin: 0 0 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s; }
.proof-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--red-200); }
.proof-card[hidden] { display: none; }
.proof-img { position: relative; display: block; overflow: hidden; background: #f4f1f2; cursor: zoom-in; }
.proof-img img { display: block; width: 100%; height: auto; transition: transform 0.6s var(--ease); }
.proof-card:hover .proof-img img { transform: scale(1.035); }
.proof-zoom { position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(17, 17, 20, 0.65); color: #fff; opacity: 0; transform: translateY(6px); transition: all 0.3s; backdrop-filter: blur(4px); }
.proof-zoom svg { width: 18px; height: 18px; }
.proof-card:hover .proof-zoom { opacity: 1; transform: none; }
.proof-card figcaption { padding: 1.1rem 1.25rem 1.3rem; }
.proof-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.4rem; }
.proof-card h3 { font-size: 1.02rem; margin: 0.35rem 0 0.25rem; }
.proof-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }
.empty-state { max-width: 520px; margin: 1rem auto 0; text-align: center; padding: 3rem 2rem; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: #fff; }
.empty-state .icon-tile { margin: 0 auto 1.25rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 2rem; background: rgba(10, 10, 12, 0.88); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; transform: scale(0.97); transition: transform 0.3s var(--ease); }
.lightbox.is-open figure { transform: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 8rem); border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.lightbox figcaption { color: rgba(255, 255, 255, 0.85); text-align: center; font-size: 0.95rem; }
.lightbox button { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; transition: background-color 0.2s; }
.lightbox button:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; }
.lightbox-open { overflow: hidden; }
@media (max-width: 640px) { .lightbox { padding: 1rem; } .lightbox-nav { position: absolute; bottom: 1rem; } .lightbox-nav.prev { left: 30%; } .lightbox-nav.next { right: 30%; } }

/* ---------- Discord band ---------- */
.discord-band { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding: clamp(2rem, 5vw, 3rem); border-radius: 28px; color: #fff; background: radial-gradient(40rem 20rem at 100% 0%, #7983ff, transparent 60%), linear-gradient(135deg, #5865f2, #3b44c4); box-shadow: 0 30px 70px rgba(88, 101, 242, 0.3); }
.discord-copy { display: flex; gap: 1.25rem; align-items: flex-start; max-width: 620px; }
.discord-copy h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.5rem; }
.discord-copy p { color: rgba(255, 255, 255, 0.85); margin: 0; }
.discord-logo { flex: none; width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.15); animation: float 6s ease-in-out infinite; }
.discord-logo svg { width: 34px; height: 34px; }
.discord-side { display: flex; flex-direction: column; align-items: flex-end; gap: 1rem; }
.discord-stats { display: flex; gap: 1.25rem; font-size: 0.95rem; color: rgba(255, 255, 255, 0.85); }
.discord-stats span { display: inline-flex; align-items: center; gap: 0.4rem; }
.discord-stats strong { color: #fff; font-size: 1.15rem; }
.btn-discord { --btn-bg: #fff; --btn-fg: #4752c4; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18); }
.btn-discord:hover { --btn-fg: #3b44c4; }
@media (max-width: 760px) { .discord-side { align-items: stretch; width: 100%; } .discord-copy { flex-direction: column; } }

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

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .plan-popular { animation: none; }
}

/* Homepage proof preview: an even grid of cropped thumbnails */
.proof-grid.proof-grid-teaser { columns: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.proof-grid-teaser .proof-card { margin: 0; }
.proof-grid-teaser .proof-img { aspect-ratio: 16 / 10; }
.proof-grid-teaser .proof-img img { height: 100%; object-fit: cover; object-position: top; }
