:root {
  --bg: #FAF8F5;
  --fg: #1C3D2A;
  --accent: #F59E0B;
  --accent-dark: #D97706;
  --muted: #6B7C6E;
  --border: #D4C9BC;
  --card-bg: #FFFFFF;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
.navbar {
  padding: 24px 48px;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--fg);
}
.nav-tagline {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}

/* HERO */
.hero {
  padding: 80px 48px 60px;
}
.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 60px;
  align-items: start;
}
.hero-headline {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-image-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(28,61,42,0.12);
}
.hero-img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-stats {
  padding-top: 8px;
}
.stat-item {
  margin-bottom: 28px;
}
.stat-item:last-child { margin-bottom: 0; }
.stat-number {
  display: block;
  font-family: var(--serif);
  font-size: 36px;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.stat-divider {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

/* MANIFESTO */
.manifesto {
  background: var(--fg);
  padding: 80px 48px;
}
.manifesto-inner {
  max-width: 860px;
  margin: 0 auto;
}
.manifesto-quote {
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 30px);
  color: var(--bg);
  line-height: 1.4;
  font-style: italic;
  margin-bottom: 32px;
  border-left: 3px solid var(--accent);
  padding-left: 24px;
}
.manifesto-body {
  font-size: 16px;
  color: rgba(250,248,245,0.7);
  line-height: 1.8;
  max-width: 640px;
}

/* SECTION SHARED */
.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-headline {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 38px);
  color: var(--fg);
  line-height: 1.2;
  margin-bottom: 48px;
}

/* FEATURES */
.features {
  padding: 80px 48px;
}
.features .section-headline {
  max-width: 560px;
}
.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
}
.feature-card {
  background: var(--card-bg);
  padding: 40px;
}
.feature-icon {
  margin-bottom: 20px;
}
.feature-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--fg);
}
.feature-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

/* HOW */
.how {
  padding: 80px 48px;
  background: var(--card-bg);
}
.steps {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr;
  align-items: start;
}
.step { }
.step-number {
  display: block;
  font-family: var(--serif);
  font-size: 48px;
  color: var(--accent);
  margin-bottom: 16px;
  line-height: 1;
}
.step-body h3 {
  font-family: var(--serif);
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--fg);
}
.step-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.step-connector {
  width: 1px;
  height: 80px;
  background: var(--border);
  margin: 48px auto 0;
}

/* PRICING */
.pricing {
  padding: 80px 48px;
}
.pricing-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pricing-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px;
  background: var(--card-bg);
}
.pricing-card.featured {
  border-color: var(--fg);
  border-width: 2px;
  box-shadow: 4px 4px 0 var(--fg);
}
.pricing-tier {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
}
.pricing-price {
  font-family: var(--serif);
  font-size: 44px;
  color: var(--fg);
  margin-bottom: 28px;
  line-height: 1;
}
.pricing-period {
  font-size: 18px;
  color: var(--muted);
}
.pricing-features {
  list-style: none;
}
.pricing-features li {
  font-size: 14px;
  color: var(--fg);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }

/* CLOSING */
.closing {
  background: var(--fg);
  padding: 100px 48px;
}
.closing-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.closing h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  color: var(--bg);
  line-height: 1.2;
  margin-bottom: 24px;
}
.closing p {
  font-size: 17px;
  color: rgba(250,248,245,0.65);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 48px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--fg);
}
.footer-note {
  font-size: 13px;
  color: var(--muted);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stats { display: flex; gap: 32px; }
  .stat-divider { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step-connector { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .navbar, .hero, .manifesto, .features, .how, .pricing, .closing, .footer { padding-left: 24px; padding-right: 24px; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}
/* ---- DEMO SECTION ---- */
.demo-section {
  padding: 80px 48px;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
}
.demo-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.demo-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 48px;
  text-align: center;
  line-height: 1.7;
}
.demo-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 32px;
  align-items: start;
}
.demo-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.required { color: var(--accent); }
.optional { font-weight: 400; color: var(--muted); }
.form-group input[type="text"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card-bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 14px;
  transition: border-color 0.15s;
  box-sizing: border-box;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--fg); }
.form-group textarea { resize: vertical; line-height: 1.6; }
.chip-input-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card-bg);
  min-height: 42px;
  align-items: center;
}
.chip-input-wrap:focus-within { border-color: var(--fg); }
.chip-container { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--fg);
  color: var(--bg);
  font-size: 12px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
}
.chip-remove {
  background: none;
  border: none;
  color: var(--bg);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  opacity: 0.7;
}
.chip-remove:hover { opacity: 1; }
#attr-input {
  border: none;
  background: none;
  outline: none;
  font-size: 14px;
  color: var(--fg);
  font-family: var(--sans);
  flex: 1;
  min-width: 120px;
  padding: 2px 0;
}
.field-hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.form-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 16px;
}
.btn-generate {
  width: 100%;
  padding: 13px;
  background: var(--fg);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-generate:hover:not(:disabled) { background: #2a5940; }
.btn-generate:active:not(:disabled) { transform: scale(0.99); }
.btn-generate:disabled { opacity: 0.7; cursor: not-allowed; }
.spinner { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.rate-limit-note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 10px; }
.output-placeholder { text-align: center; padding: 48px 24px; color: var(--muted); }
.placeholder-icon { margin-bottom: 16px; }
.output-placeholder p { font-size: 15px; color: var(--fg); font-weight: 500; margin-bottom: 6px; }
.placeholder-sub { font-size: 13px; color: var(--muted); }
.output-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.output-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; color: var(--muted); }
.lift-badge {
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}
.output-block { margin-bottom: 24px; }
.output-block-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.output-title { font-family: var(--serif); font-size: 20px; color: var(--fg); line-height: 1.3; }
.char-count { font-size: 12px; color: var(--muted); display: block; margin-top: 4px; }
.output-description p { font-size: 15px; color: var(--fg); line-height: 1.7; margin-bottom: 10px; }
.output-description p:last-child { margin-bottom: 0; }
.output-bullets { list-style: none; }
.output-bullets li {
  font-size: 14px;
  color: var(--fg);
  line-height: 1.6;
  padding: 6px 0 6px 18px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.output-bullets li::before { content: '\u2713'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.output-bullets li:last-child { border-bottom: none; }
.output-meta { font-size: 14px; color: var(--muted); line-height: 1.6; font-style: italic; }
.meta-hint { font-size: 10px; color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.lead-capture { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--border); }
.lead-capture-inner { text-align: center; }
.lead-tagline { font-family: var(--serif); font-size: 20px; color: var(--fg); margin-bottom: 20px; }
.lead-form { display: flex; flex-direction: column; gap: 10px; max-width: 400px; margin: 0 auto 12px; }
.lead-form input {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--fg);
  background: var(--card-bg);
  box-sizing: border-box;
  width: 100%;
}
.lead-form input:focus { outline: none; border-color: var(--fg); }
.btn-cta {
  padding: 13px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-cta:hover:not(:disabled) { background: var(--accent-dark); }
.btn-cta:disabled { opacity: 0.7; cursor: not-allowed; }
.lead-note { font-size: 13px; color: var(--accent-dark); margin-bottom: 6px; }
.lead-privacy { font-size: 12px; color: var(--muted); }
@media (max-width: 900px) { .demo-layout { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .demo-section { padding: 60px 24px; } .demo-panel { padding: 24px; } .lead-form { max-width: 100%; } }
/* ---- IMPACT BANNER ---- */
.impact-banner {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #86efac;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 20px;
}
.impact-metrics {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.impact-metric {
  text-align: center;
}
.impact-value {
  display: block;
  font-family: var(--serif);
  font-size: 32px;
  color: var(--fg);
  line-height: 1;
  font-weight: 700;
}
.impact-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 500;
  margin-top: 4px;
}
.impact-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}
.impact-seo {
  flex: 1;
  min-width: 160px;
}
.seo-bar-wrap { }
.seo-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.seo-bar-row {
  display: flex;
  gap: 4px;
  align-items: center;
}
.seo-bar {
  height: 8px;
  border-radius: 4px;
  transition: width 0.6s ease;
}
.seo-bar-before {
  background: #cbd5e1;
  flex: 1;
  max-width: 50%;
}
.seo-bar-after {
  background: var(--accent);
  flex: 1;
}
.seo-bar-scores {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 600;
}

/* ---- TABS ---- */
.output-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
}
.output-tab {
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.output-tab:hover { color: var(--fg); }
.output-tab.active {
  color: var(--fg);
  border-bottom-color: var(--fg);
}
.tab-badge {
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  line-height: 1;
}
.output-tab-content { }
.output-tab-content[hidden] { display: none; }

/* ---- EXPORT BUTTONS ---- */
.gen-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.btn-export {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.btn-export:hover { border-color: var(--fg); color: var(--fg); }

/* ---- DIFF PANEL ---- */
.diff-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.diff-col { }
.diff-col-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.original-label { color: var(--muted); }
.generated-label { color: var(--fg); }
.diff-field {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--fg);
  line-height: 1.6;
  margin-bottom: 12px;
}
.diff-add {
  background: #dcfce7;
  color: #166534;
  padding: 1px 3px;
  border-radius: 3px;
  font-weight: 600;
}
.diff-remove {
  text-decoration: line-through;
  color: #94a3b8;
  padding: 1px 3px;
}

/* ---- RATIONALE LIST ---- */
.rationale-list { }
.rationale-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.rationale-item:last-child { border-bottom: none; }
.rationale-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.rationale-text {
  font-size: 14px;
  color: var(--fg);
  line-height: 1.6;
  padding-top: 4px;
}
.rationale-empty {
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 900px) {
  .diff-panel { grid-template-columns: 1fr; }
  .impact-metrics { gap: 12px; }
  .impact-seo { min-width: 100%; }
}

/* ---- URL IMPORT ---- */
.url-import-wrap {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--border);
}
.url-import-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.url-import-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.url-import-input {
  flex: 1;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card-bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.url-import-input:focus { outline: none; border-color: var(--fg); }
.url-import-input::placeholder { color: var(--muted); }
.url-import-input.import-error { border-color: #fca5a5; background: #fef2f2; }
.btn-import {
  padding: 9px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.btn-import:hover:not(:disabled) { background: var(--accent-dark); }
.btn-import:disabled { opacity: 0.6; cursor: not-allowed; }
.import-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.url-import-hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.url-import-error { font-size: 12px; color: #b91c1c; margin-top: 6px; }
.import-success-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 6px;
  padding: 8px 12px;
  margin-top: 8px;
}
.import-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.import-preview-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--border);
  flex-shrink: 0;
}
.import-preview-info { flex: 1; min-width: 0; }
.import-preview-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.import-preview-meta {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- BULK CSV SECTION ---- */

.bulk-section {
  margin-top: 48px;
  padding-top: 48px;
}

.bulk-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.bulk-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.bulk-divider-text {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
  white-space: nowrap;
}

.bulk-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px;
  max-width: 720px;
  margin: 0 auto;
}

.bulk-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.bulk-icon {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.bulk-card-title {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--fg);
  margin-bottom: 4px;
}

.bulk-card-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* Upload area */
.bulk-upload-area {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bulk-drop-zone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.bulk-drop-zone:hover,
.bulk-drop-zone.bulk-drop-active {
  border-color: var(--accent);
  background: rgba(245, 158, 11, 0.04);
}
.bulk-drop-zone.bulk-drop-ready {
  border-color: var(--fg);
  border-style: solid;
}

.bulk-drop-icon {
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}

.bulk-drop-label {
  font-size: 15px;
  color: var(--fg);
  margin-bottom: 6px;
}
.bulk-file-btn {
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.bulk-drop-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.bulk-drop-hint code {
  background: rgba(28, 61, 42, 0.06);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 11px;
}
.bulk-drop-limit {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  font-style: italic;
}

/* Format help */
.bulk-format-help {
  text-align: left;
}
.bulk-format-toggle {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--sans);
}
.bulk-format-toggle:hover { color: var(--fg); }
.bulk-format-panel {
  margin-top: 12px;
  padding: 16px;
  background: rgba(28, 61, 42, 0.04);
  border-radius: 8px;
  font-size: 12px;
}
.bulk-format-panel p { margin-bottom: 8px; }
.bulk-format-panel p:last-child { margin-bottom: 0; }
.bulk-format-code {
  background: rgba(28, 61, 42, 0.08);
  padding: 10px 12px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
  color: var(--fg);
  margin: 6px 0 16px;
}

/* Submit button */
.bulk-submit-btn {
  background: var(--fg);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--sans);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
}
.bulk-submit-btn:hover:not(:disabled) { background: #2a5a3c; }
.bulk-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.bulk-submit-label { color: white; }
.bulk-submit-loading {
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
}

/* Pro gate */
.bulk-pro-gate {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.bulk-pro-gate-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(245,158,11,0.04));
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 12px;
  padding: 20px 24px;
}
.bulk-pro-badge {
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.bulk-pro-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--fg);
  margin-bottom: 4px;
}
.bulk-pro-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.btn-upgrade-bulk {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-upgrade-bulk:hover { background: var(--accent-dark); }

.bulk-sample-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bulk-sample-label {
  font-size: 13px;
  color: var(--muted);
}
.bulk-sample-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--fg);
  cursor: pointer;
  font-family: var(--sans);
  transition: border-color 0.2s;
}
.bulk-sample-btn:hover { border-color: var(--fg); }

/* Progress UI */
.bulk-progress {
  padding: 20px 0;
}
.bulk-progress-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.bulk-progress-spinner { color: var(--accent); flex-shrink: 0; }
.bulk-progress-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 2px;
}
.bulk-progress-detail {
  font-size: 12px;
  color: var(--muted);
}
.bulk-progress-bar-wrap {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.bulk-progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  width: 0%;
  transition: width 0.6s ease;
}

/* Results UI */
.bulk-results {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.bulk-results-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.bulk-results-icon {
  width: 28px;
  height: 28px;
  background: var(--fg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}
.bulk-results-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  flex: 1;
}
.bulk-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.bulk-download-btn:hover { background: var(--accent-dark); }

.bulk-results-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bulk-preview-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border-radius: 8px;
  padding: 12px 16px;
}
.bulk-preview-before,
.bulk-preview-after {
  flex: 1;
  min-width: 0;
}
.bulk-preview-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 2px;
}
.bulk-preview-title {
  font-size: 13px;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bulk-preview-after .bulk-preview-title {
  font-weight: 500;
}
.bulk-preview-arrow {
  color: var(--muted);
  font-size: 16px;
  flex-shrink: 0;
}
.bulk-preview-lift {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 2px;
}
.bulk-preview-empty {
  font-size: 13px;
  color: var(--muted);
  padding: 12px 0;
}

/* ---- VARIANT COMPARISON GRID ---- */
.variants-headline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 16px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #86efac;
  border-radius: 8px;
}
.variants-headline svg { color: #eab308; flex-shrink: 0; }

.variants-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.variant-col {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--bg);
}
.variant-col:hover { border-color: #86efac; }
.variant-col-winner {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.variant-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #f9fafb;
  border-bottom: 1px solid var(--border);
}
.variant-col-winner .variant-header {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-bottom-color: #86efac;
}
.variant-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.variant-col-winner .variant-label { color: var(--accent-dark); }

.variant-lift-badge {
  font-size: 13px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--border);
  color: var(--muted);
}
.lift-high { background: #dcfce7; color: #15803d; }
.lift-mid { background: #fef9c3; color: #a16207; }
.winner-badge {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.variant-body { padding: 14px; }
.variant-field { margin-bottom: 12px; }
.variant-field:last-of-type { margin-bottom: 0; }
.variant-field-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.variant-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--fg);
  margin: 0;
}
.variant-desc p {
  font-size: 12px;
  line-height: 1.55;
  color: var(--fg);
  margin: 0 0 6px;
}
.variant-desc p:last-child { margin-bottom: 0; }
.variant-bullets {
  margin: 0;
  padding-left: 16px;
}
.variant-bullets li {
  font-size: 12px;
  line-height: 1.45;
  color: var(--fg);
  margin-bottom: 4px;
}
.variant-meta {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

.btn-use-variant {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 8px;
  border-radius: 6px;
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-use-variant:hover { background: var(--accent); color: #fff; }
.btn-use-variant-active { background: var(--accent); color: #fff; }

/* Publish to Shopify button */
.btn-publish {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 6px 8px;
  background: transparent;
  border: 1.5px solid #16a34a;
  border-radius: 6px;
  color: #16a34a;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-publish:hover { background: #f0fdf4; }
.btn-publish:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-publish.publishing { opacity: 0.7; cursor: wait; }

/* Responsive: stack on mobile */
@media (max-width: 800px) {
  .variants-grid { grid-template-columns: 1fr; gap: 8px; }
  .impact-metrics { gap: 12px; }
}
@media (max-width: 600px) {
  .demo-section { padding: 60px 24px; }
  .demo-panel { padding: 20px; }
  .gen-actions { flex-wrap: wrap; gap: 6px; }
}
