/* Brand color roles: saturated orange for brand accents, burnt orange for large CTA panels,
   and contrast-adjusted shades only when orange is used as small text. */
:root {
  --brand-orange: #FF5A1F;
  --brand-orange-rgb: 255, 90, 31;
  --brand-orange-panel: #A63B20;
  --brand-orange-panel-rgb: 166, 59, 32;
  --brand-orange-text-light: #AC350B;
  --brand-orange-text-dark: #FF8B60;
  --brand-orange-ink: #0B0B0D;
  --accent: var(--brand-orange);
  --accent-dark: var(--brand-orange);
  --accent-panel: var(--brand-orange-panel);
  --text-muted: #68686C;
  --text-muted-on-dark: #C2C2C5;
  --text-accent: var(--brand-orange-text-light);
  --text-accent-on-dark: var(--brand-orange-text-dark);
  --text-on-orange: var(--brand-orange-ink);
}

/* Text contrast roles for established dark sections. */
.lead-card,
.solution-dark,
.demo-section,
.demo-page-hero,
.dark-feature,
.industry-large,
.ref-home .ref-inquiry-workflow,
.ref-home .ref-final,
.site-footer,
.how-timeline,
main > .blog-featured,
.blog-guide,
body[data-page="ai-functions"] main > .function-row.function-dark,
.shared-contact-section {
  --text-muted: var(--text-muted-on-dark);
  --text-accent: var(--text-accent-on-dark);
}

.voice-demo-panel,
.home-voice-demo,
.dark-process-step,
.seo-profile,
.legal-contact,
.blog-featured,
.how-dashboard aside,
.auto-lead-dashboard > aside,
.cta-shell {
  --text-muted: var(--text-muted-on-dark);
  --text-accent: var(--text-accent-on-dark);
}

/* White interface cards can sit inside a dark section; restore the light-surface role. */
.demo-console,
.captured-panel,
.function-mock,
.demo-page-hero.edge-photo-hero,
.about-manifesto,
.solutions-inquiry-card,
.solutions-phone-transcript,
.seo-profile-mock,
.shared-contact-section .contact-card {
  --text-muted: #68686C;
  --text-accent: var(--brand-orange-text-light);
}

.lead-card-head small,
.lead-card dt,
.solution-dark .solution-copy > p,
.solution-dark .solution-copy .tech-note,
.demo-intro > p:not(.eyebrow),
.demo-section .demo-tab,
.demo-section .demo-disclosure,
.industry-large p,
.ref-home .ref-final-grid > div:last-child > p,
.ref-home .ref-final small,
.site-footer .footer-brand p,
.site-footer .footer-meta,
.footer-top p,
.footer-bottom,
.how-timeline-heading > p,
.how-timeline li span,
.blog-guide-grid > div > p:not(.eyebrow),
.blog-guide-disclosure {
  color: var(--text-muted-on-dark);
}

/* On-orange primary buttons use ink text; white on brand orange misses AA for normal text. */
.button,
.button:hover,
.contact-submit,
.shared-contact-section .contact-submit {
  color: var(--text-on-orange);
}

/* This label is shown on a charcoal panel, unlike the light-page eyebrow defaults. */
.blog-featured-grid .eyebrow {
  color: var(--text-accent-on-dark);
}

.legal-contact .eyebrow,
.seo-profile .eyebrow {
  color: var(--text-accent-on-dark);
}

/* The muted text role applies to form hints, cards, disclosures, and gray page surfaces. */
.shared-contact-section .contact-card,
.demo-console,
.captured-panel {
  color: #0B0B0D;
}

.shared-contact-section .field-help,
.shared-contact-section .field-meta,
.shared-contact-section .form-status,
.shared-contact-section .optional {
  color: var(--text-muted);
}

.home-text-demo .home-demo-card-head,
.growth-card .growth-index,
.growth-step p,
.dual-demo-heading > div:last-child > p,
.panel-description,
.three-step-grid p,
.process-step-body > div:first-child > p,
.feature-split > div > p:not(.eyebrow),
.capability-panel > p,
.light-heading > p,
.process-step-body > div:first-child > p,
.how-flow small,
.seo-profile-mock small,
.seo-ai-mock small,
.seo-flow small,
.wa-handoff-diagram small,
.auto-workflow li small,
.auto-follow-diagram small,
.legal-toc h2,
.legal-related h2,
.legal-related li span,
.legal-effective-date,
.legal-document-nav strong,
.conversation-step-record dt,
.conversation-action-note,
.optional,
.field-help,
.field-meta,
.form-status {
  color: var(--text-muted);
}

.home-voice-demo .home-demo-card-head,
.dark-process-step .process-step-body > div:first-child > p {
  color: var(--text-muted-on-dark);
}

.cta-shell small,
.cta-shell > div:last-child > p {
  color: #F4F4F4;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.stage-caption span,
.solution-index,
.solution-copy li::before,
.overview-grid article > span,
.industry-number,
.check-list li::before,
.implementation-timeline article > span,
.hero h1 em,
.solutions-hero-copy h1 em,
.wa-hero h1 em,
.page-hero h1 em,
.industry-hero-content h1 em,
.contact-hero h1 em,
.blog-rebuild-hero h1 em,
.about-ref-hero h1 em,
.seo-hero h1 em {
  color: var(--text-accent);
}

/* Headline highlights and non-text accents retain the vivid brand orange.
   Compact copy and small labels continue to use the accessible text tokens above. */
.hero h1 em,
.solutions-hero-copy h1 em,
.wa-hero h1 em,
.page-hero h1 em,
.industry-hero-content h1 em,
.contact-hero h1 em,
.blog-rebuild-hero h1 em,
.about-ref-hero h1 em,
.seo-hero h1 em,
.about-manifesto h2 em,
.brief-page-hero h1 em {
  color: var(--brand-orange);
}

.solution-copy li::before,
.check-list li::before,
.ref-home .ref-benefits li > span,
.ref-home .ref-demo-icon,
.ref-home .ref-solution-icon,
.ref-home .ref-row-icon,
.ref-home .ref-mini-question strong .ref-icon,
.ref-home .ref-process-arrow,
.ref-home .ref-wave,
.ref-home .ref-workflow-stage:not(:last-child)::after,
.industry-benefits li::before,
.how-checklist li::before,
.contact-expect-grid b,
.functions-hero li::before,
.function-row:not(.function-dark) .function-copy li::before,
.function-row.function-dark .function-copy li::before,
.function-row .function-copy > b,
.ref-home .ref-process-icon,
.industry-hero-content h1 em,
.about-ref-hero li::before,
.about-who li::before,
.how-illustration-card p::first-letter,
.function-row > .container > div:first-child > b,
.mock-wave,
.routing-mock > span,
.wa-hero li::before,
.wa-step-grid > span,
.wa-handoff li::before,
.wa-handoff-diagram > span,
.seo-profile li::before,
.seo-ai li::before,
.seo-flow > span,
.webdev-features li::before,
.auto-follow-diagram > span,
.chat-open .chat-launcher,
.demo-disclosure.prominent > span,
.site-footer .footer-wordmark span,
.button:focus-visible,
.site-nav a:focus-visible,
.wordmark:focus-visible,
.menu-toggle:focus-visible,
.demo-tab:focus-visible,
.replay-button:focus-visible,
summary:focus-visible,
.text-link:focus-visible,
.back-to-top:focus-visible {
  color: var(--brand-orange);
}

.ref-home .ref-benefits li > span,
.ref-home .ref-demo-icon,
.ref-home .ref-solution-icon,
.ref-home .ref-row-icon,
.ref-home .ref-mini-question strong .ref-icon,
.ref-home .ref-process-icon {
  color: var(--brand-orange);
}

.call-quote span {
  color: var(--text-on-orange);
}

.blog-featured .blog-inactive-label {
  color: var(--text-accent-on-dark);
}

.shared-contact-section .contact-submit:disabled {
  color: #0B0B0D;
}

/* These components sit on pale surfaces even when their wider page is dark. */
.demo-page-hero.edge-photo-hero .eyebrow {
  color: var(--text-accent);
}

.about-manifesto h2 em {
  color: var(--brand-orange);
}

/* Accent text on pale panels needs darker orange; these controls keep orange fills. */
.ref-home .ref-process-arrow,
.ref-home .ref-solution-link b,
.ref-home .ref-benefits li > span,
.ref-home .ref-demo-icon,
.ref-home .ref-solution-icon,
.ref-home .ref-row-icon,
.ref-home .ref-mini-question strong .ref-icon,
.ref-home .ref-workflow-note span,
.blog-inactive-label,
.blog-categories a,
.blog-article-grid small,
.how-step-number,
.how-workflow-disclosure span,
.contact-expect-grid b,
.functions-hero li::before,
.function-row:not(.function-dark) .function-copy > b,
.function-row:not(.function-dark) .function-copy .eyebrow,
.function-row:not(.function-dark) .function-copy li::before,
.subs-included-grid b,
.subs-process li b,
.wa-step-grid > span,
.wa-handoff li::before,
.wa-handoff-diagram > span,
.seo-approach li b,
.seo-flow > span,
.webdev-build-grid b,
.webdev-process li b,
.webdev-features li::before,
.auto-workflow li b,
.auto-follow-diagram > span,
.auto-implementation li b {
  color: var(--text-accent);
}

.shared-contact-section .eyebrow,
.shared-contact-section .contact-promises li::before {
  color: #FF9A76;
}

.function-row.function-dark .function-copy > b,
.function-row.function-dark .function-copy .eyebrow,
.function-row.function-dark .function-copy li::before,
.demo-section .eyebrow,
.demo-page-hero .eyebrow,
.dark-feature .eyebrow,
.solution-dark .solution-index,
.site-footer .footer-group h2,
.site-footer .footer-wordmark span,
.site-footer .footer-group a:hover,
.site-footer .footer-meta a:hover,
.ref-home .ref-inquiry-workflow .ref-workflow-stage:not(:last-child)::after,
.ref-home .ref-inquiry-workflow .ref-workflow-step {
  color: var(--text-accent-on-dark);
}

/* Product examples use orange fills with dark text, including the disabled form state. */
.growth-solution > span,
.blog-categories a:first-child,
.blog-categories a:hover,
.contact-submit,
.shared-contact-section .contact-submit {
  color: #0B0B0D;
}

/* Orange glyphs, steps, icons, and decorative marks use the saturated brand token. */
body[data-page="ai-functions"] .function-copy > b,
body[data-page="ai-functions"] .function-copy li::before,
body[data-page="ai-functions"] .routing-mock .mock-route-arrow,
.function-row > .container > div:first-child > b,
.function-row li::before,
.mock-wave,
.routing-mock > span,
.solution-copy li::before,
.check-list li::before,
.ref-home .ref-benefits li > span,
.ref-home .ref-demo-icon,
.ref-home .ref-solution-icon,
.ref-home .ref-row-icon,
.ref-home .ref-mini-question strong .ref-icon,
.ref-home .ref-process-icon,
.ref-home .ref-process-arrow,
.ref-home .ref-wave,
.ref-home .ref-workflow-stage:not(:last-child)::after,
.industry-benefits li::before,
.how-checklist li::before,
.contact-expect-grid b,
.functions-hero li::before,
.function-row .function-copy li::before,
.about-ref-hero li::before,
.about-who li::before,
.wa-hero li::before,
.wa-step-grid > span,
.wa-handoff li::before,
.wa-handoff-diagram > span,
.seo-profile li::before,
.seo-ai li::before,
.seo-flow > span,
.webdev-features li::before,
.auto-follow-diagram > span,
.chat-open .chat-launcher,
.demo-disclosure.prominent > span,
.site-footer .footer-wordmark span {
  color: var(--brand-orange);
}

/* The burnt-orange token belongs to full-width CTA surfaces and their photo fades. */

