/* Facultix by Praasa: sub-site styles */

:root {
    --ink: #172033;
    --ink-raised: #26324A;
    --ink-line: #2E3B55;
    --brand: #2453B3;
    --brand-hover: #1C4392;
    --brand-bright: #3B6FD8;
    --brand-50: #EEF3FC;
    --brand-100: #DCE6F8;
    --page: #F5F7FB;
    --surface: #FFFFFF;
    --line: #E1E6EF;
    --field-line: #CBD3E1;
    --text: #3A404B;
    --muted: #555B66;
    --on-ink: #FFFFFF;
    --on-ink-body: #D5D9E0;
    --on-ink-muted: #C3C9D3;
    --on-ink-badge: #C9D6F5;
    --success: #1D6B3F;
    --success-bg: #E6F4EA;
    --warn: #9A4A0B;
    --warn-bg: #FDF1E7;
    --error: #B42318;
    --error-bg: #FDECEA;
    --whatsapp: #1A7F4B;

    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 18px;
    --radius-xl: 22px;
    --shadow-sm: 0 1px 2px rgba(23, 32, 51, 0.06), 0 1px 3px rgba(23, 32, 51, 0.06);
    --shadow-md: 0 10px 24px -16px rgba(23, 32, 51, 0.22);
    --shadow-lg: 0 20px 40px -24px rgba(8, 14, 28, 0.5);
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --header-h: 72px;
}

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

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Serif italic accent for a key phrase in headings. */
h1 em,
h2 em {
    color: var(--brand);
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.12em;
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.hero h1 em,
.page-hero h1 em,
.section-dark h2 em,
.cta-band h2 em {
    color: #A9C2F5;
}

h1,
h2,
h3,
p,
ul,
ol {
    margin: 0;
}

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

a:hover {
    color: var(--brand);
}

input,
select,
button,
textarea {
    font-family: inherit;
}

:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--brand);
    color: var(--on-ink);
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
    color: var(--on-ink);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

@media (max-width: 600px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

.icon {
    width: 20px;
    height: 20px;
    flex: none;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 14px;
    border: 1.5px solid transparent;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
        transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.btn .icon {
    width: 18px;
    height: 18px;
    transition: transform 0.25s var(--ease);
}

.btn:hover .icon-arrow {
    transform: translateX(4px);
}

.btn-primary {
    background: var(--brand);
    color: var(--on-ink);
}

.btn-primary:hover {
    background: var(--brand-hover);
    color: var(--on-ink);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: progress;
    box-shadow: none;
}

.btn-light {
    background: var(--surface);
    color: var(--ink);
}

.btn-light:hover {
    background: var(--brand-50);
    color: var(--ink);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.7);
    color: var(--on-ink);
}

.btn-outline-light:hover {
    border-color: var(--on-ink);
    background: rgba(255, 255, 255, 0.08);
    color: var(--on-ink);
}

.btn-outline {
    border-color: var(--field-line);
    background: var(--surface);
    color: var(--ink);
}

.btn-outline:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.btn-whatsapp {
    border-color: #BFE3CD;
    background: #EAF7EF;
    color: var(--whatsapp);
}

.btn-whatsapp:hover {
    border-color: var(--whatsapp);
    color: var(--whatsapp);
}

@media (hover: hover) {
    .btn:hover {
        transform: translateY(-1px);
    }

    .btn:active {
        transform: translateY(0);
    }
}

.btn-sm {
    flex: none;
    min-height: 44px;
    padding: 0 18px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    white-space: nowrap;
}

.btn-block {
    width: 100%;
}

.btn-text {
    min-height: 44px;
    padding: 0 16px;
    border: none;
    background: transparent;
    color: var(--brand);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-text:hover {
    text-decoration: underline;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    min-height: 44px;
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
}

.link-arrow .icon {
    width: 18px;
    height: 18px;
    transition: transform 0.25s var(--ease);
}

.link-arrow:hover .icon {
    transform: translateX(4px);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: saturate(1.6) blur(14px);
    backdrop-filter: saturate(1.6) blur(14px);
    transition: box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
    border-bottom-color: transparent;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 24px -16px rgba(23, 32, 51, 0.35);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: var(--header-h);
    padding-top: 10px;
    padding-bottom: 10px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--ink);
    text-decoration: none;
}

.brand:hover {
    color: var(--ink);
}

.brand-mark {
    flex: none;
}

.brand-mark .gaps rect {
    transition: fill 0.3s ease, stroke 0.3s ease;
}

.brand-mark .gaps rect:nth-child(2) {
    transition-delay: 0.08s;
}

.brand-mark .gaps rect:nth-child(3) {
    transition-delay: 0.16s;
}

.brand:hover .brand-mark .gaps rect {
    fill: var(--brand-bright);
    stroke: var(--brand-bright);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.brand-by {
    font-size: 11px;
    color: var(--muted);
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 26px;
    font-size: 15px;
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
    transform: scaleX(1);
}

.nav-link[aria-current="page"] {
    color: var(--brand);
}

.nav-cta[aria-current="page"] {
    background: var(--brand-hover);
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
}

.menu-toggle .icon {
    width: 22px;
    height: 22px;
}

.menu-toggle .icon-close,
.menu-toggle[aria-expanded="true"] .icon-menu {
    display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
    display: block;
}

@media (max-width: 880px) {
    .js .menu-toggle {
        display: inline-flex;
    }

    .js .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 0;
        padding: 8px 16px 20px;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-md);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s var(--ease), visibility 0s linear 0.2s;
    }

    .js .site-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity 0.2s ease, transform 0.25s var(--ease);
    }

    .js .nav-link {
        min-height: 54px;
        border-bottom: 1px solid var(--line);
        font-size: 16px;
    }

    .js .nav-link::after {
        display: none;
    }

    .js .nav-cta {
        margin-top: 16px;
        min-height: 52px;
    }

    .no-js .header-inner {
        flex-wrap: wrap;
    }

    .no-js .site-nav {
        gap: 0 18px;
    }
}

@media (max-width: 420px) {
    .header-inner {
        gap: 8px;
    }

    .brand {
        gap: 8px;
    }

    .brand-mark {
        width: 30px;
        height: 30px;
    }

    .brand-name {
        font-size: 19px;
    }
}

/* ---------- Dark bands: shared background ---------- */

.hero,
.page-hero,
.section-dark,
.cta-band {
    position: relative;
    overflow: hidden;
    background: var(--ink);
    color: var(--on-ink);
    isolation: isolate;
}

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

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: 56px;
    padding-top: 80px;
    padding-bottom: 56px;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.hero-copy > * {
    animation: rise 0.8s var(--ease) both;
}

.hero-copy > :nth-child(2) {
    animation-delay: 0.08s;
}

.hero-copy > :nth-child(3) {
    animation-delay: 0.16s;
}

.hero-copy > :nth-child(4) {
    animation-delay: 0.24s;
}

.hero-copy > :nth-child(5) {
    animation-delay: 0.32s;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--on-ink-badge);
    font-size: 13px;
    font-weight: 600;
}

.badge-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5BD08F;
}

.hero h1 {
    font-size: clamp(2.3rem, 4.8vw, 3.6rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.hero-lead {
    max-width: 36rem;
    color: var(--on-ink-body);
    font-size: 18px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-note {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--on-ink-muted);
    font-size: 14px;
}

.hero-note .icon {
    width: 16px;
    height: 16px;
}

.hero-note a {
    color: var(--on-ink);
    font-weight: 600;
}

@media (max-width: 960px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 44px;
        padding-top: 56px;
        padding-bottom: 48px;
    }

    .hero-visual {
        max-width: 560px;
    }
}

@media (max-width: 600px) {
    .hero-lead {
        font-size: 17px;
    }

    .hero-actions .btn {
        flex: 1 1 100%;
    }
}

/* Timetable illustration */

.hero-visual {
    position: relative;
    animation: float-in 1s var(--ease) 0.25s both;
}

.tt {
    padding: 22px;
    border-radius: var(--radius-xl);
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-lg);
}

.tt-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.tt-title {
    display: flex;
    flex-direction: column;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.tt-title small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
}

.tt-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: none;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--warn-bg);
    color: var(--warn);
    font-size: 12px;
    font-weight: 600;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.tt-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.tt-status.is-done {
    background: var(--success-bg);
    color: var(--success);
}

.tt-grid {
    display: grid;
    grid-template-columns: 40px repeat(5, minmax(0, 1fr));
    gap: 6px;
}

.tt-day {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

.tt-time {
    align-self: center;
    color: var(--muted);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

.tt-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 4px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid transparent;
    background: #F1F4F9;
    color: var(--text);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.45s ease, color 0.45s ease, border-color 0.45s ease;
}

.tt-slot.is-filled .tt-vacant,
.tt-slot.is-vacant .tt-placed {
    display: none;
}

.tt-slot.is-vacant {
    border-style: dashed;
    border-color: #C5CBD6;
    background: var(--surface);
    color: #8A93A3;
    font-weight: 500;
}

.tt-slot.is-filled {
    background: var(--brand);
    color: var(--on-ink);
}

.js .tt-slot.is-filled {
    animation: pop 0.5s var(--ease);
}

.tt-toast {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--text);
    font-size: 12px;
}

.tt-toast .icon {
    width: 16px;
    height: 16px;
    color: var(--success);
}

.js .tt-toast {
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.35s ease, transform 0.35s var(--ease);
}

.js .tt-toast.is-shown {
    opacity: 1;
    transform: none;
}

@media (max-width: 600px) {
    .tt {
        padding: 16px;
    }

    .tt-grid {
        grid-template-columns: 30px repeat(5, minmax(0, 1fr));
        gap: 4px;
    }

    .tt-cell {
        height: 34px;
        border-radius: 7px;
        font-size: 10px;
    }

    .tt-day {
        font-size: 10px;
    }

    .tt-time {
        font-size: 9px;
    }
}

/* ---------- Assurance strip (overlaps hero) ---------- */

.hero-assure {
    position: relative;
    padding-bottom: 72px;
}

@media (max-width: 600px) {
    .hero-assure {
        padding-bottom: 48px;
    }
}

.assure-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-radius: var(--radius-xl);
}

.assure-item {
    display: flex;
    gap: 14px;
    padding: 24px 22px;
}

.assure-item + .assure-item {
    border-left: 1px solid var(--line);
}

.assure-item h3 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.assure-item p {
    margin-top: 4px;
    color: var(--text);
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 960px) {
    .assure-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .assure-item:nth-child(3) {
        border-left: none;
    }

    .assure-item:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }
}

@media (max-width: 560px) {
    .assure-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .assure-item + .assure-item {
        border-left: none;
        border-top: 1px solid var(--line);
    }
}

/* ---------- Icon tiles ---------- */

.icon-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: var(--radius-sm);
    background: var(--cat-bg, var(--brand-50));
    color: var(--cat-fg, var(--brand));
    transition: transform 0.35s var(--ease), background-color 0.3s ease, color 0.3s ease;
}

.icon-tile .icon {
    width: 22px;
    height: 22px;
}

.icon-tile-lg {
    width: 52px;
    height: 52px;
    border-radius: 14px;
}

.icon-tile-lg .icon {
    width: 26px;
    height: 26px;
}

/* ---------- Sections ---------- */

.section {
    padding-top: 88px;
    padding-bottom: 88px;
}

.section-tight-top {
    padding-top: 64px;
}

.section-alt {
    background: rgba(255, 255, 255, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
}

@media (max-width: 600px) {
    .section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .section-tight-top {
        padding-top: 48px;
    }
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 46rem;
    margin-bottom: 36px;
}

.section-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 32px;
    margin-bottom: 36px;
}

.section-head-row .section-head {
    margin-bottom: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    color: var(--brand);
    font-size: 14px;
    font-weight: 600;
}

.eyebrow::before {
    content: '';
    width: 14px;
    height: 14px;
    flex: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Crect width='6' height='6' rx='1.5' fill='%232453B3'/%3E%3Crect x='8' width='6' height='6' rx='1.5' fill='%232453B3'/%3E%3Crect y='8' width='6' height='6' rx='1.5' fill='%232453B3'/%3E%3Crect x='8.75' y='8.75' width='4.5' height='4.5' rx='1.2' fill='none' stroke='%23AEB8CA' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.section-dark .eyebrow {
    color: #8FB0F0;
}

.section-dark .eyebrow::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Crect width='6' height='6' rx='1.5' fill='%238FB0F0'/%3E%3Crect x='8' width='6' height='6' rx='1.5' fill='%238FB0F0'/%3E%3Crect y='8' width='6' height='6' rx='1.5' fill='%238FB0F0'/%3E%3Crect x='8.75' y='8.75' width='4.5' height='4.5' rx='1.2' fill='none' stroke='%235A6A88' stroke-width='1.5'/%3E%3C/svg%3E");
}

.section-title {
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.section-sub {
    color: var(--text);
    font-size: 17px;
    line-height: 1.65;
}

/* ---------- Cards ---------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 26px;
    border-radius: var(--radius-lg);
    transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.35s ease;
}

.card h3 {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
}

.card p {
    color: var(--text);
    font-size: 15px;
    line-height: 1.65;
}

@media (hover: hover) {
    .card:hover {
        transform: translateY(-3px);
        border-color: var(--cat-line, var(--brand-100));
        box-shadow: var(--shadow-md);
    }

    .card:hover .icon-tile {
        background: var(--cat-fg, var(--brand));
        color: var(--on-ink);
    }
}

.card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--brand-50);
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.pill-muted {
    background: var(--page);
    color: var(--muted);
}

.check-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    list-style: none;
}

.check-list li {
    display: flex;
    gap: 10px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
}

.check-list .icon {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    color: var(--brand);
}

.card-divider {
    height: 1px;
    margin: 4px 0;
    background: var(--line);
}

.section-note {
    margin-top: 24px;
    color: var(--text);
    font-size: 15px;
}

/* ---------- Subject categories (shared colour sets) ---------- */

.cat-mgmt {
    --cat-bg: #EEF3FC;
    --cat-fg: #2453B3;
    --cat-ink: #1E3A7B;
    --cat-line: #C9D7F2;
}

.cat-ai {
    --cat-bg: #F2EDFD;
    --cat-fg: #6D3FD4;
    --cat-ink: #46238F;
    --cat-line: #DACCF7;
}

.cat-fin {
    --cat-bg: #E8F6EE;
    --cat-fg: #15803D;
    --cat-ink: #14532D;
    --cat-line: #BFE3CD;
}

.cat-res {
    --cat-bg: #FEF3E2;
    --cat-fg: #B45309;
    --cat-ink: #7C3A07;
    --cat-line: #F6D9AE;
}

/* ---------- Subject chips ---------- */

.chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px 6px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.9);
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 0 0 1px rgba(23, 32, 51, 0.06), 0 6px 14px -10px rgba(23, 32, 51, 0.3);
    transition: border-color 0.25s ease, transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.chip-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 50%;
    background: var(--cat-bg, var(--brand-50));
    color: var(--cat-fg, var(--brand));
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.35s var(--ease);
}

.chip-icon .icon {
    width: 16px;
    height: 16px;
}

@media (hover: hover) {
    .chip:hover {
        border-color: var(--cat-line, var(--brand-100));
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
    }

    .chip:hover .chip-icon {
        background: var(--cat-fg, var(--brand));
        color: var(--on-ink);
    }
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    list-style: none;
}

.chip-list .chip {
    padding: 5px 14px 5px 5px;
    font-size: 13px;
    box-shadow: none;
}

.chip-list .chip-icon {
    width: 26px;
    height: 26px;
}

.chip-list .chip-icon .icon {
    width: 14px;
    height: 14px;
}

/* ---------- Subject marquee ---------- */

.marquee-wrap {
    padding-top: 60px;
}

.marquee-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    text-align: center;
}

.marquee-label {
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
}

.marquee {
    display: flex;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    flex: none;
    gap: 12px;
    padding: 8px 12px 8px 0;
    list-style: none;
    animation: marquee 100s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

/* ---------- Steps (home teaser) ---------- */

.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding: 0;
    list-style: none;
}

.steps::before,
.steps::after {
    content: '';
    position: absolute;
    top: 47px;
    left: 48px;
    right: 48px;
    height: 2px;
    background: var(--line);
}

.steps::after {
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.6s var(--ease) 0.2s;
}

.steps.is-visible::after,
.no-js .steps::after {
    transform: scaleX(1);
}

.step {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px 22px;
    border-radius: var(--radius-lg);
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--on-ink);
    font-weight: 700;
    box-shadow: 0 0 0 6px var(--surface);
}

.step:last-child .step-num {
    background: var(--ink);
}

.step-title {
    font-size: 17px;
    font-weight: 600;
}

.step-text {
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 960px) {
    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .steps::before,
    .steps::after {
        display: none;
    }
}

@media (max-width: 560px) {
    .steps {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- Timeline (How it works page) ---------- */

.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 22px;
    max-width: 860px;
    padding: 0;
    list-style: none;
}

.timeline::before,
.timeline::after {
    content: '';
    position: absolute;
    top: 28px;
    bottom: 28px;
    left: 27px;
    width: 2px;
    border-radius: 2px;
}

.timeline::before {
    background: var(--line);
}

.timeline::after {
    background: var(--brand);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 1.8s var(--ease) 0.2s;
}

.timeline.is-visible::after,
.no-js .timeline::after {
    transform: scaleY(1);
}

.timeline-item {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 22px;
}

.timeline-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--brand);
    color: var(--brand);
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 0 0 6px var(--page);
}

.timeline-item:last-child .timeline-num {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--on-ink);
}

.timeline-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-card h3 {
    font-size: 20px;
}

.timeline-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    color: var(--brand);
    font-size: 13px;
    font-weight: 600;
}

.timeline-meta .icon {
    width: 16px;
    height: 16px;
}

@media (max-width: 560px) {
    .timeline::before,
    .timeline::after {
        left: 21px;
    }

    .timeline-item {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 14px;
    }

    .timeline-num {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .timeline-card {
        padding: 20px;
    }
}

/* ---------- Audience split (home) ---------- */

.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.split-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 36px;
    border-radius: var(--radius-xl);
    isolation: isolate;
    transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.split-card h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
}

.split-card p {
    font-size: 15px;
    line-height: 1.65;
}

.split-card .btn {
    align-self: flex-start;
    margin-top: 8px;
}

.split-dark {
    background: var(--ink);
    color: var(--on-ink);
}

.split-dark p {
    color: var(--on-ink-body);
}

.split-dark .icon-tile {
    background: var(--ink-raised);
    color: #8FB0F0;
}

.split-light p {
    color: var(--text);
}

.split-light .icon-tile {
    background: var(--surface);
}

@media (hover: hover) {
    .split-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-md);
    }

}

@media (max-width: 760px) {
    .split {
        grid-template-columns: minmax(0, 1fr);
    }

    .split-card {
        padding: 28px 24px;
    }
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px 56px;
    padding-top: 56px;
    padding-bottom: 72px;
}

.page-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.page-hero-copy > * {
    animation: rise 0.7s var(--ease) both;
}

.page-hero-copy > :nth-child(2) {
    animation-delay: 0.06s;
}

.page-hero-copy > :nth-child(3) {
    animation-delay: 0.12s;
}

.page-hero-copy > :nth-child(4) {
    animation-delay: 0.18s;
}

@media (max-width: 960px) {
    .page-hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--on-ink-muted);
    font-size: 13px;
}

.crumbs a {
    color: var(--on-ink-badge);
    text-decoration: none;
}

.crumbs a:hover {
    color: var(--on-ink);
    text-decoration: underline;
}

.page-hero h1 {
    max-width: 20ch;
    font-size: clamp(2.1rem, 4.4vw, 3.2rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.page-lead {
    max-width: 42rem;
    color: var(--on-ink-body);
    font-size: 18px;
    line-height: 1.65;
}

@media (max-width: 600px) {
    .page-hero-inner {
        padding-top: 40px;
        padding-bottom: 52px;
    }

    .page-lead {
        font-size: 17px;
    }
}

/* ---------- Subjects page ---------- */

.subject-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.subject-card {
    gap: 16px;
    padding: 30px;
}

.subject-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    right: 30px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--cat-fg, var(--brand));
}

.subject-card .card-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.subject-card h2 {
    font-size: 21px;
    font-weight: 600;
    line-height: 1.25;
}

.subject-use {
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
}

.subject-use strong {
    color: var(--ink);
    font-weight: 600;
}

@media (max-width: 760px) {
    .subject-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .subject-card {
        padding: 24px;
    }
}

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

@media (max-width: 860px) {
    .qual-band {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- FAQ ---------- */

.faq {
    max-width: 860px;
    border-top: 1px solid var(--line);
}

.faq details {
    border-bottom: 1px solid var(--line);
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    padding: 18px 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
}

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

.faq summary:hover {
    color: var(--brand);
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: none;
    border-radius: 50%;
    background: var(--brand-50);
    color: var(--brand);
    transition: transform 0.3s var(--ease), background-color 0.3s ease, color 0.3s ease;
}

.faq-icon .icon {
    width: 18px;
    height: 18px;
}

.faq details[open] .faq-icon {
    transform: rotate(45deg);
    background: var(--brand);
    color: var(--on-ink);
}

.faq-body {
    padding: 0 48px 22px 0;
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
}

.faq details[open] .faq-body {
    animation: rise 0.35s var(--ease);
}

/* ---------- CTA band ---------- */

.cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px 48px;
    padding-top: 64px;
    padding-bottom: 64px;
}

.cta-copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 38rem;
}

.cta-copy h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.cta-copy p {
    color: var(--on-ink-body);
    font-size: 16px;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 600px) {
    .cta-actions .btn {
        flex: 1 1 100%;
    }
}

/* ---------- Form pages ---------- */

.form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: start;
    gap: 28px;
}

@media (max-width: 960px) {
    .form-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

.aside-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

@media (min-width: 961px) {
    .aside-stack {
        position: sticky;
        top: calc(var(--header-h) + 20px);
    }
}

.aside-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    padding: 26px;
    border-radius: var(--radius-xl);
}

.aside-card h2 {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
}

.aside-card > p {
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
}

.person {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 0 1px rgba(23, 32, 51, 0.05);
}

.person-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 50%;
    background: var(--brand);
    color: var(--on-ink);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.person-name {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.person-name strong {
    font-size: 15px;
    font-weight: 600;
}

.person-name span {
    color: var(--muted);
    font-size: 13px;
}

.person-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.person-actions .btn {
    min-height: 44px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.person-actions .btn .icon {
    width: 16px;
    height: 16px;
}

.person-phone {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.mail-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-size: 14px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.mail-link .icon {
    width: 18px;
    height: 18px;
    color: var(--brand);
}

.mini-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0;
    list-style: none;
    counter-reset: mini;
}

.mini-steps li {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 12px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    counter-increment: mini;
}

.mini-steps li::before {
    content: counter(mini);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--brand-50);
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
}

.mini-steps strong {
    display: block;
    color: var(--ink);
    font-weight: 600;
}

/* ---------- Forms ---------- */

.form-card {
    position: relative;
    padding: 30px;
    border-radius: var(--radius-xl);
}

.form-card-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 22px;
}

.form-card-head h2 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
}

.form-card-head p {
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .form-card {
        padding: 20px;
    }
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.field-wide {
    grid-column: 1 / -1;
}

.field label {
    font-size: 13px;
    font-weight: 600;
}

.optional {
    color: var(--muted);
    font-weight: 400;
}

.field input,
.field select {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--field-line);
    background: rgba(255, 255, 255, 0.7);
    color: var(--ink);
    font-size: 15px;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.field select {
    padding: 0 10px;
}

.field input:hover,
.field select:hover {
    border-color: #AEB8CA;
}

.field input:focus,
.field select:focus {
    outline: none;
    border-color: var(--brand);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(36, 83, 179, 0.15);
}

.field input:user-invalid,
.field select:user-invalid {
    border-color: var(--error);
}

.field-hint {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text);
    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
}

.consent input {
    flex: none;
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: var(--brand);
}

.hp {
    display: none !important;
}

.form-error {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: var(--error-bg);
    color: var(--error);
    font-size: 14px;
    line-height: 1.5;
    animation: shake 0.4s ease;
}

.form-error a {
    color: var(--error);
    font-weight: 600;
}

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 48px 8px;
    text-align: center;
    animation: rise 0.5s var(--ease);
}

.form-success:focus {
    outline: none;
}

.success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--success-bg);
    animation: pop 0.6s var(--ease);
}

.success-icon path {
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
    animation: draw 0.5s ease 0.25s forwards;
}

.success-title {
    font-size: 22px;
    font-weight: 600;
}

.success-text {
    max-width: 30rem;
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
}

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

.site-footer {
    background: var(--ink);
    color: var(--on-ink-body);
    font-size: 14px;
}

.site-footer a {
    color: var(--on-ink);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--on-ink-badge);
    text-decoration: underline;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 36px;
    padding-top: 64px;
    padding-bottom: 40px;
}

.footer-about {
    display: flex;
    flex-direction: column;
    gap: 14px;
    line-height: 1.6;
}

.site-footer .brand,
.site-footer .brand:hover {
    color: var(--on-ink);
    text-decoration: none;
}

.site-footer .brand-by {
    color: var(--on-ink-muted);
}

.footer-small {
    color: var(--on-ink-muted);
    font-size: 13px;
}

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

.footer-title {
    color: var(--on-ink);
    font-size: 14px;
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    list-style: none;
    line-height: 1.5;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
}

.footer-person {
    display: block;
    color: var(--on-ink-muted);
    font-size: 12px;
}

.footer-col address {
    font-style: normal;
    line-height: 1.6;
}

.footer-base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding-top: 20px;
    padding-bottom: 28px;
    border-top: 1px solid var(--ink-raised);
    color: var(--on-ink-muted);
    font-size: 13px;
}

@media (max-width: 960px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        padding-top: 48px;
    }
}

/* ---------- Thank-you page ---------- */

.thanks {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-h) - 120px);
    padding-top: 64px;
    padding-bottom: 64px;
}

.thanks-card {
    max-width: 580px;
    padding: 44px 28px;
    border-radius: var(--radius-xl);
}

.thanks-card .hero-actions {
    justify-content: center;
}

/* ---------- Glass surfaces ---------- */
/* Flat translucent panels with a hairline border. */

.card,
.step,
.aside-card,
.form-card,
.assure-grid,
.faq-panel,
.thanks-card,
.split-light {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    box-shadow: 0 1px 2px rgba(23, 32, 51, 0.04);
}

.form-card {
    background: rgba(255, 255, 255, 0.9);
}

.split-light {
    background: rgba(238, 243, 252, 0.8);
    border-color: var(--brand-100);
}

.card-featured {
    border-color: var(--brand);
}

/* Solid and above the connector, so the line only shows between steps. */
.step {
    z-index: 1;
    background: var(--surface);
}

/* ---------- Dark sections with smoked glass ---------- */

.hero .assure-grid {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.hero .assure-item + .assure-item {
    border-color: rgba(255, 255, 255, 0.1);
}

.hero .assure-item p {
    color: var(--on-ink-muted);
}

.hero .assure-item .icon-tile {
    background: rgba(255, 255, 255, 0.08);
    color: #8FB0F0;
}

.section-dark .section-sub,
.section-dark .section-note,
.section-dark .card p,
.section-dark .check-list li {
    color: var(--on-ink-body);
}

.section-dark .card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    color: var(--on-ink);
}

.section-dark .card-featured {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(143, 176, 240, 0.55);
}

.section-dark .icon-tile {
    background: rgba(255, 255, 255, 0.08);
    color: #8FB0F0;
}

.section-dark .check-list .icon,
.section-dark .link-arrow {
    color: #8FB0F0;
}

.section-dark .card-divider {
    background: rgba(255, 255, 255, 0.1);
}

.section-dark .pill {
    background: rgba(143, 176, 240, 0.16);
    color: var(--on-ink-badge);
}

.section-dark .pill-muted {
    background: rgba(255, 255, 255, 0.08);
    color: var(--on-ink-muted);
}

@media (hover: hover) {
    .section-dark .card:hover {
        border-color: rgba(255, 255, 255, 0.24);
        box-shadow: none;
    }

    .section-dark .card:hover .icon-tile {
        background: var(--brand-bright);
        color: var(--on-ink);
    }
}

/* ---------- Use cases (home) ---------- */

.uses-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
    align-items: start;
    gap: 56px;
}

.uses-intro {
    position: sticky;
    top: calc(var(--header-h) + 32px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.uses-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.use-card {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding: 16px;
}

.use-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 8px;
}

@media (max-width: 960px) {
    .uses-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .uses-intro {
        position: static;
    }
}

@media (max-width: 600px) {
    .use-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .use-copy {
        padding: 0 6px 8px;
    }
}

/* Small illustrations inside the use-case cards */

.scene {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-height: 136px;
    padding: 14px;
    overflow: hidden;
    border-radius: 14px;
    background: var(--page);
    box-shadow: inset 0 0 0 1px rgba(23, 32, 51, 0.06);
}

.scene .chip {
    align-self: flex-start;
    padding: 4px 12px 4px 4px;
    font-size: 12px;
}

.scene .chip-icon {
    width: 24px;
    height: 24px;
}

.scene .chip-icon .icon {
    width: 13px;
    height: 13px;
}

.scene-elective .chip:nth-child(2) {
    margin-left: 22px;
}

.scene-elective .chip:nth-child(3) {
    margin-left: 8px;
}

.scene-tag {
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--brand);
    color: var(--on-ink);
    font-size: 10px;
    font-weight: 700;
}

.mini-tt {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
}

.mini-day {
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    text-align: center;
}

.mini-tt .tt-cell {
    height: 30px;
    padding-left: 6px;
    border-radius: 7px;
    font-size: 10px;
}

/* The vacant period fills, holds, then empties again. Resting state is "covered". */
.mini-slot {
    position: relative;
    background: var(--brand);
    color: var(--on-ink);
    animation: mini-slot 5s ease-in-out infinite;
}

.mini-slot span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-v {
    opacity: 0;
    animation: mini-v 5s ease-in-out infinite;
}

.mini-p {
    animation: mini-p 5s ease-in-out infinite;
}

.event {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 0 0 1px rgba(23, 32, 51, 0.05), 0 8px 16px -12px rgba(23, 32, 51, 0.35);
}

.event-ic {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 9px;
    background: var(--cat-bg);
    color: var(--cat-fg);
}

.event-ic .icon {
    width: 16px;
    height: 16px;
}

.event-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

.event-text strong {
    font-size: 12px;
    font-weight: 600;
}

.event-text small {
    color: var(--muted);
    font-size: 11px;
}

.event-meta {
    flex: none;
    margin-left: auto;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--brand-50);
    color: var(--brand);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

/* ---------- Key facts panel (inner page heroes) ---------- */

.hero-facts {
    margin: 0;
    padding: 4px 26px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: float-in 1s var(--ease) 0.2s both;
}

.hero-fact {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 0;
}

.hero-fact + .hero-fact {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-fact dt {
    flex: none;
    min-width: 72px;
    color: #A9C2F5;
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 48px;
    font-style: italic;
    line-height: 1;
}

.hero-fact dd {
    margin: 0;
    color: var(--on-ink-body);
    font-size: 14px;
    line-height: 1.45;
}

.hero-fact dd strong {
    display: block;
    color: var(--on-ink);
    font-size: 15px;
    font-weight: 600;
}

@media (max-width: 600px) {
    .hero-facts {
        padding: 2px 20px;
    }

    .hero-fact dt {
        min-width: 60px;
        font-size: 40px;
    }
}

/* ---------- FAQ panel ---------- */

.faq-panel {
    padding: 4px 28px;
    border-radius: var(--radius-xl);
}

.faq-panel.faq {
    border-top: none;
}

.faq-panel details {
    border-bottom-color: rgba(23, 32, 51, 0.08);
}

.faq-panel details:last-child {
    border-bottom: none;
}

@media (max-width: 600px) {
    .faq-panel {
        padding: 4px 18px;
    }
}

/* ---------- Scroll reveal ---------- */
/* Uses `translate` so it never fights the hover `transform` on cards. */

.js .reveal:not(.is-visible) {
    opacity: 0;
}

.js .reveal.is-visible {
    animation: reveal-up 0.75s var(--ease) var(--d, 0s) both;
}

/* ---------- Keyframes ---------- */

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes reveal-up {
    from {
        opacity: 0;
        translate: 0 24px;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}

@keyframes float-in {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes pop {
    0% {
        transform: scale(0.85);
    }

    60% {
        transform: scale(1.06);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes mini-slot {
    0%,
    40%,
    100% {
        border: 1px dashed #C5CBD6;
        background: var(--surface);
        box-shadow: none;
        color: #8A93A3;
    }

    50%,
    92% {
        border: 1px solid transparent;
        background: var(--brand);
        box-shadow: none;
        color: var(--on-ink);
    }
}

@keyframes mini-v {
    0%,
    40%,
    100% {
        opacity: 1;
    }

    50%,
    92% {
        opacity: 0;
    }
}

@keyframes mini-p {
    0%,
    40%,
    100% {
        opacity: 0;
    }

    50%,
    92% {
        opacity: 1;
    }
}

@keyframes marquee {
    to {
        transform: translateX(-100%);
    }
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}

/* ---------- Reduced motion ---------- */

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }

    .marquee-track {
        flex-wrap: wrap;
        justify-content: center;
        flex: 1 1 auto;
        padding-right: 0;
        animation: none !important;
    }

    .marquee-track[aria-hidden="true"] {
        display: none;
    }

    .mini-slot,
    .mini-v,
    .mini-p {
        animation: none !important;
    }
}
