/* ===========================================================
   Muse Image — Single page SaaS
   Inspired by chatgpt.com/images (clean, soft, rounded)
   Copy inspired by museimageai.com
   Fully responsive: mobile / tablet / desktop
   =========================================================== */

/* ----------- Reset & Base ----------- */
*,
*::before,
*::after { box-sizing: border-box; }

/* Visually hidden but kept in the accessibility / SEO tree */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

a { color: inherit; text-decoration: none; }

/* ----------- Tokens (ChatGPT-inspired soft palette) ----------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f8;          /* ChatGPT panel tone */
  --bg-soft-2: #ececf1;
  --surface: #ffffff;
  --border: #e5e5e5;
  --border-strong: #d9d9e3;

  --text: #0d0d0d;             /* near-black like ChatGPT */
  --text-muted: #5d5d6c;
  --text-subtle: #8e8ea0;

  --brand: #10a37f;            /* ChatGPT green */
  --brand-2: #0f8a6b;
  --brand-soft: #ecf9f4;

  --accent: #6b5cff;           /* gentle purple accent for gradients */
  --accent-2: #ff6f91;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(15, 15, 25, 0.06);
  --shadow-lg: 0 24px 60px rgba(15, 15, 25, 0.10);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;
  --radius-pill: 999px;

  --container: 1180px;
  --container-narrow: 820px;
}

/* ----------- Layout helpers ----------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: var(--container-narrow); }

.section {
  padding: clamp(64px, 9vw, 120px) 0;
}
.section-muted { background: var(--bg-soft); }

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(40px, 6vw, 64px);
}
.section-head h2 {
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.15;
  margin: 8px 0 16px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.section-head .lead {
  color: var(--text-muted);
  font-size: clamp(15px, 1.4vw, 17px);
  margin: 0;
}
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  margin: 0;
}

/* ----------- Buttons ----------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14.5px;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease, border-color .15s ease;
  white-space: nowrap;
  border: 1px solid transparent;
  user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--text);
  color: #fff;
}
.btn-primary:hover { background: #2a2a2a; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover { border-color: var(--text); }

.btn-ghost {
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover { background: var(--bg-soft); }

/* ----------- Nav ----------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: #ffffff;
  color: #0d0d0d;
  display: grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(13,13,13,0.08), 0 1px 2px rgba(13,13,13,0.06);
}
.brand-name { font-size: 16px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-anon,
.auth-user {
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-user[hidden],
.auth-anon[hidden] { display: none; }

/* ----- Credits pill ----- */
.credit-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid rgba(16,163,127,0.18);
  transition: background .15s ease, border-color .15s ease;
}
.credit-pill:hover {
  background: #dff5ec;
  border-color: rgba(16,163,127,0.32);
}
.credit-pill svg { color: var(--brand); }
.credit-pill-label {
  color: var(--text-muted);
  font-weight: 500;
}
.credit-pill-block {
  width: 100%;
  height: 44px;
  justify-content: center;
  margin-bottom: 8px;
}

/* ----- User menu ----- */
.user-menu { position: relative; }
.user-menu-trigger {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  transition: transform .12s ease;
  padding: 0;
}
.user-menu-trigger:hover { transform: scale(1.04); }
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10a37f 0%, #6b5cff 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
  letter-spacing: 0;
  text-transform: uppercase;
}
.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 60;
  animation: menuIn .15s ease both;
}
.user-menu-dropdown[hidden] { display: none; }
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.user-menu-email {
  margin: 0;
  padding: 8px 12px 10px;
  font-size: 12.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  word-break: break-all;
}
.user-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-radius: 8px;
  transition: background .12s ease;
  background: transparent;
}
.user-menu-item:hover { background: var(--bg-soft); }

/* ----- Auth modal ----- */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  animation: fadeIn .18s ease both;
}
.auth-modal[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13,13,13,0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.auth-modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: 32px 28px 24px;
  animation: cardIn .2s ease both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: background .12s ease, color .12s ease;
}
.auth-modal-close:hover { background: var(--bg-soft); color: var(--text); }

.auth-modal-head {
  text-align: center;
  margin-bottom: 22px;
}
.auth-modal-head .brand-mark {
  margin: 0 auto 14px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
}
.auth-modal-head h2 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.auth-modal-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.auth-field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
  outline: 0;
}
.auth-field input:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(13,13,13,0.06);
}
.auth-field input::placeholder { color: var(--text-subtle); }

.auth-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 13.5px;
  line-height: 1.45;
}
.auth-error[hidden] { display: none; }

.auth-submit { height: 46px; margin-top: 4px; }
.auth-submit.is-loading { opacity: 0.7; pointer-events: none; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  color: var(--text-subtle);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn-google:hover {
  background: var(--bg-raised);
  border-color: var(--text-subtle);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.btn-google:disabled {
  opacity: 0.6;
  pointer-events: none;
}
.btn-google svg {
  flex-shrink: 0;
}

.auth-switch {
  margin: 6px 0 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
}
.auth-switch-btn {
  margin-left: 6px;
  font-weight: 600;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: transparent;
  padding: 0;
}
.auth-switch-btn:hover { color: var(--brand); }

.auth-fineprint {
  margin: 14px 0 0;
  text-align: center;
  font-size: 11.5px;
  color: var(--text-subtle);
  line-height: 1.5;
}
.auth-fineprint a {
  color: var(--text-muted);
  border-bottom: 1px solid color-mix(in srgb, var(--text-muted) 30%, transparent);
  transition: color 0.15s, border-color 0.15s;
}
.auth-fineprint a:hover { color: var(--brand-2); border-bottom-color: var(--brand-2); }

/* Prompt meta line + gate */
.prompt-meta {
  margin: 10px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-subtle);
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: center;
  align-items: center;
}
.prompt-meta-sep { color: var(--border-strong); }
.prompt-meta-cost { font-weight: 600; color: var(--text-muted); }
.prompt-meta-user[hidden],
.prompt-meta-anon[hidden] { display: none; }

.prompt-output-gate {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f7f9fc 0%, #ecf9f4 100%);
  border: 1px solid rgba(16,163,127,0.18);
  align-items: flex-start;
}
.prompt-output-gate[hidden] { display: none; }
.prompt-output-gate-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--brand);
  flex-shrink: 0;
}
.prompt-output-gate-body { flex: 1; min-width: 0; }
.prompt-output-gate-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.prompt-output-gate-sub {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}
.prompt-output-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.prompt-output-gate-actions .btn { height: 38px; padding: 0 14px; font-size: 13.5px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.mobile-menu > a {
  padding: 12px 4px;
  font-size: 16px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-menu > a.btn { border-bottom: 0; padding: 0; }
.mobile-menu > a.btn-block { margin-top: 6px; }
.mobile-menu .auth-anon a.btn,
.mobile-menu .auth-user a {
  border-bottom: 0;
  padding: 0;
}
.mobile-menu[aria-hidden="false"] { display: flex; }

/* ----------- Hero (OpenAI announcement style) ----------- */
.hero {
  position: relative;
  padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 90px);
  background: #fff;
}

/* Left-aligned editorial header */
.hero-head {
  padding-top: clamp(8px, 2vw, 24px);
  padding-bottom: clamp(28px, 5vw, 56px);
}
.hero-date {
  margin: 0 0 clamp(20px, 3vw, 36px);
  font-size: 13.5px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* Two-column hero: left = title/sub/CTA, right = stats card */
.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(24px, 4vw, 56px);
}
.hero-copy {
  min-width: 0;
  max-width: 760px;
}

/* H1: hero-title becomes a wrapper for two visual lines */
.hero-title {
  margin: 0 0 18px;
  display: block;
  font-weight: 700;
  color: var(--text);
}
.hero-title-main {
  display: block;
  font-size: clamp(40px, 6.4vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.hero-title-tag {
  display: block;
  margin-top: 14px;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.35;
  letter-spacing: -0.005em;
  font-weight: 500;
  color: var(--text-muted);
}

.hero-sub {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--text-muted);
  margin: 0 0 24px;
  max-width: 56ch;
  line-height: 1.5;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hero-cta-row .btn-primary {
  height: 48px;
  padding: 0 22px;
  font-size: 14.5px;
  gap: 6px;
}
.share-btn {
  height: 48px;
  padding: 0 18px;
  border: 1px solid var(--border-strong);
  font-size: 14.5px;
  gap: 6px;
}

/* Right-side at-a-glance stats card */
.hero-meta {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(20px, 2.4vw, 28px);
  align-self: end;
}
.hero-stats {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.hero-stats > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.hero-stats > div:last-child { padding-bottom: 0; border-bottom: 0; }
.hero-stats dt {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  font-weight: 600;
  flex-shrink: 0;
}
.hero-stats dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-align: right;
  letter-spacing: -0.005em;
}

/* Try / prompt area — placed directly under the hero header */
.hero-try {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(20px, 3vw, 36px);
}

/* ----- Prompt card (ChatGPT-style) ----- */
.prompt-card {
  width: 100%;
  max-width: 760px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.prompt-card:focus-within {
  border-color: #cdcdd6;
  box-shadow: 0 24px 60px rgba(15, 15, 25, 0.14);
}
.prompt-top { padding: 10px 12px 4px; }
.prompt-input {
  width: 100%;
  border: 0;
  outline: 0;
  resize: none;
  font: inherit;
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--text);
  min-height: 28px;
  max-height: 220px;
  background: transparent;
}
.prompt-input::placeholder { color: var(--text-subtle); }

/* ============================================================
   Attached reference images (image-to-image input)
   ============================================================ */
.prompt-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px 12px 4px;
}
.prompt-attachment {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  flex: 0 0 auto;
  isolation: isolate;
}
.prompt-attachment img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.prompt-attachment.is-uploading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(2px);
  z-index: 1;
}
.prompt-attachment-spinner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
  pointer-events: none;
}
.prompt-attachment-spinner::before {
  content: '';
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid rgba(20, 20, 35, 0.18);
  border-top-color: #1a1a26;
  animation: gi2-spin 0.7s linear infinite;
}
.prompt-attachment.is-error {
  border-color: #e0464d;
  box-shadow: 0 0 0 1px #e0464d inset;
}
.prompt-attachment.is-error img { filter: grayscale(0.6) brightness(0.85); }
.prompt-attachment-error {
  position: absolute;
  inset: auto 0 0 0;
  background: rgba(224, 70, 77, 0.92);
  color: #fff;
  font-size: 10.5px;
  line-height: 1.2;
  padding: 4px 6px;
  text-align: center;
  z-index: 3;
}
.prompt-attachment-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(15, 15, 25, 0.78);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 4;
  transition: background 0.15s;
}
.prompt-attachment-remove:hover { background: rgba(15, 15, 25, 0.92); }
.prompt-attachment-remove svg { width: 12px; height: 12px; }

@keyframes gi2-spin {
  to { transform: rotate(360deg); }
}

/* Drag-and-drop highlight on the prompt card */
.prompt-card.is-dragover {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent);
}

/* ── Prompt toolbar controls ──────────────────────────────────── */

/* Shared base for attach button & select pills */
.prompt-attach-btn,
.prompt-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  flex: 0 0 auto;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.prompt-attach-btn:hover,
.prompt-select:hover {
  background: var(--bg-soft);
  border-color: var(--border-strong);
  color: var(--text);
}

/* Attach button — circular icon-only */
.prompt-attach-btn {
  width: 32px;
  padding: 0;
  margin: 0;
  line-height: 0;
}
.prompt-attach-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.prompt-attach-btn svg { display: block; width: 18px; height: 18px; color: inherit; }

/* Pill-style native select */
.prompt-select {
  position: relative;
  line-height: 1;
}
.prompt-select:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 2.5px color-mix(in srgb, var(--brand) 16%, transparent);
  color: var(--text);
}
.prompt-select select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  background-image: none;
  border: 0;
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  height: 100%;
  padding: 0 24px 0 12px;
  margin: 0;
  cursor: pointer;
  outline: none;
  white-space: nowrap;
}
.prompt-select select::-ms-expand { display: none; }
.prompt-select-caret {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: inherit;
  opacity: 0.55;
  transition: opacity 0.15s;
}
.prompt-select:hover .prompt-select-caret,
.prompt-select:focus-within .prompt-select-caret { opacity: 0.85; }

.prompt-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 4px 4px 8px;
}
.prompt-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.prompt-tools::-webkit-scrollbar { display: none; }

.chip-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--bg-soft);
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.chip:hover { color: var(--text); }
.chip[aria-checked="true"] {
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(13,13,13,0.06), 0 1px 2px rgba(13,13,13,0.06);
}

.send-btn {
  width: 40px; height: 40px;
  border-radius: var(--radius-pill);
  background: var(--text);
  color: #fff;
  display: grid; place-items: center;
  transition: background .15s ease, transform .1s ease, opacity .15s ease;
  flex-shrink: 0;
  position: relative;
}
.send-btn:hover { background: #2a2a2a; }
.send-btn:active { transform: scale(0.96); }
.send-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.send-btn .send-spinner {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  animation: spin .8s linear infinite;
  display: none;
}
.send-btn.is-loading .send-icon { visibility: hidden; }
.send-btn.is-loading .send-spinner { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ----- Prompt output (live result panel) ----- */
.prompt-output {
  display: block;
  width: 100%;
  max-width: 760px;
  margin: 14px auto 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: 18px;
}
.prompt-output[hidden] { display: none; }
.prompt-output-status {
  display: flex;
  align-items: center;
  gap: 14px;
}
.prompt-output-status[hidden] { display: none; }
.prompt-output-spinner {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2.5px solid rgba(13,13,13,0.12);
  border-top-color: var(--text);
  animation: spin .8s linear infinite;
  flex-shrink: 0;
}
.prompt-output-title {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.prompt-output-sub {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}
.prompt-output-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.prompt-output-grid:not([hidden]) ~ .prompt-output-status,
.prompt-output.is-done .prompt-output-status { display: none; }
.prompt-result {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}
.prompt-result img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--bg-soft);
}
.prompt-result.is-watermarking {
  min-height: 180px;
}
.prompt-result.is-watermarking::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--accent, #6366f1);
  animation: spin 0.7s linear infinite;
}
.prompt-result-actions {
  display: flex;
  gap: 8px;
  padding: 10px;
  background: rgba(255,255,255,0.96);
  border-top: 1px solid var(--border);
}
.prompt-result-actions a,
.prompt-result-actions button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: background .15s ease;
}
.prompt-result-actions a:hover,
.prompt-result-actions button:hover { background: var(--bg-soft-2); }
.prompt-output-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 14px;
  line-height: 1.5;
}
.prompt-output-error[hidden] { display: none; }
.prompt-output-error::before {
  content: "!";
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  font-weight: 700;
  display: grid; place-items: center;
  font-size: 13px;
  margin-top: 1px;
}

/* ----- Suggestions ----- */
.suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  max-width: 760px;
}
.suggestion {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
  transition: all .15s ease;
}
.suggestion:hover {
  color: var(--text);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

/* ----- Trust strip ----- */
.trust {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 720px;
}
.trust-item {
  text-align: center;
  padding: 14px 8px;
  border-radius: var(--radius-md);
}
.trust-item strong {
  display: block;
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.trust-item span {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ----------- Features ----------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(20px, 2.4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.feature-card h3 {
  font-size: clamp(18px, 2.2vw, 22px);
  margin: 4px 0 0;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.feature-card h4,
.step h4,
.price-card h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.01em;
}
.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}
.feature-card h3 strong,
.step h3 strong,
.price-card h3 strong,
.section-head h2 strong,
.cta-card h2 strong {
  font-weight: inherit;
  color: inherit;
}
.feature-card p strong,
.step p strong,
.price-card p strong,
.section-head .lead strong,
.testi p strong,
.faq-item p strong,
.footer-tag strong {
  font-weight: 700;
  color: var(--text);
}
.feature-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text);
}
.bullet {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

/* Feature art (illustrated banner per feature card) */
.feature-art {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-soft, #f4f5f7);
}
.feature-art-pic {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}
.feature-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.feature-card:hover .feature-art-img {
  transform: scale(1.03);
}
.feature-art .badge {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255,255,255,0.92);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  z-index: 2;
  backdrop-filter: blur(6px);
}

/* ----------- Showcase masonry ----------- */
.masonry {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 200px;
  gap: 16px;
}
.tile {
  margin: 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow-sm);
  isolation: isolate;
  transition: transform .25s ease, box-shadow .25s ease;
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tile:hover .tile-img { transform: scale(1.04); }
.tile-tall { grid-row: span 2; }
.tile-wide { grid-column: span 2; }
.tile-pic {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}
.tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
  background: var(--bg-soft, #f4f5f7);
}
.tile::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
  pointer-events: none;
  z-index: 1;
}
.tile figcaption {
  position: absolute;
  left: 14px; right: 14px; bottom: 14px;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.tile-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.92);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-shadow: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ----------- Steps ----------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  counter-reset: steps;
}
.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(22px, 2.6vw, 30px);
}
.step-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--brand);
  margin-bottom: 10px;
}
.step h3 {
  font-size: 19px;
  margin: 4px 0 8px;
  letter-spacing: -0.01em;
}
.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* ----------- Pricing ----------- */
.billing-toggle {
  display: inline-flex;
  margin-top: 24px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: var(--radius-pill);
  gap: 4px;
}
.bt-btn {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  transition: background .15s ease, color .15s ease;
}
.bt-btn.active {
  background: var(--text);
  color: #fff;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  align-items: stretch;
}
.price-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(22px, 2.6vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.price-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.price-featured {
  border-color: var(--text);
  box-shadow: 0 16px 40px rgba(0,0,0,0.10);
}
.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
}
.price-card h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.price-sub { margin: -6px 0 0; color: var(--text-muted); font-size: 14px; }
.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 6px;
}
.price .amount {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.price .amount-was {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-subtle);
  text-decoration: line-through;
  letter-spacing: -0.01em;
}
.price .per { color: var(--text-muted); font-size: 14px; }
.price-note { margin: 0; color: var(--text-subtle); font-size: 13px; }
.price-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text);
  font-size: 14.5px;
}
.price-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

/* ----------- Testimonials ----------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.testi {
  margin: 0;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(20px, 2.4vw, 26px);
}
.testi p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
}
.testi footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.testi footer strong { font-size: 14px; }
.testi footer span { font-size: 13px; color: var(--text-muted); }

/* ----------- FAQ ----------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4px 18px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.faq-item[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-weight: 600;
  font-size: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform .2s ease;
  line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 15px;
}

/* ----------- CTA ----------- */
.cta { padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 110px); }
.cta-card {
  background:
    radial-gradient(70% 100% at 0% 0%, rgba(107,92,255,0.18), transparent 60%),
    radial-gradient(70% 100% at 100% 100%, rgba(16,163,127,0.18), transparent 60%),
    #0d0d0d;
  color: #fff;
  border-radius: var(--radius-2xl);
  padding: clamp(36px, 5.5vw, 72px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-card h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: -0.02em;
  font-weight: 700;
}
.cta-card p {
  margin: 0 auto 28px;
  max-width: 620px;
  color: rgba(255,255,255,0.78);
  font-size: clamp(15px, 1.4vw, 17px);
}
.cta-card p strong { color: #fff; font-weight: 700; }
.cta-card h2 strong { font-weight: inherit; color: inherit; }
.hero-sub strong { color: var(--text); font-weight: 700; }
.cta-card .btn-ghost { color: #fff; }
.cta-card .btn-ghost:hover { background: rgba(255,255,255,0.1); }
.cta-card .btn-primary { background: #fff; color: var(--text); }
.cta-card .btn-primary:hover { background: #f0f0f0; }
.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ----------- Related searches (tag cloud) ----------- */
.related { padding-bottom: clamp(40px, 6vw, 72px); }
.tag-cloud {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.tag-cloud li { display: inline-flex; }
.tag-cloud a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.tag-cloud a:hover {
  color: var(--text);
  background: #fff;
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

/* ----------- Footer ----------- */
.footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: clamp(48px, 6vw, 72px) 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: clamp(24px, 4vw, 56px);
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-tag { color: var(--text-muted); margin: 0 0 10px; max-width: 380px; font-size: 14.5px; }
.footer-mail { color: var(--text-subtle); margin: 0; font-size: 14px; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.footer-cols h4 {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.footer-cols a {
  display: block;
  color: var(--text-muted);
  font-size: 14.5px;
  padding: 5px 0;
  transition: color .15s ease;
}
.footer-cols a:hover { color: var(--text); }

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-subtle);
  font-size: 13px;
}
.footer-bottom p { margin: 0; }

/* ============================================================
   RESPONSIVE
   - Desktop  : >= 1024px (default)
   - Tablet   : 641px – 1023px
   - Mobile   : <= 640px
   ============================================================ */

/* --- Tablet --- */
@media (max-width: 1023px) {
  .nav-links { display: none; }
  .nav-actions .btn-ghost { display: none; }
  .nav-actions .auth-anon { display: none; }
  .nav-actions .auth-user .credit-pill { padding: 0 10px; }
  .nav-toggle { display: inline-flex; }

  .mobile-menu .auth-anon,
  .mobile-menu .auth-user {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
  }
  .mobile-menu .auth-anon[hidden],
  .mobile-menu .auth-user[hidden] { display: none; }

  /* Hero stacks vertically on tablet */
  .hero-row { grid-template-columns: 1fr; gap: 28px; }
  .hero-meta { width: 100%; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 0; }
  .hero-stats > div { padding: 14px 16px; border-bottom: 0; border-right: 1px solid var(--border); }
  .hero-stats > div:nth-child(2n) { border-right: 0; }
  .hero-stats > div:nth-last-child(-n+2) { padding-bottom: 0; }
  .hero-stats > div:nth-child(-n+2) { padding-top: 0; border-bottom: 1px solid var(--border); }

  .feature-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr 1fr; }
  .price-card:nth-child(3) { grid-column: span 2; }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .testi:nth-child(3) { grid-column: span 2; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { grid-column: span 2; }

  .masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 200px;
  }
  .tile-wide { grid-column: span 2; }
  .tile-tall { grid-row: span 2; }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* --- Mobile --- */
@media (max-width: 640px) {
  .container { padding: 0 18px; }

  .section { padding: 64px 0; }

  .nav-inner { height: 60px; }
  .nav-actions .btn-primary { height: 38px; padding: 0 14px; font-size: 13.5px; }

  .credit-pill { height: 32px; padding: 0 10px; font-size: 12px; }
  .credit-pill-label { display: none; }
  .user-menu-trigger { width: 32px; height: 32px; }
  .user-avatar { width: 30px; height: 30px; font-size: 12px; }

  .auth-modal-card { padding: 28px 20px 20px; border-radius: 22px; }
  .auth-modal-head h2 { font-size: 20px; }
  .auth-field input { height: 42px; font-size: 14.5px; }

  .prompt-output-gate { flex-direction: column; }

  /* Hero — mobile */
  .hero { padding-top: 24px; }
  .hero-date { margin-bottom: 16px; font-size: 12.5px; }
  .hero-title-main { font-size: clamp(34px, 10vw, 48px); letter-spacing: -0.025em; }
  .hero-title-tag { font-size: 14.5px; margin-top: 10px; }
  .hero-sub { font-size: 15px; margin-bottom: 20px; }
  .hero-cta-row { flex-wrap: wrap; gap: 8px; }
  .hero-cta-row .btn-primary,
  .share-btn { height: 44px; flex: 1; min-width: 0; }
  .hero-meta { padding: 16px; border-radius: var(--radius-lg); }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats > div { padding: 12px 0; border-right: 0; border-bottom: 1px solid var(--border); flex-direction: column; align-items: flex-start; gap: 4px; }
  .hero-stats > div:nth-child(-n+2) { padding-top: 12px; }
  .hero-stats > div:last-child { padding-bottom: 0; border-bottom: 0; }
  .hero-stats dd { text-align: left; font-size: 14px; }

  .prompt-card { border-radius: 24px; padding: 10px 10px 8px; }
  .prompt-top { padding: 8px 10px 0; }
  .prompt-input { font-size: 16px; }
  .prompt-bottom { padding: 4px; gap: 6px; }
  .prompt-tools { gap: 6px; }
  .prompt-attach-btn,
  .prompt-select { height: 30px; }
  .prompt-attach-btn { width: 30px; }
  .prompt-attach-btn svg { width: 16px; height: 16px; }
  .prompt-select select { font-size: 12px; padding: 0 20px 0 10px; }
  .prompt-select-caret { right: 6px; width: 10px; height: 10px; }
  .prompt-attachments { gap: 8px; padding: 4px 10px 2px; }
  .prompt-attachment { width: 72px; height: 72px; border-radius: 12px; }
  .send-btn { width: 38px; height: 38px; }

  .prompt-output { padding: 14px; border-radius: 20px; }
  .prompt-output-grid { gap: 10px; }

  .suggestions { margin-top: 18px; }
  .suggestion { font-size: 13px; padding: 7px 12px; }

  .trust { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .trust-item { padding: 12px 6px; }

  .price-grid { grid-template-columns: 1fr; }
  .price-card:nth-child(3) { grid-column: span 1; }
  .testi-grid { grid-template-columns: 1fr; }
  .testi:nth-child(3) { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .step:nth-child(3) { grid-column: span 1; }

  .masonry {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 140px;
    gap: 10px;
  }
  .tile-tall { grid-row: span 2; }
  .tile-wide { grid-column: span 2; }

  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .cta-card { padding: 36px 22px; }
  .btn-lg { width: 100%; }
}

/* ============================================================
   LEGAL / POLICY PAGES — Privacy, Terms, AUP, Refunds, etc.
   Long-form readable typography on top of the regular nav/footer.
   ============================================================ */

.legal {
  padding: 96px 0 80px;
  background:
    radial-gradient(1200px 600px at 80% -200px, rgba(107, 92, 255, 0.05), transparent 60%),
    radial-gradient(900px 500px at -10% -100px, rgba(16, 163, 127, 0.05), transparent 60%),
    var(--bg);
}
.legal-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 28px;
}
.legal-eyebrow {
  display: inline-block;
  padding: 5px 12px;
  background: var(--brand-soft);
  color: var(--brand-2);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.legal-title {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 14px;
}
.legal-sub {
  color: var(--text-muted);
  font-size: 15.5px;
  margin: 0 0 8px;
}
.legal-meta {
  color: var(--text-subtle);
  font-size: 13.5px;
  margin: 0 0 32px;
}
.legal-toc {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 0 0 36px;
  font-size: 14.5px;
}
.legal-toc-title {
  font-weight: 700;
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.legal-toc ol {
  margin: 0;
  padding-left: 18px;
  columns: 2;
  column-gap: 24px;
}
.legal-toc li { break-inside: avoid; padding: 3px 0; }
.legal-toc a {
  color: var(--text-muted);
  border-bottom: 1px dotted transparent;
  transition: color 0.15s, border-color 0.15s;
}
.legal-toc a:hover { color: var(--brand-2); border-bottom-color: var(--brand-2); }

.legal-body { font-size: 16px; line-height: 1.75; color: var(--text); }
.legal-body h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 44px 0 12px;
  scroll-margin-top: 100px;
}
.legal-body h2 .legal-anchor {
  color: var(--text-subtle);
  font-weight: 500;
  font-size: 15px;
  margin-right: 8px;
}
.legal-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 28px 0 8px;
}
.legal-body p { margin: 0 0 14px; }
.legal-body ul,
.legal-body ol { margin: 0 0 14px; padding-left: 22px; }
.legal-body li { margin: 4px 0; }
.legal-body strong { color: var(--text); font-weight: 700; }
.legal-body a {
  color: var(--brand-2);
  border-bottom: 1px solid color-mix(in srgb, var(--brand-2) 30%, transparent);
}
.legal-body a:hover { border-bottom-color: var(--brand-2); }
.legal-body code {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 13.5px;
  font-family: 'SF Mono', Menlo, Monaco, Consolas, monospace;
}
.legal-body blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
  font-size: 15px;
}
.legal-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin: 16px 0;
}
.legal-body th,
.legal-body td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.legal-body th {
  background: var(--bg-soft);
  font-weight: 600;
}

.legal-callout {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  background: #fff8eb;
  border: 1px solid #f3d795;
  border-radius: var(--radius-md);
  margin: 16px 0 24px;
  font-size: 14.5px;
  color: #6b4f10;
}
.legal-callout strong { color: #4d3a08; }

.legal-footer-note {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}
.legal-footer-note a { color: var(--brand-2); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 24px 0 8px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.contact-card h3 { margin: 0 0 6px; font-size: 16px; }
.contact-card p { margin: 0 0 6px; font-size: 14.5px; color: var(--text-muted); }
.contact-card a { font-weight: 600; }

@media (max-width: 640px) {
  .legal { padding: 64px 0 60px; }
  .legal-wrap { padding: 0 18px; }
  .legal-toc ol { columns: 1; }
  .legal-body h2 { margin-top: 36px; font-size: 20px; }
}

/* =========================================================
   Account & Billing page (/account.html)
   ========================================================= */
.account {
  padding: 80px 0 96px;
  background: var(--bg-soft);
  min-height: 60vh;
}
.account-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.account-head {
  margin-bottom: 32px;
}
.account-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 10px;
}
.account-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--text);
}
.account-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* Loading / signed-out / error states */
.account-loading,
.account-signedout,
.account-error {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 24px;
  text-align: center;
}
.account-loading p,
.account-signedout p,
.account-error p {
  color: var(--text-muted);
  margin: 12px 0 0;
}
.acct-spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--brand) 25%, transparent);
  border-top-color: var(--brand);
  animation: acct-spin 0.9s linear infinite;
}
@keyframes acct-spin { to { transform: rotate(360deg); } }
.acct-empty h2 {
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--text);
  font-weight: 700;
}
.acct-empty p {
  max-width: 520px;
  margin: 0 auto 18px;
  color: var(--text-muted);
}
.acct-empty-actions {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---- Top summary cards ---- */
.acct-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}
.acct-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.acct-card-label {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.acct-card-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  color: var(--text);
}
.acct-credits-num,
.acct-plan-tier {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.acct-plan-tier {
  text-transform: capitalize;
}
.acct-credits-unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}
.acct-card-sub {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}
.acct-card-foot {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 12.5px;
  color: var(--text-muted);
}
.acct-card-foot strong {
  color: var(--text);
  font-weight: 600;
}
.acct-card-actions {
  margin-top: 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}

/* ---- Sections ---- */
.acct-section {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  margin-bottom: 24px;
}
.acct-section-quiet {
  background: transparent;
  border: 0;
  padding: 8px 0 0;
  text-align: center;
}
.acct-section-head {
  margin-bottom: 16px;
}
.acct-section-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.acct-section-sub {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--text-muted);
}
.acct-subscription {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.acct-subscription-empty {
  margin: 0;
  font-size: 15px;
  color: var(--text);
  line-height: 1.55;
}
.acct-subscription-note {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---- Stat dl ---- */
.acct-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
}
.acct-stats > div {
  min-width: 0;
}
.acct-stats dt {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.acct-stats dd {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* ---- Table ---- */
.acct-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 14px);
}
.acct-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 640px;
}
.acct-table th,
.acct-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.acct-table thead th {
  background: var(--bg-soft);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.acct-table tbody tr:last-child td {
  border-bottom: 0;
}
.acct-table tbody tr:hover td {
  background: color-mix(in srgb, var(--bg-soft) 60%, transparent);
}
.acct-table .acct-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.acct-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--bg-soft);
  color: var(--text-muted);
  white-space: nowrap;
}
.acct-tag-debit  { background: #fff0f3; color: #b42318; }
.acct-tag-credit { background: #ecfdf3; color: #027a48; }
.acct-tag-bonus  { background: #eff4ff; color: #175cd3; }
.acct-tag-refund { background: #fffaeb; color: #b54708; }
.acct-amount-debit  { color: #b42318; font-weight: 600; }
.acct-amount-credit { color: #027a48; font-weight: 600; }
.acct-row-meta {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.acct-table-empty {
  border: 1px dashed var(--border);
  background: #ffffff;
  padding: 36px 18px;
  border-radius: var(--radius-md, 14px);
  text-align: center;
}
.acct-foot-note {
  margin: 16px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ---- Mobile ---- */
@media (max-width: 767px) {
  .account { padding: 56px 0 72px; }
  .account-wrap { padding: 0 18px; }
  .acct-cards { grid-template-columns: 1fr; gap: 12px; margin-bottom: 24px; }
  .acct-card { padding: 18px; }
  .acct-credits-num,
  .acct-plan-tier { font-size: 28px; }

  .acct-section { padding: 18px 18px; margin-bottom: 16px; }
  .acct-section-head h2 { font-size: 16px; }

  .acct-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .acct-stats dd { font-size: 18px; }

  .acct-table-wrap { border-radius: 12px; }
  .acct-table { font-size: 13px; min-width: 560px; }
  .acct-table th,
  .acct-table td { padding: 10px 12px; }
}

/* --- Footer language switcher (light footer) --- */
.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.footer .lang-switch a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: var(--radius-pill, 999px);
  background: var(--bg-soft, #f4f4f5);
  border: 1px solid var(--border, #e4e4e7);
  color: var(--text-muted, #52525b);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.footer .lang-switch a:hover {
  background: var(--bg-soft-2, #ececef);
  color: var(--text, #18181b);
  border-color: var(--text-subtle, #a1a1aa);
}
.footer .lang-switch a[aria-current="true"] {
  background: var(--text, #18181b);
  border-color: var(--text, #18181b);
  color: #fff;
}
.lang-switch .lang-code {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.65;
}

/* --- RTL (Arabic) --- */
[dir="rtl"] .lang-switch { direction: rtl; }
[dir="rtl"] .feature-list li,
[dir="rtl"] .price-list li { text-align: right; }
[dir="rtl"] .hero-title,
[dir="rtl"] .section-head { text-align: right; }

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============== FUNCTION-PAGE TOOL HERO (reusable P1 template) ============== */
.tool-hero { padding: 44px 0 40px; }
.thero {
  display: flex;
  flex-direction: column;
  gap: 26px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
}
.thero-head { margin: 0 0 18px; }
.thero-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.thero-left { display: flex; flex-direction: column; }
.thero-crumb { font-size: 13px; color: var(--text-subtle); margin: 0 0 14px; }
.thero-crumb a { color: var(--text-subtle); }
.thero-crumb a:hover { color: var(--text); }
.thero-title {
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--text);
  margin: 0 0 12px;
}
.thero-sub { font-size: 15.5px; line-height: 1.55; color: var(--text-muted); margin: 0; max-width: 52ch; }
/* Reference layout: title/subtitle stack above a tall creation box, with a
   compact control row (aspect ratio + big Generate button) pinned at the bottom. */
.thero-left .prompt-card { display: flex; flex-direction: column; flex: 1 1 auto; }
.thero .prompt-top { flex: 1 1 auto; display: flex; }
.thero .prompt-input { flex: 1 1 auto; min-height: 240px; max-height: 460px; }
/* Big, prominent Generate button (right of the control row). */
.thero .prompt-tools { flex: 0 0 auto; }
.thero .send-btn-wide {
  flex: 1 1 auto;
  width: auto;
  height: 46px;
  border-radius: 14px;
  padding: 0 22px;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15.5px;
  white-space: nowrap;
}
.thero .send-btn-wide:hover { background: var(--brand-2); }
.thero .send-btn-wide .send-icon { display: inline-flex; }
.thero .send-btn-wide .send-label { display: inline; }
/* Upload dropzone that fills the creation box (matches reference). */
.thero .prompt-top { align-items: stretch; }
.thero .thero-drop {
  flex: 1 1 auto;
  width: 100%;
  min-height: 360px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 24px;
  gap: 6px;
}
.thero .thero-drop:hover { background: transparent; }
.thero .thero-drop svg { width: 30px; height: 30px; color: var(--text-subtle); margin-bottom: 4px; }
.thero .thero-drop-title { font-size: 19px; font-weight: 700; color: var(--text); }
.thero .thero-drop-sub { font-size: 13.5px; color: var(--text-subtle); }
.thero .thero-drop:hover .thero-drop-title { color: var(--brand); }
.thero .prompt-select[hidden] { display: none !important; }
/* Suggestion chips tucked inside the bottom of the creation box. */
.thero .prompt-card .suggestions-in {
  justify-content: flex-start;
  gap: 6px;
  margin: 2px 4px 2px 8px;
  max-width: none;
}
.thero .prompt-card .suggestions-in .suggestion {
  padding: 5px 10px;
  font-size: 11.5px;
  border-radius: 999px;
  background: var(--bg-soft);
  border-color: transparent;
  color: var(--text-subtle);
}
.thero .prompt-card .suggestions-in .suggestion:hover {
  color: var(--text);
  background: #fff;
  border-color: var(--border);
  transform: none;
}
.thero-drop {
  flex: 1 1 auto;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px dashed var(--border-strong);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text-muted);
  text-align: center;
  padding: 28px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.thero-drop:hover { border-color: var(--brand-2); background: #fff; }
.thero-drop svg { color: var(--text-subtle); margin-bottom: 6px; }
.thero-drop-title { font-weight: 700; font-size: 16px; color: var(--text); }
.thero-drop-sub { font-size: 13px; color: var(--text-subtle); }
.thero-actions { display: flex; gap: 12px; margin-top: 18px; }
.thero-ratio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  padding: 0 18px;
  border-radius: 14px;
  white-space: nowrap;
}
.thero-generate {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand-2);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  border-radius: 14px;
  padding: 16px 22px;
  transition: filter 0.15s ease;
}
.thero-generate:hover { filter: brightness(1.06); }
.thero-cred { display: inline-flex; align-items: center; gap: 4px; opacity: 0.85; font-size: 14px; }

.thero-right { position: relative; min-height: 520px; height: 100%; background: #f2f2f5; border-radius: 18px; overflow: hidden; }
.thero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #f2f2f5; }
.thero-thumb {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 84px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}
.thero-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 860px) {
  .thero { padding: 18px; }
  .thero-body { grid-template-columns: 1fr; }
  .thero-right { min-height: 360px; }
  .thero-title { font-size: 30px; }
  .thero .prompt-input { min-height: 170px; }
}

/* ---- Function-page "3 steps" cards with demo visuals ---- */
.how-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 8px; }
.how-card { text-align: center; }
.how-visual {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 18px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.how-drop {
  width: 74%;
  background: #fff;
  border: 1.5px dashed var(--border-strong);
  border-radius: 12px;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}
.how-drop svg { color: var(--brand); }
.how-drop-title { font-weight: 700; font-size: 14px; color: var(--text); letter-spacing: 0.01em; }
.how-drop-title-gap { margin-top: 10px; }
.how-drop-sub { font-size: 11.5px; color: var(--text-muted); }
.how-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-soft);
  border: 1px solid var(--border);
  color: var(--brand-2);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 10px;
}
.how-thumb {
  position: absolute;
  left: 16px;
  bottom: 14px;
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid #fff;
  box-shadow: var(--shadow-md);
}
.how-result-frame {
  display: block;
  width: 84%;
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: var(--shadow-md);
}
.how-result-frame img { display: block; width: 100%; height: auto; }
.how-card h3 { font-size: 17px; margin: 0 0 8px; }
.how-card p { color: var(--text-muted); font-size: 14.5px; line-height: 1.6; margin: 0; }
@media (max-width: 820px) {
  .how-cards { grid-template-columns: 1fr; gap: 18px; max-width: 460px; margin-inline: auto; }
}

.ba-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(28px, 5vw, 56px) 0;
}
.ba-row + .ba-row { border-top: 1px solid var(--border); }
.ba-row--reverse .ba-compare { order: -1; }
.ba-copy .badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-2);
  background: var(--brand-soft);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.ba-copy h2 { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.18; margin: 0 0 10px; }
.ba-copy h4 { margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--brand); letter-spacing: 0.01em; }
.ba-copy p { color: var(--text-muted); font-size: 16px; line-height: 1.7; margin: 0; }
.ba-copy .feature-list { margin-top: 18px; gap: 10px; }

.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.14);
  user-select: none;
  touch-action: none;
}
.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}
.ba-handle {
  position: absolute;
  top: 50%;
  left: var(--pos);
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}
.ba-handle svg { margin: 0 -3px; }
.ba-tag {
  position: absolute;
  top: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(20, 20, 24, 0.6);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  pointer-events: none;
}
.ba-tag--before { left: 14px; }
.ba-tag--after { right: 14px; }
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.ba-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 46px; height: 100%; cursor: ew-resize; }
.ba-range::-moz-range-thumb { width: 46px; height: 100%; border: 0; background: transparent; cursor: ew-resize; }
.ba-range:focus-visible { outline: none; }
.ba-slider:focus-within .ba-divider { box-shadow: 0 0 0 2px var(--brand-2); }
@media (max-width: 820px) {
  .ba-row, .ba-row--reverse { grid-template-columns: 1fr; gap: 22px; }
  .ba-row--reverse .ba-compare { order: 0; }
}

/* ===================================================================
   HOMEPAGE HERO — studio layout (centered title + creation panel / preview)
   =================================================================== */
.hero-head-c { max-width: 880px; margin: 0 auto; text-align: center; }
.hero-head-c .hero-title { margin: 0 0 14px; }
.hero-head-c .hero-sub { margin: 0 auto; max-width: 660px; }

.hero-studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(18px, 2.5vw, 34px);
  align-items: stretch;
  margin-top: clamp(26px, 4vw, 46px);
}

.hero-studio-main {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 2vw, 22px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-studio-bar { display: flex; align-items: center; justify-content: space-between; }
.hero-studio-label { font-weight: 700; font-size: 15px; color: var(--text); }
.hero-inspo {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer;
  color: var(--brand-2); font-weight: 600; font-size: 13.5px;
  padding: 4px 8px; border-radius: 8px;
}
.hero-inspo:hover { background: var(--brand-soft); }

.hero-styles { margin-top: 2px; }
.hero-styles-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.hero-styles-label { font-weight: 700; font-size: 14px; color: var(--text); }
.hero-styles-all { font-size: 13px; color: var(--text-subtle); text-decoration: none; }
.hero-styles-all:hover { color: var(--brand-2); }
.hero-styles-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.hero-style {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer; padding: 0;
}
.hero-style-thumb {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 12px;
  border: 2px solid transparent;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: var(--shadow-sm);
}
.hero-style:hover .hero-style-thumb { transform: translateY(-1px); }
.hero-style.is-active .hero-style-thumb { border-color: var(--brand); }
.hero-style-name { font-size: 12px; color: var(--text-muted); }
.hero-style.is-active .hero-style-name { color: var(--text); font-weight: 600; }
.hs-none { background: #fff; color: var(--text-subtle); border: 2px dashed var(--border-strong); }
.hs-real { background: linear-gradient(135deg, #8fb7ff, #3f6bd6); }
.hs-art { background: linear-gradient(135deg, #ffb36b, #ff5e7a); }
.hs-anime { background: linear-gradient(135deg, #ff9ecf, #a06bff); }
.hs-cartoon { background: linear-gradient(135deg, #ffd76b, #ff9f43); }
.hero-style-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }

/* smaller centered H1 + taller prompt input for the studio hero */
.hero-head-c .hero-title-main { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.03; }
.hero-head-c .hero-title-tag { font-size: clamp(15px, 1.4vw, 18px); margin-top: 12px; }
.hero-studio .prompt-input { min-height: 120px; }

.hero-studio-preview {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  min-height: 340px;
}
.hero-studio-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-preview-tag {
  position: absolute; left: 14px; bottom: 14px;
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: rgba(15, 15, 25, 0.55); backdrop-filter: blur(6px);
  color: #fff; font-size: 12.5px; font-weight: 600;
}

@media (max-width: 900px) {
  .hero-studio { grid-template-columns: 1fr; }
  .hero-studio-preview { order: -1; min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
  .hero-styles-row { gap: 6px; }
  .hero-style-name { font-size: 10.5px; }
  .hero-style-thumb { border-radius: 10px; }
}

/* ===========================================================
   Claude AI Image Generator page
   =========================================================== */

/* ---- Simple, direct dark hero with 3-step connect panel ---- */
.claude-hero {
  position: relative;
  overflow: hidden;
  background: #0b0b0f;
  color: #fff;
  padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px);
}
.claude-hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1.1px, transparent 1.1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 50% 30%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 75% at 50% 30%, #000 0%, transparent 78%);
  opacity: 0.7;
}
.claude-hero .container { position: relative; z-index: 1; }
.claude-hero-inner { text-align: center; max-width: 940px; margin: 0 auto; }
.claude-crumb { font-size: 13px; color: rgba(255, 255, 255, 0.5); margin: 0 0 20px; }
.claude-crumb a { color: rgba(255, 255, 255, 0.5); }
.claude-crumb a:hover { color: #fff; }
.claude-hero-title {
  font-size: clamp(34px, 5.4vw, 68px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0 0 18px;
}
.claude-hero-sub {
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.66);
  margin: 0 auto;
  max-width: 40ch;
}

.connect-panel {
  margin-top: clamp(32px, 5vw, 52px);
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-xl);
  padding: clamp(22px, 3vw, 34px);
  backdrop-filter: blur(6px);
}
.connect-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px);
}
.connect-step { display: flex; gap: 14px; align-items: flex-start; }
.connect-step + .connect-step { position: relative; }
.connect-num {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.10); color: rgba(255, 255, 255, 0.8);
  font-weight: 700; font-size: 13.5px;
}
.connect-step-body h2 { font-size: 16px; font-weight: 700; margin: 2px 0 8px; color: #fff; }
.connect-step-body p { font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.6); margin: 0; }
.connect-step-body strong { color: rgba(255, 255, 255, 0.92); font-weight: 600; }
.connect-chip {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 12px;
  font-size: 13px; font-weight: 600; color: #fff;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm); padding: 7px 12px;
  transition: background 0.15s ease;
}
.connect-chip:hover { background: rgba(255, 255, 255, 0.14); }
.connect-chip svg { opacity: 0.7; }
.connect-url {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px;
  background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm); padding: 9px 10px 9px 13px;
}
.connect-url code {
  font-family: 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.9);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.connect-copy {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  transition: color 0.15s ease, background 0.15s ease;
}
.connect-copy:hover { color: #fff; background: rgba(255, 255, 255, 0.14); }
.connect-copy.is-copied { color: #34d399; border-color: rgba(52, 211, 153, 0.5); }
.connect-tip { text-align: center; margin: clamp(20px, 3vw, 30px) 0 0; font-size: 13px; color: rgba(255, 255, 255, 0.42); }
@media (max-width: 820px) {
  .connect-steps { grid-template-columns: 1fr; gap: 22px; }
}

/* ---- Hero connector card (left column) ---- */
.connector-card {
  margin-top: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 22px;
}
.connector-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.connector-label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text-subtle); }
.connector-badge {
  font-size: 11px; font-weight: 700; letter-spacing: 0.03em;
  color: var(--brand-2); background: var(--brand-soft);
  padding: 3px 9px; border-radius: var(--radius-pill);
}
.connector-url {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 12px 14px;
}
.connector-url code {
  font-family: 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace;
  font-size: 14.5px; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.connector-copy {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--radius-sm); padding: 7px 11px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.connector-copy:hover { color: var(--brand-2); border-color: var(--border-strong); }
.connector-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.connector-actions .btn { flex: 1 1 auto; }
.connector-note { margin: 12px 0 0; font-size: 13px; color: var(--text-subtle); }

/* ---- Claude chat mockup (right column) ---- */
.thero-right .claude-chat { position: absolute; inset: 0; }
.claude-chat {
  display: flex; flex-direction: column;
  background: #ffffff; border: 1px solid var(--border);
  border-radius: 18px; overflow: hidden;
}
.cc-head {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.cc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.cc-dot:nth-child(1) { background: #ff5f57; }
.cc-dot:nth-child(2) { background: #febc2e; }
.cc-dot:nth-child(3) { background: #28c840; }
.cc-title { margin-left: 8px; font-weight: 700; font-size: 14px; color: var(--text); }
.cc-tool {
  margin-left: auto; font-size: 11.5px; font-weight: 600;
  color: var(--brand-2); background: var(--brand-soft);
  padding: 4px 10px; border-radius: var(--radius-pill);
}
.cc-body { flex: 1 1 auto; overflow: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 16px; }
.cc-msg { display: flex; gap: 10px; align-items: flex-start; }
.cc-avatar {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.cc-avatar-user { background: var(--bg-soft-2); color: var(--text-muted); }
.cc-avatar-ai { background: var(--brand); color: #fff; font-size: 15px; }
.cc-bubble {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 14px; padding: 12px 14px;
  font-size: 14.5px; line-height: 1.55; color: var(--text);
  max-width: 100%;
}
.cc-user .cc-bubble { background: var(--brand-soft); border-color: transparent; }
.cc-ai .cc-bubble { display: flex; flex-direction: column; gap: 10px; }
.cc-call {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--text-muted);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 7px 11px;
}
.cc-call svg { color: var(--brand); }
.cc-result {
  display: block; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-soft-2);
}
.cc-result img { width: 100%; height: auto; display: block; aspect-ratio: 1 / 1; object-fit: cover; }
.cc-result-cap { display: block; padding: 7px 11px; font-size: 11.5px; color: var(--text-subtle); background: var(--surface); }
.cc-text { font-size: 14px; color: var(--text-muted); }

/* ---- MCP flow (numbered pipeline) ---- */
.mcp-flow {
  list-style: none; margin: 8px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.mcp-step {
  position: relative;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 18px;
}
.mcp-step + .mcp-step::before {
  content: ""; position: absolute; left: -12px; top: 50%;
  width: 12px; height: 2px; background: var(--border-strong);
}
.mcp-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-2);
  font-weight: 800; font-size: 15px; margin-bottom: 12px;
}
.mcp-num-lg { width: 38px; height: 38px; font-size: 17px; }
.mcp-step-body h3 { font-size: 15.5px; margin: 0 0 6px; }
.mcp-step-body p { font-size: 13.5px; line-height: 1.55; color: var(--text-muted); margin: 0; }
@media (max-width: 900px) {
  .mcp-flow { grid-template-columns: 1fr 1fr; }
  .mcp-step + .mcp-step::before { display: none; }
}
@media (max-width: 560px) {
  .mcp-flow { grid-template-columns: 1fr; }
}

/* ---- MCP setup cards ---- */
.mcp-setup-card { text-align: left; }
.mcp-setup-card h3 { font-size: 17px; margin: 14px 0 8px; }
.mcp-inline-url {
  display: inline-block; margin-top: 8px;
  font-family: 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace;
  font-size: 13.5px; font-weight: 600; color: var(--brand-2);
  background: var(--brand-soft); padding: 7px 11px; border-radius: var(--radius-sm);
  word-break: break-all;
}
.mcp-tip { margin-top: 22px; text-align: center; font-size: 14px; color: var(--text-subtle); }

/* ---- MCP feature grid ---- */
.mcp-features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px;
}
.mcp-feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm);
}
.mcp-feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand-2); margin-bottom: 14px;
}
.mcp-feature h3 { font-size: 17px; margin: 0 0 8px; }
.mcp-feature p { font-size: 14.5px; line-height: 1.6; color: var(--text-muted); margin: 0; }
.mcp-feature a { color: var(--brand-2); font-weight: 600; }
@media (max-width: 900px) { .mcp-features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .mcp-features { grid-template-columns: 1fr; } }

/* ===========================================================
   AI Face Analysis page
   =========================================================== */
.face-thero .thero-right {
  background: linear-gradient(160deg, #f4f7f6 0%, #eef2f1 55%, #e8eeec 100%);
  min-height: 560px;
  padding: 18px;
  display: flex;
  align-items: stretch;
}
.face-report-preview { overflow: auto; }
.face-report {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.face-report-head { text-align: left; }
.face-report-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-2);
  background: var(--brand-soft);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}
.face-report-title { font-size: 20px; margin: 0 0 4px; line-height: 1.2; }
.face-report-sub { margin: 0; font-size: 13px; color: var(--text-subtle); }
.face-report-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
  align-items: stretch;
}
.face-portrait-placeholder {
  position: relative;
  height: 100%;
  min-height: 200px;
  border-radius: 14px;
  background:
    radial-gradient(ellipse 55% 60% at 50% 42%, rgba(16, 163, 127, 0.18), transparent 70%),
    linear-gradient(180deg, #e9efed, #dfe7e4);
  border: 1px dashed var(--border-strong);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 14px;
}
.face-mesh {
  position: absolute;
  inset: 18% 22% 28% 22%;
  border: 1.5px solid rgba(15, 138, 107, 0.45);
  border-radius: 46% 46% 40% 40%;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    0 0 0 1px rgba(16, 163, 127, 0.12);
}
.face-mesh::before,
.face-mesh::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  height: 1px;
  background: rgba(15, 138, 107, 0.28);
}
.face-mesh::before { top: 38%; }
.face-mesh::after { top: 62%; }
.face-portrait-label {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.85);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.face-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.face-metric {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
}
.face-metric-k {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 4px;
}
.face-metric-v {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.face-insight {
  background: var(--brand-soft);
  border: 1px solid rgba(16, 163, 127, 0.18);
  border-radius: 12px;
  padding: 14px 16px;
}
.face-insight h3 { margin: 0 0 6px; font-size: 14px; color: var(--brand-2); }
.face-insight p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text-muted); }
.face-upload-card .prompt-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.face-paid-note {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-subtle);
}
.face-flow { grid-template-columns: repeat(4, 1fr); }
.face-value-cards { margin-top: 8px; }
@media (max-width: 900px) {
  .face-report-grid { grid-template-columns: 1fr; }
  .face-flow { grid-template-columns: 1fr 1fr; }
  .face-thero .thero-right { min-height: 0; }
}
@media (max-width: 560px) {
  .face-flow { grid-template-columns: 1fr; }
  .face-metrics { grid-template-columns: 1fr; }
}
