/* ═══════════════════════════════════════════════════════
   ThreadTag — Black / Red / White Bold Redesign
   Background: #000000 (pure black)
   Primary text: #FFFFFF
   Accent / CTA: #DC2626 (red)
   Section bg: #111111 (very dark gray)
   Dividers: #222222
   Verdict colors (keep as-is): Green=Authentic, Red=Counterfeit, Amber=Needs Review
   Typography: Bold sans-serif uppercase headers, clean white-on-black body
   ═══════════════════════════════════════════════════════ */

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

:root {
  /* Palette */
  --bg:           #000000;
  --surface:      #111111;
  --surface-2:    #1a1a1a;
  --border:       #222222;
  --text:         #FFFFFF;
  --text-muted:   rgba(255,255,255,0.5);
  --accent:       #DC2626;
  --accent-light: rgba(220,38,38,0.15);
  --accent-dim:   rgba(220,38,38,0.1);
  --green:        #2ea868;
  --green-dim:    rgba(46,168,104,0.10);
  --red:          #dc2626;
  --red-dim:      rgba(220,38,38,0.08);
  --amber:        #d97706;
  --amber-dim:    rgba(217,119,6,0.08);

  /* Typography */
  --font-sans:    'DM Sans', system-ui, sans-serif;
  --font-display: 'DM Sans', system-ui, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

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

/* ── NAV ──────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0,0,0,0.97);
  backdrop-filter: blur(12px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-logo::after {
  content: '';
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
}

.nav-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-tagline {
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-nav-ghost {
  display: inline-block;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.btn-nav-ghost:hover {
  color: var(--text);
  background: var(--surface);
}

.btn-nav-primary {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.2s;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.btn-nav-primary:hover { opacity: 0.85; }

/* ── HERO ─────────────────────────────────────────────── */
.hero {
  padding: 5rem 3rem 4rem;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.0;
  color: var(--text);
  margin-bottom: 1.75rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.btn-primary:hover { opacity: 0.85; }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.5);
  color: var(--text);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}

.hero-stat-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Auth Cards */
.hero-card-stack {
  position: relative;
  height: 440px;
}

.auth-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  width: 290px;
  padding: 1.25rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.3);
}

.auth-card-1 { top: 0; left: 0; z-index: 3; transform: rotate(-2deg); }
.auth-card-2 { top: 60px; left: 55px; z-index: 2; transform: rotate(1deg); }
.auth-card-3 { top: 130px; left: 25px; z-index: 1; transform: rotate(-0.5deg); }

.auth-card:hover {
  transform: rotate(0deg) translateY(-6px) !important;
  z-index: 4;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.auth-card-badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  margin-bottom: 0.875rem;
  text-transform: uppercase;
}

.auth-badge-pass {
  background: rgba(46,168,104,0.15);
  color: var(--green);
  border: 1px solid rgba(46,168,104,0.3);
}

.auth-badge-fail {
  background: var(--red-dim);
  color: var(--red);
  border: 1px solid rgba(220,38,38,0.3);
}

.auth-card-img {
  width: 100%;
  height: 105px;
  border-radius: 8px;
  margin-bottom: 0.875rem;
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  overflow: hidden;
  position: relative;
}

.auth-card-img-inner {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.auth-card-brand {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.auth-card-detail {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.auth-card-score {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.score-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.score-fill { height: 100%; border-radius: 2px; }
.score-fill--pass { background: var(--green); }
.score-fill--warn { background: var(--red); }

.score-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
}

.score-num--warn { color: var(--red); }

.auth-card-sustain {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.sustain-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}

.sustain-dot-warn { background: var(--amber); }

/* ── TRUST STRIP ──────────────────────────────────────── */
.trust-strip {
  padding: 3rem 3rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.trust-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.trust-strip-headline {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-weight: 500;
}

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

.trust-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}

.trust-partner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-partner-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ── SOCIAL PROOF ─────────────────────────────────────── */
.social-proof {
  padding: 5rem 3rem;
  border-bottom: 1px solid var(--border);
}

.social-proof-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.social-proof .section-eyebrow { margin-bottom: 0.75rem; }

.social-proof .section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.social-proof .section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 3rem;
}

.sp-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.sp-logo-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.sp-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
}

.sp-logo-name {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sp-logo-sep {
  width: 1px;
  height: 24px;
  background: var(--border);
}

.sp-testimonials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  text-align: left;
}

.sp-testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.sp-quote {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  font-style: normal;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.sp-attr {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── MANIFESTO ─────────────────────────────────────────── */
.manifesto {
  padding: 5rem 3rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.manifesto-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.manifesto-quote {
  border-left: 3px solid var(--accent);
  padding-left: 2rem;
}

.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  font-style: normal;
  color: var(--text);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.manifesto-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.manifesto-detail {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── PROVENANCE ───────────────────────────────────────── */
.provenance {
  padding: 5rem 3rem;
  border-bottom: 1px solid var(--border);
}

.provenance-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 700;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
}

.provenance-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.prov-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.prov-card:hover {
  border-color: rgba(220,38,38,0.4);
  box-shadow: 0 4px 20px rgba(220,38,38,0.08);
}

.prov-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prov-icon-auth     { background: var(--accent-dim);    color: var(--accent);  }
.prov-icon-condition { background: var(--amber-dim);    color: var(--amber);   }
.prov-icon-impact   { background: var(--green-dim);     color: var(--green);   }

.prov-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.prov-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.prov-score {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
}

.prov-score-val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}

.prov-score-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── PROCESS ───────────────────────────────────────────── */
.process {
  padding: 5rem 3rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.process-header {
  text-align: center;
  margin-bottom: 4rem;
}

.process-steps {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.process-step {
  flex: 1;
  padding: 0 1.5rem;
  position: relative;
}

.process-connector {
  width: 40px;
  flex-shrink: 0;
  height: 1px;
  background: var(--border);
  margin-top: 2rem;
  position: relative;
}

.process-connector::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--text-muted);
  border-top: 1.5px solid var(--text-muted);
  transform: rotate(45deg);
}

.step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.75rem;
  line-height: 1;
}

.step-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.step-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── IMPACT ────────────────────────────────────────────── */
.impact {
  padding: 5rem 3rem;
  border-bottom: 1px solid var(--border);
}

.impact-header {
  text-align: center;
  margin-bottom: 3rem;
}

.impact-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.impact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: box-shadow 0.2s;
}

.impact-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.impact-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.impact-unit {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.impact-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.impact-accent .impact-value { color: var(--accent); }
.impact-accent .impact-unit  { color: var(--accent); }

/* ── PRICING ───────────────────────────────────────────── */
.pricing {
  padding: 5rem 3rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.pricing-header {
  text-align: center;
  margin-bottom: 3rem;
}

.pricing-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.pricing-card--featured {
  border-color: var(--accent);
  border-width: 2px;
  box-shadow: 0 4px 24px rgba(220,38,38,0.15);
  position: relative;
}

.pricing-card--featured::before {
  content: 'Most popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.875rem;
  border-radius: 100px;
}

.pricing-tier {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.pricing-period {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex: 1;
}

.pricing-features li {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-features li::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23DC2626' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.pricing-cta {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, opacity 0.2s;
  box-sizing: border-box;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--surface);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pricing-cta:hover {
  background: var(--surface-2);
  color: var(--text);
}

.pricing-card--featured .pricing-cta {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.pricing-card--featured .pricing-cta:hover { opacity: 0.85; }

/* ── UPLOAD DEMO ───────────────────────────────────────── */
.demo {
  padding: 5rem 3rem;
  border-bottom: 1px solid var(--border);
}

.demo-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.demo-header {
  text-align: center;
  margin-bottom: 3rem;
}

.demo-workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

/* Upload zone */
.demo-upload {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.upload-guides {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.upload-guide-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* Brand picker (scan-intake — used by the landing-page demo partial) */
.demo-brand-pick {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.demo-brand-pick-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.demo-brand-pick-select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: border-color 0.15s;
}
.demo-brand-pick-select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

.upload-zone {
  background: var(--surface);
  border: 1.5px dashed var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  min-height: 240px;
  justify-content: center;
}

.upload-zone:hover,
.upload-zone--drag {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.upload-icon { color: var(--text-muted); margin-bottom: 0.5rem; }

.upload-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.upload-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

.upload-browse {
  color: var(--accent);
  cursor: pointer;
  font-weight: 600;
}

.upload-browse:hover { text-decoration: underline; }

.file-input { display: none; }

.upload-preview {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}

.upload-preview img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.preview-clear {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: background 0.15s;
}

.preview-clear:hover { background: rgba(255,255,255,0.2); }

/* Result panel */
.demo-result {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.result-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.result-placeholder-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--border);
  position: relative;
  animation: pulse-ring 2.5s ease-in-out infinite;
}

.result-placeholder-ring::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.4;
  animation: pulse-ring 2.5s ease-in-out infinite 0.5s;
}

@keyframes pulse-ring {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.result-placeholder-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 200px;
}

/* Loading state */
.result-loading {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loading-label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
}

.loading-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Progress bar during analysis */
.loading-progress-wrap {
  width: 200px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.loading-progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  animation: progress-fill 2s ease-in-out forwards;
}

@keyframes progress-fill {
  0%   { width: 0%; }
  60%  { width: 70%; }
  100% { width: 100%; }
}

.result-filled {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.result-badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  align-self: flex-start;
  text-transform: uppercase;
}

.result-badge--verified     { background: var(--green-dim); color: var(--green); border: 1px solid rgba(46,168,104,0.3); }
.result-badge--flagged      { background: var(--red-dim);   color: var(--red);   border: 1px solid rgba(220,38,38,0.3); }
.result-badge--needs-review { background: var(--amber-dim); color: var(--amber); border: 1px solid rgba(217,119,6,0.3); }

.result-score-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.result-score-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.result-score-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.3, 1);
}

.result-score-fill--pass { background: var(--green); }
.result-score-fill--warn { background: var(--red); }

.result-score-num {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  flex-shrink: 0;
}

.result-score-num--pass { color: var(--green); }
.result-score-num--warn { color: var(--red); }

.result-brand {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
}

.result-reasons {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.result-reasons li {
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding-left: 1rem;
  border-left: 2px solid var(--border);
  line-height: 1.5;
}

.result-actions { margin-top: 0.5rem; }

.result-error {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
}

.error-icon { color: var(--red); margin-bottom: 0.25rem; }

.error-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
}

.error-sub { font-size: 0.8125rem; color: var(--text-muted); }

.btn-analyze-again,
.btn-retry {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-analyze-again:hover,
.btn-retry:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}

/* ── CLOSING ────────────────────────────────────────────── */
.closing {
  padding: 6rem 3rem;
}

.closing-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 5rem;
}

.closing-visual {
  position: relative;
  width: 200px;
  height: 200px;
  flex-shrink: 0;
}

.closing-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.closing-ring-1 {
  width: 200px;
  height: 200px;
  border-color: rgba(220,38,38,0.2);
}

.closing-ring-2 {
  width: 150px;
  height: 150px;
  border-color: rgba(220,38,38,0.3);
}

.closing-ring-3 {
  width: 100px;
  height: 100px;
  border-color: rgba(220,38,38,0.5);
}

.closing-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.closing-center-text {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  color: white;
  letter-spacing: 0.08em;
}

.closing-copy { flex: 1; }

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.closing-body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 1rem;
}

.closing-cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.625rem;
  margin-top: 2rem;
}

.closing-cta-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.closing-trust {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.closing-trust-item { font-size: 0.8125rem; color: var(--text-muted); }

.closing-trust-sep { color: var(--border); }

/* ── FOOTER ────────────────────────────────────────────── */
.footer {
  padding: 2.5rem 3rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  position: relative;
}

.footer-logo::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .pricing-card--featured { order: -1; }
}

@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .nav-tagline { display: none; }
  .hero { padding: 3rem 1.5rem 2.5rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-right { order: -1; }
  .hero-card-stack { height: 300px; }
  .auth-card { width: 220px; }
  .auth-card-2 { left: 30px; }

  .trust-row { gap: 1.25rem; }
  .trust-divider { display: none; }

  .manifesto-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .provenance-grid { grid-template-columns: 1fr; }
  .process-steps { flex-direction: column; gap: 2rem; }
  .process-connector { display: none; }

  .impact-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { max-width: 100%; }
  .pricing-card--featured::before { top: -14px; }

  .demo-workspace { grid-template-columns: 1fr; gap: 1.5rem; }
  .demo { padding: 3rem 1.5rem; }

  .closing-inner { flex-direction: column; gap: 3rem; }
  .footer-top { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; }
  .social-proof { padding: 3rem 1.5rem; }
  .sp-logos { gap: 1rem; }
  .sp-logo-sep { display: none; }
  .sp-testimonials { grid-template-columns: 1fr; }
  .pricing { padding: 3rem 1.5rem; }
  .impact { padding: 3rem 1.5rem; }
}