/* ADAComply visual system
 * Loaded after the legacy layer. Components retain their behavior and content;
 * this file owns the shared palette, hierarchy, layout, and responsive rules.
 * Sections: foundations, controls, navigation, page shells, home, page families,
 * articles, forms, footer, responsive adaptations, reduced motion.
 */

:root {
  --brand: #233ac4;
  --brand-dark: #182c9b;
  --brand-light: #eef1fc;
  --ink: #101b37;
  --ink-soft: #49556d;
  --muted: #5f6b80;
  --bg: #f6f8fc;
  --card: #fff;
  --border: #dce2ed;
  --accent: #ffc247;
  --success: #16764d;
  --radius: 16px;
  --radius-sm: 8px;
  --container: 1200px;
  --reading: 760px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-space: clamp(48px, 5.5vw, 80px);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --serif: var(--font);
  --shadow-sm: 0 2px 6px rgb(16 27 55 / 3%);
  --shadow-md: 0 12px 36px rgb(16 27 55 / 7%);
  --navy-surface: radial-gradient(ellipse at 90% 10%, #203574 0%, transparent 60%), #0d1836;
}

html { background: #0d1836; scroll-padding-top: 96px; overflow-x: clip; overflow-y: visible; }
body { background: #fff; line-height: 1.7; overflow-x: clip; overflow-y: visible; }
html.audit-modal-open, body.audit-modal-open, body.industry-modal-open { overflow: hidden; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; text-shadow: none; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.13; letter-spacing: -.04em; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.5rem); line-height: 1.2; letter-spacing: -.035em; }
h3 { font-size: 1.2rem; line-height: 1.4; letter-spacing: -.015em; }
p { text-wrap: pretty; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:is(section, h2, h3)[id] { scroll-margin-top: 100px; }
:is(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid var(--brand); outline-offset: 4px; box-shadow: 0 0 0 3px #fff;
}
.compare-table-wrap:focus-visible, .table-wrap:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
:is(.section-eyebrow, .home-intro-kicker, .education-kicker, .banking-eyebrow, .blog-kicker) {
  font-family: var(--font); font-size: .75rem; font-weight: 700; line-height: 1.5;
  letter-spacing: .12em; text-transform: uppercase;
}
.design-refresh :is([data-reveal], [data-site-reveal]) {
  opacity: 1; transform: none; transition: none;
}

/* One primary action, consistent secondary controls. */
:is(.btn-primary, .cta-btn, .header-cta, .editor-button, .download-btn, .audit-submit-btn) {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: auto; height: auto; min-height: 48px; padding: 12px 20px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--ink); box-shadow: none;
  font-family: var(--font); font-size: .9rem; font-weight: 700; line-height: 1.5;
  letter-spacing: 0; text-align: center; text-decoration: none;
  transition: background .16s, box-shadow .16s;
}
:is(.btn-primary, .cta-btn, .header-cta, .editor-button, .download-btn, .audit-submit-btn):hover {
  background: #ffd477; color: var(--ink); transform: none;
  box-shadow: 0 4px 12px rgb(16 27 55 / 8%); text-decoration: none;
}
:is(.btn-ghost, .secondary-btn, .download-btn-secondary, .header-signin) {
  display: inline-flex; align-items: center; justify-content: center;
  width: auto; height: auto; min-height: 48px; padding: 12px 20px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: transparent; color: var(--ink); box-shadow: none;
  font-size: .9rem; font-weight: 700; line-height: 1.5; text-decoration: none;
}
:is(.btn-ghost, .secondary-btn, .download-btn-secondary, .header-signin):hover {
  background: var(--brand-light); color: var(--brand-dark); transform: none;
  border-color: #b8c3e5; box-shadow: none; text-decoration: none;
}
.sample-showcase .cta-btn {
  background: transparent; color: var(--brand); border-color: #b8c3e5;
}
:is(.cinematic-hero, .topic-hero, .education-hero, .banking-hero, .education-final-cta, .editorial-cta) :is(.btn-ghost, .secondary-btn) {
  color: #fff; border-color: #7383a5; background: rgb(255 255 255 / 4%);
}
:is(.cinematic-hero, .topic-hero, .education-hero, .banking-hero, .education-final-cta, .editorial-cta) :is(.btn-ghost, .secondary-btn):hover {
  color: #fff; background: rgb(255 255 255 / 12%); border-color: #abb8d0;
}

/* Header and navigation share dimensions and button priority on every page. */
.site-header { border-bottom: 1px solid var(--border); box-shadow: none; background: #fff; }
.header-inner { max-width: 1320px; min-height: 80px; padding: 14px var(--gutter); gap: 28px; }
.logo-img { width: 155px; height: auto; }
nav.main-nav > ul { gap: 24px; }
nav.main-nav :is(a, summary) { font-size: .875rem; }
.header-actions { gap: 12px; }
.header-signin { border-color: transparent; padding-inline: 12px; }
.site-header .header-cta { background: var(--accent); color: var(--ink); box-shadow: none; }
.site-header .header-cta:hover { background: #ffd477; }
.nav-dropdown-menu { border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-md); padding: 8px; }
.nav-dropdown-menu a { padding: 11px 14px; border-radius: 6px; line-height: 1.45; }
.nav-dropdown-menu a:hover, .nav-dropdown-menu a[aria-current=page] { background: var(--brand-light); color: var(--brand); }
.menu-toggle { border-radius: 8px; min-width: 44px; min-height: 44px; }

/* Common shells: marketing content, narrow editorial content, and full-width pages. */
main { width: min(var(--container), calc(100% - 2 * var(--gutter))); padding: 48px 0 72px; }
.home-main { width: 100%; max-width: none; padding: 0; margin: 0; }
.cinematic-hero::before, .cinematic-hero::after { display: none; }
.content-block { padding: 36px 0; margin: 0; background: transparent; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: none; overflow: visible; }
.content-block::before { display: none; }
.content-block > :is(p, ul, ol) { max-width: 80ch; }
.content-block > h2 { margin-bottom: 20px; }
.content-block:first-child { padding-top: 0; }

/* Links inside running text carry more than color (WCAG 1.4.1, axe link-in-text-block). */
main :is(p, figcaption) a:not([class]) { text-decoration: underline; text-underline-offset: 3px; }

/* Homepage: demonstration first, with a compact progression into pricing. */
.home-main > .cinematic-hero {
  min-height: 100vh; min-height: 100svh; padding: 140px var(--gutter) 64px;
  background: radial-gradient(ellipse at 83% 45%, #102c45 0%, #07162a 45%, #030b1b 85%);
}
.home-main .hero-product-grid { width: min(var(--container), 100%); max-width: var(--container); grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 72px; }
.home-main .hero-copy { max-width: none; }
.home-main .cinematic-title { font-size: clamp(2.3rem, 3.3vw, 3rem); line-height: 1.18; letter-spacing: -.035em; max-width: 620px; }
.home-main .cinematic-subtitle { margin: 24px 0 0; font-size: 1rem; line-height: 1.75; color: #d7dfef; }
.home-main .hero-cta-row { justify-content: flex-start; margin-top: 28px; gap: 12px; }
.home-main .hero-cta-row :is(.btn-primary,.btn-ghost) { padding: 13px 18px; border-radius: var(--radius-sm); }
.home-main .hero-cta-row .btn-ghost { border-color: transparent; background: transparent; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #8290ad; }
.home-main .hero-cta-row .btn-ghost:hover { background: transparent; text-decoration-color: #fff; }
.hero-dashboard-preview { padding: 8px; border-radius: 12px; box-shadow: 0 12px 32px rgb(0 0 0 / 12%); }
.hero-dashboard-preview::before { display: none; }
.hero-dashboard-preview figcaption { letter-spacing: 0; line-height: 1.5; }
.home-section { width: min(var(--container), calc(100% - 2 * var(--gutter))); max-width: var(--container); padding: var(--section-space) 0; }
.home-section > h2 { max-width: 780px; margin: 0 auto 16px; font-size: clamp(1.8rem, 2.8vw, 2.5rem); line-height: 1.2; }
.home-section > .section-lede { max-width: 700px; margin: 0 auto 32px; font-size: 1rem; line-height: 1.7; color: var(--ink-soft); }
.home-section .section-eyebrow { margin-bottom: 12px; }
.home-main .sample-showcase { padding-bottom: 36px; }
.before-after { gap: 24px; }
.before-after-card { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); box-shadow: none; display: flex; flex-direction: column; }
.before-after-card::before { display: none; }
.before-after-label { font-size: .75rem; line-height: 1.5; margin-bottom: 16px; }
.home-main .before-after-card img { width: 100%; height: 310px; object-fit: contain; background: #fff; }
.sample-image-trigger { border-radius: 8px; }
.image-caption { font-size: .875rem; line-height: 1.65; color: var(--ink-soft); }
.before-after-card .image-caption { margin: 16px 0 0; }
.home-main .step { padding: 0 8px 0 0; text-align: left; border: 0; background: transparent; box-shadow: none; border-radius: 0; }
.home-main .step h3 { font-size: 1.2rem; }
.dashboard-enlarge-hint { background: #172542; color: #fff; font-size: .75rem; border-radius: 6px; min-height: 36px; }
.home-faq { max-width: 840px; padding-top: 16px; }
.home-faq > :is(h2,.section-eyebrow) { text-align: left; margin-left: 0; }
.faq-item { background: transparent; border: 0; border-bottom: 1px solid var(--border); box-shadow: none; border-radius: 0; padding: 0; margin: 0; }
.faq-item summary { padding: 20px 0; font-size: 1rem; line-height: 1.5; }
.faq-item summary h3 { font-size: 1rem; line-height: 1.5; margin: 0; }
.faq-item > p { margin: 0; padding: 0 24px 22px 0; color: var(--ink-soft); font-size: .9375rem; }
.page-home .final-cta :is(.btn-secondary, a[href^="tel:"]) {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.page-home .final-cta :is(.btn-secondary, a[href^="tel:"]):is(:hover, :focus-visible) {
  color: var(--accent);
}

/* Product, industry, proof, and company page families. */

/* Guides and blog: readable prose, restrained navigation and callouts. */
.toc h2 { font-size: .6875rem; font-weight: 700; letter-spacing: .1em; color: var(--muted); margin-bottom: 16px; }
.toc ol { padding-left: 20px; margin: 0; }
.toc li { margin-bottom: 12px; padding-left: 4px; font-size: .875rem; line-height: 1.6; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--brand); text-decoration: underline; }
.compare-table-wrap, .table-wrap { border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.table-wrap table { margin: 0; }
.table-wrap caption { padding: 16px; margin: 0; }
table th { color: var(--ink); }

/* Forms and audit tools remain native and keep their existing submission flows. */
.audit-modal :is(input,select,textarea) { border: 1px solid #a6b2c8; background: #fff; border-radius: 8px; color: var(--ink); padding: 12px 14px; min-height: 48px; font-size: 1rem; }
.audit-modal-panel { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 24px 80px rgb(0 0 0 / 20%); max-height: calc(100dvh - 40px); overflow-y: auto; }
.audit-modal-panel h2 { font-size: 1.75rem; }

/* A quieter footer, with a scan-friendly mobile link grid. */
.site-footer { padding: 48px var(--gutter) 24px; background: #0d1836; border-top: 1px solid #35415d; }
.footer-grid { max-width: var(--container); gap: 36px; grid-template-columns: 1.2fr repeat(4,1fr); }
.footer-brand strong { font-family: var(--font); font-size: 1.25rem; }
.footer-col > strong { color: #fff; font-size: .8125rem; margin-bottom: 16px; }
.footer-col a { color: #c5cfe1; font-size: .8125rem; line-height: 1.65; margin-bottom: 12px; }
.footer-col a:hover { color: #ffcf6d; }
.footer-bottom { max-width: var(--container); font-size: .75rem; color: #a6b4cf; margin-top: 28px; }

/* Tablet and mobile: reorganize content, do not shrink it to fit desktop grids. */
@media (max-width: 1180px) {
  .header-inner { min-height: 72px; padding-block: 12px; }
  .site-header nav.main-nav.open { max-height: calc(100svh - 72px); overflow-y: auto; overscroll-behavior: contain; padding: 12px 24px 20px; }
  .site-header nav.main-nav > ul { width: 100%; align-items: stretch; text-align: left; padding: 0; gap: 0; }
  .site-header nav.main-nav > ul > li { width: 100%; padding: 0; border-bottom: 1px solid var(--border); }
  .site-header nav.main-nav > ul > li > a, .site-header nav.main-nav summary { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 48px; padding: 12px 0; text-align: left; }
  .site-header .nav-dropdown-menu { position: static; min-width: 0; padding: 0 0 12px; border: 0; box-shadow: none; background: var(--bg); }
  .site-header .nav-dropdown-menu a { text-align: left; min-height: 44px; }
  .site-header .mobile-cta-row { margin-top: 16px; padding: 0; gap: 12px; justify-content: flex-start; }
  .site-header .mobile-cta-row a { min-height: 48px; }
  .home-main .hero-product-grid { gap: 36px; }
  .home-main .cinematic-title { font-size: clamp(2.25rem,4vw,3rem); }
}
@media (max-width: 900px) {
  .home-main > .cinematic-hero {
    padding-top: 112px;
  }
  .home-main .hero-product-grid { grid-template-columns: 1fr; gap: 32px; }
  .home-main .hero-copy, .home-main .hero-product-grid { text-align: left; }
  .home-main .hero-product-grid { max-width: 720px; }
  .home-main .cinematic-title { font-size: clamp(2.25rem,5vw,3rem); max-width: 680px; margin-left: 0; }
  .home-main .cinematic-subtitle { margin-left: 0; }
  .hero-dashboard-preview { width: 100%; max-width: 680px; }
  .footer-grid { grid-template-columns: repeat(4,1fr); gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  :root { --gutter: 20px; --section-space: 48px; }
  html { scroll-padding-top: 84px; }
  main { padding-top: 32px; padding-bottom: 48px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  .header-inner { padding-inline: 20px; min-height: 68px; }
  .logo-img { width: 145px; }
  .site-header nav.main-nav.open { max-height: calc(100svh - 68px); padding-inline: 20px; }
  .content-block { padding-block: 28px; }
  .content-block > h2 { font-size: 1.65rem; }
  .home-main > .cinematic-hero { padding: 100px var(--gutter) 72px; }
  .home-main .hero-product-grid { gap: 28px; }
  .home-main .cinematic-title { font-size: clamp(1.9rem,8.5vw,2.5rem); line-height: 1.15; }
  .home-main .cinematic-subtitle { font-size: .9375rem; line-height: 1.65; margin-top: 18px; }
  .home-main .hero-cta-row { display: grid; grid-template-columns: 1fr; margin-top: 24px; }
  .home-main .hero-cta-row a { width: 100%; font-size: .8125rem; }
  .hero-dashboard-preview { padding: 7px; border-radius: 12px; }
  .hero-dashboard-preview figcaption { font-size: .6875rem; }
  .hero-dashboard-trigger .dashboard-enlarge-hint { padding: 6px 8px; font-size: .625rem; min-height: 30px; right: 8px; bottom: 8px; }
  .home-section > h2 { font-size: 1.75rem; text-align: left; }
  .home-section > .section-eyebrow, .home-section > .section-lede { text-align: left; }
  .home-section > .section-lede { font-size: .9375rem; margin-bottom: 24px; }
  .before-after { grid-template-columns: 1fr; gap: 20px; }
  .before-after-card { padding: 18px; }
  .home-main .before-after-card img { height: 300px; }
  .home-main .step { display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 0 16px; padding: 0; }
  .home-main .step h3, .home-main .step p { grid-column: 2; }
  .faq-item summary { padding-block: 18px; }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
  .footer-col a { min-height: 32px; padding-block: 4px; margin-bottom: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
