/* Pre-login screens */

html.public-page body {
    background: var(--bg) !important;
    min-height: 100vh;
    position: relative;
    isolation: isolate;
}

html.public-page body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(800px 420px at 20% 0%, rgba(47, 61, 219, 0.18), transparent 60%), radial-gradient(700px 400px at 90% 10%, rgba(109, 124, 255, 0.16), transparent 60%), var(--bg);
}

html[data-theme="dark"].public-page body::before {
    background: radial-gradient(800px 420px at 20% 0%, rgba(102, 112, 255, 0.22), transparent 60%), radial-gradient(700px 400px at 90% 10%, rgba(152, 160, 255, 0.12), transparent 60%), var(--bg);
}

html.public-page body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.45;
    -webkit-mask-image: radial-gradient(60% 50% at 50% 30%, #000, transparent);
    mask-image: radial-gradient(60% 50% at 50% 30%, #000, transparent);
}

html.public-page .small-sectional {
    max-width: 440px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 36px 36px 30px;
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--r-xl) !important;
    box-shadow: var(--sh-lg) !important;
}

html.public-page .small-sectional h6,
html.public-page .small-sectional .grey-text.size-16 {
    font-size: 22px !important;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text) !important;
}

html.public-page .small-sectional .btn-primary {
    padding: 10px 16px;
    font-size: 14px;
    background: var(--grad) !important;
    border: 0 !important;
    box-shadow: var(--accent-glow) !important;
}

html.public-page #btnSwitchToSsoLogin,
html.public-page #btnSwitchToSsoLogin span {
    background: var(--surface) !important;
    color: var(--text) !important;
    border: 1px solid var(--border-strong) !important;
    box-shadow: none !important;
}

html.public-page #btnSwitchToSsoLogin span {
    border: 0 !important;
    background: transparent !important;
}

html.public-page .small-sectional-footer {
    max-width: 440px;
    margin: 14px auto 0;
    color: var(--muted);
}

html[data-theme="dark"].public-page .small-sectional img[alt="TaskCall Logo"] {
    filter: brightness(0) invert(1);
}

.public-theme-switch {
    position: fixed;
    right: 18px;
    top: 16px;
    z-index: 10;
}

/* registration screens */
html.public-page .signup-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 16px 32px;
}

html.public-page .signup-card {
    width: 100%;
    max-width: 600px;
    padding: 32px 36px 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-lg);
    color: var(--text);
}

html.public-page .signup-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}

html[data-theme="dark"].public-page .signup-page img[alt="TaskCall Logo"] {
    filter: brightness(0) invert(1);
}

/* Step tracker */
html.public-page .signup-page .stepper-wrapper {
    max-width: 360px;
    margin: 0 auto 26px;
}

html.public-page .signup-page .stepper-item .step-counter {
    width: 28px;
    height: 28px;
    margin-bottom: 0;
    font-size: 12px;
    font-weight: 700;
}

/* step colours: grey upcoming steps, info site blue for the current and completed steps */
html.public-page .signup-page .stepper-item .step-counter {
    font-weight: 500;
    color: var(--muted);
    background: #e6eaf2;
    border-color: #e6eaf2;
}

html.public-page .signup-page .stepper-item.active .step-counter {
    color: #fff;
    background: #2f5bff;
    border-color: #2f5bff;
    box-shadow: 0 0 0 5px #eaf0ff;
}

html.public-page .signup-page .stepper-item.completed .step-counter {
    color: #fff;
    background: #2f5bff;
    border-color: #2f5bff;
}

html.public-page .signup-page .stepper-item::before,
html.public-page .signup-page .stepper-item::after {
    top: 14px;
    border-bottom-width: 2px;
    border-color: #e6eaf2;
}

html.public-page .signup-page .stepper-item.completed::after {
    border-color: #2f5bff !important;
}

html.public-page .signup-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
}

html.public-page .signup-description {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-2);
}

html.public-page .signup-eyebrow {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-ink);
}

html.public-page .signup-page .form-label {
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

html.public-page .signup-page .form-control,
html.public-page .signup-page .form-select {
    font-size: 16px;
}

html.public-page .signup-page .alert {
    margin-bottom: 18px;
    border-radius: var(--r);
}

html.public-page .signup-submit {
    width: 100%;
    margin-top: 10px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    background: var(--grad) !important;
    border: 0 !important;
    box-shadow: var(--accent-glow) !important;
}

html.public-page .signup-alt-link {
    margin: 18px 0 0;
    font-size: 13px;
    text-align: center;
    color: var(--muted);
}

html.public-page .signup-alt-link a {
    font-weight: 600;
    color: var(--accent-ink);
    text-decoration: none;
}

html.public-page .signup-alt-link a:hover {
    text-decoration: underline;
}

/* help popover button */
html.public-page .signup-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

html.public-page .signup-field > .input-group,
html.public-page .signup-field > .form-select {
    flex: 1 1 auto;
    width: auto;
}

html.public-page .signup-help {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #2f5bff;
    background: #fff;
    border: 1px solid #d8deea;
    transition: background 0.2s, border-color 0.2s;
}

html.public-page .signup-help:hover,
html.public-page .signup-help:focus {
    border-color: #2f5bff;
    background: #eaf0ff;
}

html.public-page .signup-help {
    padding: 0;
    line-height: 1;
    cursor: pointer;
}

html.public-page .signup-help:focus-visible {
    outline: 3px solid var(--accent-ring);
    outline-offset: 2px;
}

/* subdomain input joins its suffix */
html.public-page .input-group > .form-control:not(:last-child) {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

html.public-page .input-group > .input-group-text:last-child {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: var(--r-sm) !important;
    border-bottom-right-radius: var(--r-sm) !important;
}

/* help popover */
html.public-page .popover {
    --bs-popover-max-width: 280px;
    --bs-popover-border-color: #e6eaf2;
    --bs-popover-border-radius: 10px;
    --bs-popover-inner-border-radius: 9px;
    --bs-popover-box-shadow: 0 18px 40px -16px rgba(11, 18, 36, 0.3);
    --bs-popover-header-bg: transparent;
    --bs-popover-header-color: var(--text);
    --bs-popover-header-padding-x: 16px;
    --bs-popover-header-padding-y: 12px;
    --bs-popover-body-color: var(--text-2);
    --bs-popover-body-padding-x: 16px;
    --bs-popover-body-padding-y: 12px;
    --bs-popover-bg: var(--surface);
    font-family: var(--font);
    box-shadow: var(--bs-popover-box-shadow);
}

html.public-page .popover-header {
    padding-bottom: 0;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 0;
}

html.public-page .popover-body {
    padding-top: 6px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
}

/* Phone field */
html.public-page .signup-page .iti {
    display: block;
    width: 100%;
}

html.public-page .signup-page .iti__country-list {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    box-shadow: var(--sh-md);
}

html.public-page .signup-page .iti__country.iti__highlight {
    background: var(--surface-3);
}

html.public-page .signup-page .iti__dial-code {
    color: var(--muted);
}

html.public-page .signup-page .iti__divider {
    border-bottom-color: var(--border);
}

/* Region and language pickers under the card */
html.public-page .signup-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 18px;
    width: 100%;
    max-width: 600px;
    margin-top: 14px;
    font-size: 12px;
    color: var(--muted);
}

html.public-page .signup-footer label {
    margin: 0 4px 0 0;
    font-weight: 600;
}

html.public-page .signup-footer select {
    width: auto;
    min-height: 0;
    padding: 2px 6px;
    padding: 4px 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-2) !important;
    background: #fff !important;
    border: 1px solid #e6eaf2 !important;
    box-shadow: none !important;
}

/* footer lists open upward so the page never grows a scrollbar */
html.public-page .signup-footer .bootstrap-select > .dropdown-menu {
    top: auto !important;
    bottom: 100% !important;
    margin: 0 0 2px !important;
    transform: none !important;
}

/* registration steps: form on the left, navy panel with a faint grid on the right */
html.public-page body:has(.signup-split)::before,
html.public-page body:has(.signup-split)::after {
    display: none;
}

html.public-page body:has(.signup-split) {
    background: #fff;
}

html.public-page .signup-page.signup-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    padding: 0;
    background: #fff;
}

html.public-page .signup-main {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 84px 48px 72px;
}

html.public-page .signup-split .signup-card {
    max-width: 480px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

html.public-page .signup-split .signup-logo {
    position: absolute;
    top: 28px;
    left: 48px;
    margin: 0;
}

html.public-page .signup-split .signup-description {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text);
}

html.public-page .signup-split .signup-footer {
    position: absolute;
    left: 48px;
    bottom: 24px;
    justify-content: flex-start;
    width: auto;
    max-width: none;
    margin: 0;
}

html.public-page .signup-split .signup-submit {
    font-weight: 500;
    background: #2f5bff !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 22px -12px rgba(47, 91, 255, 0.7) !important;
}

html.public-page .signup-split .signup-submit:hover {
    background: #2146d6 !important;
}

html.public-page .signup-side {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    height: 100vh;
    padding: 32px 56px;
    overflow: hidden;
    color: #b4bfdc;
    background: radial-gradient(70% 60% at 80% 10%, rgba(143, 168, 255, 0.18) 0%, rgba(143, 168, 255, 0) 70%), #0f1a3d;
}

/* faint grid like the taskcallinfo home hero */
html.public-page .signup-side::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: linear-gradient(#000, transparent 85%);
    mask-image: linear-gradient(#000, transparent 85%);
    pointer-events: none;
}

/* left side */
html.public-page .signup-split .stepper-wrapper {
    margin-bottom: 30px;
}

html.public-page .signup-split .signup-submit {
    min-height: 44px;
    margin-top: 14px;
}

/* the Next / Verify / Register buttons in the step forms are compact */
html.public-page .signup-split form .signup-submit {
    width: auto;
    min-height: 0;
    margin-top: 10px;
    padding: 9px 40px;
    border-radius: 8px !important;
}

@media (max-width: 991px) {
    html.public-page .signup-page.signup-split {
        grid-template-columns: 1fr;
    }

    html.public-page .signup-side {
        display: none;
    }

    html.public-page .signup-main {
        justify-content: flex-start;
        padding: 28px 16px 24px;
    }

    html.public-page .signup-split .signup-logo,
    html.public-page .signup-split .signup-footer {
        position: static;
        align-self: flex-start;
        justify-content: flex-start;
    }

    html.public-page .signup-split .signup-logo {
        margin-bottom: 40px;
    }

    html.public-page .signup-split .signup-footer {
        margin-top: 40px;
    }
}

/* public site pages use the info site blue */
html.public-page body:has(.gn),
html.public-page body:has(.signup-split) {
    --accent: #2f5bff;
    --accent-hover: #2146d6;
    --accent-ink: #2146d6;
    --accent-soft: #eaf0ff;
    --accent-soft-2: #d6e1ff;
    --accent-ring: rgba(37, 99, 235, 0.45);
    --accent-glow: 0 12px 28px -12px rgba(79, 70, 229, 0.75);
    --grad: linear-gradient(115deg, #2f5bff, #2a7bff);
}

/* Sign-up start page (register_org.html): the same split screen as the steps. Work email
   form on the left, navy panel on the right with what the free trial includes */
html.public-page .signup-top-alt-link {
    position: absolute;
    top: 30px;
    right: 48px;
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

html.public-page .signup-top-alt-link a,
html.public-page .signup-legal a {
    font-weight: 500;
    color: #2f5bff;
    text-decoration: none;
}

html.public-page .signup-top-alt-link a:hover,
html.public-page .signup-legal a:hover,
html.public-page .signup-start .signup-footer a:hover {
    text-decoration: underline;
}

html.public-page .signup-start .signup-card {
    max-width: 420px;
}

html.public-page .signup-start .signup-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: #2f5bff;
}

html.public-page .signup-start .signup-eyebrow::before {
    content: "";
    width: 24px;
    height: 3px;
    border-radius: 3px;
    background: currentColor;
}

html.public-page .signup-start .signup-title {
    margin: 0 0 12px;
    font-size: 35px;
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

html.public-page .signup-start .signup-description {
    margin: 0 0 28px;
    font-size: 16px;
    font-weight: 400;
    color: var(--muted);
}

html.public-page .signup-start .form-label {
    font-size: 14px;
}

html.public-page .signup-start .form-control {
    padding: 12px 14px;
}

html.public-page .signup-start .signup-submit {
    margin-top: 4px;
    padding: 13px 18px;
    font-size: 16px;
    border-radius: 10px !important;
}

html.public-page .signup-legal {
    margin: 18px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
}

html.public-page .signup-start .signup-footer {
    gap: 8px 20px;
    font-size: 13px;
}

html.public-page .signup-start .signup-footer a {
    color: var(--muted);
    text-decoration: none;
}

/* right: what the trial includes */
html.public-page .signup-side-inner {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

html.public-page .signup-side .signup-eyebrow {
    color: #8fa8ff;
}

/* motto on the register step panels */
html.public-page .signup-motto {
    margin: 0;
    font-size: clamp(20px, 1.9vw, 26px);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #fff;
}

html.public-page .signup-motto span {
    display: block;
    white-space: nowrap;
}

html.public-page .signup-motto em {
    font-style: normal;
    color: #8fa8ff;
}

html.public-page .signup-side h2 {
    margin: 0 0 18px;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #fff;
}

html.public-page .signup-checks {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

html.public-page .signup-checks li {
    position: relative;
    padding: 5px 0 5px 32px;
    font-size: 15px;
    color: #b4bfdc;
}

/* green check marks */
html.public-page .signup-checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(18, 183, 106, 0.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") no-repeat center;
}

/* small product snippet: three incident timeline rows */
html.public-page .signup-snippet {
    margin: 0 0 24px;
    padding: 4px 18px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

html.public-page .signup-snippet-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed #e6eaf2;
}

html.public-page .signup-snippet-row:last-child {
    border-bottom: 0;
}

html.public-page .signup-snippet-row i {
    flex: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

html.public-page .signup-snippet-row i.red {
    background: #e5484d;
}

html.public-page .signup-snippet-row i.amber {
    background: #f5a000;
}

html.public-page .signup-snippet-row i.green {
    background: #12b76a;
}

html.public-page .signup-snippet-row span {
    flex: 1;
    min-width: 0;
}

html.public-page .signup-snippet-row b {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #0b1224;
}

html.public-page .signup-snippet-row small {
    display: block;
    font-size: 12px;
    color: #66728f;
}

html.public-page .signup-snippet-row em {
    font-size: 12px;
    font-style: normal;
    color: #a3adc5;
}

html.public-page .signup-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin: 0;
    padding: 18px 0 0;
    list-style: none;
    border-top: 1px solid rgba(143, 168, 255, 0.2);
}

html.public-page .signup-trust li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #b4bfdc;
}

html.public-page .signup-trust li::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #12b76a;
}

/* tablets and phones: the trial panel stays, below the form (the step panels are hidden) */
@media (max-width: 991px) {
    html.public-page .signup-start .signup-side {
        position: static;
        display: flex;
        height: auto;
        padding: 48px 20px;
    }

    html.public-page .signup-start .signup-main {
        min-height: 0;
    }

    html.public-page .signup-start .signup-logo {
        margin-bottom: 12px;
    }

    html.public-page .signup-top-alt-link {
        position: static;
        align-self: flex-start;
        margin: 0 0 40px;
        font-size: 13px;
    }

    html.public-page .signup-start .signup-title {
        font-size: 30px;
    }

    html.public-page .signup-side h2 {
        font-size: 24px;
    }
}

/* Old sign-up start page (.signup-legacy): no longer used by register_org.html */
html.public-page body:has(.signup-legacy)::before,
html.public-page body:has(.signup-legacy)::after {
    display: none;
}

html.public-page .signup-legacy {
    color: var(--text);
}

html.public-page .signup-legacy-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 72px 24px 88px;
    background: linear-gradient(160deg, #1b36b8 0%, #2f5bff 55%, #2a7bff 100%);
}

/* animated network from register_hero.js */
html.public-page .signup-legacy-background {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

html.public-page .signup-legacy-background canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

html.public-page .signup-legacy-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(520px 360px at 85% 10%, rgba(255, 255, 255, 0.18), transparent 70%), radial-gradient(480px 320px at 5% 100%, rgba(140, 150, 255, 0.3), transparent 70%);
}

html.public-page .signup-legacy-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
}

html.public-page .signup-legacy-pitch {
    color: #fff;
}

html.public-page .signup-legacy-pitch h1 {
    margin: 0 0 16px;
    font-size: 42px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: #fff;
}

html.public-page .signup-legacy-pitch h2 {
    margin: 0 0 28px;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

html.public-page .signup-legacy-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

html.public-page .signup-legacy-points li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    line-height: 22px;
    color: rgba(255, 255, 255, 0.95);
}

html.public-page .signup-legacy-points svg {
    flex: none;
    margin-top: 2px;
    padding: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
}

html.public-page .signup-legacy-card {
    justify-self: end;
    width: 100%;
    max-width: 460px;
    padding: 36px 36px 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: 0 30px 80px -24px rgba(10, 14, 60, 0.55);
}

html.public-page .signup-legacy-eyebrow {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-ink);
}

html.public-page .signup-legacy-title {
    margin: 0 0 22px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
}

html.public-page .signup-legacy-card .form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
}

html.public-page .signup-legacy-submit {
    width: 100%;
    margin-top: 6px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    background: #2f5bff !important;
    border: 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 22px -12px rgba(47, 91, 255, 0.7) !important;
}

html.public-page .signup-legacy-submit:hover {
    background: #2146d6 !important;
}

html.public-page .signup-legacy-alt-link {
    margin: 16px 0 0;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

html.public-page .signup-legacy-alt-link a {
    font-weight: 600;
    color: var(--accent-ink);
    text-decoration: none;
}

html.public-page .signup-legacy-alt-link a:hover {
    text-decoration: underline;
}

/* integration partners */
html.public-page .signup-legacy-partners {
    max-width: 1140px;
    margin: 0 auto;
    padding: 72px 24px;
    text-align: center;
}

html.public-page .signup-legacy-partners h2 {
    margin: 0 0 32px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

/* same as the info site's integration list */
html.public-page .signup-legacy-integration-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    border-top: 1px solid #e4e9f6;
    border-left: 1px solid #e4e9f6;
}

html.public-page .signup-legacy-integration-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 30px 14px;
    text-align: center;
    color: #0b1224;
    text-decoration: none;
    background: transparent;
    border-right: 1px solid #e4e9f6;
    border-bottom: 1px solid #e4e9f6;
    transition: background 0.2s;
}

html.public-page .signup-legacy-integration-card:hover {
    color: #0b1224;
    text-decoration: none;
    background: #fff;
    box-shadow: inset 0 0 0 2px #dfe6ff;
}

html.public-page .signup-legacy-integration-card img {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    object-fit: contain;
    transition: transform 0.3s;
}

html.public-page .signup-legacy-integration-card:hover img {
    transform: scale(1.12);
}

html.public-page .signup-legacy-integration-card b {
    display: block;
    font-size: 14.7px;
    font-weight: 500;
    line-height: 1.25;
}

html.public-page .signup-legacy-integration-card small {
    display: block;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    color: #9aa4bf;
}

/* keep toasts below the sticky navbar */
html.public-page body:has(.gn) .message-toast-stack {
    top: 88px;
}

/* public site navbar (same as the info site) */
html.public-page .gw,
html.public-page .foot .wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
}

html.public-page .gn {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.2s;
}

html.public-page .gn.scrolled {
    box-shadow: 0 6px 24px rgba(11, 20, 48, 0.08);
}

html.public-page .gn-bar {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 72px;
}

html.public-page .gn-brand {
    flex: none;
}

html.public-page .gn-brand img {
    display: block;
    height: 26px;
    width: auto;
    min-width: 118px;
}

html.public-page .gn-nav {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 20px;
}

html.public-page .gn-menu {
    display: flex;
    flex: 1;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

html.public-page .gn-menu > li > a,
html.public-page .gn-menu > li > button {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 72px;
    padding: 8px 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    background: none;
    border: 0;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
}

html.public-page .gn-menu > li > a:hover,
html.public-page .gn-menu > li > button:hover,
html.public-page .gn-menu > li.open > button {
    color: var(--accent);
}

html.public-page .gn-menu > li > a:focus-visible,
html.public-page .gn-menu > li > button:focus-visible {
    outline: 3px solid var(--accent-ring);
    outline-offset: 2px;
}

html.public-page .gn-menu .chev {
    width: 10px;
    height: 10px;
    transition: transform 0.2s;
}

html.public-page .gn-menu li.open .chev {
    transform: rotate(180deg);
}

html.public-page .gn-menu > li.has {
    position: static;
}

html.public-page .mega {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 30px 60px -30px rgba(11, 18, 36, 0.25);
}

html.public-page .gn-menu li.open > .mega {
    display: block;
}

html.public-page .mega-in {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 28px 34px;
}

html.public-page .mcols {
    display: grid;
    gap: 36px;
}

html.public-page .mcols.c3 {
    grid-template-columns: repeat(3, 1fr);
}

html.public-page .mcols.c2 {
    grid-template-columns: repeat(2, 1fr);
}

html.public-page .mcol h6 {
    margin: 0 0 14px;
    padding-bottom: 10px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
}

html.public-page .mi {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 -10px;
    padding: 9px 10px;
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
}

html.public-page .mi:hover,
html.public-page .mi.cur {
    background: var(--surface-2);
    color: var(--text);
}

html.public-page .mi b {
    display: block;
    font-size: 15px;
    font-weight: 500;
}

html.public-page .mi small {
    display: block;
    margin-top: 2px;
    font-size: 12.8px;
    line-height: 1.4;
    color: var(--muted);
}

html.public-page .mprev {
    align-self: start;
    min-height: 280px;
    padding: 18px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 14px;
}

html.public-page .mprev .mp-frame {
    display: none;
    aspect-ratio: 16 / 10;
    margin-bottom: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
}

html.public-page .mprev .mp-frame.has {
    display: block;
}

html.public-page .mprev .mp-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
}

html.public-page .mprev .mp-t {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 500;
    color: var(--text);
}

html.public-page .mprev .mp-d {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

html.public-page .gn-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

html.public-page .gn-login {
    padding: 8px 13px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
}

html.public-page .gn-login:hover {
    color: var(--accent);
}

/* same as the info site's small primary button */
html.public-page .gn-cta .btn-primary {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9.6px 16.8px !important;
    font-size: 14px !important;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.005em;
    color: #fff !important;
    text-decoration: none !important;
    background: linear-gradient(115deg, #2f5bff, #2a7bff) !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 28px -12px rgba(79, 70, 229, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    transition: box-shadow 0.25s, transform 0.25s cubic-bezier(0.2, 0.7, 0.1, 1);
}

html.public-page .gn-cta .btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.7s;
}

html.public-page .gn-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px -14px rgba(124, 92, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

html.public-page .gn-cta .btn-primary:hover::after {
    transform: translateX(120%);
}

html.public-page .gn kbd,
html.public-page .cmdk kbd {
    padding: 1px 5px;
    font: 600 10.5px ui-monospace, Menlo, Consolas, monospace;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--border);
    border-bottom-width: 2px;
    border-radius: 5px;
    box-shadow: none;
}

html.public-page .gn-search {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    transition: 0.15s;
}

html.public-page .gn-search:hover {
    color: var(--accent);
    background: #fff;
    border-color: var(--accent);
}

/* search box */
html.public-page .cmdk[hidden] {
    display: none;
}

html.public-page .cmdk {
    position: fixed;
    inset: 0;
    z-index: 500;
}

html.public-page .cmdk-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(700px 420px at 80% 0, rgba(124, 92, 255, 0.25), transparent 60%), radial-gradient(700px 420px at 10% 100%, rgba(47, 107, 255, 0.22), transparent 60%), rgba(244, 246, 255, 0.72);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    animation: command-palette-fade 0.2s;
}

html.public-page .cmdk-box {
    position: relative;
    width: min(660px, calc(100% - 28px));
    margin: 12vh auto 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 50px 110px -30px rgba(79, 70, 229, 0.5), 0 0 0 6px rgba(255, 255, 255, 0.6);
    animation: command-palette-pop 0.25s cubic-bezier(0.2, 0.7, 0.1, 1);
}

html.public-page .cmdk-box::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(100deg, #2f5bff, #2f8cff);
}

html.public-page .cmdk-in {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    color: var(--accent);
    border-bottom: 1px solid var(--border);
}

html.public-page .cmdk-in input {
    flex: 1;
    height: auto !important;
    padding: 0 !important;
    font-size: 17px !important;
    color: var(--text);
    background: none !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

html.public-page .cmdk-in input::placeholder {
    color: var(--faint);
}

html.public-page #cmdk-list {
    max-height: 52vh;
    margin: 0;
    padding: 8px;
    overflow: auto;
    list-style: none;
}

html.public-page #cmdk-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 11px 14px;
    color: var(--text);
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 12px;
}

html.public-page #cmdk-list li a b {
    font-size: 15px;
    font-weight: 500;
}

html.public-page #cmdk-list li a small {
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 99px;
}

html.public-page #cmdk-list li.on a,
html.public-page #cmdk-list li a:hover {
    background: linear-gradient(120deg, #eef3ff, #f6efff);
    border-color: #d9e1ff;
}

html.public-page #cmdk-list li.on a b {
    color: var(--accent);
}

html.public-page #cmdk-list .empty {
    padding: 22px;
    text-align: center;
    color: var(--muted);
}

html.public-page .cmdk-foot {
    display: flex;
    gap: 18px;
    padding: 10px 16px;
    font-size: 12.5px;
    color: var(--muted);
    background: var(--surface-2);
    border-top: 1px solid var(--border);
}

html.public-page .cmdk-foot kbd {
    margin-right: 4px;
}

@keyframes command-palette-fade {
    from {
        opacity: 0;
    }
}

@keyframes command-palette-pop {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
}

html.public-page .gn-burger {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
}

html.public-page .gn-burger span,
html.public-page .gn-burger span::before,
html.public-page .gn-burger span::after {
    content: "";
    position: relative;
    display: block;
    width: 18px;
    height: 2px;
    margin: auto;
    background: var(--text);
}

html.public-page .gn-burger span::before {
    position: absolute;
    top: -6px;
}

html.public-page .gn-burger span::after {
    position: absolute;
    top: 6px;
}

@media (min-width: 1000px) and (max-width: 1199px) {
    html.public-page .gn-bar {
        gap: 20px;
    }

    html.public-page .gn-menu > li > a,
    html.public-page .gn-menu > li > button {
        padding-left: 9px;
        padding-right: 9px;
    }
    html.public-page .gn-search {
        padding: 9px;
    }

    html.public-page .gn-search span {
        display: none;
    }
}

@media (max-width: 1240px) {
    html.public-page .gn-search kbd {
        display: none;
    }
}

@media (max-width: 999px) {
    html.public-page .gn-bar {
        height: 64px;
    }

    html.public-page .gn-burger {
        display: block;
    }

    html.public-page .gn-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        height: calc(100vh - 64px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 24px 40px;
        overflow: auto;
        background: #fff;
    }

    html.public-page .gn.open .gn-nav {
        display: flex;
    }

    html.public-page .gn-menu {
        flex: none;
        flex-direction: column;
    }

    html.public-page .gn-menu > li > a,
    html.public-page .gn-menu > li > button {
        justify-content: space-between;
        width: 100%;
        height: auto;
        padding: 16px 0;
        font-size: 17px;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
    }

    html.public-page .mega {
        position: static;
        border: 0;
        box-shadow: none;
    }

    html.public-page .mega-in {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 6px 0 14px;
    }

    html.public-page .mcols.c3,
    html.public-page .mcols.c2 {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    html.public-page .mprev {
        display: none;
    }

    html.public-page .gn-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-top: 20px;
    }

    html.public-page .gn-login {
        text-align: center;
    }
    html.public-page .gn-search {
        justify-content: center;
        width: 100%;
        padding: 13px;
    }

    html.public-page .gn-search span {
        display: inline;
    }
}

/* public site footer */
html.public-page .foot {
    padding: 64px 0 28px;
    font-size: 15px;
    color: var(--muted);
    background: #fff;
    border-top: 1px solid var(--border);
}

html.public-page .foot-main {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 3fr;
    gap: 56px;
    align-items: start;
}

html.public-page .foot-brand p {
    max-width: 34ch;
    margin: 16px 0;
    font-size: 14.5px;
    color: var(--muted);
}

html.public-page .foot .badges-mini {
    display: flex;
    gap: 12px;
    margin: 18px 0;
}

html.public-page .foot .badges-mini img {
    height: 56px;
    width: auto;
    padding: 5px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
}

html.public-page .foot-contact {
    font-size: 14px;
}

html.public-page .foot-contact a {
    color: var(--accent);
}

html.public-page .foot-cols {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 28px;
}

html.public-page .foot-cols h6 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

html.public-page .foot-cols ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

html.public-page .foot-cols li {
    margin: 0 0 9px;
}

html.public-page .foot a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s;
}

html.public-page .foot-cols a {
    font-size: 14.5px;
}

html.public-page .foot a:hover {
    color: var(--accent);
}

html.public-page .foot-bot {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 44px;
    padding-top: 22px;
    font-size: 13.5px;
    border-top: 1px solid var(--border);
}

html.public-page .foot-bot div {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

@media (max-width: 980px) {
    html.public-page .foot-main {
        grid-template-columns: 1fr;
    }

    html.public-page .foot-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    html.public-page .signup-legacy-hero {
        padding: 40px 16px 56px;
    }

    html.public-page .signup-legacy-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    html.public-page .signup-legacy-card {
        justify-self: stretch;
        max-width: none;
    }

    html.public-page .signup-legacy-pitch h1 {
        font-size: 30px;
    }

    html.public-page .signup-legacy-integration-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    html.public-page .signup-page {
        padding-top: 56px;
    }

    html.public-page .signup-card,
    html.public-page .signup-legacy-card {
        padding: 24px 20px 22px;
    }

    html.public-page .signup-legacy-integration-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
