/* Public marketing and login page styles extracted from styles.css */

/* Public marketing surfaces */
body.page-landing,
body.page-login {
    color-scheme: light;
    color: #132033;
    background:
        radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.16), transparent 28%),
        radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.12), transparent 24%),
        linear-gradient(180deg, #f7fbff 0%, #edf4fb 50%, #f3f8fe 100%);
    font-family: "Sora", "Segoe UI Variable", "Trebuchet MS", sans-serif;
}

body.page-landing::before,
body.page-login::before {
    opacity: 0.08;
    mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.85), transparent 88%);
}

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

.landing-nav-wrap {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(10px);
    background: rgba(245, 250, 255, 0.86);
    border-bottom: 1px solid rgba(151, 166, 186, 0.2);
}

.landing-nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.landing-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #0e1b2c;
    font-weight: 700;
}

.landing-brand-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #14b8a6);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.16);
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.landing-nav-links a,
.landing-footer a,
.login-legal-copy a {
    text-decoration: none;
    color: #32445d;
}

.landing-nav-links a:hover,
.landing-nav-links a:focus-visible,
.landing-footer a:hover,
.landing-footer a:focus-visible,
.login-legal-copy a:hover,
.login-legal-copy a:focus-visible {
    color: #0f766e;
}

.landing-nav-actions {
    display: inline-flex;
    gap: 10px;
}

.landing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.landing-btn:hover,
.landing-btn:focus-visible {
    transform: translateY(-1px);
}

.landing-btn-primary {
    color: #f8fffe;
    background: linear-gradient(135deg, #0ea5e9, #14b8a6);
    box-shadow: 0 14px 30px rgba(14, 165, 233, 0.22);
}

.landing-btn-secondary {
    color: #0f3351;
    border-color: rgba(14, 165, 233, 0.28);
    background: rgba(255, 255, 255, 0.68);
}

.landing-btn-ghost {
    color: #1f3652;
    border-color: rgba(149, 174, 214, 0.42);
    background: rgba(255, 255, 255, 0.8);
}

.landing-hero {
    padding: 74px 0 34px;
}

.landing-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.8fr);
    gap: 26px;
    align-items: start;
}

.landing-kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.72rem;
    color: #0f766e;
    font-weight: 700;
}

.landing-hero h1 {
    margin: 12px 0 0;
    font-size: clamp(2.4rem, 5.2vw, 4.4rem);
    letter-spacing: -0.05em;
    color: #0d1a2b;
}

.landing-tagline {
    margin: 10px 0 0;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    color: #1f3e5c;
    font-weight: 600;
}

.landing-copy,
.landing-fineprint,
.login-copy,
.login-note {
    color: #3c526d;
}

.landing-copy {
    margin: 16px 0 0;
    font-size: 1rem;
    max-width: 680px;
}

.landing-badges {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.landing-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    min-height: 32px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(151, 166, 186, 0.35);
    color: #38506c;
    font-size: 0.82rem;
    font-weight: 700;
}

.landing-badge.is-live {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.4);
    color: #0f766e;
}

.hero-stat-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.hero-stat-card {
    display: grid;
    gap: 4px;
    border-radius: 16px;
    border: 1px solid rgba(151, 166, 186, 0.24);
    background: rgba(255, 255, 255, 0.86);
    padding: 12px;
}

.hero-stat-card strong {
    font-size: 1.05rem;
    color: #0f172a;
}

.hero-stat-card span {
    font-size: 0.81rem;
    color: #425871;
}

.landing-broker-strip {
    padding-top: 8px;
}

.strip-title {
    margin: 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.72rem;
    color: #5f738d;
    font-weight: 700;
}

.broker-pill-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.broker-pill {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 14px;
    border: 1px solid rgba(151, 166, 186, 0.24);
    background: rgba(255, 255, 255, 0.82);
    padding: 10px 12px;
    font-weight: 700;
    color: #314760;
    font-size: 0.83rem;
}

.broker-pill span {
    font-size: 0.72rem;
    font-weight: 700;
    color: #57708b;
}

.broker-pill.active {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.12);
}

.broker-pill.active span {
    color: #0f766e;
}

.landing-hero-actions {
    margin-top: 22px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.landing-hero-card,
.landing-card,
.landing-preview,
.login-card,
.login-showcase,
.landing-risk {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(151, 166, 186, 0.24);
    box-shadow: 0 20px 40px rgba(17, 36, 57, 0.12);
}

.landing-hero-card {
    padding: 22px;
}

.landing-hero-card h2,
.landing-card h3,
.landing-section h2,
.landing-risk h2,
.login-form-title {
    margin: 0;
    color: #10233a;
    letter-spacing: -0.02em;
}

.landing-hero-card-copy {
    margin: 10px 0 14px;
    color: #3f5874;
}

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

/* ─────────────────────────────────────────────────────── *
 *  FOOTER — 3-COLUMN (brand | product | legal)           *
 * ─────────────────────────────────────────────────────── */
.landing-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px 56px;
    align-items: start;
}

.landing-footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(160px, auto));
    gap: 24px 40px;
    align-items: start;
}

.landing-footer nav {
    display: grid;
    gap: 8px;
    justify-items: end;
    align-content: start;
}

.footer-nav-heading {
    margin: 0 0 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
}

/* ─────────────────────────────────────────────────────── *
 *  INNER MARKETING PAGES (about, features, changelog)    *
 * ─────────────────────────────────────────────────────── */

body.page-landing .landing-nav-links a.nav-active {
    color: #0f172a;
    font-weight: 700;
}

body.page-landing .landing-hero-compact {
    padding: 56px 0 36px;
}

body.page-landing .landing-inner-h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #0f172a;
    max-width: 740px;
    margin: 12px 0 16px;
    line-height: 1.15;
}

/* Changelog timeline */
body.page-landing .changelog-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
}

body.page-landing .changelog-entry {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 0 28px;
    padding: 28px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    align-items: start;
}

body.page-landing .changelog-entry:last-child {
    border-bottom: none;
}

body.page-landing .changelog-date {
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-top: 5px;
}

body.page-landing .changelog-version {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(139, 92, 246, 0.1);
    color: #6d28d9;
    letter-spacing: 0.04em;
    margin-left: 6px;
    vertical-align: middle;
}

body.page-landing .changelog-content h3 {
    margin: 0 0 8px;
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
}

body.page-landing .changelog-content p {
    margin: 0 0 12px;
    color: #475569;
    font-size: 0.93rem;
}

body.page-landing .changelog-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

body.page-landing .changelog-tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 6px;
    background: rgba(14, 165, 233, 0.1);
    color: #0369a1;
}

body.page-landing .changelog-tag.new {
    background: rgba(22, 163, 74, 0.1);
    color: #166534;
}

body.page-landing .changelog-tag.fix {
    background: rgba(220, 38, 38, 0.1);
    color: #991b1b;
}

body.page-landing .changelog-tag.improvement {
    background: rgba(217, 119, 6, 0.1);
    color: #92400e;
}

/* Features detail page */
body.page-landing .features-detail-grid {
    display: grid;
    gap: 48px;
}

body.page-landing .features-detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

body.page-landing .features-detail-row.reverse {
    direction: rtl;
}

body.page-landing .features-detail-row.reverse > * {
    direction: ltr;
}

body.page-landing .features-detail-row h3 {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
    margin: 0 0 12px;
}

body.page-landing .features-detail-row p {
    color: #475569;
    margin: 0 0 14px;
    font-size: 0.96rem;
}

body.page-landing .features-detail-row ul {
    margin: 0;
    padding: 0 0 0 18px;
    color: #475569;
    font-size: 0.94rem;
}

body.page-landing .features-detail-row ul li {
    margin-bottom: 8px;
}

body.page-landing .features-visual {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8f0f8 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 20px;
    padding: 28px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.page-landing .features-visual .visual-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
}

body.page-landing .features-visual .visual-stat {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: #0f172a;
    line-height: 1;
}

body.page-landing .features-visual .visual-desc {
    font-size: 0.88rem;
    color: #64748b;
}

body.page-landing .features-visual .visual-list {
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}

body.page-landing .features-visual .visual-list li {
    font-size: 0.83rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
}

body.page-landing .features-visual .visual-list li::before {
    content: "✓";
    color: #166534;
    font-weight: 700;
    flex-shrink: 0;
}

/* Waitlist thanks page */
body.page-landing .thanks-wrap {
    min-height: 72vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

body.page-landing .thanks-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(151, 166, 186, 0.24);
    box-shadow: 0 20px 48px rgba(17, 36, 57, 0.1);
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 520px;
    width: 100%;
    text-align: center;
}

body.page-landing .thanks-icon {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1;
}

body.page-landing .thanks-card h1 {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #0f172a;
    margin: 0 0 12px;
}

body.page-landing .thanks-card > p {
    color: #475569;
    margin: 0 0 24px;
}

body.page-landing .thanks-steps {
    text-align: left;
    background: #f8fafc;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 28px;
    display: grid;
    gap: 14px;
}

body.page-landing .thanks-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: #475569;
}

body.page-landing .thanks-step-num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0f172a;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

/* 404 error page */
body.page-landing .error-page-wrap {
    min-height: 74vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

body.page-landing .error-code {
    font-size: clamp(5rem, 14vw, 10rem);
    font-weight: 900;
    letter-spacing: -0.06em;
    color: #e2e8f0;
    line-height: 1;
    margin: 0 0 4px;
}

body.page-landing .error-card h1 {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #0f172a;
    margin: 0 0 12px;
}

body.page-landing .error-card p {
    color: #64748b;
    margin: 0 auto 28px;
    max-width: 400px;
}

body.page-landing .error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive: inner page grids */
@media (max-width: 768px) {
    .landing-footer-grid {
        grid-template-columns: 1fr;
    }

    .landing-footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .landing-footer nav {
        justify-items: start;
    }

    body.page-landing .features-detail-row,
    body.page-landing .changelog-entry {
        grid-template-columns: 1fr;
    }

    body.page-landing .features-detail-row.reverse {
        direction: ltr;
    }
}

.integration-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 14px;
    padding: 10px 12px;
    background: rgba(247, 251, 255, 0.9);
    border: 1px solid rgba(151, 166, 186, 0.24);
}

.state-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    min-height: 28px;
    padding: 0 10px;
    background: rgba(148, 163, 184, 0.16);
    color: #425871;
    font-size: 0.75rem;
    font-weight: 700;
}

.state-pill.is-live {
    background: rgba(16, 185, 129, 0.16);
    color: #0f766e;
}

.landing-section {
    padding: 34px 0;
}

.landing-section-alt {
    background: linear-gradient(180deg, rgba(238, 246, 255, 0.68), rgba(244, 250, 255, 0.72));
    border-top: 1px solid rgba(151, 166, 186, 0.18);
    border-bottom: 1px solid rgba(151, 166, 186, 0.18);
}

.landing-section-head {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.landing-section-head h2 {
    font-size: clamp(1.55rem, 2.8vw, 2.3rem);
}

.landing-card-grid {
    display: grid;
    gap: 14px;
}

.landing-card-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-card-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-card {
    padding: 18px;
}

.landing-card p,
.landing-card li,
.landing-flow p,
.landing-footer p,
.landing-footer-meta p,
.login-form-copy,
.login-legal-copy {
    margin: 8px 0 0;
    color: #445c77;
}

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

.landing-flow li {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(151, 166, 186, 0.2);
}

.flow-index {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(20, 184, 166, 0.18));
    color: #115e59;
    font-weight: 700;
}

.landing-preview {
    overflow: hidden;
}

.preview-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(151, 166, 186, 0.22);
    background: rgba(241, 248, 255, 0.82);
}

.preview-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.48);
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
}

.preview-grid article {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(151, 166, 186, 0.2);
    padding: 14px;
}

.preview-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.preview-stats article p,
.preview-events article p {
    margin: 6px 0 0;
    color: #314760;
    font-weight: 700;
}

.preview-events {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 0;
}

.preview-events article {
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-events article::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0ea5e9;
    flex: 0 0 auto;
}

.deployment-card {
    border-radius: 28px;
    border: 1px solid rgba(151, 166, 186, 0.24);
    background: linear-gradient(135deg, #0f172a, #0f3b59 45%, #0e7490);
    color: #f0f7ff;
    padding: 24px;
    display: grid;
    grid-template-columns: 1.4fr minmax(260px, 0.8fr);
    gap: 18px;
    box-shadow: 0 24px 50px rgba(8, 15, 26, 0.24);
}

.deployment-card h2,
.deployment-card h3,
.deployment-card p,
.deployment-card .landing-kicker {
    color: #f0f7ff;
}

.deployment-card aside {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.12);
    padding: 16px;
    display: grid;
    gap: 10px;
    align-content: start;
}

.pricing-desc {
    margin-top: 6px;
    color: #45607b;
    font-size: 0.9rem;
}

.featured-pricing {
    border-color: rgba(14, 165, 233, 0.48);
    box-shadow: 0 24px 40px rgba(14, 165, 233, 0.14);
}

.featured-tag {
    margin: 0;
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    min-height: 26px;
    align-items: center;
    padding: 0 10px;
    background: rgba(14, 165, 233, 0.16);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: #0f5f95;
    font-size: 0.73rem;
    font-weight: 700;
}

.waitlist-card {
    border-radius: 28px;
    border: 1px solid rgba(151, 166, 186, 0.24);
    background: linear-gradient(135deg, #0284c7, #0891b2 42%, #0f172a);
    color: #f2f8ff;
    padding: 24px;
    display: grid;
    grid-template-columns: 1.25fr minmax(280px, 0.85fr);
    gap: 16px;
    text-align: left;
}

.waitlist-card h2,
.waitlist-card p,
.waitlist-card .landing-kicker {
    color: #f2f8ff;
}

.waitlist-form {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.12);
    padding: 14px;
    display: grid;
    gap: 8px;
}

.waitlist-form label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #d8ecff;
}

.waitlist-form input {
    min-height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.18);
    color: #f8fcff;
    padding: 0 12px;
}

.waitlist-form input::placeholder {
    color: rgba(236, 245, 255, 0.75);
}

.waitlist-form p {
    margin: 0;
    font-size: 0.76rem;
    color: #e6f3ff;
}

.pricing-card ul {
    margin: 10px 0 0;
    padding-left: 18px;
}

.pricing-price {
    margin: 8px 0 0;
    font-size: 1.35rem;
    color: #0f172a;
    font-weight: 700;
}

.landing-cta-strip {
    text-align: center;
}

.landing-faq {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.landing-risk {
    padding: 20px;
}

.landing-footer {
    border-top: 1px solid rgba(151, 166, 186, 0.24);
    background: rgba(243, 249, 255, 0.84);
    padding: 26px 0 22px;
}

.landing-brandline {
    margin: 0;
    font-weight: 800;
    color: #0f172a;
}

.landing-footer-meta {
    margin-top: 14px;
    display: grid;
    gap: 6px;
}

@media (max-width: 980px) {
    .landing-nav {
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .landing-nav-links {
        order: 3;
        width: 100%;
        justify-content: space-between;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .landing-hero-grid,
    .landing-card-grid.cols-3,
    .landing-card-grid.cols-2,
    .preview-grid,
    .landing-faq,
    .preview-stats,
    .preview-events,
    .deployment-card,
    .waitlist-card,
    .broker-pill-grid,
    .hero-stat-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .landing-shell {
        width: min(100%, calc(100% - 20px));
    }

    .landing-footer-links {
        grid-template-columns: 1fr;
    }

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

    .landing-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .landing-btn {
        width: 100%;
    }
}

