/*
 * PCP Builder Rails host chrome only. The editor (pcp_builder.html) and
 * wizard (wizard.html) ship their own styles and run inside #editor-host.
 * Do not touch editor styles from this file.
 */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Cal+Sans:wght@600&display=swap");

:root {
  --indigo-50:  #eef2ff;
  --indigo-100: #e0e7ff;
  --indigo-200: #c7d2fe;
  --indigo-300: #a5b4fc;
  --indigo-400: #818cf8;
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;
  --indigo-800: #3730a3;
  --cyan-400:  #22d3ee;
  --cyan-500:  #06b6d4;
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --emerald-50:  #ecfdf5;
  --emerald-300: #6ee7b7;
  --emerald-500: #10b981;
  --emerald-700: #047857;
  --rose-50:  #fff1f2;
  --rose-300: #fda4af;
  --rose-500: #f43f5e;
  --rose-700: #be123c;
  --amber-50: #fffbeb;
  --amber-300:#fcd34d;
  --amber-700:#b45309;

  --fg: var(--slate-900);
  --muted: var(--slate-500);
  --border: var(--slate-200);
  --card: #ffffff;

  --grad-primary: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  --grad-soft:    linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  --grad-hero:    radial-gradient(60% 90% at 50% 0%, rgba(99,102,241,0.12) 0%, rgba(99,102,241,0) 60%),
                  radial-gradient(50% 70% at 80% 30%, rgba(6,182,212,0.12) 0%, rgba(6,182,212,0) 60%),
                  linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --shadow-xs: 0 1px 2px rgba(15,23,42,0.05);
  --shadow-sm: 0 4px 12px -2px rgba(15,23,42,0.07), 0 2px 4px -2px rgba(15,23,42,0.04);
  --shadow:    0 12px 28px -8px rgba(15,23,42,0.12), 0 4px 12px -4px rgba(15,23,42,0.06);
  --shadow-lg: 0 24px 48px -12px rgba(15,23,42,0.18), 0 8px 16px -6px rgba(15,23,42,0.08);
  --shadow-glow: 0 12px 36px -6px rgba(99,102,241,0.35);

  --transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  color: var(--fg);
  background: var(--grad-soft);
  background-attachment: fixed;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a {
  color: var(--indigo-600);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--indigo-700); }
a.subtle { color: var(--slate-600); }
a.subtle:hover { color: var(--indigo-700); }

h1, h2, h3, h4 {
  font-family: "Cal Sans", "Inter", system-ui, sans-serif;
  letter-spacing: -0.02em;
  color: var(--slate-900);
  margin: 0 0 0.5em;
  line-height: 1.2;
}
h1 { font-size: 2.25rem; font-weight: 700; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--slate-700); }
small { color: var(--muted); }
code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  color: var(--slate-700);
}

/* ============================================================
   APP HEADER
   ============================================================ */
header.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--slate-200);
  padding: 0.4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* Small version pill that sits next to the logo. Lives outside the brand
   link so it isn't clickable, and is shaped + sized so it reads as a
   subtitle, not a call-to-action. Bump PcpMaker::VERSION to change the
   text — see config/initializers/app_version.rb. */
header.app-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
header.app-header .brand-version {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 0.55rem;
  border-radius: 999px;
  background: rgba(99, 91, 255, 0.10);
  color: var(--indigo-600, #4f46e5);
  font-family: "DM Mono", "Inter", monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
}
@media (max-width: 640px) {
  header.app-header .brand-version { display: none; }
}

header.app-header .brand a {
  font-family: "Cal Sans", "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--slate-900);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  transition: opacity var(--transition);
}
header.app-header .brand a:hover { opacity: 0.85; text-decoration: none; }
header.app-header .brand a.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  font-family: "Cal Sans", "Inter", sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.025em;
  line-height: 1;
  text-decoration: none;
  color: var(--slate-900);
  transition: opacity var(--transition);
}
header.app-header .brand a.brand-text:hover { opacity: 0.85; text-decoration: none; }
header.app-header .brand a.brand-text .brand-pcp {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
header.app-header .brand a.brand-text .brand-maker {
  color: var(--slate-900);
  font-weight: 700;
}
@media (max-width: 640px) {
  header.app-header .brand a.brand-text { font-size: 1.2rem; }
}

/* Image logo replaces the "PCP" + "Maker" gradient text wordmark.
   The header is `padding: 0.85rem 1.5rem`, so the available
   content height is ~36px on default font sizing — we let the
   img stretch to that height and width: auto so its native aspect
   carries through. No border, no padded "card" backdrop. */
header.app-header .brand a.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
  transition: opacity var(--transition);
}
header.app-header .brand a.brand-logo:hover { opacity: 0.85; text-decoration: none; }
header.app-header .brand a.brand-logo img {
  display: block;
  height: 50px;
  width: auto;
  object-fit: contain;
}
@media (max-width: 640px) {
  header.app-header .brand a.brand-logo img { height: 40px; }
}
header.app-header nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}
header.app-header nav a {
  color: var(--slate-600);
  font-weight: 500;
  font-size: 0.92rem;
  transition: color var(--transition);
}
header.app-header nav a:hover { color: var(--slate-900); }

/* ============================================================
   MAIN / CONTAINER
   ============================================================ */
main.container { max-width: 1040px; margin: 2.25rem auto 3rem; padding: 0 1.5rem; }
main.editor-frame { max-width: none; margin: 0; padding: 0; }

main.container.narrow { max-width: 720px; }
main.container.wide   { max-width: 1240px; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--card);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card.hover:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card h1, .card h2, .card h3 { margin-top: 0; }
.card > h1:first-child,
.card > h2:first-child,
.card > h3:first-child {
  margin-bottom: 0.5rem;
}
.card > p:last-child,
.card > ul:last-child,
.card > .kv:last-child { margin-bottom: 0; }

.card-grad {
  background: var(--grad-primary);
  color: white;
  border: 0;
  box-shadow: var(--shadow-glow);
}
.card-grad h1, .card-grad h2, .card-grad h3 { color: white; }
.card-grad p { color: rgba(255,255,255,0.92); }
.card-grad a { color: white; text-decoration: underline; }

.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo-600);
  background: var(--indigo-50);
  border: 1px solid var(--indigo-100);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  box-shadow: var(--shadow-xs);
}
.flash.alert  {
  background: var(--rose-50);
  color: var(--rose-700);
  border: 1px solid var(--rose-300);
}
.flash.notice {
  background: var(--emerald-50);
  color: var(--emerald-700);
  border: 1px solid var(--emerald-300);
}
.flash::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ============================================================
   FORMS
   ============================================================ */
form .field { display: block; margin-bottom: 1rem; }
form .field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 0.35rem;
}
form .field input[type=email],
form .field input[type=password],
form .field input[type=text],
form .field input[type=tel],
form .field input[type=number],
form .field input[type=url],
form .field input[type=date],
form .field input[type=search],
form .field textarea,
form .field select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  font: inherit;
  background: white;
  color: var(--fg);
  transition: border-color var(--transition), box-shadow var(--transition);
}
form .field input:focus,
form .field textarea:focus,
form .field select:focus {
  outline: none;
  border-color: var(--indigo-500);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.16);
}
form .field input[type=file] {
  font: inherit;
  font-size: 0.9rem;
  color: var(--slate-600);
}
form .field input[type=file]::file-selector-button {
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  background: var(--indigo-50);
  color: var(--indigo-700);
  border: 1px solid var(--indigo-100);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.9rem;
  margin-right: 0.75rem;
  cursor: pointer;
  transition: background var(--transition);
}
form .field input[type=file]::file-selector-button:hover {
  background: var(--indigo-100);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn, form .btn, button.btn, input[type="submit"].btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--grad-primary);
  color: white;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.15rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  box-shadow: var(--shadow-glow);
}
.btn:hover, form .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px -8px rgba(99,102,241,0.45);
  color: white;
  text-decoration: none;
}
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[disabled] {
  opacity: 0.55;
  cursor: default;
  transform: none;
  box-shadow: var(--shadow-xs);
}

.btn.secondary, form .btn.secondary {
  background: white;
  color: var(--indigo-700);
  border: 1px solid var(--indigo-200);
  box-shadow: var(--shadow-xs);
}
.btn.secondary:hover, form .btn.secondary:hover {
  background: var(--indigo-50);
  border-color: var(--indigo-300);
  box-shadow: var(--shadow-sm);
  color: var(--indigo-800);
}

.btn.ghost {
  background: transparent;
  color: var(--slate-700);
  border: 1px solid transparent;
  box-shadow: none;
}
.btn.ghost:hover {
  background: var(--slate-100);
  color: var(--slate-900);
  box-shadow: none;
  transform: none;
}

.btn.danger {
  background: linear-gradient(135deg, #f43f5e 0%, #be123c 100%);
  box-shadow: 0 10px 28px -6px rgba(244,63,94,0.35);
}
.btn.danger:hover { box-shadow: 0 16px 36px -6px rgba(244,63,94,0.45); }

.btn-lg { padding: 0.85rem 1.5rem; font-size: 1rem; }
.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.82rem; }

/* ============================================================
   FOOTER
   ============================================================ */
footer.app-footer {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  padding: 2.5rem 1rem 3rem;
  border-top: 1px solid var(--slate-200);
  margin-top: 3rem;
  background: rgba(255,255,255,0.5);
}
footer.app-footer a { color: var(--slate-600); margin: 0 0.25rem; }
footer.app-footer a:hover { color: var(--indigo-700); }

/* ============================================================
   KV (definition lists)
   ============================================================ */
.kv {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0.55rem 1.25rem;
  font-size: 0.95rem;
}
.kv dt {
  color: var(--slate-500);
  font-weight: 500;
}
.kv dd {
  margin: 0;
  color: var(--slate-900);
  font-weight: 500;
}

/* ============================================================
   EVENTS / LISTS
   ============================================================ */
.events { list-style: none; padding: 0; margin: 0; }
.events li {
  padding: 0.7rem 0.25rem;
  border-bottom: 1px solid var(--slate-100);
  font-size: 0.92rem;
  color: var(--slate-600);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
}
.events li:last-child { border-bottom: 0; }
.events li strong {
  color: var(--slate-900);
  background: var(--slate-100);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ============================================================
   EDITOR HOST
   ============================================================ */
#editor-host {
  width: 100%;
  height: 100vh;
  border: 0;
  background: white;
  display: block;
}

/* Release-channel banner — sits above the iframe on every non-production
   editor channel (DV / Testing / Beta / Legacy). Colour comes from the
   stage-X modifier class so all four share the same layout. */
.editor-stage-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.editor-stage-banner strong {
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 1px 8px;
  border-radius: 4px;
}
.editor-stage-banner a {
  margin-left: auto;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.editor-stage-banner a:hover { color: #fff; }
.editor-stage-banner .esb-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
}

/* Per-stage palettes — red DV → orange Testing → yellow Beta → grey
   Legacy. Production has no banner. Each row: bg / fg / strong-bg /
   link-fg / dot-bg + glow. */
.editor-stage-banner.stage-dv      { background: #7f1d1d; color: #fee2e2; }
.editor-stage-banner.stage-dv      strong { background: #b91c1c; }
.editor-stage-banner.stage-dv      a      { color: #fecaca; }
.editor-stage-banner.stage-dv      .esb-dot { background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, .8); }

.editor-stage-banner.stage-testing { background: #7c2d12; color: #ffedd5; }
.editor-stage-banner.stage-testing strong { background: #c2410c; }
.editor-stage-banner.stage-testing a      { color: #fed7aa; }
.editor-stage-banner.stage-testing .esb-dot { background: #fb923c; box-shadow: 0 0 8px rgba(251, 146, 60, .8); }

.editor-stage-banner.stage-beta    { background: #78350f; color: #fef3c7; }
.editor-stage-banner.stage-beta    strong { background: #b45309; }
.editor-stage-banner.stage-beta    a      { color: #fde68a; }
.editor-stage-banner.stage-beta    .esb-dot { background: #fbbf24; box-shadow: 0 0 8px rgba(251, 191, 36, .8); }

.editor-stage-banner.stage-legacy  { background: #374151; color: #e5e7eb; }
.editor-stage-banner.stage-legacy  strong { background: #4b5563; }
.editor-stage-banner.stage-legacy  a      { color: #d1d5db; }
.editor-stage-banner.stage-legacy  .esb-dot { background: #9ca3af; box-shadow: 0 0 8px rgba(156, 163, 175, .6); }

/* Push the iframe down so the banner doesn't cover the toolbar. */
body:has(.editor-stage-banner) #editor-host { height: calc(100vh - 30px); margin-top: 30px; }

.editor-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: calc(100vh - 56px);
  text-align: center;
  padding: 2rem;
  color: var(--muted);
}
.editor-empty code {
  background: var(--slate-100);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

/* ============================================================
   USER MENU (avatar + dropdown panel)
   ============================================================ */
.user-menu { position: relative; }

.user-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
  cursor: pointer;
  color: var(--slate-600);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), color var(--transition);
}
.user-trigger.dots { padding: 0.4rem 0.5rem; }
.user-trigger:hover {
  background: var(--slate-100);
  border-color: var(--slate-200);
  color: var(--slate-900);
}
.user-trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.25);
}
.user-menu:has(.user-menu-panel.open) .user-trigger {
  background: var(--indigo-50);
  border-color: var(--indigo-200);
  color: var(--indigo-700);
}

/* Avatar circle */
.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Cal Sans", "Inter", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  box-shadow: 0 4px 12px -3px rgba(99,102,241,0.4);
}

/* Panel */
.user-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 280px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  box-shadow:
    0 24px 48px -12px rgba(15,23,42,0.18),
    0 8px 16px -6px rgba(15,23,42,0.08),
    0 1px 0 rgba(255,255,255,0.6) inset;
  padding: 0.5rem;
  display: none;
  z-index: 60;
  transform-origin: top right;
  animation: panelIn 200ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.user-menu-panel.open { display: block; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.user-panel-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 0.9rem;
  margin-bottom: 0.25rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(6,182,212,0.06));
  border: 1px solid var(--indigo-100);
}
.user-panel-head .avatar { width: 40px; height: 40px; font-size: 1.05rem; }
.user-info { min-width: 0; flex: 1; }
.user-name {
  font-weight: 700;
  color: var(--slate-900);
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-email {
  font-size: 0.78rem;
  color: var(--slate-500);
  margin-top: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-section {
  padding: 0.4rem 0;
  border-top: 1px solid var(--slate-100);
}
.menu-section:first-of-type { border-top: 0; padding-top: 0.55rem; }
.menu-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-400);
  padding: 0.35rem 0.85rem 0.45rem;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.55rem 0.85rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--slate-700);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.menu-item:hover {
  background: var(--indigo-50);
  color: var(--indigo-800);
  text-decoration: none;
  transform: translateX(2px);
}
.menu-item .menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--slate-100);
  color: var(--slate-600);
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}
.menu-item:hover .menu-icon {
  background: var(--indigo-100);
  color: var(--indigo-700);
}
.menu-item.danger { color: var(--rose-700); }
.menu-item.danger .menu-icon { background: var(--rose-50); color: var(--rose-700); }
.menu-item.danger:hover { background: var(--rose-50); color: var(--rose-700); transform: translateX(2px); }
.menu-item.danger:hover .menu-icon { background: var(--rose-100); }

/* button_to form wrapper for Sign out */
form.button_to.menu-item, form.button_to:has(.menu-item) { margin: 0; padding: 0; display: block; }
form.button_to .menu-item { width: 100%; }
.menu-section form.button_to { margin: 0; padding: 0; }
.menu-section form.button_to button.menu-item { width: 100%; }

/* ============================================================
   KEBAB MENU (legacy — kept for editor toolbar / other surfaces)
   ============================================================ */
.kebab { position: relative; }
.kebab-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--slate-600);
  padding: 0.4rem 0.5rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.kebab-btn:hover {
  background: var(--slate-100);
  color: var(--slate-900);
  border-color: var(--slate-200);
}
.kebab-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  background: var(--card);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.4rem 0;
  display: none;
  z-index: 50;
  animation: menuIn 140ms ease-out;
}
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-4px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.kebab-menu.open { display: block; }
.kebab-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1rem;
  font-size: 0.92rem;
  color: var(--slate-700);
  text-decoration: none;
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  margin: 0;
  transition: background var(--transition), color var(--transition);
}
.kebab-item:hover {
  background: var(--indigo-50);
  color: var(--indigo-800);
  text-decoration: none;
}
.kebab-sep { height: 1px; background: var(--slate-200); margin: 0.4rem 0; }
.kebab-item-button { color: var(--rose-700); }
form.button_to.kebab-item, .kebab-menu form.button_to { display: block; margin: 0; padding: 0; }
.kebab-menu form.button_to button {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 0.55rem 1rem;
  font: inherit;
  font-size: 0.92rem;
  color: var(--rose-700);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background var(--transition);
}
.kebab-menu form.button_to button:hover { background: var(--rose-50); }

/* ============================================================
   MARKETING / HERO
   ============================================================ */
.hero {
  background: var(--grad-hero);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  text-align: center;
  border: 1px solid var(--slate-200);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  width: 280px; height: 280px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  top: -80px; left: -80px;
}
.hero::after {
  width: 240px; height: 240px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  bottom: -60px; right: -60px;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
  font-size: 2.6rem;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #0f172a 0%, #4338ca 60%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.03em;
}
.hero p.lead {
  font-size: 1.2rem;
  color: var(--slate-600);
  max-width: 640px;
  margin: 0 auto 2rem;
}
.hero .cta-row {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.feature {
  background: var(--card);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.feature .feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--indigo-50);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--indigo-600);
  font-size: 1.4rem;
  margin-bottom: 0.85rem;
}
.feature.cyan .feature-icon { background: #cffafe; color: var(--cyan-500); }
.feature.emerald .feature-icon { background: var(--emerald-50); color: var(--emerald-700); }
.feature.rose .feature-icon { background: var(--rose-50); color: var(--rose-700); }
.feature.amber .feature-icon { background: var(--amber-50); color: var(--amber-700); }
.feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--slate-900);
}
.feature p {
  margin: 0;
  color: var(--slate-600);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ============================================================
   BADGES / PILLS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--slate-100);
  color: var(--slate-700);
}
.badge.green   { background: var(--emerald-50);  color: var(--emerald-700); border: 1px solid var(--emerald-300); }
.badge.amber   { background: var(--amber-50);    color: var(--amber-700);   border: 1px solid var(--amber-300); }
.badge.rose    { background: var(--rose-50);     color: var(--rose-700);    border: 1px solid var(--rose-300); }
.badge.indigo  { background: var(--indigo-50);   color: var(--indigo-700);  border: 1px solid var(--indigo-200); }

/* ============================================================
   AUTH (centered cards)
   ============================================================ */
.auth-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
  padding: 2rem 1rem;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.25rem;
  box-shadow: var(--shadow-lg);
}
.auth-card h1 {
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
  text-align: center;
}
.auth-card .auth-sub {
  text-align: center;
  color: var(--slate-500);
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}
.auth-card .btn { width: 100%; padding: 0.75rem 1rem; }
.auth-card .auth-foot {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--slate-500);
}
.auth-shell .auth-card form .field input { padding: 0.7rem 0.9rem; }

/* ============================================================
   GRID HELPERS
   ============================================================ */
.grid { display: grid; gap: 1.25rem; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ============================================================
   STAT CARDS
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin: 0 0 1.5rem;
}
.stat {
  background: var(--card);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-xs);
  position: relative;
}
.stat .stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.stat .stat-value {
  margin-top: 0.35rem;
  font-family: "Cal Sans", "Inter", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.stat .stat-sub {
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: var(--slate-500);
}

/* ============================================================
   THEMES — body.theme-X overrides the CSS variable tokens.
   Designed after popular AI-chat GUI palettes (LobeChat, Chatbox,
   OpenWebUI, Claude, Poe, etc.). Applied via localStorage on every
   page load; switchable from the /themes gallery.
   ============================================================ */

/* 1. Indigo (default) — modern SaaS, indigo→cyan. Endpoints darkened
   one shade so white button text passes AA on BOTH halves of the
   gradient (was indigo-500 4.47 + cyan-500 2.59 → now indigo-600
   5.95 + cyan-700 5.45). */
body.theme-indigo {
  --fg: #0f172a; --muted: #64748b; --border: #e2e8f0; --card: #ffffff;
  --grad-primary: linear-gradient(135deg, #4f46e5 0%, #0e7490 100%);
  --grad-soft:    linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  --shadow-glow:  0 12px 36px -6px rgba(79,70,229,0.35);
}

/* 2. Sunset — warm coral/peach with navy depth (Poe-inspired). Both
   gradient stops darkened (orange-500→700, pink-500→700) so button
   text isn't washed (was 2.80 / 3.53 → now 5.70 / 6.24). Soft glow
   tinted to match the new primary. */
body.theme-sunset {
  --fg: #1f1b3d; --muted: #6b6680; --border: #f4d4c5; --card: #fffaf6;
  --grad-primary: linear-gradient(135deg, #c2410c 0%, #be185d 100%);
  --grad-soft:    linear-gradient(180deg, #fff7ed 0%, #ffe4e6 100%);
  --shadow-glow:  0 12px 36px -6px rgba(194,65,12,0.35);
}

/* 4. Forest — emerald + warm sand (calm, organic). Primary darkened
   from #10b981 → #047857 so white button text reads cleanly (was
   2.54, now 5.86 — AA pass). */
body.theme-forest {
  --fg: #14532d; --muted: #4a7c59; --border: #d6e6d6; --card: #fbfdf8;
  --grad-primary: linear-gradient(135deg, #047857 0%, #065f46 100%);
  --grad-soft:    linear-gradient(180deg, #f7fbf3 0%, #ecfdf5 100%);
  --shadow-glow:  0 12px 36px -6px rgba(4,120,87,0.35);
}

/* 5. Mono — refined grayscale (Claude-inspired) */
body.theme-mono {
  --fg: #18181b; --muted: #71717a; --border: #e4e4e7; --card: #ffffff;
  --grad-primary: linear-gradient(135deg, #18181b 0%, #52525b 100%);
  --grad-soft:    linear-gradient(180deg, #fafafa 0%, #f4f4f5 100%);
  --shadow-glow:  0 10px 24px -8px rgba(24,24,27,0.25);
}

/* 6. Aurora — pink → violet → teal triple gradient (LobeChat). All
   three gradient stops bumped down one notch (pink-500→600,
   violet-500→700, cyan-500→700) so white button text passes AA
   across the whole sweep (was 3.53 / 4.99 / 2.59 → now 4.55 / 6.91
   / 5.45). `--muted` set to deep violet so any heading using it
   passes too (was 3.21, now 5.36). */
body.theme-aurora {
  --fg: #1e1b4b; --muted: #7c3aed; --border: #e9d5ff; --card: #fefcff;
  --grad-primary: linear-gradient(135deg, #db2777 0%, #6d28d9 50%, #0e7490 100%);
  --grad-soft:    linear-gradient(180deg, #fdf4ff 0%, #ede9fe 100%);
  --shadow-glow:  0 12px 36px -6px rgba(109,40,217,0.4);
}

/* 7. Solarized — warm yellow + olive on cream (academic). Gradient
   stops darkened (yellow-700→800, orange-600→800) so white button
   text passes AA on both halves (was 3.21 / 3.85 → now 5.10 / 7.32). */
body.theme-solarized {
  --fg: #586e75; --muted: #93a1a1; --border: #eee8d5; --card: #fdf6e3;
  --grad-primary: linear-gradient(135deg, #a16207 0%, #9a3412 100%);
  --grad-soft:    linear-gradient(180deg, #fdf6e3 0%, #eee8d5 100%);
  --shadow-glow:  0 12px 36px -6px rgba(161,98,7,0.3);
}

/* 8. Crimson — deep red + cream (serious, editorial) */
body.theme-crimson {
  --fg: #450a0a; --muted: #7f1d1d; --border: #fecaca; --card: #fffbfb;
  --grad-primary: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  --grad-soft:    linear-gradient(180deg, #fef2f2 0%, #fee2e2 100%);
  --shadow-glow:  0 12px 36px -6px rgba(220,38,38,0.32);
}

/* 9. Mint — soft teal + offwhite (friendly, fresh). Primary stops
   pushed one more notch (teal-600→700, cyan-600→700) so white button
   text passes AA on both halves (was 3.74 / 3.68 → now 5.16 / 5.45). */
body.theme-mint {
  --fg: #134e4a; --muted: #0f766e; --border: #ccfbf1; --card: #f0fdfa;
  --grad-primary: linear-gradient(135deg, #0f766e 0%, #0e7490 100%);
  --grad-soft:    linear-gradient(180deg, #f0fdfa 0%, #ccfbf1 100%);
  --shadow-glow:  0 12px 36px -6px rgba(15,118,110,0.35);
}

body.theme-midnight .menu-item .menu-icon { background: #334155; color: #cbd5e1; }
body.theme-terminal .menu-item .menu-icon { background: #166534; color: #86efac; }

/* ============================================================
   LANDING / ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-24px) rotate(4deg); }
}
@keyframes floatYAlt {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(20px) rotate(-3deg); }
}
@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 12px 36px -6px rgba(99,102,241,0.35); }
  50%      { box-shadow: 0 22px 56px 0px rgba(99,102,241,0.55); }
}
@keyframes spinSlow {
  to { transform: rotate(360deg); }
}
@keyframes blink {
  0%, 70%, 100% { opacity: 1; }
  80%, 90%      { opacity: 0; }
}
@keyframes drift {
  0%   { transform: translate(0,0) scale(1); }
  33%  { transform: translate(40px,-20px) scale(1.05); }
  66%  { transform: translate(-30px,30px) scale(0.97); }
  100% { transform: translate(0,0) scale(1); }
}

.landing {
  position: relative;
  overflow: hidden;
  padding: 0;
  margin: -2.25rem -1.5rem 0; /* eat the main.container top margin so hero sits right under the header */
}
.landing > section { position: relative; z-index: 2; }

.landing-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.landing-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  animation: drift 20s ease-in-out infinite;
}
.landing-bg .blob.one   { width: 380px; height: 380px; top: -100px; left: -100px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%); animation-delay: 0s; }
.landing-bg .blob.two   { width: 320px; height: 320px; top: 30%; right: -80px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%); animation-delay: 4s; }
.landing-bg .blob.three { width: 280px; height: 280px; bottom: -100px; left: 30%;
  background: radial-gradient(circle, #a78bfa 0%, transparent 70%); animation-delay: 8s; }

.landing-hero {
  text-align: center;
  padding: 2.5rem 2rem 3.5rem;
  position: relative;
  z-index: 2;
}
.landing-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--indigo-200);
  color: var(--indigo-700);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: fadeUp 600ms 100ms ease-out forwards;
  box-shadow: var(--shadow-xs);
}
.landing-hero .eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--emerald-500);
  box-shadow: 0 0 0 4px rgba(16,185,129,0.18);
  animation: blink 2.4s ease-in-out infinite;
}
.landing-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 1.25rem auto 1.25rem;
  max-width: 900px;
  font-weight: 700;
  opacity: 0;
  animation: fadeUp 700ms 250ms ease-out forwards;
}
.landing-hero h1 .grad {
  background: linear-gradient(90deg, #4338ca, #06b6d4, #6366f1, #4338ca);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
.landing-hero p.lead {
  font-size: 1.18rem;
  color: var(--slate-600);
  max-width: 640px;
  margin: 0 auto 2rem;
  opacity: 0;
  animation: fadeUp 700ms 400ms ease-out forwards;
}
.landing-hero .cta-row {
  display: inline-flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 700ms 550ms ease-out forwards;
}
.landing-hero .cta-row .btn { animation: pulseGlow 4s ease-in-out infinite; }
.landing-hero .trust {
  margin-top: 2.5rem;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--slate-500);
  opacity: 0;
  animation: fadeUp 700ms 700ms ease-out forwards;
}
.landing-hero .trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.landing-hero .trust span::before {
  content: "✓";
  display: inline-block;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--emerald-500);
  color: white;
  text-align: center;
  line-height: 18px;
  font-size: 0.7rem;
  font-weight: 700;
}

.landing-preview {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  opacity: 0;
  animation: fadeUp 800ms 850ms ease-out forwards;
}
.landing-preview .window {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  box-shadow: 0 40px 80px -20px rgba(15,23,42,0.25), 0 16px 36px -12px rgba(99,102,241,0.18);
  overflow: hidden;
  position: relative;
  transform: perspective(1200px) rotateX(2deg);
}
.landing-preview .window-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--slate-100);
  border-bottom: 1px solid var(--slate-200);
  padding: 0.7rem 1rem;
}
.landing-preview .window-bar .dot {
  width: 11px; height: 11px; border-radius: 50%;
}
.landing-preview .window-bar .dot.r { background: #fb7185; }
.landing-preview .window-bar .dot.y { background: #fcd34d; }
.landing-preview .window-bar .dot.g { background: #4ade80; }
.landing-preview .window-bar .url {
  margin-left: 1rem;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.78rem;
  color: var(--slate-500);
  font-family: ui-monospace, monospace;
  flex: 1;
  max-width: 380px;
  text-align: center;
}
.landing-preview .window-body {
  padding: 1.5rem;
  background: linear-gradient(180deg, #f8fafc, white);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  min-height: 280px;
}
.landing-preview .side-list {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.landing-preview .side-list .item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--slate-600);
}
.landing-preview .side-list .item.active {
  background: var(--indigo-50);
  color: var(--indigo-700);
  font-weight: 600;
}
.landing-preview .side-list .item .pip {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--slate-300);
}
.landing-preview .side-list .item.active .pip { background: var(--indigo-500); }
.landing-preview .main-area {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.landing-preview .row {
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--slate-100), var(--slate-200), var(--slate-100));
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
}
.landing-preview .row.w70 { width: 70%; }
.landing-preview .row.w50 { width: 50%; }
.landing-preview .row.w85 { width: 85%; }
.landing-preview .row.w35 { width: 35%; }
.landing-preview .pill-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.landing-preview .pill {
  height: 26px;
  border-radius: 999px;
  background: var(--indigo-50);
  flex: 1;
}
.landing-preview .pill.cy  { background: #cffafe; }
.landing-preview .pill.em  { background: var(--emerald-50); }
.landing-preview .pill.rs  { background: var(--rose-50); }
.landing-preview .pill.am  { background: var(--amber-50); }

.landing-features {
  padding: 4rem 1.5rem;
  text-align: center;
  position: relative;
  z-index: 2;
}
.landing-features h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 0.5rem;
}
.landing-features p.sub {
  color: var(--slate-600);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}
.landing-features .feature-grid {
  max-width: 1100px;
  margin: 0 auto;
}
.landing-features .feature {
  text-align: left;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease-out, transform 700ms ease-out, box-shadow var(--transition);
}
.landing-features .feature.reveal {
  opacity: 1;
  transform: translateY(0);
}
.landing-features .feature .feature-icon {
  font-size: 1.6rem;
  width: 48px; height: 48px;
  animation: floatY 6s ease-in-out infinite;
}
.landing-features .feature:nth-child(2n) .feature-icon { animation: floatYAlt 7s ease-in-out infinite; }

/* Stats strip */
.landing-stats {
  margin: 0 1.5rem 3rem;
  padding: 2rem;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.landing-stats .stat-tile {
  position: relative;
}
.landing-stats .stat-num {
  font-family: "Cal Sans", "Inter", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
  line-height: 1;
}
.landing-stats .stat-lbl {
  margin-top: 0.4rem;
  font-size: 0.88rem;
  color: var(--slate-600);
  font-weight: 500;
}

/* How it works */
.landing-how {
  padding: 4rem 1.5rem;
  text-align: center;
  position: relative;
  z-index: 2;
}
.landing-how h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 0.5rem;
}
.landing-how p.sub {
  color: var(--slate-600);
  max-width: 580px;
  margin: 0 auto 2.5rem;
}
.landing-how .steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.landing-how .step {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: left;
  position: relative;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition);
}
.landing-how .step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.landing-how .step-num {
  position: absolute;
  top: -18px;
  left: 1.5rem;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--grad-primary);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Cal Sans", "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: var(--shadow-glow);
}
.landing-how .step h3 {
  margin-top: 1.25rem;
  font-size: 1.15rem;
}
.landing-how .step p {
  color: var(--slate-600);
  font-size: 0.95rem;
  margin: 0;
}

/* Pricing tiers */
.landing-pricing {
  padding: 4rem 1.5rem;
  text-align: center;
  position: relative;
  z-index: 2;
}
.landing-pricing h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 0.5rem;
}
.landing-pricing p.sub {
  color: var(--slate-600);
  max-width: 580px;
  margin: 0 auto 2.5rem;
}
.landing-pricing .tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.landing-pricing .tier {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  text-align: left;
  box-shadow: var(--shadow-xs);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.landing-pricing .tier:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.landing-pricing .tier.featured {
  border: 0;
  background: var(--grad-primary);
  color: white;
  box-shadow: var(--shadow-lg);
  transform: scale(1.04);
}
.landing-pricing .tier.featured h3,
.landing-pricing .tier.featured .price,
.landing-pricing .tier.featured ul li { color: white; }
.landing-pricing .tier.featured ul li::before { background: white; }
.landing-pricing .tier .badge-feat {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  color: var(--indigo-700);
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.landing-pricing .tier h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}
.landing-pricing .tier .price {
  font-family: "Cal Sans", "Inter", sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0.5rem 0;
}
.landing-pricing .tier .price small {
  font-size: 0.85rem;
  font-weight: 500;
  color: inherit;
  opacity: 0.7;
}
.landing-pricing .tier p.tag {
  font-size: 0.92rem;
  color: var(--slate-600);
  margin-bottom: 1rem;
}
.landing-pricing .tier.featured p.tag { color: rgba(255,255,255,0.88); }
.landing-pricing .tier ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
  font-size: 0.92rem;
}
.landing-pricing .tier ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.35rem 0;
  color: var(--slate-700);
}
.landing-pricing .tier ul li::before {
  content: "";
  flex-shrink: 0;
  margin-top: 0.4rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--emerald-500);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='white' d='M6.5 11L3 7.5l1.4-1.4L6.5 8.2l5.1-5.1L13 4.5z'/></svg>");
  background-size: contain;
}
.landing-pricing .tier .btn {
  width: 100%;
  justify-content: center;
}
.landing-pricing .tier.featured .btn {
  background: white;
  color: var(--indigo-700);
  box-shadow: 0 12px 28px -8px rgba(0,0,0,0.25);
}

/* FAQ */
.landing-faq {
  padding: 4rem 1.5rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.landing-faq h2 {
  text-align: center;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 0.5rem;
}
.landing-faq p.sub {
  text-align: center;
  color: var(--slate-600);
  margin-bottom: 2.5rem;
}
.landing-faq .faq-item {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.landing-faq .faq-item[open] {
  border-color: var(--indigo-300);
  box-shadow: var(--shadow-sm);
}
.landing-faq .faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--slate-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color var(--transition);
}
.landing-faq .faq-item summary::-webkit-details-marker { display: none; }
.landing-faq .faq-item summary::after {
  content: "+";
  font-family: "Cal Sans", "Inter", sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  width: 28px; height: 28px;
  background: var(--indigo-50);
  color: var(--indigo-700);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 220ms ease, background var(--transition);
}
.landing-faq .faq-item[open] summary::after {
  content: "−";
  transform: rotate(180deg);
  background: var(--indigo-600);
  color: white;
}
.landing-faq .faq-item summary:hover { color: var(--indigo-700); }
.landing-faq .faq-item .faq-body {
  padding: 0 1.5rem 1.25rem;
  color: var(--slate-600);
  font-size: 0.95rem;
  line-height: 1.6;
  animation: fadeIn 260ms ease-out;
}

.landing-cta {
  margin: 2rem auto 5rem;
  max-width: 800px;
  padding: 3rem 2rem;
  text-align: center;
  background: var(--grad-primary);
  border-radius: var(--radius-lg);
  color: white;
  box-shadow: 0 30px 60px -16px rgba(99,102,241,0.45);
  position: relative;
  overflow: hidden;
}
.landing-cta::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18) 0%, transparent 50%);
  animation: drift 18s ease-in-out infinite;
  pointer-events: none;
}
.landing-cta > * { position: relative; z-index: 1; }
.landing-cta h2 {
  color: white;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  margin-bottom: 0.6rem;
}
.landing-cta p {
  color: rgba(255,255,255,0.92);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 1.75rem;
}
.landing-cta .btn {
  background: white;
  color: var(--indigo-700);
  box-shadow: 0 14px 36px -10px rgba(0,0,0,0.28);
  font-weight: 700;
}
.landing-cta .btn:hover {
  background: white;
  color: var(--indigo-800);
  box-shadow: 0 20px 44px -10px rgba(0,0,0,0.34);
}

.landing-foot {
  text-align: center;
  padding: 1rem 1.5rem 3rem;
  color: var(--slate-500);
  font-size: 0.88rem;
  position: relative;
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .landing-bg .blob,
  .landing-hero h1 .grad,
  .landing-preview .row,
  .landing-features .feature .feature-icon,
  .landing-cta::before,
  .landing-hero .cta-row .btn,
  .landing-hero .eyebrow .dot { animation: none !important; }
  .landing-hero .eyebrow,
  .landing-hero h1,
  .landing-hero p.lead,
  .landing-hero .cta-row,
  .landing-hero .trust,
  .landing-preview { opacity: 1 !important; animation: none !important; }
  .landing-features .feature { opacity: 1; transform: none; }
}

/* ============================================================
   AI-GUI INSPIRED LANDING (v2)
   Patterns from LobeChat, TypingMind, Vercel AI Chatbot, Claude.
   ============================================================ */

/* Mesh-gradient background that sits behind the whole landing */
.lp {
  --lp-pad: clamp(1rem, 3vw, 2rem);
  position: relative;
  margin: -2.25rem -1.5rem 0;
  min-height: 100vh;
  overflow: hidden;
}
.lp-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 20% 10%, rgba(99,102,241,0.18) 0%, transparent 70%),
    radial-gradient(50% 50% at 80% 0%,  rgba(6,182,212,0.16)  0%, transparent 70%),
    radial-gradient(55% 50% at 50% 100%, rgba(244,114,182,0.12) 0%, transparent 70%),
    radial-gradient(40% 40% at 100% 60%, rgba(168,85,247,0.14) 0%, transparent 70%),
    linear-gradient(180deg, #fafbff 0%, #f4f6fb 100%);
}
.lp-mesh::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15,23,42,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 70%);
}

.lp > * { position: relative; z-index: 1; }

/* Hero */
.lp-hero {
  text-align: center;
  padding: 3.5rem var(--lp-pad) 2rem;
  max-width: 980px;
  margin: 0 auto;
}
.lp-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(15,23,42,0.08);
  color: var(--slate-700);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem 0.4rem 0.45rem;
  border-radius: 999px;
  box-shadow: 0 4px 16px -6px rgba(15,23,42,0.08);
}
.lp-pill .pip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--indigo-600);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
}
.lp-pill .arr { color: var(--slate-400); }

.lp-h1 {
  font-family: "Cal Sans", "Inter", sans-serif;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin: 1.25rem auto 1rem;
  color: var(--slate-900);
}
.lp-h1 .gradtext {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 40%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp-sub {
  font-size: 1.15rem;
  color: var(--slate-600);
  max-width: 620px;
  margin: 0 auto 1.75rem;
  line-height: 1.55;
}
.lp-ctas {
  display: inline-flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.lp-ctas .btn { padding: 0.78rem 1.35rem; }

/* "Composer" — chat-bar input look as a CTA, like AI tool landings */
.lp-composer {
  margin: 2.25rem auto 0;
  max-width: 620px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 18px;
  padding: 0.55rem 0.55rem 0.55rem 1.1rem;
  box-shadow: 0 24px 60px -16px rgba(99,102,241,0.18), 0 6px 14px -6px rgba(15,23,42,0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.lp-composer:hover { box-shadow: 0 28px 70px -16px rgba(99,102,241,0.28), 0 8px 18px -6px rgba(15,23,42,0.1); transform: translateY(-1px); }
.lp-composer .ph {
  flex: 1;
  color: var(--slate-500);
  font-size: 0.95rem;
  text-align: left;
  font-family: "Inter", sans-serif;
}
.lp-composer .ph .blink {
  display: inline-block;
  width: 2px; height: 1.05em;
  background: var(--indigo-600);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.lp-composer .send-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--grad-primary);
  color: white;
  box-shadow: var(--shadow-glow);
}

/* Chat showcase — bubble preview */
.lp-chat {
  max-width: 740px;
  margin: 3.5rem auto 1.5rem;
  padding: 0 var(--lp-pad);
}
.lp-chat-window {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 22px;
  box-shadow: 0 40px 80px -24px rgba(15,23,42,0.2), 0 14px 28px -8px rgba(99,102,241,0.12);
  padding: 1rem;
  overflow: hidden;
}
.lp-chat-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(15,23,42,0.06);
  margin-bottom: 0.85rem;
}
.lp-chat-bar .dots { display: flex; gap: 0.3rem; }
.lp-chat-bar .dots span { width: 10px; height: 10px; border-radius: 50%; }
.lp-chat-bar .dots span:nth-child(1) { background: #fb7185; }
.lp-chat-bar .dots span:nth-child(2) { background: #fbbf24; }
.lp-chat-bar .dots span:nth-child(3) { background: #4ade80; }
.lp-chat-bar .tab {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate-700);
  padding: 0.25rem 0.7rem;
  background: var(--slate-100);
  border-radius: 999px;
  margin-left: auto;
}
.lp-chat-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.5rem;
}
.lp-msg {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  opacity: 0;
  transform: translateY(8px);
  animation: msgIn 480ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.lp-msg:nth-child(1) { animation-delay: 180ms; }
.lp-msg:nth-child(2) { animation-delay: 460ms; }
.lp-msg:nth-child(3) { animation-delay: 760ms; }
.lp-msg:nth-child(4) { animation-delay: 1060ms; }
@keyframes msgIn { to { opacity: 1; transform: translateY(0); } }

.lp-msg.me { flex-direction: row-reverse; }
.lp-msg .ava {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--slate-200);
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: var(--slate-600);
}
.lp-msg.me .ava { background: var(--grad-primary); color: white; }
.lp-msg .bubble {
  max-width: 78%;
  padding: 0.65rem 0.95rem;
  border-radius: 16px;
  background: white;
  border: 1px solid rgba(15,23,42,0.06);
  color: var(--slate-700);
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: 0 2px 6px -2px rgba(15,23,42,0.05);
}
.lp-msg.me .bubble {
  background: var(--grad-primary);
  color: white;
  border-color: transparent;
  border-bottom-right-radius: 4px;
}
.lp-msg:not(.me) .bubble { border-bottom-left-radius: 4px; }
.lp-msg .bubble code {
  background: var(--slate-100);
  color: var(--indigo-700);
  font-size: 0.8em;
}
.lp-msg.me .bubble code { background: rgba(255,255,255,0.18); color: white; }

.lp-typing {
  display: inline-flex;
  gap: 4px;
  padding: 0.7rem 0.95rem;
  background: white;
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
}
.lp-typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--slate-400);
  animation: typing 1.2s ease-in-out infinite;
}
.lp-typing span:nth-child(2) { animation-delay: 180ms; }
.lp-typing span:nth-child(3) { animation-delay: 360ms; }
@keyframes typing {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-5px); opacity: 1; }
}

/* Trust strip */
.lp-trust {
  display: flex;
  gap: 1.5rem 2rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--slate-500);
  padding: 2rem var(--lp-pad);
  border-top: 1px solid rgba(15,23,42,0.06);
  border-bottom: 1px solid rgba(15,23,42,0.06);
  margin: 2rem 0;
  background: rgba(255,255,255,0.4);
}
.lp-trust b { color: var(--slate-700); font-weight: 600; }

/* Bento grid */
.lp-bento-wrap {
  max-width: 1180px;
  margin: 3rem auto 0;
  padding: 0 var(--lp-pad);
}
.lp-bento-head {
  text-align: center;
  margin-bottom: 2rem;
}
.lp-bento-head h2 {
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.lp-bento-head p {
  color: var(--slate-600);
  max-width: 580px;
  margin: 0 auto;
}
.lp-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.lp-bento .b {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: 0 4px 12px -2px rgba(15,23,42,0.04);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.lp-bento .b:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -12px rgba(99,102,241,0.18);
  border-color: rgba(99,102,241,0.2);
}
.lp-bento .b h3 {
  font-size: 1.05rem;
  margin: 0;
  color: var(--slate-900);
  letter-spacing: -0.01em;
}
.lp-bento .b p {
  margin: 0;
  color: var(--slate-600);
  font-size: 0.9rem;
  line-height: 1.5;
}
.lp-bento .b .icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--indigo-50);
  color: var(--indigo-600);
  font-size: 1.2rem;
}
.lp-bento .b .icon.cy { background: #cffafe; color: #0891b2; }
.lp-bento .b .icon.em { background: #d1fae5; color: #047857; }
.lp-bento .b .icon.rs { background: #ffe4e6; color: #be123c; }
.lp-bento .b .icon.am { background: #fef3c7; color: #b45309; }
.lp-bento .b .icon.vl { background: #ede9fe; color: #7c3aed; }

.lp-bento .b.span-3 { grid-column: span 3; }
.lp-bento .b.span-2 { grid-column: span 2; }
.lp-bento .b.span-4 { grid-column: span 4; }
.lp-bento .b.span-6 { grid-column: span 6; }
.lp-bento .b.tall   { grid-row: span 2; }

/* "Featured" bento with gradient & code-like preview */
.lp-bento .b.feature {
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(99,102,241,0.25) 0%, transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(6,182,212,0.18) 0%, transparent 60%),
    rgba(255,255,255,0.92);
}
.lp-bento .b.feature h3 { font-size: 1.4rem; letter-spacing: -0.02em; }
.lp-bento .b .code {
  background: #0b1220;
  color: #e2e8f0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-family: ui-monospace, "JetBrains Mono", "SF Mono", monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  border: 1px solid #1e293b;
  margin-top: auto;
  overflow: hidden;
}
.lp-bento .b .code .k { color: #818cf8; }
.lp-bento .b .code .s { color: #6ee7b7; }
.lp-bento .b .code .c { color: #64748b; }
.lp-bento .b .stat {
  font-family: "Cal Sans", "Inter", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
  line-height: 1;
}
.lp-bento .b .stat-sub {
  color: var(--slate-500);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

@media (max-width: 900px) {
  .lp-bento { grid-template-columns: repeat(2, 1fr); }
  .lp-bento .b.span-3,
  .lp-bento .b.span-4,
  .lp-bento .b.span-6 { grid-column: span 2; }
}
@media (max-width: 560px) {
  .lp-bento { grid-template-columns: 1fr; }
  .lp-bento .b.span-2,
  .lp-bento .b.span-3,
  .lp-bento .b.span-4,
  .lp-bento .b.span-6 { grid-column: span 1; }
}

/* "How it works" — step blocks with chat-style arrows */
.lp-how-v2 {
  max-width: 1080px;
  margin: 4rem auto 0;
  padding: 0 var(--lp-pad);
  text-align: center;
}
.lp-how-v2 h2 {
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.lp-how-v2 > p { color: var(--slate-600); margin-bottom: 2rem; }
.lp-steps2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  position: relative;
}
.lp-steps2 .s {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 18px;
  padding: 1.5rem;
  text-align: left;
  position: relative;
}
.lp-steps2 .s .n {
  display: inline-flex;
  width: 30px; height: 30px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--grad-primary);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px -3px rgba(99,102,241,0.4);
  margin-bottom: 0.85rem;
}
.lp-steps2 .s h3 { font-size: 1.05rem; margin: 0 0 0.4rem; }
.lp-steps2 .s p { color: var(--slate-600); font-size: 0.92rem; margin: 0; }
@media (max-width: 800px) { .lp-steps2 { grid-template-columns: 1fr; } }

/* Pricing v2 — dark accent section */
.lp-pricing-v2 {
  margin: 4rem var(--lp-pad) 0;
  padding: 3rem var(--lp-pad);
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(99,102,241,0.18) 0%, transparent 60%),
    #0b1220;
  color: #e2e8f0;
  border-radius: 26px;
  position: relative;
  overflow: hidden;
}
.lp-pricing-v2 h2 { color: white; font-size: clamp(1.85rem, 3vw, 2.6rem); letter-spacing: -0.03em; text-align: center; margin-bottom: 0.5rem; }
.lp-pricing-v2 > p { text-align: center; color: #94a3b8; margin-bottom: 2.25rem; }
.lp-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}
.lp-tiers .t {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 1.75rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
}
.lp-tiers .t.feat {
  background: linear-gradient(180deg, rgba(99,102,241,0.18), rgba(6,182,212,0.1));
  border-color: rgba(99,102,241,0.5);
  box-shadow: 0 20px 60px -12px rgba(99,102,241,0.4);
}
.lp-tiers .t .tname { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #94a3b8; }
.lp-tiers .t.feat .tname { color: #c7d2fe; }
.lp-tiers .t .price { font-family: "Cal Sans", "Inter", sans-serif; font-size: 2.25rem; font-weight: 700; letter-spacing: -0.02em; margin: 0.4rem 0 0.25rem; color: white; }
.lp-tiers .t .price small { font-size: 0.85rem; font-weight: 500; color: #94a3b8; }
.lp-tiers .t .tdesc { color: #cbd5e1; font-size: 0.9rem; margin-bottom: 1.25rem; }
.lp-tiers .t ul { list-style: none; padding: 0; margin: 0 0 1.5rem; font-size: 0.9rem; }
.lp-tiers .t ul li { display: flex; gap: 0.5rem; padding: 0.3rem 0; color: #cbd5e1; }
.lp-tiers .t ul li::before { content: "✓"; color: #4ade80; font-weight: 700; }
.lp-tiers .t .btn { width: 100%; justify-content: center; }
.lp-tiers .t .feat-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--grad-primary);
  color: white; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.2rem 0.75rem; border-radius: 999px;
}
@media (max-width: 800px) { .lp-tiers { grid-template-columns: 1fr; } }

/* Final CTA */
.lp-cta-v2 {
  text-align: center;
  padding: 4rem var(--lp-pad);
  max-width: 760px;
  margin: 0 auto;
}
.lp-cta-v2 h2 { font-size: clamp(1.85rem, 3.5vw, 3rem); letter-spacing: -0.03em; }
.lp-cta-v2 p { color: var(--slate-600); font-size: 1.1rem; margin-bottom: 1.5rem; }

/* Footer */
.lp-foot {
  text-align: center;
  padding: 1rem var(--lp-pad) 4rem;
  color: var(--slate-500);
  font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  .lp-msg, .lp-typing span, .lp-composer .ph .blink { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   MV2 — Linear/Cursor-inspired minimal modern landing.
   Confident typography, monochrome base, single sharp accent,
   generous whitespace. No mesh backgrounds, no tilted windows.
   ============================================================ */

.mv2 {
  --ink: #0a0a0a;
  --ink-2: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-2: #f3f4f6;
  --bg: #fafaf9;
  --paper: #ffffff;
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --accent-soft: #eff6ff;
  --pop: #16a34a;

  margin: -2.25rem -1.5rem 0;
  background: var(--bg);
  color: var(--ink);
  position: relative;
  overflow-x: hidden;
}
.mv2 * { letter-spacing: -0.01em; }

/* Hairline grid */
.mv2::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: 50% 0;
  mask-image: linear-gradient(180deg, black 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, black 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}
.mv2 > * { position: relative; z-index: 1; }

.mv2-inner { max-width: 1140px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 3rem); }

/* Hero */
.mv2-hero {
  padding: 5.5rem 0 4rem;
  border-bottom: 1px solid var(--line);
}
.mv2-anno {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: ui-monospace, "JetBrains Mono", "SF Mono", monospace;
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}
.mv2-anno .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pop); box-shadow: 0 0 0 3px rgba(22,163,74,0.18); }
.mv2-anno .sep { width: 1px; height: 12px; background: var(--line); }
.mv2-anno b { color: var(--ink); font-weight: 600; }

.mv2-h1 {
  font-family: "Cal Sans", "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--ink);
  margin: 1.5rem 0 1.25rem;
  max-width: 920px;
}
.mv2-h1 em {
  font-style: normal;
  color: var(--accent);
  background: linear-gradient(180deg, transparent 65%, rgba(37,99,235,0.16) 65%, rgba(37,99,235,0.16) 95%, transparent 95%);
  padding: 0 0.05em;
}
.mv2-lede {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 560px;
  margin: 0 0 2rem;
}
.mv2-cta-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}
.mv2-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--ink);
  color: var(--paper);
  font: 600 0.95rem/1 "Inter", sans-serif;
  letter-spacing: -0.01em;
  padding: 0.85rem 1.2rem;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.mv2-btn:hover { background: var(--ink-2); color: var(--paper); transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(0,0,0,0.25); }
.mv2-btn .arr { transition: transform var(--transition); }
.mv2-btn:hover .arr { transform: translateX(3px); }
.mv2-btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.mv2-btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--ink); box-shadow: none; }

.mv2-kbd {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: 0.7rem;
  color: var(--muted);
  font: 0.78rem ui-monospace, monospace;
}
.mv2-kbd kbd {
  background: var(--paper);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font: 0.75rem ui-monospace, monospace;
  color: var(--ink-2);
}

/* Trust strip (logos / facts row) */
.mv2-facts {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}
.mv2-facts span { display: inline-flex; gap: 0.45rem; align-items: baseline; }
.mv2-facts b { color: var(--ink); font-weight: 600; font-family: ui-monospace, monospace; }

/* Section common */
.mv2-section { padding: 5rem 0; border-bottom: 1px solid var(--line); }
.mv2-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.mv2-section-eyebrow {
  font: 600 0.75rem/1 ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.mv2-section-title {
  font-family: "Cal Sans", "Inter", sans-serif;
  font-size: clamp(1.85rem, 3.4vw, 2.8rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0.4rem 0 0;
  max-width: 660px;
  color: var(--ink);
}
.mv2-section-lede {
  color: var(--ink-2);
  max-width: 420px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}

/* Feature grid v2: rigid 3-col, hairline borders, no shadow */
.mv2-fgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.mv2-fgrid .f {
  padding: 2rem 1.75rem;
  background: var(--paper);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  transition: background var(--transition);
}
.mv2-fgrid .f:hover { background: var(--bg); }
.mv2-fgrid .f .num {
  font: 600 0.72rem/1 ui-monospace, monospace;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.mv2-fgrid .f h4 {
  margin: 0;
  font-family: "Cal Sans", "Inter", sans-serif;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.mv2-fgrid .f p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.55;
}
@media (max-width: 900px) { .mv2-fgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mv2-fgrid { grid-template-columns: 1fr; } }

/* "Quote / pull" block */
.mv2-quote {
  font-family: "Cal Sans", "Inter", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 5rem 0;
  border-bottom: 1px solid var(--line);
}
.mv2-quote .mark { color: var(--accent); }
.mv2-quote .by {
  display: block;
  margin-top: 1.25rem;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

/* How it works — horizontal numbered cards */
.mv2-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.mv2-how .step { padding: 2.5rem 2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.mv2-how .step .n {
  font-family: "Cal Sans", "Inter", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--line);
  line-height: 1;
  letter-spacing: -0.04em;
  display: block;
  margin-bottom: 0.8rem;
}
.mv2-how .step h4 { margin: 0 0 0.4rem; font-size: 1.1rem; color: var(--ink); }
.mv2-how .step p { margin: 0; color: var(--ink-2); font-size: 0.95rem; line-height: 1.55; }
@media (max-width: 800px) { .mv2-how { grid-template-columns: 1fr; } }

/* Pricing — two cards, generous, no dark panel */
.mv2-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.mv2-pricing .t {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  position: relative;
}
.mv2-pricing .t.feat { border-color: var(--ink); box-shadow: 0 14px 32px -10px rgba(0,0,0,0.18); }
.mv2-pricing .t .name { font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-bottom: 0.35rem; font-family: ui-monospace, monospace; text-transform: uppercase; letter-spacing: 0.08em; }
.mv2-pricing .t .price { font-family: "Cal Sans", "Inter", sans-serif; font-size: 2.4rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.mv2-pricing .t .price small { font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.mv2-pricing .t .lead { color: var(--ink-2); font-size: 0.9rem; margin: 0.5rem 0 1.25rem; line-height: 1.5; }
.mv2-pricing .t ul { list-style: none; padding: 0; margin: 0 0 1.5rem; font-size: 0.92rem; }
.mv2-pricing .t ul li { display: flex; gap: 0.55rem; padding: 0.32rem 0; color: var(--ink-2); }
.mv2-pricing .t ul li::before { content: ""; flex-shrink: 0; width: 16px; height: 16px; background: var(--ink); border-radius: 50%; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M6.5 11L3 7.5l1.4-1.4L6.5 8.2l5.1-5.1L13 4.5z'/></svg>") center/12px no-repeat; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M6.5 11L3 7.5l1.4-1.4L6.5 8.2l5.1-5.1L13 4.5z'/></svg>") center/12px no-repeat; margin-top: 0.18rem; }
.mv2-pricing .t .pbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  width: 100%; padding: 0.75rem 1rem; border-radius: 9px;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
  font: 600 0.92rem/1 "Inter", sans-serif; text-decoration: none;
  transition: background var(--transition);
}
.mv2-pricing .t .pbtn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.mv2-pricing .t .pbtn:hover { background: var(--ink-2); color: var(--paper); }
.mv2-pricing .t .pbtn.ghost:hover { background: var(--paper); border-color: var(--ink); }
.mv2-pricing .t .tag { position: absolute; top: -10px; left: 1.5rem; background: var(--accent); color: white; font: 600 0.65rem/1 "Inter", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3rem 0.65rem; border-radius: 6px; }
@media (max-width: 800px) { .mv2-pricing { grid-template-columns: 1fr; } }

/* CTA */
.mv2-final {
  text-align: center;
  padding: 6rem 0 7rem;
  border-bottom: 1px solid var(--line);
}
.mv2-final .mv2-h1 { margin: 0 auto 1.25rem; font-size: clamp(2.2rem, 4.5vw, 4rem); }
.mv2-final .lede { color: var(--ink-2); font-size: 1.1rem; margin: 0 auto 2rem; max-width: 540px; }
.mv2-final .mv2-cta-row { justify-content: center; }

.mv2-foot {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 1.5rem 0 3rem;
}

/* Compact "code card" used in feature grid for the privacy block */
.mv2-fgrid .f.code-card { grid-column: span 1; background: var(--ink); color: #e5e7eb; }
.mv2-fgrid .f.code-card .num { color: rgba(255,255,255,0.45); }
.mv2-fgrid .f.code-card h4 { color: white; }
.mv2-fgrid .f.code-card p { color: rgba(255,255,255,0.7); }
.mv2-fgrid .f.code-card pre {
  margin: 0.5rem 0 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0.85rem;
  border-radius: 8px;
  font: 0.78rem/1.55 ui-monospace, monospace;
  color: #cbd5e1;
  overflow: auto;
}
.mv2-fgrid .f.code-card pre .k { color: #93c5fd; }
.mv2-fgrid .f.code-card pre .s { color: #86efac; }
.mv2-fgrid .f.code-card pre .c { color: #6b7280; }
.mv2-fgrid .f.code-card:hover { background: #111827; }

/* ============================================================
   MV3 — Warm editorial. Anthropic Claude / Notion / Fraunces vibe.
   Cream parchment, contemporary serif headlines, terracotta accent,
   generous whitespace. Magazine-style layout.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700;9..144,800&display=swap");

.mv3 {
  --paper: #faf8f3;
  --ivory: #ffffff;
  --ink: #1a1814;
  --ink-2: #3d362c;
  --ink-3: #5b5142;
  --muted: #847868;
  --line: #e8e1d4;
  --line-2: #efeadd;
  --tan:  #d6c8b0;
  --rust: #b54a18;
  --rust-2: #8c3712;
  --soft-amber: #fef3c7;
  --moss: #4b6c45;
  --warm-shadow: 0 14px 36px -10px rgba(60, 36, 12, 0.18);

  margin: -2.25rem -1.5rem 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  position: relative;
  overflow-x: hidden;
}
.mv3 * { letter-spacing: -0.01em; }

/* Paper grain — very subtle */
.mv3::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(60, 36, 12, 0.025) 1px, transparent 1px);
  background-size: 4px 4px;
  z-index: 0;
}
.mv3 > * { position: relative; z-index: 1; }

.mv3-inner { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }

/* "Newspaper" topline */
.mv3-topline {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "Fraunces", Georgia, serif;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--muted);
}
.mv3-topline .vol { letter-spacing: 0.1em; text-transform: uppercase; font-style: normal; font-weight: 600; font-family: "Inter", sans-serif; font-size: 0.7rem; }
.mv3-topline .date { font-family: "Fraunces", Georgia, serif; font-weight: 500; }

/* Hero */
.mv3-hero { padding: 4rem 0 5rem; }
.mv3-hero .mv3-h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin: 0 0 1.5rem;
  font-weight: 500;
  font-variation-settings: "opsz" 96;
  color: var(--ink);
  max-width: 14ch;
}
.mv3-hero .mv3-h1 em {
  font-style: italic;
  color: var(--rust);
  font-weight: 400;
}
.mv3-hero .lead {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 540px;
  margin: 0 0 2.5rem;
  font-variation-settings: "opsz" 14;
}
.mv3-hero .mv3-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.mv3-hero .mv3-meta .by { color: var(--ink); font-weight: 600; }
.mv3-hero .mv3-meta .sep { color: var(--tan); }

.mv3-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.mv3-btn {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  transition: transform var(--transition), background var(--transition);
}
.mv3-btn:hover { transform: translateY(-1px); background: var(--ink-2); color: var(--paper); text-decoration: none; }
.mv3-btn.serif { font-family: "Fraunces", Georgia, serif; font-weight: 500; font-style: italic; font-size: 1.1rem; padding: 0.95rem 1.75rem; }
.mv3-btn-link {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 500;
  color: var(--rust);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--rust);
}
.mv3-btn-link:hover { color: var(--rust-2); text-decoration-color: var(--rust-2); }

/* Hero illustration / pullquote on right side */
.mv3-hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: center;
}
.mv3-aside {
  border-left: 2px solid var(--rust);
  padding: 0.5rem 0 0.5rem 1.5rem;
  font-family: "Fraunces", Georgia, serif;
}
.mv3-aside .ttl {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--rust);
  font-weight: 600;
  font-family: "Inter", sans-serif;
  font-style: normal;
  margin-bottom: 0.5rem;
}
.mv3-aside .quote {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
  font-style: italic;
}
.mv3-aside .quote::before { content: "“"; color: var(--rust); margin-right: 0.05em; }
.mv3-aside .quote::after { content: "”"; color: var(--rust); margin-left: 0.05em; }
.mv3-aside .src {
  margin-top: 1rem;
  font-style: normal;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
}
@media (max-width: 900px) {
  .mv3-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* Section frame */
.mv3-section { padding: 5rem 0; border-top: 1px solid var(--line); }
.mv3-section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 3rem;
  align-items: start;
}
.mv3-section-head .label {
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--rust);
  font-weight: 600;
  padding-top: 0.5rem;
  border-top: 2px solid var(--rust);
  display: inline-block;
}
.mv3-section-head h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 400;
  margin: 0 0 0.7rem;
  font-variation-settings: "opsz" 72;
}
.mv3-section-head h2 em { font-style: italic; color: var(--rust); font-weight: 400; }
.mv3-section-head .sub {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--ink-2);
  font-weight: 400;
  max-width: 520px;
  font-variation-settings: "opsz" 14;
}
@media (max-width: 800px) {
  .mv3-section-head { grid-template-columns: 1fr; gap: 1rem; }
}

/* Magazine-style feature blocks */
.mv3-features { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.25rem 2rem; }
.mv3-features .f {
  background: var(--ivory);
  border-radius: 16px;
  padding: 1.75rem 1.85rem;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.mv3-features .f:hover { transform: translateY(-3px); box-shadow: var(--warm-shadow); }
.mv3-features .f .num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--rust);
  font-weight: 500;
  font-variation-settings: "opsz" 9;
}
.mv3-features .f h4 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  font-variation-settings: "opsz" 36;
}
.mv3-features .f p {
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--ink-3);
  margin: 0;
}
.mv3-features .f.wide { grid-column: span 8; }
.mv3-features .f.tall { grid-column: span 4; grid-row: span 2; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.mv3-features .f.tall h4 { color: var(--ivory); }
.mv3-features .f.tall p { color: rgba(250,248,243,0.8); }
.mv3-features .f.tall .num { color: var(--soft-amber); }
.mv3-features .f.tall pre {
  margin: 0.5rem 0 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 1rem;
  border-radius: 10px;
  font: 0.85rem/1.6 ui-monospace, "JetBrains Mono", monospace;
  color: #e8d5b7;
  overflow: auto;
}
.mv3-features .f.tall pre .k { color: #f4a261; }
.mv3-features .f.tall pre .s { color: #a3b18a; }
.mv3-features .f.tall pre .c { color: #847868; }
.mv3-features .f.med { grid-column: span 4; }
.mv3-features .f.med-6 { grid-column: span 6; }
.mv3-features .f.full { grid-column: span 12; }
@media (max-width: 900px) {
  .mv3-features { grid-template-columns: 1fr; }
  .mv3-features .f.wide, .mv3-features .f.tall, .mv3-features .f.med, .mv3-features .f.med-6, .mv3-features .f.full { grid-column: span 1; grid-row: auto; }
}

/* Drop cap intro */
.mv3-intro {
  padding: 5rem 0;
  border-top: 1px solid var(--line);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--ink);
  max-width: 720px;
  margin: 0 auto;
  font-weight: 400;
  font-variation-settings: "opsz" 24;
}
.mv3-intro::first-letter {
  font-size: 5.5em;
  float: left;
  line-height: 0.85;
  margin: 0.1em 0.15em -0.1em 0;
  font-weight: 600;
  color: var(--rust);
}
.mv3-intro em { font-style: italic; color: var(--rust); }

/* How — newspaper column flow */
.mv3-how {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.mv3-how .step h4 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-variation-settings: "opsz" 36;
}
.mv3-how .step h4 .n {
  font-style: italic;
  color: var(--rust);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border: 1px solid var(--rust);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
.mv3-how .step p { font-size: 0.98rem; line-height: 1.65; color: var(--ink-2); margin: 0; }
.mv3-how .step .rule { width: 40px; height: 2px; background: var(--rust); margin: 1rem 0; }
@media (max-width: 800px) { .mv3-how { grid-template-columns: 1fr; gap: 2rem; } }

/* Pricing — index card stack */
.mv3-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.mv3-pricing .t {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2.25rem 2rem;
  position: relative;
}
.mv3-pricing .t.feat {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  box-shadow: var(--warm-shadow);
}
.mv3-pricing .t.feat h4, .mv3-pricing .t.feat .price { color: var(--ivory); }
.mv3-pricing .t.feat .name { color: var(--soft-amber); }
.mv3-pricing .t.feat p, .mv3-pricing .t.feat ul li { color: rgba(250,248,243,0.85); }
.mv3-pricing .t.feat ul li::before { background: var(--soft-amber); }
.mv3-pricing .t .name {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.5rem;
}
.mv3-pricing .t h4 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 500;
  margin: 0 0 1rem;
  font-style: italic;
  color: var(--ink);
  font-variation-settings: "opsz" 36;
}
.mv3-pricing .t .price {
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.6rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  font-variation-settings: "opsz" 72;
}
.mv3-pricing .t .price small {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
  margin-top: 0.3rem;
}
.mv3-pricing .t .lead {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 1rem 0 1.5rem;
  font-variation-settings: "opsz" 14;
}
.mv3-pricing .t.feat .lead { color: rgba(250,248,243,0.8); }
.mv3-pricing .t ul { list-style: none; padding: 0; margin: 0 0 1.75rem; }
.mv3-pricing .t ul li {
  font-size: 0.92rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-2);
  display: flex;
  gap: 0.55rem;
}
.mv3-pricing .t.feat ul li { border-bottom-color: rgba(255,255,255,0.1); }
.mv3-pricing .t ul li::before {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--rust);
  border-radius: 50%;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M6.5 11L3 7.5l1.4-1.4L6.5 8.2l5.1-5.1L13 4.5z'/></svg>") center/12px no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M6.5 11L3 7.5l1.4-1.4L6.5 8.2l5.1-5.1L13 4.5z'/></svg>") center/12px no-repeat;
  flex-shrink: 0;
  margin-top: 0.18rem;
}
.mv3-pricing .t .pbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%;
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  font: 600 0.95rem/1 "Inter", sans-serif;
  text-decoration: none;
  transition: background var(--transition);
}
.mv3-pricing .t .pbtn:hover { background: var(--ink-2); color: var(--paper); }
.mv3-pricing .t .pbtn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.mv3-pricing .t .pbtn.ghost:hover { background: var(--ink); color: var(--paper); }
.mv3-pricing .t.feat .pbtn {
  background: var(--soft-amber);
  color: var(--ink);
  border-color: var(--soft-amber);
}
.mv3-pricing .t.feat .pbtn:hover { background: #fde68a; color: var(--ink); }
.mv3-pricing .t .ribbon {
  position: absolute;
  top: -10px;
  left: 1.75rem;
  background: var(--rust);
  color: var(--ivory);
  font: 600 0.65rem/1 "Inter", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
}
@media (max-width: 800px) { .mv3-pricing { grid-template-columns: 1fr; } }

/* CTA — warm centered closing */
.mv3-final {
  padding: 7rem 0;
  text-align: center;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--paper) 0%, #f6f1e6 100%);
}
.mv3-final .ornament {
  font-family: "Fraunces", Georgia, serif;
  font-size: 2rem;
  color: var(--rust);
  letter-spacing: 0.4em;
  margin-bottom: 0.8rem;
  opacity: 0.7;
}
.mv3-final h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 1.25rem;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
  font-variation-settings: "opsz" 96;
}
.mv3-final h2 em { font-style: italic; color: var(--rust); }
.mv3-final .lede {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 500px;
  margin: 0 auto 2rem;
  font-variation-settings: "opsz" 14;
}

.mv3-foot {
  padding: 2rem 0 4rem;
  text-align: center;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--muted);
}
.mv3-foot a { color: var(--rust); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ============================================================
   MV4 — Dark / Vercel / GitHub Copilot after-hours.
   Near-black canvas, vivid green accent, sharp typography,
   subtle dotted grid, glow effects, terminal-style code blocks.
   ============================================================ */

.mv4 {
  --ink: #fafafa;
  --ink-2: #d4d4d8;
  --muted: #71717a;
  --paper: #0a0a0b;
  --paper-2: #111113;
  --paper-3: #18181b;
  --line: #27272a;
  --line-2: #3f3f46;
  --hot: #00d4a0;
  --hot-2: #00ffaa;
  --warn: #ff5a5a;
  --orange: #ff7a45;

  margin: -2.25rem -1.5rem 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  position: relative;
  overflow-x: hidden;
}
.mv4 * { letter-spacing: -0.01em; }

/* Dotted grid */
.mv4::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 50% 0;
  mask-image: linear-gradient(180deg, black 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(180deg, black 0%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}
/* Soft top glow */
.mv4::after {
  content: "";
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse at center, rgba(0, 212, 160, 0.18) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.mv4 > * { position: relative; z-index: 1; }

.mv4-inner { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }

/* HERO */
.mv4-hero { padding: 5rem 0 4rem; text-align: center; }
.mv4-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,212,160,0.08);
  border: 1px solid rgba(0,212,160,0.3);
  color: var(--hot);
  font: 500 0.78rem/1 ui-monospace, "JetBrains Mono", monospace;
  padding: 0.4rem 0.9rem 0.4rem 0.4rem;
  border-radius: 999px;
}
.mv4-badge .tag {
  background: var(--hot);
  color: var(--paper);
  font-weight: 700;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}
.mv4-badge .sep { color: rgba(255,255,255,0.2); }
.mv4-badge code { background: transparent; border: 0; color: var(--ink); padding: 0; font-family: inherit; font-size: inherit; }

.mv4-h1 {
  font-family: "Cal Sans", "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  color: var(--ink);
  margin: 1.5rem auto;
  max-width: 18ch;
}
.mv4-h1 .glow {
  background: linear-gradient(180deg, var(--hot) 0%, var(--hot-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(0,212,160,0.4);
}
.mv4-h1 .strike {
  position: relative;
  display: inline-block;
}
.mv4-h1 .strike::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%;
  top: 52%;
  height: 4px;
  background: var(--warn);
  border-radius: 2px;
  transform: rotate(-2deg);
}

.mv4-lede {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 580px;
  margin: 0 auto 2.25rem;
}
.mv4-lede em { color: var(--hot); font-style: normal; font-weight: 500; }

.mv4-cta-row { display: inline-flex; gap: 0.7rem; align-items: center; flex-wrap: wrap; justify-content: center; }
.mv4-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--hot);
  color: var(--paper);
  font: 700 0.95rem/1 "Inter", sans-serif;
  letter-spacing: -0.01em;
  padding: 0.95rem 1.4rem;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid var(--hot);
  box-shadow: 0 0 0 0 rgba(0,212,160,0.4), 0 10px 30px -8px rgba(0,212,160,0.5);
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition);
}
.mv4-btn:hover {
  transform: translateY(-1px);
  color: var(--paper);
  background: var(--hot-2);
  box-shadow: 0 0 0 4px rgba(0,212,160,0.18), 0 16px 40px -8px rgba(0,212,160,0.65);
}
.mv4-btn .arr { transition: transform var(--transition); }
.mv4-btn:hover .arr { transform: translateX(3px); }
.mv4-btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
  box-shadow: none;
}
.mv4-btn-ghost:hover { background: var(--paper-2); color: var(--ink); box-shadow: none; border-color: var(--ink); }

/* Terminal-style hero block */
.mv4-term {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  max-width: 720px;
  margin: 4rem auto 0;
  box-shadow:
    0 40px 80px -20px rgba(0,0,0,0.6),
    0 0 0 1px rgba(0,212,160,0.08),
    inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
  text-align: left;
}
.mv4-term-bar {
  display: flex; align-items: center;
  padding: 0.7rem 0.95rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
}
.mv4-term-bar .dots { display: flex; gap: 0.3rem; }
.mv4-term-bar .dots span { width: 11px; height: 11px; border-radius: 50%; opacity: 0.5; }
.mv4-term-bar .dots span:nth-child(1) { background: var(--warn); }
.mv4-term-bar .dots span:nth-child(2) { background: var(--orange); }
.mv4-term-bar .dots span:nth-child(3) { background: var(--hot); }
.mv4-term-bar .title {
  margin-left: 0.6rem;
  font: 500 0.78rem/1 ui-monospace, monospace;
  color: var(--muted);
}
.mv4-term-body {
  padding: 1.25rem 1.4rem;
  font: 0.88rem/1.75 ui-monospace, "JetBrains Mono", monospace;
  color: var(--ink-2);
}
.mv4-term-body .prompt { color: var(--hot); -webkit-user-select: none; user-select: none; }
.mv4-term-body .cmt { color: var(--muted); }
.mv4-term-body .str { color: #ff7a45; }
.mv4-term-body .num { color: #ffd166; }
.mv4-term-body .key { color: #00d4ff; }
.mv4-term-body .ok { color: var(--hot); font-weight: 600; }
.mv4-term-body .cur {
  display: inline-block;
  width: 8px; height: 1.05em;
  background: var(--hot);
  vertical-align: -0.18em;
  animation: blink 1s steps(1) infinite;
}

/* Sections */
.mv4-section { padding: 5rem 0; border-top: 1px solid var(--line); }
.mv4-section-head { text-align: center; margin-bottom: 3rem; }
.mv4-section-head .tag {
  display: inline-block;
  font: 600 0.72rem/1 ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--hot);
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(0,212,160,0.25);
  border-radius: 999px;
  margin-bottom: 1.25rem;
  background: rgba(0,212,160,0.05);
}
.mv4-section-head h2 {
  font-family: "Cal Sans", "Inter", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 auto 0.85rem;
  max-width: 18ch;
  color: var(--ink);
}
.mv4-section-head h2 em { font-style: normal; color: var(--hot); }
.mv4-section-head p {
  color: var(--ink-2);
  max-width: 580px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.55;
}

/* Feature grid — dark cards with glow on hover */
.mv4-fgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.mv4-fgrid .f {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  position: relative;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.mv4-fgrid .f:hover {
  border-color: rgba(0,212,160,0.4);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px -10px rgba(0,212,160,0.25), 0 0 0 1px rgba(0,212,160,0.1);
}
.mv4-fgrid .f .ic {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(0,212,160,0.1);
  color: var(--hot);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  border: 1px solid rgba(0,212,160,0.2);
  font-family: ui-monospace, monospace;
  font-weight: 700;
}
.mv4-fgrid .f h4 {
  font-family: "Cal Sans", "Inter", sans-serif;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.mv4-fgrid .f p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.55;
}
.mv4-fgrid .f code {
  background: rgba(0,212,160,0.08);
  color: var(--hot);
  border: 1px solid rgba(0,212,160,0.2);
  padding: 0.05em 0.35em;
  border-radius: 4px;
  font-size: 0.85em;
}
@media (max-width: 900px) { .mv4-fgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mv4-fgrid { grid-template-columns: 1fr; } }

/* Stats row */
.mv4-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.mv4-stats .s {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--line);
  text-align: center;
}
.mv4-stats .s:last-child { border-right: 0; }
.mv4-stats .s .n {
  font-family: "Cal Sans", "Inter", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(180deg, var(--ink) 0%, var(--muted) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.035em;
  line-height: 1;
}
.mv4-stats .s .n.hot {
  background: linear-gradient(180deg, var(--hot) 0%, var(--hot-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mv4-stats .s .lbl {
  margin-top: 0.45rem;
  color: var(--muted);
  font: 500 0.78rem/1 ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
@media (max-width: 800px) {
  .mv4-stats { grid-template-columns: repeat(2, 1fr); }
  .mv4-stats .s:nth-child(2) { border-right: 0; }
  .mv4-stats .s:nth-child(1), .mv4-stats .s:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* Steps — numbered with hot accents */
.mv4-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.mv4-steps .st {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  position: relative;
}
.mv4-steps .st .n {
  font: 700 0.72rem/1 ui-monospace, monospace;
  color: var(--hot);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.mv4-steps .st .n::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 8px var(--hot); }
.mv4-steps .st h4 { font-family: "Cal Sans", "Inter", sans-serif; font-size: 1.2rem; margin: 0 0 0.45rem; color: var(--ink); letter-spacing: -0.02em; }
.mv4-steps .st p { margin: 0; color: var(--ink-2); font-size: 0.95rem; line-height: 1.55; }
@media (max-width: 800px) { .mv4-steps { grid-template-columns: 1fr; } }

/* Pricing */
.mv4-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.mv4-pricing .t {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  position: relative;
}
.mv4-pricing .t.feat {
  border-color: var(--hot);
  background: linear-gradient(180deg, rgba(0,212,160,0.08) 0%, var(--paper-2) 100%);
  box-shadow: 0 0 0 1px rgba(0,212,160,0.3), 0 20px 60px -16px rgba(0,212,160,0.35);
}
.mv4-pricing .t .name {
  font: 600 0.78rem/1 ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.7rem;
}
.mv4-pricing .t.feat .name { color: var(--hot); }
.mv4-pricing .t .price {
  font-family: "Cal Sans", "Inter", sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.mv4-pricing .t .price small {
  display: block;
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.4rem;
  letter-spacing: 0;
}
.mv4-pricing .t .lead { font-size: 0.92rem; color: var(--ink-2); margin: 1rem 0 1.25rem; line-height: 1.55; }
.mv4-pricing .t ul { list-style: none; padding: 0; margin: 0 0 1.5rem; font-size: 0.9rem; }
.mv4-pricing .t ul li { color: var(--ink-2); padding: 0.4rem 0; display: flex; gap: 0.55rem; align-items: flex-start; border-bottom: 1px solid var(--line); }
.mv4-pricing .t ul li:last-child { border-bottom: 0; }
.mv4-pricing .t ul li::before {
  content: ""; flex-shrink: 0;
  width: 16px; height: 16px;
  background: var(--hot);
  border-radius: 50%;
  margin-top: 0.18rem;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M6.5 11L3 7.5l1.4-1.4L6.5 8.2l5.1-5.1L13 4.5z'/></svg>") center/12px no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M6.5 11L3 7.5l1.4-1.4L6.5 8.2l5.1-5.1L13 4.5z'/></svg>") center/12px no-repeat;
}
.mv4-pricing .t .pbtn {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: var(--paper-3);
  color: var(--ink);
  border: 1px solid var(--line-2);
  font: 600 0.92rem/1 "Inter", sans-serif;
  text-decoration: none;
  transition: all var(--transition);
}
.mv4-pricing .t .pbtn:hover { background: var(--line); color: var(--ink); }
.mv4-pricing .t.feat .pbtn {
  background: var(--hot);
  color: var(--paper);
  border-color: var(--hot);
  box-shadow: 0 8px 24px -8px rgba(0,212,160,0.5);
}
.mv4-pricing .t.feat .pbtn:hover { background: var(--hot-2); color: var(--paper); }
.mv4-pricing .t .ribbon {
  position: absolute;
  top: -10px; left: 1.5rem;
  background: var(--hot);
  color: var(--paper);
  font: 700 0.65rem/1 "Inter", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
}
@media (max-width: 800px) { .mv4-pricing { grid-template-columns: 1fr; } }

/* Final CTA */
.mv4-final {
  text-align: center;
  padding: 6rem 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.mv4-final::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 200px;
  background: radial-gradient(ellipse at center, rgba(0,212,160,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.mv4-final > * { position: relative; }
.mv4-foot {
  padding: 1.5rem 0 3rem;
  text-align: center;
  font: 500 0.85rem/1.5 ui-monospace, monospace;
  color: var(--muted);
}
.mv4-foot a { color: var(--hot); text-decoration: none; }
.mv4-foot a:hover { text-decoration: underline; }

/* ============================================================
   MV5 — Warm friendly modern. Notion 2024 / Framer / Linear new.
   Soft peach gradient, rounded everything, outcome-led, big chunky
   typography. Built for the facilitator, not the engineer.
   ============================================================ */

.mv5 {
  --ink: #1a1a1f;
  --ink-2: #44444c;
  --muted: #6b6b75;
  --paper: #ffffff;
  --canvas: #fff8f4;
  --soft: #fef0e7;
  --line: #f1e6dd;
  --accent: #ff5b3a;
  --accent-2: #e83e1a;
  --plum: #6f3bdb;
  --plum-soft: #ede4ff;
  --mint: #16a249;
  --mint-soft: #def7e0;
  --peach: #ffd7c3;
  --rose: #ffe4ec;
  --amber: #ffeaa7;

  margin: -2.25rem -1.5rem 0;
  background:
    radial-gradient(60% 50% at 50% 0%, var(--peach) 0%, transparent 65%),
    radial-gradient(50% 40% at 90% 20%, var(--rose) 0%, transparent 55%),
    radial-gradient(40% 40% at 10% 60%, var(--plum-soft) 0%, transparent 55%),
    var(--canvas);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  position: relative;
  overflow-x: hidden;
}
.mv5 * { letter-spacing: -0.01em; }

.mv5-inner { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }

/* HERO */
.mv5-hero { padding: 4.5rem 0 4rem; text-align: center; }
.mv5-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--ink-2);
  box-shadow: 0 4px 12px -2px rgba(255,91,58,0.1);
}
.mv5-badge .em {
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.mv5-h1 {
  font-family: "Cal Sans", "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--ink);
  margin: 1.5rem auto 1.25rem;
  max-width: 16ch;
}
.mv5-h1 .wave {
  position: relative;
  display: inline-block;
  color: var(--accent);
}
.mv5-h1 .wave::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.1em;
  height: 0.18em;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 12' preserveAspectRatio='none'><path d='M0,6 Q10,0 20,6 T40,6 T60,6 T80,6' fill='none' stroke='%23ff5b3a' stroke-width='3' stroke-linecap='round'/></svg>") repeat-x center / 80px 12px;
}
.mv5-h1 .hi {
  background: linear-gradient(180deg, transparent 65%, var(--amber) 65%, var(--amber) 92%, transparent 92%);
  padding: 0 0.12em;
}

.mv5-lede {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.mv5-cta-row { display: inline-flex; gap: 0.7rem; align-items: center; flex-wrap: wrap; justify-content: center; }
.mv5-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--ink);
  color: var(--paper);
  font: 600 1rem/1 "Inter", sans-serif;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  border: 0;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 8px 20px -4px rgba(26,26,31,0.25);
}
.mv5-btn:hover { transform: translateY(-2px); color: var(--paper); box-shadow: 0 14px 28px -6px rgba(26,26,31,0.35); }
.mv5-btn .arr { transition: transform var(--transition); }
.mv5-btn:hover .arr { transform: translateX(3px); }
.mv5-btn-ghost {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 2px 6px -2px rgba(0,0,0,0.04);
}
.mv5-btn-ghost:hover { background: var(--soft); color: var(--ink); border-color: var(--peach); }

.mv5-trust {
  display: inline-flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 2rem;
}
.mv5-trust span { display: inline-flex; align-items: center; gap: 0.4rem; }
.mv5-trust span::before {
  content: "✓";
  display: inline-flex;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--mint);
  color: white;
  align-items: center; justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
}

/* Outcome cards — the "what you get" */
.mv5-outcome {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 4rem auto 0;
  max-width: 980px;
}
.mv5-out {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.5rem 1.5rem 1.6rem;
  text-align: left;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.mv5-out:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -16px rgba(26,26,31,0.18); }
.mv5-out .em {
  display: inline-flex;
  width: 56px; height: 56px;
  border-radius: 18px;
  background: var(--soft);
  align-items: center; justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 0.85rem;
}
.mv5-out.plum .em  { background: var(--plum-soft); }
.mv5-out.mint .em  { background: var(--mint-soft); }
.mv5-out.amber .em { background: var(--amber); }
.mv5-out h4 { font-family: "Cal Sans", "Inter", sans-serif; font-size: 1.2rem; margin: 0 0 0.35rem; letter-spacing: -0.02em; color: var(--ink); }
.mv5-out p { font-size: 0.95rem; line-height: 1.55; color: var(--ink-2); margin: 0; }
@media (max-width: 800px) { .mv5-outcome { grid-template-columns: 1fr; } }

/* ============================================================
   Hero journey — 3 numbered steps that visualize the workflow
   from guided prompts → listening → polished plan. Sits between
   the lede paragraph and the CTAs.
   ============================================================ */
.mv5-journey {
  list-style: none;
  margin: 2.5rem auto 2.5rem;
  padding: 0;
  max-width: 1040px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  position: relative;
}
.mv5-step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.6rem 1.4rem 1.4rem;
  text-align: left;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}
.mv5-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 38px -18px rgba(26,26,31,0.18);
}
/* Soft tinted blob behind the icon for depth */
.mv5-step::after {
  content: "";
  position: absolute;
  top: -30px; right: -30px;
  width: 130px; height: 130px;
  border-radius: 50%;
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}
.mv5-step--prompt::after { background: var(--accent); }
.mv5-step--listen::after { background: var(--plum-soft); }
.mv5-step--polish::after { background: var(--mint); }

.mv5-step-icon {
  position: relative;
  z-index: 1;
  width: 58px; height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center; justify-content: center;
  margin-bottom: 1rem;
  color: white;
  box-shadow: 0 8px 18px -6px rgba(0,0,0,0.18);
}
.mv5-step-icon svg { width: 28px; height: 28px; }
.mv5-step--prompt .mv5-step-icon { background: linear-gradient(135deg, #635bff, #8b85ff); }
.mv5-step--listen .mv5-step-icon { background: linear-gradient(135deg, #a358df, #d4a5f0); }
.mv5-step--polish .mv5-step-icon { background: linear-gradient(135deg, #00c875, #4be0a3); }

.mv5-step-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--soft);
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
  position: relative; z-index: 1;
}
.mv5-step h4 {
  font-family: "Cal Sans", "Inter", sans-serif;
  font-size: 1.18rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  position: relative; z-index: 1;
}
.mv5-step p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  position: relative; z-index: 1;
}

/* Connector arrows between steps on desktop. Hidden on the last
   card and on mobile (where steps stack). */
.mv5-step + .mv5-step::before {
  content: "→";
  position: absolute;
  left: -1.4rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--ink-2);
  opacity: 0.4;
  font-weight: 700;
}
@media (max-width: 800px) {
  .mv5-journey { grid-template-columns: 1fr; gap: 0.9rem; }
  .mv5-step + .mv5-step::before {
    content: "↓";
    left: 50%;
    top: -1.15rem;
    transform: translateX(-50%);
  }
}

/* Sections */
.mv5-section { padding: 6rem 0 2rem; }
.mv5-section-head {
  text-align: center;
  margin-bottom: 3rem;
}
.mv5-section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--soft);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.mv5-section-head h2 {
  font-family: "Cal Sans", "Inter", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 auto 0.85rem;
  max-width: 18ch;
  color: var(--ink);
}
.mv5-section-head h2 em {
  font-style: normal;
  background: linear-gradient(180deg, transparent 65%, var(--amber) 65%, var(--amber) 92%, transparent 92%);
  padding: 0 0.05em;
}
.mv5-section-head p { color: var(--ink-2); max-width: 580px; margin: 0 auto; font-size: 1.05rem; line-height: 1.55; }

/* Features — rounded, light, with character */
.mv5-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.mv5-feat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem 1.75rem;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.mv5-feat:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -14px rgba(26,26,31,0.14); }
.mv5-feat .pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font: 600 0.72rem/1 "Inter", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.mv5-feat .pill.coral { background: var(--soft); color: var(--accent-2); }
.mv5-feat .pill.plum  { background: var(--plum-soft); color: var(--plum); }
.mv5-feat .pill.mint  { background: var(--mint-soft); color: var(--mint); }
.mv5-feat h4 {
  font-family: "Cal Sans", "Inter", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--ink);
}
.mv5-feat p { font-size: 0.95rem; line-height: 1.6; color: var(--ink-2); margin: 0; }
@media (max-width: 900px) { .mv5-features { grid-template-columns: 1fr; } }

/* "Without / With" comparison block */
.mv5-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto;
}
.mv5-compare .col {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem 1.75rem;
}
.mv5-compare .col.without { background: var(--soft); border-color: var(--peach); }
.mv5-compare .col .ttl {
  font: 700 0.78rem/1 "Inter", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.mv5-compare .col.without .ttl { color: var(--accent-2); }
.mv5-compare .col.without .ttl::before { content: "—"; font-size: 1.2rem; }
.mv5-compare .col.with .ttl { color: var(--mint); }
.mv5-compare .col.with .ttl::before { content: "+"; font-size: 1.2rem; font-weight: 800; }
.mv5-compare .col h3 {
  font-family: "Cal Sans", "Inter", sans-serif;
  font-size: 1.45rem;
  margin: 0 0 1rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.mv5-compare .col ul { list-style: none; padding: 0; margin: 0; }
.mv5-compare .col ul li {
  padding: 0.55rem 0;
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.5;
  display: flex; gap: 0.6rem;
  border-bottom: 1px solid rgba(26,26,31,0.06);
}
.mv5-compare .col ul li:last-child { border-bottom: 0; }
.mv5-compare .col.without ul li::before { content: "✕"; color: var(--accent-2); font-weight: 700; flex-shrink: 0; }
.mv5-compare .col.with    ul li::before { content: "✓"; color: var(--mint); font-weight: 700; flex-shrink: 0; }
@media (max-width: 720px) { .mv5-compare { grid-template-columns: 1fr; } }

/* Pricing */
.mv5-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.mv5-pricing .t {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem 1.75rem;
  position: relative;
}
.mv5-pricing .t.feat {
  background: linear-gradient(180deg, var(--ink) 0%, #2a2a32 100%);
  border-color: var(--ink);
  color: var(--paper);
  box-shadow: 0 24px 50px -16px rgba(26,26,31,0.45);
}
.mv5-pricing .t.feat h4, .mv5-pricing .t.feat .price { color: var(--paper); }
.mv5-pricing .t.feat .name { color: var(--accent); }
.mv5-pricing .t.feat p, .mv5-pricing .t.feat ul li { color: rgba(255,255,255,0.85); }
.mv5-pricing .t.feat ul li::before { background: var(--accent); }
.mv5-pricing .t .name {
  font: 700 0.78rem/1 "Inter", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.mv5-pricing .t h4 {
  font-family: "Cal Sans", "Inter", sans-serif;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--ink);
}
.mv5-pricing .t .price {
  font-family: "Cal Sans", "Inter", sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.mv5-pricing .t .price small {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.35rem;
  letter-spacing: 0;
}
.mv5-pricing .t.feat .price small { color: rgba(255,255,255,0.6); }
.mv5-pricing .t .lead { font-size: 0.95rem; color: var(--ink-2); margin: 1rem 0 1.5rem; line-height: 1.55; }
.mv5-pricing .t.feat .lead { color: rgba(255,255,255,0.8); }
.mv5-pricing .t ul { list-style: none; padding: 0; margin: 0 0 1.75rem; }
.mv5-pricing .t ul li { color: var(--ink-2); padding: 0.35rem 0; display: flex; gap: 0.5rem; font-size: 0.92rem; }
.mv5-pricing .t ul li::before {
  content: ""; flex-shrink: 0;
  width: 16px; height: 16px;
  background: var(--mint);
  border-radius: 50%;
  margin-top: 0.18rem;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M6.5 11L3 7.5l1.4-1.4L6.5 8.2l5.1-5.1L13 4.5z'/></svg>") center/12px no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M6.5 11L3 7.5l1.4-1.4L6.5 8.2l5.1-5.1L13 4.5z'/></svg>") center/12px no-repeat;
}
.mv5-pricing .t .pbtn {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  font: 600 0.95rem/1 "Inter", sans-serif;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 6px 14px -4px rgba(26,26,31,0.3);
}
.mv5-pricing .t .pbtn:hover { transform: translateY(-1px); color: var(--paper); box-shadow: 0 12px 22px -6px rgba(26,26,31,0.4); }
.mv5-pricing .t .pbtn.ghost { background: var(--paper); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.mv5-pricing .t .pbtn.ghost:hover { background: var(--soft); border-color: var(--peach); }
.mv5-pricing .t.feat .pbtn { background: var(--accent); color: var(--paper); }
.mv5-pricing .t.feat .pbtn:hover { background: var(--accent-2); color: var(--paper); }
.mv5-pricing .t .ribbon {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font: 700 0.68rem/1 "Inter", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px -3px rgba(255,91,58,0.5);
}
@media (max-width: 800px) { .mv5-pricing { grid-template-columns: 1fr; } }
/* Two-tier variant — Ultimate is invite-only for orgs, not on the
   public landing. Keep the same cards but constrain max width so
   they don't stretch to 50% of a wide viewport. */
.mv5-pricing-two { grid-template-columns: repeat(2, minmax(260px, 360px)); justify-content: center; }
@media (max-width: 600px) { .mv5-pricing-two { grid-template-columns: 1fr; } }

.mv5-newsletter {
  margin: 4rem auto 0;
  max-width: 980px;
  padding: 2rem 1.5rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.mv5-newsletter-inner {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
}
@media (max-width: 700px) { .mv5-newsletter-inner { grid-template-columns: 1fr; } }
.mv5-newsletter h3 { margin: 0 0 0.4rem 0; font: 700 1.35rem/1.2 "Inter", sans-serif; }
.mv5-newsletter p  { margin: 0; font-size: 0.95rem; color: var(--slate-600); line-height: 1.55; }
.mv5-newsletter-form { display: flex; gap: 0.5rem; align-items: stretch; }
.mv5-newsletter-form input[type="email"] {
  flex: 1; min-width: 0;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font: 500 0.95rem/1 "Inter", sans-serif;
}
.mv5-newsletter-flash {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
}

.mv5-pricing-foot {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--slate-600);
}
.mv5-pricing-foot strong { color: var(--ink); font-weight: 700; }

.mv5-invite-note {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--slate-700);
  line-height: 1.55;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.mv5-invite-note strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

/* Final CTA */
.mv5-final {
  text-align: center;
  padding: 5rem 2rem 6rem;
  margin: 6rem 0 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  border-radius: 32px 32px 0 0;
  color: white;
  position: relative;
  overflow: hidden;
}
.mv5-final::before {
  content: "";
  position: absolute;
  top: -30%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.mv5-final h2 {
  font-family: "Cal Sans", "Inter", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 auto 1.25rem;
  max-width: 16ch;
  color: white;
}
.mv5-final .lede { color: rgba(255,255,255,0.92); font-size: 1.15rem; margin: 0 auto 2rem; max-width: 520px; }
.mv5-final .mv5-btn { background: white; color: var(--accent); box-shadow: 0 12px 28px -6px rgba(0,0,0,0.25); }
.mv5-final .mv5-btn:hover { background: white; color: var(--accent-2); box-shadow: 0 18px 36px -8px rgba(0,0,0,0.32); }
.mv5-final .mv5-btn-ghost { background: rgba(255,255,255,0.12); color: white; border-color: rgba(255,255,255,0.3); }
.mv5-final .mv5-btn-ghost:hover { background: rgba(255,255,255,0.18); color: white; border-color: rgba(255,255,255,0.5); }

.mv5-foot {
  background: var(--accent-2);
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 1.5rem 1rem 3rem;
  font-size: 0.88rem;
}
.mv5-foot a { color: white; text-decoration: underline; }

/* ============================================================
   MV6 — Apple Hush. Pure white, oversized centered type, soft blue.
   ============================================================ */
.mv6 { margin: -2.25rem -1.5rem 0; background: #fff; color: #1d1d1f; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif; }
.mv6 * { letter-spacing: -0.022em; }
.mv6 .inn { max-width: 980px; margin: 0 auto; padding: 0 1.5rem; text-align: center; }
.mv6 .hero { padding: 7rem 0 5rem; }
.mv6 .eyebrow { color: #0071e3; font-size: 1.1rem; font-weight: 500; margin-bottom: 1rem; }
.mv6 h1 { font-size: clamp(3rem, 7vw, 6rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.045em; margin: 0 0 1.2rem; color: #1d1d1f; }
.mv6 h1 em { font-style: normal; color: #6e6e73; }
.mv6 .sub { font-size: 1.4rem; color: #6e6e73; max-width: 640px; margin: 0 auto 2rem; line-height: 1.4; font-weight: 400; }
.mv6 .ctas { display: inline-flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; justify-content: center; font-size: 1.2rem; }
.mv6 .ctas a { color: #0071e3; font-weight: 500; text-decoration: none; }
.mv6 .ctas a:hover { text-decoration: underline; }
.mv6 .ctas a.primary { background: #0071e3; color: white; padding: 0.95rem 1.75rem; border-radius: 999px; font-weight: 500; }
.mv6 .ctas a.primary:hover { background: #0058b8; color: white; text-decoration: none; }
.mv6 .section { padding: 5rem 0; border-top: 1px solid #d2d2d7; }
.mv6 .section h2 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; margin: 0 auto 1.25rem; max-width: 18ch; color: #1d1d1f; }
.mv6 .section .sub { font-size: 1.25rem; color: #6e6e73; max-width: 640px; margin: 0 auto 3rem; line-height: 1.4; }
.mv6 .three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; text-align: left; }
.mv6 .three .c { padding: 2rem; background: #f5f5f7; border-radius: 18px; }
.mv6 .three .c h3 { font-size: 1.4rem; font-weight: 600; margin: 0 0 0.5rem; letter-spacing: -0.02em; }
.mv6 .three .c p { color: #424245; margin: 0; line-height: 1.5; font-size: 1.05rem; }
@media (max-width: 760px) { .mv6 .three { grid-template-columns: 1fr; } }
.mv6 .pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; text-align: left; }
.mv6 .pricing .t { background: #f5f5f7; border-radius: 18px; padding: 2.25rem 2rem; }
.mv6 .pricing .t.feat { background: #1d1d1f; color: #f5f5f7; }
.mv6 .pricing .t.feat h4, .mv6 .pricing .t.feat .price { color: white; }
.mv6 .pricing .t.feat .lead { color: #a1a1a6; }
.mv6 .pricing .t.feat .pbtn { background: #0071e3; color: white; }
.mv6 .pricing .t .name { font-size: 0.95rem; color: #6e6e73; font-weight: 500; }
.mv6 .pricing .t h4 { font-size: 1.5rem; font-weight: 600; margin: 0.5rem 0 0.75rem; letter-spacing: -0.025em; }
.mv6 .pricing .t .price { font-size: 2.6rem; font-weight: 600; letter-spacing: -0.04em; color: #1d1d1f; line-height: 1; }
.mv6 .pricing .t .price small { display: block; font-size: 0.95rem; font-weight: 400; color: #6e6e73; margin-top: 0.4rem; }
.mv6 .pricing .t .lead { color: #424245; margin: 1rem 0 1.5rem; font-size: 1rem; line-height: 1.5; }
.mv6 .pricing .t ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.mv6 .pricing .t ul li { padding: 0.35rem 0; color: #424245; font-size: 1rem; }
.mv6 .pricing .t ul li::before { content: "✓ "; color: #0071e3; font-weight: 600; }
.mv6 .pricing .t.feat ul li::before { color: #0071e3; }
.mv6 .pricing .t .pbtn { display: block; width: 100%; padding: 0.9rem; border-radius: 999px; background: #1d1d1f; color: white; text-align: center; font-weight: 500; text-decoration: none; font-size: 1.05rem; }
.mv6 .pricing .t .pbtn:hover { background: #424245; color: white; text-decoration: none; }
@media (max-width: 800px) { .mv6 .pricing { grid-template-columns: 1fr; } }

/* ============================================================
   MV7 — Stripe Mesh. Animated rainbow gradient.
   ============================================================ */
.mv7 { margin: -2.25rem -1.5rem 0; background: #f8fafc; color: #0a0e27; font-family: "Inter", system-ui, sans-serif; position: relative; overflow-x: hidden; }
.mv7 * { letter-spacing: -0.011em; }
.mv7 .hero { padding: 5rem 1.5rem 4rem; position: relative; background: linear-gradient(125deg, #635bff 0%, #ff80b5 40%, #ffd166 70%, #06d6a0 100%); background-size: 200% 200%; animation: mv7grad 14s ease infinite; color: white; border-radius: 0 0 32px 32px; }
@keyframes mv7grad { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.mv7 .inn { max-width: 1140px; margin: 0 auto; }
.mv7 .hero .inn { text-align: center; position: relative; z-index: 1; }
.mv7 .badge { display: inline-flex; gap: 0.5rem; background: rgba(255,255,255,0.2); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.3); padding: 0.45rem 0.95rem; border-radius: 999px; color: white; font-size: 0.85rem; font-weight: 500; margin-bottom: 1.5rem; }
.mv7 h1 { font-family: "Cal Sans", "Inter", sans-serif; font-size: clamp(2.8rem, 6.5vw, 5.5rem); font-weight: 700; line-height: 1; letter-spacing: -0.04em; margin: 0 0 1.25rem; color: white; }
.mv7 .sub { font-size: 1.25rem; color: rgba(255,255,255,0.92); max-width: 620px; margin: 0 auto 2rem; line-height: 1.5; }
.mv7 .ctas { display: inline-flex; gap: 0.7rem; flex-wrap: wrap; justify-content: center; }
.mv7 .ctas a { padding: 1rem 1.5rem; border-radius: 12px; font-weight: 600; text-decoration: none; }
.mv7 .ctas a.primary { background: white; color: #635bff; box-shadow: 0 12px 30px -6px rgba(0,0,0,0.25); }
.mv7 .ctas a.ghost { background: rgba(255,255,255,0.15); color: white; border: 1px solid rgba(255,255,255,0.35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.mv7 .section { padding: 5rem 1.5rem; }
.mv7 .section h2 { font-family: "Cal Sans", "Inter", sans-serif; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.035em; margin: 0 auto 0.85rem; max-width: 20ch; text-align: center; }
.mv7 .section h2 em { font-style: normal; background: linear-gradient(135deg, #635bff, #ff80b5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mv7 .section .sub { color: #475569; max-width: 580px; margin: 0 auto 3rem; text-align: center; font-size: 1.05rem; line-height: 1.55; }
.mv7 .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.mv7 .grid .c { background: white; border-radius: 18px; padding: 1.85rem; position: relative; box-shadow: 0 1px 0 #e2e8f0; transition: transform var(--transition), box-shadow var(--transition); }
.mv7 .grid .c::before { content: ""; position: absolute; inset: -1px; border-radius: 19px; padding: 1px; background: linear-gradient(135deg, #635bff, #ff80b5, #ffd166); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity var(--transition); }
.mv7 .grid .c:hover::before { opacity: 1; }
.mv7 .grid .c:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -16px rgba(99,91,255,0.25); }
.mv7 .grid .c h3 { font-family: "Cal Sans", "Inter", sans-serif; font-size: 1.2rem; margin: 0 0 0.45rem; letter-spacing: -0.02em; }
.mv7 .grid .c p { color: #475569; margin: 0; font-size: 0.95rem; line-height: 1.55; }
.mv7 .grid .c .ic { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, #635bff, #ff80b5); color: white; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; margin-bottom: 0.85rem; }
@media (max-width: 900px) { .mv7 .grid { grid-template-columns: 1fr; } }
.mv7 .pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.mv7 .pricing .t { background: white; border-radius: 18px; padding: 2rem 1.75rem; border: 1px solid #e2e8f0; position: relative; }
.mv7 .pricing .t.feat { border: 0; background: linear-gradient(135deg, #635bff, #ff80b5); color: white; box-shadow: 0 24px 60px -16px rgba(99,91,255,0.5); }
.mv7 .pricing .t.feat h4, .mv7 .pricing .t.feat .price { color: white; }
.mv7 .pricing .t.feat .lead, .mv7 .pricing .t.feat ul li { color: rgba(255,255,255,0.9); }
.mv7 .pricing .t .name { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #635bff; margin-bottom: 0.45rem; }
.mv7 .pricing .t.feat .name { color: #ffd166; }
.mv7 .pricing .t h4 { font-family: "Cal Sans", "Inter", sans-serif; font-size: 1.35rem; margin: 0 0 1rem; letter-spacing: -0.02em; }
.mv7 .pricing .t .price { font-family: "Cal Sans", "Inter", sans-serif; font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.mv7 .pricing .t .price small { display: block; font-size: 0.78rem; font-weight: 500; opacity: 0.7; margin-top: 0.35rem; }
.mv7 .pricing .t .lead { font-size: 0.95rem; margin: 1rem 0 1.25rem; line-height: 1.55; }
.mv7 .pricing .t ul { list-style: none; padding: 0; margin: 0 0 1.5rem; font-size: 0.92rem; }
.mv7 .pricing .t ul li { padding: 0.35rem 0; display: flex; gap: 0.5rem; }
.mv7 .pricing .t ul li::before { content: "✓"; color: #635bff; font-weight: 700; }
.mv7 .pricing .t.feat ul li::before { color: #ffd166; }
.mv7 .pricing .t .pbtn { display: block; width: 100%; padding: 0.9rem; border-radius: 12px; background: #0a0e27; color: white; text-align: center; font-weight: 600; text-decoration: none; }
.mv7 .pricing .t.feat .pbtn { background: white; color: #635bff; }
.mv7 .pricing .t .ribbon { position: absolute; top: -10px; left: 1.5rem; background: linear-gradient(135deg, #635bff, #ff80b5); color: white; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.35rem 0.7rem; border-radius: 6px; }
@media (max-width: 800px) { .mv7 .pricing { grid-template-columns: 1fr; } }

/* ============================================================
   MV8 — Brutalist. Yellow/pink blocks, oversized type, sharp.
   ============================================================ */
.mv8 { margin: -2.25rem -1.5rem 0; background: #fff0f5; color: #000; font-family: "Inter", system-ui, sans-serif; }
.mv8 * { letter-spacing: -0.02em; }
.mv8 .inn { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.mv8 .hero { padding: 3rem 0 4rem; position: relative; }
.mv8 .stripe { display: inline-block; background: #facc15; padding: 0.4rem 1rem; font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; border: 3px solid #000; margin-bottom: 1.5rem; transform: rotate(-1deg); box-shadow: 5px 5px 0 0 #000; }
.mv8 h1 { font-size: clamp(3.5rem, 9vw, 7.5rem); font-weight: 900; line-height: 0.92; letter-spacing: -0.05em; margin: 0 0 1.5rem; max-width: 14ch; text-transform: uppercase; }
.mv8 h1 em { font-style: normal; background: #facc15; padding: 0 0.1em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.mv8 .sub { font-size: 1.35rem; color: #000; max-width: 580px; margin: 0 0 2.25rem; line-height: 1.35; font-weight: 500; }
.mv8 .ctas { display: inline-flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.mv8 .ctas a { padding: 1rem 1.75rem; font-weight: 800; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none; border: 3px solid #000; transition: transform var(--transition); }
.mv8 .ctas a.primary { background: #000; color: #facc15; box-shadow: 6px 6px 0 0 #ec4899; }
.mv8 .ctas a.primary:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 0 #ec4899; color: #facc15; }
.mv8 .ctas a.ghost { background: #fff; color: #000; box-shadow: 6px 6px 0 0 #000; }
.mv8 .ctas a.ghost:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 0 #000; color: #000; }
.mv8 .section { padding: 4rem 0; border-top: 3px solid #000; }
.mv8 .section h2 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; line-height: 0.95; letter-spacing: -0.04em; text-transform: uppercase; margin: 0 0 2rem; max-width: 14ch; }
.mv8 .section h2 em { font-style: normal; background: #ec4899; color: #fff; padding: 0 0.1em; }
.mv8 .three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.mv8 .three .c { background: #fff; border: 3px solid #000; padding: 1.75rem; box-shadow: 6px 6px 0 0 #000; }
.mv8 .three .c:nth-child(2) { background: #facc15; box-shadow: 6px 6px 0 0 #ec4899; }
.mv8 .three .c:nth-child(3) { background: #ec4899; color: white; }
.mv8 .three .c h3 { font-size: 1.5rem; font-weight: 900; margin: 0 0 0.75rem; text-transform: uppercase; letter-spacing: -0.02em; }
.mv8 .three .c p { font-size: 1rem; margin: 0; line-height: 1.45; font-weight: 500; }
.mv8 .three .c .n { display: inline-block; font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; padding: 0.25rem 0.6rem; background: #000; color: #fff; }
.mv8 .three .c:nth-child(3) .n { background: #fff; color: #000; }
@media (max-width: 800px) { .mv8 .three { grid-template-columns: 1fr; } }
.mv8 .pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.mv8 .pricing .t { background: #fff; border: 3px solid #000; padding: 2rem; box-shadow: 6px 6px 0 0 #000; position: relative; }
.mv8 .pricing .t.feat { background: #facc15; box-shadow: 6px 6px 0 0 #ec4899; transform: rotate(-1deg); }
.mv8 .pricing .t .name { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.45rem; }
.mv8 .pricing .t .price { font-size: 3rem; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.mv8 .pricing .t .price small { display: block; font-size: 0.78rem; font-weight: 500; margin-top: 0.35rem; }
.mv8 .pricing .t .lead { font-size: 1rem; margin: 1rem 0 1.5rem; font-weight: 500; }
.mv8 .pricing .t ul { list-style: none; padding: 0; margin: 0 0 1.5rem; font-weight: 500; }
.mv8 .pricing .t ul li { padding: 0.3rem 0; display: flex; gap: 0.5rem; }
.mv8 .pricing .t ul li::before { content: "→"; font-weight: 900; }
.mv8 .pricing .t .pbtn { display: block; width: 100%; padding: 0.9rem; background: #000; color: #facc15; border: 0; text-align: center; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; }
.mv8 .pricing .t.feat .pbtn { background: #ec4899; color: #fff; }
.mv8 .pricing .t .ribbon { position: absolute; top: -14px; left: 1rem; background: #000; color: #fff; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.35rem 0.7rem; border: 3px solid #000; }
@media (max-width: 800px) { .mv8 .pricing { grid-template-columns: 1fr; } }

/* ============================================================
   MV9 — Sage Calm. Sage green + cream, lots of negative space.
   ============================================================ */
.mv9 { margin: -2.25rem -1.5rem 0; background: #f5f3ed; color: #1f2421; font-family: "Inter", system-ui, sans-serif; }
.mv9 * { letter-spacing: -0.01em; }
.mv9 .inn { max-width: 980px; margin: 0 auto; padding: 0 1.5rem; }
.mv9 .hero { padding: 7rem 0 5rem; text-align: center; }
.mv9 .mark { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: #4a7c59; font-weight: 600; margin-bottom: 1.5rem; }
.mv9 .mark::before { content: ""; width: 18px; height: 1px; background: #4a7c59; display: inline-block; }
.mv9 h1 { font-family: "Fraunces", Georgia, serif; font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 400; line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 1.5rem; color: #1f2421; }
.mv9 h1 em { color: #4a7c59; font-style: italic; }
.mv9 .sub { font-family: "Fraunces", Georgia, serif; font-size: 1.3rem; color: #5b6660; max-width: 580px; margin: 0 auto 2.5rem; line-height: 1.55; font-weight: 400; }
.mv9 .ctas { display: inline-flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; justify-content: center; }
.mv9 .ctas a { font-size: 1.05rem; font-weight: 500; text-decoration: none; padding: 0.95rem 1.75rem; border-radius: 4px; }
.mv9 .ctas a.primary { background: #4a7c59; color: white; }
.mv9 .ctas a.primary:hover { background: #3d6749; color: white; }
.mv9 .ctas a.ghost { color: #4a7c59; }
.mv9 .ctas a.ghost:hover { color: #3d6749; text-decoration: underline; }
.mv9 .section { padding: 6rem 0; border-top: 1px solid #d9d5c8; }
.mv9 .section h2 { font-family: "Fraunces", Georgia, serif; font-size: clamp(2.2rem, 4vw, 3.5rem); font-weight: 400; line-height: 1.1; letter-spacing: -0.03em; margin: 0 auto 0.85rem; max-width: 20ch; text-align: center; }
.mv9 .section h2 em { color: #4a7c59; font-style: italic; }
.mv9 .section .sub { color: #5b6660; max-width: 540px; margin: 0 auto 3rem; text-align: center; }
.mv9 .three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.mv9 .three .c { text-align: left; }
.mv9 .three .c .n { font-family: "Fraunces", Georgia, serif; font-size: 0.95rem; font-style: italic; color: #4a7c59; margin-bottom: 0.75rem; }
.mv9 .three .c h3 { font-family: "Fraunces", Georgia, serif; font-size: 1.5rem; font-weight: 500; margin: 0 0 0.65rem; letter-spacing: -0.02em; }
.mv9 .three .c p { color: #5b6660; margin: 0; line-height: 1.6; font-size: 1rem; }
.mv9 .three .c .rule { width: 30px; height: 1px; background: #4a7c59; margin: 0.85rem 0; }
@media (max-width: 800px) { .mv9 .three { grid-template-columns: 1fr; gap: 2rem; } }
.mv9 .pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.mv9 .pricing .t { background: #fff; border: 1px solid #d9d5c8; border-radius: 8px; padding: 2rem; }
.mv9 .pricing .t.feat { background: #4a7c59; color: #f5f3ed; border-color: #4a7c59; }
.mv9 .pricing .t.feat h4, .mv9 .pricing .t.feat .price { color: #f5f3ed; }
.mv9 .pricing .t.feat .lead, .mv9 .pricing .t.feat ul li { color: rgba(245,243,237,0.85); }
.mv9 .pricing .t .name { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: #4a7c59; font-weight: 600; margin-bottom: 0.5rem; }
.mv9 .pricing .t.feat .name { color: #c2dac6; }
.mv9 .pricing .t h4 { font-family: "Fraunces", Georgia, serif; font-size: 1.5rem; font-weight: 500; margin: 0 0 1rem; letter-spacing: -0.02em; font-style: italic; }
.mv9 .pricing .t .price { font-family: "Fraunces", Georgia, serif; font-size: 2.5rem; font-weight: 500; letter-spacing: -0.025em; line-height: 1; }
.mv9 .pricing .t .price small { display: block; font-family: "Inter", sans-serif; font-size: 0.78rem; opacity: 0.75; margin-top: 0.35rem; font-weight: 500; }
.mv9 .pricing .t .lead { font-family: "Fraunces", Georgia, serif; font-size: 1rem; margin: 1rem 0 1.5rem; line-height: 1.5; }
.mv9 .pricing .t ul { list-style: none; padding: 0; margin: 0 0 1.75rem; }
.mv9 .pricing .t ul li { padding: 0.35rem 0; display: flex; gap: 0.55rem; font-size: 0.92rem; border-bottom: 1px solid #f0ece0; }
.mv9 .pricing .t.feat ul li { border-bottom-color: rgba(255,255,255,0.1); }
.mv9 .pricing .t ul li:last-child { border-bottom: 0; }
.mv9 .pricing .t ul li::before { content: "·"; color: #4a7c59; font-weight: 700; font-size: 1.5rem; line-height: 1; }
.mv9 .pricing .t.feat ul li::before { color: #c2dac6; }
.mv9 .pricing .t .pbtn { display: block; width: 100%; padding: 0.9rem; background: #1f2421; color: #f5f3ed; text-align: center; font-weight: 500; text-decoration: none; border-radius: 4px; }
.mv9 .pricing .t.feat .pbtn { background: #f5f3ed; color: #1f2421; }
@media (max-width: 800px) { .mv9 .pricing { grid-template-columns: 1fr; } }

/* ============================================================
   MV10 — Phantom Vibe. Purple + magenta gradient, glowy.
   ============================================================ */
.mv10 { margin: -2.25rem -1.5rem 0; background: #0f0a1e; color: #f5e9ff; font-family: "Inter", system-ui, sans-serif; position: relative; overflow-x: hidden; }
.mv10 * { letter-spacing: -0.01em; }
.mv10::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 20% 0%, rgba(168, 85, 247, 0.35) 0%, transparent 60%), radial-gradient(50% 40% at 80% 30%, rgba(236, 72, 153, 0.28) 0%, transparent 60%), radial-gradient(60% 50% at 50% 100%, rgba(99, 102, 241, 0.25) 0%, transparent 60%); }
.mv10 > * { position: relative; z-index: 1; }
.mv10 .inn { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.mv10 .hero { padding: 5rem 0 4rem; text-align: center; }
.mv10 .badge { display: inline-flex; gap: 0.5rem; background: rgba(168,85,247,0.15); border: 1px solid rgba(168,85,247,0.4); color: #d8b4fe; padding: 0.4rem 0.95rem; border-radius: 999px; font-size: 0.85rem; font-weight: 500; margin-bottom: 1.5rem; }
.mv10 h1 { font-family: "Cal Sans", "Inter", sans-serif; font-size: clamp(3rem, 7vw, 5.8rem); font-weight: 700; line-height: 0.98; letter-spacing: -0.045em; margin: 0 0 1.5rem; }
.mv10 h1 .glow { background: linear-gradient(135deg, #c084fc, #f0abfc, #fbcfe8); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 80px rgba(192,132,252,0.5); }
.mv10 .sub { font-size: 1.25rem; color: #d8b4fe; max-width: 620px; margin: 0 auto 2rem; line-height: 1.5; font-weight: 400; }
.mv10 .ctas { display: inline-flex; gap: 0.85rem; flex-wrap: wrap; justify-content: center; }
.mv10 .ctas a { padding: 1rem 1.75rem; border-radius: 16px; font-weight: 700; text-decoration: none; transition: transform var(--transition), box-shadow var(--transition); }
.mv10 .ctas a.primary { background: linear-gradient(135deg, #a855f7, #ec4899); color: white; box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 12px 32px -6px rgba(168,85,247,0.65); }
.mv10 .ctas a.primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 4px rgba(168,85,247,0.25), 0 18px 48px -8px rgba(168,85,247,0.8); color: white; }
.mv10 .ctas a.ghost { background: rgba(255,255,255,0.06); color: #f5e9ff; border: 1px solid rgba(255,255,255,0.2); }
.mv10 .ctas a.ghost:hover { background: rgba(255,255,255,0.12); color: white; }
.mv10 .section { padding: 5rem 0; border-top: 1px solid rgba(255,255,255,0.08); }
.mv10 .section h2 { font-family: "Cal Sans", "Inter", sans-serif; font-size: clamp(2.2rem, 4vw, 3.4rem); letter-spacing: -0.035em; margin: 0 auto 0.85rem; max-width: 18ch; text-align: center; }
.mv10 .section h2 em { font-style: normal; background: linear-gradient(135deg, #c084fc, #f0abfc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mv10 .section .sub { color: #c4b5fd; max-width: 580px; margin: 0 auto 3rem; text-align: center; }
.mv10 .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.mv10 .grid .c { background: linear-gradient(180deg, rgba(168,85,247,0.08), rgba(236,72,153,0.02)); border: 1px solid rgba(168,85,247,0.2); border-radius: 18px; padding: 1.85rem; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); transition: transform var(--transition), border-color var(--transition); }
.mv10 .grid .c:hover { transform: translateY(-3px); border-color: rgba(168,85,247,0.5); box-shadow: 0 24px 60px -16px rgba(168,85,247,0.35); }
.mv10 .grid .c h3 { font-family: "Cal Sans", "Inter", sans-serif; font-size: 1.2rem; margin: 0 0 0.45rem; color: white; letter-spacing: -0.02em; }
.mv10 .grid .c p { color: #c4b5fd; margin: 0; font-size: 0.95rem; line-height: 1.55; }
.mv10 .grid .c .ic { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #a855f7, #ec4899); color: white; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 0.85rem; box-shadow: 0 8px 20px -4px rgba(168,85,247,0.5); }
@media (max-width: 900px) { .mv10 .grid { grid-template-columns: 1fr; } }
.mv10 .pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.mv10 .pricing .t { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 18px; padding: 2rem 1.75rem; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); position: relative; }
.mv10 .pricing .t.feat { background: linear-gradient(180deg, rgba(168,85,247,0.18), rgba(236,72,153,0.08)); border: 1px solid rgba(168,85,247,0.5); box-shadow: 0 20px 60px -16px rgba(168,85,247,0.45); }
.mv10 .pricing .t .name { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #c4b5fd; margin-bottom: 0.55rem; }
.mv10 .pricing .t.feat .name { color: #f0abfc; }
.mv10 .pricing .t h4 { font-family: "Cal Sans", "Inter", sans-serif; font-size: 1.35rem; color: white; margin: 0 0 1rem; letter-spacing: -0.02em; }
.mv10 .pricing .t .price { font-family: "Cal Sans", "Inter", sans-serif; font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: white; }
.mv10 .pricing .t .price small { display: block; font-size: 0.78rem; color: #c4b5fd; opacity: 0.8; margin-top: 0.35rem; font-weight: 500; letter-spacing: 0; }
.mv10 .pricing .t .lead { color: #d8b4fe; margin: 1rem 0 1.5rem; font-size: 0.95rem; line-height: 1.55; }
.mv10 .pricing .t ul { list-style: none; padding: 0; margin: 0 0 1.75rem; font-size: 0.92rem; }
.mv10 .pricing .t ul li { padding: 0.35rem 0; display: flex; gap: 0.55rem; color: #d8b4fe; }
.mv10 .pricing .t ul li::before { content: "✦"; color: #a855f7; font-weight: 700; }
.mv10 .pricing .t.feat ul li::before { color: #f0abfc; }
.mv10 .pricing .t .pbtn { display: block; width: 100%; padding: 0.9rem; border-radius: 12px; background: rgba(255,255,255,0.08); color: white; border: 1px solid rgba(255,255,255,0.15); text-align: center; font-weight: 600; text-decoration: none; }
.mv10 .pricing .t.feat .pbtn { background: linear-gradient(135deg, #a855f7, #ec4899); color: white; box-shadow: 0 12px 28px -6px rgba(168,85,247,0.5); border: 0; }
.mv10 .pricing .t .ribbon { position: absolute; top: -10px; left: 1.5rem; background: linear-gradient(135deg, #a855f7, #ec4899); color: white; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.35rem 0.7rem; border-radius: 6px; }
@media (max-width: 800px) { .mv10 .pricing { grid-template-columns: 1fr; } }

/* ============================================================
   PRODUCT MOCKUPS — HTML/CSS recreations of the actual wizard +
   editor UI for the marketing landing. Re-tints per theme.
   ============================================================ */

/* Generic browser-style window chrome */
.mock {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 18px;
  box-shadow:
    0 50px 100px -28px rgba(15,23,42,0.28),
    0 18px 32px -10px rgba(99,102,241,0.18),
    0 2px 0 rgba(255,255,255,0.6) inset;
  overflow: hidden;
  position: relative;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid rgba(15,23,42,0.06);
}
.mock-bar .dots { display: flex; gap: 0.35rem; }
.mock-bar .dots span { width: 11px; height: 11px; border-radius: 50%; }
.mock-bar .dots span:nth-child(1) { background: #fb7185; }
.mock-bar .dots span:nth-child(2) { background: #fbbf24; }
.mock-bar .dots span:nth-child(3) { background: #4ade80; }
.mock-bar .title {
  margin-left: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-700);
  letter-spacing: -0.01em;
}
.mock-bar .url {
  margin-left: auto;
  background: white;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.72rem;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  color: var(--slate-500);
}

/* ---- EDITOR MOCKUP ---- */
.mock-editor {
  height: 520px;
  display: flex;
  flex-direction: column;
}
.mock-editor .ed-toolbar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.9rem;
  background: white;
  border-bottom: 1px solid rgba(15,23,42,0.06);
}
.mock-editor .ed-toolbar .ed-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid rgba(15,23,42,0.08);
  background: white;
  border-radius: 8px;
}
.mock-editor .ed-toolbar .ed-pill .it {
  width: 18px; height: 18px;
  border-radius: 6px;
  background: var(--slate-100);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: var(--slate-600);
}
.mock-editor .ed-toolbar .ed-pill .it.amber  { background: #fef3c7; color: #b45309; }
.mock-editor .ed-toolbar .ed-pill .it.indigo { background: #ede9fe; color: #6366f1; }
.mock-editor .ed-toolbar .ed-pill .it.red    { background: #fee2e2; color: #dc2626; }
.mock-editor .ed-toolbar .ed-pill .it.blue   { background: #dbeafe; color: #2563eb; }
.mock-editor .ed-toolbar .ed-spacer { flex: 1; }
.mock-editor .ed-toolbar .ed-save {
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  background: var(--grad-primary);
  color: white;
  font-weight: 600;
  font-size: 0.78rem;
  display: inline-flex; align-items: center; gap: 0.3rem;
  box-shadow: var(--shadow-glow);
}
.mock-editor .ed-toolbar .ed-dots {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: white;
  border: 1px solid rgba(15,23,42,0.1);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--slate-600);
}

.mock-editor .ed-body {
  flex: 1;
  display: grid;
  grid-template-columns: 200px 1fr 56px;
  overflow: hidden;
}
.mock-editor .ed-sidebar {
  background: linear-gradient(180deg, #fafbff 0%, #f4f6fb 100%);
  border-right: 1px solid rgba(15,23,42,0.06);
  padding: 0.7rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow: hidden;
}
.mock-editor .ed-sidebar .label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--slate-400);
  text-transform: uppercase;
  padding: 0.2rem 0.55rem 0.4rem;
}
.mock-editor .ed-sidebar .it {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--slate-600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-editor .ed-sidebar .it.active {
  background: var(--grad-primary);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 10px -2px rgba(99,102,241,0.35);
}
.mock-editor .ed-sidebar .it .ic {
  width: 14px; height: 14px;
  border-radius: 4px;
  background: var(--slate-200);
  flex-shrink: 0;
}
.mock-editor .ed-sidebar .it.active .ic { background: rgba(255,255,255,0.3); }

.mock-editor .ed-main {
  padding: 1rem 1.1rem;
  overflow: hidden;
  background: white;
}
.mock-editor .ed-main h4 {
  font-size: 1.1rem;
  margin: 0 0 0.15rem;
  font-family: "Cal Sans", "Inter", sans-serif;
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: -0.01em;
}
.mock-editor .ed-main .sub { color: var(--slate-500); font-size: 0.78rem; margin-bottom: 0.9rem; }
.mock-editor .ed-main .pchip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--indigo-50);
  color: var(--indigo-700);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--indigo-100);
  margin-bottom: 0.7rem;
}
.mock-editor .ed-main .row2 {
  display: grid;
  grid-template-columns: 80px 1fr 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 0.6rem;
}
.mock-editor .ed-main .ph {
  background: linear-gradient(135deg, #ede9fe, #c7d2fe);
  border-radius: 8px;
  height: 80px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.mock-editor .ed-main .fld {
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  background: white;
}
.mock-editor .ed-main .fld .lab { font-size: 0.62rem; color: var(--slate-500); font-weight: 600; }
.mock-editor .ed-main .fld .val { font-size: 0.85rem; color: var(--slate-800); font-weight: 600; margin-top: 0.15rem; }
.mock-editor .ed-main .fld.gradf { border-color: var(--indigo-300); background: linear-gradient(180deg, var(--indigo-50), white); }
.mock-editor .ed-main .gridrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}
.mock-editor .ed-main .chip-row { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.4rem; }
.mock-editor .ed-main .chip-row .chip {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--slate-100);
  color: var(--slate-700);
  border: 1px solid var(--slate-200);
}
.mock-editor .ed-main .chip-row .chip.on {
  background: var(--grad-primary);
  color: white;
  border-color: transparent;
}

.mock-editor .ed-rail {
  border-left: 1px solid rgba(15,23,42,0.06);
  background: linear-gradient(180deg, #fafbff 0%, #f4f6fb 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0;
}
.mock-editor .ed-rail .ric {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--slate-400);
  background: white;
  border: 1px solid rgba(15,23,42,0.05);
  font-size: 0.85rem;
}
.mock-editor .ed-rail .ric.on {
  background: var(--grad-primary);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

/* ---- WIZARD MOCKUP (light theme) ---- */
.mock-wizard {
  height: 520px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: var(--slate-800);
  display: flex;
  flex-direction: column;
}
.mock-wizard .wz-shell {
  flex: 1;
  display: grid;
  grid-template-columns: 220px 1fr;
  overflow: hidden;
}
.mock-wizard .wz-side {
  background: linear-gradient(180deg, #fafbff 0%, #f1f5f9 100%);
  border-right: 1px solid var(--slate-200);
  padding: 0.85rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mock-wizard .wz-side .label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-400);
  padding: 0.3rem 0.6rem 0.5rem;
}
.mock-wizard .wz-side .it {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--slate-600);
}
.mock-wizard .wz-side .it.done { color: var(--slate-500); }
.mock-wizard .wz-side .it.done .bullet { background: #10b981; }
.mock-wizard .wz-side .it.active {
  background: var(--grad-primary);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 10px -2px rgba(99,102,241,0.35);
}
.mock-wizard .wz-side .it.active .bullet {
  background: white;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}
.mock-wizard .wz-side .it .bullet {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--slate-300);
  flex-shrink: 0;
}

.mock-wizard .wz-main {
  padding: 1.4rem 1.5rem;
  overflow: hidden;
  background: white;
}
.mock-wizard .wz-main .crumb {
  font-size: 0.7rem;
  color: var(--indigo-600);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.mock-wizard .wz-main h4 {
  font-size: 1.4rem;
  margin: 0 0 0.3rem;
  color: var(--slate-900);
  font-family: "Cal Sans", "Inter", sans-serif;
  letter-spacing: -0.02em;
}
.mock-wizard .wz-main .lead { color: var(--slate-600); font-size: 0.88rem; margin-bottom: 1rem; }
.mock-wizard .wz-main .q-field {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.6rem;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.mock-wizard .wz-main .q-field .qlbl { font-size: 0.7rem; color: var(--slate-500); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.mock-wizard .wz-main .q-field .qval {
  font-size: 0.95rem; color: var(--slate-700); font-weight: 500; margin-top: 0.3rem;
  display: flex; align-items: center; gap: 0.5rem;
  font-family: ui-monospace, "JetBrains Mono", monospace;
}
.mock-wizard .wz-main .q-field .qval.placeholder { color: var(--slate-400); }
.mock-wizard .wz-main .q-field .qval .caret {
  width: 2px; height: 1em; background: var(--indigo-600); animation: blink 1.1s steps(1) infinite;
}
.mock-wizard .wz-main .q-field .qhint {
  font-size: 0.74rem;
  color: #047857;
  margin-top: 0.4rem;
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: #ecfdf5;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid #bbf7d0;
}
.mock-wizard .wz-main .q-field.zip {
  border-color: var(--indigo-300);
  background: linear-gradient(180deg, var(--indigo-50), white);
}
.mock-wizard .wz-main .progress-row {
  display: flex; align-items: center; gap: 0.6rem;
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--slate-500);
}
.mock-wizard .wz-main .pbar {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--slate-200);
  overflow: hidden;
}
.mock-wizard .wz-main .pbar .pfill {
  width: 28%;
  height: 100%;
  background: var(--grad-primary);
  border-radius: 999px;
}

@media (max-width: 720px) {
  .mock-editor, .mock-wizard { height: 440px; }
  .mock-editor .ed-body { grid-template-columns: 0 1fr 0; }
  .mock-editor .ed-sidebar, .mock-editor .ed-rail { display: none; }
  .mock-wizard .wz-shell { grid-template-columns: 0 1fr; }
  .mock-wizard .wz-side { display: none; }
}

/* Showcase wrapper that gives the mockup a perspective tilt */
.mock-showcase {
  position: relative;
  padding: 0;
  perspective: 1600px;
}
.mock-showcase .mock { transform: perspective(1600px) rotateX(2deg); }
.mock-showcase.lean-l .mock { transform: perspective(1600px) rotateY(2deg) rotateX(1deg); }
.mock-showcase.lean-r .mock { transform: perspective(1600px) rotateY(-2deg) rotateX(1deg); }

/* ---- Page-preview gallery (light theme HTML mockups) ---- */
.lp-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}
.lp-gallery .g-card {
  background: white;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 14px;
  overflow: hidden;
  margin: 0;
  box-shadow:
    0 12px 28px -8px rgba(15,23,42,0.18),
    0 4px 10px -4px rgba(99,102,241,0.12);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.lp-gallery .g-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 24px 48px -12px rgba(15,23,42,0.25),
    0 8px 16px -6px rgba(99,102,241,0.18);
}
.lp-gallery .g-card figcaption {
  padding: 0.65rem 0.85rem;
  font-size: 0.78rem;
  color: var(--slate-600);
  font-weight: 500;
  background: linear-gradient(180deg, white 0%, var(--slate-50) 100%);
  border-top: 1px solid var(--slate-100);
}
.lp-gallery .g-card.g-feature { grid-column: span 2; grid-row: span 2; }
.lp-gallery .g-card.g-feature figcaption { font-size: 0.92rem; padding: 0.85rem 1.1rem; }

/* Generic "page" container — sits inside a g-card */
.pp { padding: 0.75rem 0.85rem; font-family: "Inter", sans-serif; color: #1e293b; }
.pp .pp-eyebrow {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7c3aed;
  margin-bottom: 0.2rem;
}
.pp h5 {
  margin: 0 0 0.45rem;
  font-family: "Cal Sans","Inter",sans-serif;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: #0f172a;
}
.pp .pp-row { height: 8px; border-radius: 4px; background: #e2e8f0; margin-bottom: 0.32rem; }
.pp .pp-row.w90 { width: 90%; }
.pp .pp-row.w70 { width: 70%; }
.pp .pp-row.w55 { width: 55%; }
.pp .pp-row.w40 { width: 40%; }
.pp .pp-row.accent { background: linear-gradient(90deg,#a5b4fc,#67e8f9); width: 50%; }

/* Cover page mockup */
.pp.pp-cover {
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(99,102,241,0.16) 0%, transparent 65%),
    white;
  padding: 1.1rem 1rem;
  display: flex; flex-direction: column; gap: 0.55rem;
}
.pp.pp-cover .pp-title {
  font-family: "Cal Sans","Inter",sans-serif;
  font-size: 1.25rem; font-weight: 700; line-height: 1.1;
  background: linear-gradient(135deg,#6366f1,#06b6d4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 0.1rem;
  letter-spacing: -0.02em;
}
.pp.pp-cover .pp-badges { display: flex; gap: 0.3rem; flex-wrap: wrap; margin-bottom: 0.3rem; }
.pp.pp-cover .pp-badges .b {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.2rem 0.55rem; border-radius: 999px;
  background: #ede9fe; color: #7c3aed; border: 1px solid #ddd6fe;
}
.pp.pp-cover .pp-badges .b.cy { background:#cffafe; color:#0891b2; border-color:#a5f3fc; }
.pp.pp-cover .pp-hero { display:flex; gap:0.65rem; align-items:flex-start; margin-top:0.2rem; }
.pp.pp-cover .pp-photo {
  width: 60px; height: 70px;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
  background: linear-gradient(135deg,#f1f5f9,#e2e8f0);
  display: inline-flex; align-items:center; justify-content:center;
  font-size: 1.2rem; flex-shrink: 0;
}
.pp.pp-cover .pp-cred { flex: 1; min-width: 0; }
.pp.pp-cover .pp-cred .name { font-weight: 800; font-size: 1.05rem; color: #0f172a; letter-spacing: -0.02em; }
.pp.pp-cover .pp-cred .meta { font-size: 0.7rem; color: #64748b; margin-top: 0.1rem; }
.pp.pp-cover .pp-cred .chip {
  display: inline-block; margin-top: 0.4rem;
  background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0;
  padding: 0.18rem 0.55rem; border-radius: 999px;
  font-size: 0.62rem; font-weight: 700;
}
.pp.pp-cover .pp-fac { font-size: 0.7rem; color: #64748b; margin-top: 0.3rem; }
.pp.pp-cover .pp-fac b { color: #0f172a; font-weight: 700; }

/* Section page mockup */
.pp.pp-section { padding: 0.85rem; }
.pp.pp-section .pp-sechead {
  display: flex; align-items: center; gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.pp.pp-section .pp-sechead .ic {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--indigo-50); color: var(--indigo-600);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.8rem; flex-shrink: 0;
}
.pp.pp-section .pp-sechead h5 { margin: 0; font-size: 0.92rem; }
.pp.pp-section .pp-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem;
  margin-top: 0.3rem;
}
.pp.pp-section .pp-tile {
  border: 1px solid #e2e8f0; border-radius: 8px;
  padding: 0.45rem 0.55rem;
  background: white;
}
.pp.pp-section .pp-tile .lab { font-size: 0.55rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #64748b; }
.pp.pp-section .pp-tile.r { border-color: #fbcfe8; background: #fdf2f8; }
.pp.pp-section .pp-tile.r .lab { color: #be185d; }
.pp.pp-section .pp-tile.b { border-color: #bfdbfe; background: #eff6ff; }
.pp.pp-section .pp-tile.b .lab { color: #1d4ed8; }
.pp.pp-section .pp-tile.g { border-color: #bbf7d0; background: #f0fdf4; }
.pp.pp-section .pp-tile.g .lab { color: #047857; }
.pp.pp-section .pp-tile.y { border-color: #fde68a; background: #fefce8; }
.pp.pp-section .pp-tile.y .lab { color: #b45309; }

/* Behavior chart 4-col mini table */
.pp.pp-table { padding: 0.75rem; }
.pp.pp-table table { width: 100%; border-collapse: collapse; font-size: 0.62rem; }
.pp.pp-table th {
  background: #f8fafc; padding: 0.4rem 0.45rem;
  text-align: left; font-weight: 700; color: #64748b;
  border-bottom: 1px solid #e2e8f0;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.pp.pp-table td {
  padding: 0.4rem 0.45rem; border-bottom: 1px solid #f1f5f9;
  color: #334155; vertical-align: top;
}
.pp.pp-table td.it {
  background: rgba(59,130,246,0.05);
  font-weight: 600; color: #1d4ed8;
}
.pp.pp-table td.iw {
  background: rgba(16,185,129,0.05);
  color: #047857;
}

@media (max-width: 900px) {
  .lp-gallery { grid-template-columns: repeat(2, 1fr); }
  .lp-gallery .g-card.g-feature { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 560px) {
  .lp-gallery { grid-template-columns: 1fr; }
  .lp-gallery .g-card.g-feature { grid-column: span 1; }
}

/* ============================================================
   THEME TABS (Excel-style switcher in header on marketing home)
   ============================================================ */
.theme-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 1rem;
  flex: 1 1 auto;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  padding: 4px 0;
  -ms-overflow-style: -ms-autohiding-scrollbar;
}
.theme-tabs::-webkit-scrollbar { height: 4px; }
.theme-tabs::-webkit-scrollbar-thumb { background: rgba(15,23,42,.18); border-radius: 4px; }

.theme-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--slate-200, #e2e8f0);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #f8fafc;
  color: var(--slate-600, #475569);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  flex: 0 0 auto;
  position: relative;
  top: 1px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.theme-tab:hover {
  background: #fff;
  color: var(--slate-900, #0f172a);
}
.theme-tab.is-active {
  background: #fff;
  color: var(--slate-900, #0f172a);
  border-color: var(--slate-200, #e2e8f0);
  font-weight: 600;
  box-shadow: 0 -2px 0 0 var(--brand, #6366f1) inset;
}
.theme-tab-sw {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.15);
  flex: 0 0 auto;
}
.theme-tab-label { font-size: 12.5px; }

@media (max-width: 900px) {
  .theme-tab-label { display: none; }
  .theme-tab { padding: 6px 8px; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  header.app-header { padding: 0.7rem 1rem; }
  main.container { padding: 0 1rem; margin: 1.5rem auto 2rem; }
  .hero { padding: 2.5rem 1.5rem; }
  .hero h1 { font-size: 2rem; }
  .hero p.lead { font-size: 1.05rem; }
  .card { padding: 1.25rem 1.25rem; }
  .auth-card { padding: 2rem 1.5rem; }
  .kv { grid-template-columns: 1fr; gap: 0.2rem 0.5rem; }
  .kv dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
  .kv dd { padding-bottom: 0.4rem; border-bottom: 1px solid var(--slate-100); margin-bottom: 0.4rem; }
  .kv dd:last-of-type { border-bottom: 0; }
}

/* ============================================================
   DASHBOARD — clean modern layout
   ============================================================ */
.dash-shell { display: flex; flex-direction: column; gap: 1.25rem; }

/* Hero strip — indigo gradient with the user's initials avatar,
   role / workspace / membership chips, and a primary CTA. */
.dash-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.75rem 2rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #6366f1 0%, #7c3aed 60%, #4f46e5 100%);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(99, 102, 241, 0.25);
}
.dash-hero-left { display: flex; align-items: center; gap: 1.25rem; }
.dash-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.55);
  font-size: 1.4rem; font-weight: 700;
  letter-spacing: 0.02em;
}
.dash-hero h1 { margin: 0; font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.dash-hero-sub { margin: 0.35rem 0 0.85rem; font-size: 0.9rem; opacity: 0.85; }
.dash-hero-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.dash-chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.02em;
}
.dash-chip-ok   { background: rgba(16, 185, 129, 0.25); border-color: rgba(110, 231, 183, 0.5); }
.dash-chip-warn { background: rgba(244, 63, 94, 0.25);  border-color: rgba(253, 164, 175, 0.5); }
.dash-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  background: #ffffff;
  color: #4338ca;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 0.75rem;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.dash-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 22px rgba(15, 23, 42, 0.22); }

/* Stat tiles — 4-up colored stripe + icon, big value, hint sub-line. */
.dash-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.dash-tile {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
  padding: 1.1rem 1.2rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.dash-tile::before {
  content: "";
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 4px;
}
.dash-tile-indigo::before  { background: linear-gradient(180deg, #6366f1, #4338ca); }
.dash-tile-emerald::before { background: linear-gradient(180deg, #34d399, #047857); }
.dash-tile-amber::before   { background: linear-gradient(180deg, #fbbf24, #b45309); }
.dash-tile-sky::before     { background: linear-gradient(180deg, #38bdf8, #0369a1); }
.dash-tile-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 0.65rem;
  margin-bottom: 0.6rem;
}
.dash-tile-indigo  .dash-tile-icon { background: #e0e7ff; color: #4338ca; }
.dash-tile-emerald .dash-tile-icon { background: #d1fae5; color: #047857; }
.dash-tile-amber   .dash-tile-icon { background: #fef3c7; color: #b45309; }
.dash-tile-sky     .dash-tile-icon { background: #e0f2fe; color: #0369a1; }
.dash-tile-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-500);
  margin-bottom: 0.15rem;
}
.dash-tile-value { font-size: 1.25rem; font-weight: 700; color: var(--slate-900); }
.dash-tile-sub { font-size: 0.8rem; color: var(--slate-500); margin-top: 0.2rem; }
.dash-tile-sub a { color: var(--indigo-600); text-decoration: none; font-weight: 600; }
.dash-tile-sub a:hover { text-decoration: underline; }

/* Two-column body — workspace details + activity feed. */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.dash-panel {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.dash-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.85rem; }
.dash-panel-head h2 { margin: 0; font-size: 1rem; font-weight: 700; color: var(--slate-800); }
.dash-empty { color: var(--slate-500); font-size: 0.85rem; }

.dash-kv {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0.45rem 0.85rem;
  margin: 0;
  font-size: 0.88rem;
}
.dash-kv dt {
  color: var(--slate-500);
  font-weight: 600;
}
.dash-kv dd {
  margin: 0;
  color: var(--slate-800);
  font-weight: 500;
}

.dash-events { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.dash-events li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.6rem;
  background: var(--slate-50);
}
.dash-event-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  margin-top: 0.45rem;
  flex-shrink: 0;
}
.dash-event-action { font-weight: 600; color: var(--slate-800); font-size: 0.88rem; }
.dash-event-meta { color: var(--slate-500); font-size: 0.75rem; margin-top: 0.1rem; }

@media (max-width: 920px) {
  .dash-hero { flex-direction: column; align-items: flex-start; }
  .dash-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .dash-tiles { grid-template-columns: 1fr; }
  .dash-kv { grid-template-columns: 1fr; }
  .dash-kv dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; }
}

/* ============================================================
   DARK MODE — html.dark scope
   ============================================================
   Triggered by the inline boot script in the layout (which reads
   localStorage `pcp_dark_mode` and the user-preferences meta tag).
   Re-defines the semantic variables, then layers explicit dark
   overrides for every surface that uses a hardcoded slate value
   directly (so we don't have to refactor every existing rule).
   ============================================================ */
html.dark {
  color-scheme: dark;
  --fg: #f1f5f9;
  --muted: #94a3b8;
  --border: #1e293b;
  --card: #111827;
  --grad-soft:    linear-gradient(180deg, #0b1120 0%, #111827 100%);
  --grad-hero:    radial-gradient(60% 90% at 50% 0%, rgba(99,102,241,0.18) 0%, rgba(99,102,241,0) 60%),
                  radial-gradient(50% 70% at 80% 30%, rgba(6,182,212,0.16) 0%, rgba(6,182,212,0) 60%),
                  linear-gradient(180deg, #0b1120 0%, #0f172a 100%);
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.5);
  --shadow-sm: 0 4px 12px -2px rgba(0,0,0,0.55), 0 2px 4px -2px rgba(0,0,0,0.45);
  --shadow:    0 12px 28px -8px rgba(0,0,0,0.65), 0 4px 12px -4px rgba(0,0,0,0.5);
  --shadow-lg: 0 24px 48px -12px rgba(0,0,0,0.7),  0 8px 16px -6px rgba(0,0,0,0.55);
  --shadow-glow: 0 12px 36px -6px rgba(99,102,241,0.55);
}

/* ── Base body / typography ─────────────────────────────── */
html.dark body { background: var(--grad-soft); color: var(--fg); }
html.dark h1, html.dark h2, html.dark h3, html.dark h4 { color: #f8fafc; }
html.dark p   { color: #cbd5e1; }
html.dark small, html.dark .muted { color: var(--muted); }
html.dark a { color: #a5b4fc; }
html.dark a:hover { color: #c7d2fe; }
html.dark a.subtle { color: #94a3b8; }
html.dark a.subtle:hover { color: #c7d2fe; }
html.dark code {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}
html.dark hr { border-color: #1e293b; }
html.dark ::selection { background: rgba(99, 102, 241, 0.35); color: #f8fafc; }

/* ── Cards / containers ─────────────────────────────────── */
html.dark .card,
html.dark .glass-card {
  background: var(--card);
  border-color: #1f2937;
  box-shadow: var(--shadow-xs);
}
html.dark .card.hover:hover { box-shadow: var(--shadow); }
html.dark .auth-card { background: var(--card); border-color: #1f2937; }
html.dark .section-eyebrow { color: #a5b4fc; }
html.dark .kv dt, html.dark .kv dd { color: #cbd5e1; }
html.dark .kv dd { color: #e2e8f0; }
html.dark .kv dd { border-color: #1f2937; }

/* ── Buttons / form controls ────────────────────────────── */
html.dark .btn {
  background: linear-gradient(135deg, #6366f1, #4338ca);
  color: #ffffff;
  border-color: transparent;
}
html.dark .btn:hover { box-shadow: var(--shadow-glow); }
html.dark .btn.secondary,
html.dark .btn.subtle,
html.dark .btn-ghost {
  background: #1e293b;
  color: #e2e8f0;
  border: 1px solid #334155;
}
html.dark .btn.secondary:hover,
html.dark .btn.subtle:hover,
html.dark .btn-ghost:hover { background: #273449; color: #f8fafc; }
html.dark input, html.dark textarea, html.dark select {
  background: #0f172a;
  color: #f1f5f9;
  border-color: #334155;
}
html.dark input::placeholder,
html.dark textarea::placeholder { color: #64748b; }
html.dark input:focus,
html.dark textarea:focus,
html.dark select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.25);
  outline: none;
}
html.dark .field label { color: #cbd5e1; }

/* ── Tables / lists / flash ─────────────────────────────── */
html.dark table { color: #e2e8f0; }
html.dark th, html.dark td { border-color: #1e293b; }
html.dark .flash.notice {
  background: #064e3b;
  color: #a7f3d0;
  border-color: #065f46;
}
html.dark .flash.alert {
  background: #4c0519;
  color: #fecdd3;
  border-color: #881337;
}
html.dark .events li { border-color: #1f2937; color: #cbd5e1; }
html.dark .events li strong { color: #f8fafc; }

/* ── Navigation / header ────────────────────────────────── */
html.dark .site-nav,
html.dark .marketing-header,
html.dark .app-header {
  background: rgba(11, 17, 32, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-color: #1f2937;
}
html.dark .nav-link, html.dark .nav-link a { color: #cbd5e1; }
html.dark .nav-link.active, html.dark .nav-link:hover { color: #c7d2fe; }
html.dark .brand-wordmark { color: #f8fafc; }

/* ── User menu (dots dropdown) ─────────────────────────── */
html.dark .user-menu-panel {
  background: #0f172a;
  border-color: #1f2937;
  color: #e2e8f0;
  box-shadow: var(--shadow);
}
html.dark .user-trigger { color: #cbd5e1; }
html.dark .user-trigger:hover { color: #c7d2fe; background: rgba(99,102,241,0.12); }
html.dark .menu-section { border-color: #1f2937; }
html.dark .menu-section-label { color: #94a3b8; }
html.dark .menu-item { color: #e2e8f0; background: transparent; border: 0; }
html.dark .menu-item:hover { background: rgba(99,102,241,0.12); color: #f8fafc; }
html.dark .menu-item.danger { color: #fda4af; }
html.dark .menu-item.danger:hover { background: rgba(244,63,94,0.15); color: #fecdd3; }
html.dark .menu-icon { color: inherit; }
html.dark .menu-workspace { color: #94a3b8; }
html.dark .menu-workspace strong { color: #f1f5f9; }

/* ── Dashboard cards ────────────────────────────────────── */
html.dark .dash-tile,
html.dark .dash-panel {
  background: #111827;
  border-color: #1f2937;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
html.dark .dash-tile-label { color: #94a3b8; }
html.dark .dash-tile-value { color: #f8fafc; }
html.dark .dash-tile-sub { color: #94a3b8; }
html.dark .dash-tile-sub a { color: #a5b4fc; }
html.dark .dash-panel-head h2 { color: #f1f5f9; }
html.dark .dash-kv dt { color: #94a3b8; }
html.dark .dash-kv dd { color: #e2e8f0; }
html.dark .dash-events li { background: #0f172a; }
html.dark .dash-event-action { color: #f1f5f9; }
html.dark .dash-event-meta   { color: #94a3b8; }
html.dark .dash-empty { color: #94a3b8; }

/* ── Hero / marketing surfaces ──────────────────────────── */
html.dark .hero,
html.dark .feature,
html.dark .cta-block,
html.dark .pricing-card { background: #0f172a; border-color: #1f2937; }
html.dark .hero h1, html.dark .feature h2, html.dark .feature h3 { color: #f8fafc; }
html.dark .hero p,  html.dark .feature p { color: #cbd5e1; }
html.dark .pricing-card .price { color: #f8fafc; }
html.dark .pricing-card.featured {
  background: linear-gradient(180deg, #1e1b4b, #1e293b);
  border-color: #6366f1;
}

/* ── PDF-progress modal etc. ─────────────────────────────── */
html.dark .modal-card,
html.dark .modal-content { background: #0f172a; color: #e2e8f0; border-color: #1f2937; }
html.dark .modal-overlay { background: rgba(0,0,0,0.7); }

/* ── kbd visual ─────────────────────────────────────────── */
html.dark kbd {
  background: #1f2937;
  color: #e2e8f0;
  border-color: #334155;
  box-shadow: 0 1px 0 #000;
}

/* ── First-run onboarding tour ──────────────────────────── */
.onboarding-tour {
  position: fixed; inset: 0;
  z-index: 9998;
  background: rgba(15,23,42,0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}
.onboarding-card {
  pointer-events: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 18px 50px -10px rgba(15,23,42,0.35);
  padding: 1.5rem 1.75rem 1.25rem;
  margin: 0 1.5rem 7rem;
  max-width: 520px;
  width: calc(100% - 3rem);
}
.onboarding-step {
  font: 700 0.7rem/1 "Inter", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6366f1;
  margin-bottom: 0.5rem;
}
.onboarding-card h3 { margin: 0 0 0.5rem; font: 700 1.35rem/1.2 "Inter", sans-serif; }
.onboarding-card p  { margin: 0; color: #475569; line-height: 1.55; font-size: 0.95rem; }
.onboarding-actions { display: flex; gap: 0.5rem; align-items: center; margin-top: 1.25rem; }
.onboarding-btn {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font: 600 0.88rem/1 "Inter", sans-serif;
  cursor: pointer;
  border: 1px solid transparent;
}
.onboarding-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.onboarding-btn-primary { background: #6366f1; color: #fff; border-color: #6366f1; }
.onboarding-btn-primary:hover:not(:disabled) { background: #4f46e5; }
.onboarding-btn-ghost { background: transparent; color: #475569; border-color: #cbd5e1; }
.onboarding-btn-ghost:hover:not(:disabled) { background: #f1f5f9; }
.onboarding-spot {
  position: relative;
  outline: 3px solid #6366f1 !important;
  outline-offset: 4px;
  border-radius: 12px;
  animation: onboardingPulse 1.4s ease-in-out infinite;
  z-index: 9997;
}
@keyframes onboardingPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,0.55); }
  50%      { box-shadow: 0 0 0 14px rgba(99,102,241,0); }
}
html.dark .onboarding-card { background: #1e1b4b; border-color: rgba(255,255,255,0.10); color: #F5F5F7; }
html.dark .onboarding-card p { color: rgba(235,235,245,0.65); }
html.dark .onboarding-btn-ghost { color: rgba(235,235,245,0.85); border-color: rgba(255,255,255,0.20); }
html.dark .onboarding-btn-ghost:hover:not(:disabled) { background: rgba(255,255,255,0.08); }

/* ── Cookie consent banner ──────────────────────────────── */
.cookie-consent {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 9999;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 14px 40px -10px rgba(15,23,42,0.25);
  padding: 1rem 1.25rem;
}
.cookie-consent[hidden] { display: none; }
.cookie-consent-inner {
  display: flex; align-items: center; gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 1100px; margin: 0 auto;
}
.cookie-consent-copy {
  flex: 1; min-width: 260px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #334155;
}
.cookie-consent-copy strong { color: #0f172a; }
.cookie-consent-link { color: #4338ca; text-decoration: underline; }
.cookie-consent-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
.cookie-consent-btn {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font: 600 0.88rem/1 "Inter", sans-serif;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
  border: 1px solid transparent;
}
.cookie-consent-btn-primary { background: #1a1f36; color: #fff; border-color: #1a1f36; }
.cookie-consent-btn-primary:hover { background: #2c3460; }
.cookie-consent-btn-ghost { background: transparent; color: #334155; border-color: #cbd5e1; }
.cookie-consent-btn-ghost:hover { background: #f1f5f9; }

html.dark .cookie-consent {
  background: rgba(22,22,24,0.95);
  border-color: rgba(255,255,255,0.10);
  box-shadow: 0 14px 40px -10px rgba(0,0,0,0.8);
}
html.dark .cookie-consent-copy { color: rgba(235,235,245,0.65); }
html.dark .cookie-consent-copy strong { color: #F5F5F7; }
html.dark .cookie-consent-link { color: #93c5fd; }
html.dark .cookie-consent-btn-primary { background: #7D5AFF; border-color: #7D5AFF; color: #fff; }
html.dark .cookie-consent-btn-primary:hover { background: #9173FF; }
html.dark .cookie-consent-btn-ghost { color: rgba(235,235,245,0.85); border-color: rgba(255,255,255,0.20); }
html.dark .cookie-consent-btn-ghost:hover { background: rgba(255,255,255,0.08); }

/* Beta banner — top of every page on the staging environment so
   admins never confuse it with prod. */
.pcpm-beta-banner {
  position: sticky;
  top: 0;
  z-index: 9500;
  background: repeating-linear-gradient(
    -45deg,
    #f59e0b 0 14px,
    #d97706 14px 28px
  );
  color: #fff;
  font: 700 12px/1 "Inter", sans-serif;
  text-align: center;
  padding: 10px 16px;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px -1px rgba(217,119,6,0.5);
}
.pcpm-beta-banner code {
  background: rgba(0,0,0,0.25);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: monospace;
  font-size: 11px;
}
.pcpm-beta-banner a {
  color: #fff;
  text-decoration: underline;
  margin-left: 4px;
}
.pcpm-beta-banner a:hover { color: #fef3c7; }

/* ============================================================
   Issue logger floating FAB (Issue #9). Rendered on every page
   for admins so they can file issues from anywhere — home,
   marketing, settings, admin, etc. The dialog/picker styles
   ALSO live here so non-editor pages have the full picker UI
   without needing editor_native.css.
   ============================================================ */
.issue-log-fab-wrap { position: fixed; right: 18px; bottom: 18px; z-index: 9000; }
.issue-log-fab {
  width: 52px; height: 52px;
  border: 0; border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  box-shadow: 0 12px 28px -10px rgba(217,119,6,0.55);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.issue-log-fab:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 16px 32px -10px rgba(217,119,6,0.65);
}
.issue-log-fab svg { width: 24px; height: 24px; }
html.dark .issue-log-fab { box-shadow: 0 12px 28px -10px rgba(217,119,6,0.7); }

/* Dialog itself — duplicate of the chunk in editor_native.css so it
   works on non-editor routes too. Identical class names so the
   Stimulus controller has nothing to learn. */
.issue-log-dialog {
  width: 520px; max-width: calc(100vw - 32px);
  padding: 0; border: 0; border-radius: 14px;
  box-shadow: 0 20px 60px -20px rgba(15,23,42,0.45);
  background: #fff; animation: issueLogIn 200ms ease-out;
}
.issue-log-dialog::backdrop {
  background: rgba(15,23,42,0.45);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
@keyframes issueLogIn {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.issue-log-form { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.issue-log-head { display: flex; align-items: center; justify-content: space-between; }
.issue-log-head h2 { font: 700 18px/1.2 "Inter", sans-serif; color: #0f172a; margin: 0; }
.issue-log-close {
  width: 28px; height: 28px; border: 0; background: transparent; border-radius: 999px;
  font-size: 22px; line-height: 1; color: #94a3b8; cursor: pointer;
  transition: background .12s ease;
}
.issue-log-close:hover { background: #f1f5f9; color: #1e293b; }
.issue-log-sub { font-size: 13px; color: #64748b; margin: 0; }
.issue-log-link-wrap { border-top: 1px solid #f1f5f9; padding-top: 10px; text-align: right; }
.issue-log-link { font-size: 12px; color: #6366f1; text-decoration: none; }
.issue-log-link:hover { text-decoration: underline; }

/* Picker overlays */
.issue-log-picker-banner {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%);
  z-index: 100000; display: none; align-items: center; gap: 8px;
  background: #0f172a; color: #f8fafc; font: 600 13px/1 "Inter", sans-serif;
  padding: 10px 16px; border-radius: 999px;
  box-shadow: 0 8px 30px -8px rgba(15,23,42,0.5);
  animation: issueLogPickerBannerIn 220ms ease-out;
  pointer-events: none;
}
@keyframes issueLogPickerBannerIn {
  from { opacity: 0; transform: translate(-50%, -8px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.issue-log-picker-banner-dot {
  width: 8px; height: 8px; border-radius: 999px; background: #f87171;
  animation: issueLogPickerPulse 1.4s ease-in-out infinite;
}
@keyframes issueLogPickerPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.35); }
}
.issue-log-picker-banner kbd {
  background: #1e293b; color: #94a3b8; border-radius: 4px;
  padding: 2px 6px; font-family: monospace; font-size: 11px;
}
.issue-log-picker-outline {
  position: fixed; z-index: 99998; display: none; pointer-events: none;
  border: 2px solid #6366f1; background: rgba(99,102,241,0.12); border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.4), 0 4px 18px -4px rgba(99,102,241,0.6);
  transition: top .08s ease, left .08s ease, width .08s ease, height .08s ease;
}
.issue-log-picker-label {
  position: fixed; z-index: 99999; display: none; pointer-events: none;
  background: #6366f1; color: #ffffff; font: 700 11px/1.2 "Inter", sans-serif;
  padding: 5px 10px; border-radius: 6px;
  box-shadow: 0 4px 12px -3px rgba(99,102,241,0.5); max-width: 320px;
}
.issue-log-picker-label strong { display: block; font-weight: 800; }
.issue-log-picker-label span {
  display: block; font-weight: 500; font-size: 10px;
  color: rgba(255,255,255,0.85); margin-top: 2px; font-family: monospace;
}
body.issue-log-picking { cursor: crosshair !important; }
body.issue-log-picking * { cursor: crosshair !important; }
body.issue-log-picking .issue-log-picker-banner,
body.issue-log-picking .issue-log-picker-banner * { cursor: default !important; }

/* Captured-context card */
.issue-log-context {
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  border: 1.5px solid #c7d2fe; border-radius: 12px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 6px;
}
.issue-log-context-row { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.issue-log-context-label {
  font: 700 10.5px/1 "Inter", sans-serif; text-transform: uppercase;
  letter-spacing: 0.05em; color: #4338ca; min-width: 56px; flex-shrink: 0;
}
.issue-log-context-val { color: #1e293b; }
.issue-log-context-code {
  font: 600 11px/1.2 monospace; background: rgba(99,102,241,0.18); color: #3730a3;
  padding: 2px 6px; border-radius: 4px;
}
.issue-log-repick {
  align-self: flex-start; margin-top: 4px;
  font: 700 11px/1 "Inter", sans-serif; color: #4338ca;
  background: transparent; border: 1px solid #c7d2fe; border-radius: 999px;
  padding: 5px 10px; cursor: pointer;
}
.issue-log-repick:hover { background: #e0e7ff; border-color: #6366f1; }
.issue-log-mini-summary {
  font-size: 12.5px; color: #475569; padding: 6px 0;
  border-bottom: 1px dashed #e2e8f0; margin-bottom: 4px;
}
.issue-log-optional { font-weight: 500; color: #94a3b8; font-size: 13px; }

/* Step progress + chips */
.issue-log-stepbar { height: 4px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.issue-log-stepbar-fill { height: 100%; background: linear-gradient(90deg, #6366f1, #8b5cf6); transition: width 240ms cubic-bezier(0.22,1,0.36,1); }
.issue-log-steplabel { font-size: 11px; font-weight: 700; color: #64748b; letter-spacing: 0.04em; text-transform: uppercase; }
.issue-log-q { font: 700 18px/1.25 "Inter", sans-serif; color: #0f172a; margin: 0; }
.issue-log-chip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.issue-log-chip-grid-1col { grid-template-columns: 1fr; }
.issue-log-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; font: 700 13px/1.25 "Inter", sans-serif;
  color: #1e293b; background: #f8fafc; border: 1.5px solid #e2e8f0;
  border-radius: 12px; cursor: pointer; text-align: left;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.issue-log-chip:hover {
  background: #eef2ff; border-color: #6366f1; transform: translateY(-1px);
  box-shadow: 0 6px 14px -6px rgba(99,102,241,0.4);
}
.issue-log-chip.is-on { background: #6366f1; color: #fff; border-color: #6366f1; }
.issue-log-chip-icon { font-size: 18px; line-height: 1; flex-shrink: 0; }
.issue-log-chip-label { flex: 1; }

/* Sev row + back/submit */
.issue-log-sev-row { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.issue-log-sev-label { font: 700 11px/1 "Inter", sans-serif; text-transform: uppercase; letter-spacing: 0.05em; color: #475569; margin-right: 4px; }
.issue-log-sev-chip {
  padding: 6px 12px; font: 700 12px/1 "Inter", sans-serif;
  color: #1e293b; background: #f8fafc; border: 1.5px solid #e2e8f0;
  border-radius: 999px; cursor: pointer;
}
.issue-log-sev-chip:hover { background: #eef2ff; border-color: #6366f1; }
.issue-log-sev-chip.is-on { background: #6366f1; color: #fff; border-color: #6366f1; }
.issue-log-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.issue-log-back { padding: 8px 14px; font: 700 13px/1 "Inter", sans-serif; color: #475569; background: transparent; border: 0; border-radius: 8px; cursor: pointer; }
.issue-log-back:hover { background: #f1f5f9; color: #1e293b; }
.issue-log-submit { margin-left: auto; padding: 10px 18px; font: 700 13px/1 "Inter", sans-serif; border: 0; border-radius: 10px; cursor: pointer; background: linear-gradient(135deg, #10b981, #059669); color: #fff; }
.issue-log-submit:hover { box-shadow: 0 6px 16px -6px rgba(16,185,129,0.55); }
.issue-log-error { color: #b91c1c; font-size: 12px; min-height: 16px; }

/* Screenshot tiles */
.issue-log-shot { background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.issue-log-shot-pending { font-style: italic; color: #94a3b8; }
.issue-log-shot-label {
  font: 700 11px/1.4 "Inter", sans-serif; text-transform: uppercase;
  letter-spacing: 0.05em; color: #475569;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.issue-log-shot-priv {
  font-size: 10px; font-weight: 600; text-transform: none; letter-spacing: 0;
  color: #065f46; background: #d1fae5; border: 1px solid #6ee7b7;
  border-radius: 999px; padding: 2px 8px;
}
.issue-log-shot-img { display: block; max-width: 100%; max-height: 160px; height: auto; object-fit: contain; border-radius: 6px; background: #ffffff; border: 1px solid #e2e8f0; }
.issue-log-shot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.issue-log-shot-tile { display: flex; flex-direction: column; gap: 4px; margin: 0; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 6px; min-height: 100px; justify-content: center; }
.issue-log-shot-tilelbl { font: 700 9px/1 "Inter", sans-serif; text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; }
.issue-log-shot-tile.issue-log-shot-pending { border-style: dashed; background: #f8fafc; }
.issue-log-shot-pending-msg { font-size: 11px; color: #94a3b8; font-style: italic; text-align: center; padding: 12px 4px; }
.issue-log-shot-err { font-size: 10px; color: #b91c1c; background: #fee2e2; border: 1px solid #fecaca; border-radius: 4px; padding: 4px 6px; text-align: center; }
