*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

@font-face{font-family:'TT Firs Neue';src:url('/fonts/TT_Firs_Neue_Regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:'TT Firs Neue';src:url('/fonts/TT_Firs_Neue_Medium.woff2') format('woff2');font-weight:500 700;font-style:normal;font-display:swap;}

:root {
    --app-vh: 100svh;

    /* Brand accent, aligned with the landing page. This is the fallback for any
       page that does not override it, so it must be the site blue — it used to
       be the old violet #2e5be6, which leaked onto pages without an override. */
    --primary: #2e5be6;
    --primary-hover: #2249c4;
    --primary-dark: #16254f;
    --primary-light: #e9eefc;
    --primary-soft: rgba(46, 91, 230, 0.06);

    --ink-900: #111827;
    --ink-800: #1f2937;
    --ink-700: #344054;
    --ink-600: #475467;
    --ink-500: #667085;
    --ink-400: #98a2b3;
    --ink-300: #d7dde7;
    --ink-200: #e5e7eb;
    --ink-100: #eaecf0;
    --ink-50:  #f3f4f6;

    --surface:  #ffffff;
    --surface-2:#f8fafc;
    --surface-3:#f2f4f8;

    --success-bg: #ecfdf3;
    --success-fg: #027a48;
    --danger-bg:  #fef2f2;
    --danger-br:  #fecaca;
    --danger-fg:  #b91c1c;

    --radius-xs: 0;
    --radius-sm: 0;
    --radius:    0;
    --radius-lg: 0;
    --radius-xl: 0;
    --radius-2xl:0;

    --shadow-sm: 0 8px 24px rgba(16, 24, 40, 0.04);
    --shadow-md: 0 12px 30px rgba(16, 24, 40, 0.06);
    --shadow-lg: 0 18px 40px rgba(16, 24, 40, 0.08);
    --shadow-primary: 0 14px 36px rgba(46, 91, 230, 0.22);

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --display: 'TT Firs Neue', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

    --header-offset: 72px;
}
@supports (height: 100dvh) { :root { --app-vh: 100dvh; } }

html {
    width: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-offset);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    width: 100%;
    min-height: 100vh;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink-900);
    background: var(--surface-3);
    overflow-x: hidden;
    padding-top: var(--header-offset);
}

/* `:visited` must be reset explicitly. Browsers paint visited links with their
   own colour, and any rule that relies on inheritance can lose to it — which
   showed up as a violet button after following a link, until a reload. Every
   anchor here is styled by us, so the visited state always matches the normal
   one. */
a,
a:link,
a:visited,
a:hover,
a:active { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
img, svg { display: block; max-width: 100%; }
input { font: inherit; color: inherit; }

/* No default focus ring anywhere.
   Clicking a button leaves it focused, and in Chromium a focused control gets
   the UA ring — a hard black outline that stays until something else is
   clicked. After Escape (e.g. dismissing the search suggestion) it reads as a
   random black frame around the button. The site already draws its own focus
   affordances on inputs (brand border + glow) and on toggles, so the UA ring is
   removed globally. */
:focus,
:focus-visible {
    outline: none;
}
button::-moz-focus-inner { border: 0; padding: 0; }
/* Keyboard navigation keeps a visible, on-brand affordance: the components that
   need one define their own box-shadow/border focus state. */

.wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 72px 0;
    scroll-margin-top: 0;
}
.section--tight { padding: 48px 0; }
[id] { scroll-margin-top: 0; }
@media (max-width: 768px) {
    .section { padding: 40px 0; }
    .section--tight { padding: 28px 0; }
}
@media (max-width: 480px) {
    .section { padding: 32px 0; }
    .wrap { padding: 0 16px; }
}

.eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--primary);
}

.h2 {
    margin-top: 10px;
    font-size: clamp(26px, 3.4vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--ink-900);
    font-weight: 700;
}
.lead {
    margin-top: 14px;
    max-width: 780px;
    color: var(--ink-500);
    font-size: clamp(15px, 1.6vw, 17px);
    line-height: 1.7;
}

/* ---------------------- reveal ---------------------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s var(--ease), transform .55s var(--ease);
    will-change: transform, opacity;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------------- page-transition progress ---------------------- */
.cmk-progress {
    position: fixed;
    top: var(--header-offset);
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 60;
    pointer-events: none;
    transform: scaleX(0);
    transform-origin: 0 50%;
    opacity: 0;
    background: linear-gradient(90deg, #2e5be6 0%, #5b7cf5 55%, #8ea8f5 100%);
    box-shadow: 0 0 10px rgba(46, 91, 230, 0.55);
    border-radius:0;
    will-change: transform, opacity;
}

/* ---------------------- header ---------------------- */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    min-height: var(--header-offset);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid rgba(16, 24, 40, 0.06);
    box-shadow: 0 4px 18px rgba(16, 24, 40, 0.06);
}
.topbar > .wrap { width: 100%; }
.topbar__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    background: transparent;
    border: 0;
    border-radius:0;
    box-shadow: none;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}
.brand > span:not(.brand__logo) { min-width: 0; }
.brand__logo {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius:0;
    overflow: hidden;
    background: transparent;
}
.brand__logo img,
.brand__logo svg { width: 100%; height: 100%; display: block; object-fit: contain; }
.brand__name {
    font-family: var(--display);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: .01em;
    color: var(--ink-900);
    line-height: 1.2;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.brand__sub  {
    font-size: 12px;
    color: var(--ink-500);
    line-height: 1.2;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 560px) {
    .brand__sub { display: none; }
}

.topbar__nav {
    margin-left: auto;
    display: none;
    align-items: center;
    gap: 30px;
}
@media (min-width: 960px) { .topbar__nav { display: flex; } }
.topbar__nav a {
    font-size: 14px;
    font-weight: 500;
    position: relative;
    color: var(--ink-600);
    transition: color .2s ease;
}
.topbar__nav a:not(.topbar__nav-chat)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -6px;
    height: 2px;
    border-radius:0;
    background: var(--primary);
    transition: right .25s var(--ease);
}
.topbar__nav a:not(.topbar__nav-chat):hover::after { right: 0; }
.topbar__nav a:focus,
.topbar__nav a:focus-visible {
    outline: none;
}

.topbar__nav-chat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius:0;
    background: var(--primary-light);
    color: var(--primary) !important;
    font-weight: 600;
}
.topbar__nav-chat:hover { background: var(--primary); color: #fff !important; }

.burger {
    flex: 0 0 auto;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius:0;
    color: var(--ink-900);
    -webkit-tap-highlight-color: transparent;
    transition: background .2s ease, border-color .2s ease;
}
.burger svg { display: block; }
.burger svg rect { fill: currentColor; }
.burger:hover,
.burger:active { background: var(--ink-50); border-color: var(--ink-300); }
@media (min-width: 960px) { .burger { display: none; } }

/* ---------------------- mobile menu ---------------------- */
.menu {
    position: fixed;
    inset: 0;
    z-index: 80;
    pointer-events: none;
    visibility: hidden;
}
.menu.is-open { pointer-events: auto; visibility: visible; }
.menu__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
    opacity: 0;
    transition: opacity .25s ease;
    border: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}
.menu.is-open .menu__backdrop { opacity: 1; }
.menu__panel {
    position: absolute;
    top: 14px;
    right: 14px;
    left: 14px;
    max-height: calc(100vh - 28px);
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--ink-200);
    border-radius:0;
    padding: 18px;
    box-shadow: 0 20px 60px rgba(16, 24, 40, 0.18);
    transform: translateY(-16px);
    opacity: 0;
    transition: transform .25s var(--ease), opacity .25s ease;
}
.menu.is-open .menu__panel { transform: translateY(0); opacity: 1; }
.menu__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.menu__list { display: flex; flex-direction: column; gap: 2px; }
.menu__list a {
    padding: 13px 14px;
    border-radius:0;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-800);
    transition: background .2s ease, color .2s ease;
}
.menu__list a:hover,
.menu__list a:active { background: var(--ink-50); color: var(--ink-900); }
.menu__list a:focus,
.menu__list a:focus-visible { outline: none; }
.menu__chat { color: var(--primary) !important; font-weight: 600; }
.menu__divider { height: 1px; background: var(--ink-100); margin: 12px 0; }
.menu__phone {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius:0;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
}

body.no-scroll { overflow: hidden; }

/* ---------------------- hero ---------------------- */
.hero { padding: 20px 0 40px; }
@media (min-width: 768px) { .hero { padding: 32px 0 64px; } }
@media (max-width: 480px) { .hero { padding: 14px 0 28px; } }

.hero__grid {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .hero__grid { gap: 22px; } }

.hero__main {
    position: relative;
    padding: 40px 28px;
    border-radius:0;
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(46, 91, 230, 0.35), transparent 55%),
        linear-gradient(135deg, #1a1a2e 0%, var(--primary-dark) 100%);
    color: #fff;
    overflow: hidden;
    box-shadow: 0 28px 60px rgba(59, 40, 204, 0.25);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
@media (min-width: 768px) { .hero__main { padding: 64px 40px; border-radius:0; } }
@media (min-width: 1280px) { .hero__main { padding: 84px 48px; } }
@media (max-width: 480px) { .hero__main { padding: 36px 22px; border-radius:0; } }

.hero__title {
    margin: 0 auto;
    max-width: 22ch;
    font-weight: 700;
    font-size: clamp(26px, 4.8vw, 56px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    -webkit-hyphens: none;
}
@media (max-width: 420px) {
    .hero__title { font-size: clamp(22px, 7.2vw, 30px); line-height: 1.18; }
}
.hero__subtitle {
    margin: 18px auto 0;
    font-size: clamp(15px, 1.6vw, 17px);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.74);
    max-width: 62ch;
}

.hero__cta {
    margin: 32px auto 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 14px 22px 14px 28px;
    border-radius:0;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    box-shadow: var(--shadow-primary);
    transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.hero__cta:hover { background: var(--primary-hover); box-shadow: 0 18px 40px rgba(46, 91, 230, 0.32); }
.hero__cta:active { transform: scale(.985); }
.hero__cta .arrow {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius:0;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease;
}
.hero__cta:hover .arrow { transform: translateX(3px); }
@media (max-width: 480px) {
    .hero__cta { width: 100%; justify-content: space-between; padding: 16px 18px 16px 22px; }
}

.hero__tags {
    margin: 28px auto 0;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    width: 100%;
    max-width: 780px;
}
.hero__tag {
    padding: 12px 14px;
    border-radius:0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

.hero__side {
    display: grid;
    gap: 14px;
    align-content: start;
}
@media (min-width: 1024px) { .hero__side { gap: 18px; } }

.hero__card {
    background: var(--surface);
    border: 1px solid var(--ink-300);
    border-radius:0;
    padding: 22px;
    box-shadow: var(--shadow-md);
}
@media (min-width: 768px) { .hero__card { padding: 28px; border-radius:0; } }

.hero__card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}
.badge-success {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius:0;
    background: var(--success-bg);
    color: var(--success-fg);
    font-size: 12px;
    font-weight: 600;
}
.hero__card-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius:0;
    background: var(--ink-50);
    color: var(--ink-900);
}
.hero__card-desc {
    margin-top: 14px;
    color: var(--ink-500);
    font-size: 14px;
    line-height: 1.7;
}
.hero__phone {
    display: inline-block;
    margin-top: 18px;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink-900);
    transition: color .2s ease;
}
.hero__phone:hover { color: var(--primary); }

.hero__steps {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
    align-items: stretch;
}
@media (min-width: 640px) { .hero__steps { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

.hero__step {
    padding: 20px;
    border-radius:0;
    background: var(--surface);
    border: 1px solid var(--ink-300);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.hero__step-num { font-size: 14px; font-weight: 700; color: var(--ink-900); }
.hero__step-desc { margin-top: 8px; font-size: 14px; color: var(--ink-500); line-height: 1.6; }

/* ---------------------- grid cards (equal height) ---------------------- */
.grid {
    display: grid;
    gap: 18px;
    align-items: stretch;
}
.grid-4 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 22px;
    border-radius:0;
    background: var(--surface);
    border: 1px solid var(--ink-300);
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
@media (min-width: 768px) { .card { padding: 26px; border-radius:0; } }
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.card--soft { background: var(--surface-2); }
.card__icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius:0;
    background: var(--primary-light);
    color: var(--primary);
}
@media (min-width: 768px) {
    .card__icon { width: 54px; height: 54px; border-radius:0; }
}
.card--soft .card__icon {
    background: var(--surface);
    color: var(--ink-900);
    box-shadow: inset 0 0 0 1px var(--ink-100);
}
.card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.card__index {
    font-size: 22px;
    font-weight: 800;
    color: var(--ink-900);
    letter-spacing: -0.01em;
    line-height: 1;
}
.card__title {
    margin-top: 16px;
    font-size: clamp(17px, 2vw, 20px);
    font-weight: 700;
    color: var(--ink-900);
    line-height: 1.25;
    letter-spacing: -0.01em;
}
.card__text {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-500);
    flex-grow: 1;
}
.card__note {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius:0;
    background: var(--primary-light);
    border: 1px solid #d8daff;
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
}

/* ---------------------- help / cta ---------------------- */
.help {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
    .help { grid-template-columns: 1.05fr 0.95fr; }
}

.help__left,
.help__right {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border-radius:0;
    border: 1px solid var(--ink-300);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) {
    .help__left, .help__right { padding: 32px; }
}
.help__right {
    color: #fff;
    border-color: transparent;
    background:
        radial-gradient(120% 120% at 100% 0%, rgba(255, 255, 255, 0.18), transparent 50%),
        linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: var(--shadow-primary);
}
.help__right .eyebrow,
.help__right p,
.help__right h2,
.help__right .helpnote { color: #fff !important; }
.help__right .eyebrow { color: rgba(255,255,255,0.85) !important; }

.steps { display: grid; gap: 12px; margin-top: 22px; }
.step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius:0;
    background: var(--surface-2);
    border: 1px solid var(--ink-100);
}
.step__num {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius:0;
    background: var(--ink-900);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
}
.step__text { color: var(--ink-700); font-size: 15px; line-height: 1.6; }

.help__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 11px;
    border-radius:0;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.help__right h2 { margin-top: 18px; font-size: clamp(22px, 3vw, 30px); }
.help__right p  { margin-top: 16px; font-size: 16px; line-height: 1.7; color: rgba(255, 255, 255, 0.9); }

.help__actions {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 14px 22px;
    border-radius:0;
    font-size: 15px;
    font-weight: 600;
    transition: background .2s ease, color .2s ease, transform .12s ease, box-shadow .2s ease;
    -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.985); }
.btn--primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-primary);
}
.btn--primary:hover { background: var(--primary-hover); }
.btn--light {
    background: #fff;
    color: var(--ink-900);
}
.btn--light:hover { background: var(--ink-50); }
.btn--ghost {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.18); }
.btn__arrow {
    width: 26px; height: 26px; border-radius:0;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.22);
}
.btn--light .btn__arrow { background: var(--ink-50); color: var(--ink-900); }
.btn--primary .btn__arrow { background: rgba(255,255,255,0.22); color: #fff; }

.helpnote {
    margin-top: 22px;
    padding: 14px 16px;
    border-radius:0;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    line-height: 1.6;
}

/* ---------------------- footer ---------------------- */
.site-footer {
    background: var(--ink-900);
    color: #fff;
    margin-top: 48px;
}
.site-footer .wrap { padding-top: 56px; padding-bottom: 36px; }
@media (max-width: 768px) {
    .site-footer { margin-top: 24px; }
    .site-footer .wrap { padding-top: 36px; padding-bottom: 24px; }
}

.footer__legal-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius:0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.footer__legal-link:hover {
    color: #fff;
    background: rgba(46, 91, 230, 0.18);
    border-color: rgba(189, 181, 255, 0.35);
    transform: translateY(-1px);
}
.footer__legal-link svg { flex: 0 0 auto; color: #bdb5ff; }

.footer__grid {
    display: grid;
    gap: 28px;
}
@media (min-width: 960px) {
    .footer__grid { grid-template-columns: 1.2fr 0.8fr; align-items: end; }
}

.footer__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
}

.footer__tiles {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) { .footer__tiles { grid-template-columns: 1fr 1fr; } }
.footer__tile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius:0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__tile-icon {
    flex: 0 0 auto;
    width: 40px; height: 40px;
    border-radius:0;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(46, 91, 230, 0.22);
    color: #bdb5ff;
}
.footer__tile-title { font-size: 14px; font-weight: 600; color: #fff; }
.footer__tile-sub   { font-size: 12px; color: rgba(255, 255, 255, 0.6); margin-top: 2px; }

.footer__partners { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.footer__partner {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px;
    border-radius:0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 500;
}
.footer__partner img { width: 16px; height: 16px; object-fit: contain; }

.footer__hot {
    padding: 18px;
    border-radius:0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.footer__hot a {
    display: block;
    margin-top: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    transition: color .2s ease;
}
.footer__hot a:hover { color: #bdb5ff; }
.footer__hot-sub { margin-top: 6px; font-size: 13px; color: rgba(255, 255, 255, 0.6); }

.footer__copy {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* ---------------------- back to top ---------------------- */
.to-top {
    position: fixed;
    right: 20px;
    bottom: 24px;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 90;
    width: 46px; height: 46px;
    border-radius:0;
    background: var(--ink-900);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s, background .2s ease, transform .2s ease;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.4);
}
.to-top:hover { background: var(--primary); transform: translateY(-2px); }
.to-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
body.modal-open .to-top { opacity: 0 !important; visibility: hidden !important; }

/* ---------------------- auth modal ---------------------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.modal.is-open { display: flex; }
.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: fadeIn .16s ease-out both;
}
.modal__dialog {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius:0;
    padding: 28px;
    box-shadow: 0 24px 80px rgba(16, 24, 40, 0.22);
    animation: modalIn .26s cubic-bezier(0.16, 1, 0.3, 1) both;
    will-change: transform, opacity;
}
@media (min-width: 480px) { .modal__dialog { padding: 32px; } }
.modal__close {
    position: absolute;
    top: 14px; right: 14px;
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--ink-200);
    border-radius:0;
    color: var(--ink-500);
    transition: background .2s ease;
}
.modal__close:hover { background: var(--ink-50); }

.modal__icon {
    width: 56px; height: 56px;
    border-radius:0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
}
.modal__icon--success { background: var(--success-bg); color: var(--success-fg); }
.modal__icon--danger  { background: var(--danger-bg);  color: var(--danger-fg);  }

.modal__title {
    margin-top: 20px;
    font-size: clamp(20px, 2.5vw, 24px);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink-900);
}
.modal__desc {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--ink-500);
}

.field { margin-top: 22px; }
.field__label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-700);
}
.field__input {
    width: 100%;
    padding: 14px 16px;
    border-radius:0;
    border: 2px solid var(--ink-300);
    font-size: 16px;
    font-weight: 500;
    background: #fff;
    color: var(--ink-900);
    transition: border-color .2s ease, box-shadow .2s ease;
    outline: none;
}
.field__input::placeholder { color: var(--ink-400); }
.field__input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(46, 91, 230, 0.15);
}
.field__input.is-error {
    border-color: var(--danger-fg);
    box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.1);
    animation: shake .38s ease;
}

.alert {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius:0;
    background: var(--danger-bg);
    border: 1px solid var(--danger-br);
    color: var(--danger-fg);
    font-size: 14px;
    font-weight: 500;
}

.modal__submit {
    margin-top: 20px;
    width: 100%;
    min-height: 54px;
}
.modal__submit[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }
.modal__foot {
    margin-top: 16px;
    font-size: 12px;
    color: var(--ink-400);
    text-align: center;
    line-height: 1.6;
}
.modal__foot a { color: var(--primary); }
.modal__foot a:hover { text-decoration: underline; }

.wait {
    text-align: center;
    padding: 8px 0 4px;
}
.wait__ring {
    position: relative;
    margin: 0 auto;
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wait__ring::before,
.wait__ring::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius:0;
    border: 4px solid var(--primary-light);
    animation: ring 2.4s ease-in-out infinite;
}
.wait__ring::after {
    inset: 6px;
    border-color: #d4d8ff;
    animation-delay: .6s;
}
.wait__ring-core {
    position: relative;
    width: 54px; height: 54px;
    border-radius:0;
    background: var(--primary-light);
    color: var(--primary);
    display: inline-flex; align-items: center; justify-content: center;
}
.wait__clock-hand {
    transform-box: view-box;
    transform-origin: center;
    animation: waitHand 8s linear infinite;
}
.wait__timer {
    margin: 22px auto 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius:0;
    background: var(--surface-2);
    border: 1px solid var(--ink-200);
    color: var(--ink-600);
    font-size: 14px;
    font-weight: 500;
}
.wait__timer strong { color: var(--ink-900); font-weight: 700; font-variant-numeric: tabular-nums; }

.info-box {
    margin-top: 22px;
    padding: 16px;
    border-radius:0;
    border: 1px solid var(--ink-200);
    background: var(--surface-2);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
}
.info-box__dot {
    flex: 0 0 auto;
    width: 26px; height: 26px;
    border-radius:0;
    background: var(--primary-light);
    color: var(--primary);
    display: inline-flex; align-items: center; justify-content: center;
}
.info-box__text { color: var(--ink-500); font-size: 14px; line-height: 1.65; }

.spinner {
    width: 18px; height: 18px;
    border: 2.4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius:0;
    animation: spin .7s linear infinite;
}
.spinner--dark {
    border-color: rgba(46, 91, 230, 0.2);
    border-top-color: var(--primary);
}

/* animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(18px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
/* Snappier variant used by the auth modal: no layout-affecting properties. */
@keyframes modalIn {
    from { opacity: 0; transform: translate3d(0, 14px, 0) scale(.985); }
    to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes waitHand {
    to { transform: rotate(360deg); }
}
@keyframes ring {
    0%, 100% { transform: scale(1);    opacity: .35; }
    50%      { transform: scale(1.12); opacity: .15; }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%  { transform: translateX(-6px); }
    40%  { transform: translateX(6px); }
    60%  { transform: translateX(-4px); }
    80%  { transform: translateX(4px); }
}
@keyframes pop {
    0%   { transform: scale(0); opacity: 0; }
    60%  { transform: scale(1.12); }
    100% { transform: scale(1); opacity: 1; }
}
.pop { animation: pop .4s var(--ease); }

/* ---------------------- pwa splash ---------------------- */
.pwa-splash {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    background: #fff;
    font-family: var(--font);
}
.pwa-splash[hidden] { display: none !important; }
.pwa-splash img { width: 88px; height: 88px; object-fit: contain; }
.pwa-splash p {
    font-size: clamp(17px, 4.5vw, 22px);
    font-weight: 600;
    color: var(--ink-900);
    text-align: center;
    max-width: 92%;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

/* ---------------------- outline button (for dark/light contexts) ---------------------- */
.btn--outline {
    background: #fff;
    color: var(--ink-900);
    border: 1px solid var(--ink-200);
}
.btn--outline:hover { background: var(--ink-50); border-color: var(--ink-300); }

/* ---------------------- 404 page ---------------------- */
.notfound {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 0 16px;
    text-align: center;
}
.notfound__code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: clamp(80px, 16vw, 160px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--ink-900);
}
.notfound__code .notfound__zero {
    width: clamp(80px, 16vw, 160px);
    height: clamp(80px, 16vw, 160px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius:0;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 20px 50px rgba(46, 91, 230, 0.28);
}
.notfound__code .notfound__zero svg {
    width: 54%;
    height: 54%;
}
.notfound__title {
    margin-top: 22px;
    font-size: clamp(24px, 3.4vw, 36px);
    font-weight: 700;
    color: var(--ink-900);
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.notfound__desc {
    margin: 14px auto 0;
    max-width: 48ch;
    color: var(--ink-500);
    font-size: clamp(14px, 1.4vw, 16px);
    line-height: 1.7;
}
.notfound__actions {
    margin-top: 28px;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.notfound__actions .btn { min-width: 220px; }
@media (max-width: 480px) {
    .notfound__actions .btn { min-width: 0; width: 100%; }
}

/* ---------------------- cookie banner ---------------------- */
/* Floating pill at the bottom of the viewport: pale lavender card, one line of
   text, one solid pill button, and a quiet × in the corner. The × declines the
   cookies — see `installCookies` in script.js. */
.cookies {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    padding: 0 20px max(20px, env(safe-area-inset-bottom));
    display: flex;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .3s ease, transform .38s var(--ease);
}
.cookies.is-visible { opacity: 1; transform: translateY(0); }
.cookies.is-visible .cookies__panel { pointer-events: auto; }
.cookies__panel {
    position: relative;
    width: 100%;
    max-width: 900px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    /* Even padding on all sides; the × floats outside this box. */
    padding: 18px 24px;
    border-radius:0;
    background: #f0f2fa;
    border: 1px solid #e2e6f5;
    box-shadow: 0 20px 50px -18px rgba(16, 24, 40, .28), 0 2px 6px rgba(16, 24, 40, .05);
    margin-bottom: 20px;
}
.cookies__text {
    flex: 1 1 auto;
    min-width: 0;
}
.cookies__desc {
    font-size: 15px;
    line-height: 1.5;
    color: #2f3547;
    text-wrap: pretty;
}
/* Same ink as the "back to top" button, so the two read as one family. */
.cookies__desc a {
    color: var(--ink-900);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(17, 24, 39, .35);
}
.cookies__desc a:hover { border-bottom-color: var(--ink-900); }
.cookies__actions {
    flex: 0 0 auto;
    position: relative;
    display: flex;
    align-items: center;
}
.cookies .btn-solid {
    min-height: 46px;
    padding: 0 30px;
    border: none;
    border-radius:0;
    background: var(--ink-900);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 10px 30px rgba(17, 24, 39, .32);
    transition: background .2s ease, transform .12s ease, box-shadow .2s ease;
}
/* Matches .to-top:hover: the ink pill turns brand blue on hover. */
.cookies .btn-solid:hover { background: var(--primary); box-shadow: 0 12px 30px rgba(46, 91, 230, .38); }
.cookies .btn-solid:active { transform: scale(.98); }
.cookies .btn-solid:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(46, 91, 230, .32), 0 10px 30px rgba(17, 24, 39, .32); }
/* Dismiss badge sits OUTSIDE the card corner: the card's own padding stays
   perfectly symmetrical and the × can never land on the button. */
.cookies__close {
    position: absolute;
    top: -11px;
    right: -11px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9dded;
    border-radius:0;
    background: #fff;
    color: #7b8199;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 8px rgba(16, 24, 40, .12);
    transition: background .2s ease, color .2s ease;
}
.cookies__close:hover { background: #f4f5f9; color: var(--ink-900); }
.cookies__close svg { width: 12px; height: 12px; display: block; }
@media (max-width: 620px) {
    .cookies { padding: 0 14px max(14px, env(safe-area-inset-bottom)); }
    .cookies__panel {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px 18px;
        border-radius:0;
        margin-bottom: 14px;
    }
    .cookies__desc { font-size: 14px; }
    .cookies .btn-solid { width: 100%; min-height: 44px; }
}

/* ---------------------- privacy page ---------------------- */
.legal {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 0 56px;
    color: var(--ink-700);
}
.legal h1 {
    font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 700;
    color: var(--ink-900);
    letter-spacing: -0.01em;
    line-height: 1.15;
}
.legal .lead { margin-top: 10px; }
.legal h2 {
    margin-top: 32px;
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 700;
    color: var(--ink-900);
    letter-spacing: -0.01em;
}
.legal p, .legal li {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-600);
}
.legal p { margin-top: 10px; }
.legal ul { margin-top: 10px; padding-left: 22px; }
.legal li { margin-top: 6px; }
.legal a { color: var(--primary); font-weight: 600; }
.legal a:hover { text-decoration: underline; }
.legal .back,
.staff-intro .back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius:0;
    background: var(--surface);
    border: 1px solid var(--ink-200);
    color: var(--ink-700);
    font-size: 13px;
    font-weight: 600;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.legal .back:hover,
.staff-intro .back:hover { background: var(--ink-50); border-color: var(--ink-300); }
.legal .back, .legal .back:hover,
.staff-intro .back, .staff-intro .back:hover { text-decoration: none; }
.legal .meta { margin-top: 28px; font-size: 13px; color: var(--ink-400); }

/* ---- shared footer (same as landing) ---- */
.cmk-foot{ background:var(--ink-900); color:#fff; }
.cmk-foot .wrap{ padding-top:clamp(44px,5vw,64px); padding-bottom:clamp(28px,4vw,40px); }
.cmk-foot__grid{ display:grid; gap:36px; grid-template-columns:1fr; }
@media (min-width:860px){ .cmk-foot__grid{ grid-template-columns:1.4fr .8fr .8fr; align-items:start; } }
.cmk-foot__brand{ display:flex; align-items:center; gap:12px; }
.cmk-foot__brand img{ width:40px; height:40px; }
.cmk-foot__brand b{ font-family:var(--display); font-weight:700; font-size:17px; letter-spacing:.01em; display:block; }
.cmk-foot__brand span{ font-size:12.5px; color:rgba(255,255,255,.55); }
.cmk-foot__about{ margin-top:18px; max-width:42ch; font-size:13.5px; line-height:1.7; color:rgba(255,255,255,.6); }
.cmk-foot__legal{ display:inline-flex; align-items:center; gap:8px; margin-top:18px; padding:9px 15px; border-radius:0; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.12); color:rgba(255,255,255,.82); font-size:13px; font-weight:500; transition:background .2s ease, border-color .2s ease, color .2s ease; }
.cmk-foot__legal:hover{ background:rgba(46,91,230,.22); border-color:rgba(142,168,245,.4); }
.cmk-foot__legal svg{ color:#9cb3f5; }
.cmk-foot__label{ font-size:11px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:rgba(255,255,255,.45); }
.cmk-foot__hours{ margin-top:16px; display:flex; flex-direction:column; gap:10px; }
.cmk-foot__hours-main{ display:flex; flex-direction:column; gap:4px; padding:14px 16px; border-radius:0; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1); }
.cmk-foot__hours-main strong{ font-family:var(--display); font-weight:600; font-size:15px; color:#fff; }
.cmk-foot__hours-main span{ font-size:13.5px; color:rgba(255,255,255,.7); }
.cmk-foot__hours-off{ font-size:13px; color:rgba(255,255,255,.5); padding-left:2px; }
.cmk-foot__hot{ padding:18px; border-radius:0; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1); }
.cmk-foot__hot a{ display:block; margin-top:10px; font-family:var(--display); font-size:23px; font-weight:700; letter-spacing:.01em; color:#fff; transition:color .2s ease; }
.cmk-foot__hot a:hover{ color:#9cb3f5; }
.cmk-foot__copy{ margin-top:34px; padding-top:20px; border-top:1px solid rgba(255,255,255,.08); font-size:12.5px; color:rgba(255,255,255,.45); }

/* ---------------------- reduced motion ---------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1 !important; transform: none !important; }
}
