/* =====================================================================
   SYORITY marketing site — design system
   Single source of truth for tokens. Every page uses these variables.
   Mobile-first. No framework.
   ===================================================================== */

:root {
    /* Brand */
    --navy:        #1E2761;
    --navy-deep:   #161d4a;  /* subtle navy-to-navy gradient partner */
    --red:         #E41E26;
    --red-dark:    #C4141C;
    --ice:         #CADCFC;
    --ice-soft:    #E8EFFD;

    /* Neutrals */
    --white:       #FFFFFF;
    --grey-50:     #F7F8FB;
    --grey-100:    #EEF0F5;
    --grey-300:    #C9CDD8;
    --grey-600:    #5A6072;
    --grey-800:    #2B3040;
    --ink:         #1A1E2C;

    /* Spacing scale */
    --sp-1: 0.25rem;   /*  4px */
    --sp-2: 0.5rem;    /*  8px */
    --sp-3: 0.75rem;   /* 12px */
    --sp-4: 1rem;      /* 16px */
    --sp-5: 1.5rem;    /* 24px */
    --sp-6: 2rem;      /* 32px */
    --sp-7: 3rem;      /* 48px */
    --sp-8: 4rem;      /* 64px */
    --sp-9: 6rem;      /* 96px */

    /* Type scale */
    --fs-sm:   0.875rem;
    --fs-base: 1rem;
    --fs-md:   1.125rem;
    --fs-lg:   1.375rem;
    --fs-xl:   1.75rem;
    --fs-2xl:  2.25rem;
    --fs-3xl:  3rem;

    --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

    --radius: 4px;
    --shadow-panel: 0 8px 28px rgba(22, 29, 74, 0.16);
    --header-h: 4.25rem;
    --container: 74rem;
}

/* ------------------------------------------------------------------ */
/* Base                                                                */
/* ------------------------------------------------------------------ */

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    color: var(--navy);
    line-height: 1.2;
    margin: 0 0 var(--sp-4);
    font-weight: 700;
}

h1 { font-size: var(--fs-2xl); letter-spacing: -0.01em; }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }

p { margin: 0 0 var(--sp-4); }

a { color: var(--navy); }

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

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

.section { padding: var(--sp-8) 0; }
.section--ice { background: var(--ice-soft); }
.section--navy {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: var(--white);
}
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }

/* Accessibility helpers */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: var(--sp-4);
    top: -3rem;
    z-index: 200;
    background: var(--navy);
    color: var(--white);
    padding: var(--sp-2) var(--sp-4);
    border-radius: 0 0 var(--radius) var(--radius);
    text-decoration: none;
    transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

:focus-visible {
    outline: 3px solid var(--navy);
    outline-offset: 2px;
}
.section--navy :focus-visible,
.site-footer :focus-visible {
    outline-color: var(--ice);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--grey-100);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    min-height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--navy);
    text-decoration: none;
}
.brand-mark {
    width: 0.55rem;
    height: 0.55rem;
    background: var(--red);
    display: inline-block;
}

.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0 0.6rem;
    background: none;
    border: 1px solid var(--grey-300);
    border-radius: var(--radius);
    cursor: pointer;
}
.nav-toggle .bar {
    height: 2px;
    background: var(--navy);
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav panel */
.site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--grey-100);
    box-shadow: var(--shadow-panel);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
}
.site-nav[data-open="true"] { display: block; }

.nav-list {
    list-style: none;
    margin: 0;
    padding: var(--sp-2) 0;
}
.nav-item { border-bottom: 1px solid var(--grey-100); }
.nav-item:last-child { border-bottom: 0; }

.nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--sp-3) var(--sp-4);
    font: inherit;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    background: none;
    border: 0;
    cursor: pointer;
    text-align: left;
}
.nav-link:hover { color: var(--red); }

.caret {
    width: 0.6rem;
    height: 0.6rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.15s ease;
    flex: 0 0 auto;
    margin-left: var(--sp-2);
}
.nav-link[aria-expanded="true"] .caret { transform: rotate(225deg); }

.dropdown {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0 0 var(--sp-2);
    background: var(--grey-50);
}
.nav-link[aria-expanded="true"] + .dropdown { display: block; }

.dropdown a {
    display: block;
    padding: var(--sp-2) var(--sp-6);
    color: var(--grey-800);
    text-decoration: none;
    font-size: var(--fs-sm);
}
.dropdown a:hover { color: var(--red); }

.login-group-title {
    margin: var(--sp-3) 0 var(--sp-1);
    padding: 0 var(--sp-6);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--grey-600);
}

.nav-actions {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    padding: var(--sp-4);
    border-top: 1px solid var(--grey-100);
}

.btn-demo {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius);
    transition: background 0.15s ease;
}
.btn-demo:hover { background: var(--red-dark); }

/* Desktop navigation */
@media (min-width: 62rem) {
    .nav-toggle { display: none; }

    .site-nav {
        display: flex;
        align-items: center;
        gap: var(--sp-5);
        position: static;
        background: none;
        border: 0;
        box-shadow: none;
        overflow: visible;
        max-height: none;
    }

    .nav-list {
        display: flex;
        align-items: center;
        padding: 0;
    }
    .nav-item {
        position: relative;
        border: 0;
    }
    .nav-link {
        width: auto;
        padding: var(--sp-3) var(--sp-3);
        font-size: var(--fs-sm);
    }
    .caret {
        width: 0.45rem;
        height: 0.45rem;
        margin-left: 0.4rem;
        position: relative;
        top: -2px;
    }

    .dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 15rem;
        background: var(--white);
        border-top: 3px solid var(--red);
        border-radius: 0 0 var(--radius) var(--radius);
        box-shadow: var(--shadow-panel);
        padding: var(--sp-2) 0;
    }
    .dropdown a { padding: var(--sp-2) var(--sp-4); }
    .login-group-title { padding: 0 var(--sp-4); }

    /* Hover-open for pointer users; JS handles click/keyboard */
    .nav-item:hover > .dropdown,
    .nav-item:focus-within > .dropdown { display: block; }

    .nav-actions {
        flex-direction: row;
        align-items: center;
        padding: 0;
        border: 0;
    }
    .nav-actions .dropdown {
        left: auto;
        right: 0;
    }
}

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

.site-footer {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: var(--ice);
    margin-top: var(--sp-9);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-6);
    padding: var(--sp-8) 0 var(--sp-6);
}

.footer-col h2 {
    color: var(--white);
    font-size: var(--fs-sm);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--sp-3);
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-col li { margin-bottom: var(--sp-2); }

.footer-col a {
    color: var(--ice);
    text-decoration: none;
    font-size: var(--fs-sm);
}
.footer-col a:hover { color: var(--white); text-decoration: underline; }

.footer-col address {
    font-style: normal;
    font-size: var(--fs-sm);
    line-height: 1.7;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(202, 220, 252, 0.4);
    border-radius: var(--radius);
    margin-top: var(--sp-3);
}
.footer-social svg { fill: var(--ice); }
.footer-social a:hover svg { fill: var(--white); }

.footer-legal {
    border-top: 1px solid rgba(202, 220, 252, 0.2);
    padding: var(--sp-4) 0;
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    font-size: var(--fs-sm);
}
.footer-legal a { color: var(--ice); }

@media (min-width: 48rem) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 62rem) {
    h1 { font-size: var(--fs-3xl); }
    .section { padding: var(--sp-9) 0; }
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-legal {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* ------------------------------------------------------------------ */
/* Shared page primitives (used by later content steps)                */
/* ------------------------------------------------------------------ */

.eyebrow {
    display: inline-block;
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: var(--sp-3);
}
.section--navy .eyebrow { color: var(--ice); }

.lede {
    font-size: var(--fs-md);
    color: var(--grey-600);
    max-width: 44rem;
}
.section--navy .lede { color: var(--ice); }

.card {
    background: var(--white);
    border: 1px solid var(--grey-100);
    border-radius: var(--radius);
    padding: var(--sp-5);
}
.section--ice .card { border-color: var(--ice); }

.btn-ghost {
    display: inline-block;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius);
    color: var(--white);
    border: 2px solid rgba(202, 220, 252, 0.7);
    transition: border-color 0.15s ease, background 0.15s ease;
}
.btn-ghost:hover {
    border-color: var(--white);
    background: rgba(202, 220, 252, 0.12);
}

/* Secondary action on light backgrounds (not the red demo CTA) */
.btn-navy {
    display: inline-block;
    background: var(--navy);
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius);
    border: 2px solid var(--navy);
    cursor: pointer;
    font: inherit;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-navy:hover {
    background: var(--navy-deep);
    border-color: var(--navy-deep);
}

/* ------------------------------------------------------------------ */
/* Home: hero                                                          */
/* ------------------------------------------------------------------ */

.hero {
    background:
        /* Faint plant-structure texture: vertical stacks + horizontal pipe runs */
        repeating-linear-gradient(90deg,
            rgba(202, 220, 252, 0.05) 0, rgba(202, 220, 252, 0.05) 1px,
            transparent 1px, transparent 120px),
        repeating-linear-gradient(0deg,
            rgba(202, 220, 252, 0.04) 0, rgba(202, 220, 252, 0.04) 1px,
            transparent 1px, transparent 90px),
        linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: var(--white);
    padding: var(--sp-8) 0;
}
.hero h1 {
    color: var(--white);
    max-width: 46rem;
}
.hero-sub {
    font-size: var(--fs-md);
    color: var(--ice);
    max-width: 42rem;
    margin-bottom: var(--sp-6);
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
}

/* ------------------------------------------------------------------ */
/* Home: credibility strip                                             */
/* ------------------------------------------------------------------ */

.cred-strip {
    background: var(--ice-soft);
    border-bottom: 1px solid var(--ice);
    padding: var(--sp-5) 0;
    text-align: center;
}
.cred-lead {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: var(--sp-2);
}
.cred-mentions {
    font-size: var(--fs-sm);
    color: var(--grey-600);
    margin: 0;
}

/* ------------------------------------------------------------------ */
/* Home: product cards                                                 */
/* ------------------------------------------------------------------ */

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-5);
    margin-top: var(--sp-6);
}

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--grey-100);
    border-top: 4px solid var(--navy);
    border-radius: var(--radius);
    padding: var(--sp-6);
    box-shadow: 0 2px 10px rgba(22, 29, 74, 0.05);
}
.product-card h3 { margin-bottom: var(--sp-1); }
.product-tag {
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--grey-600);
    margin-bottom: var(--sp-4);
}

.chip-list {
    list-style: none;
    margin: 0 0 var(--sp-5);
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
}
.chip {
    background: var(--ice-soft);
    border: 1px solid var(--ice);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: var(--fs-sm);
    color: var(--grey-800);
}
.chip strong {
    color: var(--navy);
    margin-right: 0.35rem;
}

.product-link {
    margin-top: auto;
    font-weight: 700;
    text-decoration: none;
    color: var(--navy);
}
.product-link:hover { color: var(--red); }

/* ------------------------------------------------------------------ */
/* Home: two-lane diagram                                              */
/* ------------------------------------------------------------------ */

.lanes {
    margin-top: var(--sp-6);
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}

.lane {
    background: var(--white);
    border: 1px solid var(--ice);
    border-radius: var(--radius);
    padding: var(--sp-4);
}

.lane-title {
    display: inline-block;
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: var(--sp-3);
}

.lane-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    counter-reset: step;
}
.lane-steps li {
    position: relative;
    background: var(--ice-soft);
    border: 1px solid var(--ice);
    border-radius: var(--radius);
    padding: var(--sp-2) var(--sp-3);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--grey-800);
}

/* Connecting arrows between steps */
.lane-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -0.65rem;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid var(--navy);
    border-bottom: 2px solid var(--navy);
    transform: translateX(-50%) rotate(45deg);
    z-index: 1;
}

.lane-bracket {
    border: 2px solid var(--navy);
    border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    height: 1.4rem;
    position: relative;
    margin-top: var(--sp-1);
}
.lane-bracket-label {
    position: absolute;
    top: 0.45rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy);
    color: var(--white);
    font-size: var(--fs-sm);
    font-weight: 700;
    padding: 0.35rem 1.1rem;
    border-radius: 999px;
    white-space: nowrap;
}

@media (min-width: 62rem) {
    .lane-steps {
        flex-direction: row;
        align-items: stretch;
    }
    .lane-steps li {
        flex: 1;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .lane-steps li:not(:last-child)::after {
        left: auto;
        right: -0.65rem;
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
    }
    .lanes { gap: var(--sp-3); }
    .lane-bracket { margin-top: var(--sp-2); }
}

/* ------------------------------------------------------------------ */
/* Home: differentiators + CTA band                                    */
/* ------------------------------------------------------------------ */

.diff-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-5);
    margin-top: var(--sp-6);
}
.diff-card { border-top: 3px solid var(--red); }
.diff-card p { margin: 0; color: var(--grey-600); }

.cta-band-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-2);
}
.cta-band .lede { margin-bottom: var(--sp-4); }

@media (min-width: 48rem) {
    .diff-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 62rem) {
    .hero { padding: var(--sp-9) 0; }
    .product-grid { grid-template-columns: 1fr 1fr; }
}

/* ------------------------------------------------------------------ */
/* Product pages: sticky module navigator                              */
/* ------------------------------------------------------------------ */

.subnav {
    position: sticky;
    top: var(--header-h);
    z-index: 90;
    background: var(--navy);
    box-shadow: 0 2px 8px rgba(22, 29, 74, 0.25);
}
.subnav-inner {
    display: flex;
    gap: var(--sp-2);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.subnav a {
    flex: 0 0 auto;
    color: var(--ice);
    text-decoration: none;
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: var(--sp-3) var(--sp-4);
    border-bottom: 3px solid transparent;
}
.subnav a:hover,
.subnav a:focus-visible {
    color: var(--white);
    border-bottom-color: var(--red);
}

/* Anchor targets clear the sticky header + subnav */
.module-section {
    scroll-margin-top: calc(var(--header-h) + 3.5rem);
}

/* ------------------------------------------------------------------ */
/* Product pages: feature cards and state flows                        */
/* ------------------------------------------------------------------ */

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-4);
    margin-top: var(--sp-6);
}
.feature-card h3 { font-size: var(--fs-md); }
.feature-card p:last-child { margin-bottom: 0; }
.feature-card p { color: var(--grey-600); }

.wp-code {
    font-family: 'Consolas', 'SFMono-Regular', monospace;
    font-size: 0.85em;
    background: var(--ice-soft);
    border: 1px solid var(--ice);
    border-radius: var(--radius);
    padding: 0.1rem 0.45rem;
    color: var(--navy);
    white-space: nowrap;
}

.state-flow {
    list-style: none;
    margin: var(--sp-4) 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
}
.state-flow li {
    position: relative;
    background: var(--ice-soft);
    border: 1px solid var(--ice);
    border-radius: 999px;
    padding: 0.25rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--navy);
}
.state-flow li:not(:last-child) { margin-right: 0.9rem; }
.state-flow li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -0.8rem;
    top: 50%;
    width: 0.4rem;
    height: 0.4rem;
    border-right: 2px solid var(--grey-600);
    border-bottom: 2px solid var(--grey-600);
    transform: translateY(-50%) rotate(-45deg);
}

/* ------------------------------------------------------------------ */
/* Product pages: persona strip + integrations band                    */
/* ------------------------------------------------------------------ */

.persona-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-4);
    margin-top: var(--sp-6);
}
.persona-card {
    background: var(--grey-50);
    border: 1px solid var(--grey-100);
    border-left: 3px solid var(--navy);
    border-radius: var(--radius);
    padding: var(--sp-4);
}
.persona-card h3 {
    font-size: var(--fs-base);
    margin-bottom: var(--sp-1);
}
.persona-card p {
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--grey-600);
}

.integration-list {
    list-style: none;
    margin: var(--sp-6) 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-3);
}
.integration-tile {
    background: var(--white);
    border: 1px solid var(--ice);
    border-radius: var(--radius);
    padding: var(--sp-4);
    font-weight: 700;
    color: var(--navy);
}
.integration-tile span {
    display: block;
    font-weight: 400;
    font-size: var(--fs-sm);
    color: var(--grey-600);
    margin-top: var(--sp-1);
}

.feature-card--wide { grid-column: 1 / -1; }
.vault-highlight {
    border-top: 3px solid var(--red);
    background: var(--ice-soft);
}
.vault-highlight p { color: var(--grey-800); }

.cta-quiet {
    margin: var(--sp-4) 0 0;
    font-size: var(--fs-sm);
    color: var(--ice);
}
.cta-quiet a { color: var(--white); }

/* ------------------------------------------------------------------ */
/* Solutions page: persona blocks                                      */
/* ------------------------------------------------------------------ */

.solution-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-5);
    margin-top: var(--sp-5);
}

.solution-block h3 {
    font-size: var(--fs-sm);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--sp-3);
}

.pain {
    background: var(--grey-50);
    border-left: 3px solid var(--grey-300);
    border-radius: var(--radius);
    padding: var(--sp-5);
}
.pain h3 { color: var(--grey-600); }
.pain p { margin: 0; color: var(--grey-800); }

.with {
    background: var(--white);
    border: 1px solid var(--ice);
    border-left: 3px solid var(--red);
    border-radius: var(--radius);
    padding: var(--sp-5);
}
.section--ice .pain { background: var(--white); }

.with-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.with-list li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: var(--sp-3);
    color: var(--grey-800);
}
.with-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.45rem;
    height: 0.45rem;
    background: var(--navy);
}
.with-list a {
    font-weight: 600;
    color: var(--navy);
}
.with-list a:hover { color: var(--red); }

.persona-cta {
    margin: var(--sp-4) 0 0;
    padding-top: var(--sp-4);
    border-top: 1px solid var(--grey-100);
    font-weight: 600;
    color: var(--navy);
}
.persona-cta a { color: var(--red); }

@media (min-width: 62rem) {
    .solution-block { grid-template-columns: 5fr 7fr; }
}

/* ------------------------------------------------------------------ */
/* Platform page: FAQ                                                  */
/* ------------------------------------------------------------------ */

.faq {
    margin-top: var(--sp-6);
    max-width: 52rem;
}
.faq details {
    background: var(--white);
    border: 1px solid var(--ice);
    border-radius: var(--radius);
    margin-bottom: var(--sp-3);
}
.faq summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    padding: var(--sp-4) var(--sp-5);
    font-weight: 700;
    color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "";
    flex: 0 0 auto;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid var(--navy);
    border-bottom: 2px solid var(--navy);
    transform: rotate(45deg);
    transition: transform 0.15s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); }
.faq details p {
    margin: 0;
    padding: 0 var(--sp-5) var(--sp-4);
    color: var(--grey-600);
}

/* ------------------------------------------------------------------ */
/* Resources page: case study, articles, ROI teaser                    */
/* ------------------------------------------------------------------ */

.case-card {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: var(--sp-6);
    border: 1px solid var(--grey-100);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(22, 29, 74, 0.05);
}

.case-meta {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: var(--white);
    padding: var(--sp-6);
}
.case-meta h3 { color: var(--white); }
.case-tag {
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ice);
    margin-bottom: var(--sp-3);
}
.case-facts {
    list-style: none;
    margin: var(--sp-4) 0 0;
    padding: 0;
    font-size: var(--fs-sm);
    color: var(--ice);
}
.case-facts li { margin-bottom: var(--sp-2); }
.case-facts strong {
    display: block;
    color: var(--white);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.case-body {
    background: var(--white);
    padding: var(--sp-6);
}
.case-body h4 {
    color: var(--red);
    font-size: var(--fs-sm);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: var(--sp-5) 0 var(--sp-2);
}
.case-body h4:first-child { margin-top: 0; }
.case-body p { color: var(--grey-800); }

.case-stats {
    list-style: none;
    margin: var(--sp-4) 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-4);
}
.case-stats li {
    background: var(--ice-soft);
    border: 1px solid var(--ice);
    border-radius: var(--radius);
    padding: var(--sp-3) var(--sp-4);
    text-align: center;
}
.stat-num {
    display: block;
    font-size: var(--fs-xl);
    font-weight: 800;
    color: var(--navy);
}
.stat-label {
    font-size: var(--fs-sm);
    color: var(--grey-600);
}

.case-note {
    margin-top: var(--sp-4);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--grey-100);
    font-size: var(--fs-sm);
    color: var(--grey-600);
}

.article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-4);
    margin-top: var(--sp-6);
}
.article-card { display: flex; flex-direction: column; }
.article-card h3 { font-size: var(--fs-md); }
.article-card p { color: var(--grey-600); }
.article-tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: var(--sp-2);
}
.article-card .product-link { margin-top: auto; }

.roi-teaser {
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
    background: var(--ice-soft);
    border: 1px solid var(--ice);
    border-left: 4px solid var(--navy);
    border-radius: var(--radius);
    padding: var(--sp-6);
}
.roi-teaser .lede { margin-bottom: 0; }
.roi-teaser .btn-demo { align-self: flex-start; }

/* ------------------------------------------------------------------ */
/* Company page                                                        */
/* ------------------------------------------------------------------ */

.story-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-6);
    margin-top: var(--sp-5);
}
.story-text p { color: var(--grey-800); max-width: 44rem; }

.photo-placeholder {
    background: var(--ice-soft);
    border: 2px dashed var(--ice);
    border-radius: var(--radius);
    min-height: 18rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--grey-600);
    font-size: var(--fs-sm);
    font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* Contact page: form                                                  */
/* ------------------------------------------------------------------ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-6);
}
.contact-aside .card { margin-bottom: var(--sp-3); }
.contact-aside h3 { font-size: var(--fs-base); margin-bottom: var(--sp-1); }
.contact-aside p, .contact-aside address {
    margin: 0;
    font-style: normal;
    font-size: var(--fs-sm);
    color: var(--grey-600);
}

.demo-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-4);
    margin-top: var(--sp-4);
}
.field { display: flex; flex-direction: column; gap: var(--sp-1); }
.field label { font-weight: 600; font-size: var(--fs-sm); color: var(--navy); }
.req { color: var(--red); }

.field input,
.field select,
.field textarea {
    font: inherit;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--grey-300);
    border-radius: var(--radius);
    padding: 0.6rem 0.8rem;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
    outline: 3px solid var(--ice);
    border-color: var(--navy);
}
.field textarea { resize: vertical; }

.form-note {
    background: var(--ice-soft);
    border-left: 3px solid var(--navy);
    border-radius: var(--radius);
    padding: var(--sp-3) var(--sp-4);
    font-size: var(--fs-sm);
    color: var(--grey-800);
}

.form-errors {
    background: #FDECEC;
    border: 1px solid var(--red);
    border-radius: var(--radius);
    padding: var(--sp-3) var(--sp-4);
    color: #8f1216;
}
.form-errors ul { margin: 0; padding-left: 1.1rem; }

.form-success {
    background: var(--ice-soft);
    border: 1px solid var(--ice);
    border-top: 4px solid var(--navy);
    border-radius: var(--radius);
    padding: var(--sp-6);
}
.form-success h3 { margin-bottom: var(--sp-2); }
.form-success p { margin: 0; color: var(--grey-800); }

@media (min-width: 48rem) {
    .article-grid { grid-template-columns: repeat(3, 1fr); }
    .demo-form { grid-template-columns: 1fr 1fr; }
    .field--full { grid-column: 1 / -1; }
}

@media (min-width: 62rem) {
    .story-grid { grid-template-columns: 7fr 5fr; }
    .contact-grid { grid-template-columns: 8fr 4fr; }
}

/* ------------------------------------------------------------------ */
/* Legal pages (Privacy, Terms)                                        */
/* ------------------------------------------------------------------ */

.legal-content {
    max-width: 44rem;
}
.legal-content h2 {
    margin-top: var(--sp-6);
}
.legal-content h2:first-child {
    margin-top: 0;
}
.legal-content h3 {
    font-size: var(--fs-md);
    margin-top: var(--sp-4);
}
.legal-content ul.with-list {
    margin: 0 0 var(--sp-4);
    padding-left: 1.25rem;
    color: var(--grey-800);
}
.legal-content ul.with-list li {
    margin-bottom: var(--sp-2);
}
.legal-content a {
    color: var(--navy);
    font-weight: 600;
}

@media (min-width: 62rem) {
    .case-card { grid-template-columns: 4fr 8fr; }
    .roi-teaser {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .roi-teaser .btn-demo { flex: 0 0 auto; align-self: center; }
}

@media (min-width: 48rem) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .persona-grid { grid-template-columns: repeat(2, 1fr); }
    .integration-list { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 62rem) {
    .persona-grid { grid-template-columns: repeat(3, 1fr); }
    .integration-list { grid-template-columns: repeat(5, 1fr); }
}
