/**
 * Landing.lt semantic color system
 *
 * Use roles, not raw colors, in new UI. Existing page-specific styles are
 * normalized below so the whole LT/EN site follows the same color contract.
 */

:root {
  color-scheme: light;

  /* Brand and interaction */
  --landing-color-brand-accent: #f97316;
  --landing-color-brand-orange: var(--landing-color-brand-accent);
  --landing-color-action: #c2410c;
  --landing-color-action-hover: #9a3412;
  --landing-color-link: var(--landing-color-action);
  --landing-color-link-hover: var(--landing-color-action-hover);
  --landing-color-focus: var(--landing-color-action);

  /* Blue is a supportive brand accent for explicitly assigned links and icons. */
  --landing-color-decorative-blue: #2563eb;
  --landing-color-brand-blue: var(--landing-color-decorative-blue);
  --landing-color-decorative-blue-dark: #1d4ed8;
  --landing-color-link-linkedin: var(--landing-color-decorative-blue);
  --landing-color-link-linkedin-hover: var(--landing-color-decorative-blue-dark);
  --landing-color-icon-emphasis: var(--landing-color-decorative-blue-dark);
  --landing-color-icon-emphasis-surface: #dbeafe;

  /* Brand decoration stays bright; functional gradients use darker controls. */
  --landing-gradient-brand: linear-gradient(
    to right,
    var(--landing-color-brand-accent),
    var(--landing-color-decorative-blue)
  );
  --landing-gradient-control: linear-gradient(
    to right,
    var(--landing-color-action),
    var(--landing-color-decorative-blue)
  );
  --landing-gradient-control-hover: linear-gradient(
    to right,
    var(--landing-color-action-hover),
    var(--landing-color-decorative-blue-dark)
  );
  --landing-gradient-hero: linear-gradient(
    135deg,
    var(--landing-color-surface-warm) 0%,
    var(--landing-color-surface) 52%,
    var(--landing-color-surface-cool) 100%
  );
  --landing-gradient-editorial-dark: linear-gradient(
    135deg,
    var(--landing-color-surface-dark-strong) 0%,
    var(--landing-color-surface-dark) 100%
  );
  --landing-gradient-accent-split: linear-gradient(
    90deg,
    var(--landing-color-brand-accent) 0 50%,
    var(--landing-color-decorative-blue) 50% 100%
  );

  /* Text */
  --landing-color-text-heading: #0f172a;
  --landing-color-text-body: #475569;
  --landing-color-text-muted: #64748b;
  --landing-color-text-on-dark: #ffffff;
  --landing-color-text-on-action: var(--landing-color-text-on-dark);
  --landing-color-text-on-dark-muted: #d1d5db;
  --landing-color-text-on-dark-accent: var(--landing-color-border-warm);

  /* Surfaces and borders */
  --landing-color-surface: #ffffff;
  --landing-color-surface-muted: #f8fafc;
  --landing-color-surface-warm: #fff7ed;
  --landing-color-surface-label: #ffedd5;
  --landing-color-surface-cool: #eff6ff;
  --landing-color-surface-editorial: #f5f1e9;
  --landing-color-surface-dark-strong: var(--landing-color-text-heading);
  --landing-color-surface-dark: #1e293b;
  --landing-color-border: #e2e8f0;
  --landing-color-border-warm: #fed7aa;
  --landing-color-control-border: #64748b;
  --landing-color-border-control: var(--landing-color-control-border);

  /* Approved transparent derivatives and elevation recipes. */
  --landing-color-grid-line: rgba(15, 23, 42, 0.06);
  --landing-color-shadow-subtle: rgba(15, 23, 42, 0.06);
  --landing-color-shadow-card: rgba(15, 23, 42, 0.1);
  --landing-color-shadow-elevated: rgba(15, 23, 42, 0.16);
  --landing-color-overlay: rgba(15, 23, 42, 0.58);
  --landing-color-brand-glow: rgba(249, 115, 22, 0.14);
  --landing-color-action-ring: rgba(194, 65, 12, 0.2);
  --landing-color-focus-ring: var(--landing-color-action-ring);
  --landing-color-blue-ring: rgba(37, 99, 235, 0.2);
  --landing-color-surface-transparent: rgba(255, 255, 255, 0);
  --landing-color-surface-highlight: rgba(255, 255, 255, 0.45);
  --landing-color-surface-image-wash: rgba(255, 255, 255, 0.62);
  --landing-color-surface-glass: rgba(255, 255, 255, 0.96);
  --landing-color-border-on-dark: rgba(255, 255, 255, 0.35);
  --landing-shadow-subtle: 0 1px 2px var(--landing-color-shadow-subtle);
  --landing-shadow-card: 0 8px 20px var(--landing-color-shadow-card);
  --landing-shadow-elevated: 0 18px 40px var(--landing-color-shadow-elevated);
  --landing-shadow-control: 0 8px 20px var(--landing-color-shadow-card);
  --landing-shadow-panel: var(--landing-shadow-elevated);
  --landing-shadow-modal: var(--landing-shadow-elevated);

  /* Functional states */
  --landing-color-success: #166534;
  --landing-color-success-surface: #f0fdf4;
  --landing-color-success-soft: var(--landing-color-success-surface);
  --landing-color-success-border: #86efac;
  --landing-color-error: #991b1b;
  --landing-color-error-surface: #fef2f2;
  --landing-color-error-soft: var(--landing-color-error-surface);
  --landing-color-error-border: #fecaca;
}

/* Semantic utility roles for current and future markup. */
.text-role-heading { color: var(--landing-color-text-heading); }
.text-role-body { color: var(--landing-color-text-body); }
.text-role-muted { color: var(--landing-color-text-muted); }
.link-role-inline {
  color: var(--landing-color-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link-role-inline:hover { color: var(--landing-color-link-hover); }
.button-role-primary {
  border-color: var(--landing-color-action);
  color: var(--landing-color-text-on-dark);
  background: var(--landing-color-action);
}
.button-role-primary:hover {
  border-color: var(--landing-color-action-hover);
  color: var(--landing-color-text-on-dark);
  background: var(--landing-color-action-hover);
}
.surface-role-default { background: var(--landing-color-surface); }
.surface-role-muted { background: var(--landing-color-surface-muted); }
.surface-role-warm { background: var(--landing-color-surface-warm); }
.surface-role-cool { background: var(--landing-color-surface-cool); }

/* Shared typography mapping. */
body { color: var(--landing-color-text-body); }

h1,
h2,
h3,
h4,
h5,
h6,
.hero-title,
.quality-title,
.section-head h2,
.policy-card h1,
.policy-card h2,
.policy-card h3 {
  color: var(--landing-color-text-heading);
}

.text-gray-900,
.text-slate-900,
.text-card-foreground { color: var(--landing-color-text-heading); }

.text-gray-700,
.text-slate-700,
.text-gray-600,
.text-slate-600,
.hero-sub,
.quality-text,
.section-head p,
.price-copy { color: var(--landing-color-text-body); }

.text-gray-500,
.text-slate-500,
.text-gray-400,
.text-slate-400 { color: var(--landing-color-text-muted); }

/* Normalize generated utility classes to the documented neutral roles. */
.text-gray-800,
.text-slate-800 { color: var(--landing-color-text-heading); }

.border-gray-100,
.border-gray-200,
.border-slate-100,
.border-slate-200 { border-color: var(--landing-color-border); }

.border-gray-300,
.border-slate-300 { border-color: var(--landing-color-control-border); }

.bg-gray-50,
.bg-gray-100,
.bg-slate-50,
.bg-slate-100 { background-color: var(--landing-color-surface-muted); }

/* Small orange labels use the accessible dark orange action color. */
.hero-label,
.section-label,
.quality-num,
.insights-eyebrow,
.text-orange-500,
.text-orange-600,
.text-orange-700 {
  color: var(--landing-color-action);
}

.hover\:text-orange-500:hover,
.hover\:text-orange-600:hover,
.hover\:text-orange-700:hover,
.group:hover .group-hover\:text-orange-600 {
  color: var(--landing-color-action-hover);
}

.hero-label,
.section-label,
.quality-num,
.bg-orange-50,
.bg-orange-100 {
  background-color: var(--landing-color-surface-warm);
}

/* Hero and section labels need a stronger warm surface than supporting cards. */
.hero-label,
.section-label,
.bg-orange-100.text-orange-700 {
  background-color: var(--landing-color-surface-label);
}

/* Purple and decorative green are consolidated into the decorative brand blue. */
.text-purple-500,
.text-purple-600,
.text-purple-700,
.text-green-500,
.text-green-600,
.text-green-700 { color: var(--landing-color-decorative-blue); }

.bg-purple-500,
.bg-purple-600,
.bg-green-500,
.bg-green-600,
.bg-blue-500 { background-color: var(--landing-color-decorative-blue); }

.text-blue-500 { color: var(--landing-color-decorative-blue); }

/* Homepage service icons share one blue decorative treatment. */
.service-card-icon--blue {
  background-color: var(--landing-color-surface-cool);
}

.service-card-icon--blue svg {
  color: var(--landing-color-decorative-blue);
}

.bg-purple-50,
.bg-purple-100,
.bg-green-50,
.bg-green-100,
.bg-blue-50,
.bg-blue-100 { background-color: var(--landing-color-surface-cool); }

.border-purple-100,
.border-purple-200,
.border-green-100,
.border-green-200,
.border-blue-100,
.border-blue-200 {
  border-color: var(--landing-color-border);
}

/* Repeated component accents inherit the same readable orange text role. */
.hero-check-dot,
.about-list-dot,
.kaina-level-dot,
.benefit-check,
.offer-proof-icon,
.price-amount,
.price-row-total span,
.insights-hub-kicker,
.insights-hub-cta .insights-hub-kicker,
.contact-step__number {
  color: var(--landing-color-action);
}

.funnel-bar-2,
.funnel-bar-4,
.service-badge {
  color: var(--landing-color-text-on-dark);
  background: var(--landing-color-action);
}

.service-badge {
  border-color: var(--landing-color-border-on-dark);
}

/* Static process steps share one quiet treatment; no step is "active". */
.process-step-icon {
  border: 1px solid var(--landing-color-border-warm);
  color: var(--landing-color-action);
  background: var(--landing-color-surface-warm);
  box-shadow: var(--landing-shadow-card);
}

.process-step-icon svg {
  color: inherit;
}

.project-type-subtitle,
.selected-service-empty,
.campaign-path-label,
.campaign-path-caption,
.campaign-path--generic .campaign-path-step:last-child,
.inquiry-anatomy figcaption,
.inquiry-system-track span {
  color: var(--landing-color-text-body);
}

/* Preserve the existing motion while keeping animated text in the same role. */
@keyframes qualityNum {
  0%,
  16%,
  100% {
    color: var(--landing-color-action);
    background: var(--landing-color-surface-warm);
  }

  4%,
  10% {
    color: var(--landing-color-action);
    background: var(--landing-color-surface-label);
  }
}

/* Global navigation: orange marks the current state, not regular inline links. */
.header-menu-link,
.header-menu-link-anchor,
.header-center-link { color: var(--landing-color-text-body); }

.header-menu-group-title,
.header-menu-group-title-sections,
.lang-option,
.menu-lang-switch a { color: var(--landing-color-text-muted); }

.header-menu-link:hover,
.header-menu-link[aria-current="page"],
.header-center-link:hover,
.menu-lang-switch a:hover {
  color: var(--landing-color-action);
  background-color: var(--landing-color-surface-warm);
}

.lang-option.is-active,
.menu-lang-switch a.is-active { color: var(--landing-color-text-heading); }

.header-menu-sections { background: var(--landing-color-surface-muted); }

.banner .proof { color: var(--landing-color-text-body); }

/* The standalone 300x600 creative follows the same brand contract. */
.banner {
  border-color: var(--landing-color-border);
  color: var(--landing-color-text-heading);
  background: var(--landing-gradient-hero);
}

.banner .accent { background: var(--landing-gradient-accent-split); }

.banner .mark {
  color: var(--landing-color-text-on-dark);
  background: var(--landing-gradient-brand);
  box-shadow: 0 8px 18px var(--landing-color-blue-ring);
}

.banner .eyebrow {
  color: var(--landing-color-action);
  background: var(--landing-color-surface-label);
}

.banner .cta { box-shadow: 0 10px 24px var(--landing-color-action-ring); }

/* Shared brand marks use the same approved orange-to-blue signature. */
header a > .bg-gradient-to-r.from-orange-500.to-blue-500,
footer .bg-orange-500 {
  background-color: transparent;
  background-image: var(--landing-gradient-brand);
}

/* The menu toggle is a control, so both gradient endpoints remain readable. */
#header-menu-toggle {
  background-color: var(--landing-color-action);
  background-image: var(--landing-gradient-control);
}

#header-menu-toggle:hover,
#header-menu-toggle:active,
#header-menu-toggle[aria-expanded="true"] {
  background-color: var(--landing-color-action-hover);
  background-image: var(--landing-gradient-control-hover);
}

.header-menu-link-external::after,
.header-menu-link-anchor[aria-current="page"]::before,
.faq-item[open] summary::after,
.service-list li::before,
.price-row-total .price-amount,
.feature-info:hover,
.feature-info.is-active {
  color: var(--landing-color-action);
}

/* Repeated informational card icons share one calm blue visual role. */
.service-icon {
  color: var(--landing-color-icon-emphasis);
  background: var(--landing-color-icon-emphasis-surface);
}

.calculator-project-type:checked + .project-type-content,
.calculator-project-type:checked + .project-type-content .project-type-radio,
.calculator-option:checked + .config-option-content,
.calculator-option:checked + .config-option-content .config-option-check,
.feature-info:hover,
.feature-info.is-active {
  border-color: var(--landing-color-action);
}

.calculator-project-type:checked + .project-type-content .project-type-radio::after,
.calculator-option:checked + .config-option-content .config-option-check {
  background: var(--landing-color-action);
}

.calculator-project-type:focus-visible + .project-type-content,
.calculator-option:focus-visible + .config-option-content,
.feature-info:focus-visible {
  outline-color: var(--landing-color-focus);
}

/* Homepage contact methods use explicit, order-independent themes. */
.contact-cta-card--phone {
  background-color: var(--landing-color-surface-warm);
}

.contact-cta-card--phone .contact-cta-card__icon {
  color: var(--landing-color-text-on-dark);
  background-color: var(--landing-color-action);
}

.contact-cta-card--email {
  background-color: var(--landing-color-surface-cool);
}

.contact-cta-card--email .contact-cta-card__icon {
  color: var(--landing-color-text-on-dark);
  background-color: var(--landing-color-decorative-blue);
}

/* Functional white icons use high-contrast semantic colors. */
.contact-direct-link__icon {
  color: var(--landing-color-text-on-dark);
  background-color: var(--landing-color-action);
}

.contact-direct-link[href*="linkedin.com"] .contact-direct-link__icon {
  background-color: var(--landing-color-decorative-blue);
}

/* Primary conversion actions. Repeated slate card actions stay secondary. */
button.bg-orange-500,
a.bg-orange-500,
.banner .cta,
.contact-modal__submit,
.quote-submit-btn,
.insights-button-primary,
.insights-hub-button-primary,
.final-cta-btn.bg-orange-500,
.native-primary-action,
.measurement-primary-action,
.mistakes-primary-action,
.inquiry-primary-action,
.campaign-primary-action,
.choice-primary-action,
.search-primary-action,
.insights-editorial-hero-actions [data-proposal-modal-open],
.insights-editorial-mid-cta [data-proposal-modal-open],
.insights-editorial-final-cta [data-proposal-modal-open] {
  border-color: var(--landing-color-action);
  color: var(--landing-color-text-on-dark);
  background: var(--landing-color-action);
  background-image: none;
}

button.bg-orange-500:hover,
a.bg-orange-500:hover,
.banner .cta:hover,
.contact-modal__submit:hover,
.quote-submit-btn:hover,
.insights-button-primary:hover,
.insights-hub-button-primary:hover,
.final-cta-btn.bg-orange-500:hover,
.native-primary-action:hover,
.measurement-primary-action:hover,
.mistakes-primary-action:hover,
.inquiry-primary-action:hover,
.campaign-primary-action:hover,
.choice-primary-action:hover,
.search-primary-action:hover,
.insights-editorial-hero-actions [data-proposal-modal-open]:hover,
.insights-editorial-mid-cta [data-proposal-modal-open]:hover,
.insights-editorial-final-cta [data-proposal-modal-open]:hover {
  border-color: var(--landing-color-action-hover);
  color: var(--landing-color-text-on-dark);
  background: var(--landing-color-action-hover);
  background-image: none;
}

/* Inline links use the shared dark-orange interaction family. */
.contact-form__privacy a,
.contact-modal__privacy a,
#homepage-contact-form label a,
form a[href$="privatumo-politika.html"],
form a[href$="privacy-policy.html"],
.price-link,
.subtle-link a,
.insights-hub-text-link,
.insights-hub-goal a,
.insights-card-link,
.policy-card a,
.insights-editorial-content a:not([data-proposal-modal-open]):not([class*="primary-action"]),
.content-link-role {
  color: var(--landing-color-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-form__privacy a:hover,
.contact-modal__privacy a:hover,
#homepage-contact-form label a:hover,
form a[href$="privatumo-politika.html"]:hover,
form a[href$="privacy-policy.html"]:hover,
.price-link:hover,
.subtle-link a:hover,
.insights-hub-text-link:hover,
.insights-hub-goal a:hover,
.insights-card-link:hover,
.policy-card a:hover,
.insights-editorial-content a:not([data-proposal-modal-open]):not([class*="primary-action"]):hover,
.content-link-role:hover { color: var(--landing-color-link-hover); }

/* LinkedIn is the only branded text-link exception on the homepages. */
.contact-person-linkedin {
  color: var(--landing-color-link-linkedin);
}

.contact-person-linkedin:hover {
  color: var(--landing-color-link-linkedin-hover);
}

/* Article navigation and body links use the same orange interaction family. */
.insights-breadcrumb { color: var(--landing-color-text-muted); }
.insights-breadcrumb a,
.insights-editorial-toc a:hover,
.insights-editorial-toc a.is-active,
.insights-editorial-mobile-toc a:hover,
.insights-editorial-mobile-toc a.is-active {
  color: var(--landing-color-action) !important;
}

.insights-editorial-toc a,
.insights-editorial-mobile-toc a,
.insights-editorial-toc-title { color: var(--landing-color-text-muted); }

.insights-editorial-content,
.insights-editorial-hero-copy,
.insights-editorial-hero-visual figcaption { color: var(--landing-color-text-body); }

.insights-editorial-content h2,
.insights-editorial-content h3,
.insights-editorial-content h4 { color: var(--landing-color-text-heading); }

.insights-editorial-final-cta { background: var(--landing-color-surface-editorial); }

/* Explicit exceptions for text placed on dark editorial surfaces. */
.mistakes-comparison-table th:last-child,
.mistakes-technical-strip strong,
.search-summary strong,
.search-summary em {
  color: var(--landing-color-text-on-dark);
}

/* The generated 404 page owns a light/dark error surface and must inherit it. */
.next-error-h1,
.next-error-h1 + div h2 {
  color: var(--landing-color-text-heading) !important;
}

/* Normalize article-local token names to the shared palette. */
.native-article {
  --native-ink: var(--landing-color-text-heading);
  --native-ink-soft: var(--landing-color-surface-dark);
  --native-copy: var(--landing-color-text-body);
  --native-muted: var(--landing-color-text-muted);
  --native-orange: var(--landing-color-brand-accent);
  --native-orange-dark: var(--landing-color-action);
  --native-blue: var(--landing-color-decorative-blue);
  --native-blue-dark: var(--landing-color-decorative-blue-dark);
  --native-soft: var(--landing-color-surface-muted);
  --native-line: var(--landing-color-border);
}

.measurement-article {
  --measurement-ink: var(--landing-color-text-heading);
  --measurement-ink-soft: var(--landing-color-surface-dark);
  --measurement-copy: var(--landing-color-text-body);
  --measurement-muted: var(--landing-color-text-muted);
  --measurement-orange: var(--landing-color-brand-accent);
  --measurement-orange-dark: var(--landing-color-action);
  --measurement-blue: var(--landing-color-decorative-blue);
  --measurement-blue-dark: var(--landing-color-decorative-blue-dark);
  --measurement-soft: var(--landing-color-surface-muted);
  --measurement-line: var(--landing-color-border);
}

.mistakes-article {
  --mistakes-ink: var(--landing-color-text-heading);
  --mistakes-ink-soft: var(--landing-color-surface-dark);
  --mistakes-copy: var(--landing-color-text-body);
  --mistakes-muted: var(--landing-color-text-muted);
  --mistakes-orange: var(--landing-color-brand-accent);
  --mistakes-orange-dark: var(--landing-color-action);
  --mistakes-blue: var(--landing-color-decorative-blue);
  --mistakes-blue-dark: var(--landing-color-decorative-blue-dark);
  --mistakes-soft: var(--landing-color-surface-muted);
  --mistakes-line: var(--landing-color-border);
}

.inquiry-article {
  --inquiry-navy: var(--landing-color-text-heading);
  --inquiry-navy-soft: var(--landing-color-surface-dark);
  --inquiry-copy: var(--landing-color-text-body);
  --inquiry-muted: var(--landing-color-text-muted);
  --inquiry-orange: var(--landing-color-brand-accent);
  --inquiry-orange-dark: var(--landing-color-action);
  --inquiry-blue: var(--landing-color-decorative-blue);
  --inquiry-soft: var(--landing-color-surface-muted);
  --inquiry-line: var(--landing-color-border);
}

.campaign-article {
  --campaign-navy: var(--landing-color-text-heading);
  --campaign-navy-soft: var(--landing-color-surface-dark);
  --campaign-copy: var(--landing-color-text-body);
  --campaign-orange: var(--landing-color-brand-accent);
  --campaign-orange-dark: var(--landing-color-action);
  --campaign-blue: var(--landing-color-decorative-blue);
  --campaign-soft: var(--landing-color-surface-muted);
  --campaign-line: var(--landing-color-border);
}

.choice-article {
  --choice-navy: var(--landing-color-text-heading);
  --choice-navy-soft: var(--landing-color-surface-dark);
  --choice-copy: var(--landing-color-text-body);
  --choice-orange: var(--landing-color-brand-accent);
  --choice-orange-dark: var(--landing-color-action);
  --choice-blue: var(--landing-color-decorative-blue);
  --choice-soft: var(--landing-color-surface-muted);
  --choice-line: var(--landing-color-border);
}

.search-article {
  --search-ink: var(--landing-color-text-heading);
  --search-ink-soft: var(--landing-color-surface-dark);
  --search-copy: var(--landing-color-text-body);
  --search-muted: var(--landing-color-text-muted);
  --search-orange: var(--landing-color-brand-accent);
  --search-orange-dark: var(--landing-color-action);
  --search-blue: var(--landing-color-decorative-blue);
  --search-blue-dark: var(--landing-color-decorative-blue-dark);
  --search-soft: var(--landing-color-surface-muted);
  --search-line: var(--landing-color-border);
}

/* Forms: readable placeholders, visible boundaries, and shared state colors. */
input::placeholder,
textarea::placeholder,
.contact-form input::placeholder,
.contact-form textarea::placeholder,
.contact-modal__field input::placeholder,
.contact-modal__field textarea::placeholder,
.quote-form input::placeholder,
.quote-form textarea::placeholder {
  color: var(--landing-color-text-muted);
  opacity: 1;
}

.contact-form label,
.contact-modal__field label,
.quote-form label { color: var(--landing-color-text-body); }

#homepage-contact-form input:not([type="checkbox"]),
#homepage-contact-form textarea,
.contact-form input:not([type="checkbox"]),
.contact-form textarea,
.contact-form select,
.contact-modal__field input,
.contact-modal__field textarea,
.quote-form input:not([type="checkbox"]),
.quote-form textarea,
.quote-form select {
  border-color: var(--landing-color-control-border);
  color: var(--landing-color-text-heading);
  background-color: var(--landing-color-surface);
}

#homepage-contact-form input:not([type="checkbox"]):focus,
#homepage-contact-form textarea:focus,
.contact-form input:not([type="checkbox"]):focus,
.contact-form textarea:focus,
.contact-form select:focus,
.contact-modal__field input:focus,
.contact-modal__field textarea:focus,
.quote-form input:not([type="checkbox"]):focus,
.quote-form textarea:focus,
.quote-form select:focus {
  outline: 2px solid var(--landing-color-focus);
  outline-offset: 2px;
  border-color: var(--landing-color-focus);
  box-shadow: none;
}

input[type="checkbox"] { accent-color: var(--landing-color-action); }

[data-lead-form-status],
.contact-modal__status.is-success,
.quote-status.is-success {
  border-color: var(--landing-color-success-border);
  color: var(--landing-color-success);
  background: var(--landing-color-success-surface);
}

[data-lead-form-status].text-red-700,
.contact-modal__status.is-error,
.quote-status.is-error {
  border-color: var(--landing-color-error-border);
  color: var(--landing-color-error);
  background: var(--landing-color-error-surface);
}

/* One high-contrast, two-color focus treatment works on every site surface. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--landing-color-focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--landing-color-surface);
}

/* Override article-local blue focus rings without recoloring their illustrations. */
.native-article a:focus-visible,
.native-article summary:focus-visible,
.native-article [tabindex]:focus-visible,
.measurement-article a:focus-visible,
.measurement-article summary:focus-visible,
.measurement-article [tabindex]:focus-visible,
.mistakes-article a:focus-visible,
.mistakes-article summary:focus-visible,
.mistakes-article [tabindex]:focus-visible,
.inquiry-article a:focus-visible,
.inquiry-article summary:focus-visible,
.inquiry-article [tabindex]:focus-visible,
.campaign-article a:focus-visible,
.campaign-article summary:focus-visible,
.campaign-article [tabindex]:focus-visible,
.choice-article a:focus-visible,
.choice-article [tabindex]:focus-visible,
.search-article a:focus-visible,
.search-article summary:focus-visible,
.search-article [tabindex]:focus-visible {
  outline-color: var(--landing-color-focus);
}

/* Keep dark surfaces readable and independent from the light-page link color. */
footer,
.bg-slate-800 { background-color: var(--landing-color-surface-dark); }

footer,
footer p,
footer a,
.bg-slate-800,
.bg-slate-800 p,
.bg-slate-800 a { color: var(--landing-color-text-on-dark-muted); }

footer .text-white,
.bg-slate-800 .text-white { color: var(--landing-color-text-on-dark); }

footer a,
.bg-slate-800 a {
  text-decoration: none;
}

@media (forced-colors: active) {
  a,
  button,
  input,
  textarea,
  select,
  summary { forced-color-adjust: auto; }
}
