/* ── REELISTED DESIGN SYSTEM ── */

:root {
  --bg:       #09090B;
  --bg2:      #111114;
  --bg3:      #1A1A1F;
  --border:   #2A2A32;
  --gold:     #D4A843;
  --gold-lt:  #E8C97A;
  --gold-dim: #7A5F28;
  --cream:    #F5EFE0;
  --muted:    #6B6B7A;
  --text:     #E8E4DC;
  --white:    #FAFAF9;
}

/* ── LIGHT THEME ── */
[data-theme="light"] {
  --bg:       #FAFAF9;
  --bg2:      #F1F0EE;
  --bg3:      #E8E7E4;
  --border:   #D4D3D0;
  --gold:     #B8922E;
  --gold-lt:  #A07E1F;
  --gold-dim: #C9AE5A;
  --cream:    #2A2A2A;
  --muted:    #6B6B78;
  --text:     #1A1A1F;
  --white:    #111114;
}

[data-theme="light"] body::before { display: none; }

[data-theme="light"] nav {
  background: rgba(250,250,249,0.9);
  border-bottom-color: rgba(180,146,46,0.12);
}

[data-theme="light"] .nav-cta {
  color: #fff;
}

[data-theme="light"] .btn-primary {
  color: #fff;
}

[data-theme="light"] .output-card::before {
  background: radial-gradient(ellipse at top left, rgba(184,146,46,0.08), transparent 60%);
}

[data-theme="light"] .hero::after {
  background: radial-gradient(ellipse at center, rgba(184,146,46,0.06) 0%, transparent 70%);
}

[data-theme="light"] .cta-section::before {
  background: radial-gradient(ellipse, rgba(184,146,46,0.06) 0%, transparent 70%);
}

[data-theme="light"] .output-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

[data-theme="light"] .card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 8px 32px rgba(184,146,46,0.2);
}

[data-theme="light"] .footer-logo { color: var(--muted); }
[data-theme="light"] .footer-logo span { color: var(--gold); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, .heading {
  font-family: 'Cormorant Garamond', serif;
  color: var(--white);
  line-height: 1.1;
}

.text-gold { color: var(--gold); }
.text-muted { color: var(--muted); }
.text-cream { color: var(--cream); }

/* ── LAYOUT ── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 48px;
}

section { position: relative; z-index: 1; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px;
  background: rgba(9,9,11,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212,168,67,0.08);
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}

.nav-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.02em;
}

.nav-logo-text span { color: var(--gold); }

.nav-links {
  display: flex; gap: 24px; list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--cream); }

/* ── HTMX REQUEST STATE ── */
.htmx-request button[type="submit"],
.htmx-request .btn-primary,
.htmx-request .btn-ghost,
[hx-request] button[type="submit"] {
  pointer-events: none;
  opacity: 0.6;
  cursor: wait;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--gold);
  color: #09090B;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212,168,67,0.25);
}

.btn-ghost {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--border);
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-ghost:hover { color: var(--cream); border-color: var(--gold); }

.nav-cta {
  background: var(--gold);
  color: #09090B;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 10px 22px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--gold-lt); transform: translateY(-1px); }

/* Profile dropdown */
.nav-profile-dropdown { position: relative; }
.nav-profile-toggle {
  display: flex; align-items: center; gap: 4px;
  background: none; border: 1px solid var(--border); border-radius: 6px;
  padding: 8px 10px; color: var(--muted); cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.nav-profile-toggle:hover { color: var(--gold); border-color: var(--gold); }
.nav-profile-chevron { transition: transform 0.2s; }
.nav-profile-dropdown.open .nav-profile-chevron { transform: rotate(180deg); }

.nav-profile-menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 8px;
  min-width: 180px; padding: 6px 0; z-index: 200;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.nav-profile-dropdown.open .nav-profile-menu { display: block; }

.nav-profile-menu a,
.nav-profile-menu button {
  display: block; width: 100%; padding: 8px 16px;
  font-size: 13px; color: var(--muted); text-decoration: none;
  text-align: left; background: none; border: none; cursor: pointer;
  font-family: inherit; transition: background 0.15s, color 0.15s;
}
.nav-profile-menu a:hover,
.nav-profile-menu button:hover { background: var(--bg3); color: var(--cream); }

.nav-profile-divider {
  height: 1px; background: var(--border); margin: 4px 0;
}

.nav-mobile-divider {
  height: 1px; background: var(--border); margin: 4px 0;
}

/* ── SECTION LABELS ── */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--white);
}

.section-title em { font-style: italic; color: var(--gold); }

/* ── CARDS ── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: all 0.25s;
}

.card:hover {
  border-color: rgba(212,168,67,0.35);
  transform: translateY(-2px);
}

/* ── FORMS ── */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
}

textarea.form-control { resize: vertical; }

select.form-control {
  appearance: none;
  cursor: pointer;
}

.form-help {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.form-error {
  font-size: 12px;
  color: #FF5F57;
  margin-top: 4px;
}

/* ── UPLOAD ZONE ── */
.upload-zone {
  border: 1.5px dashed var(--gold-dim);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  background: rgba(212,168,67,0.03);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.upload-zone:hover,
.upload-zone--dragover {
  border-color: var(--gold);
  background: rgba(212,168,67,0.06);
}

.upload-zone--dragover {
  border-style: solid;
  box-shadow: 0 0 20px rgba(212,168,67,0.15);
}

.upload-zone--has-files {
  border-color: var(--gold);
  border-style: solid;
  background: rgba(212,168,67,0.05);
}

.upload-zone strong {
  color: var(--gold);
  font-size: 14px;
  display: block;
  margin-bottom: 4px;
}

.upload-zone p {
  font-size: 13px;
  color: var(--muted);
}

/* ── STATUS CHIPS ── */
.status-chip {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 100px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.status-chip--success { background: rgba(40,202,65,0.1); color: #28CA41; border: 1px solid rgba(40,202,65,0.2); }
.status-chip--pending { background: rgba(255,189,46,0.1); color: #FFBD2E; border: 1px solid rgba(255,189,46,0.2); }
.status-chip--error   { background: rgba(255,95,87,0.1);  color: #FF5F57; border: 1px solid rgba(255,95,87,0.2); }
.status-chip--info    { background: rgba(99,102,241,0.1);  color: #6366F1; border: 1px solid rgba(99,102,241,0.2); }

/* ── GRID LAYOUTS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ── PAGE WRAPPER ── */
.page-content {
  padding: 120px 48px 80px;
  min-height: 100vh;
}

/* ── PROGRESS BAR ── */
.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--bg3);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.progress-bar-fill--pulse {
  width: 40%;
  animation: progressPulse 1.8s ease-in-out infinite;
}

@keyframes progressPulse {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ── GOLD RULE ── */
.gold-rule {
  width: 48px; height: 2px;
  background: var(--gold);
  margin: 24px 0;
}

/* ── LEAD SUCCESS ── */
.lead-success {
  color: #28CA41;
  font-weight: 600;
  padding: 16px;
  text-align: center;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer p {
  font-size: 13px;
  color: var(--muted);
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.footer-logo span { color: var(--gold-dim); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 140px 48px 80px;
  position: relative;
  gap: 64px;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -100px; right: -200px;
  width: 800px; height: 800px;
  background: radial-gradient(ellipse at center, rgba(212,168,67,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,168,67,0.12);
  border: 1px solid rgba(212,168,67,0.3);
  border-radius: 100px;
  padding: 8px 18px 8px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
  width: fit-content;
  animation: fadeUp 0.8s ease both;
  box-shadow: 0 0 20px rgba(212,168,67,0.08), 0 0 60px rgba(212,168,67,0.04);
}

.hero-badge-dot {
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(48px, 5.5vw, 80px);
  font-weight: 600;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 24px;
  animation: fadeUp 0.9s 0.1s ease both;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 44px;
  font-weight: 400;
  animation: fadeUp 1s 0.2s ease both;
}

.hero-actions {
  display: flex; gap: 16px; align-items: center;
  animation: fadeUp 1.1s 0.3s ease both;
}

.play-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}

/* ── HERO PREVIEW TABS ── */
.hero-preview-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.hero-preview-tab {
  background: none;
  border: none;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-family: inherit;
  letter-spacing: 0.02em;
  transition: color 0.2s, border-color 0.2s;
}
.hero-preview-tab:hover { color: var(--cream); }
.hero-preview-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.hero-preview-body {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 16px 18px;
  min-height: 120px;
}
.hero-preview-panel { display: none; }
.hero-preview-panel.active { display: block; }

/* ── HERO VISUAL ── */
.hero-visual {
  position: relative;
}

.hero-card-main {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.hero-card-header {
  background: var(--bg3);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #FF5F57; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #28CA41; }

.hero-card-body { padding: 24px; }

.upload-icon {
  width: 48px; height: 48px;
  background: rgba(212,168,67,0.12);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}

.float-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.float-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  display: flex; align-items: center; gap: 10px;
  animation: fadeIn 1s ease both;
}

.float-card:nth-child(1) { animation-delay: 0.8s; }
.float-card:nth-child(2) { animation-delay: 1.0s; }
.float-card:nth-child(3) { animation-delay: 1.2s; }
.float-card:nth-child(4) { animation-delay: 1.4s; }
.float-card:nth-child(5) { animation-delay: 1.6s; }
.float-card:nth-child(6) { animation-delay: 1.8s; }

.float-card-icon {
  width: 32px; height: 32px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}

.float-card-text { font-size: 11px; }
.float-card-text strong { display: block; color: var(--cream); font-size: 12px; font-weight: 600; }
.float-card-text span { color: var(--muted); font-size: 11px; }

.status-dot { width: 5px; height: 5px; background: #28CA41; border-radius: 50%; }

/* ── MARQUEE ── */
.marquee-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  overflow: hidden;
  position: relative;
}

.marquee-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

.marquee-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 36px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.marquee-divider {
  color: var(--gold-dim);
  font-size: 18px;
  opacity: 0.4;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── HOW IT WORKS ── */
.how-section { padding: 120px 0; }

.how-header {
  text-align: center;
  margin-bottom: 80px;
}

.how-header .section-label { justify-content: center; }
.how-header .section-label::before { display: none; }
.how-header .section-sub { margin: 16px auto 0; text-align: center; }

.section-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
  margin-top: 16px;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 2px;
  background: var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.step-card {
  background: var(--bg2);
  padding: 48px 40px;
  position: relative;
  transition: background 0.3s;
}

.step-card:hover { background: var(--bg3); }

.step-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 80px;
  font-weight: 700;
  line-height: 1;
  color: rgba(212,168,67,0.08);
  position: absolute;
  top: 24px; right: 32px;
  pointer-events: none;
}

.step-icon-wrap {
  width: 52px; height: 52px;
  background: rgba(212,168,67,0.1);
  border: 1px solid rgba(212,168,67,0.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  font-size: 22px;
}

.step-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 12px;
}

.step-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

.step-arrow {
  width: 44px;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 20px;
  font-weight: 700;
}

/* ── MLS CALLOUT ── */
.mls-callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(212,168,67,0.05);
  border: 1px solid rgba(212,168,67,0.15);
  border-radius: 10px;
  padding: 20px 24px;
  margin-top: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.mls-callout-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(212,168,67,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── OUTPUTS ── */
.outputs-section {
  padding: 100px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.outputs-header { margin-bottom: 64px; }

.outputs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.output-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: all 0.25s;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.output-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top left, rgba(212,168,67,0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.output-card:hover {
  border-color: rgba(212,168,67,0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.output-card:hover::before { opacity: 1; }

.output-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.output-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 6px;
}

.output-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.output-tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

/* Output card thumbnail preview */
.output-thumb {
  width: 100%;
  height: 64px;
  border-radius: 6px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: opacity 0.2s;
  position: relative;
  overflow: hidden;
}
.output-thumb:hover { opacity: 0.85; }
.output-thumb::after {
  content: 'See example →';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s;
}
.output-thumb:hover::after { opacity: 1; }

/* ── TESTIMONIALS ── */
.testimonials-section { padding: 100px 0; }
.testimonials-header { text-align: center; margin-bottom: 48px; }
.testimonials-header .section-label::before { display: none; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.testimonial-card:hover {
  border-color: rgba(212,168,67,0.3);
  transform: translateY(-2px);
}
.testimonial-stars {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.testimonial-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author strong {
  display: block;
  font-size: 14px;
  color: var(--cream);
  font-weight: 600;
}
.testimonial-author span {
  font-size: 12px;
  color: var(--muted);
}

/* ── STATS ── */
.stats-section { padding: 80px 0; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.stat-item {
  background: var(--bg2);
  padding: 40px 36px;
  text-align: center;
}

.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

/* ── PRICING ── */
.pricing-section {
  padding: 120px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}

.pricing-header {
  text-align: center;
  margin-bottom: 64px;
}
.pricing-header .section-label { justify-content: center; }
.pricing-header .section-label::before { display: none; }
.pricing-header .section-sub { margin: 16px auto 0; text-align: center; }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  position: relative;
  transition: transform 0.2s;
}

.pricing-card:hover { transform: translateY(-4px); }

.pricing-card.featured {
  border-color: var(--gold);
  background: linear-gradient(145deg, rgba(212,168,67,0.05), var(--bg));
}

.pricing-featured-badge {
  position: absolute;
  top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold);
  color: #09090B;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
}

.pricing-tier {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.featured .pricing-tier { color: var(--gold); }

.pricing-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-price sup { font-size: 24px; vertical-align: super; }
.pricing-price span { font-size: 18px; color: var(--muted); font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 400; }

.pricing-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
  margin-top: 8px;
}

.pricing-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.pricing-features li .check {
  color: var(--gold);
  font-size: 14px;
  margin-top: 1px;
  flex-shrink: 0;
}

.btn-pricing {
  width: 100%;
  padding: 13px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: all 0.2s;
}

.btn-pricing-outline {
  border: 1px solid var(--border);
  color: var(--cream);
  background: transparent;
}
.btn-pricing-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-pricing-gold {
  background: var(--gold);
  color: #09090B;
  border: none;
}
.btn-pricing-gold:hover { background: var(--gold-lt); }

/* Pricing tooltips */
.pricing-tip {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted var(--muted);
}
.pricing-tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg3);
  color: var(--text);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  white-space: normal;
  width: 220px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.pricing-tip:hover::after { opacity: 1; }

/* ── FAQ ── */
.faq-section { padding: 100px 0; }
.faq-header { text-align: center; margin-bottom: 48px; }
.faq-header .section-label::before { display: none; }
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item summary {
  padding: 20px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--cream);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}
.faq-item summary:hover { color: var(--gold); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--muted);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item[open] summary::after {
  content: '−';
  color: var(--gold);
}
.faq-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  padding: 0 0 20px;
  margin: 0;
}

/* ── FINAL CTA ── */
.cta-section {
  padding: 140px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(212,168,67,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
}

.cta-section h2 em { font-style: italic; color: var(--gold); }

.cta-section p {
  font-size: 18px;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 48px;
}

/* ── THEME TOGGLE ── */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 8px;
  cursor: pointer;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  transition: color 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
}

.theme-toggle:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon { display: none; }

[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ── MOBILE NAV ── */
.hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.hamburger-btn:hover { color: var(--gold); border-color: var(--gold); }

.nav-mobile {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  flex-direction: column;
  gap: 12px;
  z-index: 99;
}
.nav-mobile--open { display: flex; }
.nav-mobile a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 0;
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--cream); }

/* ── BUTTON LOADING STATE ── */
.btn-loading {
  pointer-events: none;
  opacity: 0.7;
}
.btn-loading::after {
  content: '';
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── TOAST MESSAGES ── */
.messages-container {
  position: fixed;
  top: 80px; right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.message-toast {
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  animation: fadeUp 0.4s ease;
}
.message-toast--success { background: rgba(40,202,65,0.1); color: #28CA41; border: 1px solid rgba(40,202,65,0.2); }
.message-toast--error   { background: rgba(255,95,87,0.1);  color: #FF5F57; border: 1px solid rgba(255,95,87,0.2); }
.message-toast--info    { background: rgba(99,102,241,0.1);  color: #6366F1; border: 1px solid rgba(99,102,241,0.2); }

/* ── RESULTS SECTIONS ── */
.results-section { margin-top: 40px; }
.results-section-header {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.results-section-header::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--gold);
}

/* ── RESULTS STICKY NAV ── */
.results-nav {
  position: sticky;
  top: 64px;
  z-index: 90;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  margin: 0 -48px;
  padding: 0 48px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.results-nav::-webkit-scrollbar { display: none; }
.results-nav-tab {
  display: inline-block;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.results-nav-tab:hover { color: var(--cream); }
.results-nav-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.results-section { scroll-margin-top: 120px; }
@media (max-width: 900px) {
  .results-nav { margin: 0 -24px; padding: 0 24px; }
  .results-section { scroll-margin-top: 110px; }
}
@media (max-width: 480px) {
  .results-nav { margin: 0 -16px; padding: 0 16px; top: 56px; }
  .results-section { scroll-margin-top: 100px; }
}

/* ── DASHBOARD TILES ── */
.dash-section { margin-top: 32px; scroll-margin-top: 120px; }
.dash-section-header {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-section-header::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--gold);
}
.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.dash-tile {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 88px;
}
.dash-tile:hover { border-color: var(--gold-dim); background: var(--bg3); }
.dash-tile:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.dash-tile.active { border-color: var(--gold); background: var(--bg3); }
.dash-tile-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-tile-icon {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  background: var(--bg3);
  flex-shrink: 0;
}
.dash-tile-icon svg { width: 16px; height: 16px; }
.dash-tile-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--cream);
  flex: 1;
  min-width: 0;
}
.dash-tile-status {
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.dash-tile-status--ready { color: #48bb78; }
.dash-tile-status--generating { color: #FFBD2E; }
.dash-tile-status--review { color: #ef4444; }
.dash-tile-status--empty { color: var(--muted); }
.dash-tile-action {
  align-self: flex-start;
  margin-top: auto;
}
.dash-expand {
  grid-column: 1 / -1;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.2s ease;
}
.dash-expand-inner {
  background: var(--bg2);
  border: 1px solid var(--gold-dim);
  border-radius: 10px;
  padding: 24px;
}
.dash-expand-close {
  float: right;
  background: none; border: none;
  color: var(--muted); cursor: pointer;
  font-size: 18px; line-height: 1;
  padding: 4px 8px;
}
.dash-expand-close:hover { color: var(--cream); }
/* HTMX loading indicator */
.dash-expand.htmx-request::before {
  content: '';
  display: block;
  grid-column: 1 / -1;
  height: 2px;
  background: linear-gradient(90deg, transparent 25%, var(--gold) 50%, transparent 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 1px;
  margin: 8px 0;
}

@media (max-width: 1023px) {
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-tile { min-height: 72px; }
}
@media (max-width: 900px) {
  .dash-section { scroll-margin-top: 110px; }
}
@media (max-width: 480px) {
  .dash-section { scroll-margin-top: 100px; }
  .dash-expand-inner { padding: 16px; }
}

@keyframes shimmer { to { background-position-x: -200%; } }

/* ── REEL LAYOUT ── */
.reel-layout {
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: 24px;
  align-items: start;
}
.reel-player { min-width: 0; }
@media (max-width: 768px) {
  .reel-layout { grid-template-columns: 1fr; }
}

/* ── ACTION BAR & DROPDOWN ── */
.action-bar {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.action-dropdown { position: relative; display: inline-block; }
.action-dropdown-menu {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  min-width: 160px;
  z-index: 10;
  margin-bottom: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.action-dropdown.open .action-dropdown-menu { display: block; }
.action-dropdown-item {
  display: block;
  width: 100%;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  border-radius: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: background 0.15s, color 0.15s;
}
.action-dropdown-item:hover { background: var(--bg3); color: var(--cream); }
.action-bar-secondary { display: flex; gap: 8px; margin-left: auto; }

@media (max-width: 480px) {
  .action-bar { gap: 6px; }
  .action-bar .btn-primary,
  .action-bar .btn-ghost { font-size: 11px !important; padding: 6px 10px !important; }
  .action-bar-secondary { margin-left: 0; width: 100%; }
}

/* ── SAVE INDICATOR ── */
.save-indicator {
  font-size: 12px;
  color: #28CA41;
  font-weight: 600;
  margin-left: 8px;
  animation: fadeIn 0.3s ease;
}

/* ── DASHBOARD THUMBNAIL ── */
.listing-card-thumb {
  width: 56px; height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

/* ── INLINE EMAIL PREVIEW ── */
.email-inline-preview {
  margin-bottom: 12px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  max-height: 600px;
  overflow-y: auto;
}
.email-inline-preview iframe {
  display: block;
  width: 100%;
  min-height: 200px;
  border: none;
  background: #fff;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .hamburger-btn { display: flex; }
  .container { padding: 0 24px; }
  .page-content { padding: 100px 24px 60px; }
  .hero { grid-template-columns: 1fr; padding: 100px 24px 60px; }
  .hero-visual { margin-top: 16px; max-width: 400px; margin-inline: auto; }
  .steps-grid, .pricing-grid, .stats-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .outputs-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .outputs-header { margin-bottom: 32px; }
  .output-card { padding: 16px 14px; }
  .output-icon { width: 36px; height: 36px; font-size: 16px; margin-bottom: 10px; }
  .output-card h4 { font-size: 13px; margin-bottom: 4px; }
  .output-card p { display: none; }
  .output-tag { margin-top: 8px; font-size: 10px; padding: 2px 8px; }
  .steps-grid .step-arrow { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .kit-hero-thumb { display: none; }
  .cta-section { padding: 80px 24px; }
  .messages-container { right: 16px; left: 16px; }
  footer { flex-direction: column; gap: 16px; text-align: center; padding: 32px 24px; }
}

@media (max-width: 480px) {
  nav { padding: 14px 16px; }
  .container { padding: 0 16px; }
  .page-content { padding: 90px 16px 48px; }
  .hero { padding: 90px 16px 48px; }
  .cta-section { padding: 60px 16px; }
  footer { padding: 32px 16px; }
  .hero-visual { max-width: 100%; }
}

/* ── DEMO BANNER ── */
.demo-banner {
  background: rgba(212,168,67,0.08);
  border: 1px solid rgba(212,168,67,0.2);
  border-radius: 8px;
  padding: 14px 20px;
  margin-bottom: 32px;
  text-align: center;
}
.demo-banner p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.demo-banner strong { color: var(--gold); }
.demo-banner a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ─── Blog Prose Styles ─────────────────────────────────────────────────── */
.prose { max-width: 100%; }
.prose h2 { font-family: 'Cormorant Garamond', serif; font-size: 28px; color: var(--cream); margin: 40px 0 14px; line-height: 1.2; font-weight: 600; }
.prose h3 { font-family: 'Cormorant Garamond', serif; font-size: 22px; color: var(--cream); margin: 30px 0 10px; line-height: 1.2; font-weight: 600; }
.prose p  { color: var(--muted); line-height: 1.85; margin-bottom: 20px; font-size: 16px; }
.prose a  { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--gold-lt); }
.prose strong { color: var(--cream); font-weight: 700; }
.prose em { font-style: italic; }
.prose blockquote { border-left: 3px solid var(--gold); padding: 4px 0 4px 20px; margin: 28px 0; }
.prose blockquote p { color: var(--cream); font-style: italic; font-size: 17px; margin-bottom: 0; }
.prose ul, .prose ol { color: var(--muted); padding-left: 24px; margin-bottom: 20px; line-height: 1.85; font-size: 16px; }
.prose li { margin-bottom: 8px; }
.prose code { background: var(--bg3); border: 1px solid var(--border); border-radius: 4px; padding: 2px 7px; font-size: 13px; color: var(--cream); }
.prose pre { background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; padding: 20px; margin: 24px 0; overflow-x: auto; }
.prose pre code { background: none; border: none; padding: 0; font-size: 14px; }
.prose img { max-width: 100%; border-radius: 8px; margin: 28px 0; display: block; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* --- Feedback widget --- */
.feedback-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feedback-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.feedback-panel {
  position: fixed;
  bottom: 88px;
  right: 24px;
  z-index: 1001;
  width: 360px;
  max-width: calc(100vw - 48px);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  overflow: hidden;
}
.feedback-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.feedback-panel-header h3 {
  margin: 0;
  font-size: 16px;
  color: var(--white);
}
.feedback-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.feedback-close:hover { color: var(--white); }
#feedback-panel-body { padding: 16px 20px 20px; }
#feedback-panel-body .form-group { margin-bottom: 12px; }
#feedback-panel-body label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }

/* ── HERO ENTRANCE ANIMATIONS ── */

/* Initial hidden states — scoped under .hero-animated so content is visible before JS runs */
.hero-animated .hero-content {
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 0.6s ease forwards;
}
.hero-animated .hero-visual {
  opacity: 0;
  transform: translateY(60px);
  animation: heroSlideUp 0.5s 0.3s ease forwards;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Gold glow pulse on dashboard card arrival */
.hero-animated .hero-card-main {
  animation: heroGlowPulse 1s 0.6s ease both;
}
@keyframes heroGlowPulse {
  0%   { box-shadow: 0 0 0 rgba(212,168,67,0); }
  40%  { box-shadow: 0 0 30px rgba(212,168,67,0.15); }
  100% { box-shadow: none; }
}

/* Progress bar inside hero */
.hero-progress {
  margin-top: 16px;
  background: var(--bg3);
  border-radius: 6px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  display: none;
}
.hero-animated .hero-progress { display: block; }

.hero-progress-label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}
.hero-progress-label span { color: var(--gold); font-weight: 600; }

.hero-progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.hero-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold), var(--gold-lt));
  border-radius: 2px;
  transition: width 0.15s linear;
}

/* Float cards — override existing fadeIn, use JS-controlled entrance */
.hero-animated .float-card {
  opacity: 0;
  transform: translateY(40px) scale(0.8);
  animation: none;
}
.hero-animated .float-card.float-card--visible {
  animation: floatCardEnter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes floatCardEnter {
  from { opacity: 0; transform: translateY(40px) scale(0.8); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Shimmer sweep on dashboard card */
.hero-card-main { position: relative; overflow: hidden; }
.hero-shimmer {
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(105deg, transparent 40%, rgba(212,168,67,0.12) 50%, transparent 60%);
  pointer-events: none;
  z-index: 5;
}
.hero-shimmer--go {
  animation: shimmerSweep 0.7s ease forwards;
}
@keyframes shimmerSweep {
  to { left: 100%; }
}

/* Ambient: gentle float on float-cards after entrance */
.float-card--ambient {
  animation: gentleFloat 6s ease-in-out infinite !important;
}
.float-card:nth-child(odd).float-card--ambient  { animation-delay: 0s !important; }
.float-card:nth-child(even).float-card--ambient { animation-delay: 3s !important; }

@keyframes gentleFloat {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50%      { opacity: 1; transform: translateY(-6px); }
}

/* Ambient: rotating gold border glow on main card */
@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.hero-card-main--glow {
  border-color: transparent;
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-image:
    linear-gradient(var(--bg2), var(--bg2)),
    conic-gradient(from var(--border-angle), var(--border) 70%, var(--gold-dim) 80%, var(--gold) 90%, var(--border) 100%);
  animation: borderRotate 8s linear infinite;
}
@keyframes borderRotate {
  to { --border-angle: 360deg; }
}

/* 3D tilt perspective wrapper */
.hero-visual--tilt {
  perspective: 800px;
}
.hero-visual--tilt .hero-card-main {
  transition: transform 0.15s ease-out;
  will-change: transform;
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .hero-content,
  .hero-visual,
  .hero-animated .hero-content,
  .hero-animated .hero-visual,
  .hero-animated .float-card,
  .hero-animated .float-card.float-card--visible {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .hero-animated .hero-card-main { animation: none !important; }
  .hero-shimmer { display: none; }
  .float-card--ambient { animation: none !important; }
  .hero-card-main--glow { animation: none !important; border-color: var(--border); }
  .hero-animated .hero-progress { display: block; }
  .hero-progress-fill { width: 100% !important; transition: none !important; }
}

/* ══════════════════════════════════════════════════════════════════════════
   UX OVERHAUL: UTILITY CLASSES & ACCESSIBILITY (2026-03-18)
   ══════════════════════════════════════════════════════════════════════════ */

/* ── SEMANTIC COLOR VARIABLES ── */
:root {
  --success:    #28CA41;
  --success-bg: rgba(40,202,65,0.1);
  --success-border: rgba(40,202,65,0.2);
  --error:      #FF5F57;
  --error-bg:   rgba(255,95,87,0.1);
  --error-border: rgba(255,95,87,0.2);
  --warning:    #FFBD2E;
  --warning-bg: rgba(255,189,46,0.1);
  --warning-border: rgba(255,189,46,0.2);
  --info:       #6366F1;
  --info-bg:    rgba(99,102,241,0.1);
  --info-border: rgba(99,102,241,0.2);
  --blue:       #3b82f6;
  --blue-bg:    rgba(59,130,246,0.15);
  --blue-border: rgba(59,130,246,0.2);
}

[data-theme="light"] {
  --success:    #16a34a;
  --success-bg: rgba(22,163,74,0.1);
  --success-border: rgba(22,163,74,0.2);
  --error:      #dc2626;
  --error-bg:   rgba(220,38,38,0.1);
  --error-border: rgba(220,38,38,0.2);
  --warning:    #d97706;
  --warning-bg: rgba(217,119,6,0.1);
  --warning-border: rgba(217,119,6,0.2);
  --info:       #4f46e5;
  --info-bg:    rgba(79,70,229,0.1);
  --info-border: rgba(79,70,229,0.2);
  --blue:       #2563eb;
  --blue-bg:    rgba(37,99,235,0.15);
  --blue-border: rgba(37,99,235,0.2);
}

/* ── ACCESSIBILITY: FOCUS VISIBLE ── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.form-control:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,168,67,0.15);
}

/* ── ACCESSIBILITY: REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── ACCESSIBILITY: SCREEN READER ONLY ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ── TYPOGRAPHY UTILITIES ── */
.text-xs  { font-size: 11px; }
.text-sm  { font-size: 12px; }
.text-base { font-size: 13px; }
.text-md  { font-size: 14px; }
.text-lg  { font-size: 16px; }
.text-xl  { font-size: 18px; }
.text-2xl { font-size: 24px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.04em; }
.font-serif { font-family: 'Cormorant Garamond', serif; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-white { color: var(--white); }

/* ── LAYOUT UTILITIES ── */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-start { display: flex; align-items: flex-start; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.gap-10 { gap: 40px; }
.w-full { width: 100%; }
.max-w-sm { max-width: 440px; }
.max-w-md { max-width: 560px; }
.max-w-lg { max-width: 680px; }
.max-w-xl { max-width: 800px; }
.max-w-2xl { max-width: 960px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ── SPACING UTILITIES ── */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mt-12 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-10 { margin-bottom: 40px; }
.mb-12 { margin-bottom: 48px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-5 { padding: 20px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }

/* ── BUTTON SIZE VARIANTS ── */
.btn-sm {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 4px;
}
.btn-md {
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 4px;
}
.btn-lg {
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 4px;
}
.btn-ghost.btn-sm { padding: 5px 13px; }
.btn-ghost.btn-md { padding: 9px 19px; }
.btn-ghost.btn-lg { padding: 13px 31px; }

.btn-danger {
  background: var(--error);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 10px 20px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-danger:hover { background: #e04e47; }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 6px;
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-icon:hover { color: var(--gold); border-color: var(--gold); }
.btn-icon.btn-icon-sm { width: 28px; height: 28px; }

/* ── CARD VARIANTS ── */
.card-compact { padding: 16px; }
.card-flush { padding: 0; }
.card-static { transition: none; }
.card-static:hover { transform: none; border-color: var(--border); }

/* ── ALERT / BANNER COMPONENTS ── */
.alert {
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}
.alert-error {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error);
}
.alert-success {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success);
}
.alert-warning {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  color: var(--warning);
}
.alert-info {
  background: var(--info-bg);
  border: 1px solid var(--info-border);
  color: var(--info);
}
.alert-gold {
  background: rgba(212,168,67,0.06);
  border: 1px solid rgba(212,168,67,0.15);
  color: var(--gold);
}

/* ── STATUS CHIP VARIANTS (semantic) ── */
.status-chip--paid    { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.status-chip--overdue { background: var(--error-bg);   color: var(--error);   border: 1px solid var(--error-border); }
.status-chip--sent    { background: var(--blue-bg);    color: var(--blue);    border: 1px solid var(--blue-border); }
.status-chip--draft   { background: rgba(255,255,255,0.06); color: var(--muted); border: 1px solid var(--border); }
.status-chip--cancelled { background: rgba(255,255,255,0.06); color: var(--muted); border: 1px solid var(--border); }

/* ── STAT NUMBER (serif large) ── */
.stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-value-lg {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

/* ── EMPTY STATE COMPONENT ── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
}
.empty-state-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--muted);
  opacity: 0.5;
}
.empty-state-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 8px;
}
.empty-state-text {
  font-size: 13px;
  color: var(--muted);
  max-width: 360px;
  margin: 0 auto;
  line-height: 1.6;
}
.empty-state-cta {
  margin-top: 20px;
}

/* ── PHOTO GRID ── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.photo-grid-lg {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

/* ── TABLE COMPONENT ── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.table tr:hover td { background: rgba(212,168,67,0.02); }

/* ── LABEL / BADGE ── */
.label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.label-required::after {
  content: ' *';
  color: var(--error);
}

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}
.divider-sm { margin: 12px 0; }
.divider-lg { margin: 40px 0; }

/* ── BACK LINK ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 16px;
  transition: color 0.15s;
}
.back-link:hover { color: var(--gold); }
.back-link svg { width: 14px; height: 14px; }

/* ── BREADCRUMBS ── */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; transition: color 0.15s; }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs .sep { opacity: 0.5; }

/* ── FORM INLINE GROUP ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-row-3 {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
}

/* ── FORM LOADING STATE ── */
form.is-submitting button[type="submit"] {
  pointer-events: none;
  opacity: 0.6;
  cursor: wait;
}
form.is-submitting button[type="submit"]::after {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}

/* ── CHATBOT RESPONSIVE ── */
@media (max-width: 480px) {
  .chatbot-panel {
    width: calc(100vw - 32px) !important;
    right: 16px !important;
    bottom: 80px !important;
    max-height: 70vh !important;
  }
}

/* ── ADDITIONAL RESPONSIVE ── */
@media (max-width: 900px) {
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .photo-grid-lg { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .form-row { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stat-value { font-size: 28px; }
  .stat-value-lg { font-size: 36px; }
  .empty-state { padding: 32px 16px; }
}

/* ── KANBAN RESPONSIVE ── */
@media (max-width: 900px) {
  .pipeline-columns {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .pipeline-column {
    min-width: unset !important;
  }
}

/* ── Pipeline move dropdown (mobile) ── */
.pipeline-move-select {
  display: none;
  font-size: 12px;
  padding: 6px 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  cursor: pointer;
  width: 100%;
  margin-top: 8px;
}
@media (max-width: 900px) {
  .pipeline-move-select { display: block; }
}

/* ── Toast close button ── */
.toast-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: inherit;
  font-size: 16px;
  cursor: pointer;
  opacity: 0.6;
  padding: 0;
  line-height: 1;
}
.toast-close:hover { opacity: 1; }
.message-toast { position: relative; padding-right: 32px; }
