/* ===========================================================
   GPT Image 2 — Single page SaaS
   Inspired by chatgpt.com/images (clean, soft, rounded)
   Copy inspired by gptimage2ai.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-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); }

.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-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 .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: 8px; }
  .prompt-tools { gap: 8px; }
  .send-btn { width: 38px; height: 38px; }
  .chip { padding: 5px 10px; font-size: 12.5px; }
  .chip-group { padding: 2px; }
  .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; }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
