/* ===================================================================
   Integrity Data Group — Design System
   Concept: the aesthetic of a well-kept ledger and an ink filing stamp.
   Paper-green background, hairline rules like ledger paper, a stamp-red
   accent for primary action (literally "stamped"), and a mono utility
   face reserved for anything data-shaped: tags, timestamps, jurisdiction
   codes. The signature element is the activity ticker beneath the nav —
   a quiet, honest nod to "the moment it's filed, you'll know," labelled
   as sample data until the real feed is wired in.
   =================================================================== */

:root {
    --paper: #eef2ea;
    --paper-raised: #f6f8f3;
    --ink: #1a201c;
    --ink-soft: #3c453e;
    --muted: #5c6a61;
    --rule: #c9d3c3;
    --rule-strong: #a9b7a0;

    --stamp: #a23b2e;
    --stamp-dark: #833025;
    --navy: #1f3a5f;
    --navy-dark: #17293f;

    --font-display: "Source Serif 4", ui-serif, Georgia, serif;
    --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    --wrap: 1120px;
    --radius: 3px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

/* Reading-width sections: the container stays full width so its left edge lines up with the
   hero and every other section; only the content is capped to a comfortable line length. */
.wrap--read > * {
    max-width: 74ch;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; font-weight: 600; font-family: var(--font-body); }

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

a { color: var(--navy); text-decoration-color: var(--rule-strong); }
a:hover { color: var(--stamp); }

strong { color: var(--ink); }

:focus-visible {
    outline: 2px solid var(--stamp);
    outline-offset: 3px;
}

/* ---------- Ticker (signature element) ---------- */

.ticker {
    background: var(--navy-dark);
    color: #d9e2ea;
    overflow: hidden;
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    border-bottom: 1px solid var(--navy);
}

.ticker__track {
    display: inline-flex;
    gap: 2.5rem;
    padding: 6px 0;
    animation: ticker-scroll 42s linear infinite;
    will-change: transform;
}

.ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding-right: 2.5rem;
    border-right: 1px solid rgba(217, 226, 234, 0.2);
    opacity: 0.92;
}

@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 1px 6px;
    border-radius: 2px;
    text-transform: uppercase;
}

.tag--stamp { background: rgba(162, 59, 46, 0.85); color: #fbeceA; }
.tag--navy  { background: rgba(31, 58, 95, 0.9); color: #dce6f0; }

/* ---------- Header / Nav ---------- */

.site-header {
    background: var(--navy-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
    position: relative;
}

.wordmark {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #eef2ea;
}

.wordmark__mark {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    background: #eef2ea;
    color: var(--navy-dark);
    padding: 4px 7px;
    border-radius: 2px;
}

.wordmark__name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 0.92rem;
}

.site-nav a {
    color: #d5dfe8;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav a:hover { color: #f2a99a; }

.site-nav__cta {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid #d5dfe8;
    padding: 6px 12px;
    border-radius: 2px;
    color: #eef2ea !important;
}

.site-nav__cta:hover {
    background: var(--stamp);
    border-color: var(--stamp);
    color: #fff !important;
}

.nav-toggle, .nav-toggle__label { display: none; }

/* ---------- Nav dropdown ("Product") — <details>/<summary>, no JS needed, works the
   same way on desktop click and inside the mobile collapsed nav ---------- */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown summary {
    color: #d5dfe8;
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
}

.nav-dropdown summary::-webkit-details-marker { display: none; }

.nav-dropdown summary:hover { color: #f2a99a; }

.nav-dropdown summary::after {
    content: " \25BE"; /* ▾ */
    font-size: 0.7em;
}

.nav-dropdown[open] summary::after {
    content: " \25B4"; /* ▴ */
}

.nav-dropdown__menu {
    display: flex;
    flex-direction: column;
}

.nav-dropdown__menu a {
    color: #d5dfe8;
    text-decoration: none;
    white-space: nowrap;
}

.nav-dropdown__menu a:hover { color: #f2a99a; }

@media (min-width: 861px) {
    .nav-dropdown__menu {
        position: absolute;
        top: 100%;
        left: 0;
        margin-top: 10px;
        background: var(--navy-dark);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 2px;
        padding: 8px 0;
        min-width: 200px;
        z-index: 20;
    }

    .nav-dropdown__menu a {
        padding: 8px 16px;
    }
}

/* ---------- Buttons (ink-stamp motif, used sparingly) ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
}

.btn--primary {
    background: var(--stamp);
    color: #fdf3f1;
    border-color: var(--stamp);
}
.btn--primary:hover { background: var(--stamp-dark); color: #fff; }

.btn--secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn--secondary:hover { border-color: var(--stamp); color: var(--stamp); }

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 1.75rem;
}

/* ---------- Layout helpers ---------- */

section {
    padding: 64px 0;
    border-bottom: 1px solid var(--rule);
}

section:last-of-type { border-bottom: none; }

.section--tight { padding: 44px 0; }

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--stamp);
    margin-bottom: 0.6em;
    display: block;
}

.eyebrow--navy { color: var(--navy); }

.lede {
    font-size: 1.15rem;
    max-width: 62ch;
}

/* ---------- Hero ---------- */

.hero {
    padding: 72px 0 56px;
}

.hero h1 {
    max-width: 16ch;
}

.hero__sub {
    max-width: 60ch;
    font-size: 1.15rem;
    color: var(--ink-soft);
}

/* ---------- Two-column audience split ---------- */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    overflow: hidden;
}

.split__panel {
    background: var(--paper-raised);
    padding: 32px;
}

.split__panel a.panel-link {
    text-decoration: none;
    color: var(--ink);
    display: block;
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.split__panel a.panel-link:hover { color: var(--stamp); }

/* ---------- Feature list (why work with us / what we do) ---------- */

.feature-list {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 2rem;
}

.feature-list h3 {
    margin-bottom: 0.35em;
}

.feature-list h3::before {
    content: "—";
    color: var(--stamp);
    margin-right: 0.5em;
}

/* ---------- Numbered steps (a genuine sequence) ---------- */

.steps {
    counter-reset: step;
    margin-top: 2rem;
}

.step {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 20px;
    padding: 22px 0;
    border-top: 1px solid var(--rule);
}

.step:last-child { border-bottom: 1px solid var(--rule); }

.step__num {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--muted);
    padding-top: 2px;
}

.step__num::before {
    counter-increment: step;
    content: "STEP " counter(step, decimal-leading-zero);
}

/* ---------- Coverage / catalog chips ---------- */

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 0.75rem;
}

.chip {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    background: var(--paper-raised);
    border: 1px solid var(--rule-strong);
    border-radius: 999px;
    padding: 4px 12px;
    color: var(--ink-soft);
}

/* ---------- FAQ ---------- */

.faq-item {
    padding: 20px 0;
    border-top: 1px solid var(--rule);
}

.faq-item:last-child { border-bottom: 1px solid var(--rule); }

.faq-item h3 { margin-bottom: 0.4em; }

/* ---------- Callout / closing panels ---------- */

.callout {
    background: var(--paper-raised);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 40px;
    text-align: left;
}

.callout--center { text-align: center; }

/* ---------- Placeholder / stub page notice ---------- */

.stub-notice {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--paper-raised);
    border: 1px dashed var(--rule-strong);
    color: var(--muted);
    padding: 6px 12px;
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--navy-dark);
    color: #cdd8e2;
    margin-top: 0;
}

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding: 48px 24px 32px;
    flex-wrap: wrap;
}

.site-footer__brand { max-width: 320px; }

.site-footer__brand p {
    color: #a9bbca;
    font-size: 0.9rem;
    margin-top: 10px;
}

.site-footer__brand p a {
    color: #a9bbca;
    text-decoration-color: rgba(169, 187, 202, 0.5);
}

.site-footer__brand p a:hover { color: #fff; }

/* .wordmark__mark is already light-on-navy by default, which now matches
   both the header and footer, so no footer-specific override is needed. */

.site-footer__cols {
    display: flex;
    gap: 56px;
    flex-wrap: wrap;
}

.site-footer__cols h3 {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8fa3b5;
    margin-bottom: 0.9em;
}

.site-footer__cols a {
    display: block;
    color: #d5dfe8;
    text-decoration: none;
    font-size: 0.92rem;
    margin-bottom: 8px;
}

.site-footer__cols a:hover { color: #fff; }

.site-footer__legal {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 16px 24px;
    font-size: 0.8rem;
    color: #7e93a6;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
    .feature-list { grid-template-columns: 1fr; }
    .split { grid-template-columns: 1fr; }

    .nav-toggle__label {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 34px;
        height: 34px;
        cursor: pointer;
    }
    .nav-toggle__label span {
        display: block;
        height: 2px;
        background: #eef2ea;
        border-radius: 2px;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy-dark);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 8px 24px 16px;
    }

    .site-nav a {
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .site-nav__cta {
        margin-top: 10px;
        display: inline-block;
    }

    .nav-toggle:checked ~ .site-nav {
        display: flex;
    }

    .nav-dropdown {
        display: block;
        width: 100%;
    }

    .nav-dropdown__menu {
        padding-left: 16px;
    }

    .nav-dropdown__menu a {
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}
