/* ============================================================
   moodyboards — what's your aesthetic?
   White chrome. One simple sans (system-ui). The aesthetics' own
   palettes and fonts do the visual work — the chrome stays out
   of the way and lets the brands sing.
   ============================================================ */

:root {
  /* MoodyBoards house font — DM Sans for body/forms/copy, Archivo for headlines/buttons. */
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Plain white canvas everywhere */
  --bg: #ffffff;
  --bg-soft: #ffffff;
  --bg-card: #ffffff;
  --ink: #0a0a0a;
  --ink-soft: #1f1f1f;
  --ink-mute: #666666;
  --ink-dim: #a8a8a8;
  --line: rgba(10,10,10,0.08);
  --line-strong: rgba(10,10,10,0.18);
  --accent: #0a0a0a;
  --accent-ink: #ffffff;

  --good: #0e7c4d;
  --bad: #a8281a;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 28px;

  --t-fast: 140ms cubic-bezier(0.4,0,0.2,1);
  --t: 220ms cubic-bezier(0.4,0,0.2,1);
  --t-spring: 480ms cubic-bezier(0.34,1.56,0.64,1);

  --max: 1200px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body {
  /* Kill horizontal scroll on mobile. `overflow-x: clip` rather than
     `hidden` so sticky-positioned elements (navbar) still pin correctly. */
  overflow-x: clip;
  max-width: 100%;
}
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* Defensive: never let an image push the viewport wider than the screen. */
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
[data-route], [data-action], a.btn, button.btn, .strip-tile, .arc-tile, .arc-rel, .opt, .gen-upload-btn, label[for] { cursor: pointer; }

/* Lock state: while a moodboard is rendering, nav is disabled.
   Pointer events are blocked at the click handler; this is just visual. */
body.is-generating [data-route],
body.is-generating .navbar nav a {
  opacity: 0.35;
  cursor: progress;
}
body.is-generating .navbar { pointer-events: auto; }
body.is-generating .navbar::after {
  content: '· rendering…';
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  background: var(--bg);
  padding: 4px 10px;
  pointer-events: none;
}
img { max-width: 100%; display: block; }
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: var(--ink) !important;
}
ul { list-style: none; }

/* ----------- Reusable ----------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--ink-mute);
  font-weight: 600;
}
.dim { color: var(--ink-mute); }
.small { font-size: 13px; }
.center { text-align: center; }
.link { background: none; border: 0; color: var(--ink-mute); cursor: pointer; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; padding: 6px 4px; }
.link[disabled] { opacity: 0.35; cursor: not-allowed; text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform var(--t-fast), background var(--t), color var(--t), border-color var(--t);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--ink); color: var(--xp-accent, #fff); font-family: var(--xp-display); font-weight: 700; }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.14); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); font-family: var(--xp-display); font-weight: 700; }
.btn.ghost:hover { background: rgba(10,10,10,0.04); }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }

/* Email confirmation banner — shown under the navbar across all
   authenticated routes until session.user.email_confirmed_at flips. */
.confirm-banner {
  position: sticky; top: 60px; z-index: 40;
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 24px;
  background: #1a1a1a; color: #fff;
  font-size: 13px; line-height: 1.4;
}
.confirm-banner-text { font-weight: 500; }
.confirm-banner-actions { display: inline-flex; gap: 14px; }
.confirm-banner-link {
  appearance: none; background: transparent; border: 0;
  font: inherit; color: #fff; text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer; padding: 0;
}
.confirm-banner-link:hover { opacity: 0.8; }
.confirm-banner-link:disabled { opacity: 0.6; cursor: not-allowed; }
@media (max-width: 720px) { .confirm-banner { padding: 10px 16px; top: 56px; } }

/* Confirm-email screen — reached after signup or via the banner */
.confirm-email-card {
  max-width: 440px; margin: 0 auto;
  padding: 0;
  background: #fff; border: none;
  text-align: center;
  display: flex; flex-direction: column; gap: 16px; align-items: center;
}
.confirm-email-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #f7f7f5; color: var(--ink);
  margin-bottom: 4px;
}
.confirm-email-h { font-family: var(--xp-display); font-size: 36px; font-weight: 900; letter-spacing: -0.04em; margin: 0; color: var(--ink); }
.confirm-email-lead { font-size: 18px; color: var(--xp-ink2); margin: 0; font-family: var(--font); }
.confirm-email-lead strong { color: var(--ink); font-weight: 600; word-break: break-all; }
.confirm-email-sub { font-size: 15px; color: var(--xp-ink3); margin: 0; }
.confirm-email-actions {
  display: flex; flex-direction: column; gap: 10px; width: 100%;
  margin-top: 8px;
}
.confirm-email-actions .btn {
  width: 100%; font-family: var(--xp-display); font-weight: 700;
  border-radius: 999px; font-size: 16px; padding: 16px 24px;
}
.confirm-email-actions .btn.primary { background: var(--ink); color: var(--xp-accent); }
.confirm-email-actions .btn.ghost { border: 1.5px solid var(--ink); }
.confirm-email-foot { font-size: 15px; color: var(--xp-ink3); margin: 8px 0 0; }
.confirm-email-foot .link {
  background: transparent; border: 0; color: var(--ink); text-decoration: underline;
  text-underline-offset: 2px; font: inherit; cursor: pointer; padding: 0;
}

/* ----------- Nav ----------- */
/* Audience toggle banner — sits above the navbar on the marketing pages. */
.audience-banner {
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
  background: var(--ink); color: #fff;
  padding: 10px 16px;
  font-size: 13px;
  z-index: 51;
}
.audience-banner-label { color: rgba(255,255,255,0.65); font-weight: 500; }
.audience-banner-toggle {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.audience-banner-pill {
  appearance: none; background: transparent; color: rgba(255,255,255,0.7);
  border: 0; border-radius: 999px;
  padding: 6px 14px;
  font: inherit; font-size: 13px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.audience-banner-pill:hover { color: #fff; }
.audience-banner-pill.is-active {
  background: #fff; color: var(--ink);
}
@media (max-width: 540px) {
  .audience-banner { flex-direction: column; gap: 6px; padding: 10px 12px; }
  .audience-banner-pill { padding: 5px 12px; font-size: 12px; }
}
.sale-banner {
  text-decoration: none; cursor: pointer; gap: 10px; flex-wrap: wrap;
  transition: background var(--t-fast);
}
.sale-banner:hover { background: var(--ink-soft); }
.sale-banner-spark { color: var(--xp-accent); font-size: 14px; line-height: 1; }
.sale-banner-text { color: rgba(255,255,255,0.82); font-weight: 500; }
.sale-banner-text strong { color: #fff; font-weight: 700; }
.sale-banner-cta { color: var(--xp-accent); font-weight: 700; }
@media (max-width: 540px) {
  .sale-banner { flex-direction: row; padding: 9px 12px; font-size: 12px; }
  .sale-banner-text { text-align: center; }
}

.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 24px;
  margin-bottom: 32px;
}
@media (min-width: 1200px) { .navbar { padding: 14px 32px; } }
@media (max-width: 720px)  { .navbar { padding: 12px 16px; } }
.navbar > .brand { justify-self: start; }
.navbar > .nav-right { justify-self: end; }
.navbar .brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: -0.01em; font-size: 16px;
}
.navbar .brand .brand-logo {
  height: 26px;
  width: auto;
  display: block;
}
body:has(.xp) .navbar .brand .brand-logo { height: 38px; }
.brand.brand-script {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 42px;
  letter-spacing: 0;
  line-height: 1;
  color: var(--ink);
}
.nav-center { display: flex; gap: 36px; align-items: center; justify-content: center; }
.nav-center a { color: var(--ink); font-size: 15px; transition: opacity var(--t-fast); font-weight: 500; font-family: var(--font); }
.nav-center a:hover { opacity: 0.7; }

.nav-right { display: flex; gap: 14px; align-items: center; }
.nav-right .nav-link {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font);
  transition: opacity var(--t-fast);
  margin-right: 10px;
}
.nav-right .nav-link:hover { opacity: 0.7; }
.nav-cta {
  padding: 10px 18px !important;
  font-size: 14px !important;
  font-weight: 700;
  font-family: var(--xp-display) !important;
  letter-spacing: -0.02em;
  background: var(--ink) !important;
  color: var(--xp-accent) !important;
  color: var(--xp-accent) !important;
}
.nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0;
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.nav-avatar:hover { transform: scale(1.04); opacity: 0.9; }

/* Signed-in pills: "Moodboards" (active pill) + "+ Generate" */
.nav-pill {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-mute);
  padding: 8px 16px;
  border-radius: 999px;
  transition: background var(--t-fast), color var(--t-fast);
  line-height: 1;
}
.nav-pill:hover { color: var(--ink); }
.nav-pill.active {
  background: rgba(0,0,0,0.05);
  color: var(--ink);
  font-weight: 600;
}
.nav-plus { color: var(--ink-mute); }

/* Credit balance chip in the nav (signed-in users) */
.nav-credits {
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10,10,10,0.05);
  letter-spacing: -0.005em;
}
.nav-credits small {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-mute);
  margin-left: 2px;
}

.nav-upgrade-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: #f3f3f1;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.005em;
  transition: background 0.15s;
}
.nav-upgrade-btn:hover { background: #e8e8e5; }

/* User email + dropdown */
.nav-user { position: relative; }
.nav-email {
  background: transparent;
  border: 0;
  color: var(--ink-mute);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 0;
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--t-fast);
}
.nav-email:hover { color: var(--ink); }

/* Avatar variant — used instead of plain email text. Circular button
   with the user's initial. Keeps the existing dropdown wiring. */
.nav-email.nav-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  max-width: 32px;
  padding: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0;
  transition: opacity var(--t-fast);
}
.nav-email.nav-avatar:hover { color: #ffffff; opacity: 0.85; }

/* Help glyph next to the avatar — opens /how-it-works. Same circular
   footprint as the avatar so they read as a paired set. */
/* Nav icon group — Help and History share a soft gray pill so they
   read as one intentional cluster rather than floating icons. */
.nav-help,
.nav-history-btn {
  appearance: none; border: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #f7f7f5;
  color: var(--ink);
  cursor: pointer;
  position: relative;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-help:hover,
.nav-history-btn:hover {
  background: #ededea;
  color: var(--ink);
}
.nav-history { position: relative; display: inline-flex; }
.nav-history-btn.has-label {
  width: auto; height: 34px;
  padding: 0 13px; gap: 7px;
  border-radius: 17px;
}
.nav-history-text { font-size: 13px; font-weight: 500; line-height: 1; white-space: nowrap; }
.nav-history-btn-empty { /* same color/style as the populated icon */ }
.nav-history-badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 16px; height: 16px;
  background: var(--ink); color: #fff;
  border-radius: 999px;
  font-size: 10px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
}
.nav-history-badge.is-pending { background: transparent; border: 0; padding: 0; min-width: 10px; height: 10px; top: 4px; right: 4px; }
.nav-history-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #2a7df2;
  box-shadow: 0 0 0 2px #fff;
  animation: nav-history-pulse 1.6s ease-in-out infinite;
}
@keyframes nav-history-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.7); opacity: 0.6; }
}
.nav-history-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(10,10,10,0.10);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility 0s linear var(--t-fast);
  z-index: 60;
  max-height: 460px;
  overflow-y: auto;
}
.nav-history.open .nav-history-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility 0s;
}
.nav-history-head {
  padding: 8px 14px 6px;
  font-size: 11px; font-weight: 600;
  color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.nav-history-empty {
  padding: 14px;
  font-size: 13px; color: var(--ink-mute);
  text-align: center;
}
.nav-history-list {
  list-style: none; padding: 0; margin: 0;
}
.nav-history-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 14px;
  cursor: default;
  transition: background var(--t-fast);
  border-left: 3px solid transparent;
}
.nav-history-item[data-action] { cursor: pointer; }
.nav-history-item[data-action]:hover { background: #f7f7f7; }
.nav-history-item.is-unseen { border-left-color: #2a7df2; background: rgba(42, 125, 242, 0.04); }
.nav-history-icon {
  flex: 0 0 24px;
  width: 24px; height: 24px; border-radius: 50%;
  background: #f0f0f0;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.nav-history-item.is-failed .nav-history-icon { background: rgba(196,61,61,0.10); color: #c43d3d; }
.nav-history-item:not(.is-failed):not(.is-pending) .nav-history-icon { background: rgba(50,160,90,0.12); color: #2f8c50; }
.nav-history-spinner {
  width: 12px; height: 12px;
  border: 2px solid rgba(10,10,10,0.18);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: nav-history-spin 0.9s linear infinite;
}
@keyframes nav-history-spin { to { transform: rotate(360deg); } }
.nav-history-body {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0;
  flex: 1;
}
.nav-history-label {
  font-size: 13px; font-weight: 500; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-history-meta {
  font-size: 11px; color: var(--ink-mute);
  letter-spacing: 0.01em;
}
.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(10,10,10,0.08);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility 0s linear var(--t-fast);
  z-index: 50;
}
.nav-user.open .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility 0s;
}
.nav-menu-item {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t-fast);
}
.nav-menu-item:hover { background: rgba(0,0,0,0.04); }

@media (max-width: 720px) {
  /* Drop the 3-col grid entirely on mobile — with nav-center hidden,
     the empty middle column was leaving the right group floating
     mid-page instead of flush right. Flex + space-between is correct
     for a 2-item layout (brand · right-group). */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  .nav-center { display: none; }
  .nav-right .nav-link { display: none; }
  .nav-email { max-width: 140px; }
  /* On mobile: keep tier pill + avatar visible; collapse the rest into
     the hamburger drawer below. */
  .nav-right .nav-help,
  .nav-right .nav-history { display: none; }
  .nav-right { gap: 10px; }
}
@media (min-width: 721px) {
  /* Hamburger is mobile-only. */
  .nav-hamburger, .mobile-nav-drawer { display: none !important; }
}
/* Phone landscape (e.g. iPhone rotated): wider than the 720px breakpoint
   but very short. The full marketing nav — logo + links + Log in + Get
   started, all bumped to 22px on .xp — overflows and breaks the Log in
   button. Collapse to the hamburger drawer, mirroring mobile portrait.
   The max-height guard keeps iPads (≥768px tall) on the full nav. */
@media (max-width: 932px) and (max-height: 480px) {
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  .nav-center { display: none !important; }
  .nav-right .nav-link { display: none !important; }
  .nav-right .nav-help,
  .nav-right .nav-history { display: none !important; }
  .nav-hamburger { display: inline-flex !important; }
  .mobile-nav-drawer { max-height: calc(100vh - 64px); overflow-y: auto; }
  .mobile-nav-drawer.open { display: flex !important; }
}
/* Marketing / auth nav runs at 22px (see .xp / .auth overrides below), so it
   needs far more room than the app nav. Below ~1024px the links + Log in +
   Get started crowd and "Log in" wraps onto two lines (any window height) —
   collapse to the hamburger before that. Scoped to .xp / .auth so the lighter
   logged-in app nav keeps its full layout down to the 720px breakpoint. */
@media (max-width: 1024px) {
  body:has(.xp) .navbar,
  body:has(.auth) .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  body:has(.xp) .nav-center,
  body:has(.auth) .nav-center { display: none !important; }
  body:has(.xp) .nav-right .nav-link,
  body:has(.auth) .nav-right .nav-link { display: none !important; }
  body:has(.xp) .nav-hamburger,
  body:has(.auth) .nav-hamburger { display: inline-flex !important; }
  body:has(.xp) .mobile-nav-drawer,
  body:has(.auth) .mobile-nav-drawer { max-height: calc(100vh - 64px); overflow-y: auto; }
  body:has(.xp) .mobile-nav-drawer.open,
  body:has(.auth) .mobile-nav-drawer.open { display: flex !important; }
}

/* Hamburger button */
.nav-hamburger {
  appearance: none; background: transparent; border: 0;
  width: 36px; height: 36px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  cursor: pointer;
  border-radius: 8px;
  transition: background var(--t-fast);
}
.nav-hamburger:hover { background: #f7f7f5; }
.nav-hamburger-bar {
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.nav-hamburger.is-open .nav-hamburger-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.is-open .nav-hamburger-bar:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open .nav-hamburger-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px 16px 16px;
  z-index: 60;
  display: none;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 16px 32px rgba(10,10,10,0.10);
}
.mobile-nav-drawer.open { display: flex; }
.mobile-nav-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 8px;
  font-size: 16px; font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid #f3f3f1;
  cursor: pointer;
}
.mobile-nav-item:last-child { border-bottom: 0; }
.mobile-nav-item.is-active { color: var(--ink); font-weight: 600; }
.mobile-nav-pip {
  min-width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 0 6px;
}
.mobile-nav-pip.is-pending {
  background: #2a7df2;
  min-width: 10px; height: 10px; padding: 0;
  animation: nav-history-pulse 1.6s ease-in-out infinite;
}

/* ----------- Footer ----------- */
.site-footer {
  background: var(--bg);
  padding: 32px var(--gutter);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--ink-mute);
}

/* ============================================================
   HOME — hero + explainer + grid
   ============================================================ */
.hero {
  padding: clamp(60px, 11vw, 140px) var(--gutter) clamp(40px, 6vw, 80px);
  background: var(--bg);
}
.hero-inner { max-width: var(--max); margin: 0 auto; }
.hero h1 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin-top: 18px;
  max-width: 22ch;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--ink-mute);
}
.hero .hero-lead {
  margin-top: 28px;
  max-width: 56ch;
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--ink-soft);
  line-height: 1.45;
}
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

.strip {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  max-width: var(--max);
}
@media (max-width: 800px) { .strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 460px) { .strip { grid-template-columns: repeat(2, 1fr); } }
.strip-tile {
  aspect-ratio: 1;
  border-radius: var(--r);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 16px 14px;
  letter-spacing: -0.01em;
  transition: transform var(--t), filter var(--t);
  overflow: hidden;
}
.strip-tile:hover { transform: translateY(-2px); filter: brightness(1.05); }
.strip-name {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  word-break: break-word;
}
.strip-font {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  opacity: 0.7;
  margin-top: auto;
  font-family: var(--font);
}

/* ----------- Empty receipt — white, divider-led ----------- */
.empty-receipt {
  background: var(--bg);
  padding: clamp(56px, 8vw, 96px) var(--gutter);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  text-align: center;
}
.empty-receipt-img {
  width: clamp(220px, 32vw, 360px);
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 44px rgba(10, 10, 10, 0.10));
  animation: bobble 4s ease-in-out infinite;
}
@keyframes bobble {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50%      { transform: translateY(-8px) rotate(1.2deg); }
}
.empty-receipt h2 {
  font-size: clamp(36px, 5.5vw, 64px);
  letter-spacing: -0.04em;
  font-weight: 600;
  line-height: 1.0;
  color: var(--ink);
}
.empty-receipt p {
  font-size: 17px;
  color: var(--ink-mute);
  max-width: 36ch;
}
.empty-receipt .btn { margin-top: 8px; }

.explainer {
  background: var(--bg);
  padding: clamp(48px, 7vw, 96px) var(--gutter);
}
.explainer-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
@media (max-width: 800px) { .explainer-inner { grid-template-columns: 1fr; } }
.ex-col .ex-num {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.ex-col h3 {
  font-size: clamp(24px, 2.4vw, 34px);
  letter-spacing: -0.025em;
  font-weight: 600;
  line-height: 1.1;
}
.ex-col p { margin-top: 12px; color: var(--ink-soft); font-size: 16px; max-width: 32ch; }

/* ============================================================
   PRICING (home + standalone)
   ============================================================ */
.pricing-section {
  padding: clamp(64px, 9vw, 120px) var(--gutter);
  background: var(--bg);
}
.pricing-inner { max-width: var(--max); margin: 0 auto; }
.pricing-section h2 {
  font-family: var(--xp-display);
  font-size: clamp(34px, 4.5vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1.0;
  font-weight: 900;
  margin-top: 8px;
  max-width: 18ch;
}
.pricing-lead { color: var(--ink-soft); font-size: 17px; max-width: 56ch; margin-top: 14px; line-height: 1.5; }

.pricing-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1100px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-tier {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.pricing-tier.featured {
  border-color: var(--ink);
  box-shadow: 0 12px 32px rgba(10,10,10,0.06);
}
.pricing-tag {
  position: absolute;
  top: -10px;
  left: 22px;
  background: var(--ink);
  color: var(--bg);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
}
.pricing-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.pricing-price {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
}
.pricing-price .pricing-per {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0;
}
.pricing-credits {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 4px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pricing-features li {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
  padding-left: 18px;
  position: relative;
}
.pricing-features li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--ink-mute);
}
.pricing-tier .btn { margin-top: auto; align-self: flex-start; }

/* ============================================================
   FINAL CTA (home foot)
   ============================================================ */
.final-cta {
  padding: clamp(64px, 9vw, 120px) var(--gutter);
  background: var(--bg);
  text-align: center;
}
.final-cta-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.final-cta-inner h2 {
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-weight: 600;
}
.final-cta-inner p { color: var(--ink-soft); font-size: 17px; max-width: 40ch; }
.final-cta-inner .btn { margin-top: 8px; }

.grid-section {
  padding: clamp(56px, 8vw, 112px) var(--gutter);
  background: var(--bg);
}
.grid-inner { max-width: var(--max); margin: 0 auto; }
.grid-inner .eyebrow { display: block; margin-bottom: 28px; }
.archetype-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .archetype-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .archetype-grid { grid-template-columns: 1fr; } }
.arc-tile {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px;
  border-radius: var(--r-lg);
  background: #ffffff;
  color: var(--ink);
  min-height: 240px;
  border: 1px solid var(--line);
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.arc-tile:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 12px 28px rgba(10,10,10,0.08); }
.arc-tile .arc-swatches { display: flex; gap: 0; height: 56px; margin-bottom: 8px; border-radius: 10px; overflow: hidden; }
.arc-tile .arc-swatches span { flex: 1; min-width: 10px; }
.arc-tile .arc-name { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin-top: auto; }
.arc-tile .arc-tag { font-size: 13px; color: var(--ink-mute); }

/* ============================================================
   QUIZ
   ============================================================ */
.quiz {
  max-width: 720px; margin: 0 auto;
  padding: 48px var(--gutter) 80px;
}
.quiz-q { margin-top: 8px; margin-bottom: 28px; }
.quiz-q h2 {
  margin-top: 12px;
  font-family: var(--xp-display);
  font-size: clamp(32px, 4.5vw, 52px);
  letter-spacing: -0.04em;
  font-weight: 900;
  line-height: 1.0;
  max-width: 22ch;
}

.quiz-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (max-width: 600px) { .quiz-options { grid-template-columns: 1fr; } }
.opt {
  display: flex; align-items: flex-start; gap: 14px;
  text-align: left;
  padding: 18px 20px;
  background: var(--bg);
  border-radius: var(--r);
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  min-height: 88px;
}
.opt:hover { box-shadow: 0 8px 24px rgba(10,10,10,0.08); transform: translateY(-1px); }
.opt.selected { background: var(--ink); color: var(--bg); }
.opt.selected .opt-num { background: var(--bg); color: var(--ink); }
.opt.selected .opt-sub { color: rgba(255,255,255,0.7); }
.opt:active { transform: scale(0.99); }
.opt-num {
  flex: 0 0 28px;
  width: 28px; height: 28px;
  border-radius: 999px;
  background: rgba(10,10,10,0.06);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0;
}
.opt.selected .opt-num { background: rgba(255,255,255,0.18); }
.opt-label { font-size: 17px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; }
.opt-sub { font-size: 13px; color: var(--ink-mute); margin-top: 4px; line-height: 1.35; }


/* ============================================================
   MOODBOARD GRID — the visual identity of each archetype
   ============================================================ */
.moodboard {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-auto-rows: 180px;
  gap: 6px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (max-width: 900px) { .moodboard { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; } }
@media (max-width: 600px) { .moodboard { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; gap: 4px; } }

.mb-cell {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  transition: transform var(--t);
}
.mb-cell:hover { transform: scale(1.005); }

.mb-keyword {
  grid-row: span 2;
  grid-column: span 1;
  font-size: clamp(48px, 8vw, 124px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.9;
  text-align: center;
  word-break: break-word;
}
@media (max-width: 900px) { .mb-keyword { grid-row: span 2; grid-column: span 2; font-size: clamp(56px, 10vw, 96px); } }

.mb-color { /* solid color block, no content */ }

.mb-quote {
  grid-row: span 2;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 24px;
  text-align: left;
}
.mb-quote .mb-quote-mark {
  font-size: 96px;
  line-height: 0.6;
  font-weight: 600;
  margin-bottom: -10px;
  letter-spacing: -0.06em;
}
.mb-quote p {
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
@media (max-width: 900px) { .mb-quote { grid-row: span 1; grid-column: span 2; } }

.mb-typepair {
  flex-direction: column;
  gap: 6px;
}
.mb-tp-display {
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.mb-tp-meta {
  font-size: 11px;
  color: var(--ink-mute);
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mb-hex {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  letter-spacing: 0;
  align-items: flex-end;
  justify-content: flex-start;
}
.mb-hex .mb-hex-code {
  font-weight: 600;
}

.mb-name {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 6px;
}
.mb-name .eyebrow { font-size: 10px; }
.mb-name-text {
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

/* ============================================================
   RESULT CARD
   ============================================================ */
.result {
  max-width: 880px; margin: 0 auto;
  padding: 32px var(--gutter) 80px;
  display: flex; flex-direction: column; gap: 32px;
}
.card-shell {
  background: var(--bg);
  color: var(--fg);
  border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 48px) 0;
  display: flex; flex-direction: column; gap: 22px;
}
.card-header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg); opacity: 0.6;
  font-weight: 600;
}
.card-name {
  font-family: var(--xp-display);
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 900;
  display: flex; flex-direction: column; gap: 8px;
}
.card-name .card-with {
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 500;
  letter-spacing: -0.01em;
  opacity: 0.7;
}
.card-tagline {
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  opacity: 0.85;
  max-width: 24ch;
}
.card-palette {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px;
}
.card-palette span {
  position: relative;
  aspect-ratio: 1.2;
  border-radius: 8px;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 8px;
}
.card-palette span em {
  font-style: normal;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  background: rgba(255,255,255,0.85);
  color: #0a0a0a;
  padding: 2px 5px;
  border-radius: 4px;
  letter-spacing: 0;
}
.card-mood {
  font-size: 17px;
  line-height: 1.5;
  max-width: 56ch;
  color: var(--fg);
  opacity: 0.92;
}
.card-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
  padding-top: 18px;
}
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }
.card-grid > div .eyebrow { color: var(--fg); opacity: 0.55; display: block; margin-bottom: 6px; }
.card-grid > div p { font-size: 15px; line-height: 1.4; }
.card-grid > div p.dim { font-size: 13px; opacity: 0.6; }
.card-grid > div a { text-decoration: underline; text-underline-offset: 3px; }

.card-footer {
  margin-top: 8px;
  display: flex; justify-content: space-between;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 600;
  opacity: 0.5;
  padding-top: 14px;
}

.result-actions {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}

.link-card {
  display: block;
  background: var(--bg);
  border-radius: var(--r-lg);
  padding: 24px 0;
  transition: transform var(--t-fast);
}
.link-card:hover { transform: translateY(-2px); }
.link-card .eyebrow { display: block; margin-bottom: 8px; }
.link-card h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.link-card p { margin-top: 6px; font-size: 14px; }

/* ============================================================
   ARCHETYPE PAGE
   ============================================================ */
.arc-page {
  background: var(--bg);
  padding: 32px 0 80px;
}
.arc-page .moodboard { margin-bottom: 56px; }
.arc-shell {
  max-width: 760px; margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; flex-direction: column; gap: 36px;
}
.arc-header { display: flex; flex-direction: column; gap: 14px; }
.arc-h1 {
  font-family: var(--xp-display);
  font-size: clamp(56px, 9vw, 124px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 900;
  margin-top: 8px;
}
.arc-tagline {
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink-soft);
  max-width: 22ch;
}
.arc-mood {
  font-size: 19px; line-height: 1.5;
  max-width: 56ch;
  color: var(--ink-soft);
}
.arc-section {
  display: flex; flex-direction: column; gap: 12px;
  padding-top: 24px;
}
.arc-section > .eyebrow { display: block; }

.arc-palette { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
@media (max-width: 600px) { .arc-palette { grid-template-columns: repeat(3, 1fr); } }
.arc-swatch {
  aspect-ratio: 1.1;
  border-radius: 10px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 10px;
}
.arc-swatch em {
  font-style: normal;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  background: rgba(255,255,255,0.92);
  color: #0a0a0a;
  padding: 3px 6px;
  border-radius: 5px;
  letter-spacing: 0;
}

.arc-typepair { display: flex; flex-direction: column; gap: 14px; }
.arc-typepair-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.arc-type-big {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.arc-type-mid {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1;
}
.arc-type-meta {
  font-size: 11px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
}
.arc-typepair-sample {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.45;
  padding-top: 12px;
}

.arc-refs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
@media (max-width: 600px) { .arc-refs { grid-template-columns: 1fr; } }
.arc-refs li {
  padding: 10px 0;
  background: var(--bg);
  font-size: 14px;
  color: var(--ink);
}
.arc-refs li::before {
  content: '→ ';
  color: var(--ink-dim);
  margin-right: 4px;
}

.arc-traits { font-size: 16px; color: var(--ink-soft); }

.arc-relations { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 12px; }
@media (max-width: 600px) { .arc-relations { grid-template-columns: 1fr; } }
.arc-rel {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px;
  background: var(--bg);
  border-radius: var(--r);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.arc-rel:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(10,10,10,0.06); }
.arc-rel-name { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.arc-rel-tag { font-size: 13px; color: var(--ink-mute); }

.arc-daily { display: flex; flex-direction: column; gap: 8px; }
.arc-daily li {
  font-size: 16px;
  padding: 10px 0;
  background: var(--bg);
}

.arc-cta { max-width: 760px; margin: 48px auto 0; padding: 0 var(--gutter); display: flex; justify-content: center; }

/* ============================================================
   MOODBOARD GENERATOR
   ============================================================ */
.generate {
  max-width: 760px; margin: 0 auto;
  padding: 56px var(--gutter) 80px;
  display: flex; flex-direction: column; gap: 32px;
}
.gen-header { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.gen-header h1 {
  font-family: var(--xp-display);
  font-size: clamp(32px, 4.4vw, 52px);
  letter-spacing: -0.04em;
  line-height: 1.0;
  font-weight: 900;
  margin-top: 4px;
}
.gen-lead { font-size: 17px; color: var(--xp-ink2); max-width: 52ch; line-height: 1.55; }

.gen-section-h {
  font-family: var(--xp-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-top: 8px;
}

.gen-gate {
  border-radius: var(--r-lg);
  padding: 0;
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
}

/* Single wide column — examples rail removed */
.gen-layout {
  max-width: 720px;
  margin: 0 auto;
}

.gen-form { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.gen-block { display: flex; flex-direction: column; gap: 14px; }
.gen-section-h-opt { font-size: 12px; font-weight: 400; color: var(--ink-mute); letter-spacing: 0.01em; margin-left: 6px; }
.gen-section-sub { margin: -6px 0 4px; font-size: 13px; color: var(--ink-mute); }

/* Wizard chrome */
.gen-wizard { display: flex; flex-direction: column; gap: 24px; }
.gen-wizard-steps {
  list-style: none; padding: 0; margin: 0 0 8px;
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.gen-wizard-step {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: #f7f7f5;
  color: var(--ink-mute);
  font-size: 13px; font-weight: 600;
  font-family: var(--xp-display);
  letter-spacing: -0.01em;
  transition: background var(--t-fast), color var(--t-fast);
}
.gen-wizard-step.is-current { background: var(--ink); color: var(--xp-accent); }
.gen-wizard-step.is-done { background: #ededea; color: var(--ink); }
.gen-wizard-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 12px; font-weight: 700;
}
.gen-wizard-step.is-current .gen-wizard-num { background: #fff; color: var(--ink); }
.gen-wizard-step.is-done .gen-wizard-num { background: var(--ink); color: #fff; }
.gen-wizard-label { letter-spacing: 0.01em; }
.gen-wizard-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-top: 0;
}
.gen-wizard-nav .btn.primary { min-width: 180px; }

/* Project-type toggle — brand vs story selector */
/* Two 50/50 emoji buttons — full input width, beefy (not too) */
.gen-type-toggle {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px;
}
.gen-type-opt {
  appearance: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 58px; padding: 14px 16px;
  background: #f7f7f5; border: 1.5px solid transparent; border-radius: 14px;
  font-family: var(--xp-display); font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink);
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.gen-type-opt:hover { background: #f1f0ec; }
.gen-type-opt:active { transform: scale(0.99); }
.gen-type-opt.is-selected { background: var(--ink); border-color: var(--ink); color: #fff; }
.gen-type-emoji { font-size: 20px; line-height: 1; }
.gen-type-label { white-space: nowrap; }

/* Inspiration row under the description — a quiet, deliberate optional */
.gen-inspo-row { margin-top: 2px; }
.gen-inspo-opt {
  margin-left: 6px; font-size: 11px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ink-dim);
}

/* Step entrance — opacity only, ONLY on a real step change (1↔2).
   The .is-entering class is added by viewGenerate; in-step re-renders
   (toggle, mode select) don't get it, so there's no blink. */
.gen-wizard.is-entering .gen-stephead,
.gen-wizard.is-entering .gen-form { animation: genStepFade 180ms ease both; }
@keyframes genStepFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes genStepIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* Direction picker — 3 mutually exclusive radio-like cards */
.gen-mode-list {
  display: grid; gap: 10px;
  grid-template-columns: 1fr;
}
.gen-mode-card {
  appearance: none; background: #f7f7f5; cursor: pointer;
  border: 1px solid transparent; border-radius: 12px;
  padding: 14px 16px;
  text-align: left;
  display: flex; flex-direction: column; gap: 4px;
  font: inherit; color: var(--ink);
  transition: background var(--t-fast), border-color var(--t-fast);
}
.gen-mode-card:hover { background: #ededea; }
.gen-mode-card.is-selected {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.gen-mode-card.is-selected .gen-mode-title { color: #fff; }
.gen-mode-card.is-selected .gen-mode-sub { color: rgba(255,255,255,0.7); }
.gen-mode-title {
  font-family: var(--xp-display); font-size: 14px; font-weight: 700; letter-spacing: -0.02em;
  letter-spacing: -0.005em;
}
.gen-mode-sub {
  font-size: 13px; color: var(--ink-mute);
  line-height: 1.45;
}
.gen-mode-detail { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }

/* Mock-driven generate flow: per-step header, icon card grid, inspiration entry */
.gen-stephead { display: flex; flex-direction: column; gap: 8px; }
.gen-eyebrow {
  text-transform: uppercase; font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; color: var(--ink-dim); margin: 0;
}
.gen-step-title {
  font-family: var(--xp-display);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 900; letter-spacing: -0.04em; line-height: 1.02;
  margin: 0; color: var(--ink);
}
.gen-step-sub { font-size: 17px; color: var(--ink-mute); margin: 0; line-height: 1.5; }

.gen-mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gen-mode-grid .gen-mode-card {
  padding: 20px; border-radius: 16px; gap: 10px; min-height: 168px;
  justify-content: flex-start;
}
.gen-mode-grid .gen-mode-title { margin-top: 2px; }
.gen-mode-ico {
  width: 40px; height: 40px; border-radius: 11px;
  background: #efeee9; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.gen-mode-card.is-selected .gen-mode-ico { background: rgba(255,255,255,0.14); color: #fff; }
.gen-mode-ico-dots { width: auto; padding: 0 11px; gap: 5px; }
.gen-mode-ico-dots i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
@media (max-width: 720px) {
  .gen-mode-grid { grid-template-columns: 1fr; }
  .gen-mode-grid .gen-mode-card { min-height: 0; }
}

.gen-inspo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.gen-inspo-chip { position: relative; display: inline-block; flex: none; }
.gen-inspo-chip .gen-inspo-thumb { background-size: cover; background-position: center; }
.gen-inspo-x {
  position: absolute; top: -6px; right: -6px;
  width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #fff;
  background: var(--ink); color: #fff; font-size: 11px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.gen-inspo-add {
  display: inline-flex; align-items: center; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 9px 16px; font-size: 14px; font-weight: 600; color: var(--ink);
  background: transparent; transition: background var(--t-fast);
}
.gen-inspo-add:hover { background: #f7f7f5; }
.gen-inspo-chosen { display: flex; align-items: center; gap: 12px; }
.gen-inspo-thumb { display: inline-block; vertical-align: middle; width: 46px; height: 46px; border-radius: 10px; overflow: hidden; flex: none; background: #efeee9 no-repeat center / cover; }
.gen-inspo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gen-inspo-name { font-size: 14px; color: var(--ink-soft); }

/* Enhance-prompt button anchored in the description field */
.gen-desc-wrap { position: relative; display: block; }
.gen-field .gen-desc-wrap textarea { resize: none; display: block; width: 100%; }

/* Pro badge on the gated "Upload my own" card */
.gen-mode-pro {
  display: inline-block; vertical-align: middle; margin-left: 6px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--ink); color: #fff; border-radius: 5px; padding: 2px 6px;
}
.gen-mode-card.is-pro-locked .gen-mode-ico,
.gen-mode-card.is-pro-locked .gen-mode-sub { opacity: 0.7; }
/* Pro-only feature line on the upgrade page Pro card */
.upgrade-card-feature { font-size: 13px; font-weight: 600; color: var(--ink); margin-top: 6px; }

/* "Upload your own is Pro" explainer modal */
.proup-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center; padding: 20px;
  background: rgba(10,10,10,0.45); animation: genStepIn 160ms ease both;
}
.proup-card {
  position: relative; background: var(--bg); border-radius: 18px;
  max-width: 420px; width: 100%; padding: 30px 28px 26px;
  box-shadow: 0 24px 64px rgba(10,10,10,0.28);
}
.proup-close { position: absolute; top: 14px; right: 14px; background: none; border: 0; cursor: pointer; color: var(--ink-mute); padding: 4px; }
.proup-close:hover { color: var(--ink); }
.proup-badge {
  display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--ink); color: #fff; border-radius: 5px; padding: 2px 7px; margin-bottom: 12px;
}
.proup-h { font-family: var(--xp-display); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 10px; color: var(--ink); }
.proup-lead { font-size: 15px; color: var(--ink-mute); line-height: 1.55; margin: 0 0 22px; }
.proup-actions { display: flex; gap: 10px; }

/* Custom colors */
.gen-colors-toggle { display: flex; align-items: center; gap: 10px; }
.gen-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.gen-toggle input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }
.gen-colors-grid {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 4px;
}
.gen-color-row {
  display: flex; align-items: center; gap: 10px;
}
.gen-color-picker {
  width: 44px; height: 36px;
  padding: 0; border: 1px solid var(--line); border-radius: 8px;
  background: transparent; cursor: pointer;
}
.gen-color-picker::-webkit-color-swatch-wrapper { padding: 4px; }
.gen-color-picker::-webkit-color-swatch { border: 0; border-radius: 4px; }
.gen-color-hex {
  flex: 1; max-width: 140px;
  font: inherit; font-family: ui-monospace, monospace; font-size: 13px;
  padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--ink);
  text-transform: uppercase;
}
.gen-color-hex:focus { outline: none; border-color: var(--ink); }
.gen-color-remove {
  appearance: none; background: transparent; border: 0;
  width: 28px; height: 28px; border-radius: 50%;
  color: var(--ink-mute);
  font-size: 18px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--t-fast), color var(--t-fast);
}
.gen-color-remove:hover { background: #f7f7f5; color: var(--ink); }
.gen-color-add {
  appearance: none; background: transparent;
  border: 1px dashed var(--line); border-radius: 8px;
  padding: 8px 14px;
  font: inherit; font-size: 13px; font-weight: 500;
  color: var(--ink-mute);
  cursor: pointer;
  align-self: flex-start;
  margin-top: 8px;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.gen-color-add:hover { border-color: var(--ink); color: var(--ink); }
.gen-field { display: flex; flex-direction: column; gap: 8px; }
.gen-field > span {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  font-family: var(--font);
}
.gen-field input[type=text],
.gen-field textarea {
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  padding: 14px 16px;
  border: 1.5px solid rgba(14,13,10,0.12);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.gen-field input[type=text]::placeholder,
.gen-field textarea::placeholder { color: #b0aa9e; font-weight: 400; }
.gen-field input[type=text]:focus,
.gen-field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(14,13,10,0.05); }
.gen-field textarea { resize: vertical; min-height: 88px; line-height: 1.45; }
.gen-hint {
  font-style: normal;
  font-size: 12px;
  color: var(--ink-mute);
}

.gen-upload {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.gen-upload-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: rgba(10,10,10,0.06);
  transition: background var(--t-fast);
}
.gen-upload-btn:hover { background: rgba(10,10,10,0.10); }
.gen-upload-name { font-size: 13px; color: var(--ink-mute); }

.gen-image-preview {
  margin-top: 8px;
  width: 96px; height: 96px;
  border-radius: 12px;
  overflow: hidden;
}
.gen-image-preview img { width: 100%; height: 100%; object-fit: cover; }

.gen-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 8px; align-items: center; }
.gen-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.gen-btn-cost {
  font-weight: 400;
  opacity: 0.7;
  margin-left: 2px;
}
.gen-cta.is-empty {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.gen-cta.is-empty:hover { background: rgba(10,10,10,0.04); border-color: var(--ink); }
.gen-btn-spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

.gen-result-card {
  border-radius: var(--r-lg);
  padding: 0;
  display: flex; flex-direction: column; gap: 12px;
}

/* ----- Step labels ----- */
.gen-step-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 12px;
}
.gen-step { margin-bottom: 28px; }

/* Horizontal scrolling row of style chips — always visible above the
   collapsible full picker. Surfaces the 12 options without a click. */
.style-chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 4px 12px;
  margin: 0 -4px 4px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(10,10,10,0.2) transparent;
}
.style-chip-row::-webkit-scrollbar { height: 6px; }
.style-chip-row::-webkit-scrollbar-thumb { background: rgba(10,10,10,0.18); border-radius: 999px; }
.style-chip-row::-webkit-scrollbar-track { background: transparent; }
.style-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 124px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.style-chip:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.style-chip.selected {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.style-chip-random {
  background: #ffffff;
  border-color: var(--line-strong);
  color: var(--ink);
  align-items: center;
  justify-content: center;
}
.style-chip-random:hover {
  background: rgba(10,10,10,0.04);
  border-color: var(--ink);
}
.style-chip-random.selected {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.style-chip-random.selected .style-chip-name { color: var(--bg); }
.style-chip-random-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
}
.style-chip-swatches {
  display: flex;
  gap: 3px;
}
.style-chip-swatches span {
  flex: 1;
  height: 24px;
  border-radius: 3px;
  min-width: 0;
}
.style-chip-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
}
.style-chip-fonts {
  font-size: 10px;
  font-weight: 400;
  color: var(--ink-mute);
  line-height: 1.2;
}

/* ----- Style picker (collapsed in a <details>) ----- */
.style-picker-details { margin-top: 6px; }
.style-picker-details summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 0;
  user-select: none;
  transition: color var(--t-fast);
}
.style-picker-details summary:hover { color: var(--ink-mute); }
.style-picker-details summary::-webkit-details-marker,
.style-picker-details summary::marker { display: none; content: ''; }
.style-picker-chev {
  transition: transform 200ms cubic-bezier(0.4,0,0.2,1);
  flex-shrink: 0;
}
.style-picker-details[open] .style-picker-chev { transform: rotate(90deg); }
.style-picker-details .style-picker { margin-top: 16px; }

.style-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.style-pick {
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px;
  border-radius: var(--r);
  background: #ffffff;
  border: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.style-pick:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.style-pick.selected {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.style-pick-swatches {
  display: flex; gap: 4px;
}
.style-pick-chip {
  flex: 1;
  height: 24px;
  border-radius: 4px;
  min-width: 0;
}
.style-pick-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-top: 6px;
  color: var(--ink);
}
.style-pick-tag {
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.3;
}

/* Right-rail showcase — what the output looks like, visible on desktop. */
.gen-preview {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.gen-preview-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.gen-preview-card {
  display: flex;
  flex-direction: column;
  pointer-events: none;
  user-select: none;
}
.gen-preview-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 10px;
}
.gen-preview-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.gen-preview-mood {
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.5;
  margin-top: 2px;
}

/* ----- Selected style card — clear selected affordance ----- */
.selected-style {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px 20px;
  border-radius: var(--r);
  background: #ffffff;
  border: 1px solid var(--line);
}
.selected-style.is-selected {
  border: 1.5px solid var(--ink);
  padding: 17.5px 19.5px;
}
.selected-style-pill {
  position: absolute;
  top: -9px;
  left: 18px;
  background: var(--ink);
  color: var(--bg);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
}
.selected-style-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  padding-right: 32px;
}
.selected-style-swatches {
  display: flex; gap: 6px;
}
.selected-style-chip {
  flex: 1;
  height: 28px;
  border-radius: 5px;
  min-width: 0;
}
.selected-style-mood {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.45;
}
.selected-style-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.selected-style-remove:hover {
  background: rgba(10,10,10,0.06);
  color: var(--ink);
}

/* ----- Rich result panel (mirrors archetype layout) ----- */
.rich-result {
  display: flex; flex-direction: column; gap: 28px;
  padding: 32px 0;
}
.rich-result-head { display: flex; flex-direction: column; gap: 10px; }
.rich-result-style-tag {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--ink-mute);
}
.rich-result-brand {
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.035em;
  line-height: 1.0;
  font-weight: 600;
}
.rich-result-desc {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 56ch;
  line-height: 1.5;
}
.rich-result-image-wrap {
  position: relative;
  width: 100%;
  border-radius: var(--r);
  overflow: hidden;
  background: linear-gradient(90deg, #f4f0e8 0%, #ece6da 50%, #f4f0e8 100%);
  background-size: 200% 100%;
  aspect-ratio: 16 / 9;
}
.rich-result-image-wrap[data-action="open-lightbox"] { cursor: zoom-in; }
.rich-result-image-wrap[data-action="open-lightbox"] .rich-result-image {
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.rich-result-image-wrap[data-action="open-lightbox"]:hover .rich-result-image {
  transform: scale(1.005);
  opacity: 0.96;
}
.rich-result-image-wrap[data-loading]::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.45) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
.rich-result-image-wrap:not([data-loading]) { aspect-ratio: auto; background: none; }
.rich-result-image-wrap[data-error] {
  aspect-ratio: 16 / 9;
  background: #f4f0e8;
  display: grid; place-items: center;
}
.rich-result-image-wrap[data-error]::before {
  content: "Image unavailable";
  color: var(--ink-mute);
  font-size: 13px;
  letter-spacing: 0.05em;
}
.rich-result-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r);
  opacity: 0;
  transition: opacity 200ms ease-out;
}
.rich-result-image-wrap:not([data-loading]) .rich-result-image { opacity: 1; }
.rich-result-image-missing {
  padding: 48px 24px;
  text-align: center;
  color: var(--ink-mute);
  font-size: 14px;
  background: #f4f0e8;
  border-radius: var(--r);
}

/* Board detail skeleton — shown while state.boards is still fetching
   (admin-mode fetches across all users can take a few seconds). */
.board-skeleton { gap: 24px; }
.board-skel-line {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f4f0e8 0%, #ece6da 50%, #f4f0e8 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
.board-skel-line.board-skel-h { height: 28px; }
.board-skel-line.w-20 { width: 20%; }
.board-skel-line.w-30 { width: 30%; }
.board-skel-line.w-40 { width: 40%; }
.board-skel-line.w-50 { width: 50%; }
.board-skel-line.w-70 { width: 70%; }
.board-skel-line.w-90 { width: 90%; }
.board-skel-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r);
  background: linear-gradient(90deg, #f4f0e8 0%, #ece6da 50%, #f4f0e8 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
.board-skel-palette {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.board-skel-swatch {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: linear-gradient(90deg, #f4f0e8 0%, #ece6da 50%, #f4f0e8 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
.rich-result-section {
  display: flex; flex-direction: column; gap: 12px;
}
.rich-result-palette {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px;
}
@media (max-width: 600px) { .rich-result-palette { grid-template-columns: repeat(3, 1fr); } }
.rich-result-swatch {
  aspect-ratio: 1.1;
  border-radius: 8px;
  display: flex; align-items: flex-end; padding: 8px;
}
.rich-result-swatch em {
  font-style: normal;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  background: rgba(255,255,255,0.92);
  color: #0a0a0a;
  padding: 2px 5px;
  border-radius: 4px;
  letter-spacing: 0;
}
.rich-result-type-hint {
  font-size: 14px;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.rich-result-typepair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 700px) { .rich-result-typepair { grid-template-columns: 1fr; } }
.rich-result-type-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #ffffff;
  text-decoration: none;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.rich-result-type-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.rich-result-type-role {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  text-transform: uppercase;
  font-weight: 600;
}
.rich-result-type-big {
  font-size: clamp(28px, 3.6vw, 36px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
}
.rich-result-type-sample {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.rich-result-type-link {
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 6px;
  letter-spacing: -0.005em;
}
.rich-result-type-card:hover .rich-result-type-link { color: var(--ink); }
.rich-result-mood {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 56ch;
}
.rich-result-saved {
  display: inline-flex; align-items: center;
  font-size: 13px;
  color: var(--good);
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 6px 0;
}
.rich-result-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding-top: 8px;
}

/* ----- Dashboard style chip ----- */
.dashboard-chip {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  pointer-events: none;
}
.dashboard-thumb { position: relative; }

/* ----- Archetype CTA note (under the "make in this style" button) ----- */
.arc-cta-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-mute);
  text-align: center;
}
.arc-cta { flex-direction: column; align-items: center; }
.gen-result-card h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.gen-image {
  width: 100%; height: auto; display: block;
  border-radius: 12px;
  margin-top: 8px;
}
.gen-result-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 6px; }

/* ============================================================
   DASHBOARD — matches prod (3-col, 4:3 cards, simple titles)
   ============================================================ */
.dashboard-view {
  padding: 32px 24px 80px;
}
@media (min-width: 1200px) { .dashboard-view { padding: 32px 32px 80px; } }
.dashboard-project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 900px) {
  .dashboard-project-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 560px) {
  .dashboard-project-grid { grid-template-columns: 1fr; gap: 20px; }
}

.dashboard-project-item {
  background: transparent;
  cursor: pointer;
  transition: transform var(--t-fast);
  display: block;
}
.dashboard-project-item:hover { transform: translateY(-4px); }
.dashboard-project-thumb { position: relative; margin-bottom: 14px; }
.dashboard-project-count {
  position: absolute;
  top: 10px; left: 10px;
  min-width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
  padding: 0 8px;
  box-shadow: 0 2px 6px rgba(10, 10, 10, 0.08);
  letter-spacing: -0.01em;
  z-index: 2;
}
.dashboard-project-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
  background: #ffffff;
  border: 1px solid var(--line);
  transition: box-shadow var(--t-fast), border-color var(--t-fast);
  display: block;
}
.dashboard-project-item:hover img {
  box-shadow: 0 12px 28px rgba(10,10,10,0.08);
  border-color: transparent;
}
.dashboard-project-item h4 {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}

/* "Create New" tile — dashed outline + plus icon */
.dashboard-create-new .create-new-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-lg);
  background: #ffffff;
  border: 1.5px dashed var(--line);
  margin-bottom: 14px;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
  color: var(--ink-dim);
}
.dashboard-create-new:hover .create-new-placeholder {
  border-color: var(--ink);
  color: var(--ink);
  background: rgba(0,0,0,0.02);
}
.dashboard-create-new h4 {
  color: var(--ink-mute);
  transition: color var(--t-fast);
}
.dashboard-create-new:hover h4 { color: var(--ink); }

/* Empty state — first-time user, no boards yet */
.dashboard-empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 72px 32px;
  min-height: 400px;
}
.dashboard-empty-img {
  width: 100%; max-width: 480px; border-radius: 16px;
  margin-bottom: 32px;
  box-shadow: 0 16px 48px rgba(10,10,10,0.1);
}
.dashboard-empty-state h2 {
  font-family: var(--xp-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.04em;
  margin: 0 0 14px;
}
.dashboard-empty-state p {
  color: var(--xp-ink2);
  font-size: 18px;
  margin: 0 0 32px;
  max-width: 36ch;
}
.dashboard-empty-state .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  background: var(--ink);
  color: var(--xp-accent);
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--xp-display);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.dashboard-empty-state .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.14); }

/* Recent images strip */
.dashboard-recent { margin-top: 48px; }
.dashboard-recent-title {
  font-family: var(--xp-display); font-size: 16px; font-weight: 700;
  color: var(--ink); letter-spacing: -0.02em; margin: 0 0 16px;
}
.dashboard-recent-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
}
@media (max-width: 900px) { .dashboard-recent-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .dashboard-recent-grid { grid-template-columns: repeat(3, 1fr); } }
.dashboard-recent-item {
  cursor: pointer; border-radius: 10px; overflow: hidden;
  position: relative; transition: transform 0.2s;
}
.dashboard-recent-item:hover { transform: translateY(-3px); }
.dashboard-recent-item img {
  width: 100%; aspect-ratio: 1; object-fit: cover; display: block;
}
.dashboard-recent-meta {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 8px 6px; font-size: 11px; font-weight: 600;
  color: #fff; background: linear-gradient(transparent, rgba(0,0,0,0.5));
  font-family: var(--xp-display); letter-spacing: -0.01em;
}

/* Loading skeleton — same 4:3 shape as the real cards */
.dashboard-skeleton { pointer-events: none; cursor: default; }
.dashboard-skeleton-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  background: linear-gradient(110deg, #f4f4f4 0%, #ececec 50%, #f4f4f4 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
  margin-bottom: 14px;
}
.dashboard-skeleton-line {
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(110deg, #f4f4f4 0%, #ececec 50%, #f4f4f4 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}
.dashboard-skeleton-line.w-60 { width: 60%; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* Pending generation — ghost tile shown on the dashboard while a
   moodboard or regenerate is running in the background. Same 4:3
   shape as a real tile so the layout doesn't reflow when it lands. */
.dashboard-project-pending { pointer-events: none; cursor: default; }
.dashboard-pending-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  background: linear-gradient(110deg, #f4f4f4 0%, #ececec 50%, #f4f4f4 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
}
.dashboard-pending-spinner {
  width: 28px; height: 28px;
  border: 3px solid rgba(10, 10, 10, 0.12);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: dashboard-pending-spin 0.9s linear infinite;
}
@keyframes dashboard-pending-spin { to { transform: rotate(360deg); } }
.dashboard-pending-status {
  display: block;
  margin-top: 2px;
  font-size: 12px; font-weight: 500;
  color: var(--ink-mute); letter-spacing: 0.01em;
}

/* ============================================================
   UPGRADE / BILLING — dedicated logged-in upgrade page
   ============================================================ */
.upgrade-view {
  max-width: 560px;
  margin: 0 auto;
  padding: 56px var(--gutter) 80px;
}
.upgrade-header { text-align: center; margin-bottom: 32px; }
.upgrade-header .upgrade-lead { margin: 0 auto; }
.upgrade-header .eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.upgrade-header h1 {
  font-family: var(--xp-display);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 12px;
  color: var(--ink);
}
.upgrade-lead {
  color: var(--ink-mute);
  font-size: 15px;
  line-height: 1.55;
  max-width: 46ch;
}

.upgrade-summary {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 8px 18px;
  margin-bottom: 28px;
}
.upgrade-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.upgrade-summary-row:last-child { border-bottom: 0; }
.upgrade-summary-label {
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: -0.005em;
}
.upgrade-summary-value {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}
.upgrade-badge {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 3px 9px;
  border-radius: 999px;
}

.upgrade-offer { display: flex; gap: 16px; }
.upgrade-card {
  flex: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px 24px;
  position: relative;
  display: flex; flex-direction: column;
}
.upgrade-card.featured {
  border-color: var(--ink);
  border-width: 2px;
  padding: 27px 23px 23px;
  box-shadow: 0 14px 32px rgba(10,10,10,0.08);
}
.upgrade-card-badge {
  position: absolute;
  top: -11px;
  left: 22px;
  background: var(--ink);
  color: var(--bg);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 5px 12px;
  border-radius: 999px;
}
.upgrade-card-tier {
  font-family: var(--xp-display);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 12px;
}
.upgrade-card-amt {
  font-family: var(--xp-display);
  font-size: clamp(36px, 3.6vw, 44px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 6px;
  color: var(--ink);
}
.upgrade-card-credits { font-size: 14px; color: var(--ink); margin-bottom: 4px; font-weight: 500; }
.upgrade-card-equiv { font-size: 12px; color: var(--ink-mute); margin-bottom: 22px; }
.upgrade-card-cta { width: 100%; justify-content: center; }

/* ============================================================
   BOARD DETAIL PAGE
   ============================================================ */
.board-page {
  max-width: 1800px; margin: 0 auto;
  padding: 32px 24px 80px;
  display: flex; flex-direction: column; gap: 18px;
  min-height: 100vh;
}
@media (min-width: 1200px) { .board-page { padding: 32px 32px 80px; } }
@media (max-width: 720px)  { .board-page { padding: 24px 16px 60px; } }
.board-back {
  font-size: 13px;
  color: var(--ink-mute);
  font-weight: 500;
  letter-spacing: -0.005em;
  align-self: flex-start;
}
.board-back:hover { color: var(--ink); }

/* ============================================================
   STYLES INDEX
   ============================================================ */
.styles-page {
  max-width: var(--max); margin: 0 auto;
  padding: 56px var(--gutter) 80px;
  display: flex; flex-direction: column; gap: 8px;
}
.styles-header {
  display: flex; flex-direction: column; gap: 14px;
}
.styles-header h1 {
  font-family: var(--xp-display);
  font-size: clamp(34px, 4.5vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1.0;
  font-weight: 900;
  margin-top: 6px;
}
.styles-cta { display: flex; justify-content: center; padding-top: 32px; }

/* ============================================================
   PAYWALL
   ============================================================ */
.paywall {
  display: flex; flex-direction: column; gap: 14px;
  padding: 24px 0;
}
.paywall h2 {
  font-family: var(--xp-display);
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.04em;
  font-weight: 900;
  line-height: 1.0;
}
.paywall-lead { color: var(--xp-ink2); font-size: 16px; }
.paywall-tiers {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-top: 12px;
}
@media (max-width: 800px) { .paywall-tiers { grid-template-columns: 1fr; } }
.paywall-tier {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
}
.paywall-tier.featured { border-color: var(--ink); }
.paywall-tier-name {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--ink-mute);
}
.paywall-tier-price {
  font-size: 36px; font-weight: 600; letter-spacing: -0.03em;
  line-height: 1;
}
.paywall-tier-price span { font-size: 14px; font-weight: 500; color: var(--ink-mute); margin-left: 4px; }
.paywall-tier-sub { font-size: 13px; color: var(--ink-mute); min-height: 32px; }
.paywall-tier .btn { margin-top: auto; }

/* ============================================================
   ABOUT
   ============================================================ */
.about { padding: 80px var(--gutter); }
.about-inner { max-width: 720px; margin: 0 auto; }
.about-inner h1 {
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -0.04em;
  font-weight: 600;
  line-height: 1.0;
  margin-top: 14px;
}
.about-inner .about-lead {
  font-size: 20px; line-height: 1.5; margin-top: 24px; color: var(--ink-soft);
}
.about-inner p { margin-top: 18px; font-size: 16px; line-height: 1.55; color: var(--ink-soft); max-width: 56ch; }

/* ============================================================
   AUTH
   ============================================================ */
.auth {
  display: grid; place-items: center;
  padding: 48px var(--gutter); min-height: 70vh;
  background: #ffffff; text-align: center;
}
.auth-card {
  width: 100%; max-width: 440px;
  display: flex; flex-direction: column; gap: 32px;
}
.auth-header h2 {
  font-family: var(--xp-display);
  font-size: 42px; font-weight: 900;
  letter-spacing: -0.04em; line-height: 1.0;
  margin: 0 0 12px;
}
.auth-header p { color: var(--xp-ink2); font-size: 22px; line-height: 1.35; margin: 0; font-family: var(--font); }
.auth-form { display: flex; flex-direction: column; gap: 20px; text-align: left; }
.auth-form label {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 16px; font-weight: 600; color: var(--ink);
  font-family: var(--font);
}
.auth-form input {
  padding: 16px 18px; font: inherit; font-size: 18px; font-weight: 400;
  background: #ffffff; border: 1.5px solid rgba(14,13,10,0.12);
  border-radius: 12px; color: var(--ink); outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.auth-form input::placeholder { color: #b0aa9e; }
.auth-form input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(14,13,10,0.05);
}
.auth-submit {
  margin-top: 8px; padding: 18px 28px;
  font-size: 18px; font-weight: 700;
  font-family: var(--xp-display);
  border-radius: 999px;
  background: var(--ink); color: var(--xp-accent); border: 0;
  cursor: pointer; letter-spacing: -0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.auth-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.14); }
.google-auth-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 14px 16px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r);
  font-family: var(--font); font-size: 16px; font-weight: 500; color: var(--ink);
  cursor: pointer; transition: background var(--t-fast), border-color var(--t-fast);
}
.google-auth-btn:hover { background: #f7f7f5; border-color: var(--ink-mute); }
.auth-divider {
  display: flex; align-items: center; gap: 16px;
  color: var(--ink-mute); font-size: 14px; font-family: var(--font);
  margin: -12px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}
.auth-footer {
  font-size: 18px; color: var(--xp-ink3); text-align: center; margin: 0;
  font-family: var(--font);
}
.auth-footer a {
  color: var(--ink); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid rgba(14,13,10,0.2);
  transition: border-color 0.2s;
}
.auth-footer a:hover { border-color: var(--ink); }
.auth-terms {
  font-size: 12px; line-height: 1.5; color: var(--ink-mute);
  text-align: center; margin: 16px 0 0; font-family: var(--font);
}
.auth-terms a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.upgrade-refund-note { text-align: center; font-size: 12px; color: var(--ink-mute); max-width: 460px; margin: 24px auto 0; line-height: 1.5; }

/* Cookie consent banner (gates PostHog analytics until accepted) */
.cookie-banner {
  position: fixed; left: 16px; bottom: 16px; z-index: 1100;
  max-width: 360px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 12px 40px rgba(10,10,10,0.18);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 12px;
}
.cookie-banner-text { font-size: 13px; line-height: 1.5; color: var(--ink-soft); margin: 0; }
.cookie-banner-text a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-actions { display: flex; gap: 8px; justify-content: flex-end; }
.cookie-btn { appearance: none; cursor: pointer; border-radius: 999px; padding: 7px 16px; font: inherit; font-size: 13px; font-weight: 600; border: 1px solid var(--line); background: #fff; color: var(--ink); transition: background var(--t-fast), opacity var(--t-fast); }
.cookie-btn-ghost:hover { background: #f7f7f5; }
.cookie-btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.cookie-btn-primary:hover { opacity: 0.9; }
@media (max-width: 520px) { .cookie-banner { left: 12px; right: 12px; max-width: none; bottom: 12px; } }

/* ============================================================
   SETTINGS — name / email / credits / data controls
   ============================================================ */
.settings-view {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px var(--gutter) 80px;
}
.settings-header { margin-bottom: 36px; }
.settings-header .eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--ink-mute);
  margin-bottom: 12px;
}
.settings-header h1 {
  font-family: var(--xp-display);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 8px;
}
.settings-lead {
  color: var(--ink-mute);
  font-size: 15px;
  line-height: 1.55;
}
.settings-section { margin-bottom: 32px; }
.settings-section-h {
  font-family: var(--xp-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-mute);
  margin-bottom: 12px;
}
.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.settings-row:last-child { border-bottom: 0; }
.settings-label { color: var(--ink-mute); }
.settings-value { color: var(--ink); font-weight: 500; }
.settings-help {
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 16px;
  line-height: 1.55;
}
.settings-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.settings-danger {
  color: #a8281a;
  border-color: rgba(168, 40, 26, 0.3);
}
.settings-danger:hover {
  background: rgba(168, 40, 26, 0.06);
  border-color: #a8281a;
  color: #a8281a;
}

/* ============================================================
   HOW IT WORKS — dedicated route
   ============================================================ */
/* /how-it-works reuses .gen-header / .gen-block / .gen-section-h so it
   reads as part of the app instead of a marketing page. Only the outer
   shell and step layout are local. */
.hiw-view {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 96px;
  display: flex; flex-direction: column; gap: 36px;
}
.hiw-step { gap: 8px; }
.hiw-step-body {
  font-size: 16px; line-height: 1.55;
  color: var(--ink-soft);
  max-width: 64ch;
  margin: 0;
}
.hiw-cta {
  margin-top: 12px;
}

/* ============================================================
   CONTACT MODAL — inline Formspree POST
   ============================================================ */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: gen-overlay-in 220ms cubic-bezier(0.4,0,0.2,1);
}
.contact-card {
  position: relative;
  background: #ffffff;
  border-radius: 14px;
  padding: 36px 32px 28px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}
.contact-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.contact-close:hover { background: rgba(10,10,10,0.06); color: var(--ink); }
.contact-card .eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.contact-h {
  font-family: var(--xp-display);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
  color: var(--ink);
}
.contact-lead {
  font-size: 14px;
  color: var(--ink-mute);
  margin-bottom: 22px;
  line-height: 1.5;
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-field { display: flex; flex-direction: column; gap: 6px; }
.contact-field > span {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}
.contact-field input,
.contact-field textarea {
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
  transition: border-color var(--t-fast);
  width: 100%;
}
.contact-field input:focus,
.contact-field textarea:focus { border-color: var(--ink); }
.contact-field textarea { resize: vertical; min-height: 88px; line-height: 1.45; }
.contact-submit { margin-top: 6px; width: 100%; justify-content: center; }
.contact-error-banner {
  background: rgba(168, 40, 26, 0.08);
  color: #a8281a;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 6px;
}
.contact-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 0 4px;
  animation: gen-overlay-in 220ms cubic-bezier(0.4,0,0.2,1);
}
.contact-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

/* ============================================================
   LIGHTBOX — full-screen image viewer (dashboard tap → see board)
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 56px);
  animation: gen-overlay-in 200ms cubic-bezier(0.4,0,0.2,1);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.05);
  color: var(--ink);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
  z-index: 2;
}
.lightbox-close:hover { background: #f3f3f3; border-color: var(--ink); }
.lightbox-nav {
  position: absolute;
  /* Vertical center of the IMAGE, not the figure-+-caption combined.
     Caption row sits below the image inside the figure, so the
     figure's center is ~26px below the image's center. Shift up. */
  top: calc(50% - 26px);
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.05);
  color: var(--ink);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  z-index: 2;
}
.lightbox-nav:hover { background: #f3f3f3; border-color: var(--ink); }
.lightbox-nav:active { transform: translateY(-50%) scale(0.94); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
@media (max-width: 600px) {
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-nav { width: 40px; height: 40px; }
}
.lightbox-counter {
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.lightbox-frame {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: min(1200px, 95vw);
  max-height: 95vh;
  align-items: center;
  margin: 0;
  position: relative;
}
.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.03);
  display: block;
  opacity: 0;
  transition: opacity .25s ease;
}
.lightbox-image.is-ready { opacity: 1; }
.lightbox-loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
  /* Keep the frame from collapsing to zero height while the image
     streams in — the loader's own min-height holds the space. */
  min-height: 320px;
}
.lightbox-frame.is-loading .lightbox-loader { opacity: 1; }
.lightbox-loader-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(10, 10, 10, 0.12);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: lightbox-spin .9s linear infinite;
}
@keyframes lightbox-spin { to { transform: rotate(360deg); } }
.lightbox-cap {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  color: var(--ink);
  font-family: var(--font);
}
.lightbox-name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.lightbox-actions {
  display: flex; gap: 8px; align-items: center;
}
.lightbox-prompt-toggle,
.lightbox-action-btn, .lightbox-download {
  appearance: none; background: transparent;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 12px;
  font: inherit; font-size: 12px; font-weight: 500;
  color: var(--ink);
  cursor: pointer; line-height: 1;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.lightbox-action-btn:hover, .lightbox-prompt-toggle:hover,
.lightbox-download:hover { background: #f7f7f5; border-color: var(--ink); }
.lightbox-action-btn.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.lightbox-action-danger { color: var(--bad, #c43d3d); }
/* Mobile: stack the lightbox actions into a 2-column grid */
@media (max-width: 600px) {
  .lightbox-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  .lightbox-actions > * { width: 100%; display: inline-flex; align-items: center; justify-content: center; }
}
.lightbox-action-danger:hover { background: rgba(196,61,61,0.08); border-color: var(--bad, #c43d3d); }
.lightbox-prompt-toggle[aria-expanded="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.lightbox-prompt-panel {
  max-width: min(720px, 92vw);
  margin: 0 auto;
  background: #f7f7f5;
  border-radius: 10px;
  padding: 14px 18px;
}
.lightbox-prompt-panel[hidden] { display: none; }
.lightbox-prompt-text {
  margin: 0;
  font-size: 14px; line-height: 1.55;
  color: var(--ink);
  white-space: pre-wrap; word-break: break-word;
}

/* ============================================================
   GEN OVERLAY — full-screen lock while a moodboard is rendering
   ============================================================ */
.gen-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  animation: gen-overlay-in 220ms cubic-bezier(0.4,0,0.2,1);
}
@keyframes gen-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.gen-overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 480px;
  text-align: center;
}
.gen-overlay-spinner {
  width: 48px; height: 48px;
  border: 3px solid rgba(10, 10, 10, 0.08);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}
.gen-overlay-message {
  font-family: var(--font);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.25;
  min-height: 1.5em;
  animation: gen-msg-fade 320ms cubic-bezier(0.4,0,0.2,1);
}
@keyframes gen-msg-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.gen-overlay-sub {
  font-family: var(--font);
  font-size: 13px;
  color: var(--ink-mute);
  font-weight: 400;
  letter-spacing: -0.005em;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--bg);
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
  z-index: 1500;
  box-shadow: 0 12px 24px rgba(10,10,10,0.2);
  transition: opacity 250ms;
}

/* ============================================================
   LANDING PAGE — new spec (mb- prefix)
   Single-CTA, three rendered moodboards, pricing with credits.
   ============================================================ */
/* ============================================================
   MARKETING PAGE — Expressive scale (Direction B)
   ============================================================ */
/* Tokens from design */
:root {
  --xp-accent: #dde6c0;
  --xp-green: #3d4a3a;
  --xp-ink2: #3a342a;
  --xp-ink3: #6a635a;
  --xp-off: #faf9f6;
  --xp-display: 'Archivo', 'Helvetica Neue', sans-serif;
  --xp-mono: 'JetBrains Mono', ui-monospace, monospace;
  --xp-serif: 'Newsreader', Georgia, serif;
  --xp-script: 'Caveat', cursive;
}

/* Storyteller theme — Paridiso palette: warm bone, deep brown,
   taupe, charcoal. Overrides the wellness/sage brand tokens
   on the storytellers marketing route only. Same UI, same
   layout, recolored. */
.xp.xp-story {
  --xp-accent: #c8b89a;   /* warm bone — replaces sage chartreuse */
  --xp-green: #2a221c;    /* deep brown-black — replaces forest green */
  --xp-ink2: #3a2e24;     /* darker warm ink */
  --xp-ink3: #6a4f3a;     /* taupe — secondary text */
  --xp-off: #f3ede2;      /* warmer off-white */
}

.xp { max-width: 1304px; margin: 0 auto; padding: 0 40px; color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; }
@media (max-width: 720px) { .xp { padding: 0 20px; } }
.xp ~ .navbar .nav-center a,
body:has(.xp) .nav-center a,
body:has(.auth) .nav-center a { font-size: 18px; font-weight: 400; font-family: var(--font); }
body:has(.xp) .nav-right .nav-link,
body:has(.auth) .nav-right .nav-link { font-size: 18px; font-weight: 400; margin-right: 10px; }
body:has(.xp) .nav-cta,
body:has(.auth) .nav-cta { padding: 14px 24px !important; font-size: 18px !important; font-weight: 700; font-family: var(--xp-display) !important; color: var(--xp-accent) !important; }
body:has(.xp) .navbar .brand .brand-logo,
body:has(.auth) .navbar .brand .brand-logo { height: 38px; }

/* Shared components */
.xp-eyebrow { font-family: var(--xp-mono); font-size: 11px; color: var(--xp-ink2); text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 8px; }
.xp-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--xp-off); color: var(--ink); padding: 6px 11px; border-radius: 999px; font-family: var(--xp-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; border: 1px solid rgba(14,13,10,0.1); }
.xp-chip-inv { display: inline-flex; padding: 6px 11px; border-radius: 999px; font-family: var(--font); font-size: 11px; font-weight: 300; text-transform: uppercase; letter-spacing: 0.08em; background: rgba(255,255,255,0.08); color: var(--xp-accent); }
.xp-chip-light { display: inline-flex; padding: 6px 11px; border-radius: 999px; font-family: var(--font); font-size: 11px; font-weight: 300; text-transform: uppercase; letter-spacing: 0.08em; background: var(--xp-accent); color: var(--ink); }
.xp-hl { background: var(--xp-accent); padding: 0 14px; border-radius: 14px; }
.xp-btn { display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--xp-accent); border: none; padding: 18px 26px; border-radius: 999px; font-size: 16px; font-family: var(--xp-display); font-weight: 700; cursor: pointer; text-decoration: none; letter-spacing: -0.01em; transition: transform 0.2s, box-shadow 0.2s; }
.xp-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.14); }
.xp-btn-light { background: var(--xp-accent); color: var(--ink); }
.xp-btn-outline { display: inline-flex; align-items: center; justify-content: center; background: transparent; color: var(--ink); border: 1.5px solid var(--ink); padding: 18px 22px; border-radius: 999px; font-size: 16px; font-family: var(--xp-display); font-weight: 700; cursor: pointer; text-decoration: none; transition: background 0.2s; }
.xp-btn-outline:hover { background: rgba(14,13,10,0.04); }

/* ── HERO ── */
.xp-hero { padding: 40px 0 80px; position: relative; overflow: visible; }
/* Brand video + storyteller image share one box: 504px, 16:9, same tilt. */
.xp-hero-float {
  position: absolute; right: 12px; top: 50%; transform: translateY(calc(-50% + 48px)) rotate(3deg);
  width: 504px; aspect-ratio: 16 / 9; opacity: 1; pointer-events: none; z-index: 0;
  border-radius: 20px; overflow: visible;
}
/* Media fills the 16:9 box (square storyteller image crops to match the video). */
.xp-hero-float img,
.xp-hero-float-video { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 20px; }
/* Anchor the square storyteller image's 16:9 crop to the top (keep top, crop bottom). */
.xp-hero-float img { object-position: top; }
.xp-hero-float-video { pointer-events: auto; cursor: pointer; }
/* Classy play button, bottom-right of the hero video */
.xp-hero-float-play {
  position: absolute; right: 14px; bottom: 14px; z-index: 3;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,0.92); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(10,10,10,0.12);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  pointer-events: auto; transition: transform var(--t-fast), background var(--t-fast);
}
.xp-hero-float-play svg { margin-left: 2px; }
.xp-hero-float-play:hover { transform: scale(1.06); background: #fff; }
/* "Made with Moodyboard assets" — editorial corner label nested into the
   video's bottom-left (white covers just that corner). */
.xp-hero-float-tag {
  position: absolute; left: 0; bottom: 0;
  background: #fff; color: var(--ink);
  font-family: var(--xp-mono); font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 14px 20px; border-radius: 0 14px 0 18px;
  pointer-events: none; z-index: 2; white-space: nowrap;
}
.xp-h1, .xp-hero-row { position: relative; z-index: 1; }
/* "Watch the demo" pill — the hero float video is hidden on mobile, so this
   gives small screens a way to open the same clip in the fullscreen player.
   Desktop hides it (the float video is right there); shown below 900px. */
.xp-hero-watch-wrap {
  display: none;
  flex-direction: column; align-items: flex-start; gap: 8px;
  margin-top: 14px;
}
.xp-hero-watch {
  display: inline-flex;
  align-items: center; gap: 10px;
  background: transparent; color: var(--ink);
  border: 1.5px solid rgba(14,13,10,0.18); border-radius: 999px;
  padding: 12px 20px 12px 14px;
  font-size: 15px; font-family: var(--xp-display); font-weight: 700;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.xp-hero-watch-play {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: #fff; flex: 0 0 auto;
}
/* Mirrors the desktop float's "Made with Moodyboard assets" tag so mobile
   viewers also know the demo itself was generated with the product. */
.xp-hero-watch-note {
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.01em;
  color: rgba(14,13,10,0.55); font-family: var(--font);
  padding-left: 4px;
}
@media (max-width: 900px) {
  .xp-hero-float { display: none; }
  .xp-hero-watch-wrap { display: flex; }
}

/* "GENERATE / PERFECTLY / ON-BRAND [content]" hero — strict 2-col split.
   Left column: h1 stack, palette, sub, CTAs (reading gravity stays left).
   Right column: the video card, in normal flow (no absolute sag), tag pill off.
   Pill wraps cleanly under ON-BRAND inside the clamped column. */
.xp-hero-two { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); column-gap: 72px; align-items: center; padding: 32px 0 76px; }
.xp-hero-two .xp-h1 { grid-column: 1; line-height: 0.92; font-size: clamp(42px, 7.4vw, 108px); }
/* Brand hero: sentence-case editorial headline — smaller and quieter than the
   story persona's display stack so it never collides with the board image. */
.xp-hero-two .xp-h1.xp-h1-clean {
  font-size: clamp(33px, 3.9vw, 55px);
  font-weight: 800; line-height: 1.04; letter-spacing: -0.035em;
  margin: 0;
}
.xp-h1-clean em { font-family: inherit; font-style: normal; font-weight: inherit; letter-spacing: inherit; }
/* Brand hero left column: one composed unit — h1, sub, CTAs vertically
   grouped with even rhythm instead of stretching across grid rows. */
.xp-hero-left {
  grid-column: 1; grid-row: 1 / span 2;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 28px; position: relative; z-index: 2;
}
/* Sub pulled 32px toward the h1; +32 bottom keeps the CTA row fixed.
   Needs .xp-hero-two prefix to outrank `.xp-hero-two .xp-sub` (same
   specificity, defined later) which was silently winning before. */
.xp-hero-two .xp-hero-left .xp-sub { margin: -12px 0 12px; max-width: 48ch; text-wrap: balance; }
.xp-hero-left .xp-ctas { display: flex; align-items: center; gap: 22px; }
.xp-hero-left .xp-btn-outline {
  border: 0; text-decoration: none; padding-left: 0; padding-right: 0;
}
@media (max-width: 1100px) {
  .xp-hero-left { gap: 22px; }
}
@media (max-width: 768px) {
  .xp-hero-left { width: 100%; }
  .xp-hero-left .xp-ctas { flex-direction: column; align-items: stretch; gap: 12px; width: 100%; }
  .xp-hero-left .xp-ctas .xp-btn { width: 100%; justify-content: center; }
  .xp-hero-left .xp-ctas .xp-btn-outline { width: 100%; justify-content: center; }
}
.xp-hero-two .xp-hero-row { grid-column: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; margin-top: 30px; position: relative; z-index: 2; }
.xp-hero-two .xp-sub { margin: 8px 0 0; max-width: 52ch; }
.xp-hero-two .xp-hero-right { align-items: flex-start; }
/* Right column: a slice of the actual product — the Jilly board on top,
   the promo as a small play-thumb with caption, the palette beneath. */
.xp-hero-board { grid-column: 2; grid-row: 1 / span 2; align-self: start; margin-top: 6px; display: flex; flex-direction: column; gap: 16px; }
.xp-hero-board-img { width: 100%; border-radius: 18px; display: block; box-shadow: 0 18px 48px -18px rgba(10,10,10,0.25); margin-bottom: 24px; }
.xp-hero-board-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: 0; }
/* Brand h1 pill word matches the headline type (Archivo 900), not the serif italic. */
.xp-h1-two .xp-pill { font-family: var(--xp-display); font-style: normal; font-weight: 900; letter-spacing: -0.055em; transform: translateY(calc(0.08em + 8px)); padding: 4px 44px calc(0.12em - 4px) 20px; margin-left: 16px; }
.xp-hero-two .xp-btn-outline { border: 0; }
.xp-hero-board-txt { display: flex; flex-direction: column; gap: 3px; }
.xp-hero-board-txt .xp-hero-palette { margin-top: 12px; }
.xp-hero-board-txt .xp-hero-palette span { width: 18px; height: 18px; }
.xp-hero-board-h { font-family: 'Archivo', 'Helvetica Neue', sans-serif; font-size: 23px; font-weight: 800; letter-spacing: -0.015em; color: var(--ink); margin: 0; }
.xp-hero-thumb { position: relative; flex: none; width: 176px; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; border: 0; padding: 0; cursor: pointer; background: #0a0a0a; align-self: center; }
.xp-hero-thumb-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.xp-hero-thumb-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.xp-hero-thumb-play svg { background: rgba(10,10,10,0.62); border-radius: 50%; padding: 18px; width: 64px; height: 64px; }
.xp-hero-thumb:hover .xp-hero-thumb-play svg { background: rgba(10,10,10,0.8); }
.xp-hero-board-cap { font-family: var(--font); font-weight: 400; font-size: 18px; line-height: 1.45; color: var(--xp-ink2); margin: 0; max-width: 30ch; }
@media (max-width: 1100px) {
  .xp-hero-two { display: block; }
  .xp-hero-board { display: none; }
  .xp-hero-two .xp-hero-watch-wrap { display: flex; }
  .xp-hero-two .xp-hero-row { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; margin-top: 24px; }
}
/* ── Feature cards (brand persona) — the old marketing page's
      "Everything you need to present your vision" row, with substance ── */
.xp-feats { padding: 32px 0 84px; }
/* Social-proof strip — honest: 250+ signed up / made a board. Real user
   brand names from PostHog. Names marquee softly; eyebrow stays centered. */
.xp-proof { padding: 4px 0 44px; }
.xp-proof-ey {
  text-align: center; font-family: var(--xp-display); font-weight: 600;
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute); margin: 0 0 22px;
}
.xp-proof-ey strong { color: var(--ink); font-weight: 800; }
.xp-proof-track { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.xp-proof-row { display: flex; width: max-content; gap: 44px; animation: xp-proof-scroll 44s linear infinite; }
.xp-proof-row span {
  font-family: var(--xp-serif); font-style: italic; font-size: 22px;
  color: var(--ink-soft); white-space: nowrap; flex: none;
}
@keyframes xp-proof-scroll { from { transform: translateX(0); } to { transform: translateX(-25%); } }
@media (prefers-reduced-motion: reduce) { .xp-proof-row { animation: none; } }

.xp-feats-head { margin-bottom: 44px; text-align: center; }
.xp-feats-h {
  font-family: var(--xp-display); font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(28px, 3.4vw, 46px); line-height: 1.05; color: var(--ink);
  margin: 0 0 12px; text-align: center;
}
.xp-feats-h em { font-family: var(--xp-serif); font-style: italic; font-weight: 500; }
.xp-feats-sub { font-size: 17px; color: var(--ink-mute); margin: 0 auto; max-width: 52ch; }
.xp-feats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.xp-feat-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid rgba(10,10,10,0.09); border-radius: 20px;
  padding: 14px 14px 26px;
}
.xp-feat-visual {
  border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3;
  background: var(--xp-accent, #f2ede4); margin-bottom: 20px;
}
.xp-feat-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xp-feat-visual img.xp-feat-img-top { object-position: top; }
.xp-feat-visual-type {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
}
.xp-feat-swatches { display: flex; gap: 10px; }
.xp-feat-swatches i { width: 34px; height: 34px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1px rgba(10,10,10,0.08); }
.xp-feat-fonts { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.xp-feat-font-a { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 26px; letter-spacing: -0.03em; color: var(--ink); }
.xp-feat-font-b { font-family: 'Newsreader', Georgia, serif; font-style: italic; font-size: 24px; color: var(--ink-soft); }
.xp-feat-n {
  font-family: var(--xp-display); font-weight: 800; font-size: 12px; letter-spacing: 0.12em;
  color: var(--ink-dim); margin: 0 12px 6px;
}
.xp-feat-h { font-family: var(--xp-display); font-weight: 700; font-size: 20px; letter-spacing: -0.015em; color: var(--ink); margin: 0 12px 10px; }
.xp-feat-p { font-size: 15px; line-height: 1.55; color: var(--ink-mute); margin: 0 12px 16px; }
.xp-feat-list { list-style: none; margin: auto 12px 0; padding: 14px 0 0; border-top: 1px solid rgba(10,10,10,0.08); display: flex; flex-direction: column; gap: 8px; }
.xp-feat-list li { font-size: 14px; line-height: 1.45; color: var(--ink-soft); padding-left: 20px; position: relative; }
.xp-feat-list li::before { content: '→'; position: absolute; left: 0; color: var(--ink-dim); }
@media (max-width: 900px) {
  .xp-feats-grid { grid-template-columns: 1fr; gap: 20px; }
  .xp-feat-visual { aspect-ratio: 16 / 9; }
}

/* ── Brand hero right side: the board as a crafted object — tilted frame,
      swatches overlapping the bottom edge, video pinned like a polaroid,
      handwritten annotation below ── */
.xp-hero-board-v2 { margin-top: 24px; gap: 0; }
.xp-hero-frame {
  position: relative; transform: rotate(1.1deg);
}
.xp-hero-frame .xp-hero-board-img {
  margin-bottom: 0; border-radius: 16px;
  box-shadow: none;
}
.xp-hero-swatchrow {
  position: absolute; left: 26px; bottom: -16px; display: flex; gap: 8px;
}
.xp-hero-swatchrow span {
  width: 30px; height: 30px; border-radius: 50%; display: block;
  border: 3px solid #fff;
}
.xp-hero-thumb-pinned {
  position: absolute; right: -14px; bottom: -24px; width: 168px;
  transform: rotate(-3.5deg); border: 4px solid #fff; border-radius: 10px;
  box-shadow: none;
  align-self: auto; transition: transform var(--t-fast);
}
.xp-hero-thumb-pinned:hover { transform: rotate(-1.5deg) scale(1.03); }
.xp-hero-annot {
  font-family: 'Caveat', cursive; font-weight: 700; font-size: 22px; line-height: 1.35;
  color: var(--ink-soft); margin: 36px 0 0 4px; max-width: none; text-wrap: balance;
  /* Reserve the old 4-line height so the blurb can be 2 lines without
     shortening the hero column (which would shift the carousel below). */
  min-height: 84px;
}
.xp-chip-free {
  display: inline-flex; align-items: center;
  background: var(--xp-green); color: var(--xp-accent);
  font-family: var(--xp-display); font-weight: 700; font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px;
}
@media (max-width: 1100px) {
  .xp-hero-board-v2 { display: none; }
}

@media (max-width: 768px) {
  .xp-h1.xp-h1-two { font-size: clamp(42px, 12.5vw, 96px); margin-left: 0; }
  .xp-h1.xp-h1-two.xp-h1-clean { font-size: clamp(32px, 8.5vw, 52px); }
  /* Pill: drop the desktop left-nudges so 'content' aligns flush under the
     headline instead of looking randomly indented. */
  .xp-h1-two .xp-pill { margin-left: 0; padding: 4px 28px calc(0.12em - 4px) 28px; }
  /* CTAs: one clean full-width stack — primary, then secondary; no scattered
     mismatched widths, and Watch-the-demo is dropped (video lives in the board
     section just below). */
  .xp-hero-two .xp-ctas { flex-direction: column; align-items: stretch; gap: 12px; width: 100%; }
  .xp-hero-two .xp-ctas .xp-btn,
  .xp-hero-two .xp-ctas .xp-btn-outline { width: 100%; justify-content: center; }
  .xp-hero-two .xp-btn-outline { border: 1.5px solid rgba(14,13,10,0.18); }
  .xp-hero-two .xp-hero-right { width: 100%; align-items: stretch; }
  .xp-hero-two .xp-hero-watch-wrap { display: none; }
}
.xp-h1 { font-family: var(--xp-display); font-weight: 900; font-size: clamp(42px, 13vw, 170px); line-height: 0.86; letter-spacing: -0.055em; margin: 0 auto 0 -16px; color: var(--ink); text-align: left; max-width: fit-content; }
.xp-hero-row { width: 100%; }
.xp-h1-last { display: inline-flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.xp-pill { display: inline-flex; align-items: center; justify-content: center; background: var(--xp-green); color: var(--xp-accent); padding: 0 44px; border-radius: 28px; transform: rotate(-4deg) translateY(calc(0.08em + 8px)); font-style: italic; font-family: var(--xp-serif); font-weight: 400; line-height: 1; height: 0.92em; white-space: nowrap; flex-shrink: 0; max-width: 100%; overflow: hidden; }
.xp-hero-palette { display: flex; gap: 8px; margin-top: 40px; position: relative; z-index: 1; }
.xp-hero-palette span { width: 28px; height: 28px; border-radius: 50%; }
.xp-hero-row { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; text-align: left; }
.xp-sub { font-family: var(--font); font-size: 22px; line-height: 1.35; color: var(--xp-ink2); margin: 0; max-width: 42ch; }
.xp-hero-right { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.xp-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .xp-hero-row { grid-template-columns: 1fr; gap: 32px; }
  .xp-h1 { font-size: clamp(52px, 14vw, 120px); }
}

/* ── FEATURED BOARD ── */
.xp-board { padding: 40px 0 100px; }
.xp-board-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; }
.xp-board-title { font-family: var(--xp-display); font-weight: 900; font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.04em; margin: 0; line-height: 1; }
.xp-board-sub { font-family: var(--xp-serif); font-weight: 300; font-style: italic; font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.03em; margin: 4px 0 0; line-height: 1; color: var(--xp-ink2); }
.xp-board-img { position: relative; width: 100%; aspect-ratio: 1088 / 608; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.18); }
.xp-board-img img,
.xp-board-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.xp-board-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 66px; height: 66px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(10,10,10,0.5); color: #fff; display: grid; place-items: center;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: background var(--t-fast), transform var(--t-fast);
}
.xp-board-play svg { margin-left: 3px; }
.xp-board-play:hover { background: rgba(10,10,10,0.72); transform: translate(-50%, -50%) scale(1.06); }
/* Hero video lightbox */
.video-modal {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px;
  background: rgba(255,255,255,0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: genStepFade 160ms ease both;
}
/* Reference asset picker (pick previously-uploaded or upload new) */
.asset-picker { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 24px; background: rgba(10,10,10,0.45); animation: genStepFade 160ms ease both; }
.asset-picker-card { position: relative; background: var(--bg); border-radius: 18px; width: min(520px, 100%); max-height: 80vh; overflow-y: auto; padding: 28px; box-shadow: 0 24px 64px rgba(10,10,10,0.28); }
.asset-picker-close { position: absolute; top: 14px; right: 14px; background: none; border: 0; cursor: pointer; color: var(--ink-mute); padding: 4px; }
.asset-picker-close:hover { color: var(--ink); }
.asset-picker-h { font-family: var(--xp-display); font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 16px; color: var(--ink); }
.asset-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.asset-picker-upload { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 1; border: 1.5px dashed var(--line-strong); border-radius: 12px; cursor: pointer; color: var(--ink-mute); font-size: 12px; font-weight: 500; transition: border-color var(--t-fast), color var(--t-fast); }
.asset-picker-upload:hover { border-color: var(--ink); color: var(--ink); }
.asset-picker-item { aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line); background-size: cover; background-position: center; cursor: pointer; padding: 0; transition: transform var(--t-fast), border-color var(--t-fast); }
.asset-picker-item:hover { transform: scale(1.03); border-color: var(--ink); }
.asset-picker-loading, .asset-picker-empty { grid-column: 1 / -1; font-size: 13px; color: var(--ink-mute); margin: 4px 0; }
.video-modal-inner { position: relative; width: min(960px, 100%); }
.video-modal-inner video { width: 100%; border-radius: 14px; display: block; box-shadow: 0 24px 70px rgba(10,10,10,0.22); }
.xp-board-badge { position: absolute; top: 20px; right: 20px; background: var(--ink); color: var(--xp-accent); padding: 8px 14px; border-radius: 999px; font-family: var(--xp-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; display: flex; align-items: center; gap: 8px; }
.xp-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* ── OUTPUTS — layered cards ── */
.xp-outputs { padding: 0 0 88px; }
.xp-outputs-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; margin-bottom: 40px; }
.xp-outputs-title { font-family: var(--xp-display); font-weight: 800; font-size: clamp(32px, 4vw, 56px); letter-spacing: -0.035em; margin: 0; line-height: 1.0; }
.xp-outputs-title em { font-style: italic; font-weight: 500; font-family: var(--xp-serif); }
.xp-outputs-sub { max-width: 64ch; font-size: 16px; color: var(--xp-ink2); margin: 0; line-height: 1.5; text-wrap: balance; }
.xp-outputs-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 90px; gap: 16px; position: relative; }
.xp-out { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px -16px rgba(0,0,0,0.2); }
.xp-out img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xp-out-wide { grid-column: span 7; grid-row: span 5; transform: rotate(-1deg); }
.xp-out-tall { grid-column: span 5; grid-row: span 8; transform: rotate(1.5deg); }
.xp-out-sq { grid-column: span 4; grid-row: span 3; transform: rotate(-1.5deg); }
.xp-out-tag { position: absolute; top: 16px; left: 20px; background: var(--xp-accent); color: var(--ink); padding: 6px 12px; border-radius: 999px; font-family: var(--font); font-weight: 300; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }
.xp-out-tag-dk { background: var(--xp-green); color: var(--xp-accent); right: 20px; left: auto; }
.xp-out-script { position: absolute; bottom: 20px; right: 24px; font-family: var(--xp-script); font-size: 30px; color: #fff; transform: rotate(-3deg); text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.xp-out-caption { grid-column: span 3; grid-row: span 3; background: var(--xp-accent); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; transform: rotate(1deg); }
.xp-out-caption-ey { font-family: var(--font); font-weight: 300; font-size: 10.5px; color: var(--xp-ink2); text-transform: uppercase; letter-spacing: 0.14em; }
.xp-out-caption-q { font-family: var(--xp-serif); font-style: italic; font-size: 28px; line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); }
@media (max-width: 800px) {
  .xp-outputs-head { flex-direction: column; gap: 16px; }
  .xp-outputs-grid { display: flex; flex-direction: column; gap: 16px; }
  .xp-out { transform: none !important; }
  .xp-out-caption { transform: none !important; }
}

/* ── STEPS — colored blocks ── */
.xp-steps { padding: 0 0 88px; }
.xp-steps-head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 32px; }
.xp-steps-title { font-family: var(--xp-display); font-weight: 800; font-size: clamp(32px, 4vw, 56px); letter-spacing: -0.035em; margin: 0; line-height: 1.0; }
.xp-steps-title em { color: var(--xp-ink2); font-weight: 300; font-style: italic; font-family: var(--xp-serif); }
.xp-steps-sub { max-width: 440px; font-size: 16px; color: var(--xp-ink2); margin: 0; line-height: 1.4; }
.xp-steps-list { display: flex; flex-direction: column; gap: 14px; width: 100%; }
.xp-step { border-radius: 28px; padding: 40px 44px; display: grid; grid-template-columns: 130px 1fr 1.15fr; gap: 36px; align-items: center; width: 100%; box-sizing: border-box; }
.xp-step-n { font-family: var(--xp-display); font-weight: 900; font-size: 96px; line-height: 0.9; letter-spacing: -0.04em; padding-right: 40px; }
.xp-step-text { display: flex; flex-direction: column; gap: 12px; }
.xp-step-h { font-family: var(--xp-display); font-weight: 900; font-size: clamp(22px, 2.8vw, 36px); letter-spacing: -0.01em; word-spacing: 0.12em; margin: 0; line-height: 1; }
.xp-step-p { font-size: 16px; margin: 0; line-height: 1.4; opacity: 0.86; }
.xp-step-a { background: var(--xp-accent); color: var(--ink); }
.xp-step-b { background: var(--xp-green); color: var(--xp-accent); }
.xp-step-c { background: var(--ink); color: var(--xp-accent); }
/* Step visuals — input mock (step 1), moodboard + overlay prompt (step 2),
   final result + label (step 3). */
.xp-step-visual { display: flex; align-items: center; justify-content: flex-end; min-width: 0; }
.xp-step-input { display: flex; align-items: center; width: 100%; max-width: 320px; box-sizing: border-box; background: rgba(255,255,255,0.72); border: 1px solid rgba(0,0,0,0.08); border-radius: 14px; padding: 12px 12px 12px 18px; font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.xp-step-typed { white-space: pre; }
.xp-step-cursor { display: inline-block; width: 2px; height: 1.05em; background: currentColor; margin-left: 1px; vertical-align: text-bottom; opacity: 0; }
/* Cursor visibility is driven per-input by JS (cursor-on = steady, cursor-blink = blinking). */
.xp-step-input.cursor-on .xp-step-cursor { opacity: 1; }
.xp-step-input.cursor-blink .xp-step-cursor { animation: xp-caret-blink 1.05s steps(1) infinite; }
@keyframes xp-caret-blink { 0%,49%{opacity:1;} 50%,100%{opacity:0;} }
.xp-step-submit { flex: none; margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: default; transition: transform 0.16s cubic-bezier(0.4,0,0.2,1), filter 0.16s; }
.xp-step-input-over .xp-step-submit { width: 28px; height: 28px; }
.xp-step-submit.is-tapped { transform: scale(0.82); filter: brightness(1.5); }
/* Step 2 — moodboard with the prompt input overlaid on it */
.xp-step-board-wrap { position: relative; width: 100%; max-width: 260px; }
.xp-step-board { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; box-shadow: 0 10px 24px -10px rgba(0,0,0,0.28); }
.xp-step-input-over { position: absolute; left: 10px; right: 10px; bottom: 10px; width: auto; max-width: none; padding: 8px 8px 8px 14px; font-size: 14px; color: var(--ink); background: rgba(255,255,255,0.9); box-shadow: 0 4px 14px rgba(0,0,0,0.18); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.xp-step-input-over .xp-step-typed { color: var(--ink); }
/* Step 3 — final result with a label chip */
.xp-step-result { position: relative; width: 100%; max-width: 200px; }
.xp-step-final { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 14px; box-shadow: 0 10px 22px -10px rgba(0,0,0,0.45); }
.xp-step-label { position: absolute; left: 10px; right: 10px; bottom: 10px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: rgba(255,255,255,0.9); color: var(--ink); border: 1px solid rgba(0,0,0,0.08); font-size: 12px; font-weight: 500; letter-spacing: 0.01em; padding: 7px 10px; border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,0.18); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
/* Celebration when the final result lands: a little pop on the image + a
   confetti burst of dots that fly out and fade. JS adds .celebrate. */
.xp-steps.demo-active .xp-step-final.is-in { animation: xp-pop 0.5s cubic-bezier(0.2,1.3,0.4,1) both; }
@keyframes xp-pop { 0%{transform:scale(0.9);} 55%{transform:scale(1.05);} 100%{transform:scale(1);} }
.xp-step-confetti { position: absolute; inset: 0; pointer-events: none; overflow: visible; z-index: 4; }
.xp-step-confetti i { position: absolute; top: 42%; left: 50%; width: 7px; height: 7px; border-radius: 2px; opacity: 0; }
.xp-step-result.celebrate .xp-step-confetti i { animation: xp-confetti 0.85s ease-out forwards; }
.xp-step-confetti i:nth-child(1){ background:#e8c4a0; --tx:-58px; --ty:-46px; --r:160deg; animation-delay:0ms; }
.xp-step-confetti i:nth-child(2){ background:#9cb89c; --tx:54px; --ty:-52px; --r:-140deg; animation-delay:30ms; }
.xp-step-confetti i:nth-child(3){ background:#f5e6d3; --tx:-66px; --ty:18px; --r:90deg; animation-delay:60ms; }
.xp-step-confetti i:nth-child(4){ background:#dde6c0; --tx:64px; --ty:24px; --r:-110deg; animation-delay:20ms; }
.xp-step-confetti i:nth-child(5){ background:#e8c4a0; --tx:-30px; --ty:-68px; --r:200deg; animation-delay:70ms; }
.xp-step-confetti i:nth-child(6){ background:#9cb89c; --tx:34px; --ty:-66px; --r:-60deg; animation-delay:50ms; }
.xp-step-confetti i:nth-child(7){ background:#f5e6d3; --tx:-72px; --ty:-12px; --r:120deg; animation-delay:0ms; }
.xp-step-confetti i:nth-child(8){ background:#dde6c0; --tx:72px; --ty:-8px; --r:-180deg; animation-delay:40ms; }
@keyframes xp-confetti {
  0%   { opacity:0; transform: translate(-50%,-50%) scale(0.4) rotate(0deg); }
  15%  { opacity:1; }
  100% { opacity:0; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1) rotate(var(--r)); }
}
@media (prefers-reduced-motion: reduce) {
  .xp-steps.demo-active .xp-step-final.is-in { animation: none; }
  .xp-step-result.celebrate .xp-step-confetti i { animation: none; }
}
/* Reveal choreography — only armed once JS adds .demo-active; without JS the
   visuals show normally. */
.xp-steps.demo-active .xp-step-a .xp-step-input,
.xp-steps.demo-active .xp-step-board,
.xp-steps.demo-active .xp-step-input-over,
.xp-steps.demo-active .xp-step-final,
.xp-steps.demo-active .xp-step-label { opacity: 0; transform: translateY(10px) scale(0.96); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16,1,0.3,1); }
.xp-steps.demo-active .xp-step-a .xp-step-input.is-in,
.xp-steps.demo-active .xp-step-board.is-in,
.xp-steps.demo-active .xp-step-input-over.is-in,
.xp-steps.demo-active .xp-step-final.is-in,
.xp-steps.demo-active .xp-step-label.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .xp-step-input.cursor-on .xp-step-cursor,
  .xp-step-input.cursor-blink .xp-step-cursor { animation: none; opacity: 0; }
  .xp-steps.demo-active .xp-step-a .xp-step-input { opacity: 1; transform: none; }
  .xp-steps.demo-active .xp-step-board,
  .xp-steps.demo-active .xp-step-input-over,
  .xp-steps.demo-active .xp-step-final,
  .xp-steps.demo-active .xp-step-label { opacity: 1; transform: none; }
}
@media (max-width: 800px) {
  .xp-steps-head { flex-direction: column; gap: 16px; }
  .xp-step { grid-template-columns: 1fr; gap: 18px; padding: 28px 24px; }
  .xp-step-n { font-size: 56px; }
  .xp-step-visual { justify-content: flex-start; }
  .xp-step-board-wrap { max-width: 240px; }
  .xp-step-result { max-width: 180px; }
}

/* ── CLAUDE CODE — two-up module ── */
.xp-claude { padding: 0 0 88px; }
.xp-claude-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; max-width: 1100px; margin: 0 auto; }
.xp-claude-h { font-family: var(--xp-display); font-weight: 800; font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -0.035em; line-height: 1.04; margin: 18px 0 0; color: var(--ink); }
.xp-claude-lede { font-size: 17px; color: #555; margin-top: 20px; max-width: 44ch; line-height: 1.6; }
.xp-claude-lede strong { color: var(--ink); }
.xp-claude-list { list-style: none; margin: 22px 0 30px; padding: 0; display: flex; flex-direction: column; gap: 9px; font-family: var(--xp-mono); font-size: 14px; color: var(--ink); }
.xp-spec-card { background: #0e0d0a; border-radius: 18px; overflow: hidden; box-shadow: 0 28px 64px -28px rgba(0,0,0,0.55); }
.xp-spec-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.xp-spec-bar span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.xp-spec-bar em { margin-left: 8px; font-family: var(--xp-mono); font-size: 12px; font-style: normal; color: rgba(255,255,255,0.45); }
.xp-spec-swatches { display: flex; gap: 0; padding: 16px 16px 2px; }
.xp-spec-swatches i { flex: 1; height: 26px; }
.xp-spec-swatches i:first-child { border-radius: 6px 0 0 6px; }
.xp-spec-swatches i:last-child { border-radius: 0 6px 6px 0; }
.xp-spec-code { margin: 12px 18px 22px; font-family: var(--xp-mono); font-size: 12.5px; line-height: 1.7; color: rgba(255,255,255,0.82); white-space: pre-wrap; word-break: break-word; }
@media (max-width: 860px) { .xp-claude-inner { grid-template-columns: 1fr; gap: 30px; } .xp-claude-lede { max-width: none; } }

/* ── PRICING — dark section ── */
.xp-pricing { background: var(--ink); color: #fff; border-radius: 40px; padding: 64px 40px; margin-bottom: 8px; }
.xp-pricing-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; max-width: 1200px; margin: 0 auto; }
.xp-pricing-left { }
.xp-pricing-h { font-family: var(--xp-display); font-weight: 800; font-size: clamp(32px, 4vw, 56px); letter-spacing: -0.035em; margin: 20px 0 0; line-height: 1.0; }
.xp-pricing-accent { color: var(--xp-accent); }
.xp-pricing-lede { font-size: 17px; color: rgba(255,255,255,0.7); margin-top: 24px; max-width: 36ch; }
.xp-pricing-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.xp-pcard { background: rgba(255,255,255,0.05); color: #fff; border-radius: 24px; padding: 28px 26px 24px; position: relative; display: flex; flex-direction: column; gap: 16px; }
.xp-pcard-best { background: var(--xp-accent); color: var(--ink); }
.xp-pcard-badge { position: absolute; top: -12px; right: 20px; background: var(--xp-green); color: var(--xp-accent); padding: 6px 12px; border-radius: 999px; font-family: var(--font); font-weight: 300; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.14em; }
.xp-pcard-tier { font-family: var(--xp-display); font-weight: 900; font-size: 14px; letter-spacing: 0.04em; }
.xp-pcard-price { font-family: var(--xp-display); font-weight: 900; font-size: clamp(56px, 6.8vw, 88px); line-height: 0.9; letter-spacing: -0.04em; }
.xp-pcard-cents { font-size: 36px; }
.xp-pcard-per { font-size: 20px; font-weight: 500; font-family: var(--font); opacity: 0.8; margin-left: 6px; }
.xp-pcard-blurb { font-size: 14px; margin: 0; opacity: 0.78; line-height: 1.4; }
.xp-pcard-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.xp-pcard-btn { display: block; text-align: center; margin-top: 4px; background: var(--xp-accent); color: var(--ink); border: none; padding: 14px 18px; border-radius: 999px; font-size: 14px; font-family: var(--xp-display); font-weight: 700; cursor: pointer; text-decoration: none; transition: transform 0.2s; }
.xp-pcard-btn:hover { transform: translateY(-2px); }
.xp-pcard-btn-inv { background: var(--ink); color: var(--xp-accent); }
@media (max-width: 900px) {
  .xp-pricing-inner { grid-template-columns: 1fr; gap: 40px; }
  .xp-pricing-cards { grid-template-columns: 1fr; }
}

/* ── FINAL CTA — dark ── */
.xp-final { background: var(--ink); color: #fff; padding: 56px 40px 88px; position: relative; overflow: hidden; border-radius: 40px; margin-top: 8px; }
.xp-final-ghost { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); font-family: var(--xp-display); font-weight: 900; font-size: clamp(140px, 24vw, 320px); color: rgba(221,230,192,0.06); line-height: 0.85; letter-spacing: -0.06em; white-space: nowrap; pointer-events: none; }
.xp-final-inner { position: relative; text-align: center; max-width: 1100px; margin: 0 auto; }
.xp-final-h { font-family: var(--xp-display); font-weight: 800; font-size: clamp(44px, 7vw, 92px); line-height: 0.92; letter-spacing: -0.04em; margin: 24px 0 0; }
.xp-final-h em { font-style: italic; font-weight: 300; color: var(--xp-accent); font-family: var(--xp-serif); }
.xp-final-ctas { margin-top: 40px; display: inline-flex; gap: 14px; align-items: center; }
.xp-final-note { font-size: 13px; color: rgba(255,255,255,0.6); }

/* ── FOOTER ── */
/* ── FOOTER ── */
.xp-foot { background: transparent; padding: 120px 24px 14px; display: flex; justify-content: space-between; align-items: center; }
.xp-foot-links { display: flex; gap: 36px; }
.xp-foot-links a { color: var(--ink); text-decoration: none; font-family: var(--font); font-size: 22px; font-weight: 400; transition: opacity var(--t-fast); }
.xp-foot-links a:hover { opacity: 0.7; }
.xp-foot-copy { font-family: var(--font); font-size: 22px; font-weight: 400; color: var(--ink); }
@media (min-width: 1200px) { .xp-foot { padding: 120px 32px 14px; } }
@media (max-width: 720px) { .xp-foot { flex-direction: column; gap: 16px; padding: 80px 16px 12px; } }

/* ── FAQ ── */
.xp-faq { padding: 64px 0 48px; }
.xp-faq-h { font-family: var(--xp-display); font-weight: 800; font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.03em; margin: 0 0 36px; }
.xp-faq-grid { display: flex; flex-direction: column; gap: 0; }
.xp-faq-item { border-bottom: 1px solid var(--line); }
.xp-faq-item summary {
  padding: 20px 0; font-family: var(--font); font-size: 17px; font-weight: 600;
  color: var(--ink); cursor: pointer; list-style: none; display: flex;
  justify-content: space-between; align-items: center;
}
.xp-faq-item summary::-webkit-details-marker { display: none; }
.xp-faq-item summary::after { content: '+'; font-size: 22px; font-weight: 400; color: var(--ink-mute); transition: transform var(--t-fast); }
.xp-faq-item[open] summary::after { content: '−'; }
.xp-faq-item p { padding: 0 0 20px; margin: 0; font-size: 16px; line-height: 1.6; color: var(--xp-ink2); max-width: 64ch; }

/* ── BLOG ── */
.blog-page { padding-bottom: 0; }
.blog-header { padding: 40px 0 48px; max-width: 680px; margin: 0 auto; }
.blog-page-h { font-family: var(--xp-display); font-weight: 900; font-size: clamp(36px, 6vw, 64px); letter-spacing: -0.04em; margin: 0 0 12px; }
.blog-page-sub { font-family: var(--font); font-size: 18px; color: var(--xp-ink2); margin: 0; max-width: 48ch; line-height: 1.5; }
.blog-list { display: flex; flex-direction: column; gap: 0; padding-bottom: 80px; max-width: 680px; margin: 0 auto; }
.blog-card {
  display: block; padding: 32px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit; transition: background var(--t-fast);
}
.blog-card:first-child { border-top: 1px solid var(--line); }
.blog-card:hover { background: #faf9f6; }
.blog-card-date { font-family: var(--xp-mono); font-size: 12px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.1em; }
.blog-card-title { font-family: var(--xp-display); font-weight: 900; font-size: clamp(22px, 3vw, 32px); letter-spacing: -0.03em; margin: 8px 0 10px; line-height: 1.15; }
.blog-card-excerpt { font-family: var(--font); font-size: 16px; color: var(--xp-ink2); line-height: 1.5; margin: 0 0 12px; max-width: 60ch; }
.blog-card-read { font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--ink); }
.blog-back { font-family: var(--font); font-size: 15px; color: var(--ink-mute); display: inline-block; margin-bottom: 32px; }
.blog-back:hover { color: var(--ink); }
.blog-article { padding: 40px 0 80px; max-width: 680px; margin: 0 auto; }
.blog-article-date { font-family: var(--xp-mono); font-size: 12px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.1em; }
.blog-article-title { font-family: var(--xp-display); font-weight: 900; font-size: clamp(28px, 5vw, 44px); letter-spacing: -0.04em; margin: 12px 0 0; line-height: 1.1; }
.blog-article-body { margin-top: 40px; }
.blog-article-body p { font-family: var(--font); font-size: 17px; line-height: 1.7; color: var(--xp-ink2); margin: 0 0 20px; }
.blog-article-body h2 { font-family: var(--xp-display); font-weight: 900; font-size: 24px; letter-spacing: -0.03em; margin: 40px 0 16px; color: var(--ink); }
.blog-article-body ul, .blog-article-body ol { font-family: var(--font); font-size: 17px; line-height: 1.7; color: var(--xp-ink2); margin: 0 0 20px; padding-left: 24px; }
.blog-article-body li { margin-bottom: 6px; }
.blog-img { margin: 32px 0; border-radius: var(--r-lg); overflow: hidden; }
.blog-img img { width: 100%; height: auto; display: block; }
.blog-img-caption { display: block; font-size: 14px; color: var(--ink-mute); padding: 12px 0 0; font-family: var(--font); }
.blog-img-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 32px 0; }
.blog-img-grid-item { border-radius: var(--r); overflow: hidden; }
.blog-img-grid-item img { width: 100%; height: auto; display: block; }
.blog-img-grid-item span { display: block; font-size: 13px; color: var(--ink-mute); padding: 8px 0 0; text-align: center; font-family: var(--font); }
.blog-article-cta { border-top: 1px solid var(--line); padding: 40px 0 0; margin-top: 48px; text-align: center; }
.blog-article-cta p { font-family: var(--font); font-size: 18px; color: var(--xp-ink2); margin: 0 0 20px; }
@media (max-width: 600px) {
  .blog-img-grid { grid-template-columns: 1fr; }
}

/* ────────── Showcase (real moodboards, masonry) ────────── */
.sc-page { padding-bottom: 0; }
.sc-header { max-width: 900px; margin: 0 auto; padding: 40px 0 0; text-align: center; }
.sc-h { font-family: var(--xp-display); font-weight: 900; font-size: clamp(36px, 6vw, 64px); line-height: 1.04; letter-spacing: -0.04em; margin: 0 0 18px; text-wrap: balance; }
.sc-sub { font-family: var(--font); font-size: 18px; color: var(--xp-ink2); line-height: 1.55; margin: 0 auto 24px; max-width: 68ch; text-wrap: balance; }
.sc-cta { display: inline-block; margin-bottom: 88px; }
.sc-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 32px; row-gap: 0; grid-auto-rows: 1px; padding-bottom: 16px; position: relative; left: 50%; transform: translateX(-50%); width: 94vw; max-width: 1560px; }
.sc-card { display: block; margin: 0; align-self: start; text-decoration: none; color: inherit; cursor: pointer; transition: transform .15s ease; }
.sc-card:hover { transform: translateY(-3px); }
.sc-card img { width: 100%; height: auto; display: block; border-radius: 10px; background: #efeee9; transition: box-shadow .15s ease; }
.sc-card:hover img { box-shadow: 0 14px 30px rgba(10,10,10,0.10); }
.sc-cap { display: block; font-family: var(--font); font-size: 17px; font-weight: 400; color: var(--ink); padding: 12px 0 0; }
@media (max-width: 900px) { .sc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sc-grid { grid-template-columns: 1fr; } }

/* Showcase preview strip on the landing page */
.xp-showcase { max-width: 1100px; margin: 0 auto; padding: 24px 24px 72px; text-align: center; }
.xp-showcase-h { font-family: var(--xp-display); font-weight: 900; font-size: clamp(26px, 4vw, 40px); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 8px; text-wrap: balance; }
.xp-showcase-sub { font-family: var(--font); font-size: 17px; color: var(--xp-ink2); line-height: 1.55; margin: 0 auto 28px; max-width: 52ch; text-wrap: balance; }
/* Uniform grid — all teaser boards are ~16:9, so no masonry: fixed crops
   keep rows flush and kill the tail gap the JS spans left above the button. */
.xp-showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 16px; }
.xp-showcase-grid .sc-card { margin: 0; }
.xp-showcase-grid .sc-card img { aspect-ratio: 16 / 9; object-fit: cover; }
.xp-showcase-more { display: inline-block; margin-top: 28px; }
@media (max-width: 900px) { .xp-showcase-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .xp-showcase-grid { grid-template-columns: 1fr; } }

/* ────────── Board detail (2-column: moodboard + generate) ────────── */
.board-detail {
  display: flex; flex-direction: column; gap: 28px;
  padding: 8px 0 80px;
}
.board-detail-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.board-detail-brand {
  font-family: var(--xp-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 900; letter-spacing: -0.04em;
  line-height: 1.05; color: var(--ink);
  margin: 0;
  cursor: text;
  padding: 2px 8px; margin-left: -8px;
  border-radius: 8px;
  transition: background var(--t-fast), box-shadow var(--t-fast);
  overflow-wrap: anywhere;
}
.board-detail-brand:hover { background: #f5f5f5; }
.board-detail-brand.is-editing {
  background: #fff;
  box-shadow: 0 0 0 1px var(--ink) inset;
  outline: none;
}
.board-detail-desc {
  font-size: 15px; line-height: 1.5; color: var(--ink-soft);
  max-width: 60ch; margin: 8px 0 0;
  cursor: text;
  padding: 4px 6px; margin-left: -6px;
  border-radius: 6px;
  transition: background var(--t-fast), box-shadow var(--t-fast);
}
.board-detail-desc:hover { background: #f5f5f5; }
.board-detail-desc.is-editing {
  background: #fff;
  box-shadow: 0 0 0 1px var(--ink) inset;
  outline: none;
}
.board-detail-desc-empty { color: var(--ink-mute); font-style: italic; }
.board-detail-head-actions { display: inline-flex; gap: 8px; }
.board-detail-menu { position: relative; }
.board-detail-menu-btn {
  appearance: none; background: #f3f3f1; border: 0; cursor: pointer;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--ink-mute);
  transition: background var(--t-fast), color var(--t-fast);
}
.board-detail-menu-btn:hover,
.board-detail-menu.open .board-detail-menu-btn {
  background: #f3f3f3; color: var(--ink);
}
.board-detail-menu-items {
  position: absolute; right: 0; top: calc(100% + 6px);
  min-width: 200px;
  padding: 6px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(10, 10, 10, 0.08);
  display: none;
  z-index: 20;
}
.board-detail-menu.open .board-detail-menu-items { display: block; }
.board-detail-menu-item {
  appearance: none; background: transparent; border: 0; cursor: pointer;
  display: block; width: 100%; text-align: left;
  padding: 10px 12px;
  font: inherit; font-size: 14px; color: var(--ink);
  border-radius: 6px;
  transition: background var(--t-fast), color var(--t-fast);
}
.board-detail-menu-item:hover { background: #f5f5f5; }
.board-detail-menu-item.is-danger { color: var(--bad, #c43d3d); }
.board-detail-menu-item.is-danger:hover { background: rgba(196, 61, 61, 0.08); }
/* Sidebar + main layout */
.board-layout { display: grid; grid-template-columns: 340px 1fr; gap: 40px; min-height: calc(100vh - 200px); align-items: start; }
.board-sidebar {
  position: sticky; top: 80px; align-self: start;
  display: flex; flex-direction: column; gap: 20px;
  max-height: calc(100vh - 100px); overflow-y: auto;
  padding: 16px; padding-bottom: 20px;
  background: #fafafa; border-radius: var(--r-lg);
}
.board-sidebar::-webkit-scrollbar { width: 0; }
.board-sidebar-moodboard { border-radius: var(--r); overflow: hidden; cursor: pointer; }
.board-sidebar-moodboard img { width: 100%; height: auto; display: block; }
.board-sidebar-pending {
  background: #f7f7f5; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16/9;
}
.board-pending-placeholder {
  text-align: center; padding: 20px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.board-pending-placeholder p { font-size: 14px; color: var(--ink-mute); margin: 0; }
.board-sidebar-section { display: flex; flex-direction: column; gap: 8px; }
.board-sidebar-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-mute); margin: 0; }
.board-sidebar-palette { display: flex; gap: 6px; flex-wrap: wrap; }
.board-sidebar-palette .board-card-swatch { width: 30px; height: 30px; }
.board-sidebar-actions { display: flex; flex-direction: column; gap: 6px; }
.board-font-pill { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: #f3f3f1; font-size: 13px; color: var(--ink); text-decoration: none; transition: background var(--t-fast); }
.board-font-pill:hover { background: #e8e8e5; }
.board-sidebar-desc { font-size: 14px; line-height: 1.5; color: var(--ink-mute); margin: 0; overflow-wrap: anywhere; }
.board-main { min-width: 0; }
@media (max-width: 820px) {
  .board-layout { grid-template-columns: 1fr; }
  .board-sidebar { position: static; max-height: none; flex-direction: row; flex-wrap: wrap; gap: 12px; align-items: start; }
  /* Thumbnail fills the sidebar width so left/right padding match (was capped at 200px, leaving a right gap) */
  .board-sidebar-moodboard { flex: 1 0 100%; max-width: none; }
}

/* Floating prompt bar */
.board-prompt-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  padding: 0 24px 20px;
  pointer-events: none;
}
.board-prompt-disclaimer {
  text-align: center; font-size: 11px; color: var(--ink-dim);
  margin: 7px auto 0; pointer-events: none;
}
.board-prompt-intro {
  max-width: 520px; margin: 0 auto 10px;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 8px 28px rgba(0,0,0,0.10);
  pointer-events: none;
}
.board-prompt-intro-thumb {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 10px; object-fit: cover;
  border: 1px solid var(--line);
}
.board-prompt-intro-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.board-prompt-intro-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.board-prompt-intro-sub { font-size: 12.5px; line-height: 1.45; color: var(--ink-mute); }
.board-prompt-card {
  max-width: 520px; margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 8px 8px 18px;
  box-shadow: none;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: auto;
}
.board-prompt-upgrade {
  flex-direction: row; align-items: center; justify-content: space-between;
  gap: 14px; padding: 8px 8px 8px 22px;
}
.board-prompt-upgrade-text {
  font-size: 14px; font-weight: 500; color: var(--ink-mute); flex: 1;
}
.board-prompt-upgrade-btn {
  appearance: none; background: var(--ink); color: #fff;
  border: 0; border-radius: 999px;
  padding: 10px 18px; font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background var(--t-fast);
}
.board-prompt-upgrade-btn:hover { background: #2a2a2a; }
@media (max-width: 540px) {
  .board-prompt-upgrade { flex-direction: column; align-items: stretch; padding: 14px; border-radius: 16px; }
  .board-prompt-upgrade-text { text-align: center; }
  .board-prompt-upgrade-btn { text-align: center; }
}
.board-prompt-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.board-prompt-pill {
  appearance: none; border: 1px solid var(--line); background: #fff;
  padding: 5px 12px; border-radius: 999px; font: inherit; font-size: 13px;
  font-weight: 500; color: var(--ink-mute); cursor: pointer;
  transition: all var(--t-fast);
}
.board-prompt-pill.selected { background: var(--ink); color: #fff; border-color: var(--ink); }
.board-prompt-pill:hover:not(.selected) { border-color: var(--ink); color: var(--ink); }
.board-prompt-input-row {
  display: flex; align-items: center; gap: 10px;
}
.board-prompt-ratio-select {
  appearance: none; border: 1px solid var(--line); background: #fff;
  padding: 6px 10px; border-radius: 8px; font: inherit; font-size: 13px;
  font-weight: 500; color: var(--ink); cursor: pointer; flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
  padding-right: 24px;
}
.board-prompt-input-row input {
  flex: 1; border: 0; background: transparent; font: inherit; font-size: 14px;
  outline: none; padding: 6px 0; font-family: var(--font); color: var(--ink);
}
.board-prompt-input-row input::placeholder { color: var(--ink-dim); }
.board-prompt-send {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--ink); color: #fff; border: 0;
  font-size: 18px; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: opacity var(--t-fast);
}
.board-prompt-send:hover { opacity: 0.8; }
.board-prompt-send:disabled { opacity: 0.3; cursor: not-allowed; }
.board-prompt-card.is-highlight { animation: prompt-pulse 1.5s ease; }
@keyframes prompt-pulse {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 0 3px rgba(10,10,10,0.15); }
}
.board-gen-sticky-spinner {
  width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff; border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@media (max-width: 720px) {
  .board-prompt-bar { padding: 0 12px 12px; }
  .board-prompt-card { padding: 10px 14px; }
}

/* shared card chrome */
.board-card {
  display: flex; flex-direction: column; gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #ffffff;
}
.board-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding-bottom: 4px;
  /* Lock the head height so both columns in the detail grid have the
     same first-row height — even when one head has buttons (left) and
     the other has only the title (right). This makes the textarea on
     the right align with the moodboard image on the left. */
  min-height: 34px;
}
.board-card-head-actions {
  display: inline-flex; align-items: center; gap: 8px;
}
.board-card-title {
  font-family: var(--font); font-size: 15px; font-weight: 500; margin: 0;
  color: var(--ink);
}
.board-card-regen {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid var(--line);
  padding: 5px 10px 5px 8px; border-radius: 999px;
  font: inherit; font-size: 12px; font-weight: 500; color: var(--ink);
  cursor: pointer; line-height: 1;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.board-card-regen:hover { background: #f5f5f5; border-color: var(--ink); }
.board-card-regen:disabled { opacity: 0.5; cursor: not-allowed; }
.board-card-regen svg { flex: 0 0 auto; }

/* Variations pill — compact entry next to the 3-dot menu. */
.board-variations-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid var(--line);
  padding: 5px 12px 5px 6px; border-radius: 999px;
  font: inherit; font-size: 12px; font-weight: 500; color: var(--ink);
  cursor: pointer; line-height: 1;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.board-variations-pill:hover { background: #f5f5f5; border-color: var(--ink); }
.board-variations-pill-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px;
  background: var(--ink); color: #fff;
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  padding: 0 6px;
}
.board-variations-pill-label { letter-spacing: 0.01em; }

/* Variations modal — opens from the pill. Grid of all siblings. */
.variations-modal {
  position: fixed; inset: 0;
  z-index: 950;
  background: rgba(10, 10, 10, 0.55);
  display: grid; place-items: center;
  padding: 24px;
  animation: variations-fade 160ms ease-out;
}
@keyframes variations-fade { from { opacity: 0; } to { opacity: 1; } }
.variations-modal-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  width: min(880px, 100%);
  max-height: 86vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.28);
}
.variations-modal-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 14px;
}
.variations-modal-title {
  font-family: var(--xp-display); font-size: 16px; font-weight: 700; margin: 0;
  color: var(--ink); letter-spacing: -0.02em;
}
.variations-modal-sub {
  margin: 4px 0 0; font-size: 12px; color: var(--ink-mute);
}
.variations-modal-close {
  appearance: none; background: transparent; border: 0; cursor: pointer;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--ink-mute);
  transition: background var(--t-fast), color var(--t-fast);
}
.variations-modal-close:hover { background: #f5f5f5; color: var(--ink); }
.variations-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  padding: 18px 22px 22px;
  overflow-y: auto;
}
.variations-modal-tile {
  display: flex; flex-direction: column; gap: 8px;
  background: transparent; border: 0; padding: 0;
  font: inherit; cursor: pointer; text-align: left;
}
.variations-modal-thumb {
  position: relative;
  width: 100%; aspect-ratio: 16 / 9;
  border-radius: 10px; overflow: hidden;
  background: #ececec;
  border: 2px solid transparent;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.variations-modal-tile:hover .variations-modal-thumb { transform: translateY(-1px); }
.variations-modal-tile.is-active .variations-modal-thumb { border-color: var(--ink); }
.variations-modal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.variations-modal-missing { width: 100%; height: 100%; }
.variations-modal-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--ink); color: #fff;
  font-size: 10px; font-weight: 600; letter-spacing: 0.04em;
  padding: 3px 7px; border-radius: 4px; text-transform: uppercase;
}
.variations-modal-date {
  font-size: 12px; color: var(--ink-mute); letter-spacing: 0.01em;
}
.variations-modal-tile-wrap { position: relative; }
.variations-modal-delete {
  position: absolute;
  top: 8px; right: 8px;
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(10, 10, 10, 0.08);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  z-index: 3;
}
.variations-modal-delete:hover {
  background: #c43d3d;
  color: #fff;
  border-color: #c43d3d;
}

/* left: the moodboard card */
.board-card-moodboard .board-card-image {
  position: relative;
  width: 100%; aspect-ratio: 16 / 9;
  background: #f3f3f3;
  border-radius: 10px;
  overflow: hidden; cursor: zoom-in;
}
.board-card-moodboard .board-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.board-card-image.is-regenerating img { opacity: 0; }
.board-card-loader {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(110deg, #f4f4f4 0%, #ececec 50%, #f4f4f4 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
  display: grid; place-items: center;
}
.board-card-loader-spinner {
  width: 28px; height: 28px;
  border: 3px solid rgba(10,10,10,0.12);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: dashboard-pending-spin 0.9s linear infinite;
}
.board-card-image-missing {
  width: 100%; height: 100%; display: grid; place-items: center;
  color: var(--ink-mute); font-size: 13px;
}
.board-card-section {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 14px;
}
.board-card-section:first-of-type { padding-top: 0; }
.board-card-foot { color: var(--ink-mute); font-size: 12px; }
.board-card-palette { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.board-card-swatch {
  appearance: none; cursor: pointer;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 0; padding: 0;
  transition: transform var(--t-fast);
}
.board-card-swatch:hover { transform: scale(1.08); }
.board-card-fonts { display: flex; gap: 24px; flex-wrap: wrap; }
.board-card-font { display: flex; flex-direction: column; gap: 4px; }
.board-card-font-sample { font-size: 24px; line-height: 1.2; color: var(--ink); }
.board-card-font-role { font-size: 11px; font-weight: 500; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.08em; }
.board-card-font-link { font-size: 13px; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.board-card-font-link:hover { border-color: var(--ink); }
.typo-tip-trigger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--line); color: var(--ink-mute);
  font-size: 10px; font-weight: 600; cursor: pointer;
  vertical-align: middle; margin-left: 4px;
}
.typo-tip-trigger:hover { background: var(--line-strong); color: var(--ink); }
.typo-tip { font-size: 13px; line-height: 1.5; color: var(--ink-mute); margin: 4px 0 12px; font-family: var(--font); font-weight: 400; text-transform: none; letter-spacing: 0; }
.board-card-adjectives { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.board-card-adj {
  display: inline-flex; align-items: center;
  padding: 6px 14px; border-radius: 999px;
  background: var(--ink); color: #ffffff;
  font-size: 13px; font-weight: 500;
}
.board-card-refs { font-size: 12px; color: var(--ink-mute); }

/* right: generate panel */
/* Generator card stretches vertically so the Generate button can be
   pushed to the bottom — visually aligning it with the palette row on
   the left card. */
.board-card-generate { gap: 16px; flex: 1; }
.board-card-generate .board-gen-form { flex: 1; }
.board-card-moodboard .board-card-title,
.board-card-generate .board-card-title {
  display: inline-flex; align-items: center; gap: 8px;
}
.board-gen-help-btn {
  appearance: none; background: transparent; border: 0;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--ink-mute);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.board-gen-help-btn:hover { background: #f7f7f5; color: var(--ink); }
/* Help modal — chrome mirrors .variations-modal */
.gen-help-modal {
  position: fixed; inset: 0;
  z-index: 950;
  background: rgba(10, 10, 10, 0.55);
  display: grid; place-items: center;
  padding: 24px;
  animation: variations-fade 160ms ease-out;
}
.gen-help-modal-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  width: min(640px, 100%);
  max-height: 86vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.28);
}
.gen-help-modal-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 14px;
}
.gen-help-modal-title {
  font-family: var(--xp-display); font-size: 20px; font-weight: 700; margin: 4px 0 0;
  color: var(--ink); letter-spacing: -0.02em;
}
.gen-help-modal-close {
  appearance: none; background: transparent; border: 0; cursor: pointer;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--ink-mute);
  transition: background var(--t-fast), color var(--t-fast);
}
.gen-help-modal-close:hover { background: #f7f7f5; color: var(--ink); }
.gen-help-modal-body {
  padding: 4px 22px 22px;
  overflow-y: auto;
  font-size: 14px; line-height: 1.6;
  color: var(--ink-soft);
  display: flex; flex-direction: column; gap: 10px;
}
.gen-help-modal-body p { margin: 0; }
.gen-help-modal-body .gen-help-modal-sub {
  margin: 12px 0 2px;
  font-size: 12px; font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.gen-help-modal-body ul { margin: 0; padding-left: 18px; }
.gen-help-modal-body li { margin: 4px 0; }
.gen-help-modal-body em {
  font-style: normal;
  color: var(--ink);
  background: #f7f7f5;
  padding: 1px 6px; border-radius: 4px;
  font-family: ui-monospace, monospace; font-size: 12.5px;
}
/* Onboarding modal */
.onboard-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,10,10,0.45);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.onboard-card {
  position: relative;
  background: #fff; border-radius: 16px;
  max-width: 420px; width: 90%; padding: 40px 36px 32px;
  box-shadow: 0 8px 32px rgba(10,10,10,0.12);
}
.onboard-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none; cursor: pointer;
  color: var(--muted); padding: 4px; border-radius: 6px;
}
.onboard-close:hover { background: #f7f7f5; color: var(--ink); }
.onboard-slide { display: none; }
.onboard-slide.is-active { display: block; }
.onboard-num {
  font: 600 13px/1 var(--font); color: var(--muted);
  letter-spacing: 0.08em; margin-bottom: 12px;
}
.onboard-slide h2 {
  font: 500 22px/1.3 var(--font); color: var(--ink);
  margin: 0 0 10px;
}
.onboard-slide p {
  font: 400 14.5px/1.6 var(--font); color: var(--muted);
  margin: 0;
}
.onboard-dots {
  display: flex; gap: 6px; justify-content: center;
  margin: 28px 0 20px;
}
.onboard-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #e0ddd6; transition: background 0.2s;
}
.onboard-dot.is-active { background: var(--ink); }
.onboard-nav {
  display: flex; justify-content: space-between; align-items: center;
}
.onboard-prev, .onboard-next { min-width: 100px; }

/* Bigger prompt textarea + push Generate button to the bottom. */
.board-gen-field-prompt { flex: 1; display: flex; }
.board-gen-field-prompt textarea { min-height: 180px; flex: 1; }
.board-gen-form > .board-gen-cta { margin-top: auto; }
.board-gen-paywall {
  display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
  padding: 22px 24px;
  border-radius: var(--r);
  background: #fafafa;
}
.board-gen-paywall p { font-size: 15px; color: var(--ink-soft); margin: 0; }
.board-gen-form { display: flex; flex-direction: column; gap: 14px; }
.board-gen-field { display: flex; flex-direction: column; gap: 8px; }
.board-gen-field > span {
  font-size: 13px; color: var(--ink-mute);
}
.board-gen-field textarea {
  font: inherit; font-size: 15px; line-height: 1.5;
  padding: 14px 16px;
  border: 0;
  border-radius: var(--r);
  resize: vertical; min-height: 92px;
  background: #f7f7f5; color: var(--ink);
  transition: background var(--t-fast);
}
.board-gen-field textarea:focus {
  background: #ededea;
  outline: none;
}
.board-gen-field textarea[disabled] { background: #f7f7f5; color: var(--ink-mute); }
.board-gen-controls { display: flex; flex-direction: column; gap: 10px; }
.board-gen-control-row { display: flex; align-items: center; gap: 12px; }
.board-gen-control-label { font-size: 13px; color: var(--ink-mute); min-width: 52px; }
.board-gen-batch, .board-gen-ratio { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.board-gen-batch-opt, .board-gen-ratio-opt {
  appearance: none; background: #f7f7f5; cursor: pointer;
  border: 0; border-radius: 999px;
  height: 36px; padding: 0 14px; min-width: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: 13px; font-weight: 600;
  color: var(--ink-mute);
  transition: background var(--t-fast), color var(--t-fast);
}
.board-gen-ratio-opt { font-weight: 500; }
.board-gen-batch-opt:hover:not([disabled]),
.board-gen-ratio-opt:hover:not([disabled]) { background: #ededea; color: var(--ink); }
.board-gen-batch-opt.selected,
.board-gen-ratio-opt.selected { background: var(--ink); color: #ffffff; }

/* Board references */
.board-refs { margin-bottom: 16px; }
.board-refs-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.board-refs-label {
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.board-refs-count {
  font-weight: 400; color: var(--ink-mute); margin-left: 4px;
}
.board-refs-add {
  font-size: 13px; font-weight: 500; color: var(--ink);
  cursor: pointer; padding: 4px 10px;
  border: 1px solid var(--line); border-radius: 6px;
  transition: background var(--t-fast);
}
.board-refs-add:hover { background: #f7f7f5; }
.board-refs-grid {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.board-ref-thumb {
  position: relative; width: 72px; height: 72px;
  border-radius: 8px; overflow: hidden;
}
.board-ref-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.board-ref-remove {
  position: absolute; top: 4px; right: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(10,10,10,0.7); color: #fff;
  border: none; cursor: pointer;
  font-size: 13px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--t-fast);
}
.board-ref-thumb:hover .board-ref-remove { opacity: 1; }
.board-refs-gate {
  font-size: 13px; color: var(--ink-mute); line-height: 1.5;
  margin: 0;
}
.board-refs-empty {
  font-size: 13px; color: var(--ink-dim); margin: 0;
}
/* Selected option ignores hover — hovering it shouldn't visually change
   it (was reading as a second-state on top of the selection). */
.board-gen-batch-opt.selected:hover,
.board-gen-ratio-opt.selected:hover { background: var(--ink); color: #ffffff; cursor: default; }
.board-gen-batch-opt[disabled],
.board-gen-ratio-opt[disabled] { opacity: 0.5; cursor: not-allowed; }
/* Per-generation reference-image attach on the prompt bar */
.board-gen-attach { display: inline-flex; align-items: center; gap: 6px; position: relative; flex-wrap: wrap; }
.board-gen-attach-chip { position: relative; display: inline-flex; align-items: center; vertical-align: middle; flex: none; }
/* Matches the ratio <select> — white + bordered, so it reads as a peer
   control, not a different state. */
.board-gen-attach-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 32px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-mute);
  cursor: pointer; flex-shrink: 0;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.board-gen-attach-btn:not(:disabled):hover { color: var(--ink); border-color: var(--line-strong); }
.board-gen-attach-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.board-gen-attach-thumb { width: 32px; height: 32px; border-radius: 8px; background-size: cover; background-position: center; display: block; vertical-align: middle; border: 1px solid var(--line); }
.board-gen-attach-x {
  position: absolute; top: -6px; right: -6px;
  width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid #fff; cursor: pointer;
  background: var(--ink); color: #fff; font-size: 11px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.board-gen-cta {
  align-self: stretch;
  border-radius: 999px;
  padding: 16px 24px;
  font-size: 15px; font-weight: 700;
  font-family: var(--xp-display);
  background: var(--ink); color: var(--xp-accent);
  transition: transform 0.2s, box-shadow 0.2s;
}
.board-gen-cta:hover:not([disabled]) { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.14); }
.board-gen-cta[disabled] { opacity: 0.5; cursor: not-allowed; }

/* full-width grid below the two cards */
.board-images-section {
  display: flex; flex-direction: column; gap: 0;
}
.board-images-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.board-images-title {
  font-family: var(--font); font-size: 15px; font-weight: 500; margin: 0; color: var(--ink);
}
.board-images-filter {
  display: inline-flex; gap: 4px;
  padding: 3px; border-radius: 999px;
  background: #f3f3f1;
  height: 32px; align-items: center;
}
.board-images-filter-opt {
  appearance: none; cursor: pointer;
  border: 0; background: transparent;
  padding: 6px 14px; border-radius: 999px;
  font: inherit; font-size: 12px; font-weight: 600;
  color: var(--ink-mute);
  transition: background var(--t-fast), color var(--t-fast);
}
.board-images-filter-opt:hover:not(.selected) { color: var(--ink); }
.board-images-filter-opt.selected { background: var(--ink); color: #ffffff; }
.board-images-empty-wrap {
  position: relative;
  display: grid;
}
.board-images-ghost { pointer-events: none; }
.board-image-ghost-cell {
  aspect-ratio: 1;
  background: #fafafa;
  border-radius: var(--r);
}
.board-images-empty-overlay {
  position: absolute; top: 96px; left: 0; right: 0;
  display: flex; justify-content: center;
  text-align: center; padding: 24px;
  z-index: 1;
}
.board-images-empty-overlay p {
  font-size: 15px; line-height: 1.6; color: var(--ink-mute); font-weight: 500;
  max-width: 52ch; margin: 0;
  background: #fff; padding: 24px; border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
}
/* Masonry-packed 3-column grid. The actual row span per card is set
   by applyMasonryLayout() in JS after image loads — the CSS provides
   the tiny base row + dense flow so packing can do its thing. */
.board-images-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 540px) { .board-images-grid { grid-template-columns: repeat(2, 1fr); } }
.board-image-card {
  display: flex; flex-direction: column; gap: 0;
}
.upload-loader-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(8px);
  display: grid; place-items: center;
}
.upload-loader-card {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.upload-loader-card p { font-size: 16px; color: var(--ink-mute); margin: 0; font-family: var(--font); }
.upload-loader-spinner {
  width: 40px; height: 40px;
  border: 2.5px solid rgba(10,10,10,0.06); border-top-color: var(--ink);
  border-radius: 50%; animation: spin 0.8s cubic-bezier(0.4,0,0.2,1) infinite;
}
.board-image-fav-badge {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,0,0,0.5); color: #ffd400;
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; pointer-events: none;
}
.board-image-thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--r);
  width: 100%; overflow: hidden;
  border-radius: var(--r);
  background: #f3f3f3;
  cursor: zoom-in;
  transition: transform var(--t-fast);
}
.board-image-thumb:hover { transform: translateY(-2px); }
.board-image-card[data-ratio="square"]   .board-image-thumb { aspect-ratio: 1 / 1; }
.board-image-card[data-ratio="portrait"] .board-image-thumb { aspect-ratio: 9 / 16; }
.board-image-card[data-ratio="landscape"] .board-image-thumb { aspect-ratio: 16 / 9; }
.board-image-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Open/expand affordance — always visible (discoverable), brightens on hover. */
.board-image-open {
  position: absolute; bottom: 8px; right: 8px;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.5); color: #fff;
  opacity: 0.88; pointer-events: none;
  backdrop-filter: blur(2px);
  transition: opacity var(--t-fast), background var(--t-fast);
}
.board-image-thumb:hover .board-image-open { opacity: 1; background: rgba(0,0,0,0.72); }
/* "Moodboard" tag on the lead tile. */
.board-image-tag {
  position: absolute; top: 8px; left: 8px;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(0,0,0,0.55); color: #fff;
  font-size: 10px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  pointer-events: none; backdrop-filter: blur(2px);
}
.board-images-nudge {
  margin: 16px 2px 0; font-size: 14px; line-height: 1.6;
  color: var(--ink-mute); font-weight: 500; max-width: 52ch;
}
.board-image-caption {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 12px; font-weight: 500;
  border-radius: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.board-image-actions {
  display: inline-flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.board-image-action {
  appearance: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px;
  font: inherit; font-size: 12px; font-weight: 500;
  color: var(--ink-soft); background: #ffffff;
  display: inline-flex; align-items: center; gap: 6px;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.board-image-action:hover { border-color: var(--ink); color: var(--ink); }
.board-image-action.is-on { color: var(--ink); border-color: var(--ink); }
.board-image-action-icon { font-size: 13px; line-height: 1; }
.board-image-action-delete { padding: 6px 10px; }
.board-image-skel {
  border-radius: var(--r);
}
.board-image-skel .board-image-skel-inner {
  width: 100%; aspect-ratio: 1;
  background: #f3f3f3;
  border-radius: var(--r);
  display: grid; place-items: center;
}
.board-image-skel .board-image-skel-inner::after {
  content: ''; width: 28px; height: 28px;
  border: 2.5px solid rgba(10,10,10,0.10);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* First-moodboard onboarding modal — explains the board→image magic and shows
   the first auto-generated image streaming in. */
.fb-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(14,13,10,0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fb-fade 0.25s ease both; }
@keyframes fb-fade { from { opacity: 0; } to { opacity: 1; } }
.fb-card { position: relative; width: 100%; max-width: 480px; background: #fff; border-radius: 22px; padding: 32px 30px 30px; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.45); text-align: center; animation: fb-pop 0.35s cubic-bezier(0.2,1.2,0.4,1) both; font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
@keyframes fb-pop { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }
.fb-close { position: absolute; top: 12px; right: 16px; background: transparent; border: 0; font-size: 26px; line-height: 1; color: #b8b8b2; cursor: pointer; }
.fb-close:hover { color: #0a0a0a; }
.fb-flow { display: flex; align-items: flex-start; justify-content: center; gap: 18px; margin: 10px 0 26px; }
.fb-flow figure { margin: 0; }
.fb-flow figcaption { margin-top: 11px; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: #9a9a93; font-weight: 600; }
.fb-board img, .fb-board-empty { width: 138px; height: 138px; object-fit: cover; border-radius: 14px; display: block; box-shadow: 0 8px 20px -8px rgba(0,0,0,0.32); }
.fb-board-empty { background: linear-gradient(135deg,#dde6c0,#9cb89c); }
.fb-arrow { font-size: 30px; color: #0a0a0a; font-weight: 700; line-height: 138px; }
.fb-out-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 138px; height: 138px; }
.fb-out-grid span { border-radius: 8px; background: linear-gradient(110deg,#eef1e6 30%,#dfe7cf 50%,#eef1e6 70%); background-size: 200% 100%; animation: fb-shimmer 1.4s linear infinite; }
.fb-out-grid span:nth-child(2) { animation-delay: 0.2s; }
.fb-out-grid span:nth-child(3) { animation-delay: 0.4s; }
.fb-out-grid span:nth-child(4) { animation-delay: 0.6s; }
@keyframes fb-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.fb-h { font-family: 'Archivo', 'Helvetica Neue', sans-serif; font-size: 25px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 10px; color: #0a0a0a; }
.fb-p { font-size: 15px; line-height: 1.55; color: #555; margin: 0 0 22px; }
.fb-cta { background: #0a0a0a; color: #fff; border: 0; border-radius: 999px; padding: 14px 28px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: 'Archivo', 'Helvetica Neue', sans-serif; }
.fb-cta:hover { background: #2a2a2a; }
@media (max-width: 520px) { .fb-card { padding: 26px 20px 22px; } .fb-board img, .fb-board-empty, .fb-out-grid { width: 108px; height: 108px; } .fb-arrow { line-height: 108px; font-size: 26px; } }
@media (prefers-reduced-motion: reduce) { .fb-modal, .fb-card { animation: none; } .fb-out-grid span { animation: none; } }

/* "Share with Claude" — moodboard → design brief modal */
.share-claude-modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 20px; background: rgba(14,13,10,0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.share-claude-card { position: relative; width: 100%; max-width: 560px; background: #fff; border-radius: 20px; padding: 28px 26px 24px; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.45); font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif; }
.share-claude-close { position: absolute; top: 12px; right: 16px; background: transparent; border: 0; font-size: 26px; line-height: 1; color: #b8b8b2; cursor: pointer; }
.share-claude-close:hover { color: #0a0a0a; }
.share-claude-h { font-family: 'Archivo', 'Helvetica Neue', sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; color: #0a0a0a; }
.share-claude-sub { font-size: 14px; line-height: 1.5; color: #666; margin: 0 0 16px; }
.share-claude-spec { width: 100%; box-sizing: border-box; resize: vertical; min-height: 220px; border: 1px solid #e2e2dd; border-radius: 12px; background: #fafaf8; padding: 14px 16px; font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; line-height: 1.55; color: #1a1a1a; }
.share-claude-actions { display: flex; gap: 10px; margin-top: 14px; }
.share-claude-btn { flex: 1; padding: 12px 18px; border-radius: 999px; border: 1.5px solid rgba(14,13,10,0.18); background: #fff; color: #0a0a0a; font-family: 'Archivo', 'Helvetica Neue', sans-serif; font-size: 14px; font-weight: 700; cursor: pointer; }
.share-claude-btn:hover { background: #f7f7f5; }
.share-claude-btn-primary { background: #0a0a0a; color: #fff; border-color: #0a0a0a; }
.share-claude-btn-primary:hover { background: #2a2a2a; }
@media (max-width: 520px) { .share-claude-card { padding: 24px 18px 20px; } }

/* Share-with-Claude intake step + spec-modal extras */
.share-claude-card { max-height: calc(100vh - 40px); overflow-y: auto; }
.sc-intake-label { display: block; font-family: 'Archivo', 'Helvetica Neue', sans-serif; font-size: 13px; font-weight: 700; color: #0a0a0a; margin: 14px 0 6px; }
.sc-intake-hint { font-size: 12.5px; color: #8a8a85; margin: -2px 0 8px; }
.sc-intake-input { width: 100%; box-sizing: border-box; border: 1px solid #e2e2dd; border-radius: 10px; background: #fafaf8; padding: 11px 14px; font-family: 'DM Sans', -apple-system, sans-serif; font-size: 14px; color: #1a1a1a; }
.sc-intake-input:focus { outline: none; border-color: #0a0a0a; }
.sc-intake-ta { resize: vertical; min-height: 130px; line-height: 1.55; }
.sc-intake-note { font-size: 12px; color: #98988f; margin: 12px 0 0; line-height: 1.5; }
.sc-intake-later { display: block; margin: 12px auto 0; background: none; border: 0; padding: 4px 8px; font-family: 'DM Sans', -apple-system, sans-serif; font-size: 13px; color: #98988f; text-decoration: underline; cursor: pointer; }
.sc-intake-later:hover { color: #555; }
.share-claude-meta { font-size: 13px; color: #666; margin: 0 0 10px; }
.sc-link { background: none; border: 0; padding: 0; color: #0a0a0a; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.share-claude-learn { display: flex; flex-direction: column; gap: 2px; background: #fafaf8; border: 1px solid #eeeee9; border-radius: 12px; padding: 12px 16px; margin-top: 12px; text-decoration: none; }
.share-claude-learn:hover { background: #f4f4f0; }
.scl-k { font-family: 'Archivo', 'Helvetica Neue', sans-serif; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #98988f; }
.scl-t { font-size: 14px; font-weight: 600; color: #0a0a0a; }
.share-claude-fine { font-size: 11px; color: #a5a59d; line-height: 1.5; margin: 12px 0 0; }

/* In-app Guide page */
.guide-page { max-width: 760px; margin: 0 auto; padding: 24px 0 40px; }
.guide-h1 { font-family: var(--xp-display); font-weight: 900; font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.03em; line-height: 1.05; margin: 8px 0 0; color: var(--ink); }
.guide-sub { font-size: 18px; color: #666; margin: 16px 0 8px; line-height: 1.6; }
.guide-h2 { font-family: var(--xp-display); font-weight: 800; font-size: 24px; letter-spacing: -0.01em; margin: 48px 0 12px; color: var(--ink); }
.guide-p { font-size: 17px; line-height: 1.7; color: #333; margin: 0 0 14px; }
.guide-p em { font-style: italic; }
.guide-ul { margin: 0 0 14px; padding-left: 22px; font-size: 17px; line-height: 1.6; color: #333; }
.guide-ul li { margin-bottom: 8px; }
.guide-b { font-family: var(--xp-display); font-weight: 700; color: var(--ink); }
.guide-fig { margin: 22px 0; }
.guide-fig img { width: 100%; border-radius: 14px; display: block; }
.guide-fig figcaption { font-size: 13px; color: #999; margin-top: 9px; }
.guide-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.guide-grid3 img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; aspect-ratio: 1; }
.guide-card { background: #fafafa; border-radius: 16px; padding: 30px 34px; margin: 28px 0 8px; }
.guide-badge { display: inline-block; background: var(--ink); color: #fff; font-family: var(--font); font-weight: 300; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; padding: 5px 12px; border-radius: 999px; }
.guide-who { list-style: none; margin: 16px 0 0; padding: 0; }
.guide-who li { margin-bottom: 16px; font-size: 16px; line-height: 1.55; color: #333; }
.guide-who li:last-child { margin-bottom: 0; }
.guide-cta { margin-top: 32px; }
@media (max-width: 600px) { .guide-page { padding: 12px 0 30px; } }

/* Generate wizard — logo step */
.gen-logo-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1.5px dashed rgba(14,13,10,0.25); border-radius: 16px; padding: 56px 24px; cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.gen-logo-drop:hover { border-color: var(--ink); background: rgba(14,13,10,0.02); }
.gen-logo-big { font-family: var(--xp-display); font-weight: 700; font-size: 18px; color: var(--ink); }
.gen-logo-sub { font-size: 13.5px; color: var(--ink-mute); }
.gen-logo-preview { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px 0; }
.gen-logo-preview img { max-width: 260px; max-height: 170px; object-fit: contain; border-radius: 12px; background: #fafaf8; padding: 16px; border: 1px solid #ececea; }
