/* ============================================
   AccessTwin v3 — Marketing Site
   Civic Infrastructure Cooperative
   ============================================ */

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

:root {
  /* Light palette */
  --white: #FFFFFF;
  --off-white: #F7F8FA;
  --light-gray: #E8EBF0;
  --medium-gray: #6B7280;
  --dark-text: #111827;

  /* Dark palette */
  --navy: #192133;
  --navy-light: #1E2940;
  --navy-card: #243350;
  --navy-border: #2D3F5E;

  /* Accent */
  --gold: #C7831A;
  --gold-light: #D4982F;
  --gold-dark: #A86D12;

  /* Functional */
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Sizing */
  --max-width: 1200px;
  --section-pad: 96px 24px;
  --section-pad-sm: 64px 16px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-text);
  background: var(--white);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; }

/* --- Typography --- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

.subhead {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  line-height: 1.5;
  color: var(--medium-gray);
  max-width: 640px;
}

.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Layout --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-pad); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark .subhead { color: rgba(255,255,255,0.6); }
.section-off { background: var(--off-white); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--light-gray);
  transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  box-shadow: 0 1px 12px rgba(0,0,0,0.08);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--medium-gray);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--dark-text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background: var(--gold);
  color: #1A1305 !important;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 6px;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark-text);
  border-radius: 2px;
  transition: transform 0.3s;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--gold);
  color: #1A1305;
}

.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(199, 131, 26, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-outline-light {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--white);
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  padding: 14px 0;
}

.btn-ghost:hover { opacity: 0.8; }

.btn-group { display: flex; gap: 16px; flex-wrap: wrap; }

/* --- Cards --- */
.card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  padding: 32px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.card-dark {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  color: var(--white);
}

.card-dark:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.card-icon-gold { background: rgba(199,131,26,0.12); color: var(--gold); }
.card-icon-navy { background: rgba(25,33,51,0.08); color: var(--navy); }

.card h3 { margin-bottom: 12px; }
.card p { color: var(--medium-gray); line-height: 1.6; }
.card-dark p { color: rgba(255,255,255,0.6); }

/* --- Stats --- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

/* --- Hero --- */
.hero {
  padding: 160px 24px 96px;
  text-align: center;
}

.hero h1 { margin-bottom: 24px; }
.hero .subhead { margin: 0 auto 40px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(199,131,26,0.08);
  border: 1px solid rgba(199,131,26,0.2);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 24px;
}

/* --- Platform Preview --- */
.preview-frame {
  background: var(--navy);
  border-radius: 12px;
  padding: 4px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.15);
}

.preview-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--navy-border);
}

.preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.preview-dot:nth-child(1) { background: #EF4444; }
.preview-dot:nth-child(2) { background: #F59E0B; }
.preview-dot:nth-child(3) { background: #10B981; }

.preview-content {
  padding: 32px;
  min-height: 400px;
  background: var(--navy-light);
  border-radius: 0 0 8px 8px;
}

/* Dashboard mockup */
.mock-dashboard {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  min-height: 360px;
}

.mock-sidebar {
  background: var(--navy);
  border-radius: 8px;
  padding: 16px;
}

.mock-sidebar-item {
  padding: 8px 12px;
  margin-bottom: 4px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

.mock-sidebar-item.active {
  background: var(--navy-card);
  color: var(--gold);
}

.mock-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto 1fr;
  gap: 12px;
}

.mock-kpi {
  background: var(--navy-card);
  border-radius: 8px;
  padding: 16px;
  border: 1px solid var(--navy-border);
}

.mock-kpi-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.mock-kpi-label {
  font-size: 0.625rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mock-map {
  grid-column: span 3;
  background: var(--navy-card);
  border-radius: 8px;
  border: 1px solid var(--navy-border);
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

.mock-map-dots {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, var(--gold) 2px, transparent 2px),
    radial-gradient(circle at 45% 60%, var(--success) 2px, transparent 2px),
    radial-gradient(circle at 70% 25%, var(--danger) 2px, transparent 2px),
    radial-gradient(circle at 35% 80%, var(--gold) 2px, transparent 2px),
    radial-gradient(circle at 80% 70%, var(--success) 2px, transparent 2px),
    radial-gradient(circle at 55% 45%, var(--warning) 2px, transparent 2px),
    radial-gradient(circle at 15% 65%, var(--danger) 2px, transparent 2px),
    radial-gradient(circle at 90% 40%, var(--gold) 2px, transparent 2px),
    radial-gradient(circle at 60% 15%, var(--success) 2px, transparent 2px),
    radial-gradient(circle at 25% 50%, var(--warning) 2px, transparent 2px);
}

/* --- Phone Mockup --- */
.phone-frame {
  width: 280px;
  margin: 0 auto;
  background: var(--navy);
  border-radius: 32px;
  padding: 12px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}

.phone-screen {
  background: var(--navy-light);
  border-radius: 24px;
  overflow: hidden;
  min-height: 500px;
}

.phone-status-bar {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px 8px;
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.6);
}

.phone-header {
  padding: 8px 20px 16px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
}

.phone-field {
  margin: 0 16px 8px;
  padding: 12px;
  background: var(--navy-card);
  border-radius: 8px;
  border: 1px solid var(--navy-border);
}

.phone-field-label {
  font-size: 0.625rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.phone-field-value {
  font-size: 0.8125rem;
  color: var(--white);
}

/* --- Process/Steps --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--light-gray);
}

.section-dark .process-steps::before {
  background: var(--navy-border);
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
}

.step h4 { margin-bottom: 8px; }
.step p { font-size: 0.875rem; color: var(--medium-gray); }
.section-dark .step p { color: rgba(255,255,255,0.5); }

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .label {
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}

.section-header h2 { margin-bottom: 16px; }
.section-header .subhead { margin: 0 auto; }

/* --- Audience Cards --- */
.audience-card {
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--light-gray);
  background: var(--white);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.audience-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}

.audience-card h3 { margin: 20px 0 12px; }
.audience-card p { color: var(--medium-gray); flex: 1; margin-bottom: 24px; }

.audience-card .btn-ghost {
  align-self: flex-start;
  font-size: 0.875rem;
  padding: 0;
}

/* --- Form --- */
.form-group { margin-bottom: 24px; }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark-text);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 0.9375rem;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  background: var(--white);
  color: var(--dark-text);
  transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(199,131,26,0.1);
}

.form-textarea { min-height: 120px; resize: vertical; }

/* --- Footer --- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 64px 24px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--navy-border);
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

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

.footer h4 {
  color: var(--white);
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer a { font-size: 0.875rem; transition: color 0.2s; }
.footer a:hover { color: var(--white); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
}

/* --- Divider --- */
.divider-angle {
  height: 80px;
  margin-top: -1px;
  position: relative;
}

.divider-angle svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* --- Page Header (sub-pages) --- */
.page-header {
  padding: 140px 24px 64px;
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

.page-header .subhead { color: rgba(255,255,255,0.6); margin: 16px auto 0; }

/* --- Feature Row --- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
}

.feature-row:nth-child(even) { direction: rtl; }
.feature-row:nth-child(even) > * { direction: ltr; }

.feature-row .label { color: var(--gold); margin-bottom: 12px; display: block; }
.feature-row h3 { margin-bottom: 16px; }
.feature-row p { color: var(--medium-gray); margin-bottom: 24px; }

.feature-list {
  list-style: none;
}

.feature-list li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: var(--medium-gray);
  font-size: 0.9375rem;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(199,131,26,0.12);
  border: 2px solid var(--gold);
}

/* --- Table --- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.data-table th {
  text-align: left;
  padding: 14px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--medium-gray);
  border-bottom: 2px solid var(--light-gray);
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--light-gray);
}

.section-dark .data-table th { color: rgba(255,255,255,0.4); border-color: var(--navy-border); }
.section-dark .data-table td { border-color: var(--navy-border); color: rgba(255,255,255,0.8); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .process-steps { grid-template-columns: repeat(3, 1fr); }
  .process-steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: var(--section-pad-sm); }
  .hero { padding: 120px 16px 64px; }
  .grid-2, .grid-3, .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row:nth-child(even) { direction: ltr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr; gap: 16px; }
  .mock-dashboard { grid-template-columns: 1fr; }
  .mock-sidebar { display: none; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    border-bottom: 1px solid var(--light-gray);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .page-header { padding: 120px 16px 48px; }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; }
  .btn-group .btn { width: 100%; justify-content: center; }
}

/* --- Legal Content --- */
.legal-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin: 36px 0 12px;
}
.legal-content h3:first-child { margin-top: 0; }
.legal-content p {
  color: var(--dark-gray);
  line-height: 1.8;
  margin-bottom: 16px;
}
.legal-content a { text-decoration: underline; }

/* ── Accessibility (WCAG 2.1 AA) ── */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 2px;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--gold); color: #15110a; padding: 10px 16px; font-weight: 700; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ── Contrast fixes (WCAG 2.1 AA, 4.5:1) ──
   Brand gold (#C7831A) only reaches 3.13:1 on white, so gold-as-TEXT on light
   surfaces uses a darker amber ink. Decorative gold (fills, borders, gold-on-dark)
   is unchanged. Mockup "illustration" labels get more opacity / lighter ink. */
:root { --gold-ink: #8a5512; }                 /* 6.2:1 on white, 5.8:1 on cream */
.hero-badge, .btn-ghost { color: var(--gold-ink); }
[style*="color:var(--gold)"] { color: var(--gold-ink) !important; }   /* inline gold label eyebrows on light */
.section-header .label, .feature-row .label { color: var(--gold-ink); }
/* mockup dark-panel labels: 40% white → ~72% for 4.5:1 on #243350 */
.mock-kpi-label, .phone-field-label { color: rgba(255,255,255,0.72); }
/* Phone mockup field values sit on the dark panel (#243350): semantic colors need
   BRIGHT tints, not the light-bg inks. Higher specificity than the global ink rules. */
.phone-field-value[style*="color:var(--success)"], .phone-field-value[style*="color: var(--success)"] { color: #34d399 !important; }
.phone-field-value[style*="color:var(--warning)"], .phone-field-value[style*="color: var(--warning)"] { color: #fbbf24 !important; }
.phone-field-value[style*="color:var(--danger)"],  .phone-field-value[style*="color: var(--danger)"],
.phone-field-value[style*="danger"] { color: #ff8a8a !important; }
/* gold sash: dark ink on gold fill instead of white */
[style*="background:var(--gold)"] { color: #1A1305 !important; }

/* Semantic status colors as TEXT on light surfaces fail 4.5:1 (green 2.53, amber
   2.14, red 3.76). Use darker "ink" variants for text; keep bright originals as fills. */
[style*="color:var(--success)"] { color: #0b7a47 !important; }   /* 5.4:1 on white */
[style*="color:var(--warning)"] { color: #8a5512 !important; }   /* 6.2:1 on white */
[style*="color:var(--danger)"]:not(.phone-field-value) { color: #c62828 !important; }  /* 5.6:1 on white */
/* Semantic colors as FILL behind white text: darken so white stays readable */
[style*="background:var(--danger)"]  { background: #b3261e !important; }   /* white 6.5:1 */
[style*="background:var(--success)"] { background: #0b7a47 !important; }   /* white 5.4:1 */
[style*="background:var(--warning)"] { background: #8a5512 !important; }   /* white 6.2:1 */

/* Dark mockups (preview dashboards) invert the rule: the SAME inline colors now sit
   on a dark panel, where the light-bg inks fail. Restore bright accessible tints. */
.preview-frame [style*="color:var(--gold)"],    .preview-content [style*="color:var(--gold)"]    { color: #e0a43a !important; }  /* gold on dark 6.5:1 */
.preview-frame [style*="color:var(--success)"], .preview-content [style*="color:var(--success)"] { color: #34d399 !important; }
.preview-frame [style*="color:var(--danger)"],  .preview-content [style*="color:var(--danger)"]  { color: #f87171 !important; }
.preview-frame [style*="color:var(--warning)"], .preview-content [style*="color:var(--warning)"] { color: #fbbf24 !important; }
/* dark mockup title-bar captions (muted rgba on #192133) → lighten */
.preview-bar span { color: rgba(255,255,255,0.72) !important; }
/* inline 40%-white muted captions on dark panels → 72% for 4.5:1 */
[style*="color:rgba(255,255,255,0.4)"] { color: rgba(255,255,255,0.72) !important; }

/* Nav: make the bar a solid white surface so text contrast is deterministic
   (the translucent bg let light page-headers bleed through and drop links to 4.39).
   Links #6B7280 on #fff = 4.83:1 ✓. Gold wordmark fails on white → ink. */
.nav { background: #fff; }
.nav-brand span { color: var(--gold-ink); }

/* Some inline styles use a space after the colon ("color: var(--gold)"); attribute
   selectors are literal, so mirror every rule above for the spaced form. */
[style*="color: var(--gold)"] { color: var(--gold-ink) !important; }
[style*="color: var(--success)"] { color: #0b7a47 !important; }
[style*="color: var(--warning)"] { color: #8a5512 !important; }
[style*="color: var(--danger)"]:not(.phone-field-value) { color: #c62828 !important; }
[style*="background: var(--danger)"]  { background: #b3261e !important; }
[style*="background: var(--success)"] { background: #0b7a47 !important; }
[style*="background: var(--warning)"] { background: #8a5512 !important; }
[style*="background: var(--gold)"] { color: #1A1305 !important; }
.preview-frame [style*="color: var(--gold)"],    .preview-content [style*="color: var(--gold)"]    { color: #e0a43a !important; }
.preview-frame [style*="color: var(--success)"], .preview-content [style*="color: var(--success)"] { color: #34d399 !important; }
.preview-frame [style*="color: var(--danger)"],  .preview-content [style*="color: var(--danger)"]  { color: #f87171 !important; }
.preview-frame [style*="color: var(--warning)"], .preview-content [style*="color: var(--warning)"] { color: #fbbf24 !important; }
[style*="color: rgba(255,255,255,0.4)"] { color: rgba(255,255,255,0.72) !important; }
[style*="color: rgba(255, 255, 255, 0.4)"] { color: rgba(255,255,255,0.72) !important; }
