/*
 * Shared stylesheet for the static marketing pages rendered from
 * resources/views/site (About, Privacy, Terms). It is the homepage's design
 * language — same tokens, header, footer, buttons and section rhythm — cut down
 * to what these pages use, plus the long-form prose and contents styles the legal
 * pages need. resources/homepage.html keeps its own inline copy; if a token
 * changes there, change it here too.
 *
 * Served from /css, which matches no route (see the comment above $standalone
 * in routes/web.php about directories in public/ shadowing routes).
 */
:root {
    --navy: #0a1a2f;
    --navy-2: #0e2238;
    --blue: #1b3a5c;
    --accent: #2e6fe8;
    --accent-soft: #5b8df0;
    --teal: #14b8a6;
    --white: #fff;
    --gray: #f5f7fa;
    --gray-2: #e7ecf2;
    --ink: #0b1620;
    --muted: #5a6b7b;
    --muted-2: #8294a5;
    --line: rgba(11, 22, 32, 0.08);
    --line-d: rgba(255, 255, 255, 0.1);
    --display: 'Sora', sans-serif;
    --body: 'Inter', sans-serif;
    --mono: 'IBM Plex Mono', monospace;
    --maxw: 1200px;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}
body {
    font-family: var(--body);
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
    overflow-x: hidden;
}
h1,
h2,
h3,
h4 {
    font-family: var(--display);
    line-height: 1.07;
    letter-spacing: -0.02em;
    font-weight: 700;
}
a {
    color: inherit;
    text-decoration: none;
}
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}
.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 28px;
}
.eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    display: inline-block;
    margin-bottom: 18px;
}
.eyebrow.on-dark {
    color: var(--accent-soft);
}
.skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 300;
    background: var(--accent);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}
.skip:focus {
    top: 12px;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--body);
    font-weight: 550;
    font-size: 15px;
    padding: 14px 24px;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: 0.22s ease;
    white-space: nowrap;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 24px rgba(46, 111, 232, 0.28);
}
.btn-primary:hover {
    background: #245fcf;
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(46, 111, 232, 0.36);
}
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}
.btn-ghost.on-dark {
    color: #fff;
    border-color: var(--line-d);
}
.btn-ghost.on-dark:hover {
    border-color: var(--accent-soft);
    background: rgba(255, 255, 255, 0.04);
}
.btn .arr {
    transition: transform 0.22s ease;
}
.btn:hover .arr {
    transform: translateX(3px);
}

/* ---------- NAV ---------- */
header.site {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: 0.3s ease;
    border-bottom: 1px solid transparent;
}
header.site.scrolled {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 19px;
    letter-spacing: -0.02em;
    color: #fff;
    transition: color 0.3s;
}
.logo .pro {
    font-weight: 500;
    opacity: 0.75;
}
header.site.scrolled .logo {
    color: var(--ink);
}
.logo-mark {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
}
.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}
.nav-links a {
    font-size: 14.5px;
    font-weight: 450;
    color: rgba(255, 255, 255, 0.78);
    transition: color 0.3s;
}
.nav-links a:hover {
    color: #fff;
}
header.site.scrolled .nav-links a {
    color: var(--muted);
}
header.site.scrolled .nav-links a:hover {
    color: var(--ink);
}
header.site.scrolled .btn-ghost.on-dark {
    color: var(--ink);
    border-color: var(--line);
}
.nav-cta {
    display: flex;
    align-items: center;
    gap: 14px;
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.nav-toggle span {
    width: 22px;
    height: 2px;
    background: #fff;
    transition: 0.3s;
}
header.site.scrolled .nav-toggle span {
    background: var(--ink);
}
.menu {
    position: fixed;
    inset: 0;
    background: rgba(10, 26, 47, 0.97);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: none;
    flex-direction: column;
    padding: 88px 28px 40px;
}
.menu.open {
    display: flex;
}
.menu a {
    color: #fff;
    font-family: var(--display);
    font-size: 22px;
    font-weight: 600;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.menu .menu-cta {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.menu .menu-cta a {
    border-bottom: 0;
    text-align: center;
    border-radius: 10px;
    padding: 15px;
    font-size: 16px;
}
.menu .menu-login {
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.menu .menu-demo {
    background: var(--accent);
}
.menu-close {
    position: absolute;
    top: 22px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

/* ---------- PAGE HERO ---------- */
.page-hero {
    background:
        radial-gradient(900px 600px at 78% 8%, rgba(46, 111, 232, 0.14), transparent 60%),
        radial-gradient(700px 500px at 8% 90%, rgba(20, 184, 166, 0.1), transparent 55%),
        linear-gradient(165deg, #0a1a2f 0%, #0e2238 55%, #0b1f38 100%);
    color: #fff;
    padding: 150px 0 88px;
    overflow: hidden;
}
.page-hero h1 {
    font-size: clamp(34px, 4.6vw, 58px);
    font-weight: 800;
    margin-bottom: 22px;
    max-width: 900px;
}
.page-hero h1 .hl {
    background: linear-gradient(110deg, #5b8df0, #14b8a6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.page-hero .lede {
    font-size: 18.5px;
    line-height: 1.62;
    color: rgba(255, 255, 255, 0.74);
    max-width: 640px;
}
.page-hero.compact {
    padding: 136px 0 64px;
}
.page-hero.compact h1 {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 16px;
}
.meta {
    font-family: var(--mono);
    font-size: 12.5px;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.55);
    display: flex;
    gap: 10px 28px;
    flex-wrap: wrap;
    margin-top: 22px;
}
.meta .dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 10px var(--teal);
    margin-right: 8px;
    vertical-align: middle;
}

/* ---------- SECTIONS ---------- */
section.block {
    padding: 104px 0;
}
.alt {
    background: var(--gray);
}
.sec-head {
    max-width: 720px;
    margin-bottom: 52px;
}
.sec-head.center {
    margin: 0 auto 56px;
    text-align: center;
}
.sec-head h2 {
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 700;
    margin-bottom: 18px;
}
.sec-head p {
    font-size: 17.5px;
    color: var(--muted);
    line-height: 1.6;
}
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}
.h-sec {
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 700;
}
.split .gap {
    margin-top: 18px;
}
.split p {
    font-size: 16.5px;
    color: var(--muted);
    line-height: 1.7;
}
.split p + p {
    margin-top: 16px;
}
.split p b {
    color: var(--ink);
    font-weight: 600;
}
.points {
    display: grid;
    gap: 14px;
}
.points .p {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    font-size: 15.5px;
    color: var(--muted);
}
.points .p b {
    color: var(--ink);
    font-weight: 600;
}
.x-ic,
.ck {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-top: 1px;
}
.x-ic {
    background: rgba(220, 80, 70, 0.1);
    color: #c0392b;
}
.ck {
    background: rgba(46, 111, 232, 0.1);
    color: var(--accent);
}

/* dark band with the four-step flow, as on the homepage */
.hai {
    background: var(--navy);
    color: #fff;
}
.hai .sec-head h2 {
    color: #fff;
}
.hai .sec-head p {
    color: rgba(255, 255, 255, 0.66);
}
.flow-rail {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line-d);
    border-radius: 16px;
    overflow: hidden;
    list-style: none;
}
.flow-cell {
    padding: 30px 24px;
    border-right: 1px solid var(--line-d);
}
.flow-cell:last-child {
    border-right: none;
}
.flow-cell .stg {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--accent-soft);
    text-transform: uppercase;
    margin-bottom: 12px;
}
.flow-cell h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 9px;
    font-weight: 600;
}
.flow-cell p {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.55;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    list-style: none;
}
.cards.four {
    grid-template-columns: repeat(4, 1fr);
}
.card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 26px;
    background: #fff;
}
.card .ic {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(46, 111, 232, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.card h3 {
    font-size: 17px;
    margin-bottom: 8px;
}
.card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.55;
}

.facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 0;
}
.facts div {
    border-top: 2px solid var(--accent);
    padding-top: 14px;
}
.facts dt {
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 6px;
}
.facts dd {
    font-size: 16px;
    color: var(--ink);
    font-weight: 500;
}

/* ---------- LEGAL DOCUMENT ---------- */
.doc {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 64px;
    padding-top: 72px;
    padding-bottom: 104px;
    align-items: start;
}
.toc {
    position: sticky;
    top: 96px;
    font-size: 13.5px;
}
.toc h2 {
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 14px;
}
.toc ol {
    list-style: none;
    counter-reset: toc;
    border-left: 1px solid var(--gray-2);
}
.toc li {
    counter-increment: toc;
}
.toc a {
    display: block;
    padding: 6px 0 6px 16px;
    margin-left: -1px;
    border-left: 1px solid transparent;
    color: var(--muted);
    line-height: 1.35;
}
.toc a::before {
    content: counter(toc) '. ';
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--muted-2);
}
.toc a:hover {
    color: var(--accent);
    border-left-color: var(--accent);
}
.prose {
    max-width: 740px;
    font-size: 16px;
    line-height: 1.72;
    color: #26343f;
}
.prose > section {
    padding-bottom: 36px;
    margin-bottom: 36px;
    border-bottom: 1px solid var(--line);
}
.prose > section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.prose h2 {
    font-size: clamp(21px, 2.2vw, 25px);
    color: var(--ink);
    margin-bottom: 16px;
    font-weight: 700;
}
.prose h2 .n {
    font-family: var(--mono);
    font-size: 0.62em;
    font-weight: 500;
    color: var(--accent);
    margin-right: 10px;
    vertical-align: 0.18em;
    letter-spacing: 0.04em;
}
.prose h3 {
    font-size: 16.5px;
    color: var(--ink);
    margin: 22px 0 8px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.prose p + p,
.prose p + ul,
.prose ul + p {
    margin-top: 14px;
}
.prose ul {
    padding-left: 22px;
}
.prose li {
    margin-top: 6px;
}
.prose li::marker {
    color: var(--accent);
}
.prose strong {
    color: var(--ink);
    font-weight: 600;
}
.prose a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(46, 111, 232, 0.35);
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}
.prose a:hover {
    text-decoration-color: var(--accent);
}
.prose code {
    font-family: var(--mono);
    font-size: 0.88em;
    background: var(--gray);
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 1px 5px;
}
.prose .lead {
    font-size: 17.5px;
    color: var(--muted);
    line-height: 1.65;
}
.prose .caps {
    text-transform: uppercase;
    font-size: 14.5px;
    letter-spacing: 0.01em;
}
.prose address {
    font-style: normal;
    margin-top: 14px;
    padding: 18px 20px;
    background: var(--gray);
    border-radius: 12px;
    border: 1px solid var(--line);
}
.table-wrap {
    overflow-x: auto;
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
    line-height: 1.5;
}
.prose th,
.prose td {
    text-align: left;
    vertical-align: top;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}
.prose tr:last-child td {
    border-bottom: none;
}
.prose th {
    font-family: var(--display);
    font-weight: 600;
    color: var(--ink);
    background: var(--gray);
    font-size: 13.5px;
}

/* ---------- FINAL CTA ---------- */
.final {
    background:
        radial-gradient(700px 400px at 85% 20%, rgba(20, 184, 166, 0.16), transparent 60%),
        radial-gradient(700px 400px at 10% 90%, rgba(46, 111, 232, 0.18), transparent 60%),
        linear-gradient(165deg, #0a1a2f, #0e2238);
    color: #fff;
    text-align: center;
    padding: 108px 0;
}
.final h2 {
    font-size: clamp(30px, 4.2vw, 52px);
    font-weight: 800;
    margin-bottom: 20px;
}
.final p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.74);
    max-width: 580px;
    margin: 0 auto 34px;
    line-height: 1.6;
}
.final .btn {
    font-size: 16px;
    padding: 16px 30px;
}

/* ---------- FOOTER ---------- */
footer.site {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.6);
    padding: 56px 0 34px;
}
.foot-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.foot-brand .logo {
    margin-bottom: 14px;
    color: #fff;
}
.foot-brand p {
    font-size: 14px;
    max-width: 300px;
    line-height: 1.6;
}
.foot-col h2 {
    font-family: var(--display);
    font-size: 13px;
    color: #fff;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
    text-transform: uppercase;
    font-weight: 600;
}
.foot-col a {
    display: block;
    font-size: 14px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.55);
    transition: 0.2s;
}
.foot-col a:hover,
.foot-col a[aria-current] {
    color: #fff;
}
.foot-bot {
    display: flex;
    justify-content: space-between;
    padding-top: 26px;
    font-size: 12.5px;
    font-family: var(--mono);
    color: rgba(255, 255, 255, 0.4);
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
    .split {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .flow-rail {
        grid-template-columns: repeat(2, 1fr);
    }
    .flow-cell {
        border-bottom: 1px solid var(--line-d);
    }
    .cards,
    .cards.four {
        grid-template-columns: repeat(2, 1fr);
    }
    .foot-top {
        grid-template-columns: 1fr 1fr;
    }
    .doc {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
        padding-top: 48px;
    }
    .toc {
        position: static;
        background: var(--gray);
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 20px 22px;
    }
    .toc ol {
        columns: 2;
        column-gap: 28px;
        border-left: none;
    }
    .toc a {
        padding-left: 0;
        border-left: none;
        break-inside: avoid;
    }
}
@media (max-width: 680px) {
    .wrap {
        padding: 0 20px;
    }
    .nav-links,
    .nav-cta .btn {
        display: none;
    }
    .nav-toggle {
        display: flex;
    }
    .page-hero {
        padding: 120px 0 64px;
    }
    .page-hero.compact {
        padding: 112px 0 48px;
    }
    .page-hero .lede {
        font-size: 17px;
    }
    section.block {
        padding: 72px 0;
    }
    .flow-rail,
    .cards,
    .cards.four,
    .facts {
        grid-template-columns: 1fr;
    }
    .flow-cell {
        border-right: none;
    }
    .toc ol {
        columns: 1;
    }
    .doc {
        padding-top: 36px;
        padding-bottom: 72px;
    }
    .prose {
        font-size: 15.5px;
    }
    /* the provider table stacks into one card per row */
    .prose thead {
        display: none;
    }
    .prose tr {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--line);
    }
    .prose tr:last-child {
        border-bottom: none;
    }
    .prose td {
        display: block;
        border-bottom: none;
        padding: 2px 16px;
    }
    .prose td:first-child {
        font-family: var(--display);
        font-weight: 600;
        color: var(--ink);
    }
    .prose td:last-child {
        color: var(--muted);
        font-size: 13.5px;
    }
    .foot-top {
        grid-template-columns: 1fr;
    }
    .final {
        padding: 80px 0;
    }
    .final .btn {
        white-space: normal;
        text-align: center;
        justify-content: center;
    }
}
@media (min-width: 681px) {
    .menu {
        display: none !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    html {
        scroll-behavior: auto;
    }
}
