/* ============================================================
   PolyDrobe — Public v3 Design System
   Glossy / playful-premium. Light cream surfaces with dark,
   glowing hero / feature / CTA sections. Gradient accents,
   colorful 3D game renders, soft rounding.

   Imported from the claude.ai/design "Polydrobe landing website"
   project (landing.css + pages.css), adapted for the Django
   public marketing pages (landing / pricing / blog / help /
   changelog / blog-detail + 403/404). Fonts are loaded via
   web/includes/v3_head.html (Space Grotesk · Sora · JetBrains Mono)
   rather than @import.

   Type: Space Grotesk (display/body) · Sora (wordmark) · JetBrains Mono (tiny labels)
   ============================================================ */

:root {
  /* Brand spectrum */
  --purple:   #a413ec;
  --purple-l: #c46bf2;
  --magenta:  #e879f9;
  --cyan:     #22d3ee;
  --cyan-d:   #0e9fc4;
  --lime:     #c6ff3a;

  /* Dark hero surfaces */
  --deep:     #0b0614;
  --deep-2:   #140a23;

  /* Light surfaces */
  --cream:    #f7f4fc;
  --cream-2:  #efe9f8;
  --white:    #ffffff;

  /* Text — light context */
  --ink:      #1c1228;
  --ink-2:    #5d5470;
  --ink-3:    #6f6685;  /* muted text — ~4.95:1 on --cream (WCAG AA); was #8e85a0 (~3.3:1) */
  /* Text — dark context */
  --d1:       #f4eefc;
  --d2:       #c5b8da;
  --d3:       #a99ec2;  /* dim label text — clears AA on --deep incl. over glow overlays; was #9286ac */

  --line:     #ebe5f4;

  --grad:      linear-gradient(115deg, #a413ec 0%, #c44bf0 38%, #22d3ee 100%);
  --grad-warm: linear-gradient(120deg, #e879f9 0%, #a413ec 60%, #7a0fb2 100%);
  --grad-text: linear-gradient(100deg, #c46bf2 0%, #e879f9 45%, #22d3ee 100%);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Space Grotesk', system-ui, sans-serif;
  --font-wm:      'Sora', 'Space Grotesk', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --r-sm: 12px; --r: 18px; --r-lg: 26px; --r-xl: 36px; --r-pill: 999px;

  --sh-sm:   0 6px 18px -8px rgba(70,24,120,0.18);
  --sh:      0 18px 44px -18px rgba(70,24,120,0.26);
  --sh-lg:   0 34px 80px -26px rgba(60,20,110,0.34);
  --sh-glow: 0 24px 70px -18px rgba(164,19,236,0.55);
  --sh-cyan: 0 24px 70px -22px rgba(34,211,238,0.5);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur:  300ms;

  --max: 1240px;
  --pad: 28px;
}

* , *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
h1,h2,h3,h4 { margin: 0; font-weight: 700; }
::selection { background: var(--purple); color: #fff; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--purple); color: #fff; padding: 12px 18px; border-radius: var(--r-sm); font-weight: 600; }
.skip-link:focus { left: 16px; }

/* Keyboard focus — visible ring on every interactive control (WCAG 2.4.7). */
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
  border-radius: var(--r-sm);
  box-shadow: 0 0 0 4px rgba(164,19,236,0.28);
}
/* On dark surfaces a purple ring has weak contrast — use a cyan ring instead. */
.hero :where(a, button, [tabindex]):focus-visible,
.subhero :where(a, button, [tabindex]):focus-visible,
.features--dark :where(a, button, [tabindex]):focus-visible,
.cta-box :where(a, button, input, [tabindex]):focus-visible,
.price-col.featured :where(a, button, [tabindex]):focus-visible,
.site-header:not(.solid) :where(a, button, [tabindex]):focus-visible {
  outline-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34,211,238,0.30);
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.gradient-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* eyebrow / labels */
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-weight: 600; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.eyebrow .idx { display: none; }
.eyebrow.on-dark { color: var(--cyan); }
.label { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }

/* ── Buttons (soft, rounded) ────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 0 26px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  white-space: nowrap; border: 1px solid transparent;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn .ico { width: 19px; height: 19px; transition: transform var(--dur) var(--ease); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: var(--sh-glow); background-size: 140% 140%; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 30px 80px -20px rgba(164,19,236,0.7); }
.btn--primary:hover .ico { transform: translateX(4px); }
.btn--ghost { background: var(--white); color: var(--ink); border-color: var(--line); box-shadow: var(--sh-sm); }
.btn--ghost:hover { transform: translateY(-2px); box-shadow: var(--sh); border-color: var(--purple-l); }
.btn--glass { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.22); backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }
.btn--lime { background: var(--lime); color: #1a2e00; box-shadow: 0 22px 60px -20px rgba(168,224,40,0.6); font-weight: 700; }
.btn--lime:hover { transform: translateY(-2px); box-shadow: 0 30px 74px -20px rgba(168,224,40,0.75); }
.btn--lime:hover .ico { transform: translateX(4px); }
.btn--lg { min-height: 58px; padding: 0 32px; font-size: 16px; }
.btn--block { width: 100%; }
/* Disabled buttons read as "not yet available" with legible text rather than a
   washed-out low-contrast gradient. */
.btn[disabled], .btn:disabled { background: var(--cream-2); color: var(--ink-3); border-color: var(--line); box-shadow: none; cursor: not-allowed; }
.btn[disabled] .ico, .btn:disabled .ico { color: var(--ink-3); }
.btn[disabled]:hover, .btn:disabled:hover { transform: none; box-shadow: none; }
.btn--on-ink { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.25); }
.btn--on-ink:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }
.btn--quiet { background: var(--cream); color: var(--ink); border-color: var(--line); }
.btn--quiet:hover { background: var(--cream-2); transform: translateY(-2px); }

.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--purple); transition: gap var(--dur) var(--ease); }
.arrow-link .ico { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.arrow-link:hover { gap: 12px; }

.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.nav-cta .btn--sm { box-shadow: 0 10px 26px -14px rgba(164,19,236,0.65); }

/* ── NAV (full-bleed, adaptive) ─────────────────────── */
/* Pull marketing-page main up under the transparent sticky nav. The auth
   surface (`.auth-form-panel`) has no nav, so exclude it — otherwise the
   negative margin cancels the form panel's top padding. */
/* Pull content up under the sticky header. Use the header's *full* box height
   (72px content + 1px border-bottom) so the dark hero reaches y=0 — a -72px pull
   left a 1px gap that exposed the cream body bg as a thin white stripe. */
main:not(.auth-form-panel) { margin-top: -73px; }
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.solid {
  background: rgba(247,244,252,0.78);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -22px rgba(70,24,120,0.35);
}
.nav-wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; }
.brand img { width: 26px; height: 26px; }
.brand .wm { font-family: var(--font-wm); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; color: #fff; transition: color var(--dur) var(--ease); }
.site-header.solid .brand .wm { color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-link { padding: 8px 14px; border-radius: var(--r-pill); font-weight: 500; font-size: 14.5px; color: var(--d2); transition: color var(--dur) var(--ease), background var(--dur) var(--ease); }
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.site-header.solid .nav-link { color: var(--ink-2); }
.site-header.solid .nav-link:hover { color: var(--purple); background: rgba(164,19,236,0.07); }
.nav-cta { display: flex; align-items: center; gap: 6px; justify-self: end; }
.nav-login { padding: 10px 14px; border-radius: var(--r-pill); font-weight: 600; font-size: 14px; color: #fff; transition: color var(--dur) var(--ease); }
.site-header.solid .nav-login { color: var(--ink); }
.nav-login:hover { color: var(--cyan); }
.site-header.solid .nav-login:hover { color: var(--purple); }
.nav-burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--r-sm); color: #fff; border: 1px solid rgba(255,255,255,0.22); justify-self: end; }
.site-header.solid .nav-burger { color: var(--ink); border-color: var(--line); }
.nav-burger .ico { width: 22px; height: 22px; }
.mobile-menu { display: flex; flex-direction: column; align-items: stretch; gap: 4px; max-width: var(--max); margin: 0 auto; padding: 12px var(--pad) 18px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu .nav-link { color: var(--ink-2); border-radius: var(--r-sm); padding: 13px 14px; }
.mobile-menu .nav-link:hover { background: var(--cream); color: var(--purple); }
.site-header:not(.solid) .mobile-menu { background: rgba(11,6,20,0.96); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.site-header:not(.solid) .mobile-menu .nav-link { color: var(--d2); }

/* ── HERO (dark, glowing) ───────────────────────────── */
.hero { position: relative; background: var(--deep); color: var(--d1); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 82% 8%, rgba(164,19,236,0.55), transparent 60%),
    radial-gradient(50% 50% at 12% 92%, rgba(34,211,238,0.34), transparent 60%),
    radial-gradient(45% 40% at 60% 60%, rgba(232,121,249,0.26), transparent 60%);
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  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);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 25%, #000 30%, transparent 78%);
          mask-image: radial-gradient(ellipse 75% 65% at 50% 25%, #000 30%, transparent 78%);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding: 92px 0 96px; }
.hero-tag { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 26px; padding: 7px 7px 7px 14px; border-radius: var(--r-pill); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); }
.hero-tag .sq { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(34,211,238,0.22); }
.hero-tag .label { color: var(--d2); }
.hero-tag .new { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: var(--grad); padding: 3px 9px; border-radius: var(--r-pill); }
.hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 5.8vw, 80px); line-height: 1.0; letter-spacing: -0.035em; color: #fff; }
.hero h1 .hl { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lede { margin-top: 24px; font-size: 19px; line-height: 1.62; color: var(--d2); max-width: 44ch; }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 30px; margin-top: 40px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.1); }
.hero-meta dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--d3); }
.hero-meta dd { margin: 6px 0 0; font-size: 15px; font-weight: 600; color: #fff; }

.hero-stage { position: relative; z-index: 2; }
.app-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid rgba(255,255,255,0.14); box-shadow: var(--sh-lg), 0 0 80px -30px rgba(34,211,238,0.5); transition: transform var(--dur) var(--ease); }
.hero-stage:hover .app-frame { transform: translateY(-4px); }
.app-frame__bar { display: flex; align-items: center; gap: 7px; padding: 12px 15px; background: #f3eef9; border-bottom: 1px solid var(--line); }
.app-frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d9cfe6; }
.app-frame__bar i:nth-child(1){ background:#ff6b6b;} .app-frame__bar i:nth-child(2){ background:#ffc24b;} .app-frame__bar i:nth-child(3){ background:#3ad07a;}
.app-frame__url { margin-left: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.app-frame img { width: 100%; height: auto; }

/* spec chips → soft glass cards on dark */
.spec-chip { position: absolute; z-index: 3; background: rgba(22,12,38,0.72); border: 1px solid rgba(255,255,255,0.16); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: var(--r); padding: 11px; display: flex; align-items: center; gap: 11px; box-shadow: var(--sh-lg); color: #fff; }
.spec-chip .thumb { width: 48px; height: 48px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.spec-chip .thumb img { width: 100%; height: 100%; object-fit: cover; }
.spec-chip .sc-name { font-weight: 600; font-size: 13.5px; color: #fff; }
.spec-chip .sc-meta { font-family: var(--font-mono); font-size: 10.5px; color: var(--d3); margin-top: 2px; }
.sc-rarity { display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px; border-radius: var(--r-pill); color: #fff; margin-top: 4px; }
.sc-rarity--legendary { background: linear-gradient(90deg,#fbbf24,#f43f5e); }
.sc-rarity--epic { background: var(--grad); }
.spec-chip--tl { top: 24px; left: -26px; }
.spec-chip--br { bottom: 56px; right: -26px; }
.spec-chip--badge { bottom: -20px; left: 28%; }
.sc-ico { width: 34px; height: 34px; border-radius: 11px; background: rgba(52,211,153,0.18); color: #34d399; display: grid; place-items: center; }
.sc-ico .ico { width: 18px; height: 18px; }

/* ── Floaters (glowing 3D render cards) ─────────────── */
.floaters { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.floater { position: absolute; border-radius: var(--r); overflow: visible; }
.floater::before { content: ""; position: absolute; inset: -28%; border-radius: 50%; background: radial-gradient(closest-side, rgba(164,19,236,0.6), transparent 72%); filter: blur(8px); z-index: -1; }
.floater.glow-cyan::before { background: radial-gradient(closest-side, rgba(34,211,238,0.55), transparent 72%); }
.floater img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); border: 1px solid rgba(255,255,255,0.18); box-shadow: var(--sh-lg); }
.floater .fcap { position: absolute; left: 8px; bottom: 8px; right: 8px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; background: rgba(11,6,20,0.6); backdrop-filter: blur(6px); padding: 4px 8px; border-radius: var(--r-pill); }
.floater--a { width: 120px; height: 120px; }
.floater--b { width: 96px; height: 96px; }
.floater--hero-1 { width: 128px; height: 128px; top: 4%; right: -34px; }
.floater--hero-2 { width: 92px; height: 92px; bottom: -28px; left: 8%; }
@media (max-width: 1080px) { .floater--hero-1, .floater--hero-2 { display: none; } }

/* ── Sections ───────────────────────────────────────── */
.section { padding: 104px 0; position: relative; }
.section-soft { background: linear-gradient(180deg, var(--white), var(--cream)); }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 4.2vw, 54px); line-height: 1.04; letter-spacing: -0.03em; color: var(--ink); }
.section-head p { margin-top: 18px; font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 56ch; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* ── Pull quote ─────────────────────────────────────── */
.quote-sec { padding: 96px 0; position: relative; background: linear-gradient(180deg, var(--cream), var(--cream-2)); overflow: hidden; }
.pullquote { max-width: 1000px; }
.pullquote .q-key { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--purple); margin-bottom: 24px; }
.pullquote blockquote { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.8vw, 48px); line-height: 1.14; letter-spacing: -0.025em; color: var(--ink); }
.pullquote blockquote mark { background: none; color: transparent; background-image: var(--grad-text); -webkit-background-clip: text; background-clip: text; }
.pullquote cite { display: block; margin-top: 28px; font-style: normal; font-size: 15px; color: var(--ink-2); font-weight: 500; }

/* ── Capabilities (solid dark, icon · rule · text) ──── */
.features--dark { background: var(--deep); position: relative; overflow: hidden; }
.features--dark::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(46% 40% at 88% 4%, rgba(164,19,236,0.22), transparent 62%),
    radial-gradient(40% 38% at 6% 96%, rgba(34,211,238,0.14), transparent 60%);
}
.features--dark .wrap { position: relative; z-index: 1; }
.features--dark .section-head h2 { color: #fff; }
.features--dark .section-head p { color: var(--d2); }

.feature-table { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 56px; row-gap: 64px; }
.feat { display: grid; grid-template-columns: 28px 1fr; column-gap: 18px; align-items: start; }
.feat-ico { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; color: var(--purple-l); margin-top: 2px; transition: color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.feat:hover .feat-ico { color: var(--cyan); transform: translateY(-2px); }
.feat-ico .ico { width: 24px; height: 24px; stroke-width: 1.7; }
.feat-body { min-width: 0; }
.feat h3 { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; line-height: 1.2; color: #fff; }
.feat-rule { display: block; width: 64px; height: 1px; background: rgba(255,255,255,0.22); margin: 18px 0 18px; transition: width var(--dur) var(--ease), background var(--dur) var(--ease); }
.feat:hover .feat-rule { width: 88px; background: var(--grad); }
.feat p { font-size: 15.5px; line-height: 1.62; color: var(--d2); max-width: 42ch; }
.feat-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.feat-tags span { font-family: var(--font-mono); font-size: 11px; color: var(--d1); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--r-pill); padding: 5px 11px; }

/* ── Product tour (alternating side-by-side rows) ───── */
.showcase { background: var(--white); }
.tour-rows { display: flex; flex-direction: column; gap: 88px; }
.tour-row { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 60px; align-items: center; }
.tour-row:nth-child(even) .tour-text { order: 2; }
.tour-row:nth-child(even) .tour-shot { order: 1; }
.tour-text .sc-key { display: inline-block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--purple); margin-bottom: 14px; }
.tour-text h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.03em; line-height: 1.06; color: var(--ink); }
.tour-text p { margin-top: 16px; font-size: 17px; line-height: 1.62; color: var(--ink-2); max-width: 44ch; }
.tour-text .sc-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tour-text .sc-pills span { font-family: var(--font-mono); font-size: 11px; color: var(--ink-2); background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 6px 13px; }
.tour-shot .sc-frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--cream); box-shadow: var(--sh-lg); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.tour-shot:hover .sc-frame { transform: translateY(-5px); box-shadow: var(--sh-lg), var(--sh-glow); }
.sc-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; background: #f3eef9; border-bottom: 1px solid var(--line); }
.sc-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d9cfe6; }
.sc-bar i:nth-child(1){ background:#ff6b6b;} .sc-bar i:nth-child(2){ background:#ffc24b;} .sc-bar i:nth-child(3){ background:#3ad07a;}
.sc-bar .u { margin-left: 8px; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tour-screen { background: var(--cream); }
.tour-screen img { width: 100%; height: auto; display: block; object-fit: cover; object-position: top center; }

@media (max-width: 980px) {
  .tour-rows { gap: 56px; }
  .tour-row { grid-template-columns: 1fr; gap: 28px; }
  .tour-row:nth-child(even) .tour-text { order: 2; }
  .tour-row:nth-child(even) .tour-shot { order: 1; }
  .tour-row .tour-text { order: 2; }
  .tour-row .tour-shot { order: 1; }
}

/* ── How it works (soft cards) ──────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px 28px; box-shadow: var(--sh-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.step:hover { transform: translateY(-5px); box-shadow: var(--sh); }
.step .skey { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: var(--r-pill); background: var(--cream); color: var(--purple); font-family: var(--font-mono); font-weight: 600; font-size: 15px; }
.step .skey b { font-weight: 600; }
.step .bar { height: 4px; background: var(--cream-2); border-radius: 4px; margin: 22px 0 20px; overflow: hidden; position: relative; }
.step .bar::after { content: ""; position: absolute; inset: 0; width: var(--fill, 0); background: var(--grad); transition: width 820ms var(--ease); }
.step.in .bar::after { --fill: 100%; }
.step h3 { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.025em; color: var(--ink); }
.step p { margin-top: 12px; font-size: 15.5px; line-height: 1.62; color: var(--ink-2); }

/* ── Pricing (soft rounded cards) ───────────────────── */
.price-table { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-col { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 30px; display: flex; flex-direction: column; box-shadow: var(--sh-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.price-col:hover { transform: translateY(-5px); box-shadow: var(--sh); }
.price-col.featured { background: var(--deep); color: #fff; border-color: transparent; box-shadow: var(--sh-glow); position: relative; overflow: hidden; }
.price-col.featured::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 50% at 80% 0%, rgba(164,19,236,0.5), transparent 60%), radial-gradient(50% 40% at 10% 100%, rgba(34,211,238,0.3), transparent 60%); pointer-events: none; }
.price-col.featured > * { position: relative; z-index: 1; }
.price-name { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--purple); display: flex; align-items: center; justify-content: space-between; }
.price-col.featured .price-name { color: var(--cyan); }
.price-name .tag { font-size: 10px; color: #fff; background: var(--grad); padding: 3px 10px; border-radius: var(--r-pill); letter-spacing: 0.05em; }
.price-amt { display: flex; align-items: baseline; gap: 7px; margin-top: 20px; }
.price-amt .n { font-family: var(--font-display); font-weight: 700; font-size: 52px; line-height: 1; letter-spacing: -0.035em; color: var(--ink); }
.price-col.featured .price-amt .n { color: #fff; }
.price-amt .p { font-size: 13px; color: var(--ink-3); }
.price-col.featured .price-amt .p { color: var(--d2); }
.price-blurb { margin-top: 12px; font-size: 14.5px; color: var(--ink-3); line-height: 1.5; min-height: 44px; }
.price-col.featured .price-blurb { color: var(--d2); }
.price-feats { list-style: none; padding: 22px 0; margin: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 13px; flex: 1; }
.price-col.featured .price-feats { border-color: rgba(255,255,255,0.14); }
.price-feats li { display: flex; align-items: flex-start; gap: 11px; font-size: 14.5px; color: var(--ink); }
.price-col.featured .price-feats li { color: var(--d1); }
.price-feats .ico { width: 20px; height: 20px; color: var(--purple); flex-shrink: 0; margin-top: 1px; }
.price-col.featured .price-feats .ico { color: var(--cyan); }
.price-note { margin-top: 26px; text-align: center; font-size: 14px; color: var(--ink-3); }

/* ── FAQ (soft cards) ───────────────────────────────── */
.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-sm); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.faq-item[open] { border-color: rgba(164,19,236,0.3); box-shadow: var(--sh); }
.faq-item summary { list-style: none; cursor: pointer; padding: 22px 24px; display: grid; grid-template-columns: 1fr 28px; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .q-idx { display: none; }
.faq-item .q-txt { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.015em; color: var(--ink); }
.faq-item summary .ico { width: 24px; height: 24px; color: var(--purple); transition: transform var(--dur) var(--ease); }
.faq-item[open] summary .ico { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 24px; font-size: 16px; color: var(--ink-2); line-height: 1.65; max-width: 72ch; }

/* ── CTA (gradient block) ───────────────────────────── */
.cta-final { padding: 40px 0 110px; }
.cta-final .wrap { position: relative; }
.cta-box { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--deep); padding: 84px 56px; text-align: center; box-shadow: var(--sh-lg); }
.cta-box::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 18% 12%, rgba(164,19,236,0.6), transparent 60%), radial-gradient(55% 65% at 85% 90%, rgba(34,211,238,0.4), transparent 60%), radial-gradient(40% 50% at 60% 50%, rgba(232,121,249,0.25), transparent 60%); pointer-events: none; }
.cta-box .cta-grid-bg { position: absolute; inset: 0; opacity: 0.4; background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px); background-size: 52px 52px; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000, transparent 75%); }
.cta-box > *:not(.cta-grid-bg) { position: relative; z-index: 1; }
.cta-box .q-key { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); margin-bottom: 22px; }
.cta-box h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 4.6vw, 62px); line-height: 1.02; letter-spacing: -0.035em; color: #fff; max-width: 17ch; margin: 0 auto; }
.cta-box h2 mark { background: none; color: transparent; background-image: var(--grad-text); -webkit-background-clip: text; background-clip: text; }
.cta-box p { margin: 22px auto 0; color: var(--d2); font-size: 18px; max-width: 50ch; line-height: 1.55; }
.cta-actions { display: flex; gap: 12px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.cta-proof { margin-top: 26px; font-family: var(--font-mono); font-size: 13px; color: var(--d3); }
.cta-form { display: flex; gap: 10px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.cta-input { flex: 1; min-width: 240px; max-width: 340px; padding: 0 18px; height: 54px; border-radius: var(--r-pill); border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.06); color: #fff; font-family: var(--font-body); font-size: 15px; outline: none; transition: border-color var(--dur) var(--ease); }
.cta-input::placeholder { color: var(--d3); }
.cta-input:focus { border-color: var(--purple-l); }
/* Newsletter form (waiting_list/form.html) inside the dark .cta-box */
.cta-subscribe { width: 100%; max-width: 460px; margin: 0 auto; }
.cta-form-error { margin: 12px auto 0; font-family: var(--font-mono); font-size: 12.5px; color: #fca5a5; }
.cta-consent { display: flex; align-items: flex-start; justify-content: center; gap: 9px; margin: 16px auto 0; max-width: 420px; font-size: 12.5px; line-height: 1.5; color: var(--d3); text-align: left; }
.cta-consent input[type="checkbox"] { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--purple-l); flex-shrink: 0; }
/* Subscribe button loading state (HTMX) */
.cta-spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(26,46,0,0.35); border-top-color: #1a2e00; border-radius: 50%; animation: cta-spin 0.6s linear infinite; }
.cta-subscribe.htmx-request .cta-spinner { display: inline-block; }
.cta-subscribe.htmx-request .cta-label { opacity: 0.7; }
@keyframes cta-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cta-spinner { animation: none; } }

/* ── Hero proof row + centered heads ────────────────── */
.hero-proof { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 40px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.1); }
.hero-proof li { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--d3); }
.hero-proof .dot { width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px rgba(52,211,153,0.7); }
.section-head--center { max-width: 720px; margin-inline: auto; text-align: center; margin-bottom: 56px; }
.section-head--center .eyebrow { justify-content: center; }
.sc-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--magenta), var(--purple)); flex-shrink: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--purple); text-decoration: none; transition: gap var(--dur) var(--ease); }
.link-arrow:hover { gap: 10px; }

/* ── Features · bento ───────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bento-card { grid-column: span 1; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--r-lg); padding: 30px; transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.bento-card--wide { grid-column: span 2; }
.bento-card:hover { border-color: rgba(164,19,236,0.4); transform: translateY(-3px); box-shadow: 0 0 36px -10px rgba(164,19,236,0.45); }
.bento-ico { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 13px; background: rgba(164,19,236,0.14); color: var(--purple-l); margin-bottom: 18px; }
.bento-ico .ico { width: 22px; height: 22px; }
.bento-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; color: #fff; }
.bento-card p { margin-top: 10px; font-size: 14.5px; line-height: 1.62; color: var(--d2); max-width: 54ch; }
.bento-vis { margin-top: 20px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.08); background: rgba(0,0,0,0.25); padding: 14px 16px; font-family: var(--font-mono); font-size: 12.5px; color: var(--d3); }
.bv-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.bv-name { color: var(--d1); }
.bv-tag { margin-left: auto; font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px; border-radius: 5px; }
.bv-tag--legendary { background: rgba(251,191,36,0.15); color: #fbbf24; }
.bv-child { padding-left: 14px; }
.bv-branch { color: var(--d3); }
.bv-price { margin-left: auto; color: #34d399; }
.bv-price--amber { color: #fbbf24; }
.bento-term { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bt-prompt { color: var(--purple-l); }
.bt-cmd { color: var(--d1); }
.bt-cursor { color: var(--purple-l); animation: bt-blink 1s step-end infinite; }
@keyframes bt-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bt-cursor { animation: none; } }

/* ── Import strip ───────────────────────────────────── */
.import { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.import-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.import-copy h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); }
.import-copy p { margin-top: 16px; font-size: 16.5px; line-height: 1.65; color: var(--ink-2); max-width: 42ch; }
.import-copy .link-arrow { margin-top: 22px; }
.import-copy .eyebrow { margin-bottom: 18px; }
.import-sec { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.import-cards { display: flex; flex-direction: column; gap: 12px; }
.import-card { border: 1px solid var(--line); border-radius: var(--r); background: var(--white); padding: 16px 18px; box-shadow: var(--sh-sm); }
.import-card--dim { opacity: 0.62; transform: translateY(2px) scale(0.985); }
.ic-row { display: flex; align-items: center; gap: 11px; }
.ic-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.ic-ico .ico { width: 18px; height: 18px; }
.ic-ico--green { background: rgba(16,185,129,0.12); color: #10b981; }
.ic-ico--purple { background: rgba(164,19,236,0.12); color: var(--purple); }
.ic-name { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-status { margin-left: auto; flex-shrink: 0; font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #10b981; background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2); border-radius: var(--r-pill); padding: 4px 11px; }
.ic-status--sync { color: var(--purple); background: rgba(164,19,236,0.1); border-color: rgba(164,19,236,0.2); }
.ic-stats { display: flex; align-items: center; gap: 8px; margin-top: 11px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.ic-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); opacity: 0.5; }

/* ── Pricing (2-up) ─────────────────────────────────── */
.price-table--2 { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin: 0 auto; }
.price-foot-note { font-size: 12.5px; line-height: 1.5; color: var(--d2); text-align: center; margin: 2px 0 14px; }

/* ── Footer (slim) ──────────────────────────────────── */
.footer--slim { background: var(--white); border-top: 1px solid var(--line); padding: 48px 0; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer--slim .brand .wm { color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer-links a,
.footer-links button { font-size: 14.5px; color: var(--ink-2); text-decoration: none; transition: color var(--dur) var(--ease); }
/* Feature-request trigger is a <button> (modal, not navigation) — reset chrome so it reads like the sibling links. */
.footer-links button { background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; }
.footer-links a:hover,
.footer-links button:hover { color: var(--purple); }
.footer-copy { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3); }

@media (max-width: 1024px) {
  .bento { grid-template-columns: 1fr; }
  .bento-card--wide { grid-column: span 1; }
  .import-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 767px) {
  .price-table--2 { grid-template-columns: 1fr; }
}

/* ── Footer ─────────────────────────────────────────── */
.footer { background: var(--white); border-top: 1px solid var(--line); padding: 0; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 32px 40px; flex-wrap: wrap; padding: 56px 0 40px; }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand .brand .wm { color: var(--ink); }
.footer-brand p { font-size: 14.5px; color: var(--ink-3); max-width: 32ch; line-height: 1.6; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14.5px; color: var(--ink-2); padding: 6px 0; transition: color var(--dur) var(--ease); }
.footer-col a:hover { color: var(--purple); }
.footer-bot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 22px 0 44px; border-top: 1px solid var(--line); }
.footer-bot .copy { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3); }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 44px; height: 44px; border-radius: var(--r-pill); display: grid; place-items: center; color: var(--ink-2); border: 1px solid var(--line); transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.footer-social a:hover { background: var(--grad); color: #fff; border-color: transparent; transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-mark { font-family: var(--font-wm); font-weight: 800; font-size: clamp(64px, 15vw, 220px); line-height: 0.8; letter-spacing: -0.05em; padding: 20px 0 0; user-select: none; overflow: hidden; background: linear-gradient(180deg, var(--cream-2), transparent); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Language selector sits in the footer link row; keep it visually aligned. */
.footer-links .v3-lang-selector, .footer-right .v3-lang-selector { display: inline-flex; }

/* ── Icons base ─────────────────────────────────────── */
.ico { width: 24px; height: 24px; flex-shrink: 0; display: inline-block; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }

/* ── Motion ─────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.ln { display: block; overflow: hidden; padding-bottom: 0.12em; }
.ln > i { display: block; font-style: normal; transition: transform 1000ms var(--ease); transition-delay: var(--li, 0ms); }
.js [data-reveal]:not(.in) .ln > i { transform: translateY(120%); }
[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .ln > i { transform: none !important; }
  .sc-shot { opacity: 1 !important; transform: none !important; }
  .sc-shot:not(.is-active) { display: none; }
  [data-parallax] { transform: none !important; }
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 52px; padding: 72px 0 80px; }
  .spec-chip--tl { left: 0; } .spec-chip--br { right: 0; }
  .feature-table { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-brand { grid-column: auto; }
}
@media (max-width: 860px) {
  .nav-wrap { grid-template-columns: 1fr auto; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .steps { grid-template-columns: 1fr; }
  .price-table { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --pad: 18px; }
  .section { padding: 70px 0; }
  .feature-table { grid-template-columns: 1fr; }
  .hero-cta, .cta-actions { flex-direction: column; }
  .hero-cta .btn, .cta-actions .btn { width: 100%; }
  .footer-top { gap: 24px; }
  .cta-box { padding: 52px 26px; }
}

/* ════════════════════════════════════════════════════
   SUBPAGES (Pricing · Blog · Help · Changelog)
   ════════════════════════════════════════════════════ */

/* ── Sub-page hero (dark, centered, compact) ────────── */
.subhero { position: relative; background: var(--deep); color: var(--d1); overflow: hidden; }
.subhero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(55% 60% at 80% 0%, rgba(164,19,236,0.5), transparent 62%),
    radial-gradient(45% 55% at 8% 100%, rgba(34,211,238,0.28), transparent 60%);
}
.subhero .wrap { position: relative; z-index: 2; }
.subhero-inner { text-align: center; max-width: 760px; margin: 0 auto; padding: 132px 0 84px; }
.subhero .eyebrow { justify-content: center; margin-bottom: 22px; color: var(--cyan); }
.subhero .eyebrow::before { background: var(--cyan); }
.subhero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -0.035em; color: #fff; }
.subhero h1 .hl { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.subhero-lede { margin: 22px auto 0; font-size: 19px; line-height: 1.62; color: var(--d2); max-width: 56ch; }
.subhero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.subhero-meta { display: flex; gap: 14px 30px; justify-content: center; margin-top: 40px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.1); flex-wrap: wrap; }
.subhero-meta li { list-style: none; display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--d3); }
.subhero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px rgba(52,211,153,0.7); }

@media (max-width: 700px) { .subhero-inner { padding: 112px 0 64px; } }

/* ── Active nav link ────────────────────────────────── */
.nav-link.is-active { color: #fff; background: rgba(255,255,255,0.1); }
.site-header.solid .nav-link.is-active { color: var(--purple); background: rgba(164,19,236,0.08); }

/* ════════════════════════════════════════════════════
   PRICING
   ════════════════════════════════════════════════════ */
.billing-toggle { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 38px; }
.billing-toggle .bt-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--d3); cursor: pointer; transition: color var(--dur) var(--ease); }
.billing-toggle .bt-label.active { color: #fff; }
.billing-switch { width: 52px; height: 28px; border-radius: var(--r-pill); background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); position: relative; cursor: pointer; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); padding: 0; }
.billing-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px rgba(34,211,238,0.7); transition: transform var(--dur) var(--ease); }
.billing-switch.annual { background: rgba(164,19,236,0.25); border-color: rgba(164,19,236,0.4); }
.billing-switch.annual::after { transform: translateX(24px); background: var(--purple-l); box-shadow: 0 0 12px rgba(196,107,242,0.8); }
.billing-save { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #1a2e00; background: var(--lime); padding: 4px 10px; border-radius: var(--r-pill); }

.price-amt[hidden] { display: none !important; }
.price-amt .n .cur { font-size: 28px; vertical-align: top; line-height: 1.4; margin-right: 1px; }
.price-addon { font-size: 12.5px; line-height: 1.5; color: var(--d2); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--r-sm); padding: 11px 13px; margin: 18px 0 4px; }
.price-addon strong { color: #fff; font-weight: 600; }
.price-col:not(.featured) .price-addon { color: var(--ink-2); background: var(--cream); border-color: var(--line); }
.price-col:not(.featured) .price-addon strong { color: var(--ink); }
.price-sub { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.price-col.featured .price-sub { color: var(--d2); }
.price-feats .feat-group { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); padding-top: 4px; }
.price-col.featured .price-feats .feat-group { color: var(--d3); }
.price-cta-note { text-align: center; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--purple); margin-top: 12px; }
.price-col.featured .price-cta-note { color: var(--cyan); }

/* Comparison table */
.compare-wrap { max-width: 880px; margin: 0 auto; }
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.compare-table th, .compare-table td { padding: 16px 22px; text-align: center; font-size: 15px; border-bottom: 1px solid var(--line); }
.compare-table thead th { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink); padding-bottom: 18px; border-bottom: 2px solid var(--line); }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; width: 46%; color: var(--ink); font-weight: 500; }
.compare-table thead th:first-child { font-family: var(--font-mono); font-weight: 600; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.compare-table th.pro-col, .compare-table td.pro-col { color: var(--purple); }
.compare-table tbody td { color: var(--ink-2); font-family: var(--font-mono); font-size: 13.5px; }
.compare-table tbody td:first-child { font-family: var(--font-display); font-size: 15px; }
.compare-table tbody tr:hover td { background: rgba(164,19,236,0.04); }
.compare-table .ico { width: 20px; height: 20px; }
.compare-table .yes { color: #2a9d63; }
.compare-table .no { color: var(--ink-3); }
.compare-cards { display: none; }

@media (max-width: 760px) {
  .compare-table { display: none; }
  .compare-cards { display: flex; flex-direction: column; gap: 16px; max-width: 460px; margin: 0 auto; }
  .compare-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); padding: 24px; box-shadow: var(--sh-sm); }
  .compare-card.pro { border-color: rgba(164,19,236,0.3); }
  .compare-card h3 { font-family: var(--font-display); font-size: 19px; margin-bottom: 14px; }
  .compare-card.pro h3 { color: var(--purple); }
  .compare-card dl { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; margin: 0; font-size: 14px; }
  .compare-card dt { color: var(--ink-2); }
  .compare-card dd { margin: 0; text-align: right; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink); }
}

/* ════════════════════════════════════════════════════
   BLOG
   ════════════════════════════════════════════════════ */
.blog-rss { display: inline-flex; align-items: center; gap: 7px; margin-top: 22px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--d2); transition: color var(--dur) var(--ease); }
.blog-rss:hover { color: var(--cyan); }
.blog-rss .ico { width: 15px; height: 15px; }

.featured-card { position: relative; display: block; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--white); overflow: hidden; padding: 48px 52px; box-shadow: var(--sh-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.featured-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); }
.featured-card:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: rgba(164,19,236,0.25); }
.featured-top { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.featured-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius: var(--r-pill); background: rgba(164,19,236,0.1); border: 1px solid rgba(164,19,236,0.2); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--purple); }
.featured-date { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); }
.featured-card h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.025em; color: var(--ink); max-width: 22ch; transition: color var(--dur) var(--ease); }
.featured-card:hover h2 { color: var(--purple); }
.featured-excerpt { margin-top: 14px; font-size: 16.5px; line-height: 1.62; color: var(--ink-2); max-width: 62ch; }
.featured-bottom { display: flex; align-items: center; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.featured-more { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--purple); transition: gap var(--dur) var(--ease); }
.featured-card:hover .featured-more { gap: 12px; }

.tag-filter { display: flex; flex-wrap: wrap; gap: 9px; padding-bottom: 36px; margin-bottom: 44px; border-bottom: 1px solid var(--line); }
.tag-pill { display: inline-flex; align-items: center; padding: 8px 16px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--white); font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.tag-pill:hover { color: var(--purple); border-color: var(--purple-l); }
.tag-pill.active { color: #fff; background: var(--purple); border-color: var(--purple); font-weight: 600; }

.posts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.post-card { display: flex; flex-direction: column; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--white); padding: 28px 28px 24px; box-shadow: var(--sh-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: rgba(164,19,236,0.22); }
.post-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.post-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.post-ico .ico { width: 21px; height: 21px; }
.post-date { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.post-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.28; letter-spacing: -0.02em; color: var(--ink); transition: color var(--dur) var(--ease); text-wrap: balance; }
.post-card:hover h3 { color: var(--purple); }
.post-card .excerpt { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); flex: 1; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.card-tag { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: var(--r-pill); border: 1px solid rgba(164,19,236,0.15); background: rgba(164,19,236,0.05); font-family: var(--font-mono); font-size: 11px; color: var(--purple); }

/* icon category themes */
.ic-assets  { background: rgba(164,19,236,0.1);  border: 1px solid rgba(164,19,236,0.18); color: var(--purple); }
.ic-ai      { background: rgba(99,102,241,0.1);   border: 1px solid rgba(99,102,241,0.18); color: #6366f1; }
.ic-gamedev { background: rgba(52,211,153,0.1);   border: 1px solid rgba(52,211,153,0.18); color: #2a9d63; }
.ic-economy { background: rgba(251,191,36,0.1);   border: 1px solid rgba(251,191,36,0.2);  color: #c98a06; }
.ic-tools   { background: rgba(96,165,250,0.12);  border: 1px solid rgba(96,165,250,0.2);  color: #2f7fd6; }
.ic-migrate { background: rgba(244,114,182,0.12); border: 1px solid rgba(244,114,182,0.2); color: #d6488f; }

@media (max-width: 760px) {
  .posts-grid { grid-template-columns: 1fr; }
  .featured-card { padding: 32px 26px; }
}

/* Blog detail (prose) */
.blog-detail { background: var(--white); }
.blog-prose { max-width: 760px; margin: 0 auto; font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.blog-prose h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.025em; color: var(--ink); margin: 48px 0 16px; line-height: 1.15; }
.blog-prose h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); margin: 36px 0 12px; }
.blog-prose h4 { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); margin: 28px 0 10px; }
.blog-prose p { margin: 0 0 20px; }
.blog-prose a { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }
.blog-prose a:hover { color: var(--purple-l); }
.blog-prose ul, .blog-prose ol { margin: 0 0 20px; padding-left: 24px; }
.blog-prose li { margin-bottom: 8px; }
.blog-prose blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--purple-l); color: var(--ink); font-style: italic; }
.blog-prose img { border-radius: var(--r); border: 1px solid var(--line); margin: 28px 0; }
.blog-prose code { font-family: var(--font-mono); font-size: 0.88em; background: var(--cream-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--ink); }
.blog-prose pre { background: #140a23; border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 18px 20px; overflow-x: auto; margin: 0 0 24px; }
.blog-prose pre code { background: none; border: none; padding: 0; color: #e8e0f5; font-size: 13px; line-height: 1.7; }
.blog-prose table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 15px; }
.blog-prose th, .blog-prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.blog-prose th { background: var(--cream); font-family: var(--font-display); color: var(--ink); }
.blog-back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--purple); }

/* ════════════════════════════════════════════════════
   HELP
   ════════════════════════════════════════════════════ */
.help-label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple); margin-bottom: 14px; }
.help-label .ico { width: 15px; height: 15px; }
.section-head.center .help-label { justify-content: center; }

/* Quick-start timeline */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.tl-step { text-align: center; position: relative; }
.tl-num { width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%; background: var(--white); border: 2px solid var(--purple); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--purple); box-shadow: 0 0 0 6px rgba(164,19,236,0.06); position: relative; z-index: 1; }
.tl-step::before { content: ""; position: absolute; top: 27px; left: -14px; right: 50%; height: 2px; background: var(--line); z-index: 0; }
.tl-step:first-child::before { display: none; }
.tl-step h3 { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 8px; }
.tl-step p { font-size: 14px; line-height: 1.55; color: var(--ink-2); }

/* Accordions (workflows / API / faq share .acc) */
.acc-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 0 auto; }
.acc { border: 1px solid var(--line); border-radius: var(--r); background: var(--white); overflow: hidden; box-shadow: var(--sh-sm); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.acc[open] { border-color: rgba(164,19,236,0.28); box-shadow: var(--sh); }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 20px 24px; }
.acc summary::-webkit-details-marker { display: none; }
.acc-ico { width: 42px; height: 42px; min-width: 42px; border-radius: 11px; background: rgba(164,19,236,0.1); border: 1px solid rgba(164,19,236,0.16); display: grid; place-items: center; color: var(--purple); }
.acc-ico .ico { width: 20px; height: 20px; }
.acc-ico.api { background: rgba(96,165,250,0.12); border-color: rgba(96,165,250,0.2); color: #2f7fd6; }
.acc-txt { flex: 1; }
.acc-title { display: block; font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; color: var(--ink); }
.acc-sub { display: block; font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.acc-chev { width: 22px; height: 22px; color: var(--ink-3); transition: transform var(--dur) var(--ease); flex-shrink: 0; }
.acc[open] .acc-chev { transform: rotate(180deg); }
.acc-body { padding: 0 24px 24px 82px; }
.acc-body ul { list-style: none; padding: 0; margin: 0; }
.acc-body li { position: relative; padding-left: 18px; margin-bottom: 8px; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.acc-body li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--purple); opacity: 0.5; }
@media (max-width: 640px) { .acc-body { padding-left: 24px; } }

/* API guide code blocks */
.api-step { margin-bottom: 26px; }
.api-step:last-child { margin-bottom: 0; }
.api-step h4 { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; color: var(--ink); margin-bottom: 6px; }
.api-step p { font-size: 14px; line-height: 1.65; color: var(--ink-2); margin: 0 0 12px; }
.api-code { background: #140a23; border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 16px 18px; overflow-x: auto; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; color: #e8e0f5; white-space: pre; margin: 0; }
.api-code::-webkit-scrollbar { height: 7px; }
.api-code::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 4px; }

/* Role cards */
.roles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.role-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); padding: 30px 28px; box-shadow: var(--sh-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.role-card:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.role-ico { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px; }
.role-ico .ico { width: 24px; height: 24px; }
.role-ico.owner { background: rgba(164,19,236,0.12); border: 1px solid rgba(164,19,236,0.2); color: var(--purple); }
.role-ico.editor { background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.2); color: #2a9d63; }
.role-ico.viewer { background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.2); color: #c98a06; }
.role-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; color: var(--ink); }
.role-card .role-desc { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--ink-2); min-height: 44px; }
.role-perms { list-style: none; padding: 0; margin: 16px 0 0; }
.role-perms li { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.role-perms .ico { width: 17px; height: 17px; flex-shrink: 0; }
.role-perms .yes { color: #2a9d63; }
.role-perms .no { color: var(--ink-3); }
.role-badge { display: inline-block; margin-top: 18px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: var(--r-pill); }
.role-badge.billable { background: rgba(164,19,236,0.08); color: var(--purple); border: 1px solid rgba(164,19,236,0.15); }
.role-badge.free { background: rgba(52,211,153,0.1); color: #2a9d63; border: 1px solid rgba(52,211,153,0.2); }

/* Troubleshooting */
.trouble-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 820px; margin: 0 auto; }
.trouble-card { display: flex; align-items: flex-start; gap: 15px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--sh-sm); transition: border-color var(--dur) var(--ease); }
.trouble-card:hover { border-color: var(--purple-l); }
.trouble-ico { width: 38px; height: 38px; min-width: 38px; border-radius: 10px; background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.2); display: grid; place-items: center; color: #c98a06; }
.trouble-ico .ico { width: 19px; height: 19px; }
.trouble-card h4 { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink); margin-bottom: 5px; }
.trouble-card p { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); margin: 0; }

@media (max-width: 920px) {
  .timeline { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .tl-step:nth-child(odd)::before { display: none; }
  .roles-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .timeline { grid-template-columns: 1fr; }
  .tl-step::before { display: none; }
  .trouble-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════
   CHANGELOG (reverse-chron timeline)
   ════════════════════════════════════════════════════ */
.cl-timeline { max-width: 820px; margin: 0 auto; position: relative; padding-left: 34px; }
.cl-timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.cl-entry { position: relative; margin-bottom: 56px; }
.cl-entry:last-child { margin-bottom: 0; }
.cl-entry::before { content: ""; position: absolute; left: -34px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid var(--purple); box-shadow: 0 0 0 5px rgba(164,19,236,0.08); }
.cl-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.cl-date { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3); }
.cl-version { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.05em; color: var(--purple); background: rgba(164,19,236,0.08); border: 1px solid rgba(164,19,236,0.18); border-radius: var(--r-pill); padding: 3px 11px; }
.cl-entry h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.025em; color: var(--ink); margin-bottom: 14px; }
.cl-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.cl-tag { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 11px; border-radius: var(--r-pill); }
/* Modifiers are namespaced (cl-tag--*) to avoid colliding with Tailwind's
   global `.fixed` utility (which set position:fixed on the "Fixed" badge). */
.cl-tag--new { background: rgba(52,211,153,0.1); color: #2a9d63; border: 1px solid rgba(52,211,153,0.2); }
.cl-tag--improved { background: rgba(96,165,250,0.12); color: #2f7fd6; border: 1px solid rgba(96,165,250,0.2); }
.cl-tag--fixed { background: rgba(251,191,36,0.1); color: #c98a06; border: 1px solid rgba(251,191,36,0.2); }
.cl-body { color: var(--ink-2); }
.cl-body h2 { font-size: 18px; margin: 24px 0 10px; color: var(--ink); }
.cl-body h3 { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink); margin: 20px 0 8px; }
.cl-body ul { padding-left: 20px; margin: 0 0 16px; }
.cl-body li { margin-bottom: 6px; line-height: 1.6; }
.cl-body p { margin: 0 0 14px; line-height: 1.7; }
.cl-body a { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }

/* ════════════════════════════════════════════════════
   SIMPLE PAGES (403 / 404 error)
   ════════════════════════════════════════════════════ */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 120px 0 90px; }
.error-page .code { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--purple); }
.error-page h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 6vw, 68px); letter-spacing: -0.03em; color: var(--ink); margin: 14px 0 14px; }
.error-page p { font-size: 18px; color: var(--ink-2); max-width: 46ch; margin: 0 auto 30px; line-height: 1.6; }


/* ════════════════════════════════════════════════════
   AUTH PAGES (login / signup / password-reset / activation)
   Split-panel layout: lavender brand panel + white form card.
   Imported from the claude.ai/design "PolyDrobe Auth" + "Forgot
   Password" mocks. ALL class names are namespaced with `auth-`
   to avoid colliding with Tailwind utilities and app classes
   (the bare design names .input/.field/.tab/.btn-primary/etc.
   would collide — e.g. Tailwind's .fixed regression). Local
   design vars are mapped to the existing :root tokens where they
   match; auth-specific values are inlined.
   ════════════════════════════════════════════════════ */

.auth-shell {
  /* Alias the shared v3 :root tokens so auth styling tracks the design system.
     Only genuinely auth-specific values (purple-hover/soft, radius) are inlined. */
  --auth-purple: var(--purple);
  --auth-purple-hover: #9310d6;        /* auth-specific darker hover for the solid CTA */
  --auth-purple-soft: #f5e8ff;         /* auth-specific tint for icon badges */
  --auth-card-bg: var(--white);
  --auth-border: var(--line);
  --auth-border-input: var(--line);
  --auth-border-input-hover: var(--purple-l);
  --auth-ink: var(--ink);
  --auth-ink-strong: var(--ink);
  --auth-ink-2: var(--ink-2);
  --auth-ink-3: var(--ink-3);          /* #6f6685 — clears WCAG AA on the light card */
  --auth-radius: 10px;
  --auth-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --auth-dur: 180ms;
  --auth-dur-hover: 120ms;
  --auth-shadow-card: 0 1px 2px rgba(20, 12, 25, 0.04);
  --auth-shadow-pop: 0 1px 2px rgba(20, 12, 25, 0.05), 0 12px 36px -12px rgba(20, 12, 25, 0.14);

  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  place-items: start center;
  position: relative;
  overflow: hidden;
  color: var(--auth-ink);
  background:
    radial-gradient(58% 55% at 80% 2%, rgba(164, 19, 236, 0.07), transparent 60%),
    radial-gradient(52% 50% at 102% 100%, rgba(96, 165, 250, 0.08), transparent 55%),
    #f7f6f8;
}
.auth-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
  background-image: radial-gradient(rgba(26, 15, 33, 0.05) 1.1px, transparent 1.1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 64% 72% at 64% 46%, #000 8%, transparent 72%);
  mask-image: radial-gradient(ellipse 64% 72% at 64% 46%, #000 8%, transparent 72%);
}

.auth-brand-panel,
.auth-form-panel {
  position: relative;
  z-index: 1;
}

/* Split layout (desktop) */
.auth-shell[data-layout="split"] {
  grid-template-columns: 1fr 1fr;
  place-items: stretch;
}

.auth-brand-panel {
  display: none;
}
.auth-shell[data-layout="split"] .auth-brand-panel {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  align-self: start;
  height: 100dvh;
  overflow: hidden;
  padding: 48px;
  color: var(--auth-ink);
  background:
    radial-gradient(120% 90% at 0% 100%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(140deg, #efe0ff 0%, #f3e8ff 30%, #e9f0fe 66%, #dcecff 100%);
}
/* Reset-flow brand panel is static (not sticky) — same gradient. */
.auth-shell[data-layout="split"][data-brand="static"] .auth-brand-panel {
  position: relative;
}

.auth-bp-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-bp-top img {
  width: 28px;
  height: 28px;
}
.auth-bp-top .auth-wm {
  font-family: var(--font-wm);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--auth-ink);
}
.auth-bp-slogan-wrap {
  flex: 1;
  display: flex;
  align-items: center;
}
.auth-bp-slogan {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 4.8vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--auth-ink-strong);
  margin: 0;
  max-width: 12ch;
}
.auth-bp-slogan .auth-hl {
  background: linear-gradient(100deg, #a413ec 0%, #e879f9 50%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-form-panel {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  padding: clamp(40px, 8vh, 96px) 24px;
}

.auth-card {
  width: 100%;
  max-width: 404px;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--auth-ink-2);
  transition: color var(--auth-dur) var(--auth-ease), gap var(--auth-dur) var(--auth-ease);
}
.auth-back-link:hover {
  color: var(--auth-purple);
  gap: 9px;
}
.auth-back-link .material-symbols-outlined {
  font-size: 18px;
}

/* Inline wordmark shown only when the brand panel is hidden (≤880px). */
.auth-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}
.auth-mark img {
  width: 26px;
  height: 26px;
}
.auth-mark .auth-wm {
  font-family: var(--font-wm);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--auth-ink);
}
.auth-shell[data-layout="split"] .auth-mark {
  display: none;
}

/* Log in / Sign up tab switcher (real links, active state per page). */
.auth-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 5px;
  background: #ece7f2;
  border-radius: var(--auth-radius);
  margin-bottom: 30px;
}
.auth-tabs .auth-glider {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(50% - 5px);
  height: calc(100% - 10px);
  background: var(--auth-card-bg);
  border-radius: 7px;
  box-shadow: 0 1px 2px rgba(20, 12, 25, 0.07), 0 1px 1px rgba(20, 12, 25, 0.04);
  transition: transform var(--auth-dur) var(--auth-ease);
}
.auth-shell[data-mode="signup"] .auth-tabs .auth-glider {
  transform: translateX(100%);
}
.auth-tab {
  position: relative;
  z-index: 1;
  padding: 10px 0;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--auth-ink-2);
  border-radius: 7px;
  transition: color var(--auth-dur) var(--auth-ease);
}
.auth-tab:hover {
  color: var(--auth-ink);
}
.auth-tab[aria-current="page"] {
  color: var(--auth-purple);
  font-weight: 700;
}

/* Combined card: show only the active mode's content; the JS tab toggle flips
   `data-mode` on `.auth-shell` for a smooth in-place switch (no page reload). */
.auth-shell[data-mode="login"] .signup-only { display: none; }
.auth-shell[data-mode="signup"] .login-only { display: none; }

.auth-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 27px;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--auth-ink-strong);
}
.auth-head p {
  margin: 8px 0 0;
  font-size: 14.5px;
  color: var(--auth-ink-2);
}
/* On login/signup the subtitle reserves height so the card doesn't jump. */
.auth-shell[data-mode] .auth-head p {
  min-height: 47px;
}
.auth-head p strong {
  color: var(--auth-ink);
  font-weight: 600;
}
.auth-head p a {
  color: var(--auth-purple);
  font-weight: 600;
}
.auth-head p a:hover {
  color: var(--auth-purple-hover);
  text-decoration: underline;
}

/* Icon badge (reset-sent / complete / activation states). */
.auth-icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--auth-purple-soft);
  color: var(--auth-purple);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.auth-icon-badge .material-symbols-outlined {
  font-size: 28px;
}
.auth-icon-badge--success {
  background: rgba(39, 174, 96, 0.12);
  color: #1f8f4d;
}
.auth-icon-badge--danger {
  background: rgba(214, 69, 63, 0.1);
  color: #d6453f;
}

/* Small uppercase eyebrow label above the heading (activation-sent). */
.auth-eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--auth-purple);
}

/* Mono pill showing the pending email address (activation-sent). */
.auth-email-token {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  padding: 8px 13px;
  border: 1px solid var(--auth-border-input);
  border-radius: var(--r-pill);
  background: var(--auth-card-bg);
  box-shadow: var(--auth-shadow-card);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--auth-ink);
}
.auth-email-token .material-symbols-outlined {
  font-size: 16px;
  color: var(--auth-purple);
}

/* Bordered notes card with stacked icon-tile rows (activation-sent). */
.auth-notes {
  margin-top: 24px;
  border: 1px solid var(--auth-border-input);
  border-radius: 12px;
  background: var(--auth-card-bg);
  overflow: hidden;
  box-shadow: var(--auth-shadow-card);
}
.auth-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 15px;
}
.auth-note + .auth-note {
  border-top: 1px solid var(--auth-border);
}
.auth-note .auth-note-ic {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: var(--auth-purple-soft);
  color: var(--auth-purple);
  display: grid;
  place-items: center;
}
.auth-note .auth-note-ic .material-symbols-outlined {
  font-size: 17px;
}
.auth-note p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--auth-ink-2);
}
.auth-note p strong {
  color: var(--auth-ink);
  font-weight: 600;
}

/* Social (Google) button. */
.auth-btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  min-height: 48px;
  margin-top: 26px;
  border-radius: var(--auth-radius);
  border: 1px solid var(--auth-border-input);
  background: var(--auth-card-bg);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--auth-ink);
  box-shadow: var(--auth-shadow-card);
  transition: border-color var(--auth-dur) var(--auth-ease), background var(--auth-dur) var(--auth-ease), box-shadow var(--auth-dur) var(--auth-ease);
}
.auth-btn-social:hover {
  background: #faf8fc;
  border-color: var(--auth-border-input-hover);
  box-shadow: var(--auth-shadow-pop);
}
.auth-btn-social[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: var(--auth-shadow-card);
}
.auth-btn-social svg {
  width: 18px;
  height: 18px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: var(--auth-ink-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--auth-border);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* Reset/confirm forms get a top margin (no Google button above). */
.auth-form--spaced {
  margin-top: 28px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.auth-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.auth-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--auth-ink);
}
.auth-field .auth-forgot {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--auth-purple);
}
.auth-field .auth-forgot:hover {
  color: var(--auth-purple-hover);
  text-decoration: underline;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-input-wrap .auth-lead {
  position: absolute;
  left: 13px;
  color: var(--auth-ink-3);
  font-size: 19px;
  pointer-events: none;
  display: flex;
}
/* `.auth-input` is also emitted by the Django form widgets (email/password),
   so widget-rendered fields pick up this exact look without extra JS. */
.auth-input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px 0 42px;
  border-radius: var(--auth-radius);
  background: var(--auth-card-bg);
  border: 1px solid var(--auth-border-input);
  color: var(--auth-ink);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color var(--auth-dur) var(--auth-ease), box-shadow var(--auth-dur) var(--auth-ease);
}
.auth-input::placeholder {
  color: var(--auth-ink-3);
}
.auth-input:hover {
  border-color: var(--auth-border-input-hover);
}
.auth-input:focus {
  border-color: var(--auth-purple);
  box-shadow: 0 0 0 3px rgba(164, 19, 236, 0.12);
}
.auth-input.has-toggle,
.auth-input-wrap:has(.auth-toggle-pw) .auth-input {
  padding-right: 44px;
}

.auth-toggle-pw {
  position: absolute;
  right: 5px;
  width: 40px;
  height: 40px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--auth-ink-3);
}
.auth-toggle-pw:hover {
  color: var(--auth-ink);
}
.auth-toggle-pw .material-symbols-outlined {
  font-size: 20px;
}

/* Custom legal-consent checkbox (visible; .box turns purple when ticked). */
.auth-remember {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--auth-ink-2);
  cursor: pointer;
  user-select: none;
}
.auth-remember input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.auth-remember .auth-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid var(--auth-border-input);
  background: var(--auth-card-bg);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all var(--auth-dur) var(--auth-ease);
}
.auth-remember .auth-box .material-symbols-outlined {
  font-size: 15px;
  color: #fff;
  opacity: 0;
  transform: scale(0.6);
  transition: all var(--auth-dur) var(--auth-ease);
}
.auth-remember input:checked + .auth-box {
  background: var(--auth-purple);
  border-color: var(--auth-purple);
}
.auth-remember input:checked + .auth-box .material-symbols-outlined {
  opacity: 1;
  transform: scale(1);
}
.auth-remember input:focus-visible + .auth-box {
  box-shadow: 0 0 0 3px rgba(164, 19, 236, 0.2);
}
.auth-remember.legal {
  align-items: flex-start;
  gap: 11px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--auth-ink-2);
  cursor: default;
}
.auth-remember.legal .auth-box {
  margin-top: 1px;
  cursor: pointer;
}
.auth-remember.legal a {
  color: var(--auth-purple);
  font-weight: 600;
  text-decoration: none;
}
.auth-remember.legal a:hover {
  color: var(--auth-purple-hover);
  text-decoration: underline;
}

.auth-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  border-radius: var(--auth-radius);
  background: var(--auth-purple);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 1px 2px rgba(164, 19, 236, 0.3);
  transition: background var(--auth-dur) var(--auth-ease), transform var(--auth-dur-hover) var(--auth-ease), box-shadow var(--auth-dur) var(--auth-ease);
}
.auth-btn-primary:hover {
  background: var(--auth-purple-hover);
  box-shadow: 0 4px 14px rgba(164, 19, 236, 0.32);
}
.auth-btn-primary:active {
  transform: translateY(1px);
}
.auth-btn-primary[disabled] {
  background: var(--cream-2);
  color: var(--ink-2);
  box-shadow: none;
  cursor: not-allowed;
}
.auth-btn-primary[disabled]:hover {
  box-shadow: none;
}
.auth-btn-primary .material-symbols-outlined {
  font-size: 20px;
  transition: transform var(--auth-dur) var(--auth-ease);
}
.auth-btn-primary:not([disabled]):hover .material-symbols-outlined {
  transform: translateX(3px);
}

/* Outline button (reset "Back to log in"). */
.auth-btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 48px;
  margin-top: 28px;
  border-radius: var(--auth-radius);
  border: 1px solid var(--auth-border-input);
  background: var(--auth-card-bg);
  color: var(--auth-ink);
  font-weight: 600;
  font-size: 15px;
  box-shadow: var(--auth-shadow-card);
  transition: border-color var(--auth-dur) var(--auth-ease), background var(--auth-dur) var(--auth-ease), box-shadow var(--auth-dur) var(--auth-ease);
}
.auth-btn-outline:hover {
  background: #faf8fc;
  border-color: var(--auth-border-input-hover);
  box-shadow: var(--auth-shadow-pop);
}
.auth-btn-outline .material-symbols-outlined {
  font-size: 20px;
}

.auth-terms {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--auth-ink-3);
  margin: 14px 0 0;
  text-align: center;
}
.auth-terms a {
  color: var(--auth-ink-2);
  text-decoration: underline;
  text-decoration-color: var(--auth-border-input);
}
.auth-terms a:hover {
  color: var(--auth-ink);
}

.auth-alt {
  margin-top: 26px;
  text-align: center;
  font-size: 13.5px;
  color: var(--auth-ink-3);
}
.auth-alt a {
  color: var(--auth-purple);
  font-weight: 600;
}
.auth-alt a:hover {
  color: var(--auth-purple-hover);
}

/* Inline field + non-field error blocks. */
.auth-error {
  font-size: 13px;
  line-height: 1.45;
  color: #c0392b;
  background: rgba(235, 87, 87, 0.08);
  border: 1px solid rgba(235, 87, 87, 0.2);
  border-radius: var(--auth-radius);
  padding: 9px 12px;
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.auth-error .material-symbols-outlined {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}
.auth-error p {
  margin: 0;
}
.auth-error--field {
  padding: 7px 11px;
}

/* Access-denied / info notice banner. */
.auth-notice {
  font-size: 13px;
  line-height: 1.45;
  color: #8a6d00;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: var(--auth-radius);
  padding: 10px 13px;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 22px;
}
.auth-notice .material-symbols-outlined {
  font-size: 19px;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .auth-fade-up {
    opacity: 0;
    transform: translateY(14px);
    animation: authFadeUp 560ms var(--auth-ease) forwards;
  }
  @keyframes authFadeUp {
    to {
      opacity: 1;
      transform: none;
    }
  }
}

@media (max-width: 880px) {
  .auth-shell[data-layout="split"] {
    grid-template-columns: 1fr;
    place-items: start center;
  }
  .auth-shell[data-layout="split"] .auth-brand-panel {
    display: none;
  }
  .auth-shell[data-layout="split"] .auth-mark {
    display: flex;
  }
}
@media (max-width: 480px) {
  .auth-shell,
  .auth-shell[data-layout="split"] {
    padding: 24px 18px;
  }
}
