/* ============================================================
   Growth Capital — site design system
   Palette:  Ink #10283E · Navy #0D3F66 · Blue #2E86C9
             Sky #EEF5FB · Growth Green #0FA36B
   Type:     Bricolage Grotesque (display) · Inter (body)
   ============================================================ */

:root {
    --ink: #10283e;
    --navy: #0d3f66;
    --navy-deep: #092c48;
    --blue: #2e86c9;
    --blue-deep: #16558b;
    --sky: #eef5fb;
    --sky-deep: #dcebf7;
    --green: #0fa36b;
    --green-deep: #0b8557;
    --amber: #f6b93b;
    --muted: #52708a;
    --line: #d9e6f2;
    --white: #ffffff;

    --font-display: "Bricolage Grotesque", "Inter", sans-serif;
    --font-body: "Inter", system-ui, sans-serif;

    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(13, 63, 102, .06), 0 4px 12px rgba(13, 63, 102, .06);
    --shadow-md: 0 2px 6px rgba(13, 63, 102, .08), 0 16px 40px rgba(13, 63, 102, .12);
    --shadow-lg: 0 4px 10px rgba(9, 44, 72, .12), 0 30px 70px rgba(9, 44, 72, .22);

    --container: 1180px;
    --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); text-decoration: none; }
a:hover { color: var(--blue); }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.12;
    color: var(--navy);
    margin: 0 0 .5em;
    font-weight: 700;
    letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
    border-radius: 4px;
}

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 12px;
    z-index: 200;
    background: var(--navy);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
}
.skip-link:focus { left: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    border: 2px solid transparent;
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.2;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
    text-align: center;
    justify-content: center;
}
.btn i { font-size: 1.1em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--green);
    color: #fff;
    box-shadow: 0 6px 18px rgba(15, 163, 107, .35);
}
.btn-primary:hover { background: var(--green-deep); color: #fff; box-shadow: 0 10px 24px rgba(15, 163, 107, .4); }

.btn-secondary {
    background: var(--navy);
    color: #fff;
}
.btn-secondary:hover { background: var(--navy-deep); color: #fff; }

.btn-ghost {
    border-color: var(--sky-deep);
    color: var(--navy);
    background: transparent;
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-deep); }

.btn-ghost-light {
    border-color: rgba(255, 255, 255, .45);
    color: #fff;
    background: transparent;
}
.btn-ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }

.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.link-btn {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

/* ---------- Eyebrow / section headings ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 14px;
}
.eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--green);
    border-radius: 2px;
}
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::after {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--green);
    border-radius: 2px;
}
.section-head p { color: var(--muted); font-size: 1.06rem; }

.section { padding: 96px 0; }
.section-sky { background: var(--sky); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-stuck {
    border-bottom-color: var(--line);
    box-shadow: 0 6px 24px rgba(13, 63, 102, .07);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: var(--header-h);
}
.brand img { width: 220px; height: auto; }

.main-nav { margin-left: auto; }
.main-nav > ul {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--ink);
    font-weight: 500;
    font-size: .95rem;
    background: none;
    border: 0;
    transition: background .15s ease, color .15s ease;
}
.nav-link:hover { background: var(--sky); color: var(--navy); }
.main-nav li.is-active > .nav-link { color: var(--blue-deep); font-weight: 600; }

/* dropdown */
.has-dropdown { position: relative; }
.dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 340px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.is-open .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.dropdown a {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    color: var(--ink);
}
.dropdown a:hover { background: var(--sky); }
.dropdown strong { display: block; font-size: .93rem; color: var(--navy); }
.dropdown small { display: block; font-size: .8rem; color: var(--muted); line-height: 1.4; }
.dropdown-icon {
    flex: 0 0 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: var(--sky);
    color: var(--blue);
    border-radius: 10px;
    font-size: 1.3rem;
}
.dropdown a:hover .dropdown-icon { background: var(--blue); color: #fff; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    color: var(--navy);
    font-size: .95rem;
    white-space: nowrap;
}
.header-phone i { font-size: 1.25rem; color: var(--green); }
.header-phone:hover { color: var(--blue); }

/* burger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: var(--sky);
    border: 0;
    border-radius: 12px;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile drawer */
.mobile-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(360px, 88vw);
    background: #fff;
    z-index: 120;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
    overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav-inner { padding: calc(var(--header-h) + 12px) 26px 32px; display: flex; flex-direction: column; gap: 22px; min-height: 100%; }
.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 4px;
    font-weight: 600;
    color: var(--navy);
    font-size: 1.05rem;
    border-bottom: 1px solid var(--sky);
}
.mobile-group-label {
    display: block;
    padding: 14px 4px 6px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}
.mobile-group ul a { font-weight: 500; font-size: .97rem; padding-left: 10px; }
.mobile-group ul a i { color: var(--blue); font-size: 1.2rem; }
.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(9, 44, 72, .5);
    z-index: 110;
    opacity: 0;
    transition: opacity .3s ease;
}
.mobile-nav-backdrop.is-open { opacity: 1; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background:
        radial-gradient(900px 480px at 85% -10%, var(--sky-deep) 0%, transparent 65%),
        linear-gradient(180deg, var(--sky) 0%, #fff 100%);
    padding: 72px 0 96px;
    overflow: hidden;
}
/* ascending trajectory motif */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='700' viewBox='0 0 1400 700' fill='none'%3E%3Cpath d='M-40 640 C 320 620, 640 520, 900 340 S 1300 60, 1460 -20' stroke='%232e86c9' stroke-opacity='0.18' stroke-width='2' stroke-dasharray='2 10' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
    pointer-events: none;
}
.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 64px;
    align-items: center;
}
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy h1 .accent { color: var(--blue); }
.hero-copy h1 .underline {
    position: relative;
    white-space: nowrap;
}
.hero-copy h1 .underline::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: .04em;
    height: .18em;
    background: rgba(15, 163, 107, .3);
    border-radius: 4px;
    z-index: -1;
}
.hero-copy .lede {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 34rem;
    margin-bottom: 28px;
}
.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-bottom: 4px;
}
.hero-points li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .92rem;
    font-weight: 600;
    color: var(--navy);
}
.hero-points i {
    color: var(--green);
    font-size: 1.15rem;
}

/* ---------- Funding calculator (signature element) ---------- */
.calc-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
    padding: 34px 34px 30px;
    position: relative;
}
.calc-card .calc-tag {
    position: absolute;
    top: -16px;
    left: 30px;
    background: var(--navy);
    color: #fff;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: 999px;
}
.calc-label {
    font-size: .9rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 2px;
}
.calc-amount {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 4.5vw, 3.4rem);
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 18px;
    font-variant-numeric: tabular-nums;
}
.calc-slider { width: 100%; margin: 4px 0 8px; }

input[type="range"].calc-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--green) var(--fill, 40%), var(--sky-deep) var(--fill, 40%));
    outline-offset: 6px;
}
input[type="range"].calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--green);
    box-shadow: 0 3px 10px rgba(15, 163, 107, .4);
    cursor: grab;
}
input[type="range"].calc-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--green);
    box-shadow: 0 3px 10px rgba(15, 163, 107, .4);
    cursor: grab;
}
.calc-scale {
    display: flex;
    justify-content: space-between;
    font-size: .8rem;
    color: var(--muted);
    margin-bottom: 20px;
}
.calc-meta {
    display: flex;
    gap: 24px;
    padding: 16px 0 22px;
    border-top: 1px dashed var(--line);
}
.calc-meta div { flex: 1; }
.calc-meta dt { font-size: .78rem; font-weight: 600; color: var(--muted); margin: 0; }
.calc-meta dd {
    margin: 2px 0 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
}
.calc-note {
    font-size: .78rem;
    color: var(--muted);
    margin: 12px 0 0;
    text-align: center;
}

/* ---------- Stats band ---------- */
.stats-band {
    background: var(--navy);
    color: #fff;
    padding: 56px 0;
    position: relative;
    overflow: hidden;
}
.stats-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='300' viewBox='0 0 1400 300' fill='none'%3E%3Cpath d='M-40 280 C 350 260, 700 180, 1000 100 S 1350 0, 1460 -30' stroke='%23ffffff' stroke-opacity='0.1' stroke-width='2' stroke-dasharray='2 10' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: cover;
    pointer-events: none;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
}
.stat { text-align: center; }
.stat .stat-value {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.stat .stat-value .stat-suffix { color: var(--amber); }
.stat .stat-label {
    font-size: .9rem;
    color: rgba(255, 255, 255, .75);
    margin-top: 6px;
}

/* ---------- Program cards ---------- */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.program-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 28px;
    box-shadow: var(--shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.program-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--sky-deep);
}
.program-card .program-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    background: var(--sky);
    color: var(--blue);
    transition: background .2s ease, color .2s ease;
}
.program-card:hover .program-icon { background: var(--green); color: #fff; }
.program-card h3 { margin: 0; font-size: 1.18rem; }
.program-card h3 a { color: var(--navy); }
.program-card h3 a::after { content: ""; position: absolute; inset: 0; }
.program-card p { color: var(--muted); font-size: .95rem; margin: 0; flex-grow: 1; }
.program-card .program-more {
    font-weight: 600;
    font-size: .9rem;
    color: var(--green-deep);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.program-card:hover .program-more { color: var(--green); }

/* ---------- Split feature sections ---------- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}
.split + .split { margin-top: 96px; }
.split-media { position: relative; }
.split-media img {
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    width: 100%;
    object-fit: cover;
    aspect-ratio: 5 / 4;
}
.split-media::before {
    content: "";
    position: absolute;
    inset: 24px -24px -24px 24px;
    border: 2px dashed var(--sky-deep);
    border-radius: 20px;
    z-index: -1;
}
.split.flip .split-media { order: 2; }
.split.flip .split-media::before { inset: 24px 24px -24px -24px; }
.split-copy p { color: var(--muted); font-size: 1.03rem; }
.split-copy .btn { margin-top: 10px; }

/* ---------- Steps (The Process) ---------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    counter-reset: step;
}
.step-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 64px 28px 30px;
    box-shadow: var(--shadow-sm);
}
.step-card::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: -24px;
    left: 26px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--green);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    box-shadow: 0 8px 18px rgba(15, 163, 107, .4);
}
.step-card .step-icon {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 2rem;
    color: var(--sky-deep);
}
.step-card h3 { font-size: 1.2rem; }
.step-card p { color: var(--muted); font-size: .96rem; margin: 0; }
.steps-wrap { padding-top: 24px; }

/* ---------- Checklist ---------- */
.check-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    font-weight: 600;
    color: var(--navy);
    box-shadow: var(--shadow-sm);
}
.check-item i { font-size: 1.5rem; color: var(--green); flex-shrink: 0; }

/* ---------- Testimonials ---------- */
.testimonials { position: relative; }
.testimonial-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.testimonial {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.testimonial .stars { color: var(--amber); font-size: 1.05rem; letter-spacing: 2px; }
.testimonial blockquote {
    margin: 0;
    font-size: .95rem;
    color: var(--muted);
    flex-grow: 1;
}
.testimonial blockquote strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.08rem;
    color: var(--navy);
    margin-bottom: 8px;
}
.testimonial .who {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px dashed var(--line);
    padding-top: 16px;
}
.testimonial .who img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
}
.testimonial .who span { font-weight: 700; color: var(--navy); font-size: .95rem; }
.testimonial .who small { display: block; color: var(--muted); font-weight: 400; }

/* ---------- CTA band ---------- */
.cta-band {
    background:
        radial-gradient(700px 380px at 12% 120%, rgba(46, 134, 201, .35) 0%, transparent 70%),
        var(--navy);
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.cta-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='400' viewBox='0 0 1400 400' fill='none'%3E%3Cpath d='M-40 380 C 350 350, 750 260, 1050 140 S 1360 10, 1460 -40' stroke='%23ffffff' stroke-opacity='0.12' stroke-width='2' stroke-dasharray='2 10' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: cover;
    pointer-events: none;
}
.cta-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, .8); margin: 0; font-size: 1.05rem; }
.cta-band-actions { display: flex; gap: 14px; flex-shrink: 0; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-deep);
    color: rgba(255, 255, 255, .78);
    padding: 72px 0 0;
    font-size: .95rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
}
.footer-about img { margin-bottom: 18px; filter: brightness(0) invert(1); opacity: .95; }
.footer-about p { line-height: 1.7; }
.footer-col h3 {
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a, .footer-col .link-btn {
    color: rgba(255, 255, 255, .78);
    transition: color .15s ease;
}
.footer-col a:hover, .footer-col .link-btn:hover { color: #fff; }
.footer-contact {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    line-height: 1.6;
}
.footer-contact i { font-size: 1.25rem; color: var(--blue); margin-top: 2px; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 22px 0;
    font-size: .85rem;
    color: rgba(255, 255, 255, .55);
}
.footer-bottom p { margin: 0; }

/* ---------- Apply modal ---------- */
.apply-modal {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: grid;
    place-items: center;
    padding: 24px;
}
.apply-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 44, 72, .72);
    backdrop-filter: blur(4px);
}
.apply-modal-panel {
    position: relative;
    width: min(680px, 100%);
    max-height: calc(100vh - 48px);
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    animation: modal-in .3s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes modal-in {
    from { opacity: 0; transform: translateY(24px) scale(.97); }
    to   { opacity: 1; transform: none; }
}
.apply-modal-panel iframe {
    width: 100%;
    min-height: min(720px, calc(100vh - 48px));
    border: 0;
}
.apply-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    background: var(--sky);
    color: var(--navy);
    font-size: 1.4rem;
    display: grid;
    place-items: center;
    transition: background .15s ease, color .15s ease;
}
.apply-modal-close:hover { background: var(--navy); color: #fff; }
body.modal-open { overflow: hidden; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
    position: relative;
    background:
        radial-gradient(800px 400px at 90% -20%, rgba(46, 134, 201, .35) 0%, transparent 65%),
        var(--navy);
    color: #fff;
    padding: 88px 0;
    overflow: hidden;
}
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='500' viewBox='0 0 1400 500' fill='none'%3E%3Cpath d='M-40 470 C 350 440, 720 340, 1020 190 S 1350 20, 1460 -30' stroke='%23ffffff' stroke-opacity='0.12' stroke-width='2' stroke-dasharray='2 10' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: cover;
    pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { color: #9fcdee; }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero .lede {
    color: rgba(255, 255, 255, .82);
    font-size: 1.12rem;
    max-width: 40rem;
    margin-bottom: 30px;
}
.page-hero .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Program key-facts strip ---------- */
.facts-strip { margin-top: -52px; position: relative; z-index: 5; }
.facts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.fact {
    padding: 26px 26px;
    display: flex;
    gap: 14px;
    align-items: center;
}
.fact + .fact { border-left: 1px solid var(--line); }
.fact i { font-size: 2rem; color: var(--blue); flex-shrink: 0; }
.fact dt { font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.fact dd {
    margin: 2px 0 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.12rem;
    color: var(--navy);
}

/* ---------- Landing page (campaign) ---------- */
.rating-strip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 18px;
    box-shadow: var(--shadow-sm);
    font-size: .88rem;
    font-weight: 600;
    color: var(--navy);
}
.rating-strip .stars { color: var(--amber); letter-spacing: 2px; font-size: 1rem; }

.apply-section {
    background:
        radial-gradient(700px 400px at 100% 0%, rgba(46, 134, 201, .12) 0%, transparent 65%),
        var(--sky);
    scroll-margin-top: var(--header-h);
}
.apply-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 48px;
    align-items: start;
}
.app-frame {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
    padding: 14px;
}
.app-frame iframe {
    width: 100%;
    min-height: 46rem;
    border: 0;
    display: block;
    border-radius: 14px;
}
.apply-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.apply-aside h2 { margin-bottom: 12px; }
.apply-aside .aside-lede { color: var(--muted); font-size: 1.03rem; margin-bottom: 24px; }
.aside-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-weight: 600;
    color: var(--navy);
    border-bottom: 1px dashed var(--line);
}
.aside-checklist li:last-child { border-bottom: 0; }
.aside-checklist i { color: var(--green); font-size: 1.4rem; flex-shrink: 0; }
.aside-checklist small { display: block; font-weight: 400; color: var(--muted); }
.aside-phone {
    margin-top: 22px;
    background: var(--navy);
    color: #fff;
    border-radius: var(--radius);
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.aside-phone i { font-size: 1.9rem; color: var(--amber); }
.aside-phone small { display: block; color: rgba(255, 255, 255, .7); font-size: .82rem; }
.aside-phone a { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }

/* FAQ */
.faq-list { max-width: 760px; margin-inline: auto; }
.faq-list details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-list summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--navy);
    font-size: 1.02rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: "\f107"; /* la-angle-down */
    font-family: "Line Awesome Free";
    font-weight: 900;
    color: var(--blue);
    transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(180deg); }
.faq-list details p { padding: 0 22px 18px; margin: 0; color: var(--muted); }

/* Sticky mobile CTA */
.sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: none;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 30px rgba(13, 63, 102, .14);
    transition: transform .25s ease;
}
.sticky-cta.is-hidden { transform: translateY(110%); }
.footer-landing { padding-bottom: 40px; }
.footer-landing img { margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .95; }

@media (max-width: 1080px) {
    .apply-grid { grid-template-columns: 1fr; }
    .apply-aside { position: static; order: -1; }
}
@media (max-width: 640px) {
    .sticky-cta { display: block; }
    .body-landing { padding-bottom: 72px; }
}

/* ---------- Scroll top ---------- */
.scroll-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 90;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 0;
    background: var(--navy);
    color: #fff;
    font-size: 1.4rem;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-md);
    transition: background .15s ease, transform .15s ease;
}
.scroll-top:hover { background: var(--green); transform: translateY(-3px); }

/* ---------- Reveal on scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .main-nav { display: none; }
    .nav-toggle { display: flex; }
    .header-phone span { display: none; }
    .hero-inner { grid-template-columns: 1fr; gap: 48px; }
    .split, .split.flip { grid-template-columns: 1fr; gap: 40px; }
    .split.flip .split-media { order: 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .programs-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonial-track { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
    .check-grid { grid-template-columns: repeat(2, 1fr); }
    .facts-grid { grid-template-columns: repeat(2, 1fr); }
    .fact:nth-child(odd) { border-left: 0; }
    .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
    .steps-grid { grid-template-columns: 1fr; gap: 44px; max-width: 560px; margin-inline: auto; }
    .cta-band-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
    .section { padding: 64px 0; }
    .hero { padding: 48px 0 72px; }
    .header-actions .btn { padding: 11px 18px; font-size: .88rem; }
    .brand img { width: 175px; }
    .programs-grid { grid-template-columns: 1fr; }
    .check-grid { grid-template-columns: 1fr; }
    .stats-grid { gap: 26px 16px; }
    .calc-card { padding: 28px 22px 24px; }
    .calc-meta { flex-direction: column; gap: 12px; }
    .facts-grid { grid-template-columns: 1fr; }
    .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
    .split-media::before { display: none; }
    .apply-modal { padding: 10px; }
    .apply-modal-panel { max-height: calc(100vh - 20px); }
}
