/* Existing component mechanics; visual rules live in design-system.css. */
@layer legacy {
  :root {
    --brand: #1622C2;
    --brand-dark: #0E18A0;
    --brand-light: #E8EAFB;
    --ink: #0B0F2C;
    --ink-soft: #3A3F5C;
    --muted: #6B7088;
    --bg: #F4F5FA;
    --card: #FFFFFF;
    --border: #E1E3EE;
    --accent: #FFB400;
    --success: #1B9A5A;
    --warn-bg: #FFF8E1;
    --warn-border: #F2C94C;
    --shadow-sm: 0 1px 2px rgba(11, 15, 44, 0.04), 0 1px 3px rgba(11, 15, 44, 0.06);
    --shadow-md: 0 4px 12px rgba(11, 15, 44, 0.06), 0 2px 4px rgba(11, 15, 44, 0.04);
    --radius: 0;
    --radius-sm: 0;
    --container: 1120px;
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  }

  * { box-sizing: border-box; }

  html {
    scroll-behavior: smooth;
    background: #0A0F2D;
    overflow-x: hidden;
  }

  body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    margin: 0;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
  }

  a { color: var(--brand); text-decoration: none; }
  a:hover { text-decoration: underline; }
  a:focus-visible,
  button:focus-visible,
  summary:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px var(--brand);
  }

  .skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    background: var(--ink);
    color: #fff;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    transform: translateY(-150%);
    transition: transform 0.15s ease;
  }
  .skip-link:focus {
    transform: translateY(0);
    outline: 3px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 6px var(--brand);
    text-decoration: none;
  }

  .audit-modal-open {
    overflow: hidden;
  }

  .audit-modal[hidden] {
    display: none;
  }

  .audit-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
  }

  .audit-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 24, 0.68);
  }

  .audit-modal-panel {
    position: relative;
    width: min(100%, 520px);
    background: #fff;
    border: 1px solid rgba(22, 34, 194, 0.12);
    border-radius: var(--radius-sm);
    box-shadow: 0 30px 90px rgba(5, 8, 24, 0.34);
    padding: clamp(24px, 5vw, 36px);
  }

  .audit-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #fff;
    color: var(--ink-soft);
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
  }

  .audit-modal-close:hover {
    color: var(--ink);
    border-color: var(--brand);
  }

  .image-lightbox[hidden] {
    display: none;
  }

  .image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: grid;
    place-items: start center;
    overflow: auto;
    padding: 76px clamp(16px, 6vw, 80px) 32px;
    background: rgba(5, 8, 24, 0.9);
  }

  .image-lightbox.image-lightbox-wide {
    padding-right: 40px;
    padding-left: 40px;
  }

  .image-lightbox-backdrop {
    position: fixed;
    inset: 0;
    border: 0;
    background: transparent;
    cursor: zoom-out;
  }

  .image-lightbox-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: var(--image-lightbox-width, min(1080px, calc(100vw - 160px)));
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .image-lightbox-panel img {
    width: 100%;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
  }

  .image-lightbox-wide .image-lightbox-panel img {
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  }

  .image-lightbox-controls {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 30px rgba(5, 8, 24, 0.22);
    transform: translateX(-50%);
  }

  .image-lightbox-control {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
  }

  .image-lightbox-control:hover,
  .image-lightbox-control:focus-visible {
    border-color: var(--brand);
    color: var(--brand);
  }

  .image-lightbox-control:disabled {
    color: var(--muted);
    cursor: not-allowed;
    opacity: 0.42;
  }

  .image-lightbox-range {
    width: min(170px, 28vw);
    accent-color: var(--brand);
    cursor: pointer;
  }

  .image-lightbox-zoom {
    min-width: 42px;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
  }

  .image-lightbox-close {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #fff;
    color: var(--ink-soft);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(5, 8, 24, 0.18);
  }

  .image-lightbox-close:hover,
  .image-lightbox-close:focus-visible {
    color: var(--ink);
    border-color: var(--brand);
  }

  .image-lightbox-caption {
    margin: 0;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
  }

  @media (max-width: 760px) {
    .image-lightbox {
      padding: 76px 16px 28px;
    }
    .image-lightbox-panel {
      width: var(--image-lightbox-width, calc(100vw - 32px));
    }
    .image-lightbox.image-lightbox-wide {
      padding-right: 16px;
      padding-left: 16px;
    }
  }

  /* ============= HOMEPAGE INDUSTRY HERO CARDS ============= */

  .cinematic-hero:has(.industry-card-rail) {
    min-height: 100vh;
    min-height: 100svh;
    justify-content: flex-start;
    padding: 132px 28px 300px;
  }
  .industry-government { background-image: url('/marketing-assets/assets/industry-government.webp?v=20260821-2'); background-position: 42% center; }
  .industry-education { background-image: url('/marketing-assets/assets/industry-education.webp'); background-position: 60% center; }
  .industry-healthcare { background-image: url('/marketing-assets/assets/industry-healthcare.webp'); background-position: 64% center; }
  .industry-financial { background-image: url('/marketing-assets/assets/industry-financial.webp?v=20260821-2'); background-position: 62% center; }

  body.industry-modal-open { overflow: hidden; }

  @media (max-width: 900px) {
    .cinematic-hero:has(.industry-card-rail) { min-height: 100vh; min-height: 100svh; padding: 116px 18px 28px; }
  }

  .audit-modal-eyebrow {
    margin: 0 0 8px;
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .audit-modal-panel h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.8rem, 5vw, 2.45rem);
    line-height: 1.08;
  }

  .audit-modal-copy,
  .audit-modal-note {
    color: var(--ink-soft);
  }

  .audit-modal-copy {
    margin: 12px 0 22px;
  }

  .audit-modal-form {
    display: grid;
    gap: 10px;
  }

  .audit-modal-form label {
    color: var(--ink);
    font-weight: 700;
    font-size: 0.92rem;
  }

  .audit-modal-form input:not([type="hidden"]) {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font: inherit;
    color: var(--ink);
    background: #fff;
  }

  .audit-modal-form input:not([type="hidden"]):focus {
    outline: 3px solid rgba(22, 34, 194, 0.16);
    border-color: var(--brand);
  }

  .audit-modal-form input[name="_honey"] {
    position: absolute;
    left: -9999px;
  }

  .audit-modal-form button {
    margin-top: 10px;
    justify-content: center;
    border: 0;
    cursor: pointer;
  }

  .audit-modal-note {
    margin: 14px 0 0;
    font-size: 0.84rem;
    line-height: 1.5;
  }

  .audit-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1001;
    max-width: min(360px, calc(100vw - 40px));
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    box-shadow: var(--shadow-md);
    font-weight: 700;
  }

  .audit-toast-error {
    background: #7F1D1D;
  }

  /* Editorial Disclosure Banner */

  /* Header */
  header.site-header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .header-inner {
    max-width: min(1600px, 100%);
    margin: 0 auto;
    padding: 14px clamp(20px, 4vw, 52px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(18px, 2.4vw, 36px);
  }
  .logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
    flex: 0 0 auto;
  }
  .logo-img {
    height: 32px;
    width: auto;
    display: block;
  }

  nav.main-nav ul {
    display: flex;
    gap: clamp(18px, 2.2vw, 34px);
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: nowrap;
  }
  nav.main-nav a {
    color: var(--ink-soft);
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.15;
    white-space: nowrap;
  }
  nav.main-nav a:hover { color: var(--brand); text-decoration: none; }
  nav.main-nav a[aria-current="page"],
  .nav-dropdown-menu a[aria-current="page"] {
    color: var(--brand);
    font-weight: 800;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: 0;
    flex: 0 0 auto;
  }
  .header-signin {
    color: var(--ink-soft);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
  }
  .header-signin:hover { color: var(--brand); text-decoration: none; }
  .header-cta {
    background: var(--brand);
    color: #fff;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.15s;
    white-space: nowrap;
  }
  .header-cta:hover { background: var(--brand-dark); text-decoration: none; }

  /* Mobile CTA row is JS-injected for the mobile drawer; hide it everywhere by default */
  nav.main-nav .mobile-cta-row { display: none; }
  /* Keep CTA text white inside the drawer (defeats nav.main-nav a specificity) */
  nav.main-nav .mobile-cta-row .header-cta,
  nav.main-nav .mobile-cta-row .header-cta:hover { color: #fff; }

  @media (max-width: 1180px) {
    nav.main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); }
    nav.main-nav.open { display: block; }
    nav.main-nav ul { flex-direction: column; gap: 0; padding: 12px 20px; }
    nav.main-nav li { padding: 12px 0; border-bottom: 1px solid var(--border); }
    nav.main-nav li:last-child { border-bottom: none; }
    .header-actions { display: none; }
  }

  /* Hero / Above-the-fold */

  h1 {
    font-size: clamp(1.85rem, 4vw, 2.65rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 16px;
    font-weight: 800;
  }

  /* Quick Answer block */

  /* Main content sections */
  main {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px 80px;
  }

  .home-main {
    max-width: none;
    padding: 0;
    overflow-x: hidden;
  }

  .content-block {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, #fff 100%);
    border: 1px solid rgba(22, 34, 194, 0.12);
    border-radius: var(--radius-sm);
    padding: 40px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
  }
  .content-block::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent), var(--brand));
    opacity: 0.85;
  }

  @media (max-width: 640px) {
    .content-block { padding: 28px 20px; }
  }

  h2 {
    font-size: 1.65rem;
    color: var(--ink);
    margin: 0 0 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
  }
  h3 {
    font-size: 1.2rem;
    color: var(--ink);
    margin: 28px 0 12px;
    font-weight: 700;
  }
  h4 {
    font-size: 1rem;
    color: var(--ink);
    margin: 20px 0 8px;
    font-weight: 700;
  }

  p { color: var(--ink-soft); margin: 0 0 14px; }
  p:last-child { margin-bottom: 0; }

  ul, ol { color: var(--ink-soft); margin: 0 0 16px; padding-left: 24px; }
  li { margin-bottom: 6px; }

  /* Standards comparison table */
  .compare-table-wrap {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
  }

  /* Timeline */

  /* Decision box */

  /* FAQ */
  .faq-item {
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
  }
  .faq-item:last-child { border-bottom: none; padding-bottom: 0; }
  .faq-item:first-child { padding-top: 0; }
  .faq-item h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: var(--ink);
  }
  .faq-item p { margin: 0; }

  /* Related guides */

  /* Editorial CTA — cinematic gradient with serif headline */
  .cta-btn {
    display: inline-block;
    background: #fff;
    color: var(--brand);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    margin-top: 12px;
    transition: transform 0.2s;
  }
  .cta-btn:hover { transform: translateY(-1px); text-decoration: none; }

  /* Footer */
  footer {
    background: var(--ink);
    color: #C9CCDF;
    padding: 40px 20px;
    text-align: center;
    font-size: 0.9rem;
  }
  footer a { color: #C9CCDF; }
  footer p { color: #C9CCDF; max-width: 720px; margin: 0 auto 8px; }

  /* Helpers */

  /* Inline SVG diagrams (reusable wrapper) */

  /* TOC */
  .toc {
    background: linear-gradient(135deg, #F8F9FE 0%, var(--brand-light) 100%);
    border: 1px solid rgba(22, 34, 194, 0.14);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin: 0 0 32px;
  }
  .toc h2 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin: 0 0 12px;
    font-weight: 700;
  }
  .toc ol {
    margin: 0;
    padding-left: 20px;
    color: var(--ink-soft);
  }
  .toc li { margin-bottom: 4px; }
  .toc a { color: var(--ink); }

  /* ============= HOME PAGE ADDITIONS ============= */

  /* Big hero for home page */
  .btn-primary {
    background: #fff;
    color: var(--brand);
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.15s;
    display: inline-block;
  }
  .btn-primary:hover { transform: translateY(-1px); text-decoration: none; }
  .btn-ghost {
    background: transparent;
    color: #fff;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    display: inline-block;
  }
  .btn-ghost:hover { background: rgba(255,255,255,0.1); text-decoration: none; }

  /* Section wrapper for home page */
  .home-section {
    max-width: var(--container);
    margin: 0 auto;
    padding: 70px 20px;
  }
  .home-section h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    text-align: center;
    margin: 0 0 14px;
    letter-spacing: -0.01em;
  }
  .home-section .section-lede {
    text-align: center;
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto 50px;
    font-size: 1.05rem;
  }

  /* Value prop grid (3 or 4 columns) */

  /* Service category grid (5 cards on home page) */

  /* How it works */
  .step {
    text-align: center;
    min-height: 100%;
  }
  .step h3 {
    font-size: 1.05rem;
    margin: 0 0 12px;
  }
  .step p {
    font-size: 0.95rem;
    color: var(--ink-soft);
    margin: 0;
    line-height: 1.55;
  }

  /* Pricing strip */

  /* Final CTA — matches cinematic hero gradient */
  .final-cta {
    background:
      radial-gradient(ellipse at 50% 30%, rgba(22, 34, 194, 0.4) 0%, transparent 60%),
      linear-gradient(180deg, #0A0F2D 0%, #050818 100%);
    border-top: 4px solid var(--accent);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .final-cta h2 {
    color: #fff;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: clamp(1.85rem, 3.5vw, 2.6rem);
    letter-spacing: 0.005em;
    margin: 0 0 14px;
  }
  .final-cta p { color: rgba(255,255,255,0.82); font-size: 1.05rem; margin: 0 0 28px; }

  /* Footer — dramatic dark navy matching cinematic style */
  footer.site-footer {
    background: #0A0F2D;
    border-top: 4px solid var(--accent);
    padding: 50px 20px 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
  }
  footer.site-footer a {
    color: rgba(255, 255, 255, 0.78);
    transition: color 0.15s;
  }
  footer.site-footer a:hover {
    color: var(--accent);
    text-decoration: none;
  }
  footer.site-footer p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 auto 8px;
  }
  footer.site-footer.footer-modern > p:not(.footer-bottom) {
    display: none;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 28px;
    max-width: var(--container);
    margin: 0 auto;
    text-align: left;
  }
  .footer-brand strong,
  .footer-col strong {
    display: block;
    color: #fff;
    font-weight: 800;
    margin-bottom: 10px;
  }
  .footer-col a {
    display: block;
    margin: 0 0 8px;
  }
  .footer-bottom {
    max-width: var(--container);
    margin: 28px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: left;
  }

  @media (max-width: 760px) {
    .footer-grid {
      grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
      grid-column: 1 / -1;
    }
  }

  @media (max-width: 520px) {
    .footer-grid {
      grid-template-columns: 1fr;
    }
  }

  /* Compact hero for topic pages — dramatic dark treatment matching home */

  /* Subtle blueprint grid in topic hero */

  @keyframes auditSweep {
    0%, 45% { transform: translateX(-100%); opacity: 0; }
    58% { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
  }

  @keyframes auditProgress {
    0%, 100% { transform: translateX(-12%); }
    50% { transform: translateX(108%); }
  }

  /* ============= MOBILE NAV TOGGLE FIX ============= */
  .menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    color: var(--ink);
    transition: background 0.15s, border-color 0.15s;
    margin-left: 8px;
  }
  .menu-toggle:hover {
    background: var(--brand-light);
    border-color: var(--brand);
  }
  .menu-toggle:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px var(--brand);
  }
  .menu-toggle svg { width: 22px; height: 22px; }
  .menu-toggle .icon-close { display: none; }
  .menu-toggle[aria-expanded="true"] .icon-open { display: none; }
  .menu-toggle[aria-expanded="true"] .icon-close { display: block; }

  @media (max-width: 1180px) {
    .menu-toggle { display: inline-flex; }
    /* Show menu-toggle inside header-actions on mobile, even though other actions are hidden */
    .header-actions { display: flex; }
    .header-actions .header-signin,
    .header-actions .header-cta { display: none; }
    /* Open-state nav: show all items + sign-in/start-free at the bottom */
    nav.main-nav.open { display: block; padding-bottom: 12px; }
    nav.main-nav.open ul { padding-bottom: 8px; }
    nav.main-nav.open::after {
      content: '';
      display: block;
      height: 1px;
      background: var(--border);
      margin: 0 20px;
    }
    nav.main-nav.open .mobile-cta-row {
      display: flex;
      gap: 12px;
      padding: 16px 20px 4px;
      align-items: center;
    }
    nav.main-nav .mobile-cta-row { display: none; }
    nav.main-nav.open .mobile-cta-row .header-signin,
    nav.main-nav.open .mobile-cta-row .header-cta { display: inline-block; }
  }

  /* ============= CONTACT ============= */

  /* ============= SAMPLE DOCUMENT (real PDF showcase) ============= */
  /* When a sample doc uses the .before-after grid, real images replace placeholders */
  .before-after-card > img {
    width: 100%;
    height: auto;
    border: 1px solid var(--border);
    border-radius: 4px;
    display: block;
    margin: 6px 0 0;
  }

  .sample-showcase .before-after {
    align-items: stretch;
  }

  .sample-showcase .before-after-card {
    display: flex;
    flex-direction: column;
  }

  .sample-image-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
  }

  .sample-image-trigger:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 4px;
    border-radius: 6px;
  }

  .sample-showcase .sample-image-trigger > img {
    width: 100%;
    height: clamp(260px, 30vw, 380px);
    object-fit: contain;
    object-position: center center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    display: block;
    margin: 6px 0 0;
  }

  .sample-showcase .before-after-card .image-caption {
    margin-top: 14px;
  }

  @media (max-width: 760px) {
    .sample-showcase .sample-image-trigger > img {
      height: auto;
      object-fit: contain;
    }
  }

  /* Legacy .sample-document grid (still defined for backward compat with any other usage) */

  /* ============= OCR EXAMPLES ============= */

  /* ============= CASE STUDIES ============= */

  .before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
  }
  .before-after-card {
    background: #F8F9FE;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px 18px;
  }
  .before-after-card .before-after-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 12px;
  }
  .before-after-card.before .before-after-label {
    color: #7A5200;
    background: rgba(255, 180, 0, 0.20);
  }
  .before-after-card.after .before-after-label {
    color: var(--brand);
    background: rgba(22, 34, 194, 0.12);
  }
  .before-after-card .image-caption {
    margin: 12px 0 0;
    font-size: 0.85rem;
    color: var(--muted);
  }

  @media (max-width: 640px) {
    .before-after { grid-template-columns: 1fr; }
  }

  /* ============= HOME-SECTION EYEBROWS ============= */
  .section-eyebrow {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.1rem;
    color: var(--brand);
    text-align: center;
    margin: 0 0 4px;
    letter-spacing: 0.01em;
  }

  /* ============= HOME SECTION TYPOGRAPHY UNIFICATION ============= */
  /* Home-section h2s use the cinematic serif so editorial type carries through */
  .home-section h2,
  .home-section h2[style*="text-align"] {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    letter-spacing: 0.005em;
  }
  /* Big featured numbers across the body use the same serif */
  /* Pricing strip's headline + price both feel more editorial */

  /* Primary buttons get a subtle gold ring on hover, tying body CTAs to hero gold */
  .btn-primary {
    transition: background 0.15s, transform 0.15s, box-shadow 0.2s, color 0.15s;
  }
  .btn-primary:hover {
    box-shadow: 0 0 0 2px rgba(255, 180, 0, 0.55), 0 6px 16px rgba(11, 15, 44, 0.12);
  }

  /* ============= STAT MOMENT (full-bleed dark band) ============= */
  /* Faint concentric ring echo of cinematic hero */

  /* ============= VALUE CARD HOVER (subtle lift + animated accent line) ============= */
  /* Service-card gets the same bottom-line treatment */

  /* ============= CINEMATIC HERO (home page) ============= */

  .cinematic-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    background:
      radial-gradient(ellipse at 50% 35%, rgba(22, 34, 194, 0.45) 0%, transparent 55%),
      radial-gradient(ellipse at 50% 80%, rgba(255, 180, 0, 0.06) 0%, transparent 50%),
      linear-gradient(180deg, #0A0F2D 0%, #050818 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 128px 20px 96px;
    overflow: hidden;
  }

  /* Subtle blueprint grid overlay */

  /* Concentric rings behind text (echo of Brakebills' clock face) */
  .cinematic-hero::before,
  .cinematic-hero::after {
    content: '';
    position: absolute;
    top: 47%;
    left: 50%;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
  }
  .cinematic-hero::before {
    width: 620px;
    height: 620px;
    max-width: 95vw;
    max-height: 95vw;
    transform: translate(-50%, -50%);
    --hero-ring-rest: rgba(255, 180, 0, 0.12);
    border: 1px solid var(--hero-ring-rest);
  }
  .cinematic-hero::after {
    width: 420px;
    height: 420px;
    max-width: 75vw;
    max-height: 75vw;
    transform: translate(-50%, -50%);
    --hero-ring-rest: rgba(255, 180, 0, 0.18);
    border: 1px solid var(--hero-ring-rest);
  }

  /* Homepage opening sequence: grid, expanding rings, then interface content. */

  /* Keep the navigation and hero content visible from the first paint.
     The opening animation applies only to decorative rings. */

  @keyframes hero-ring-arrive {
    0% {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.03);
    }
    7% {
      opacity: 0.9;
    }
    20% {
      opacity: 1;
    }
    100% {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }
  }

  @keyframes hero-ring-settle {
    0% {
      border-color: rgba(255, 180, 0, 0.88);
    }
    100% {
      border-color: var(--hero-ring-rest);
    }
  }

  @keyframes hero-interface-fade {
    from {
      opacity: 0;
      transform: none;
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  .cinematic-content {
    position: relative;
    z-index: 2;
  }

  .cinematic-title {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    font-size: clamp(3rem, 10vw, 7rem);
    letter-spacing: 0.08em;
    color: #fff;
    margin: 0;
    line-height: 1;
    text-shadow: 0 0 60px rgba(22, 34, 194, 0.35);
  }

  .cinematic-subtitle {
    font-family: var(--font);
    font-size: 0.85rem;
    letter-spacing: 0.5em;
    color: rgba(255, 255, 255, 0.78);
    text-transform: uppercase;
    margin: 18px 0 0;
    font-weight: 500;
    padding-left: 0.5em; /* visual centering for letter-spacing */
  }

  /* Bottom corners (mirroring Brakebills layout) */

  @media (max-width: 768px) {
    .cinematic-hero {
      padding: 92px 20px 76px;
      min-height: 100vh;
      min-height: 100svh;
    }
    .cinematic-hero::before,
    .cinematic-hero::after {
      top: 46%;
    }
  }

  /* Header transparent mode (over dark hero) — fixed so the hero starts at body top */
  /* Scrolled state: revert to white header */

  /* Serif treatment for topic page h1 (matching cinematic typography) */

  /* Intro section right after cinematic hero (replaces the lede) */

  /* ============= PRODUCT-LED HOMEPAGE PASS ============= */

  .hero-product-grid {
    width: min(980px, calc(100vw - 44px));
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: center;
    align-items: center;
    justify-items: center;
    gap: clamp(28px, 4vw, 48px);
    text-align: center;
  }

  .hero-copy {
    width: min(100%, 780px);
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
    text-align: center;
  }

  .hero-product-grid .cinematic-title {
    font-size: clamp(3.2rem, 7vw, 6.6rem);
    letter-spacing: 0.055em;
  }

  .hero-product-grid .cinematic-subtitle {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    font-size: clamp(1.05rem, 1.4vw, 1.32rem);
    line-height: 1.35;
    letter-spacing: 0.02em;
    text-transform: none;
  }

  .hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: center;
    margin-top: 28px;
  }

  .hero-cta-row .btn-primary {
    background: var(--accent);
    color: #050818;
    border-color: rgba(255, 180, 0, 0.72);
  }

  .hero-cta-row .btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
  }

  .dashboard-enlarge-hint {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    background: var(--brand);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 800;
    box-shadow: 0 10px 28px rgba(5, 8, 24, 0.24);
  }

  .dashboard-enlarge-hint > span {
    font-size: 1.15rem;
    line-height: 1;
  }

  @media (max-width: 560px) {
    .dashboard-enlarge-hint {
      right: 10px;
      bottom: 10px;
      min-height: 34px;
      padding: 7px 10px;
      font-size: 0.74rem;
    }
  }

  @media (max-width: 980px) {
    .hero-product-grid {
      grid-template-columns: 1fr;
      text-align: center;
      padding-top: 24px;
    }
    .hero-cta-row {
      justify-content: center;
    }
  }

  @media (max-width: 560px) {
    .site-header .header-inner {
      max-width: 390px;
      margin-left: 0;
      margin-right: auto;
    }
    .hero-product-grid {
      width: min(100%, calc(100vw - 28px));
    }
    .hero-copy {
      max-width: 100%;
      overflow-wrap: break-word;
    }
    .hero-product-grid .cinematic-title {
      max-width: 100%;
      font-size: clamp(2.25rem, 10vw, 2.55rem);
      letter-spacing: 0.025em;
    }
    .hero-product-grid .cinematic-subtitle {
      max-width: 340px;
      margin-left: auto;
      margin-right: auto;
      font-size: clamp(0.98rem, 4vw, 1.08rem);
      line-height: 1.4;
      letter-spacing: 0.01em;
    }
    .hero-cta-row {
      width: 100%;
      gap: 10px;
    }
    .hero-cta-row .btn-primary,
    .hero-cta-row .btn-ghost {
      width: min(100%, 286px);
      min-height: 44px;
      padding-left: 16px;
      padding-right: 16px;
    }
  }

  /* ============= DROPDOWN NAV MENUS ============= */

  .nav-dropdown { position: relative; }
  .nav-dropdown details summary {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    color: var(--ink-soft);
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.15;
    white-space: nowrap;
    user-select: none;
    transition: color 0.15s;
  }
  .nav-dropdown details summary::-webkit-details-marker { display: none; }
  .nav-dropdown details summary:hover,
  .nav-dropdown details[open] summary { color: var(--brand); }

  .nav-dropdown details summary::after {
    content: '';
    width: 7px;
    height: 7px;
    margin-left: 1px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    flex-shrink: 0;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.15s;
  }
  .nav-dropdown details[open] summary::after {
    transform: rotate(-135deg) translateY(2px);
  }

  .nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: -16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
    min-width: 260px;
    flex-direction: column;
    z-index: 110;
    display: none;
  }
  .nav-dropdown details[open] .nav-dropdown-menu { display: flex; }
  .nav-dropdown-menu a {
    padding: 10px 18px;
    color: var(--ink-soft);
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
  }

  .nav-dropdown-menu a:hover {
    background: var(--brand-light);
    color: var(--brand);
    text-decoration: none;
  }

  /* Mobile: dropdown expands inline inside the drawer */
  @media (max-width: 1180px) {
    nav.main-nav li.nav-dropdown { padding: 0; }
    .nav-dropdown details summary {
      padding: 12px 0;
      width: 100%;
      justify-content: space-between;
      font-size: inherit;
    }
    .nav-dropdown-menu {
      position: static;
      box-shadow: none;
      border: none;
      background: transparent;
      margin: 0;
      padding: 0 0 8px 16px;
      min-width: 0;
    }
    .nav-dropdown-menu a {
      padding: 8px 0;
    }
  }

  /* ============= BUYER'S GUIDE PUBLISHER CALLOUTS ============= */

  /* Place differs-callout cleanly inside vendor accordion */

  /* ============= ACCORDIONS (details/summary) ============= */

  /* Hide native disclosure markers on every details */
  details > summary::-webkit-details-marker { display: none; }
  details > summary { list-style: none; cursor: pointer; }

  /* FAQ accordion */
  details.faq-item { padding: 0; }
  details.faq-item > summary {
    padding: 20px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    transition: color 0.15s;
  }
  details.faq-item:first-child > summary { padding-top: 0; }
  details.faq-item[open] > summary { padding-bottom: 12px; }

  details.faq-item > summary h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--ink);
    font-weight: 700;
    flex: 1;
    line-height: 1.4;
  }

  details.faq-item > summary::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease, border-color 0.2s ease;
    margin-top: 8px;
    flex-shrink: 0;
  }

  details.faq-item[open] > summary::after {
    transform: rotate(-135deg);
    border-color: var(--brand);
  }

  details.faq-item > summary:hover h3,
  details.faq-item[open] > summary h3 { color: var(--brand); }

  details.faq-item > summary:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
    box-shadow: 0 0 0 6px var(--brand);
    border-radius: 4px;
  }

  details.faq-item > p,
  details.faq-item > ul,
  details.faq-item > ol {
    padding-bottom: 20px;
    margin: 0 0 12px;
  }
  details.faq-item > p:last-child { margin-bottom: 0; }
  details.faq-item:last-child[open] > p:last-child,
  details.faq-item:last-child[open] > ul:last-child,
  details.faq-item:last-child[open] > ol:last-child { padding-bottom: 0; }

  /* Vendor block accordion */

  /* Decision-box accordion */

  /* ============= BRAND COHERENCE PASS ============= */

  body {
    background:
      linear-gradient(180deg, #F8F9FE 0%, #F4F5FA 42%, #EEF1FB 100%);
  }

  .home-main .cinematic-hero {
    width: 100%;
  }

  main:not(.home-main) {
    padding-top: 36px;
  }

  .content-block h2,
  .content-block h3,
  .toc h2 {
    letter-spacing: 0;
  }
  .content-block > h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 650;
    font-size: clamp(1.55rem, 2.4vw, 2rem);
  }
  .content-block > p,
  .content-block > ul,
  .content-block > ol,
  .content-block > details {
    max-width: 820px;
  }
  .content-block p,
  .content-block li {
    line-height: 1.72;
  }
  .content-block strong {
    color: var(--ink);
  }

  .step {
    border-radius: var(--radius-sm);
  }

  .faq-item summary {
    cursor: pointer;
  }
  .faq-item summary h3 {
    display: inline;
  }

  .home-section h2,
  .final-cta h2 {
    letter-spacing: 0;
  }

  .step {
    background:
      radial-gradient(circle at 100% 0%, rgba(255, 180, 0, 0.10), transparent 34%),
      linear-gradient(180deg, #fff 0%, #F9FAFF 100%);
    border-color: rgba(22, 34, 194, 0.12);
  }
  .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px 24px 28px;
    border: 1px solid rgba(22, 34, 194, 0.10);
    box-shadow: var(--shadow-sm);
  }
  .step h3 {
    min-height: 2.6em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
  }
  .step p {
    max-width: 29ch;
  }

  .step h3 {
    margin-top: 0;
  }

  @media (max-width: 640px) {
    main:not(.home-main) {
      padding-top: 24px;
    }
    .content-block::before {
      width: 3px;
    }
  }

  /* ============= BUTTON SYSTEM ============= */

  .header-cta,
  .btn-primary,
  .cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 11px 20px;
    border: 1px solid rgba(255, 180, 0, 0.72);
    border-radius: var(--radius-sm);
    background:
      linear-gradient(180deg, #FFC64A 0%, var(--accent) 100%);
    color: #050818;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    text-decoration: none;
    box-shadow:
      0 0 0 1px rgba(255, 180, 0, 0.18),
      0 10px 24px rgba(11, 15, 44, 0.14);
    transition:
      transform 0.16s ease,
      box-shadow 0.16s ease,
      background 0.16s ease,
      border-color 0.16s ease;
  }

  .header-cta,
  .btn-primary,
  .cta-btn,
  .btn-ghost,
  .header-signin {
    border-radius: 0;
  }

  .header-cta:hover,
  .btn-primary:hover,
  .cta-btn:hover {
    background:
      linear-gradient(180deg, #FFD36A 0%, #FFB400 100%);
    color: #050818;
    border-color: #FFD36A;
    box-shadow:
      0 0 0 2px rgba(255, 180, 0, 0.28),
      0 14px 30px rgba(11, 15, 44, 0.20);
    transform: translateY(-1px);
    text-decoration: none;
  }

  .header-cta:active,
  .btn-primary:active,
  .cta-btn:active {
    transform: translateY(0);
  }

  .btn-ghost,
  .header-signin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(22, 34, 194, 0.18);
    background: rgba(255, 255, 255, 0.72);
    color: var(--brand);
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    transition:
      transform 0.16s ease,
      background 0.16s ease,
      border-color 0.16s ease,
      color 0.16s ease,
      box-shadow 0.16s ease;
  }

  .btn-ghost:hover,
  .header-signin:hover {
    background: #fff;
    color: var(--brand-dark);
    border-color: rgba(255, 180, 0, 0.58);
    box-shadow: 0 8px 22px rgba(11, 15, 44, 0.10);
    transform: translateY(-1px);
    text-decoration: none;
  }

  .final-cta .btn-primary,
  .final-cta .btn-primary:hover {
    color: #050818;
  }

  .final-cta .btn-primary {
    box-shadow:
      0 0 0 1px rgba(255, 180, 0, 0.22),
      0 12px 28px rgba(0, 0, 0, 0.24);
  }

  nav.main-nav .mobile-cta-row .header-cta,
  nav.main-nav .mobile-cta-row .header-cta:hover {
    color: #050818;
  }

  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }

  /* ============= SALES / SEO PAGE COMPONENTS ============= */

  /* Keep Fraunces for brand moments only. Normal page headings render sharper in the UI font. */
  .content-block > h2,
  .home-section h2,
  .home-section h2[style*="text-align"],
  .final-cta h2 {
    font-family: var(--font);
    font-weight: 800;
    letter-spacing: 0;
    text-shadow: none;
  }

  .section-eyebrow {
    font-family: var(--font);
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  @media (max-width: 1180px) {
    .site-header .header-actions {
      display: flex !important;
      position: relative;
      z-index: 2;
    }

    .site-header .menu-toggle {
      display: inline-flex !important;
    }

    .site-header .header-actions > .header-signin,
    .site-header .header-actions > .header-cta {
      display: none !important;
    }
  }

  /* Crisp audit geometry: square major controls and document/workflow surfaces. */
  .audit-modal-panel,
  .audit-toast,
  .content-block,
  .compare-table-wrap,
  .toc,
  .before-after-card,
  .nav-dropdown-menu {
    border-radius: 0;
  }

  /* Shared progressive enhancements. Content stays visible until JS opts in. */

  .reading-progress {
    position: fixed;
    z-index: 1200;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    pointer-events: none;
  }

  .reading-progress-bar {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    background: var(--accent);
  }

  .hero-product-grid .cinematic-title {
    max-width: 920px;
    margin-inline: auto;
    font-family: var(--font);
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: 0;
  }

  @media (max-width: 720px) {
    .hero-product-grid .cinematic-title {
      font-size: clamp(2.2rem, 10vw, 2.75rem);
      line-height: 1.06;
      letter-spacing: 0;
    }
  }

  /* Dashboard explainer page */

  /* Free Dashboard launch-offer page */

  /* Longer industry-focused homepage headline */

  .cinematic-hero:has(.industry-card-rail) .hero-copy {
    width: min(100%, 1080px);
    max-width: 1080px;
  }

  .cinematic-hero:has(.industry-card-rail) .cinematic-title {
    max-width: 1050px;
    font-size: clamp(2.7rem, 3.5vw, 3.55rem);
    line-height: 1.04;
  }

  @media (max-width: 720px) {
    .cinematic-hero:has(.industry-card-rail) .cinematic-title {
      max-width: 620px;
      font-size: clamp(2.15rem, 9vw, 2.75rem);
    }
  }
/* Blog index and article */

/* ============= HOMEPAGE LAUNCH DESIGN ============= */

.home-main > .cinematic-hero {
  min-height: max(720px, 100svh);
  align-items: stretch;
  justify-content: center;
  padding: clamp(118px, 13vh, 150px) clamp(28px, 5vw, 76px) clamp(64px, 8vh, 92px);
  text-align: left;
  background:
    radial-gradient(ellipse at 73% 42%, rgba(30, 52, 214, 0.52) 0%, transparent 46%),
    radial-gradient(ellipse at 18% 74%, rgba(255, 180, 0, 0.08) 0%, transparent 42%),
    linear-gradient(135deg, #0A0F2D 0%, #0B123F 52%, #050818 100%);
}

/* Schools & universities landing page */

.home-main > .cinematic-hero::before,
.home-main > .cinematic-hero::after {
  left: 27%;
  top: 51%;
}

.home-main > .cinematic-hero::before {
  width: 680px;
  height: 680px;
}

.home-main > .cinematic-hero::after {
  width: 450px;
  height: 450px;
}

.home-main > .cinematic-hero .hero-product-grid {
  width: min(1440px, 100%);
  max-width: none;
  margin: 0 auto;
  padding: 0;
  grid-template-columns: minmax(0, 0.94fr) minmax(480px, 1.06fr);
  gap: clamp(42px, 5vw, 82px);
  align-items: center;
  justify-items: stretch;
  text-align: left;
}

.home-main > .cinematic-hero .hero-copy {
  width: 100%;
  max-width: 700px;
  margin: 0;
  text-align: left;
}

.home-main > .cinematic-hero .cinematic-title {
  max-width: 700px;
  margin: 0;
  font-family: var(--font);
  font-size: clamp(2.8rem, 4.25vw, 4.25rem);
  font-weight: 750;
  line-height: 1.01;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.home-main > .cinematic-hero .cinematic-subtitle {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.25vw, 1.17rem);
  line-height: 1.62;
  letter-spacing: 0;
  text-wrap: pretty;
}

.home-main > .cinematic-hero .hero-cta-row {
  justify-content: flex-start;
  margin-top: 32px;
}

.home-main > .cinematic-hero .hero-cta-row .btn-primary,
.home-main > .cinematic-hero .hero-cta-row .btn-ghost {
  min-height: 52px;
  border-radius: 8px;
  padding: 14px 22px;
}

.hero-dashboard-preview {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 38px 90px rgba(1, 4, 19, 0.5),
    0 0 0 1px rgba(255, 180, 0, 0.12);
}

.hero-dashboard-preview::before {
  display: block;
  width: 7px;
  height: 7px;
  margin: 0 0 10px 4px;
  border-radius: 50%;
  background: #FFB400;
  box-shadow: 14px 0 #1622C2, 28px 0 #D7DBEA;
  content: "";
}

.hero-dashboard-trigger {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #F4F5FA;
  cursor: zoom-in;
}

.hero-dashboard-trigger img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-dashboard-trigger .dashboard-enlarge-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 7px;
  background: rgba(5, 8, 24, 0.86);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-dashboard-trigger .dashboard-enlarge-hint > span {
  color: var(--accent);
  font-size: 1rem;
  line-height: 1;
}

.hero-dashboard-preview figcaption {
  margin: 10px 4px 1px;
  color: #4E5572;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.home-main .btn-primary,
.home-main .btn-ghost,
.home-main .cta-btn,
.home-main .step,
.home-main .before-after-card,
.home-main .faq-item {
  border-radius: 12px;
}

.home-main .step,
.home-main .before-after-card {
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(11, 15, 44, 0.07);
}

.home-main .step {
  position: relative;
  border-color: rgba(22, 34, 194, 0.12);
}

.home-main h1,
.home-main h2,
.home-main h3 {
  font-family: var(--font);
  letter-spacing: -0.025em;
}

@media (max-width: 1080px) {
  .home-main > .cinematic-hero {
    min-height: auto;
    padding-top: 124px;
  }

  .home-main > .cinematic-hero .hero-product-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    gap: 36px;
  }

  .home-main > .cinematic-hero .cinematic-title {
    font-size: clamp(2.55rem, 4.8vw, 3.45rem);
  }
}

@media (max-width: 900px) {
  .home-main > .cinematic-hero {
    min-height: auto;
    padding: 116px 20px 58px;
    text-align: center;
  }

  .home-main > .cinematic-hero::before,
  .home-main > .cinematic-hero::after {
    left: 50%;
    top: 31%;
  }

  .home-main > .cinematic-hero .hero-product-grid {
    width: min(720px, 100%);
    grid-template-columns: 1fr;
    gap: 42px;
    text-align: center;
  }

  .home-main > .cinematic-hero .hero-copy {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
  }

  .home-main > .cinematic-hero .cinematic-title,
  .home-main > .cinematic-hero .cinematic-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .home-main > .cinematic-hero .hero-cta-row {
    justify-content: center;
  }

  .hero-dashboard-preview {
    width: min(680px, 100%);
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .home-main > .cinematic-hero {
    padding: 104px 18px 42px;
  }

  .home-main > .cinematic-hero .hero-product-grid {
    width: 100%;
    gap: 34px;
    padding-top: 0;
  }

  .home-main > .cinematic-hero .cinematic-title {
    font-size: clamp(2.25rem, 10.5vw, 2.7rem);
    line-height: 1.02;
  }

  .home-main > .cinematic-hero .cinematic-subtitle {
    max-width: 350px;
    margin-top: 20px;
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .home-main > .cinematic-hero .hero-cta-row {
    display: grid;
    width: 100%;
    gap: 10px;
  }

  .home-main > .cinematic-hero .hero-cta-row .btn-primary,
  .home-main > .cinematic-hero .hero-cta-row .btn-ghost {
    width: 100%;
  }

  .hero-dashboard-preview {
    padding: 8px;
    border-radius: 14px;
  }

  .hero-dashboard-preview figcaption {
    margin: 8px 2px 0;
    text-align: left;
  }
}
/* Combined dashboard signup and remediation steps. */

/* Free document editor: unpublished launch preparation. */
.home-main.editor-launch-home > .cinematic-hero { scroll-margin-top: 100px; }
/* Carry the homepage's navy, cobalt, and gold through the editor offer. */

/* Accessible pricing examples and the marketing 404 page. */
.table-wrap { max-width: 100%; overflow-x: auto; margin-block: 1.5rem; }
.table-wrap table { width: 100%; border-collapse: collapse; text-align: left; font-size: 1rem; }
.table-wrap caption { text-align: left; font-weight: 600; margin-bottom: .75rem; }
.table-wrap th, .table-wrap td { padding: .9rem; border-bottom: 1px solid #cbd5e1; vertical-align: top; }
.table-wrap thead { background: #eef3fa; color: #142c46; }
.table-wrap th[scope="row"] { font-weight: 500; }
@media (max-width: 600px) {
  .table-wrap table { table-layout: fixed; font-size: .875rem; min-width: 0; }
  .table-wrap caption { white-space: normal; }
  .table-wrap th, .table-wrap td { padding: .65rem .45rem; overflow-wrap: anywhere; }
  .table-wrap th:first-child { width: 48%; }
}

/* Banks and financial institutions */

}
