/* ==========================================================================
   SCHOOLYAM — ADMISSION CHOOSER  (/Admission/<SchoolCode>)
   One card where a parent picks the Enquiry path or the Registration path,
   with a live preview of what happens next and a document checklist.
   Self-contained on purpose: it owns every rule, so a change here can never
   move the live Enquiry / Registration forms.
   ========================================================================== */

:root {
    color-scheme: light;
    --ink: #172033;
    --ink2: #3C5650;
    --muted: #6F817A;
    --faint: #9AAAA3;
    --line: #E3ECEA;
    --line2: #D6E2D6;
    --card: rgba(255,255,255,.86);
    --solid: #FFFFFF;
    --surf2: #F3FAF9;
    --teal: #0B6E60;
    --teal-d: #084F45;
    --teal-l: #0E8C7A;
    --mint: #10B8A6;
    --mint-t: #DDF6EC;
    --mint-s: #F3FAF9;
    --dot: #22C79A;
    --amber: #A86A12;
    --amber-t: #FBF0D9;
    --f: "Poppins", system-ui, sans-serif;
    --ease: cubic-bezier(.2,.8,.2,1);
}

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

[hidden] { display: none !important; }

html { min-height: 100%; }

body {
    background:
        linear-gradient(180deg, #e3f3f0 0, #f3f5f8 260px) no-repeat, #f3f5f8;
    color: var(--ink);
    font: 400 13px/1.55 var(--f);
    margin: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

button, input { color: inherit; font: inherit; }

button { background: none; border: 0; cursor: pointer; padding: 0; }

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

:focus-visible { border-radius: 8px; outline: 2px solid var(--teal-l); outline-offset: 3px; }

svg { display: block; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

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

.page {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr);
    margin: 0 auto;
    padding: 18px 0 28px;
    width: min(1140px, 100% - 32px);
}

    .page > * { min-width: 0; }

.glass {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(19,48,45,.07);
}

.rise { animation: rise .6s var(--ease) both; }

@keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------------ header card */
.hd {
    align-items: center;
    display: flex;
    gap: 16px;
    padding: 12px 22px 12px 14px;
}

.logo {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    display: flex;
    flex: none;
    height: 54px;
    justify-content: center;
    overflow: hidden;
    width: 54px;
}

    .logo img {
        height: 100%;
        object-fit: contain;
        padding: 4px;
        width: 100%;
    }

    .logo span {
        align-items: center;
        background: linear-gradient(135deg, #0e7c86, #16a394);
        border-radius: 11px;
        color: #fff;
        display: flex;
        font: 800 16px var(--f);
        height: 38px;
        justify-content: center;
        width: 38px;
    }

.hd b {
    display: block;
    font: 700 16.5px/1.2 var(--f);
    letter-spacing: .01em;
    text-transform: uppercase;
}

.hd .loc {
    align-items: center;
    color: var(--ink2);
    display: inline-flex;
    font-size: 13px;
    gap: 5px;
    margin-top: 3px;
}

    .hd .loc svg {
        color: var(--teal-l);
        flex: none;
        height: 14px;
        width: 14px;
    }

.hd .tools {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.pill {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    color: var(--ink);
    display: inline-flex;
    font: 600 14px var(--f);
    gap: 9px;
    height: 40px;
    padding: 0 16px;
    transition: border-color .2s, background .2s, transform .2s;
}

    .pill:hover {
        background: var(--mint-s);
        border-color: var(--line2);
        transform: translateY(-1px);
    }

    .pill svg {
        color: var(--teal);
        flex: none;
        height: 16px;
        width: 16px;
    }

    .pill.sq {
        justify-content: center;
        padding: 0;
        width: 40px;
    }

/* -------------------------------------------------------------- main card */
.main { animation-delay: .06s; position: relative; }

    .main > .glow {
        border-radius: inherit;
        inset: 0;
        overflow: hidden;
        pointer-events: none;
        position: absolute;
    }

        .main > .glow::before {
            background: radial-gradient(circle, rgba(16,184,166,.13), transparent 62%);
            border-radius: 50%;
            content: "";
            height: 520px;
            pointer-events: none;
            position: absolute;
            right: -160px;
            top: -200px;
            width: 520px;
        }

.mtop {
    align-items: flex-start;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 22px 24px 0;
    position: relative;
}

.eyebrow {
    align-items: center;
    color: var(--teal);
    display: inline-flex;
    font: 700 11.5px var(--f);
    gap: 8px;
    letter-spacing: .13em;
    text-transform: uppercase;
}

    .eyebrow i {
        background: var(--dot);
        border-radius: 50%;
        height: 8px;
        position: relative;
        width: 8px;
    }

        .eyebrow i::after {
            animation: ping 2.4s ease-out infinite;
            background: var(--dot);
            border-radius: 50%;
            content: "";
            inset: 0;
            position: absolute;
        }

@keyframes ping {
    0% { opacity: .6; transform: scale(1); }
    75%, 100% { opacity: 0; transform: scale(2.6); }
}

h1 {
    color: var(--teal-d);
    font: 700 27px/1.15 var(--f);
    letter-spacing: -.02em;
    margin-top: 8px;
}

.chip {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--ink2);
    display: inline-flex;
    font: 600 12.5px var(--f);
    gap: 6px;
    height: 28px;
    margin-top: 10px;
    padding: 0 12px;
}

    .chip svg {
        color: var(--teal-l);
        flex: none;
        height: 13px;
        width: 13px;
    }

.badge {
    align-items: center;
    background: var(--mint-s);
    border: 1px solid #CDE9E5;
    border-radius: 18px;
    display: flex;
    flex: none;
    gap: 11px;
    padding: 10px 18px 10px 14px;
}

    .badge .bi {
        align-items: center;
        background: #fff;
        border: 1px solid #CBEEDF;
        border-radius: 50%;
        color: var(--teal);
        display: flex;
        height: 34px;
        justify-content: center;
        width: 34px;
    }

        .badge .bi svg { height: 16px; width: 16px; }

    .badge b {
        color: var(--teal-d);
        display: block;
        font: 700 13.5px/1.2 var(--f);
    }

    .badge small { color: var(--ink2); font-size: 12px; }

/* header chips + illustration */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

    .chips .chip { margin-top: 0; }

.chip.seat {
    background: var(--mint-s);
    border-color: #CDE9E5;
    color: var(--teal-d);
}

.ill {
    flex: none;
    height: auto;
    margin: -10px -4px -14px 0;
    overflow: visible;
    width: 220px;
}

    .ill .fl {
        animation: float 5.2s ease-in-out infinite;
        transform-box: fill-box;
        transform-origin: center;
    }

        .ill .fl.b { animation-delay: -2s; animation-duration: 6s; }

        .ill .fl.c { animation-delay: -1s; animation-duration: 4.6s; }

    .ill .tw {
        animation: twinkle 2.8s ease-in-out infinite;
        transform-box: fill-box;
        transform-origin: center;
    }

        .ill .tw.b { animation-delay: -.9s; }

        .ill .tw.c { animation-delay: -1.8s; }

    .ill .sh {
        animation: shadow 5.2s ease-in-out infinite;
        transform-box: fill-box;
        transform-origin: center;
    }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes twinkle {
    0%, 100% { opacity: .35; transform: scale(.55) rotate(0); }
    50% { opacity: 1; transform: scale(1) rotate(20deg); }
}

@keyframes shadow {
    0%, 100% { opacity: 1; transform: scaleX(1); }
    50% { opacity: .7; transform: scaleX(.9); }
}

/* ------------------------------------------------------------------- body */
.bd {
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    padding: 24px 24px 22px;
    position: relative;
}

.q h2 {
    font: 700 20px/1.25 var(--f);
    letter-spacing: -.01em;
}

.q p.s {
    color: var(--muted);
    font-size: 14.5px;
    margin-top: 6px;
    max-width: 52ch;
}

.opts {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1fr;
    margin-top: 18px;
}

.opt {
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 16px;
    padding: 13px 14px 12px;
    position: relative;
    text-align: left;
    transition: border-color .25s, box-shadow .3s var(--ease), transform .45s cubic-bezier(.34,1.56,.64,1), background .25s, opacity .3s, filter .3s;
}

    .opt:hover {
        border-color: var(--line2);
        box-shadow: 0 18px 30px -22px rgba(19,48,45,.55);
        transform: translateY(-3px);
    }

    .opt:active { transform: scale(.972); transition-duration: .12s; }

    .opt[aria-checked="true"] {
        background: linear-gradient(180deg, #FFFFFF 0%, #F3FAF9 100%);
        border-color: var(--teal-l);
        box-shadow: 0 0 0 4px rgba(16,184,166,.14), 0 18px 32px -22px rgba(14,124,134,.6);
    }

    .opt[aria-checked="false"] { filter: saturate(.75); opacity: .74; }

        .opt[aria-checked="false"]:hover,
        .opt[aria-checked="false"]:focus-visible { filter: none; opacity: 1; }

    .opt .row {
        align-items: center;
        display: flex;
        gap: 8px;
        justify-content: space-between;
    }

.oi {
    align-items: center;
    background: var(--mint-s);
    border: 1px solid #D5ECE9;
    border-radius: 11px;
    color: var(--teal);
    display: flex;
    height: 36px;
    justify-content: center;
    transition: background .25s, color .25s, border-color .25s;
    width: 36px;
}

    .oi svg { height: 19px; width: 19px; }

.opt[aria-checked="true"] .oi {
    animation: pop .45s cubic-bezier(.34,1.56,.64,1);
    background: linear-gradient(135deg, #0e7c86, #16a394);
    border-color: transparent;
    color: #fff;
}

@keyframes pop {
    0% { transform: scale(.85); }
    100% { transform: scale(1); }
}

.rd {
    align-items: center;
    background: #fff;
    border: 1.8px solid var(--line2);
    border-radius: 50%;
    display: flex;
    flex: none;
    height: 20px;
    justify-content: center;
    transition: border-color .2s, background .2s;
    width: 20px;
}

    .rd svg {
        height: 11px;
        opacity: 0;
        stroke: #fff;
        stroke-width: 3;
        transform: scale(.3);
        transition: opacity .2s, transform .3s cubic-bezier(.3,1.6,.5,1);
        width: 11px;
    }

.opt[aria-checked="true"] .rd { background: var(--teal); border-color: var(--teal); }

    .opt[aria-checked="true"] .rd svg { opacity: 1; transform: none; }

.opt h3 {
    font: 700 15.5px/1.25 var(--f);
    letter-spacing: -.005em;
    margin-top: 10px;
}

.opt p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    margin-top: 4px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 9px;
}

.tg {
    align-items: center;
    background: var(--mint-s);
    border-radius: 7px;
    color: var(--ink2);
    display: inline-flex;
    font: 600 11.5px var(--f);
    gap: 5px;
    height: 22px;
    padding: 0 8px;
}

    .tg svg {
        color: var(--teal-l);
        flex: none;
        height: 12px;
        width: 12px;
    }

.rec {
    align-items: center;
    background: var(--amber-t);
    border: 1px solid #F0DBAE;
    border-radius: 11px;
    color: var(--amber);
    display: inline-flex;
    font: 700 10.5px var(--f);
    height: 21px;
    left: 14px;
    letter-spacing: .08em;
    padding: 0 9px;
    position: absolute;
    text-transform: uppercase;
    top: -10px;
}

/* press ripple */
.ripw {
    border-radius: inherit;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
}

.rip {
    animation: rip .7s var(--ease) forwards;
    background: radial-gradient(circle, rgba(16,184,166,.32) 0%, rgba(16,184,166,.14) 45%, rgba(16,184,166,0) 70%);
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%) scale(0);
}

@keyframes rip {
    to { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}

/* -------------------------------------------------------------------- cta */
.go {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
}

.cta {
    align-items: center;
    background: linear-gradient(135deg, #0e7c86, #16a394);
    background-position: 0 0;
    background-size: 160% 100%;
    border-radius: 15px;
    box-shadow: 0 14px 28px -12px rgba(22,163,148,.85), 0 1px 0 rgba(255,255,255,.35) inset;
    color: #fff;
    display: inline-flex;
    font: 700 16px var(--f);
    gap: 10px;
    height: 50px;
    justify-content: center;
    min-width: 240px;
    overflow: hidden;
    padding: 0 26px;
    position: relative;
    transition: background-position .5s var(--ease), transform .2s, box-shadow .25s;
}

    .cta:hover {
        background-position: 100% 0;
        box-shadow: 0 20px 34px -12px rgba(22,163,148,.95), 0 1px 0 rgba(255,255,255,.35) inset;
        transform: translateY(-2px);
    }

    .cta:active { transform: translateY(0) scale(.985); }

    .cta::after {
        background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent);
        bottom: 0;
        content: "";
        left: -80px;
        position: absolute;
        top: 0;
        transform: skewX(-18deg);
        width: 60px;
    }

    .cta:hover::after { animation: sheen .8s var(--ease); }

@keyframes sheen {
    to { left: calc(100% + 40px); }
}

.cta .lbl {
    display: inline-block;
    transition: opacity .18s, transform .22s var(--ease);
}

    .cta .lbl.swap { opacity: 0; transform: translateY(8px); }

.cta .arr {
    animation: nudge 4.5s ease-in-out 2.5s infinite;
    flex: none;
    height: 18px;
    transition: transform .25s var(--ease);
    width: 18px;
}

.cta:hover .arr { animation: none; transform: translateX(4px); }

@keyframes nudge {
    0%, 16%, 100% { transform: translateX(0); }
    5% { transform: translateX(6px); }
    9% { transform: translateX(0); }
    12.5% { transform: translateX(3px); }
}

.cta .spin {
    animation: spin .7s linear infinite;
    border: 2.4px solid rgba(255,255,255,.35);
    border-radius: 50%;
    border-top-color: #fff;
    display: none;
    height: 18px;
    width: 18px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.cta.busy {
    box-shadow: 0 8px 18px -10px rgba(22,163,148,.8);
    pointer-events: none;
    transform: scale(.975);
}

    .cta.busy .arr { display: none; }

    .cta.busy .spin { display: block; }

    .cta.busy::after { animation: sheen 1.1s linear infinite; }

.lk {
    align-items: center;
    border-radius: 8px;
    color: var(--teal);
    display: inline-flex;
    font: 600 14px var(--f);
    gap: 7px;
    padding: 8px 4px;
}

    .lk:hover {
        color: var(--teal-d);
        text-decoration: underline;
        text-underline-offset: 4px;
    }

    .lk svg { flex: none; height: 15px; width: 15px; }

    .lk .cv { height: 13px; transition: transform .25s; width: 13px; }

    .lk[aria-expanded="true"] .cv { transform: rotate(180deg); }

.note {
    color: var(--ink2);
    display: flex;
    font-size: 13.5px;
    gap: 9px;
    margin-top: 14px;
    max-width: 60ch;
}

    .note svg {
        color: var(--teal-l);
        flex: none;
        height: 16px;
        margin-top: 2px;
        width: 16px;
    }

/* ----------------------------------------------------------------- resume */
.res {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .32s var(--ease);
}

    .res.on { grid-template-rows: 1fr; }

    .res > div { overflow: hidden; }

.rf {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    max-width: 560px;
}

.fld {
    align-items: center;
    background: #fff;
    border: 1.5px solid var(--line2);
    border-radius: 14px;
    display: flex;
    flex: 1;
    gap: 10px;
    height: 50px;
    min-width: 0;
    padding: 0 14px;
    transition: border-color .2s, box-shadow .2s;
}

    .fld:focus-within {
        border-color: var(--teal-l);
        box-shadow: 0 0 0 4px rgba(16,184,166,.15);
    }

    .fld svg {
        color: var(--teal-l);
        flex: none;
        height: 17px;
        width: 17px;
    }

    .fld input {
        background: none;
        border: 0;
        flex: 1;
        font-size: 15px;
        height: 100%;
        min-width: 0;
        outline: none;
    }

        .fld input::placeholder { color: var(--faint); }

    /* the same field shape, but holding a sentence instead of an input */
    .fld.static {
        background: var(--mint-s);
        border-style: dashed;
        color: var(--ink2);
        font-size: 13.5px;
        height: auto;
        line-height: 1.45;
        min-height: 50px;
        padding: 10px 14px;
    }

        .fld.static b { color: var(--teal-d); font-weight: 700; }

.rbtn {
    align-items: center;
    background: var(--teal);
    border-radius: 14px;
    color: #fff;
    display: inline-flex;
    flex: none;
    font: 700 14.5px var(--f);
    height: 50px;
    justify-content: center;
    padding: 0 20px;
    transition: background .2s, transform .2s;
}

    .rbtn:hover { background: var(--teal-d); transform: translateY(-1px); }

.rmsg { color: var(--muted); font-size: 13px; margin-top: 8px; }

/* ---------------------------------------------------------- preview panel */
.pv {
    align-self: start;
    background: linear-gradient(90deg, var(--teal), var(--mint)) top/100% 3px no-repeat, linear-gradient(170deg, #FFFFFF 0%, #F3FAF9 100%);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 19px 18px 16px;
    position: relative;
}

.pvh {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

    .pvh small {
        color: var(--muted);
        font: 700 11px var(--f);
        letter-spacing: .12em;
        text-transform: uppercase;
    }

.time {
    align-items: center;
    background: var(--mint-t);
    border-radius: 13px;
    color: var(--teal-d);
    display: inline-flex;
    font: 700 12px var(--f);
    font-variant-numeric: tabular-nums;
    gap: 6px;
    height: 26px;
    padding: 0 10px;
    transition: background .3s;
}

    .time svg { flex: none; height: 13px; width: 13px; }

    .time.bump { animation: bump .5s cubic-bezier(.34,1.56,.64,1); }

@keyframes bump {
    0% { transform: scale(1); }
    40% { background: #C4F0DD; transform: scale(1.1); }
    100% { transform: scale(1); }
}

#pvT {
    display: inline-block;
    font-variant-numeric: tabular-nums;
    min-width: 5.6em;
    text-align: left;
}

.pv h3 {
    font: 700 17px/1.3 var(--f);
    margin-top: 10px;
}

.flow {
    display: grid;
    gap: 0;
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

    .flow li {
        animation: inRight .5s var(--ease) both;
        animation-delay: calc(var(--i) * 90ms + 80ms);
        display: grid;
        gap: 12px;
        grid-template-columns: 28px 1fr;
        padding-bottom: 14px;
        position: relative;
    }

        .flow li:last-child { padding-bottom: 0; }

        .flow li::before {
            animation: drawDown .45s var(--ease) both;
            animation-delay: calc(var(--i) * 90ms + 260ms);
            background: repeating-linear-gradient(180deg, var(--line2) 0 4px, transparent 4px 8px);
            bottom: 2px;
            content: "";
            left: 13.5px;
            position: absolute;
            top: 28px;
            transform-origin: top;
            width: 1.5px;
        }

        .flow li:last-child::before { display: none; }

    .flow .k {
        align-items: center;
        animation: kPop .5s cubic-bezier(.34,1.56,.64,1) both;
        animation-delay: calc(var(--i) * 90ms + 140ms);
        background: #fff;
        border: 1.5px solid #CDE9E5;
        border-radius: 50%;
        color: var(--teal);
        display: flex;
        font: 700 12px var(--f);
        height: 28px;
        justify-content: center;
        width: 28px;
    }

    .flow li:first-child .k {
        background: var(--teal);
        border-color: var(--teal);
        color: #fff;
    }

    .flow b {
        display: block;
        font: 600 14px/1.35 var(--f);
    }

    .flow .ds {
        color: var(--muted);
        display: block;
        font-size: 12.8px;
        line-height: 1.45;
        margin-top: 2px;
    }

.pvbody { transition: opacity .15s, transform .2s var(--ease); }

    .pvbody.out { opacity: 0; transform: translateY(4px); }

    .pvbody h3 { animation: inUp .4s var(--ease) both; }

@keyframes inUp {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

@keyframes inRight {
    from { opacity: 0; transform: translateX(14px); }
    to { opacity: 1; transform: none; }
}

@keyframes kPop {
    from { transform: scale(.5); }
    to { transform: scale(1); }
}

@keyframes drawDown {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

.need {
    align-items: center;
    border-top: 1px dashed var(--line2);
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 14px;
}

    .need > span { color: var(--ink2); font-size: 13px; }

    .need #docBtn {
        align-items: center;
        background: #fff;
        border: 1px solid var(--line2);
        border-radius: 10px;
        color: var(--teal);
        display: inline-flex;
        flex: none;
        font: 600 12.5px var(--f);
        gap: 7px;
        height: 32px;
        padding: 0 12px;
        transition: background .2s, border-color .2s;
        white-space: nowrap;
    }

        .need #docBtn:hover { background: var(--mint-s); border-color: #CDE9E5; }

/* --------------------------------------------------------- docs popover */
.needw { position: relative; }

.pop {
    background: var(--solid);
    border: 1px solid var(--line2);
    border-radius: 18px;
    bottom: calc(100% + 10px);
    box-shadow: 0 28px 56px -26px rgba(19,48,45,.55);
    max-width: calc(100vw - 40px);
    opacity: 0;
    padding: 14px;
    pointer-events: none;
    position: absolute;
    right: 0;
    transform: translateY(8px);
    transition: opacity .2s, transform .26s var(--ease);
    width: 350px;
    z-index: 30;
}

    .pop.on { opacity: 1; pointer-events: auto; transform: none; }

.ph { padding: 2px 2px 8px; }

.ph strong { display: block; font: 700 14.5px var(--f); }

.ph small { color: var(--muted); display: block; font-size: 12px; }

.docs { display: grid; list-style: none; margin: 0; padding: 0; }

.doc {
    align-items: flex-start;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 11px;
    padding: 8px 2px;
}

    .doc:last-child { padding-bottom: 2px; }

    .doc i {
        background: var(--mint);
        border-radius: 50%;
        box-shadow: 0 0 0 3px var(--mint-t);
        flex: none;
        height: 7px;
        margin: 6px 3px 0;
        width: 7px;
    }

    .doc b { display: block; font: 600 13.5px var(--f); }

    .doc small { color: var(--muted); font-size: 11.8px; }

/* ------------------------------------------------------------ trust strip */
.trust {
    background: rgba(255,255,255,.45);
    border-radius: 0 0 22px 22px;
    border-top: 1px solid var(--line);
    color: var(--ink2);
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    gap: 8px 26px;
    padding: 13px 24px;
    position: relative;
}

    .trust span {
        align-items: center;
        display: inline-flex;
        gap: 8px;
    }

    .trust svg {
        color: var(--teal-l);
        flex: none;
        height: 15px;
        width: 15px;
    }

/* ------------------------------------------------------------ page footer */
.ft {
    align-items: center;
    color: var(--ink2);
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    gap: 10px 22px;
    justify-content: space-between;
    padding: 4px 22px 0;
}

.by {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

    .by img {
        height: 18px;
        width: auto;
    }

.ft .c {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
}

    .ft .c a {
        align-items: center;
        display: inline-flex;
        gap: 7px;
    }

        .ft .c a:hover { color: var(--teal); }

.ft svg { flex: none; height: 14px; width: 14px; }

/* ----------------------------------------------------------------- toast */
.toast {
    background: var(--teal-d);
    border-radius: 12px;
    bottom: 24px;
    box-shadow: 0 16px 36px -16px rgba(11,79,73,.7);
    color: #fff;
    font-size: 13.5px;
    font-weight: 500;
    left: 50%;
    opacity: 0;
    padding: 11px 18px;
    pointer-events: none;
    position: fixed;
    transform: translate(-50%, 12px);
    transition: opacity .2s, transform .25s var(--ease);
    z-index: 80;
}

    .toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- mobile */
@media (max-width: 900px) {
    .ill { width: 200px; }

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

@media (max-width: 640px) {
    .page { padding-top: 12px; width: calc(100% - 24px); }

    .hd { padding: 10px 12px; }

        .hd b { font-size: 14px; }

    .logo { height: 46px; width: 46px; }

    .pill {
        justify-content: center;
        padding: 0;
        width: 40px;
    }

        .pill .t { display: none; }

    .mtop { flex-direction: column; gap: 14px; padding: 18px 16px 0; }

    .ill { display: none; }

    .bd { padding: 18px 16px; }

    .opts { gap: 16px; grid-template-columns: 1fr; }

    .cta { width: 100%; }

    .rf { flex-direction: column; }

    .rbtn { width: 100%; }

    .trust { gap: 8px 16px; padding: 12px 16px; }

    .ft { padding: 2px 8px 0; }
}

/* ==========================================================================
   PHONE LAYER
   An app-shell layout for phones: fixed bar, scrolling content, docked CTA and
   bottom sheets. It is a separate DOM branch from the desktop card above, so
   every class here is m-prefixed and nothing in this block can reach the
   desktop layout. The two swap at 700px and are never visible together.
   Shared keyframes (ping, pop, bump, spin, sheen, nudge, float, twinkle,
   shadow) are reused from the desktop block on purpose - redefining a
   @keyframes name would silently rebind it for both layers.
   ========================================================================== */
.m-shell { display: none; }

@media (max-width: 700px) {

    .d-only { display: none !important; }

    html, body { height: 100%; overflow: hidden; }

    body { background: #E3ECEA; font-size: 14.5px; -webkit-tap-highlight-color: transparent; }

    .m-shell {
        background: linear-gradient(180deg, #e3f3f0 0, #f3f5f8 260px) no-repeat, #f3f5f8;
        display: flex;
        flex-direction: column;
        inset: 0;
        overflow: hidden;
        position: fixed;
    }

    /* ------------------------------------------------------------- app bar */
    .m-appbar {
        align-items: center;
        display: flex;
        flex: none;
        gap: 12px;
        height: 64px;
        padding: 0 6px 0 16px;
        padding-top: env(safe-area-inset-top);
        position: relative;
        transition: background .25s, box-shadow .25s;
        z-index: 10;
    }

        .m-appbar.m-lift {
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            background: rgba(255,255,255,.9);
            box-shadow: 0 1px 0 var(--line), 0 8px 18px -16px rgba(19,48,45,.6);
        }

    .m-logo {
        align-items: center;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 12px;
        display: flex;
        flex: none;
        height: 40px;
        justify-content: center;
        overflow: hidden;
        width: 40px;
    }

        .m-logo img { height: 100%; object-fit: contain; padding: 3px; width: 100%; }

    .m-abt { flex: 1; min-width: 0; }

        .m-abt b {
            display: block;
            font: 700 15px/1.2 var(--f);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .m-abt small {
            color: var(--muted);
            display: block;
            font-size: 12px;
            margin-top: 1px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

    .m-ib {
        align-items: center;
        border-radius: 50%;
        color: var(--teal);
        display: flex;
        flex: none;
        height: 44px;
        justify-content: center;
        overflow: hidden;
        position: relative;
        width: 44px;
    }

        .m-ib svg { height: 21px; width: 21px; }

    /* -------------------------------------------------------- scroll area */
    .m-scroll {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 4px 16px 20px;
        scrollbar-width: none;
    }

        .m-scroll::-webkit-scrollbar { display: none; }

    .m-in { animation: m-in .55s var(--ease) both; }

@keyframes m-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

    /* ----------------------------------------------------------------- hero */
    .m-hero {
        background: linear-gradient(165deg, #FFFFFF 0%, #F3FAF9 55%, #E6F4F2 100%);
        border: 1px solid #fff;
        border-radius: 26px;
        box-shadow: 0 1px 2px rgba(19,48,45,.05), 0 18px 34px -24px rgba(19,48,45,.45);
        overflow: hidden;
        padding: 0 18px 18px;
        position: relative;
    }

    .m-art {
        align-items: center;
        display: flex;
        height: 128px;
        justify-content: center;
        margin: 0 -18px;
        position: relative;
    }

    .m-ill { height: auto; overflow: visible; width: 250px; }

        .m-ill .fl {
            animation: float 5.2s ease-in-out infinite;
            transform-box: fill-box;
            transform-origin: center;
        }

            .m-ill .fl.b { animation-delay: -2s; animation-duration: 6s; }

            .m-ill .fl.c { animation-delay: -1s; animation-duration: 4.6s; }

        .m-ill .tw {
            animation: twinkle 2.8s ease-in-out infinite;
            transform-box: fill-box;
            transform-origin: center;
        }

            .m-ill .tw.b { animation-delay: -.9s; }

            .m-ill .tw.c { animation-delay: -1.8s; }

        .m-ill .sh {
            animation: shadow 5.2s ease-in-out infinite;
            transform-box: fill-box;
            transform-origin: center;
        }

        .m-ill .pl {
            animation: m-plane 6s ease-in-out infinite;
            transform-box: fill-box;
            transform-origin: center;
        }

@keyframes m-plane {
    0%, 100% { transform: translate(0, 0) rotate(0); }
    50% { transform: translate(5px, -5px) rotate(-5deg); }
}

    .m-eye {
        align-items: center;
        background: var(--mint-t);
        border-radius: 13px;
        color: var(--teal-d);
        display: inline-flex;
        font: 700 11px var(--f);
        gap: 7px;
        height: 26px;
        letter-spacing: .1em;
        padding: 0 11px 0 9px;
        text-transform: uppercase;
    }

        .m-eye i {
            background: var(--mint);
            border-radius: 50%;
            height: 7px;
            position: relative;
            width: 7px;
        }

            .m-eye i::after {
                animation: ping 2.4s ease-out infinite;
                background: var(--mint);
                border-radius: 50%;
                content: "";
                inset: 0;
                position: absolute;
            }

    .m-hero h1 {
        color: var(--teal-d);
        font: 700 25px/1.18 var(--f);
        letter-spacing: -.02em;
        margin-top: 10px;
        text-wrap: balance;
    }

    .m-hero p { color: var(--ink2); font-size: 14px; margin-top: 6px; }

    .m-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 12px;
    }

    .m-chip {
        align-items: center;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 9px;
        color: var(--ink2);
        display: inline-flex;
        font: 600 12px var(--f);
        gap: 6px;
        height: 28px;
        padding: 0 10px;
    }

        .m-chip svg { color: var(--teal-l); flex: none; height: 13px; width: 13px; }

    .m-sec {
        align-items: baseline;
        display: flex;
        justify-content: space-between;
        margin: 22px 4px 10px;
    }

        .m-sec h2 { font: 700 17px var(--f); letter-spacing: -.01em; }

    /* -------------------------------------------------------------- options */
    .m-opts { display: grid; gap: 10px; }

    .m-opt {
        align-items: start;
        background: var(--solid);
        border: 1.5px solid var(--line);
        border-radius: 22px;
        display: grid;
        gap: 12px;
        grid-template-columns: 48px 1fr 24px;
        overflow: hidden;
        padding: 14px;
        position: relative;
        text-align: left;
        transition: border-color .25s, background .25s, box-shadow .3s var(--ease), transform .45s cubic-bezier(.34,1.56,.64,1);
        width: 100%;
    }

        .m-opt:active { transform: scale(.975); transition-duration: .12s; }

        .m-opt[aria-checked="true"] {
            background: linear-gradient(180deg, #FFFFFF, #F3FAF9);
            border-color: var(--teal-l);
            box-shadow: 0 0 0 4px rgba(16,184,166,.14), 0 14px 26px -18px rgba(14,124,134,.6);
        }

    .m-oi {
        align-items: center;
        background: var(--mint-s);
        border: 1px solid #D5ECE9;
        border-radius: 15px;
        color: var(--teal);
        display: flex;
        height: 48px;
        justify-content: center;
        transition: background .25s, color .25s;
        width: 48px;
    }

        .m-oi svg { height: 23px; width: 23px; }

    .m-opt[aria-checked="true"] .m-oi {
        animation: pop .45s cubic-bezier(.34,1.56,.64,1);
        background: linear-gradient(135deg, #0e7c86, #16a394);
        border-color: transparent;
        color: #fff;
    }

    .m-ot h3 {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        font: 700 15.5px/1.3 var(--f);
        gap: 7px;
    }

    .m-rec {
        align-items: center;
        background: var(--amber-t);
        border-radius: 6px;
        color: var(--amber);
        display: inline-flex;
        font: 700 9.5px var(--f);
        height: 19px;
        letter-spacing: .08em;
        padding: 0 7px;
        text-transform: uppercase;
    }

    .m-ot p {
        color: var(--muted);
        font-size: 13px;
        line-height: 1.45;
        margin-top: 3px;
    }

    .m-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 9px;
    }

    .m-tg {
        align-items: center;
        background: var(--mint-s);
        border-radius: 7px;
        color: var(--ink2);
        display: inline-flex;
        font: 600 11.5px var(--f);
        gap: 5px;
        height: 23px;
        padding: 0 8px;
    }

        .m-tg svg { color: var(--teal-l); flex: none; height: 12px; width: 12px; }

    .m-rd {
        align-items: center;
        border: 2px solid var(--line2);
        border-radius: 50%;
        display: flex;
        height: 22px;
        justify-content: center;
        margin-top: 2px;
        transition: border-color .2s;
        width: 22px;
    }

        .m-rd::after {
            background: var(--teal);
            border-radius: 50%;
            content: "";
            height: 10px;
            transform: scale(0);
            transition: transform .3s cubic-bezier(.34,1.56,.64,1);
            width: 10px;
        }

    .m-opt[aria-checked="true"] .m-rd { border-color: var(--teal); }

        .m-opt[aria-checked="true"] .m-rd::after { transform: scale(1); }

    /* ---------------------------------------------------------- next card */
    .m-next {
        background: var(--solid);
        border: 1px solid var(--line);
        border-radius: 22px;
        margin-top: 12px;
        padding: 14px 16px;
    }

    .m-nh {
        align-items: center;
        display: flex;
        gap: 8px;
        justify-content: space-between;
    }

        .m-nh small {
            color: var(--muted);
            font: 700 10.5px var(--f);
            letter-spacing: .12em;
            text-transform: uppercase;
        }

    .m-time {
        align-items: center;
        background: var(--mint-t);
        border-radius: 12px;
        color: var(--teal-d);
        display: inline-flex;
        font: 700 11.5px var(--f);
        font-variant-numeric: tabular-nums;
        gap: 5px;
        height: 24px;
        padding: 0 9px;
    }

        .m-time svg { flex: none; height: 12px; width: 12px; }

        .m-time.bump { animation: bump .5s cubic-bezier(.34,1.56,.64,1); }

    .m-flow { list-style: none; margin: 12px 0 0; padding: 0; }

        .m-flow li {
            animation: m-inR .45s var(--ease) both;
            animation-delay: calc(var(--i) * 80ms + 60ms);
            display: grid;
            gap: 11px;
            grid-template-columns: 26px 1fr;
            padding-bottom: 12px;
            position: relative;
        }

            .m-flow li:last-child { padding-bottom: 0; }

            .m-flow li::before {
                animation: m-draw .4s var(--ease) both;
                animation-delay: calc(var(--i) * 80ms + 240ms);
                background: repeating-linear-gradient(180deg, var(--line2) 0 4px, transparent 4px 8px);
                bottom: 2px;
                content: "";
                left: 12.5px;
                position: absolute;
                top: 27px;
                transform-origin: top;
                width: 1.5px;
            }

            .m-flow li:last-child::before { display: none; }

        .m-flow .m-k {
            align-items: center;
            background: #fff;
            border: 1.5px solid #CDE9E5;
            border-radius: 50%;
            color: var(--teal);
            display: flex;
            font: 700 11.5px var(--f);
            height: 26px;
            justify-content: center;
            width: 26px;
        }

        .m-flow li:first-child .m-k {
            background: var(--teal);
            border-color: var(--teal);
            color: #fff;
        }

        .m-flow b { display: block; font: 600 13.5px/1.35 var(--f); }

        .m-flow .m-ds {
            color: var(--muted);
            display: block;
            font-size: 12.5px;
            margin-top: 1px;
        }

@keyframes m-inR {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: none; }
}

@keyframes m-draw {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

    /* -------------------------------------------------------- list group */
    .m-group {
        background: var(--solid);
        border: 1px solid var(--line);
        border-radius: 22px;
        margin-top: 12px;
        overflow: hidden;
    }

    .m-li {
        align-items: center;
        display: flex;
        gap: 13px;
        overflow: hidden;
        padding: 13px 14px;
        position: relative;
        text-align: left;
        width: 100%;
    }

        .m-li + .m-li { border-top: 1px solid var(--line); }

        .m-li .m-lic {
            align-items: center;
            background: var(--mint-s);
            border-radius: 12px;
            color: var(--teal);
            display: flex;
            flex: none;
            height: 40px;
            justify-content: center;
            width: 40px;
        }

            .m-li .m-lic svg { height: 19px; width: 19px; }

        .m-li .m-lt { flex: 1; min-width: 0; }

        .m-li b { display: block; font: 600 14.5px var(--f); }

        .m-li small {
            color: var(--muted);
            display: block;
            font-size: 12.5px;
            margin-top: 1px;
        }

        .m-li .m-chev { color: var(--muted); flex: none; height: 18px; width: 18px; }

    .m-foot { display: grid; gap: 10px; margin: 18px 4px 4px; }

    .m-trust {
        color: var(--ink2);
        display: flex;
        flex-wrap: wrap;
        font-size: 12px;
        gap: 6px 14px;
    }

        .m-trust span { align-items: center; display: inline-flex; gap: 6px; }

        .m-trust svg { color: var(--teal-l); flex: none; height: 14px; width: 14px; }

    .m-by {
        align-items: center;
        color: var(--muted);
        display: flex;
        font-size: 12px;
        gap: 7px;
    }

        .m-by img { height: 16px; width: auto; }

    /* --------------------------------------------------- bottom action bar */
    .m-dock {
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        background: rgba(255,255,255,.94);
        border-top: 1px solid var(--line);
        flex: none;
        padding: 10px 16px 14px;
        padding-bottom: calc(14px + env(safe-area-inset-bottom));
        position: relative;
        z-index: 10;
    }

        .m-dock .m-sel {
            align-items: center;
            color: var(--muted);
            display: flex;
            font-size: 12.5px;
            gap: 10px;
            justify-content: space-between;
            margin: 0 2px 8px;
        }

            .m-dock .m-sel b { color: var(--ink); font-weight: 700; }

            .m-dock .m-sel .m-lbl { transition: opacity .15s, transform .2s var(--ease); }

                .m-dock .m-sel .m-lbl.m-swap { opacity: 0; transform: translateY(5px); }

    .m-cta {
        align-items: center;
        background: linear-gradient(135deg, #0e7c86, #16a394);
        border-radius: 17px;
        box-shadow: 0 12px 24px -12px rgba(22,163,148,.9), 0 1px 0 rgba(255,255,255,.3) inset;
        color: #fff;
        display: flex;
        font: 700 16px var(--f);
        gap: 10px;
        height: 54px;
        justify-content: center;
        overflow: hidden;
        position: relative;
        transition: transform .2s, box-shadow .2s;
        width: 100%;
    }

        .m-cta:active { transform: scale(.98); }

        .m-cta .m-arr {
            animation: nudge 4.5s ease-in-out 2.5s infinite;
            flex: none;
            height: 19px;
            width: 19px;
        }

        .m-cta .m-spin {
            animation: spin .7s linear infinite;
            border: 2.4px solid rgba(255,255,255,.35);
            border-radius: 50%;
            border-top-color: #fff;
            display: none;
            height: 19px;
            width: 19px;
        }

        .m-cta.m-busy { pointer-events: none; transform: scale(.98); }

            .m-cta.m-busy .m-arr { display: none; }

            .m-cta.m-busy .m-spin { display: block; }

        .m-cta::after {
            background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent);
            bottom: 0;
            content: "";
            left: -80px;
            position: absolute;
            top: 0;
            transform: skewX(-18deg);
            width: 60px;
        }

        .m-cta.m-busy::after { animation: sheen 1.1s linear infinite; }

        .m-cta .m-ct { transition: opacity .15s, transform .2s var(--ease); }

            .m-cta .m-ct.m-swap { opacity: 0; transform: translateY(6px); }

    /* ------------------------------------------------------------- ripple */
    .m-rp { overflow: hidden; position: relative; }

    .m-rpl {
        animation: m-rpl .6s var(--ease) forwards;
        background: currentColor;
        border-radius: 50%;
        opacity: .14;
        pointer-events: none;
        position: absolute;
        transform: translate(-50%, -50%) scale(0);
    }

    .m-opt .m-rpl,
    .m-li .m-rpl { color: var(--mint); opacity: .3; }

@keyframes m-rpl {
    to { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}

    /* -------------------------------------------------------- bottom sheet */
    .m-scrim {
        background: rgba(19,48,45,.42);
        inset: 0;
        opacity: 0;
        pointer-events: none;
        position: absolute;
        transition: opacity .28s;
        z-index: 30;
    }

    .m-sheet {
        background: var(--solid);
        border-radius: 28px 28px 0 0;
        bottom: 0;
        box-shadow: 0 -14px 40px rgba(19,48,45,.2);
        display: flex;
        flex-direction: column;
        left: 0;
        max-height: 88%;
        position: absolute;
        right: 0;
        transform: translateY(105%);
        transition: transform .34s var(--ease);
        z-index: 31;
    }

    .m-shell.m-sheet-on .m-scrim { opacity: 1; pointer-events: auto; }

    .m-shell.m-sheet-on .m-sheet { transform: none; }

    .m-grab {
        align-items: center;
        cursor: grab;
        display: flex;
        flex: none;
        height: 26px;
        justify-content: center;
        touch-action: none;
    }

        .m-grab span {
            background: var(--line2);
            border-radius: 2px;
            height: 4px;
            width: 36px;
        }

    .m-sb {
        overflow-y: auto;
        padding: 4px 20px 22px;
        padding-bottom: calc(22px + env(safe-area-inset-bottom));
    }

    .m-sh { align-items: center; display: flex; gap: 12px; }

        .m-sh .m-shi {
            align-items: center;
            background: var(--mint-s);
            border-radius: 14px;
            color: var(--teal);
            display: flex;
            flex: none;
            height: 44px;
            justify-content: center;
            width: 44px;
        }

            .m-sh .m-shi svg { height: 21px; width: 21px; }

        .m-sh h3 { font: 700 18px/1.25 var(--f); }

        .m-sh p { color: var(--muted); font-size: 13px; margin-top: 2px; }

    .m-field {
        align-items: center;
        background: var(--mint-s);
        border: 1.5px dashed var(--line2);
        border-radius: 14px;
        color: var(--ink2);
        display: flex;
        font-size: 13.5px;
        gap: 12px;
        line-height: 1.45;
        margin-top: 18px;
        padding: 13px 14px;
    }

        .m-field svg { color: var(--teal-l); flex: none; height: 20px; width: 20px; }

        .m-field b { color: var(--teal-d); font-weight: 700; }

    .m-btn {
        align-items: center;
        background: var(--teal);
        border-radius: 15px;
        color: #fff;
        display: flex;
        font: 700 15px var(--f);
        height: 50px;
        justify-content: center;
        margin-top: 14px;
        width: 100%;
    }

        .m-btn:active { transform: scale(.98); }

    .m-docs {
        display: grid;
        gap: 8px;
        list-style: none;
        margin: 16px 0 0;
        padding: 0;
    }

    .m-doc {
        align-items: center;
        background: var(--surf2);
        border-radius: 14px;
        display: flex;
        gap: 12px;
        padding: 11px 13px;
    }

        .m-doc i {
            background: var(--mint);
            border-radius: 50%;
            box-shadow: 0 0 0 3px var(--mint-t);
            flex: none;
            height: 8px;
            width: 8px;
        }

        .m-doc b { display: block; font: 600 14px var(--f); }

        .m-doc small { color: var(--muted); font-size: 12px; }

    .m-note {
        color: var(--ink2);
        display: flex;
        font-size: 12.5px;
        gap: 8px;
        margin-top: 14px;
    }

        .m-note svg {
            color: var(--teal-l);
            flex: none;
            height: 15px;
            margin-top: 2px;
            width: 15px;
        }

    /* ---------------------------------------------------------- snackbar */
    .m-snack {
        background: #172033;
        border-radius: 12px;
        bottom: 118px;
        box-shadow: 0 10px 26px rgba(0,0,0,.25);
        color: #E6F4F2;
        font-size: 13.5px;
        left: 12px;
        opacity: 0;
        padding: 12px 16px;
        pointer-events: none;
        position: absolute;
        right: 12px;
        transform: translateY(16px);
        transition: transform .25s var(--ease), opacity .25s;
        z-index: 40;
    }

        .m-snack.m-on { opacity: 1; transform: none; }
}
