/* =========================================================================
   Veritas24-7 website - shared design system
   Palette and type taken from Peter's design deck so the site matches it.
   ========================================================================= */

:root {
    /* Backgrounds */
    --bg: #0B1024; /* main dark navy */
    --bg-deep: #040713; /* near-black, header/footer */
    --panel: #111736; /* card panel */
    --panel-2: #0E1430; /* alternate panel */
    --panel-line: #243056; /* card borders */
    /* Accents */
    --violet: #B12CFF; /* signature purple */
    --violet-2: #7A2BFF; /* deeper purple, gradients/buttons */
    --cyan: #00C8FF; /* section eyebrow accent */
    /* Text */
    --ink: #FFFFFF;
    --muted: #D2D6E5;
    --muted-2: #97A0C0;
    --maxw: 1200px;
    --radius: 14px;
    --gap: 24px;
    --font: "Segoe UI", "Aptos", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

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

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

/* ---------- Header / nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(4, 7, 19, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(36, 48, 86, 0.6);
}

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 68px;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

    .brand .mark {
        width: 40px;
        height: 40px;
        flex: 0 0 auto;
    }

    .brand .wordmark {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

        .brand .wordmark .w1 {
            font-weight: 800;
            letter-spacing: 0.02em;
            font-size: 23px;
            line-height: 1;
        }

            .brand .wordmark .w1 .num {
                color: var(--violet);
            }

        .brand .wordmark .w2 {
            font-size: 10.5px;
            letter-spacing: 0.1em;
            color: var(--muted);
            font-weight: 600;
            line-height: 1.3;
            margin-top: 2px;
        }

.nav-links {
    display: flex;
    gap: 20px;
    margin-left: 12px;
    flex: 1 1 auto;
    list-style: none;
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
}

    .nav-links a {
        font-size: 14.5px;
        color: var(--muted);
        padding: 6px 2px;
        border-bottom: 2px solid transparent;
        transition: color .15s, border-color .15s;
        white-space: nowrap;
    }

        .nav-links a:hover {
            color: var(--ink);
        }

        .nav-links a.active {
            color: var(--ink);
            border-bottom-color: var(--violet);
        }

.cta {
    flex: 0 0 auto;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, var(--violet-2), var(--violet));
    color: #fff;
    padding: 8px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.15;
    box-shadow: 0 6px 20px rgba(122, 43, 255, 0.35);
    transition: transform .12s, box-shadow .12s;
}

    .cta small {
        font-weight: 500;
        font-size: 11px;
        opacity: .9;
    }

    .cta:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 28px rgba(122,43,255,.45);
    }

/* mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}

    .nav-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--ink);
        margin: 4px 0;
    }

/* ---------- Hero ---------- */
.hero {
    padding: 72px 0 56px;
    background: radial-gradient(1100px 480px at 80% -10%, rgba(122,43,255,.22), transparent 60%), radial-gradient(900px 420px at 0% 10%, rgba(0,200,255,.10), transparent 55%);
    text-align: center;
}

.eyebrow {
    color: var(--cyan);
    font-size: 13px;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0 0 14px;
}

h1 {
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.08;
    margin: 0 auto 18px;
    max-width: none;
    font-weight: 800;
    letter-spacing: -0.01em;
}

    h1 .accent {
        color: var(--violet);
    }

.hero .lead {
    color: var(--muted);
    font-size: clamp(16px, 2vw, 20px);
    max-width: 60ch;
    margin: 0 auto;
}

/* Interior page heroes: large, left-aligned title like the deck.
   No tight width cap, so headlines run wide the way they do in the deck. */
.hero.left {
    text-align: left;
    padding: 56px 0 36px;
}

    .hero.left h1 {
        font-size: clamp(30px, 4.6vw, 54px);
        max-width: none;
        margin: 0 0 18px;
        line-height: 1.12;
    }

    .hero.left .lead {
        margin: 0;
        max-width: none;
        font-size: clamp(17px, 1.9vw, 21px);
    }

    .hero.left .eyebrow {
        margin-bottom: 12px;
    }
    /* About hero centered per Peter; second line sized to fit one line */
    .hero.left.about-hero {
        text-align: center;
    }

.about-hero .lead {
    margin-left: auto;
    margin-right: auto;
}

.about-hero h1 .line2 {
    display: inline-block;
    font-size: 0.62em;
    font-weight: 700;
    white-space: nowrap;
}
/* headline forced to one line, sized down to fit viewport width */
.fit-one-line {
    white-space: nowrap;
    font-size: clamp(24px, 4.4vw, 52px) !important;
}

/* Home hero: keep centered, but wider so headline doesn't stack into many lines */
.hero.home-hero {
    padding: 44px 0 24px;
}

    .hero.home-hero h1 {
        max-width: none;
        font-size: clamp(28px, 4.2vw, 48px);
        margin: 0 auto 16px;
        line-height: 1.1;
    }

    .hero.home-hero .lead {
        max-width: 72ch;
    }
/* Peter's home hierarchy: big headline, then sub, sub-sub, then guardrails line */
.home-headline {
    font-size: clamp(40px, 7vw, 76px);
    font-weight: 800;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    margin: 0 0 20px;
    line-height: 1.02;
}

.home-hero .subhead {
    font-size: clamp(18px, 2.4vw, 26px);
    color: var(--ink);
    font-weight: 600;
    max-width: 60ch;
    margin: 0 auto 16px;
    line-height: 1.3;
}

    .home-hero .subhead.oneline {
        max-width: none;
        white-space: nowrap;
        font-size: clamp(15px, 2.1vw, 25px);
    }

.home-hero .subsubhead {
    font-size: clamp(15px, 1.7vw, 18px);
    color: var(--muted);
    font-weight: 400;
    max-width: 66ch;
    margin: 0 auto 20px;
    line-height: 1.5;
}

.home-hero .guardrails {
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 700;
    margin-top: 4px;
}

/* ---------- Sections ---------- */
.section {
    padding: 56px 0;
}

    .section.alt {
        background: var(--bg-deep);
    }

    .section h2 {
        font-size: clamp(24px, 3.4vw, 38px);
        font-weight: 800;
        margin: 0 0 12px;
        letter-spacing: -0.01em;
    }

    .section .sub {
        color: var(--muted);
        max-width: none;
        margin: 0 0 36px;
        font-size: 17px;
    }

.center {
    text-align: center;
}

    .center .sub {
        margin-left: auto;
        margin-right: auto;
    }

/* ---------- Cards ---------- */
.grid {
    display: grid;
    gap: var(--gap);
}

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

    .grid.cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid.cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .grid.cols-5 {
        grid-template-columns: repeat(5, 1fr);
    }

.card {
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    border: 1.5px solid var(--panel-line);
    border-radius: var(--radius);
    padding: 24px;
}
/* Alternating cyan / violet outlined cards, matching the deck design. */
.grid .card:nth-child(odd) {
    border-color: rgba(0,200,255,.55);
    box-shadow: 0 0 0 1px rgba(0,200,255,.12), 0 6px 22px rgba(0,200,255,.06);
}

.grid .card:nth-child(even) {
    border-color: rgba(177,44,255,.6);
    box-shadow: 0 0 0 1px rgba(177,44,255,.14), 0 6px 22px rgba(177,44,255,.07);
}

.card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 14.5px;
}

.card .ic {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    background: rgba(122,43,255,.16);
    color: var(--violet);
    font-size: 20px;
    font-weight: 700;
}

.grid .card:nth-child(odd) .ic {
    background: rgba(0,200,255,.16);
    color: var(--cyan);
}

.card .num {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    margin-bottom: 12px;
    background: transparent;
    color: var(--violet);
    font-weight: 800;
    font-size: 20px;
}

.grid .card:nth-child(odd) .num {
    color: var(--cyan);
}

/* feature list with check bullets */
.capabilities {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .capabilities li {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 11px 0;
        border-bottom: 1px solid rgba(36,48,86,.5);
        color: var(--muted);
        font-size: 15.5px;
    }

        .capabilities li:last-child {
            border-bottom: 0;
        }

        .capabilities li .dot {
            color: var(--violet);
            font-size: 15px;
            flex: 0 0 auto;
        }

/* two-column feature block (image + panel) */
.split {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    align-items: stretch;
}

.persona-card {
    background: var(--panel-2);
    border: 1px solid var(--panel-line);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}

    .persona-card img {
        border-radius: 10px;
        margin: 0 auto 12px;
    }

    .persona-card .cap {
        color: var(--muted-2);
        font-size: 13px;
    }

.panel {
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    border: 1px solid var(--panel-line);
    border-radius: var(--radius);
    padding: 28px;
}

    .panel h3 {
        margin: 0 0 12px;
        color: var(--cyan);
        letter-spacing: .04em;
        text-transform: uppercase;
        font-size: 14px;
    }

.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 14px;
}

    .pills span {
        display: inline-flex;
        align-items: center;
        gap: 7px;
    }

        .pills span::before {
            content: "•";
            color: var(--violet);
        }

/* process steps */
.steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.step {
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    border: 1.5px solid var(--panel-line);
    border-radius: 12px;
    padding: 18px 16px;
    position: relative;
}

.steps .step:nth-child(odd) {
    border-color: rgba(0,200,255,.55);
}

.steps .step:nth-child(even) {
    border-color: rgba(177,44,255,.6);
}

.step .n {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: transparent;
    color: var(--violet);
    font-weight: 800;
    margin-bottom: 10px;
    font-size: 20px;
}

.steps .step:nth-child(odd) .n {
    color: var(--cyan);
}

.step p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

/* strip of small feature items */
.strip {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
    justify-content: center;
    margin-top: 26px;
}

    .strip .item {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        color: var(--muted);
        font-size: 14px;
    }

        .strip .item svg {
            width: 22px;
            height: 22px;
            flex: 0 0 auto;
            stroke: var(--violet);
        }

/* CTA band */
.cta-band {
    background: linear-gradient(135deg, rgba(122,43,255,.18), rgba(0,200,255,.10));
    border: 1px solid var(--panel-line);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

    .cta-band h3 {
        margin: 0 0 6px;
        font-size: 22px;
    }

    .cta-band p {
        margin: 0;
        color: var(--muted);
    }

.btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, var(--violet-2), var(--violet));
    color: #fff;
    padding: 12px 24px;
    border-radius: 11px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(122,43,255,.4);
}

    .btn small {
        font-weight: 500;
        font-size: 12px;
        opacity: .9;
    }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bg-deep);
    border-top: 1px solid rgba(36,48,86,.6);
    padding: 30px 0;
    text-align: center;
    color: var(--muted-2);
    font-size: 13.5px;
}
/* ---------- Persona split (home, matching the splash) ---------- */
.persona-split {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: stretch;
}

.persona-col {
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    border: 1.5px solid var(--panel-line);
    border-radius: var(--radius);
    padding: 20px;
}

    .persona-col.sales {
        border-color: rgba(0,200,255,.55);
        box-shadow: 0 0 0 1px rgba(0,200,255,.12);
    }

    .persona-col.medical {
        border-color: rgba(177,44,255,.6);
        box-shadow: 0 0 0 1px rgba(177,44,255,.14);
    }

    .persona-col .role {
        font-size: 16px;
        font-weight: 700;
        letter-spacing: .06em;
        text-transform: uppercase;
        margin: 0 0 16px;
        text-align: center;
    }

    .persona-col.sales .role {
        color: var(--cyan);
    }

    .persona-col.medical .role {
        color: var(--violet);
    }
/* scene image spans the panel top, capability list below - suits the wide scenes */
.persona-body {
    display: block;
}

.persona-col .scene {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
}

    .persona-col .scene img {
        width: 100%;
        display: block;
    }

.persona-list {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 24px;
}

    .persona-list li {
        display: flex;
        align-items: flex-start;
        gap: 11px;
        padding: 7px 0;
        color: var(--muted);
        font-size: 14px;
        line-height: 1.35;
        break-inside: avoid;
    }

        .persona-list li svg {
            flex: 0 0 auto;
            width: 20px;
            height: 20px;
            margin-top: 1px;
        }

.persona-col.sales .persona-list svg {
    stroke: var(--cyan);
}

.persona-col.medical .persona-list svg {
    stroke: var(--violet);
}

.persona-tag {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(36,48,86,.6);
    color: var(--muted);
    font-size: 15px;
    text-align: center;
}

.or-divider {
    display: grid;
    place-items: center;
    align-self: center;
}

    .or-divider span {
        display: grid;
        place-items: center;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        border: 2px solid var(--violet);
        color: #fff;
        font-weight: 800;
        font-size: 18px;
        background: var(--bg-deep);
    }

/* feature icon strip on home */
.feature-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px 24px;
}

    .feature-strip .fi {
        display: flex;
        align-items: flex-start;
        gap: 11px;
        color: var(--muted);
        font-size: 14px;
        line-height: 1.35;
    }

        .feature-strip .fi svg {
            width: 22px;
            height: 22px;
            flex: 0 0 auto;
            margin-top: 1px;
            stroke: var(--violet);
        }

/* About page: personas flanking the approach panel (matches deck slide 2) */
.approach-split {
    display: grid;
    grid-template-columns: 260px 1fr 260px;
    gap: 20px;
    align-items: stretch;
}

    .approach-split .persona-card {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

        .approach-split .persona-card img {
            width: 100%;
        }

@media (max-width: 960px) {
    .approach-split {
        grid-template-columns: 1fr;
    }

        .approach-split .persona-card {
            max-width: 320px;
            margin: 0 auto;
        }
}

.site-footer .tm {
    color: var(--muted);
}

.site-footer .legal {
    margin-top: 10px;
}

    .site-footer .legal a {
        color: var(--muted-2);
        text-decoration: none;
    }

        .site-footer .legal a:hover {
            color: var(--muted);
        }

    .site-footer .legal .sep {
        margin: 0 8px;
        opacity: .5;
    }

/* ---------- Legal / long-form text pages ---------- */
.legal-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 8px 24px 8px;
}

    .legal-page h2 {
        font-size: 20px;
        margin: 28px 0 8px;
        color: var(--ink);
    }

        .legal-page h2:first-of-type {
            margin-top: 8px;
        }

    .legal-page p {
        color: var(--muted);
        font-size: 15px;
        margin: 0 0 8px;
    }

    .legal-page .meta {
        color: var(--muted-2);
        font-size: 13.5px;
        margin-bottom: 8px;
    }

    .legal-page address {
        color: var(--muted);
        font-style: normal;
        font-size: 15px;
        line-height: 1.7;
    }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .grid.cols-3, .grid.cols-4, .grid.cols-5 {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .persona-split {
        grid-template-columns: 1fr;
    }

    .persona-body {
        grid-template-columns: 1fr;
    }

    .or-divider span {
        margin: 4px 0;
    }

    .feature-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 820px) {
    .nav-links, .nav .cta {
        display: none;
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--bg-deep);
        padding: 16px 24px;
        gap: 8px;
        border-bottom: 1px solid var(--panel-line);
    }

        .nav-links.open a {
            padding: 8px 0;
            border-bottom: none;
        }
            /* In the stacked mobile menu, show the active item with a side accent bar
       and color instead of an underline that crowds the text. */
            .nav-links.open a.active {
                color: var(--ink);
                border-bottom: none;
                padding-left: 12px;
                border-left: 3px solid var(--violet);
            }
}

@media (max-width: 560px) {
    .grid.cols-2, .grid.cols-3, .grid.cols-4, .grid.cols-5 {
        grid-template-columns: 1fr;
    }

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

    .cta-band {
        flex-direction: column;
        text-align: center;
        align-items: stretch;
    }
    /* Only on true phone widths does the long tagline not fit. iPads and up,
       which are 768px or wider, keep it. */
    .brand .wordmark .w2 {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto;
        transition: none !important;
    }
}
