* {
    box-sizing: border-box;
}

:root {
    --landing-bg: #f4f6fb;
    --landing-surface: #ffffff;
    --landing-surface-soft: #f8f9fd;
    --landing-text: #162033;
    --landing-muted: #657086;
    --landing-border: #dfe4ee;
    --landing-accent: #3157d5;
    --landing-accent-dark: #2446b4;
    --landing-accent-soft: #eef2ff;
    --landing-shadow: 0 18px 44px rgba(22, 32, 51, 0.08);
    --landing-radius: 20px;
}

html {
    scroll-behavior: smooth;
}

body.landing-page {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(
            circle at top left,
            rgba(49, 87, 213, 0.08),
            transparent 32rem
        ),
        var(--landing-bg);
    color: var(--landing-text);
    font-family:
        Arial,
        Helvetica,
        sans-serif;
    line-height: 1.5;
}

button,
a {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

.landing-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.landing-header {
    position: relative;
    z-index: 10;
    border-bottom: 1px solid rgba(223, 228, 238, 0.9);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
}

.landing-header-inner {
    width: min(1180px, calc(100% - 40px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.landing-brand {
    display: inline-flex;
    flex-direction: column;
    gap: 1px;
    color: inherit;
    text-decoration: none;
}

.landing-brand-name {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.landing-brand-subtitle {
    color: var(--landing-muted);
    font-size: 12px;
    font-weight: 600;
}

.landing-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--landing-muted);
    font-size: 13px;
    font-weight: 700;
}

.landing-status-label::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-right: 6px;
    display: inline-block;
    border-radius: 50%;
    background: #25a765;
    vertical-align: 1px;
}

.landing-version {
    padding: 5px 9px;
    border: 1px solid var(--landing-border);
    border-radius: 999px;
    background: var(--landing-surface);
}



/* ------------------------------------------------------------------
   Development status notice
   ------------------------------------------------------------------ */

.development-notice {
    border-bottom: 1px solid #d8dfef;
    background: #eef3ff;
}

.development-notice-inner {
    min-height: 58px;
    padding-top: 10px;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
}

.development-notice-badge {
    flex: 0 0 auto;
    padding: 5px 9px;
    border: 1px solid #b9c8f5;
    border-radius: 999px;
    background: #ffffff;
    color: #3157d5;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.development-notice p {
    margin: 0;
    color: #43516c;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
}

@media (max-width: 700px) {
    .development-notice-inner {
        padding-top: 12px;
        padding-bottom: 12px;
        flex-direction: column;
        gap: 6px;
    }

    .development-notice p {
        max-width: 560px;
        font-size: 12px;
    }
}

.landing-hero {
    padding: 78px 0 56px;
}

.landing-hero-inner {
    text-align: center;
}

.landing-eyebrow,
.section-kicker {
    color: var(--landing-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.landing-hero h1 {
    max-width: 820px;
    margin: 14px auto 0;
    font-size: clamp(38px, 6vw, 70px);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.hero-ai-mark {
    color: var(--landing-accent);
    letter-spacing: -0.02em;
}

.landing-hero-copy {
    max-width: 820px;
    margin: 24px auto 0;
    color: #4e5a70;
    font-size: clamp(18px, 2.1vw, 23px);
    line-height: 1.55;
}

.capability-grid {
    margin: 48px auto 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 900px;
    gap: 12px;
    text-align: left;
}

.capability-card {
    min-height: 148px;
    padding: 20px;
    border: 1px solid var(--landing-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
}

.capability-card:nth-child(1) {
    border-top: 3px solid #3157d5;
}

.capability-card:nth-child(2) {
    border-top: 3px solid #168a8a;
}

.capability-card:nth-child(3) {
    border-top: 3px solid #d68a18;
}

.capability-card:nth-child(4) {
    border-top: 3px solid #7a55c7;
}

.capability-card:nth-child(5) {
    border-top: 3px solid #2f8a57;
}

.capability-card:nth-child(1) .capability-title {
    color: #3157d5;
}

.capability-card:nth-child(2) .capability-title {
    color: #168a8a;
}

.capability-card:nth-child(3) .capability-title {
    color: #b87112;
}

.capability-card:nth-child(4) .capability-title {
    color: #6b48b4;
}

.capability-card:nth-child(5) .capability-title {
    color: #267649;
}

.capability-title {
    margin-bottom: 9px;
    font-size: 17px;
    font-weight: 800;
}

.capability-card p {
    margin: 0;
    color: var(--landing-muted);
    font-size: 14px;
    line-height: 1.55;
}

.plans-section {
    padding: 62px 0 76px;
    border-top: 1px solid rgba(223, 228, 238, 0.9);
    background: rgba(255, 255, 255, 0.58);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
}

.section-heading h2 {
    margin: 10px 0 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 16px auto 0;
    color: var(--landing-muted);
    font-size: 17px;
}

.plan-scroll {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.plan-card {
    min-width: 0;
    min-height: 520px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--landing-border);
    border-radius: var(--landing-radius);
    background: var(--landing-surface);
    box-shadow: var(--landing-shadow);
}

.plan-card-featured {
    border: 2px solid var(--landing-accent);
}

.plan-card-free {
    border-top: 4px solid #2f8a57;
}

.plan-card-pro {
    border-top: 4px solid var(--landing-accent);
}

.plan-card-coding {
    border-top: 4px solid #d68a18;
}

.plan-card-teams {
    border-top: 4px solid #7a55c7;
}

.plan-card-free .plan-badge {
    border-color: #cfe7da;
    background: #eef8f2;
    color: #267649;
}

.plan-card-coding .plan-badge {
    border-color: #f0d49a;
    background: #fff7e6;
    color: #b87112;
}

.plan-card-teams .plan-badge {
    border-color: #ddd2f3;
    background: #f5f0fd;
    color: #6b48b4;
}

.plan-card-free .plan-button {
    border-color: #bcdcc9;
    color: #267649;
}

.plan-card-coding .plan-button {
    border-color: #e7c77a;
    color: #b87112;
}

.plan-card-teams .plan-button {
    border-color: #d4c5ef;
    color: #6b48b4;
}

.plan-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.plan-name {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.plan-label {
    margin-top: 2px;
    color: var(--landing-muted);
    font-size: 13px;
    font-weight: 700;
}

.plan-badge {
    flex: 0 0 auto;
    padding: 6px 10px;
    border: 1px solid var(--landing-border);
    border-radius: 999px;
    background: var(--landing-surface-soft);
    color: var(--landing-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.plan-badge-featured {
    border-color: transparent;
    background: var(--landing-accent-soft);
    color: var(--landing-accent);
}

.plan-summary {
    min-height: 78px;
    margin: 24px 0 0;
    color: #4d596e;
    font-size: 16px;
    line-height: 1.55;
}

.plan-features {
    margin: 24px 0 30px;
    padding: 0;
    display: grid;
    gap: 13px;
    list-style: none;
}

.plan-features li {
    position: relative;
    padding-left: 28px;
    color: #2e394e;
    font-size: 15px;
}

.plan-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -1px;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--landing-accent-soft);
    color: var(--landing-accent);
    font-size: 12px;
    font-weight: 900;
}

.plan-actions {
    margin-top: auto;
    display: grid;
    gap: 10px;
}

.plan-button,
.plan-signin {
    width: 100%;
    min-height: 46px;
    padding: 11px 16px;
    border-radius: 12px;
    cursor: default;
    font-weight: 800;
}

.plan-button {
    border: 1px solid #cfd6e6;
    background: #ffffff;
    color: var(--landing-text);
}

.plan-button-featured {
    border-color: var(--landing-accent);
    background: var(--landing-accent);
    color: #ffffff;
}

.plan-signin {
    border: 0;
    background: transparent;
    color: var(--landing-accent);
}

.landing-footer {
    padding: 34px 0;
    border-top: 1px solid var(--landing-border);
    background: #ffffff;
}

.landing-footer-inner {
    display: grid;
    gap: 16px;
    justify-items: center;
    text-align: center;
}

.landing-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 22px;
}

.landing-footer-links a {
    color: var(--landing-accent-dark);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.landing-footer-disclaimer {
    max-width: 980px;
    margin: 0;
    color: var(--landing-muted);
    font-size: 12px;
    line-height: 1.6;
}



/* Neutral text wordmarks only; these are not official provider logos. */
.landing-provider-names {
    max-width: 980px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 8px 18px;
    color: #344056;
}

.landing-provider-names span {
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 17px;
    font-weight: 700;
    font-style: italic;
    letter-spacing: -0.015em;
    line-height: 1.2;
    opacity: 0.82;
}

.landing-provider-names span:nth-child(even) {
    font-style: normal;
    letter-spacing: 0.01em;
}

@media (max-width: 560px) {
    .landing-provider-names {
        gap: 7px 14px;
    }

    .landing-provider-names span {
        font-size: 15px;
    }
}

.landing-footer-copy {
    color: var(--landing-muted);
    font-size: 12px;
}

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

    .capability-card:last-child {
        grid-column: span 2;
    }

    .plan-card {
        padding: 23px;
    }
}

@media (max-width: 760px) {
    .landing-container,
    .landing-header-inner {
        width: min(100% - 28px, 1180px);
    }

    .landing-header-inner {
        min-height: 66px;
    }

    .landing-brand-name {
        font-size: 20px;
    }

    .landing-brand-subtitle {
        font-size: 11px;
    }

    .landing-status-label {
        display: none;
    }

    .landing-hero {
        padding: 54px 0 44px;
    }

    .landing-hero h1 {
        font-size: clamp(39px, 12vw, 58px);
    }

    .landing-hero-copy {
        margin-top: 20px;
        font-size: 18px;
    }

    .capability-grid {
        margin-top: 36px;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .capability-card,
    .capability-card:last-child {
        min-height: 0;
        grid-column: auto;
    }

    .plans-section {
        padding: 50px 0 64px;
        overflow: hidden;
    }

    .section-heading {
        margin-bottom: 28px;
    }

    .plan-scroll {
        width: calc(100% + 14px);
        margin-right: -14px;
        padding: 6px 14px 16px 0;
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(84%, 1fr);
        grid-template-columns: none;
        gap: 14px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: inline mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

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

    .plan-card {
        min-height: 505px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .plan-card-featured {
        transform: none;
    }

    .plan-summary {
        min-height: 0;
    }
}

@media (max-width: 430px) {
    .landing-container,
    .landing-header-inner {
        width: min(100% - 24px, 1180px);
    }

    .landing-brand-subtitle {
        display: none;
    }

    .landing-hero {
        padding-top: 46px;
    }

    .landing-eyebrow,
    .section-kicker {
        font-size: 11px;
    }

    .landing-hero h1 {
        font-size: 40px;
    }

    .landing-hero-copy {
        font-size: 17px;
    }

    .capability-card {
        padding: 18px;
    }

    .plan-scroll {
        grid-auto-columns: minmax(88%, 1fr);
    }

    .plan-card {
        min-height: 500px;
        padding: 22px;
    }
}

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


/* ------------------------------------------------------------------
   Authentication panel
   ------------------------------------------------------------------ */

body.auth-modal-open {
    overflow: hidden;
}

.auth-modal[hidden] {
    display: none;
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
}

.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(5px);
}

.auth-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 470px);
    max-height: min(760px, calc(100vh - 40px));
    overflow-y: auto;
    padding: 30px;
    border: 1px solid var(--landing-border);
    border-radius: 22px;
    background: var(--landing-surface);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.auth-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--landing-muted);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.auth-close:hover {
    background: var(--landing-surface-soft);
    color: var(--landing-text);
}

.auth-dialog-head {
    padding-right: 34px;
}

.auth-plan-context {
    margin-bottom: 8px;
    color: var(--landing-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-dialog h2 {
    margin: 0;
    font-size: 30px;
    letter-spacing: -0.04em;
}

.auth-dialog-head p {
    margin: 10px 0 0;
    color: var(--landing-muted);
    font-size: 14px;
}

.auth-tabs {
    margin-top: 24px;
    padding: 4px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--landing-border);
    border-radius: 12px;
    background: var(--landing-surface-soft);
}

.auth-tab {
    min-height: 40px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--landing-muted);
    cursor: pointer;
    font-weight: 800;
}

.auth-tab.is-active {
    background: #ffffff;
    color: var(--landing-text);
    box-shadow: 0 3px 12px rgba(22, 32, 51, 0.08);
}

.auth-form {
    margin-top: 22px;
    display: grid;
    gap: 16px;
}

.auth-field {
    display: grid;
    gap: 7px;
}

.auth-field > span,
.auth-field > label {
    color: #374258;
    font-size: 13px;
    font-weight: 800;
}

.auth-field input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #cfd6e3;
    border-radius: 11px;
    outline: none;
    background: #ffffff;
    color: var(--landing-text);
    font-size: 16px;
}

.auth-field input:focus {
    border-color: var(--landing-accent);
    box-shadow: 0 0 0 3px rgba(49, 87, 213, 0.12);
}

.auth-password-control {
    position: relative;
    display: block;
}

.auth-password-control input {
    padding-right: 72px;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    min-width: 54px;
    min-height: 32px;
    padding: 5px 8px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--landing-accent);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
    background: var(--landing-accent-soft);
    outline: none;
}

.auth-recovery-actions {
    margin-top: -5px;
    display: flex;
    justify-content: flex-end;
}

.auth-text-action {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--landing-accent);
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}

.auth-text-action:hover,
.auth-text-action:focus-visible {
    color: var(--landing-accent-dark);
    text-decoration: underline;
    outline: none;
}

.auth-tabs[hidden],
.auth-recovery-actions [hidden] {
    display: none !important;
}

.auth-plan-note {
    padding: 11px 13px;
    border: 1px solid #d9e0f3;
    border-radius: 10px;
    background: #f5f7ff;
    color: #4a5670;
    font-size: 13px;
    line-height: 1.45;
}

.auth-message {
    min-height: 20px;
    color: var(--landing-muted);
    font-size: 13px;
    line-height: 1.45;
}

.auth-message.is-error {
    color: #b42318;
}

.auth-message.is-success {
    color: #267649;
}

.auth-reset-invalid-actions {
    display: grid;
    gap: 10px;
}

.auth-reset-invalid-actions[hidden] {
    display: none !important;
}

.auth-recovery-choice {
    min-height: 44px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfd6e6;
    border-radius: 10px;
    background: #ffffff;
    color: var(--landing-accent);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.auth-recovery-choice:hover,
.auth-recovery-choice:focus-visible {
    border-color: var(--landing-accent);
    background: var(--landing-accent-soft);
    color: var(--landing-accent-dark);
    outline: none;
}

.auth-submit {
    min-height: 48px;
    border: 1px solid var(--landing-accent);
    border-radius: 12px;
    background: var(--landing-accent);
    color: #ffffff;
    cursor: pointer;
    font-weight: 800;
}

.auth-submit:hover {
    background: var(--landing-accent-dark);
}

.auth-submit:disabled {
    cursor: wait;
    opacity: 0.68;
}

.auth-future-note {
    margin: 18px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--landing-border);
    color: var(--landing-muted);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 560px) {
    .auth-modal {
        padding: 12px;
        align-items: end;
    }

    .auth-dialog {
        width: 100%;
        max-height: calc(100vh - 24px);
        padding: 26px 20px 22px;
        border-radius: 20px;
    }

    .auth-dialog h2 {
        font-size: 27px;
    }
}


/* ------------------------------------------------------------------
   Landing navigation
   ------------------------------------------------------------------ */

.landing-header-primary {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.landing-menu-toggle {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: 1px solid var(--landing-border);
    border-radius: 9px;
    background: #ffffff;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.landing-menu-toggle:hover {
    background: #f8fafc;
}

.landing-navigation {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 50;
    width: min(82vw, 280px);
    background: #ffffff;
    border-right: 1px solid var(--landing-border);
    box-shadow: 12px 0 36px rgba(15, 23, 42, 0.16);
    transform: translateX(-105%);
    transition: transform 0.2s ease;
}

body.landing-nav-open .landing-navigation {
    transform: translateX(0);
}

.landing-navigation-inner {
    height: 100%;
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

.landing-nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.landing-nav-item,
.landing-nav-close {
    width: 100%;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #475569;
    padding: 11px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    text-decoration: none;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.landing-nav-item:hover,
.landing-nav-close:hover {
    background: #f1f5f9;
}

.landing-nav-item.is-active {
    background: #edf4ff;
    color: #1d4ed8;
    font-weight: 800;
}

.landing-nav-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 7px;
    background: #f1f5f9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
}

.landing-nav-item.is-active .landing-nav-icon {
    background: #dbeafe;
}

.landing-nav-close {
    margin-top: auto;
    border-top: 1px solid #e5e7eb;
    border-radius: 0;
    padding-top: 14px;
}

.landing-nav-close:hover {
    border-radius: 9px;
}

.landing-nav-close-icon {
    width: 24px;
    flex: 0 0 24px;
    text-align: center;
    font-size: 18px;
    line-height: 1;
}

.landing-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(15, 23, 42, 0.38);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

body.landing-nav-open .landing-nav-overlay {
    opacity: 1;
    pointer-events: auto;
}

body.landing-nav-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .landing-header-inner {
        width: min(100% - 28px, 1180px);
        gap: 10px;
    }

    .landing-header-primary {
        gap: 8px;
    }

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

    .landing-brand-subtitle {
        font-size: 10px;
    }
}


/* ------------------------------------------------------------------
   Session-aware landing header
   ------------------------------------------------------------------ */

.landing-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.landing-session {
    display: flex;
    align-items: center;
    min-height: 40px;
}

.landing-session-signin,
.landing-session-logout {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-weight: 800;
}

.landing-session-signin {
    padding: 8px 10px;
    color: var(--landing-accent);
}

.landing-session-user {
    display: flex;
    align-items: center;
    gap: 9px;
}

.landing-session-avatar {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--landing-accent);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.landing-session-email {
    max-width: 220px;
    overflow: hidden;
    color: #33405a;
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.landing-session-logout {
    padding: 8px 4px;
    color: #b42318;
    font-size: 13px;
}

@media (max-width: 760px) {
    .landing-header-actions {
        gap: 8px;
    }

    .landing-session-email {
        display: none;
    }

    .landing-session-logout {
        padding-left: 2px;
        padding-right: 2px;
    }
}

@media (max-width: 430px) {
    .landing-status {
        display: none;
    }
}


/* Hidden auth state must stay hidden even when component rules use display:flex. */
.landing-session-signin[hidden],
.landing-session-user[hidden] {
    display: none !important;
}


/* Form fields using the hidden attribute must override .auth-field { display:grid; }. */
.auth-field[hidden] {
    display: none !important;
}

/* ------------------------------------------------------------------
   v0.0.103 — Global theme consistency
   ------------------------------------------------------------------ */

:root[data-theme-preference="dark"] {
    color-scheme: dark;
    --landing-bg: #0f172a;
    --landing-surface: #111827;
    --landing-surface-soft: #172033;
    --landing-text: #f8fafc;
    --landing-muted: #94a3b8;
    --landing-border: #334155;
    --landing-accent: #60a5fa;
    --landing-accent-dark: #93c5fd;
    --landing-accent-soft: #172554;
    --landing-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

:root[data-theme-preference="dark"] body.landing-page {
    background:
        radial-gradient(
            circle at top left,
            rgba(96, 165, 250, 0.10),
            transparent 32rem
        ),
        var(--landing-bg);
}

:root[data-theme-preference="dark"] .landing-header {
    border-bottom-color: #334155;
    background: rgba(15, 23, 42, 0.94);
}

:root[data-theme-preference="dark"] .development-notice {
    border-bottom-color: #334155;
    background: #111c31;
}

:root[data-theme-preference="dark"] .development-notice-badge {
    border-color: #365784;
    background: #172554;
    color: #93c5fd;
}

:root[data-theme-preference="dark"] .development-notice p,
:root[data-theme-preference="dark"] .landing-hero-copy,
:root[data-theme-preference="dark"] .plan-summary,
:root[data-theme-preference="dark"] .plan-features li,
:root[data-theme-preference="dark"] .landing-provider-names,
:root[data-theme-preference="dark"] .landing-session-email,
:root[data-theme-preference="dark"] .auth-field > span,
:root[data-theme-preference="dark"] .auth-field > label {
    color: #cbd5e1;
}

:root[data-theme-preference="dark"] .capability-card {
    background: rgba(17, 24, 39, 0.90);
}

:root[data-theme-preference="dark"] .plans-section {
    border-top-color: #334155;
    background: rgba(17, 24, 39, 0.54);
}

:root[data-theme-preference="dark"] .plan-card-free .plan-badge {
    border-color: #24543a;
    background: #10271c;
    color: #86efac;
}

:root[data-theme-preference="dark"] .plan-card-coding .plan-badge {
    border-color: #7a5a18;
    background: #2a210f;
    color: #fbbf24;
}

:root[data-theme-preference="dark"] .plan-card-teams .plan-badge {
    border-color: #4c3b73;
    background: #241b38;
    color: #c4b5fd;
}

:root[data-theme-preference="dark"] .plan-button,
:root[data-theme-preference="dark"] .auth-field input,
:root[data-theme-preference="dark"] .auth-recovery-choice,
:root[data-theme-preference="dark"] .landing-menu-toggle {
    border-color: #475569;
    background: #0f172a;
    color: #f8fafc;
}

:root[data-theme-preference="dark"] .landing-footer,
:root[data-theme-preference="dark"] .landing-navigation {
    background: #0f172a;
}

:root[data-theme-preference="dark"] .landing-menu-toggle:hover,
:root[data-theme-preference="dark"] .landing-nav-item:hover,
:root[data-theme-preference="dark"] .landing-nav-close:hover {
    background: #1e293b;
}

:root[data-theme-preference="dark"] .landing-nav-item,
:root[data-theme-preference="dark"] .landing-nav-close {
    color: #cbd5e1;
}

:root[data-theme-preference="dark"] .landing-nav-item.is-active {
    background: #172554;
    color: #93c5fd;
}

:root[data-theme-preference="dark"] .landing-nav-icon {
    background: #1e293b;
}

:root[data-theme-preference="dark"] .landing-nav-item.is-active .landing-nav-icon {
    background: #1e3a8a;
}

:root[data-theme-preference="dark"] .auth-tab.is-active {
    background: #0f172a;
    color: #f8fafc;
}

:root[data-theme-preference="dark"] .auth-plan-note {
    border-color: #334155;
    background: #172033;
    color: #cbd5e1;
}

@media (prefers-color-scheme: dark) {
    :root[data-theme-preference="system"] {
        color-scheme: dark;
        --landing-bg: #0f172a;
        --landing-surface: #111827;
        --landing-surface-soft: #172033;
        --landing-text: #f8fafc;
        --landing-muted: #94a3b8;
        --landing-border: #334155;
        --landing-accent: #60a5fa;
        --landing-accent-dark: #93c5fd;
        --landing-accent-soft: #172554;
        --landing-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
    }

    :root[data-theme-preference="system"] body.landing-page {
        background:
            radial-gradient(
                circle at top left,
                rgba(96, 165, 250, 0.10),
                transparent 32rem
            ),
            var(--landing-bg);
    }

    :root[data-theme-preference="system"] .landing-header {
        border-bottom-color: #334155;
        background: rgba(15, 23, 42, 0.94);
    }

    :root[data-theme-preference="system"] .development-notice {
        border-bottom-color: #334155;
        background: #111c31;
    }

    :root[data-theme-preference="system"] .development-notice-badge {
        border-color: #365784;
        background: #172554;
        color: #93c5fd;
    }

    :root[data-theme-preference="system"] .development-notice p,
    :root[data-theme-preference="system"] .landing-hero-copy,
    :root[data-theme-preference="system"] .plan-summary,
    :root[data-theme-preference="system"] .plan-features li,
    :root[data-theme-preference="system"] .landing-provider-names,
    :root[data-theme-preference="system"] .landing-session-email,
    :root[data-theme-preference="system"] .auth-field > span,
    :root[data-theme-preference="system"] .auth-field > label {
        color: #cbd5e1;
    }

    :root[data-theme-preference="system"] .capability-card {
        background: rgba(17, 24, 39, 0.90);
    }

    :root[data-theme-preference="system"] .plans-section {
        border-top-color: #334155;
        background: rgba(17, 24, 39, 0.54);
    }

    :root[data-theme-preference="system"] .plan-card-free .plan-badge {
        border-color: #24543a;
        background: #10271c;
        color: #86efac;
    }

    :root[data-theme-preference="system"] .plan-card-coding .plan-badge {
        border-color: #7a5a18;
        background: #2a210f;
        color: #fbbf24;
    }

    :root[data-theme-preference="system"] .plan-card-teams .plan-badge {
        border-color: #4c3b73;
        background: #241b38;
        color: #c4b5fd;
    }

    :root[data-theme-preference="system"] .plan-button,
    :root[data-theme-preference="system"] .auth-field input,
    :root[data-theme-preference="system"] .auth-recovery-choice,
    :root[data-theme-preference="system"] .landing-menu-toggle {
        border-color: #475569;
        background: #0f172a;
        color: #f8fafc;
    }

    :root[data-theme-preference="system"] .landing-footer,
    :root[data-theme-preference="system"] .landing-navigation {
        background: #0f172a;
    }

    :root[data-theme-preference="system"] .landing-menu-toggle:hover,
    :root[data-theme-preference="system"] .landing-nav-item:hover,
    :root[data-theme-preference="system"] .landing-nav-close:hover {
        background: #1e293b;
    }

    :root[data-theme-preference="system"] .landing-nav-item,
    :root[data-theme-preference="system"] .landing-nav-close {
        color: #cbd5e1;
    }

    :root[data-theme-preference="system"] .landing-nav-item.is-active {
        background: #172554;
        color: #93c5fd;
    }

    :root[data-theme-preference="system"] .landing-nav-icon {
        background: #1e293b;
    }

    :root[data-theme-preference="system"] .landing-nav-item.is-active .landing-nav-icon {
        background: #1e3a8a;
    }

    :root[data-theme-preference="system"] .auth-tab.is-active {
        background: #0f172a;
        color: #f8fafc;
    }

    :root[data-theme-preference="system"] .auth-plan-note {
        border-color: #334155;
        background: #172033;
        color: #cbd5e1;
    }
}

/* ------------------------------------------------------------------
   v0.0.214 — Plan availability interest card (preview only)
   ------------------------------------------------------------------ */

.plan-interest-card {
    margin: 28px 0 0;
    padding: 22px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 24px;
    align-items: center;
    border: 1px solid var(--landing-border);
    border-radius: 18px;
    background: var(--landing-surface);
    box-shadow: var(--landing-shadow);
}

.plan-interest-copy {
    min-width: 0;
}

.plan-interest-kicker {
    color: var(--landing-accent);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1.25;
}

.plan-interest-card p {
    margin: 9px 0 0;
    color: var(--landing-muted);
    font-size: 14px;
    line-height: 1.55;
}

.plan-interest-future-message {
    color: var(--landing-text) !important;
    font-weight: 800;
}


.plan-interest-divider {
    height: 1px;
    margin: 18px 0 14px;
    background: var(--landing-border);
}

.plan-interest-free-option {
    margin-top: 0 !important;
    color: var(--landing-text) !important;
    font-size: 16px !important;
    font-weight: 800;
}


.plan-interest-free-link {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--landing-accent);
    font: inherit;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.plan-interest-free-link:hover,
.plan-interest-free-link:focus-visible {
    text-decoration-thickness: 2px;
}

.plan-interest-form {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--landing-border);
    border-radius: 14px;
    background: var(--landing-surface-soft);
}

.plan-interest-form label {
    display: block;
    margin-bottom: 7px;
    color: var(--landing-text);
    font-size: 12px;
    font-weight: 800;
}

.plan-interest-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.plan-interest-input-row input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cfd6e3;
    border-radius: 10px;
    background: var(--landing-surface);
    color: var(--landing-text);
    font: inherit;
    font-size: 14px;
}

.plan-interest-input-row button {
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--landing-accent);
    border-radius: 10px;
    background: var(--landing-accent);
    color: #ffffff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
}

.plan-interest-input-row input:disabled,
.plan-interest-input-row button:disabled {
    cursor: not-allowed;
    opacity: 0.64;
}

.plan-interest-note {
    margin-top: 8px !important;
    font-size: 11px !important;
}

:root[data-theme-preference="dark"] .plan-interest-input-row input {
    border-color: #475569;
    background: #0f172a;
}

@media (prefers-color-scheme: dark) {
    :root[data-theme-preference="system"] .plan-interest-input-row input {
        border-color: #475569;
        background: #0f172a;
    }
}

@media (max-width: 760px) {
    .plan-interest-card {
        margin-top: 22px;
        padding: 18px;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .plan-interest-form {
        padding: 14px;
    }
}

@media (max-width: 430px) {
    .plan-interest-input-row {
        grid-template-columns: 1fr;
    }

    .plan-interest-input-row button {
        width: 100%;
    }
}
