/* ---- Full-bleed pages --------------------------------------------------- */

/* The landing and the sign-in page run edge to edge. Done by widening the layout's
   container rather than with 100vw, which counts the vertical scrollbar and so left a
   horizontal scrollbar across the page. */
main.container:has(> .cm-landing), main.container:has(> .cm-auth) {
    max-width: none;
    padding: 0;
}

/* =============================================================================
   Core Meetings — Core Edge Health palette.

   Colours and shapes come from the Core Edge Health app: a pale blue page under
   a light blue bar, deep navy #05102b for brand panels, and the
   #0742E8 → #0B5CFF → #12A9C8 gradient on the action that matters
   (Products/CoreMetabolic/WEBNutritionExpert.Web/Views/Account/Login.cshtml).
   ========================================================================== */

:root {
    /* Page */
    --cm-page-1: #eaf4fb;
    --cm-page-2: #f4fafd;
    --cm-surface: #ffffff;
    --cm-topbar: #d7e9f8;

    /* Ink */
    --cm-ink: #0b1b3a;
    --cm-ink-soft: #334155;
    --cm-muted: #64748b;
    --cm-muted-2: #9aa9bc;
    --cm-line: #d9e2ec;
    --cm-line-soft: #e8eef5;

    /* Brand */
    --cm-brand: #0b5cff;
    --cm-brand-dark: #0742e8;
    --cm-brand-cyan: #12a9c8;
    --cm-teal: #17c6a0;
    --cm-teal-bright: #24e5a8;
    --cm-gold: #fbbd35;
    --cm-gradient: linear-gradient(100deg, #0742e8, #0b5cff 48%, #12a9c8);

    /* Dark brand panel */
    --cm-navy: #05102b;
    --cm-navy-text: #dce7f7;
    --cm-navy-muted: #8496b5;

    /* Shape */
    --cm-radius: 18px;
    --cm-radius-sm: 11px;
    --cm-shadow: 0 1px 2px rgba(16, 42, 90, .05), 0 12px 34px -12px rgba(16, 42, 90, .16);

    /* Bootstrap follows the same palette. */
    --bs-primary: #0b5cff;
    --bs-link-color: #0b5cff;
    --bs-link-hover-color: #0742e8;
    --bs-body-color: #0b1b3a;
    --bs-border-color: #d9e2ec;
}

body {
    background: linear-gradient(180deg, var(--cm-page-1) 0%, var(--cm-page-2) 100%);
    background-attachment: fixed;
    color: var(--cm-ink);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--cm-ink);
    font-weight: 700;
    letter-spacing: -.022em;
}

.h5, h5, .h6, h6 {
    font-weight: 600;
}

.text-secondary {
    color: var(--cm-muted) !important;
}

a {
    color: var(--cm-brand);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--cm-brand-dark);
}

/* ---- Top bar ------------------------------------------------------------ */

.cm-nav {
    background: var(--cm-topbar);
    border-bottom: 1px solid rgba(16, 42, 90, .08);
}

.cm-nav .navbar-brand {
    color: var(--cm-ink);
    font-weight: 700;
    letter-spacing: -.02em;
}

.cm-nav .nav-link, .cm-nav .navbar-text {
    color: #26456f;
}

.cm-nav .nav-link {
    border-radius: 9px;
    padding: .3rem .6rem;
}

.cm-nav .nav-link:hover {
    background: rgba(11, 92, 255, .08);
    color: var(--cm-brand-dark);
}

.cm-nav .nav-link.active {
    background: rgba(11, 92, 255, .12);
    color: var(--cm-brand-dark);
    font-weight: 600;
    text-decoration: none;
}

.cm-nav .btn-outline-light {
    border-color: rgba(16, 42, 90, .2);
    border-radius: 9px;
    color: var(--cm-ink);
    font-weight: 600;
}

.cm-nav .btn-outline-light:hover {
    background: rgba(255, 255, 255, .7);
    border-color: var(--cm-brand);
    color: var(--cm-brand-dark);
}

/* ---- Surfaces ----------------------------------------------------------- */

.card {
    background: var(--cm-surface);
    border: 1px solid rgba(16, 42, 90, .09);
    border-radius: var(--cm-radius);
    box-shadow: var(--cm-shadow);
}

.card > .card-body {
    padding: 1.3rem 1.4rem;
}

.auth-card {
    max-width: 27rem;
    margin: 2.5rem auto;
}

.alert {
    border-radius: var(--cm-radius-sm);
    font-size: .95rem;
}

.alert-info {
    background: rgba(11, 92, 255, .07);
    border-color: rgba(11, 92, 255, .22);
    color: #0b3ea8;
}

.alert-success {
    background: rgba(23, 198, 160, .1);
    border-color: rgba(23, 198, 160, .3);
    color: #0a6b57;
}

.alert-warning {
    background: rgba(251, 189, 53, .12);
    border-color: rgba(251, 189, 53, .38);
    color: #8a5d00;
}

.alert-danger {
    background: #fef3f2;
    border-color: #fbd5d1;
    color: #b42318;
}

/* ---- Buttons ------------------------------------------------------------ */

.btn {
    --bs-btn-focus-box-shadow: 0 0 0 3px rgba(11, 92, 255, .2);
    border-radius: var(--cm-radius-sm);
    font-weight: 600;
    padding: .5rem 1rem;
    transition: transform .16s cubic-bezier(.22, 1, .36, 1), box-shadow .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease;
}

.btn-lg {
    border-radius: 13px;
    padding: .78rem 1.3rem;
}

.btn-sm {
    border-radius: 9px;
    font-size: .84rem;
    padding: .3rem .65rem;
}

.btn-primary {
    background: var(--cm-gradient);
    border: 0;
    box-shadow: 0 6px 18px -6px rgba(11, 92, 255, .55);
    color: #fff;
}

.btn-primary:hover:not(:disabled), .btn-primary:focus-visible {
    background: var(--cm-gradient);
    box-shadow: 0 10px 24px -8px rgba(11, 92, 255, .62);
    color: #fff;
    transform: translateY(-1.5px);
}

.btn-primary:disabled {
    background: var(--cm-gradient);
    box-shadow: none;
    filter: grayscale(.62) opacity(.55);
}

.btn-outline-primary {
    border-color: rgba(11, 92, 255, .35);
    color: var(--cm-brand);
}

.btn-outline-primary:hover {
    background: var(--cm-brand);
    border-color: var(--cm-brand);
    color: #fff;
}

.btn-outline-secondary {
    background: #fff;
    border-color: var(--cm-line);
    color: var(--cm-ink-soft);
}

.btn-outline-secondary:hover {
    background: #f4f8fc;
    border-color: var(--cm-brand);
    color: var(--cm-brand-dark);
}

.btn-link {
    color: var(--cm-brand);
    font-weight: 600;
    text-decoration: none;
}

.btn-link:hover {
    color: var(--cm-brand-dark);
    text-decoration: underline;
}

/* ---- Forms -------------------------------------------------------------- */

.form-control, .form-select {
    background-color: #fff;
    border: 1px solid var(--cm-line);
    border-radius: var(--cm-radius-sm);
    color: var(--cm-ink);
    padding: .72rem .9rem;
}

.form-control::placeholder {
    color: var(--cm-muted-2);
}

.form-control:focus, .form-select:focus {
    border-color: var(--cm-brand);
    box-shadow: 0 0 0 3px rgba(11, 92, 255, .14);
}

.form-label {
    color: var(--cm-ink-soft);
    font-size: .875rem;
    font-weight: 600;
    margin-bottom: .38rem;
}

.form-text {
    color: var(--cm-muted);
    font-size: .82rem;
}

.input-group-text {
    background: #f4f8fc;
    border-color: var(--cm-line);
    color: var(--cm-muted);
    font-size: .85rem;
}

/* ---- Tables ------------------------------------------------------------- */

.table {
    --bs-table-bg: transparent;
    margin-bottom: 0;
}

.table > thead th {
    background: #f4f8fc;
    border-bottom: 1px solid var(--cm-line);
    color: var(--cm-muted);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .06em;
    padding: .7rem .9rem;
    text-transform: uppercase;
}

.table > tbody td {
    border-color: var(--cm-line-soft);
    padding: .8rem .9rem;
    vertical-align: middle;
}

.table > tbody tr:last-child td {
    border-bottom: 0;
}

.table > tbody tr:hover td {
    background: #f8fbff;
}

.list-group-item {
    border-color: var(--cm-line);
}

/* ---- Status ------------------------------------------------------------- */

.badge {
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 600;
    padding: .34rem .68rem;
}

.badge.text-bg-success {
    background: rgba(23, 198, 160, .14) !important;
    color: #0a6b57 !important;
}

.badge.text-bg-secondary {
    background: #eef2f7 !important;
    color: var(--cm-ink-soft) !important;
}

.badge.text-bg-warning {
    background: rgba(251, 189, 53, .18) !important;
    color: #8a5d00 !important;
}

.badge.text-bg-danger {
    background: #fef3f2 !important;
    color: #b42318 !important;
}

.stepper {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    list-style: none;
    padding: 0;
}

.stepper li {
    background: #e3edf7;
    border-radius: 999px;
    color: var(--cm-muted);
    font-size: .85rem;
    font-weight: 600;
    padding: .28rem .75rem;
}

.stepper li.done {
    background: rgba(23, 198, 160, .16);
    color: #0a6b57;
}

.stepper li.current {
    background: var(--cm-gradient);
    box-shadow: 0 6px 16px -8px rgba(11, 92, 255, .6);
    color: #fff;
}

.stepper li.failed {
    background: #fef3f2;
    color: #b42318;
}

/* ---- Transcript --------------------------------------------------------- */

.segment {
    border-bottom: 1px solid var(--cm-line-soft);
    display: grid;
    gap: .75rem;
    grid-template-columns: 5.5rem 11rem 1fr;
    padding: .45rem .3rem;
}

.segment.highlight {
    background: rgba(251, 189, 53, .16);
}

.segment.playing {
    background: rgba(11, 92, 255, .08);
    box-shadow: inset 3px 0 0 var(--cm-brand);
}

.segment .time.btn {
    font-size: .85rem;
    text-decoration: none;
}

.segment .time {
    color: var(--cm-muted);
    font-size: .85rem;
    font-variant-numeric: tabular-nums;
}

.evidence {
    font-size: .8rem;
}

/* ---- Recorder ----------------------------------------------------------- */

.recorder-level {
    background: #dbe8f4;
    border-radius: 999px;
    height: 9px;
    overflow: hidden;
}

.recorder-level > div {
    background: linear-gradient(90deg, var(--cm-teal), var(--cm-teal-bright));
    height: 100%;
    transition: width .1s linear;
}

/* ---- Validation and errors ---------------------------------------------- */

.valid.modified:not([type=checkbox]) {
    border-color: var(--cm-teal);
    outline: 0;
}

.invalid {
    border-color: #f97066;
    outline: 0;
}

.validation-message {
    color: #b42318;
    font-size: .85rem;
}

#blazor-error-ui {
    background: #fff8e6;
    border-top: 1px solid rgba(251, 189, 53, .5);
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(16, 42, 90, .2);
    color: #8a5d00;
    display: none;
    left: 0;
    padding: .6rem 1.25rem .7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: .75rem;
    top: .5rem;
}

/* ---- Sign in ------------------------------------------------------------ */

/* The logo band, and nothing else: no application navigation on a page with one job. */
.cm-auth-bar {
    background: var(--cm-topbar);
    border-bottom: 1px solid rgba(16, 42, 90, .08);
    padding: 1rem clamp(1rem, 3vw, 2.5rem);
}

.cm-auth-bar-logo {
    display: block;
    height: 52px;
    width: auto;
}

.cm-auth-main {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
}

/* Brand panel on the left with the animation along its foot, the card on the right.
   Three blocks, so a phone can put the animation last. */
.cm-auth {
    display: grid;
    flex: 1;
    grid-template-areas:
        "visual form"
        "strip  form";
    grid-template-columns: minmax(32rem, 1.1fr) minmax(28rem, .9fr);
    grid-template-rows: 1fr auto;
    min-height: calc(100vh - 86px);
}

.cm-auth-visual, .cm-auth-strip {
    background: var(--cm-navy);
    color: #fff;
    display: flex;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.cm-auth-visual {
    align-items: flex-end;
    grid-area: visual;
    padding: clamp(2.5rem, 4vw, 4rem) clamp(1.5rem, 4vw, 4rem) 1rem;
}

.cm-auth-strip {
    grid-area: strip;
    padding: 1rem clamp(1.5rem, 4vw, 4rem) clamp(2rem, 3vw, 3rem);
}

/* Both washes are anchored to the viewport, so they run through the join between the
   two navy blocks rather than restarting at it. */
.cm-auth-visual::before, .cm-auth-strip::before {
    background:
        radial-gradient(circle at 30% 30%, rgba(11, 92, 255, .55), transparent 62%),
        radial-gradient(circle at 60% 85%, rgba(23, 198, 160, .45), transparent 62%);
    background-attachment: fixed;
    content: "";
    inset: 0;
    position: absolute;
}

.cm-auth-visual::after, .cm-auth-strip::after {
    background-attachment: fixed;
    background-image:
        linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
    background-size: 46px 46px;
    content: "";
    inset: 0;
    position: absolute;
}

.cm-auth-eyebrow {
    align-items: center;
    background: rgba(23, 198, 160, .09);
    border-radius: 999px;
    color: #7fe3c8;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 700;
    gap: .55rem;
    letter-spacing: .12em;
    margin-bottom: 1.6rem;
    padding: .4rem .9rem;
    text-transform: uppercase;
    width: fit-content;
}

.cm-auth-eyebrow::before {
    background: var(--cm-teal-bright);
    border-radius: 50%;
    content: "";
    height: 6px;
    width: 6px;
}

.cm-auth-visual h1 {
    color: #fff;
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.12;
    margin: 0 0 1.15rem;
}

.cm-auth-gradient {
    background: linear-gradient(100deg, #4da3ff 0%, #35e0c4 55%, #fbbd35 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* The lead carries a rule down its left edge; the note under it is quieter still. */
.cm-auth-lead {
    border-left: 2px solid rgba(255, 255, 255, .18);
    color: var(--cm-navy-text);
    font-size: .975rem;
    line-height: 1.72;
    margin-bottom: 1.2rem;
    max-width: 40rem;
    padding-left: 1.1rem;
}

.cm-auth-lead strong {
    color: #fff;
    font-weight: 600;
}

.cm-auth-note {
    color: var(--cm-navy-muted);
    font-size: .875rem;
    line-height: 1.6;
    margin: 0;
    max-width: 36rem;
}

/* Where the animation will go: a band along the foot of the panel, not a box beside it. */
.cm-auth-placeholder {
    background: var(--cm-gold);
    border-radius: 14px;
    height: clamp(90px, 14vh, 130px);
    width: 100%;
}

.cm-auth-form {
    align-items: center;
    background: linear-gradient(160deg, #f7fbff 0%, #eef7f3 100%);
    display: flex;
    grid-area: form;
    justify-content: center;
    padding: 3rem 2rem;
    position: relative;
}

.cm-auth-form .auth-card {
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, .82);
    margin: 0;
    max-width: 27rem;
    width: 100%;
}

.cm-auth-title {
    font-size: 1.62rem;
    margin-bottom: .3rem;
}

.cm-auth-lede {
    color: var(--cm-muted);
    font-size: .9rem;
    margin-bottom: 1.7rem;
}

/* An icon sits inside the field, as on the Core Edge Health form. */
.cm-field {
    position: relative;
}

.cm-field .form-control {
    padding-right: 2.6rem;
}

.cm-field-icon {
    color: var(--cm-muted-2);
    pointer-events: none;
    position: absolute;
    right: .9rem;
    top: 50%;
    transform: translateY(-50%);
}

.cm-field:focus-within .cm-field-icon {
    color: var(--cm-brand);
}

.cm-auth-links {
    font-size: .875rem;
    margin: 1.25rem 0 0;
    text-align: center;
}

/* Which build you are looking at, out of the way in the corner. */
.cm-auth-stamp {
    bottom: 1rem;
    color: var(--cm-muted-2);
    font-size: .75rem;
    position: absolute;
    right: 1.25rem;
}

/* Too narrow for two columns: the words, then the card, then the animation. */
@media (max-width: 1100px) {
    .cm-auth {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .cm-auth-visual {
        order: 1;
        padding-bottom: 2.5rem;
    }

    .cm-auth-form {
        order: 2;
    }

    .cm-auth-strip {
        order: 3;
        padding-top: 2rem;
    }
}

/* ---- Brand artwork ------------------------------------------------------ */

/* Transparent PNGs: no background behind them, no crop, their own aspect. */
.cm-logo {
    display: block;
    height: 38px;
    width: auto;
}

.cm-auth-logo {
    display: block;
    height: 42px;
    margin-bottom: 1.4rem;
    width: auto;
}

/* ---- Landing page -------------------------------------------------------- */

.cm-wrap {
    margin-inline: auto;
    max-width: 1180px;
    padding-inline: clamp(1.25rem, 4vw, 2.5rem);
    width: 100%;
}

/* ---- Top bar over the hero ---- */

.cm-top {
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 20;
}

.cm-top-inner {
    align-items: center;
    display: flex;
    gap: 1.5rem;
    margin-inline: auto;
    max-width: 1180px;
    padding: 1.1rem clamp(1.25rem, 4vw, 2.5rem);
}

.cm-top-brand img {
    display: block;
    height: 44px;
    width: auto;
}

.cm-top-nav {
    display: flex;
    gap: 1.75rem;
    margin-inline: auto;
}

.cm-top-nav a {
    color: rgba(255, 255, 255, .78);
    font-size: .95rem;
    font-weight: 500;
    text-decoration: none;
}

.cm-top-nav a:hover {
    color: #fff;
}

.cm-top-actions {
    align-items: center;
    display: flex;
    gap: .75rem;
}

.cm-top-signin {
    color: #fff;
    font-weight: 600;
    padding: .55rem .9rem;
    text-decoration: none;
}

.cm-top-signin:hover {
    color: var(--cm-teal-bright);
}

.cm-top-cta {
    background: var(--cm-gradient);
    border-radius: 999px;
    box-shadow: 0 10px 26px -10px rgba(11, 92, 255, .8);
    color: #fff;
    font-weight: 600;
    padding: .62rem 1.3rem;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease;
}

.cm-top-cta:hover {
    box-shadow: 0 14px 30px -10px rgba(11, 92, 255, .9);
    color: #fff;
    transform: translateY(-2px);
}

/* ---- Hero ---- */

.cm-hero {
    align-items: center;
    background: var(--cm-navy);
    display: flex;
    min-height: min(92vh, 900px);
    overflow: hidden;
    padding: 9rem 0 4rem;
    position: relative;
    text-align: center;
}

/* Three slow-moving washes and a faint grid: movement without a video file. */
.cm-hero-bg {
    inset: 0;
    position: absolute;
}

.cm-hero-bg::after {
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 52px 52px;
    content: "";
    inset: 0;
    mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 45%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 45%, transparent 100%);
    position: absolute;
}

.cm-orb {
    border-radius: 50%;
    filter: blur(70px);
    position: absolute;
}

.cm-orb-1 {
    animation: cm-drift-1 22s ease-in-out infinite;
    background: rgba(11, 92, 255, .55);
    height: 46rem;
    left: -8rem;
    top: -12rem;
    width: 46rem;
}

.cm-orb-2 {
    animation: cm-drift-2 26s ease-in-out infinite;
    background: rgba(23, 198, 160, .42);
    bottom: -14rem;
    height: 40rem;
    right: -6rem;
    width: 40rem;
}

.cm-orb-3 {
    animation: cm-drift-3 30s ease-in-out infinite;
    background: rgba(155, 140, 255, .28);
    height: 32rem;
    left: 45%;
    top: 30%;
    width: 32rem;
}

@keyframes cm-drift-1 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(6rem, 4rem, 0) scale(1.12); }
}

@keyframes cm-drift-2 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1.05); }
    50% { transform: translate3d(-7rem, -3rem, 0) scale(.92); }
}

@keyframes cm-drift-3 {
    0%, 100% { transform: translate3d(-50%, 0, 0) scale(1); }
    50% { transform: translate3d(-40%, -5rem, 0) scale(1.15); }
}

.cm-hero-inner {
    position: relative;
    z-index: 1;
}

.cm-hero-inner .cm-auth-eyebrow {
    margin-inline: auto;
}

.cm-hero h1 {
    color: #fff;
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    letter-spacing: -.03em;
    line-height: 1.04;
    margin: 0 0 1.4rem;
}

.cm-hero-lead {
    color: var(--cm-navy-text);
    font-size: clamp(1.02rem, 1.5vw, 1.2rem);
    line-height: 1.7;
    margin-inline: auto;
    max-width: 44rem;
}

.cm-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    justify-content: center;
    margin-top: 2.2rem;
}

.cm-btn-primary {
    background: var(--cm-gradient);
    border-radius: 999px;
    box-shadow: 0 16px 34px -14px rgba(11, 92, 255, .9);
    color: #fff;
    font-size: 1.02rem;
    font-weight: 700;
    padding: .95rem 2.2rem;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease;
}

.cm-btn-primary:hover {
    box-shadow: 0 20px 40px -14px rgba(11, 92, 255, 1);
    color: #fff;
    transform: translateY(-2px);
}

.cm-btn-ghost {
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    color: #fff;
    font-size: 1.02rem;
    font-weight: 600;
    padding: .95rem 1.8rem;
    text-decoration: none;
    transition: border-color .16s ease, background-color .16s ease;
}

.cm-btn-ghost:hover {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(53, 224, 196, .6);
    color: #fff;
}

.cm-hero-sub {
    color: var(--cm-navy-muted);
    font-size: .86rem;
    margin: 1.6rem 0 0;
}

/* The waveform draws itself, again and again, like the meeting running. */
.cm-wave {
    margin: 3rem auto 0;
    max-width: 1000px;
}

.cm-wave svg {
    display: block;
    height: clamp(70px, 10vw, 110px);
    width: 100%;
}

.cm-wave-line {
    animation: cm-trace 6s ease-in-out infinite;
    stroke-dasharray: 2400;
    filter: drop-shadow(0 0 10px rgba(53, 224, 196, .45));
}

@keyframes cm-trace {
    0% { stroke-dashoffset: 2400; }
    55%, 100% { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .cm-orb, .cm-wave-line {
        animation: none;
    }

    .cm-wave-line {
        stroke-dasharray: none;
    }
}

/* ---- Sections ---- */

.cm-section {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.cm-section-alt {
    background: #fff;
    border-block: 1px solid rgba(16, 42, 90, .07);
}

.cm-section-title {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    margin-bottom: .6rem;
    text-align: center;
}

.cm-section-lead {
    color: var(--cm-muted);
    font-size: 1.02rem;
    margin: 0 auto 2.8rem;
    max-width: 40rem;
    text-align: center;
}

.cm-steps {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.cm-steps li {
    background: var(--cm-surface);
    border: 1px solid rgba(16, 42, 90, .09);
    border-radius: var(--cm-radius);
    box-shadow: var(--cm-shadow);
    padding: 1.8rem;
}

.cm-step-no {
    align-items: center;
    background: var(--cm-gradient);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    font-weight: 700;
    height: 2.4rem;
    justify-content: center;
    margin-bottom: 1rem;
    width: 2.4rem;
}

.cm-steps h3, .cm-feature h3 {
    font-size: 1.2rem;
    margin-bottom: .5rem;
}

.cm-steps p, .cm-feature p {
    color: var(--cm-muted);
    margin: 0;
}

.cm-features {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.cm-feature {
    border-left: 3px solid transparent;
    border-image: var(--cm-gradient) 1;
    padding: .25rem 0 .25rem 1.2rem;
}

/* ---- Who it's for ---- */

.cm-paths {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
}

.cm-path {
    background: var(--cm-surface);
    border: 1px solid rgba(16, 42, 90, .09);
    border-radius: var(--cm-radius);
    box-shadow: var(--cm-shadow);
    display: flex;
    flex-direction: column;
    padding: 1.8rem;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.cm-path:hover {
    border-color: rgba(11, 92, 255, .3);
    box-shadow: 0 1px 2px rgba(16, 42, 90, .06), 0 20px 44px -18px rgba(16, 42, 90, .3);
    transform: translateY(-3px);
}

.cm-path-tag {
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    margin-bottom: .9rem;
    padding: .32rem .75rem;
    text-transform: uppercase;
    width: fit-content;
}

.cm-path-tag-corp {
    background: rgba(11, 92, 255, .1);
    color: var(--cm-brand-dark);
}

.cm-path-tag-personal {
    background: rgba(251, 189, 53, .18);
    color: #8a5d00;
}

.cm-path h3 {
    font-size: 1.4rem;
    margin-bottom: .55rem;
}

.cm-path p {
    color: var(--cm-muted);
    margin-bottom: .9rem;
}

.cm-path ul {
    color: var(--cm-ink-soft);
    font-size: .93rem;
    margin: 0;
    padding-left: 1.1rem;
}

.cm-path ul li {
    margin-bottom: .3rem;
}

/* ---- Closing band and footer ---- */

.cm-cta {
    background: var(--cm-navy);
    overflow: hidden;
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
    position: relative;
    text-align: center;
}

.cm-cta::before {
    background:
        radial-gradient(circle at 20% 30%, rgba(11, 92, 255, .5), transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(23, 198, 160, .42), transparent 60%);
    content: "";
    inset: 0;
    position: absolute;
}

.cm-cta-inner {
    position: relative;
    z-index: 1;
}

.cm-cta h2 {
    color: #fff;
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    margin-bottom: .5rem;
}

.cm-cta p {
    color: var(--cm-navy-text);
    margin: 0;
}

/* Contact, as a card with a brand rule down its edge. */
.cm-contact {
    background: var(--cm-surface);
    border: 1px solid rgba(16, 42, 90, .09);
    border-left: 4px solid transparent;
    border-image: linear-gradient(180deg, var(--cm-brand-dark), var(--cm-teal)) 1;
    box-shadow: var(--cm-shadow);
    margin-inline: auto;
    max-width: 46rem;
    padding: 2rem 2.2rem;
}

.cm-contact-eyebrow {
    color: var(--cm-teal);
    display: block;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .14em;
    margin-bottom: .6rem;
    text-transform: uppercase;
}

.cm-contact h3 {
    font-size: 1.35rem;
    margin-bottom: .75rem;
}

.cm-contact p {
    color: var(--cm-muted);
    margin-bottom: 1rem;
}

.cm-contact ul {
    color: var(--cm-ink-soft);
    font-size: .94rem;
    margin: 0 0 1.6rem;
    padding-left: 1.1rem;
}

.cm-contact ul li {
    margin-bottom: .35rem;
}

.cm-contact-rows {
    border-top: 1px solid var(--cm-line-soft);
    display: grid;
    gap: .7rem;
    padding-top: 1.4rem;
}

.cm-contact-rows a, .cm-contact-rows span:not([aria-hidden]) {
    align-items: center;
    color: var(--cm-brand);
    display: flex;
    font-size: .95rem;
    gap: .7rem;
    text-decoration: none;
}

.cm-contact-rows > span:not([aria-hidden]) {
    color: var(--cm-muted);
}

.cm-contact-rows a:hover {
    text-decoration: underline;
}

.cm-contact-rows [aria-hidden] {
    color: var(--cm-teal);
    font-size: 1rem;
    width: 1.2rem;
}

/* The bottom bar: who owns it and which build, then how to reach us. */
.cm-foot {
    background: #061224;
    padding: 1.4rem 0;
}

.cm-foot-inner {
    align-items: center;
    color: var(--cm-navy-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: .82rem;
    gap: .75rem 1.5rem;
    justify-content: space-between;
}

.cm-foot-right {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.cm-foot-right a {
    color: rgba(255, 255, 255, .72);
    text-decoration: none;
}

.cm-foot-right a:hover {
    color: var(--cm-teal-bright);
}

@media (max-width: 860px) {
    .cm-top-nav {
        display: none;
    }

    .cm-top-actions {
        margin-left: auto;
    }

    .cm-hero {
        padding-top: 7.5rem;
    }
}


/* ---- Brand lockup: the mark is artwork, the name is text ------------------ */

/* The image carries only the mark, so the name stays crisp at any size and can be
   recoloured per surface. */
.cm-mark {
    display: block;
    height: 40px;
    width: auto;
}

.cm-wordmark {
    font-family: "Exo 2", Inter, system-ui, sans-serif;
    font-size: 1.32rem;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1;
    white-space: nowrap;
}

/* "Core" in the logo's gold, the rest in the ink of whatever bar it sits on. */
.cm-wordmark {
    color: #fbbd35;
}

.cm-wordmark > span {
    color: var(--cm-ink);
}

.cm-top-brand .cm-wordmark > span, .cm-foot-inner .cm-wordmark > span {
    color: #fff;
}

.cm-top-brand, .cm-auth-bar > a, .navbar-brand {
    align-items: center;
    display: inline-flex;
    gap: .6rem;
    text-decoration: none;
}

.cm-auth-bar .cm-mark {
    height: 46px;
}

/* ---- Voice bars ---------------------------------------------------------- */

.cm-bar {
    animation: cm-level 1.5s ease-in-out infinite alternate;
    transform-box: fill-box;
    transform-origin: center;
}

@keyframes cm-level {
    from { transform: scaleY(.35); opacity: .75; }
    to { transform: scaleY(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .cm-bar {
        animation: none;
    }
}

/* The same way in, repeated at the bottom of each card for anyone who reads that far. */
.cm-path-cta {
    background: var(--cm-gradient);
    border-radius: 999px;
    box-shadow: 0 10px 26px -12px rgba(11, 92, 255, .8);
    color: #fff;
    display: block;
    font-weight: 600;
    margin-top: 1.5rem;
    padding: .75rem 1rem;
    text-align: center;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease;
}

.cm-path-cta:hover {
    box-shadow: 0 14px 30px -12px rgba(11, 92, 255, .95);
    color: #fff;
    transform: translateY(-2px);
}

.cm-path ul {
    margin-bottom: auto;
}

/* Creating an account happens here, not on the landing page, so it is stated plainly. */
.cm-auth-new {
    background: rgba(11, 92, 255, .06);
    border: 1px solid rgba(11, 92, 255, .18);
    border-radius: var(--cm-radius-sm);
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin-top: 1.4rem;
    padding: .9rem 1rem;
    text-align: center;
}

.cm-auth-new span {
    color: var(--cm-muted);
    font-size: .85rem;
}

.cm-auth-new-link {
    color: var(--cm-brand);
    font-weight: 600;
    text-decoration: none;
}

.cm-auth-new-link:hover {
    text-decoration: underline;
}

/* Which kind of account the card is for: a two-way switch, not a second page. */
.cm-kind {
    background: #eef3f9;
    border: 1px solid var(--cm-line);
    border-radius: 999px;
    display: flex;
    margin-bottom: 1.5rem;
    padding: .25rem;
}

.cm-kind a {
    border-radius: 999px;
    color: var(--cm-muted);
    flex: 1;
    font-size: .88rem;
    font-weight: 600;
    padding: .5rem .75rem;
    text-align: center;
    text-decoration: none;
    transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.cm-kind a:hover {
    color: var(--cm-ink);
}

.cm-kind a.active {
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 42, 90, .12);
    color: var(--cm-brand-dark);
}

/* Which kind of account a registration form is for, stated at its top. */
.cm-auth-kind {
    align-items: center;
    display: flex;
    gap: .6rem;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}

.cm-auth-kind .cm-path-tag {
    margin: 0;
}

.cm-auth-kind a {
    font-size: .82rem;
}

/* Registration sits on the pale field, centred. */
.cm-register {
    align-items: center;
    background: linear-gradient(160deg, #f7fbff 0%, #eef7f3 100%);
    display: flex;
    flex: 1;
    justify-content: center;
    min-height: calc(100vh - 86px);
    padding: clamp(2rem, 5vw, 4rem) 1.25rem;
}

.cm-register .auth-card {
    margin: 0;
    max-width: 27rem;
    width: 100%;
}

/* ---- Legal pages --------------------------------------------------------- */

.cm-legal {
    background: linear-gradient(160deg, #f7fbff 0%, #eef7f3 100%);
    flex: 1;
    padding: clamp(2.5rem, 5vw, 4rem) 0 5rem;
}

.cm-legal .cm-wrap {
    max-width: 44rem;
}

.cm-legal h1 {
    font-size: clamp(1.9rem, 3.4vw, 2.5rem);
    margin-bottom: .4rem;
}

.cm-legal h2 {
    font-size: 1.15rem;
    margin: 2.2rem 0 .6rem;
}

.cm-legal p {
    color: var(--cm-ink-soft);
    line-height: 1.75;
    margin: 0;
}

.cm-legal-date {
    color: var(--cm-muted-2) !important;
    font-size: .85rem;
    margin-bottom: 1.5rem !important;
}
