/* ==========================================================================
   CruxChat — shared design system
   Type: Source Serif 4 (display) / Inter (body, UI)
   Palette: slate + blue (unchanged), amber reserved for CruxVerify flags
   ========================================================================== */

:root {
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;

    --blue-900: #1e3a5f;
    --blue-800: #1e4976;
    --blue-700: #1d5a8a;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --blue-400: #60a5fa;
    --blue-200: #bfdbfe;
    --blue-100: #dbeafe;

    --warm-500: #d97706;
    --warm-400: #f59e0b;
    --warm-50: #fffbeb;

    --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    --measure: 68ch;
    --section-pad: 80px;
    --container: 1080px;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--slate-700);
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--blue-600);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--blue-500);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--slate-900);
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; line-height: 1.3; }

.prose {
    max-width: var(--measure);
    margin-left: auto;
    margin-right: auto;
}

.prose p + p {
    margin-top: 1em;
}

.eyebrow {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--blue-700);
    margin-bottom: 12px;
}

.eyebrow__num {
    color: var(--slate-400);
    font-weight: 500;
    margin-right: 8px;
}

.lead {
    font-size: 1.1875rem;
    color: var(--slate-600);
}

/* Dark sections invert */
.dark {
    background: linear-gradient(160deg, var(--slate-900) 0%, var(--blue-900) 100%);
    color: var(--slate-300);
}

.dark h1, .dark h2, .dark h3 {
    color: #ffffff;
}

.dark .eyebrow {
    color: var(--blue-400);
}

.dark a {
    color: var(--blue-200);
}

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

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

.section {
    padding: var(--section-pad) 0;
}

.section--tint {
    background: var(--slate-50);
    border-top: 1px solid var(--slate-200);
    border-bottom: 1px solid var(--slate-200);
}

.section__header {
    max-width: var(--measure);
    margin: 0 auto 40px;
    text-align: center;
}

.section__header .lead {
    margin-top: 12px;
}

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

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(241, 245, 249, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--slate-200);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo img {
    height: 34px;
    width: auto;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav__link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--slate-600);
}

.nav__link:hover {
    color: var(--slate-900);
    text-decoration: none;
}

.nav__link--active {
    color: var(--slate-900);
}

.nav__cta {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--blue-700);
    padding: 9px 18px;
    border-radius: 8px;
}

.nav__cta:hover {
    background: var(--blue-800);
    color: #ffffff;
    text-decoration: none;
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--slate-700);
}

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

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

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

.hero h1 span {
    color: var(--blue-400);
}

.hero__hook {
    font-size: 1.1875rem;
    margin-top: 20px;
    max-width: 34rem;
}

.hero__hook strong {
    color: #ffffff;
    font-weight: 600;
}

.hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    padding: 13px 26px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn--primary {
    background: var(--blue-700);
    color: #ffffff;
}

.btn--primary:hover {
    background: var(--blue-800);
    color: #ffffff;
    text-decoration: none;
}

.dark .btn--primary {
    background: var(--blue-100);
    color: var(--blue-900);
}

.dark .btn--primary:hover {
    background: var(--blue-200);
    color: var(--blue-900);
}

.btn--ghost {
    background: transparent;
    color: var(--blue-200);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn--ghost:hover {
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
    text-decoration: none;
}

.hero__note {
    font-size: 0.875rem;
    color: var(--slate-400);
    margin-top: 16px;
}

/* Hero signature: one line -> three excerpts */

.split {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.split__source {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.0625rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 16px 18px;
}

.split__source cite {
    display: block;
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--slate-400);
    margin-top: 8px;
}

.split__rail {
    display: flex;
    justify-content: center;
    color: var(--slate-500);
}

.split__out {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.split__card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 3px solid var(--blue-400);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.9375rem;
}

.split__card--paralegal { border-left-color: var(--blue-200); }
.split__card--client { border-left-color: #ffffff; }

.split__role {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--slate-400);
    margin-bottom: 4px;
}

.split__card em {
    font-style: normal;
    color: #ffffff;
}

@media (prefers-reduced-motion: no-preference) {
    .split__card {
        opacity: 0;
        transform: translateY(8px);
        animation: split-in 0.5s ease forwards;
    }
    .split__card:nth-child(1) { animation-delay: 0.3s; }
    .split__card:nth-child(2) { animation-delay: 0.55s; }
    .split__card:nth-child(3) { animation-delay: 0.8s; }

    @keyframes split-in {
        to { opacity: 1; transform: none; }
    }
}

/* --------------------------------------------------------------------------
   Stakes (problem section)
   -------------------------------------------------------------------------- */

.stakes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--slate-200);
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    overflow: hidden;
}

.stake {
    background: #ffffff;
    padding: 28px;
}

.stake h3 {
    margin-bottom: 8px;
}

.stake p {
    font-size: 0.9875rem;
    color: var(--slate-600);
}

.stake__answer {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--blue-700);
}

.stake__answer::before {
    content: "\2192\00a0";
}

.pullquote {
    max-width: var(--measure);
    margin: 48px auto 0;
    padding-left: 24px;
    border-left: 3px solid var(--blue-600);
}

.pullquote p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--slate-800);
}

.pullquote cite {
    display: block;
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.875rem;
    color: var(--slate-500);
    margin-top: 10px;
}

/* --------------------------------------------------------------------------
   Screenshot placeholders (drafting) & figures
   -------------------------------------------------------------------------- */

.shot {
    margin: 32px 0;
}

.shot__frame {
    border: 2px dashed var(--slate-300);
    border-radius: 12px;
    background: var(--slate-50);
    padding: 48px 32px;
    text-align: center;
    color: var(--slate-500);
}

.shot__frame strong {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 0.9375rem;
    color: var(--slate-700);
    margin-bottom: 8px;
}

.shot__frame span {
    font-size: 0.875rem;
}

.shot figcaption {
    font-size: 0.875rem;
    color: var(--slate-500);
    margin-top: 12px;
}

/* --------------------------------------------------------------------------
   System section (rubric + 1:1:N)
   -------------------------------------------------------------------------- */

.system__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
    align-items: start;
    margin-top: 48px;
}

.rubric-card {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 24px 28px;
}

.rubric-card h3 {
    margin-bottom: 10px;
}

.rubric-card p {
    font-size: 0.9875rem;
}

.rubric-card + .rubric-card {
    margin-top: 20px;
}

/* --------------------------------------------------------------------------
   CruxVerify — amber means flagged, nowhere else
   -------------------------------------------------------------------------- */

.verify__demo {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 24px 28px;
    max-width: var(--measure);
    margin: 32px auto 0;
}

.verify__line {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9875rem;
}

.verify__line--flagged {
    background: var(--warm-50);
    border-left: 3px solid var(--warm-500);
}

.verify__tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--warm-500);
    margin-bottom: 4px;
}

.verify__note {
    font-size: 0.875rem;
    color: var(--slate-500);
    margin-top: 10px;
}

/* --------------------------------------------------------------------------
   Capabilities spec table
   -------------------------------------------------------------------------- */

.spec {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    overflow: hidden;
}

.section--tint .spec {
    background: #ffffff;
}

.spec tr:last-child th,
.spec tr:last-child td {
    border-bottom: none;
}

.spec th,
.spec td {
    text-align: left;
    padding: 16px 20px;
    border-bottom: 1px solid var(--slate-200);
    vertical-align: top;
    font-size: 0.9875rem;
}

.spec th {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--slate-900);
    white-space: nowrap;
    width: 220px;
}

.spec td {
    color: var(--slate-600);
}

.spec td strong {
    font-weight: 600;
    color: var(--slate-900);
}

.spec tr:last-child th,
.spec tr:last-child td {
    border-bottom: none;
}

/* --------------------------------------------------------------------------
   Practice areas
   -------------------------------------------------------------------------- */

.practice__feature {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
}

.practice__feature h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.practice__feature .prose {
    max-width: none;
}

.practice__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.practice__card h3 {
    margin-bottom: 8px;
}

.practice__card p {
    font-size: 0.9375rem;
    color: var(--slate-600);
}

/* --------------------------------------------------------------------------
   Worth (ROI scenarios)
   -------------------------------------------------------------------------- */

.worth__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.scenario {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 28px;
}

.scenario h3 {
    margin-bottom: 16px;
}

.scenario__math {
    list-style: none;
    font-size: 0.9375rem;
}

.scenario__math li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--slate-200);
}

.scenario__math li span:last-child {
    font-weight: 600;
    color: var(--slate-900);
    text-align: right;
    white-space: nowrap;
}

.scenario__result {
    margin-top: 16px;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--slate-900);
}

.scenario__reversal {
    font-size: 0.9375rem;
    margin-bottom: 12px;
}

.scenario__mech {
    list-style: none;
    font-size: 0.9375rem;
}

.scenario__mech li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--slate-200);
}

.scenario__mech li strong,
.uncounted li strong {
    font-weight: 600;
    color: var(--slate-900);
}

.scenario__caveat {
    margin-top: 12px;
    font-size: 0.875rem;
    color: var(--slate-500);
}

.model {
    max-width: 640px;
    margin: 0 auto 40px;
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 24px 28px;
}

.model__table {
    width: 100%;
    border-collapse: collapse;
}

.model__table thead th {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--slate-500);
    text-align: right;
    padding: 0 8px 10px;
}

.model__table thead th:last-child {
    color: var(--blue-700);
}

.model__table tbody th {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--slate-700);
    text-align: left;
    padding: 10px 8px;
    border-top: 1px dashed var(--slate-200);
}

.model__table tbody td {
    font-size: 0.9375rem;
    color: var(--slate-600);
    text-align: right;
    padding: 10px 8px;
    border-top: 1px dashed var(--slate-200);
    white-space: nowrap;
}

.model__table tbody td:last-child {
    font-weight: 600;
    color: var(--slate-900);
}

.model__landing {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 2px solid var(--slate-200);
    font-size: 1.0625rem;
    color: var(--slate-700);
    text-align: right;
}

.model__landing strong {
    color: var(--slate-900);
}

.model__note {
    margin-top: 10px;
    font-size: 0.8125rem;
    color: var(--slate-500);
    text-align: right;
}

.worth__split p + p {
    margin-top: 16px;
}

.worth__split strong {
    color: var(--slate-900);
}

.worth__method {
    margin-top: 20px;
    font-size: 0.8125rem;
    color: var(--slate-500);
    text-align: center;
}

.uncounted {
    margin-top: 40px;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 28px 32px;
}

.uncounted h3 {
    margin-bottom: 12px;
}

.uncounted ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 32px;
    font-size: 0.9375rem;
}

.uncounted li {
    padding-left: 20px;
    position: relative;
}

.uncounted li::before {
    content: "+";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--blue-600);
}

.worth__closer {
    margin-top: 36px;
}

.worth__closer p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.125rem;
    color: var(--slate-800);
}

.worth__calc {
    margin-top: 28px;
    font-size: 0.9875rem;
}

/* --------------------------------------------------------------------------
   Trust band
   -------------------------------------------------------------------------- */

.trust__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.trust__item h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.trust__item p {
    font-size: 0.875rem;
    color: var(--slate-600);
}

/* --------------------------------------------------------------------------
   CTA + form (carried over, restyled)
   -------------------------------------------------------------------------- */

.cta {
    padding: 88px 0;
}

.cta__content {
    text-align: center;
}

.cta h1 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.cta__lead {
    font-size: 1.125rem;
    color: var(--slate-300);
    max-width: 38rem;
    margin: 16px auto 40px;
}

.cta__form {
    max-width: 640px;
    margin: 0 auto;
    text-align: left;
}

.cta__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.cta__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.cta__row .cta__field {
    margin-bottom: 0;
}

.cta__field label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-300);
}

.cta__field input,
.cta__field select,
.cta__field textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 1rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cta__field textarea {
    resize: vertical;
    min-height: 96px;
}

.cta__field input::placeholder,
.cta__field textarea::placeholder {
    color: var(--slate-500);
}

.cta__field input:focus,
.cta__field select:focus,
.cta__field textarea:focus {
    outline: none;
    border-color: var(--blue-400);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25);
}

.cta__field select option {
    color: var(--slate-900);
    background: #ffffff;
}

.cta__submit {
    margin-top: 8px;
}

.cta__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cta__status {
    margin-top: 20px;
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: 8px;
}

.cta__status--ok {
    color: var(--blue-100);
    background: rgba(37, 99, 235, 0.18);
    border: 1px solid rgba(96, 165, 250, 0.4);
}

.cta__status--err {
    color: #fecaca;
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.4);
}

.cta__next {
    max-width: 560px;
    margin: 28px auto 0;
    color: var(--slate-300);
    font-size: 1rem;
}

.cta__secondary {
    margin-top: 20px;
    font-size: 0.9375rem;
}

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

.footer {
    background: var(--slate-100);
    border-top: 1px solid var(--slate-200);
    padding: 40px 0;
    color: var(--slate-500);
    font-size: 0.875rem;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer__links {
    display: flex;
    gap: 24px;
}

.footer a {
    color: var(--slate-700);
}

.footer a:hover {
    color: var(--blue-700);
}

.footer .logo img {
    height: 28px;
}

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

@media (max-width: 900px) {
    .hero__grid,
    .system__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .trust__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .practice__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    :root {
        --section-pad: 56px;
    }

    .nav__links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #ffffff;
        border-bottom: 1px solid var(--slate-200);
        padding: 8px 24px 16px;
    }

    .nav--open .nav__links {
        display: flex;
    }

    .nav__links .nav__link {
        padding: 12px 0;
    }

    .nav__links .nav__cta {
        margin-top: 8px;
        text-align: center;
    }

    .nav__toggle {
        display: block;
    }

    .stakes,
    .worth__grid,
    .cta__row {
        grid-template-columns: 1fr;
    }

    .cta__row {
        margin-bottom: 0;
    }

    .cta__row .cta__field {
        margin-bottom: 16px;
    }

    .uncounted ul {
        grid-template-columns: 1fr;
    }

    .spec th {
        width: auto;
        display: block;
        padding-bottom: 4px;
        border-bottom: none;
    }

    .spec td {
        display: block;
        padding-top: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .btn,
    .cta__field input,
    .cta__field select,
    .cta__field textarea {
        transition: none;
    }
}

/* --------------------------------------------------------------------------
   Rubric card (persona excerpt) & report tabs
   -------------------------------------------------------------------------- */

.rubric {
    max-width: var(--measure);
    margin: 28px auto;
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-left: 3px solid var(--blue-600);
    border-radius: 10px;
    padding: 22px 26px;
}

.rubric__label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--slate-500);
    margin-bottom: 12px;
}

.rubric__lines {
    list-style: none;
}

.rubric__lines li {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.0625rem;
    color: var(--slate-800);
    padding: 6px 0;
}

.rubric__lines li + li {
    border-top: 1px dashed var(--slate-200);
}

.rubric__foot {
    margin-top: 12px;
    font-size: 0.875rem;
    color: var(--slate-500);
}

.tabs {
    margin-top: 32px;
}

.tabs__bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    max-width: 675px;
    margin: 0 auto 16px;
}

.tabs__btn {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--slate-600);
    background: #ffffff;
    border: 1px solid var(--slate-300);
    border-radius: 8px;
    padding: 9px 20px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.tabs__btn:hover {
    color: var(--slate-900);
}

.tabs__btn--active {
    color: #ffffff;
    background: var(--blue-700);
    border-color: var(--blue-700);
}

.tabs__panel {
    max-width: 675px;
    margin: 0 auto;
}

.tabs__panel img {
    width: 100%;
    height: auto;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.tabs__caption {
    max-width: 675px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 14px;
    font-size: 0.875rem;
    color: var(--slate-500);
}

@media (max-width: 640px) {
    .tabs__bar {
        flex-wrap: wrap;
    }
}

/* CruxVerify sub-block within trust */
.trust__verify {
    margin-top: 56px;
    padding-top: 44px;
    border-top: 1px solid var(--slate-200);
}

.trust__verify h3 {
    font-size: 1.4rem;
    margin-bottom: 14px;
    text-align: center;
}

.trust__verify .prose {
    margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   Interior pages: page header, lifecycle steps, posture table
   -------------------------------------------------------------------------- */

.page-head {
    padding: 64px 0 56px;
    text-align: center;
}

.page-head h1 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.page-head__lead {
    max-width: 42rem;
    margin: 18px auto 0;
    font-size: 1.125rem;
    color: var(--slate-300);
}

.section__note {
    max-width: var(--measure);
    margin: 14px auto 0;
    font-size: 1rem;
    color: var(--slate-600);
}

.steps {
    max-width: var(--measure);
    margin: 0 auto;
    list-style: none;
    counter-reset: step;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding: 16px 0 16px 56px;
    border-bottom: 1px dashed var(--slate-200);
    font-size: 1rem;
    color: var(--slate-600);
}

.steps li:last-child {
    border-bottom: none;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--blue-100);
    color: var(--blue-900);
    font-weight: 600;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.steps li strong {
    color: var(--slate-900);
    font-weight: 600;
}

.posture {
    width: 100%;
    border-collapse: collapse;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    overflow: hidden;
}

.section--tint .posture {
    background: #ffffff;
}

.prose + .posture {
    margin-top: 32px;
}

.posture th,
.posture td {
    border: 1px solid var(--slate-400);
}

.posture thead th {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--slate-500);
    text-align: left;
    padding: 14px 16px;
    border-bottom: 2px solid var(--slate-400);
}

.posture thead th:last-child {
    color: var(--blue-700);
}

.posture tbody th {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--slate-900);
    text-align: left;
    padding: 14px 16px;
    vertical-align: top;
    width: 180px;
}

.posture tbody td {
    font-size: 0.9375rem;
    color: var(--slate-600);
    padding: 14px 16px;
    vertical-align: top;
}

.posture__note {
    max-width: var(--measure);
    margin: 20px auto 0;
    font-size: 0.9375rem;
    color: var(--slate-500);
}

.spec__rule {
    font-weight: 400;
    font-size: 0.8125rem;
    color: var(--slate-500);
    white-space: nowrap;
}

@media (max-width: 720px) {
    .posture {
        display: block;
        overflow-x: auto;
    }
}


/* --------------------------------------------------------------------------
   How It Works: timeline, client script, three-card grid
   -------------------------------------------------------------------------- */

.tl {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}

.tl::before {
    content: "";
    position: absolute;
    left: 92px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: var(--slate-200);
}

.tl__item {
    position: relative;
    display: flex;
    gap: 34px;
    padding: 16px 0;
}

.tl__time {
    width: 72px;
    flex-shrink: 0;
    text-align: right;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--slate-900);
    padding-top: 1px;
}

.tl__dot {
    position: absolute;
    left: 86px;
    top: 21px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--blue-700);
    box-sizing: border-box;
}

.tl__item--hl .tl__dot {
    background: var(--blue-700);
}

.tl__tag {
    display: block;
    width: fit-content;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--blue-700);
    background: var(--blue-100);
    border-radius: 6px;
    padding: 2px 8px;
    margin-bottom: 6px;
}

.tl__body {
    font-size: 0.9875rem;
    color: var(--slate-600);
}

.tl__body strong {
    color: var(--slate-900);
    font-weight: 600;
}

.tl__note {
    max-width: 720px;
    margin: 28px auto 0;
    text-align: center;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.0625rem;
    color: var(--slate-500);
}

.tl__coda {
    margin-top: 36px;
}

.tl__coda p {
    font-size: 1.0625rem;
    color: var(--slate-700);
}

.tl__coda strong {
    color: var(--slate-900);
}

.script {
    max-width: var(--measure);
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-left: 4px solid var(--blue-700);
    border-radius: 0 12px 12px 0;
    padding: 28px 32px;
}

.script p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--slate-800);
}

.script cite {
    display: block;
    margin-top: 14px;
    font-style: normal;
    font-size: 0.875rem;
    color: var(--slate-500);
}

.cards-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .cards-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .tl::before { left: 56px; }
    .tl__dot { left: 50px; }
    .tl__time { width: 40px; font-size: 0.875rem; }
    .tl__item { gap: 30px; }
}


.reveal {
    max-width: var(--measure);
    margin: 28px auto 0;
}

.reveal summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--blue-700);
    text-align: center;
    list-style: none;
}

.reveal summary::after {
    content: " \2193";
}

.reveal[open] summary::after {
    content: " \2191";
}

.reveal__card {
    margin-top: 16px;
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 24px 28px;
}

.reveal__query {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1rem;
    color: var(--slate-800);
    margin-bottom: 16px;
}

.reveal__card ul {
    list-style: none;
}

.reveal__card li {
    padding: 10px 0;
    border-top: 1px dashed var(--slate-200);
    font-size: 0.9375rem;
    color: var(--slate-600);
}

.reveal__cite {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--blue-700);
    background: var(--blue-100);
    border-radius: 6px;
    padding: 2px 8px;
    margin-right: 8px;
}

.reveal__foot {
    margin-top: 14px;
    font-size: 0.8125rem;
    color: var(--slate-500);
}


/* Generic-vs-CruxChat comparison */
.compare {
    max-width: 880px;
    margin: 32px auto 0;
}

.compare tbody td:first-child {
    color: var(--slate-500);
}

.compare tbody td:last-child {
    color: var(--slate-700);
    font-weight: 500;
}


/* --------------------------------------------------------------------------
   FAQ: category jump nav and Q&A accordions
   -------------------------------------------------------------------------- */

.faq-toc {
    background: var(--slate-100);
    border-bottom: 1px solid var(--slate-200);
    padding: 14px 0;
}

.faq-toc .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 22px;
}

.faq-toc a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-600);
}

.faq-toc a:hover {
    color: var(--blue-700);
    text-decoration: none;
}

.qa {
    max-width: var(--measure);
    margin: 0 auto;
}

.qa details {
    border-bottom: 1px solid var(--slate-200);
}

.qa details:first-child {
    border-top: 1px solid var(--slate-200);
}

.qa summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 18px;
    padding: 18px 4px;
    font-weight: 600;
    font-size: 1.0625rem;
    color: var(--slate-900);
}

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

.qa summary::after {
    content: "+";
    flex-shrink: 0;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--blue-700);
    line-height: 1;
}

.qa details[open] summary::after {
    content: "\2212";
}

.qa details > div {
    padding: 0 4px 22px;
    font-size: 1rem;
    color: var(--slate-600);
}

.qa details > div p + p {
    margin-top: 12px;
}

.qa details > div ul {
    margin: 12px 0 0 22px;
}

.qa details > div li + li {
    margin-top: 8px;
}

.qa details > div strong {
    font-weight: 600;
    color: var(--slate-900);
}

html {
    scroll-behavior: smooth;
}


.section--compact {
    padding: 44px 0 52px;
}

.section--compact .section__header {
    margin-bottom: 18px;
}

.section--compact .eyebrow {
    margin-bottom: 0;
}


/* Nested reveal inside FAQ accordions: restore reveal styling over qa row styling */
.qa .reveal {
    border: none;
    margin-top: 16px;
}

.qa .reveal summary {
    justify-content: center;
    padding: 6px 0;
    font-size: 0.9375rem;
    color: var(--blue-700);
}

.qa .reveal summary::after {
    content: " \2193";
    color: var(--blue-700);
    font-size: 0.9375rem;
}

.qa .reveal[open] summary::after {
    content: " \2191";
}
