/* landing.css - public marketing pages (Landing, Pricing, Login) */

/* =========================
   Landing-specific tokens
   ========================= */
.landing-shell {
    --landing-bg: #ffffff;
    --landing-bg-alt: #f7f8fb;
    --landing-bg-band: linear-gradient(135deg, rgba(243, 146, 0, 0.08) 0%, rgba(31, 45, 92, 0.08) 100%);
    --landing-ink: #0f172a;
    --landing-ink-soft: #475569;
    --landing-ink-muted: #64748b;
    --landing-border: #e2e8f0;
    --landing-card-bg: #ffffff;
    --landing-card-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
    --landing-card-shadow-hover: 0 16px 48px rgba(15, 23, 42, 0.10);
    --landing-nav-bg: rgba(255, 255, 255, 0.78);
    --landing-nav-border: rgba(15, 23, 42, 0.08);
}

.theme-dark .landing-shell {
    --landing-bg: #0b1220;
    --landing-bg-alt: #0f1830;
    --landing-bg-band: linear-gradient(135deg, rgba(243, 146, 0, 0.14) 0%, rgba(31, 45, 92, 0.20) 100%);
    --landing-ink: #f1f5f9;
    --landing-ink-soft: #cbd5e1;
    --landing-ink-muted: #94a3b8;
    --landing-border: rgba(148, 163, 184, 0.18);
    --landing-card-bg: rgba(20, 30, 51, 0.9);
    --landing-card-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    --landing-card-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.5);
    --landing-nav-bg: rgba(11, 18, 32, 0.78);
    --landing-nav-border: rgba(148, 163, 184, 0.14);
}

/* =========================
   Layout shell
   ========================= */
.landing-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--landing-bg);
    color: var(--landing-ink);
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

.landing-main {
    flex: 1;
}

.landing-container {
    max-width: 1180px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.landing-container-narrow {
    max-width: 820px;
}

.landing-section {
    padding: 6rem 0;
}

.landing-section-tinted {
    background: var(--landing-bg-alt);
}

@media (max-width: 720px) {
    .landing-section {
        padding: 4rem 0;
    }
}

/* =========================
   Top nav
   ========================= */
.landing-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--landing-nav-bg);
    border-bottom: 1px solid var(--landing-nav-border);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
}

.landing-nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.landing-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--landing-ink);
}

.wordmark-mark-svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.wordmark-text {
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.landing-nav-link {
    color: var(--landing-ink-soft);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    transition: color 0.15s ease;
}

.landing-nav-link:hover {
    color: var(--landing-ink);
}

.theme-toggle {
    border: 1px solid var(--landing-border);
    background: transparent;
    color: var(--landing-ink-soft);
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.theme-toggle:hover {
    color: var(--landing-ink);
    border-color: var(--landing-ink-muted);
}

.nav-signin {
    font-weight: 600;
    color: var(--landing-ink);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.1rem;
    background: var(--brand-gradient);
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(31, 45, 92, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(31, 45, 92, 0.32);
}

@media (max-width: 820px) {
    .landing-nav-link[href="/#features"],
    .landing-nav-link[href="/#pricing"],
    .landing-nav-link[href="/#faq"] {
        display: none;
    }
}

@media (max-width: 520px) {
    /* 2026.06.12-JRN keep Sign in reachable on phones - it was hidden here, leaving
       no way to log in. Let the nav wrap so the items don't overflow. */
    .landing-nav-links {
        flex-wrap: wrap;
        row-gap: 0.4rem;
        justify-content: flex-end;
    }
}

/* =========================
   Buttons
   ========================= */
.btn-primary-grad,
.btn-secondary-outline,
.btn-tertiary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary-grad {
    background: var(--brand-gradient);
    color: #fff;
    box-shadow: 0 10px 28px rgba(31, 45, 92, 0.28);
}

.btn-primary-grad:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 36px rgba(31, 45, 92, 0.36);
    color: #fff;
}

.btn-secondary-outline {
    background: transparent;
    color: var(--landing-ink);
    border-color: var(--landing-border);
}

.btn-secondary-outline:hover {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
}

.btn-tertiary {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.24);
}

.btn-tertiary:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

/* =========================
   Hero
   ========================= */
.landing-hero {
    position: relative;
    padding: 6rem 0 5rem;
    text-align: center;
    overflow: hidden;
}

.landing-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 0%, rgba(243, 146, 0, 0.10), transparent 40%),
        radial-gradient(circle at 80% 10%, rgba(31, 45, 92, 0.10), transparent 45%);
    pointer-events: none;
    z-index: 0;
}

.landing-hero > * {
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-block;
    color: var(--brand-orange);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.hero-headline {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--landing-ink);
    margin: 0 auto 1.6rem;
    max-width: 22ch;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.hero-headline,
.hero-headline * {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.hero-subhead {
    max-width: 38rem;
    margin: 0 auto 2.4rem;
    color: var(--landing-ink-soft);
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 0.9rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.4rem;
}

.hero-meta {
    color: var(--landing-ink-muted);
    font-size: 0.85rem;
}

.hero-addon-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 1.6rem auto 0;
    padding: 0.45rem 0.95rem 0.45rem 0.55rem;
    background: var(--landing-bg-alt);
    border: 1px solid var(--landing-border);
    border-radius: 999px;
    color: var(--landing-ink-soft);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: default;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.hero-addon-chip:hover {
    border-color: var(--brand-orange);
    transform: translateY(-1px);
}

.hero-addon-chip img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 6px;
}

/* =========================
   Trust strip
   ========================= */
.trust-strip {
    padding: 1.5rem 0 3rem;
    text-align: center;
}

.trust-strip p {
    color: var(--landing-ink-muted);
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}

.trust-strip strong {
    color: var(--landing-ink);
    font-weight: 600;
}

/* =========================
   Section heading helpers
   ========================= */
.section-eyebrow {
    color: var(--brand-orange);
    font-weight: 700;
    font-size: 0.76rem;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
    text-align: center;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--landing-ink);
    text-align: center;
    margin: 0 auto 1rem;
    max-width: 22ch;
}

.section-subtitle {
    text-align: center;
    color: var(--landing-ink-soft);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 42rem;
    margin: 0 auto 3rem;
}

/* =========================
   Feature grid
   ========================= */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

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

@media (max-width: 640px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--landing-card-bg);
    border: 1px solid var(--landing-border);
    border-radius: 18px;
    padding: 1.6rem;
    box-shadow: var(--landing-card-shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--landing-card-shadow-hover);
    border-color: rgba(243, 146, 0, 0.35);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 12px;
    color: #fff;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
}

.feature-icon.icon-orange {
    background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-soft) 100%);
}

.feature-icon.icon-blue {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-soft) 100%);
}

.feature-card h3 {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--landing-ink);
    margin: 0 0 0.5rem;
}

.feature-card p {
    color: var(--landing-ink-soft);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
}

/* =========================
   Who-for grid
   ========================= */
.whofor-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

@media (max-width: 880px) {
    .whofor-grid {
        grid-template-columns: 1fr;
    }
}

.whofor-card {
    background: var(--landing-card-bg);
    border: 1px solid var(--landing-border);
    border-radius: 18px;
    padding: 1.8rem;
    box-shadow: var(--landing-card-shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.whofor-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--landing-card-shadow-hover);
    border-color: rgba(31, 45, 92, 0.32);
}

.whofor-card h3 {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--landing-ink);
    margin: 0 0 0.7rem;
}

.whofor-card p {
    color: var(--landing-ink-soft);
    font-size: 0.96rem;
    line-height: 1.6;
    margin: 0;
}

/* =========================
   Pricing
   ========================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
    align-items: stretch;
}

@media (max-width: 980px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
}

.pricing-card {
    position: relative;
    background: var(--landing-card-bg);
    border: 1px solid var(--landing-border);
    border-radius: 22px;
    padding: 2rem 1.8rem;
    box-shadow: var(--landing-card-shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.pricing-card:not(.pricing-card-featured):hover {
    transform: translateY(-3px);
    box-shadow: var(--landing-card-shadow-hover);
    border-color: rgba(243, 146, 0, 0.35);
}

.pricing-card-featured {
    border: 2px solid transparent;
    background:
        linear-gradient(var(--landing-card-bg), var(--landing-card-bg)) padding-box,
        var(--brand-gradient) border-box;
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(31, 45, 92, 0.18);
}

.pricing-card-featured:hover {
    transform: translateY(-9px);
    box-shadow: 0 26px 60px rgba(31, 45, 92, 0.24);
}

@media (max-width: 980px) {
    .pricing-card-featured {
        transform: none;
    }
}

.pricing-badge {
    position: absolute;
    top: -0.85rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.32rem 0.85rem;
    background: var(--brand-gradient);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(31, 45, 92, 0.28);
}

.pricing-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--landing-ink);
    margin-bottom: 0.4rem;
}

.pricing-blurb {
    color: var(--landing-ink-soft);
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 1.4rem;
    min-height: 2.8rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    margin-bottom: 1.6rem;
}

.pricing-amount {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--landing-ink);
    letter-spacing: -0.02em;
    line-height: 1;
}

.pricing-suffix {
    color: var(--landing-ink-muted);
    font-size: 0.92rem;
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.8rem;
    display: grid;
    gap: 0.6rem;
    flex: 1;
}

.pricing-features li {
    color: var(--landing-ink-soft);
    font-size: 0.94rem;
    padding-left: 1.4rem;
    position: relative;
    line-height: 1.5;
}

.pricing-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.7rem;
    height: 0.4rem;
    border-left: 2px solid var(--brand-orange);
    border-bottom: 2px solid var(--brand-orange);
    transform: rotate(-45deg);
}

.pricing-cta {
    width: 100%;
    padding: 0.85rem 1rem;
}

.pricing-note {
    text-align: center;
    color: var(--landing-ink-muted);
    font-size: 0.88rem;
    margin-top: 2rem;
}

/* =========================
   Founding-customer pricing block (2026 add-on launch)
   ========================= */
.pricing-founder {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding: 2.4rem 2.2rem;
    border-radius: 24px;
    border: 2px solid transparent;
    background:
        linear-gradient(var(--landing-card-bg), var(--landing-card-bg)) padding-box,
        var(--brand-gradient) border-box;
    box-shadow: 0 24px 60px rgba(31, 45, 92, 0.18);
}

.pricing-founder-badge {
    position: absolute;
    top: -0.95rem;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.95rem 0.4rem 0.45rem;
    background: var(--brand-orange);
    color: var(--brand-blue);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(243, 146, 0, 0.32);
    white-space: nowrap;
}

.pricing-founder-badge img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 5px;
    background: #ffffff;
    padding: 1px;
}

.pricing-founder-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 2.4rem;
    margin-top: 0.8rem;
    align-items: start;
}

@media (max-width: 820px) {
    .pricing-founder {
        padding: 2rem 1.4rem;
    }
    .pricing-founder-grid {
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }
}

.pricing-founder-price-col {
    display: flex;
    flex-direction: column;
}

.pricing-founder-price {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.pricing-founder-amount {
    font-size: clamp(3rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--brand-orange);
    letter-spacing: -0.03em;
    line-height: 0.95;
    text-shadow: 0 2px 24px rgba(243, 146, 0, 0.25);
}

.pricing-founder-suffix {
    color: var(--landing-ink-muted);
    font-size: 1rem;
    font-weight: 600;
}

.pricing-founder-lock {
    margin: 0 0 0.9rem;
    color: var(--brand-orange);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    line-height: 1.4;
}

.pricing-founder-lock-sub {
    display: block;
    margin-top: 0.15rem;
    color: var(--landing-ink-muted);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
}

.pricing-founder-strike {
    margin: 0 0 1.4rem;
    color: var(--landing-ink-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.pricing-founder-strike strong {
    color: var(--landing-ink-soft);
    font-weight: 700;
}

.pricing-founder-cta {
    width: 100%;
    padding: 0.95rem 1rem;
    margin-bottom: 0.9rem;
}

.pricing-founder-meta {
    margin: 0;
    color: var(--landing-ink-muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.pricing-founder-features-col {
    border-left: 1px solid var(--landing-border);
    padding-left: 2rem;
}

@media (max-width: 820px) {
    .pricing-founder-features-col {
        border-left: none;
        border-top: 1px solid var(--landing-border);
        padding-left: 0;
        padding-top: 1.6rem;
    }
}

.pricing-founder-features-label {
    color: var(--landing-ink-soft);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 0.95rem;
}

.pricing-founder-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.7rem;
}

.pricing-founder-features li {
    position: relative;
    padding-left: 1.55rem;
    color: var(--landing-ink-soft);
    font-size: 0.95rem;
    line-height: 1.5;
}

.pricing-founder-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.7rem;
    height: 0.4rem;
    border-left: 2.5px solid var(--brand-orange);
    border-bottom: 2.5px solid var(--brand-orange);
    transform: rotate(-45deg);
}

/* Secondary callout for non-FBO-Director prospects */
.pricing-secondary {
    max-width: 960px;
    margin: 2.2rem auto 0;
    padding: 1.8rem 2rem;
    background: var(--landing-bg-alt);
    border: 1px solid var(--landing-border);
    border-radius: 18px;
}

/*2026.05.18-JRN reassurance band for existing FBO Director customers:
  shared database, no migration. Sits between the subtitle and the founder card. */
.pricing-reassure {
    max-width: 760px;
    margin: 0 auto 2.4rem;
    padding: 0.85rem 1.4rem;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--landing-ink);
    background: var(--landing-bg-alt);
    border: 1px solid var(--landing-border);
    border-radius: 999px;
}

.pricing-reassure a {
    font-weight: 600;
}

.pricing-secondary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    flex-wrap: wrap;
}

.pricing-secondary-text {
    flex: 1 1 320px;
}

.pricing-secondary-text h3 {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--landing-ink);
}

.pricing-secondary-text p {
    margin: 0;
    color: var(--landing-ink-soft);
    font-size: 0.93rem;
    line-height: 1.55;
}

.pricing-secondary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.btn-tertiary-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.15rem;
    border-radius: 999px;
    background: transparent;
    color: var(--landing-ink-soft);
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.93rem;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.btn-tertiary-light:hover {
    color: var(--landing-ink);
    background: rgba(31, 45, 92, 0.06);
}

/* =========================
   FAQ
   ========================= */
.faq-list {
    display: grid;
    gap: 0.7rem;
}

.faq-item {
    background: var(--landing-card-bg);
    border: 1px solid var(--landing-border);
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    transition: border-color 0.15s ease;
}

.faq-item[open] {
    border-color: rgba(243, 146, 0, 0.35);
}

.faq-question {
    list-style: none;
    cursor: pointer;
    padding: 1.15rem 1.3rem;
    color: var(--landing-ink);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: "+";
    color: var(--brand-orange);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1;
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.3rem 1.3rem;
    color: var(--landing-ink-soft);
    font-size: 0.96rem;
    line-height: 1.65;
}

/* =========================
   Bottom CTA band - Peak-End "end"
   ========================= */
.cta-band {
    background: var(--brand-gradient);
    color: #fff;
    padding: 5rem 0 5.5rem;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.cta-band-peak {
    padding-top: 5.5rem;
}

.cta-band-peak::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.18), transparent 45%),
        radial-gradient(circle at 82% 100%, rgba(255, 255, 255, 0.10), transparent 50%);
    pointer-events: none;
}

.cta-band-accent {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 92px;
    height: 4px;
    border-radius: 0 0 4px 4px;
    background: rgba(255, 255, 255, 0.85);
}

.cta-band-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-band-eyebrow {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.cta-band-title {
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
    color: #fff;
    max-width: 28ch;
}

.cta-band-sub {
    margin: 0.85rem 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.98rem;
    line-height: 1.55;
    max-width: 38ch;
}

.cta-band-actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.cta-band-actions .btn-primary-grad {
    background: #fff;
    color: var(--brand-blue);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.cta-band-actions .btn-primary-grad:hover {
    color: var(--brand-blue);
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

/* Shimmer sweep on the peak CTA - reserved for the end button only. */
.cta-band-shimmer {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.cta-band-shimmer::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.55) 50%,
        transparent 100%);
    transform: translateX(-120%);
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
}

.cta-band-shimmer:hover::after {
    transform: translateX(120%);
}

@media (prefers-reduced-motion: reduce) {
    .cta-band-shimmer::after { transition: none; }
}

/* =========================
   Footer
   ========================= */
.landing-footer {
    background: var(--landing-bg-alt);
    border-top: 1px solid var(--landing-border);
    padding: 3.5rem 0 2rem;
    color: var(--landing-ink-soft);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 760px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-col-brand {
        grid-column: 1 / -1;
    }
}

.footer-brand-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.7rem;
}

.footer-mark {
    display: inline-block;
    flex-shrink: 0;
}

.footer-wordmark {
    font-weight: 800;
    font-size: 0.92rem;
    letter-spacing: 0.10em;
    color: var(--landing-ink);
}

.footer-tagline {
    color: var(--landing-ink-soft);
    font-size: 0.94rem;
    margin: 0 0 0.6rem;
    max-width: 24rem;
}

.footer-attrib {
    color: var(--landing-ink-muted);
    font-size: 0.85rem;
    margin: 0;
}

.footer-heading {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--landing-ink);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-col a {
    color: var(--landing-ink-soft);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.15s ease;
}

.footer-col a:hover {
    color: var(--brand-orange);
}

.footer-col .footer-link-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    text-align: left;
    color: var(--landing-ink-soft);
    text-decoration: none;
    font-size: 0.92rem;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.15s ease;
}

.footer-col .footer-link-btn:hover {
    color: var(--brand-orange);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--landing-border);
    color: var(--landing-ink-muted);
    font-size: 0.82rem;
}

/* =========================
   Login page
   ========================= */
.login-shell {
    min-height: calc(100vh - 5.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--landing-card-bg);
    border: 1px solid var(--landing-border);
    border-radius: 20px;
    padding: 2.4rem 2.2rem;
    box-shadow: var(--landing-card-shadow);
}

.login-wordmark {
    text-align: center;
    font-weight: 800;
    letter-spacing: 0.10em;
    color: var(--landing-ink);
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
}

.login-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--landing-ink);
    margin: 0 0 1.6rem;
}

.login-field {
    display: grid;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.login-field label {
    color: var(--landing-ink-soft);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.login-field input {
    padding: 0.75rem 0.9rem;
    background: var(--landing-bg);
    border: 1px solid var(--landing-border);
    border-radius: 10px;
    color: var(--landing-ink);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-field input:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(243, 146, 0, 0.18);
}

.login-field input.invalid {
    border-color: rgba(185, 28, 28, 0.55);
    background: rgba(255, 107, 107, 0.06);
}

.login-field input.invalid:focus {
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.18);
}

/* 2026.06.11-JRN dropdown for the server + location pickers, matching the inputs */
.login-select {
    width: 100%;
    padding: 0.75rem 2.2rem 0.75rem 0.9rem;
    background-color: var(--landing-bg);
    border: 1px solid var(--landing-border);
    border-radius: 10px;
    color: var(--landing-ink);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23999' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-select:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(243, 146, 0, 0.18);
}

.login-field-error {
    color: #b91c1c;
    font-size: 0.82rem;
    margin-top: 0.1rem;
}

.login-submit {
    width: 100%;
    padding: 0.85rem 1rem;
    margin-top: 0.4rem;
}

.login-error {
    margin: 0 0 1rem;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    background: rgba(255, 107, 107, 0.10);
    color: #b91c1c;
    border: 1px solid rgba(255, 107, 107, 0.32);
    font-size: 0.9rem;
}

.login-demo {
    margin-top: 1.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--landing-border);
    text-align: center;
    color: var(--landing-ink-muted);
    font-size: 0.82rem;
    line-height: 1.6;
}

.login-demo code {
    color: var(--landing-ink-soft);
    background: var(--landing-bg-alt);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.82rem;
}

/* Contact form modal - inline confirmation (Peak-End Rule: no redirect, no mailto). */
.contact-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 14, 32, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1.25rem;
    animation: contact-modal-fade 180ms ease-out;
}

@keyframes contact-modal-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.contact-modal {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: var(--landing-surface, #ffffff);
    color: var(--landing-ink, #1f2937);
    border-radius: 16px;
    padding: 2rem 1.75rem 1.75rem;
    box-shadow: 0 24px 60px rgba(31, 45, 92, 0.18), 0 4px 16px rgba(8, 14, 32, 0.12);
    animation: contact-modal-rise 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes contact-modal-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.contact-modal-close {
    position: absolute;
    top: 0.65rem;
    right: 0.85rem;
    background: transparent;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--landing-ink-muted, #6b7280);
    cursor: pointer;
    padding: 0.25rem 0.55rem;
    border-radius: 8px;
    transition: background-color 160ms ease, color 160ms ease;
}

.contact-modal-close:hover {
    background: var(--landing-bg-alt, #f3f4f6);
    color: var(--landing-ink, #1f2937);
}

.contact-modal-title {
    margin: 0 0 0.4rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--landing-ink, #111827);
}

.contact-modal-subtitle {
    margin: 0 0 1.25rem;
    color: var(--landing-ink-muted, #6b7280);
    font-size: 0.93rem;
    line-height: 1.55;
}

.contact-modal-form {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contact-field-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--landing-ink-soft, #374151);
    letter-spacing: 0.01em;
}

.contact-field-optional {
    font-weight: 400;
    color: var(--landing-ink-muted, #9ca3af);
}

.contact-field-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    color: var(--landing-ink, #111827);
    background: var(--landing-bg-alt, #f9fafb);
    border: 1px solid var(--landing-border, #e5e7eb);
    border-radius: 10px;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
    font-family: inherit;
}

.contact-field-input:focus {
    outline: none;
    border-color: var(--brand-orange, #FA4616);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(243, 146, 0, 0.15);
}

.contact-field-textarea {
    resize: vertical;
    min-height: 96px;
    line-height: 1.5;
}

.contact-field-error {
    color: #b91c1c;
    font-size: 0.82rem;
    margin-top: 0.15rem;
}

.contact-form-error {
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: rgba(255, 107, 107, 0.10);
    color: #b91c1c;
    border: 1px solid rgba(255, 107, 107, 0.32);
    font-size: 0.88rem;
}

.contact-modal-submit {
    margin-top: 0.35rem;
    padding: 0.8rem 1.2rem;
    font-size: 0.98rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.contact-modal-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(243, 146, 0, 0.28);
}

.contact-modal-submit:disabled {
    opacity: 0.65;
    cursor: progress;
}

.contact-modal-success {
    text-align: center;
    padding: 0.8rem 0.4rem 0.2rem;
}

.contact-success-mark {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-orange, #FA4616), var(--brand-blue, #0021A5));
    color: #ffffff;
    font-size: 1.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: contact-success-pulse 700ms ease-out;
}

@keyframes contact-success-pulse {
    0%   { transform: scale(0.6); opacity: 0; }
    60%  { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); }
}

.contact-modal-success h3 {
    margin: 0 0 0.55rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.contact-modal-success-body {
    margin: 0 0 1.35rem;
    color: var(--landing-ink-muted, #6b7280);
    font-size: 0.93rem;
    line-height: 1.55;
}

.contact-modal-done {
    padding: 0.65rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

@media (max-width: 520px) {
    .contact-modal {
        padding: 1.6rem 1.25rem 1.4rem;
    }
}

/* =========================
   Scroll progress bar (top of viewport, fills as user scrolls)
   ========================= */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 60;
    background: transparent;
    pointer-events: none;
}

.scroll-progress-bar {
    height: 100%;
    width: 100%;
    background: var(--brand-gradient);
    transform: scaleX(0);
    transform-origin: 0 50%;
    will-change: transform;
    transition: transform 80ms linear;
}

/* =========================
   Scroll-triggered reveal (Intersection Observer adds .is-revealed)
   ========================= */
[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 620ms cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

[data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .scroll-progress-bar {
        transition: none;
    }
}

/* =========================
   Pilot / instructor portal
   ========================= */
.portal-shell {
    --landing-bg: #ffffff;
    --landing-bg-alt: #f7f8fb;
    --landing-ink: #0f172a;
    --landing-ink-soft: #475569;
    --landing-ink-muted: #64748b;
    --landing-border: #e2e8f0;
    --landing-card-bg: #ffffff;
    --landing-card-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--landing-bg);
    color: var(--landing-ink);
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

.theme-dark .portal-shell {
    --landing-bg: #0b1220;
    --landing-bg-alt: #0f1830;
    --landing-ink: #f1f5f9;
    --landing-ink-soft: #cbd5e1;
    --landing-ink-muted: #94a3b8;
    --landing-border: rgba(148, 163, 184, 0.18);
    --landing-card-bg: rgba(20, 30, 51, 0.9);
    --landing-card-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.portal-topbar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.9rem 1.6rem;
    background: var(--landing-card-bg);
    border-bottom: 1px solid var(--landing-border);
    position: sticky;
    top: 0;
    z-index: 20;
}

.portal-wordmark {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.10em;
    font-size: 0.82rem;
    color: var(--landing-ink);
    text-decoration: none;
}

.portal-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 0.5rem;
}

.portal-nav-link {
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--landing-ink-soft);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.portal-nav-link:hover {
    color: var(--landing-ink);
    background: var(--landing-bg-alt);
}

.portal-nav-link.active {
    color: var(--brand-orange);
    background: rgba(243, 146, 0, 0.10);
}

.portal-topbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.portal-topbar-button {
    border: 1px solid var(--landing-border);
    background: transparent;
    color: var(--landing-ink-soft);
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.portal-topbar-button:hover {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
}

.portal-user-menu {
    position: relative;
}

.portal-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--brand-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}

.portal-user-pop {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    min-width: 220px;
    background: var(--landing-card-bg);
    border: 1px solid var(--landing-border);
    border-radius: 12px;
    box-shadow: var(--landing-card-shadow);
    padding: 0.9rem 1rem;
    z-index: 30;
}

.portal-user-name {
    font-weight: 700;
    color: var(--landing-ink);
}

.portal-user-email {
    font-size: 0.82rem;
    color: var(--landing-ink-muted);
    margin-top: 0.1rem;
    word-break: break-all;
}

.portal-user-role {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-orange);
}

.portal-user-link {
    display: block;
    margin-top: 0.7rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--landing-ink-soft);
    text-decoration: none;
}

.portal-user-link:hover {
    color: var(--brand-orange);
}

.portal-user-signout {
    margin-top: 0.6rem;
    width: 100%;
    border: 1px solid var(--landing-border);
    background: transparent;
    color: var(--landing-ink-soft);
    padding: 0.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.portal-user-signout:hover {
    border-color: #b91c1c;
    color: #b91c1c;
}

.portal-main {
    flex: 1;
    padding: 2.4rem 1.6rem;
}

.portal-page {
    max-width: 880px;
    margin: 0 auto;
}

.portal-muted {
    color: var(--landing-ink-muted);
    font-size: 0.95rem;
}

.portal-hero {
    margin-bottom: 2rem;
}

.portal-eyebrow {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-orange);
    margin: 0 0 0.3rem;
}

.portal-h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--landing-ink);
    margin: 0 0 0.4rem;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.portal-tile {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1.4rem 1.5rem;
    background: var(--landing-card-bg);
    border: 1px solid var(--landing-border);
    border-radius: 14px;
    box-shadow: var(--landing-card-shadow);
    text-decoration: none;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.portal-tile:hover {
    transform: translateY(-2px);
    border-color: var(--brand-orange);
}

.portal-tile-accent {
    background: var(--brand-gradient);
}

.portal-tile-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--landing-ink);
}

.portal-tile-sub {
    font-size: 0.88rem;
    color: var(--landing-ink-muted);
}

.portal-tile-accent .portal-tile-title,
.portal-tile-accent .portal-tile-sub {
    color: #fff;
}

.portal-tile-accent .portal-tile-sub {
    color: rgba(255, 255, 255, 0.85);
}

.portal-card {
    background: var(--landing-card-bg);
    border: 1px solid var(--landing-border);
    border-radius: 14px;
    box-shadow: var(--landing-card-shadow);
    padding: 2rem;
    text-align: center;
}

.portal-cta {
    display: inline-block;
    margin-top: 1.2rem;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
}

.portal-section {
    margin: 2rem 0;
}

.portal-h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--landing-ink);
    margin: 0 0 0.8rem;
}

.portal-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.portal-chip {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.55rem 0.9rem;
    border-radius: 10px;
    border: 1px solid var(--landing-border);
    background: var(--landing-card-bg);
    min-width: 150px;
}

.portal-chip-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--landing-ink);
}

.portal-chip-meta {
    font-size: 0.78rem;
    color: var(--landing-ink-muted);
}

.portal-chip-green { border-left: 4px solid #16a34a; }
.portal-chip-amber { border-left: 4px solid #d97706; }
.portal-chip-red { border-left: 4px solid #b91c1c; }

.portal-next {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.3rem;
    background: var(--landing-card-bg);
    border: 1px solid var(--landing-border);
    border-radius: 12px;
}

.portal-next-when {
    display: flex;
    flex-direction: column;
}

.portal-next-date {
    font-weight: 700;
    color: var(--landing-ink);
}

.portal-next-time {
    font-size: 0.88rem;
    color: var(--landing-ink-muted);
}

.portal-tag {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
}

.portal-tag-ok { background: rgba(22, 163, 74, 0.14); color: #16a34a; }
.portal-tag-pending { background: rgba(217, 119, 6, 0.16); color: #b45309; }
.portal-tag-denied { background: rgba(185, 28, 28, 0.14); color: #b91c1c; }

.portal-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.portal-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    background: var(--landing-card-bg);
    border: 1px solid var(--landing-border);
    border-radius: 12px;
}

.portal-list-row.muted { opacity: 0.72; }

.portal-list-main {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.portal-list-when { font-weight: 700; color: var(--landing-ink); }
.portal-list-time { font-size: 0.88rem; color: var(--landing-ink-soft); }
.portal-list-sub { font-size: 0.82rem; color: var(--landing-ink-muted); }

.portal-list-side {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.portal-mini-btn {
    border: 1px solid var(--landing-border);
    background: transparent;
    color: var(--landing-ink-soft);
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
}

.portal-mini-btn:hover:not(:disabled) {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
}

.portal-mini-btn.danger {
    border-color: #b91c1c;
    color: #b91c1c;
}

.portal-mini-btn:disabled { opacity: 0.55; cursor: default; }

.portal-banner {
    margin: 0 0 1rem;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    background: rgba(22, 163, 74, 0.10);
    color: #15803d;
    border: 1px solid rgba(22, 163, 74, 0.3);
    font-size: 0.9rem;
}

.portal-banner.danger {
    background: rgba(185, 28, 28, 0.10);
    color: #b91c1c;
    border-color: rgba(185, 28, 28, 0.3);
}

.portal-form-card {
    background: var(--landing-card-bg);
    border: 1px solid var(--landing-border);
    border-radius: 14px;
    box-shadow: var(--landing-card-shadow);
    padding: 1.8rem;
    max-width: 620px;
}

.portal-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.1rem;
    flex: 1;
}

.portal-field label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--landing-ink-soft);
}

.portal-optional {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    color: var(--landing-ink-muted);
}

.portal-field input[type=date],
.portal-field select {
    padding: 0.65rem 0.8rem;
    background: var(--landing-bg);
    border: 1px solid var(--landing-border);
    border-radius: 9px;
    color: var(--landing-ink);
    font-family: inherit;
    font-size: 0.95rem;
}

.portal-field-row {
    display: flex;
    gap: 1rem;
}

.portal-fixed-value {
    padding: 0.65rem 0.8rem;
    background: var(--landing-bg-alt);
    border: 1px dashed var(--landing-border);
    border-radius: 9px;
    color: var(--landing-ink-soft);
    font-weight: 600;
}

.portal-check {
    margin: 0.5rem 0 1.2rem;
    padding: 1rem 1.1rem;
    border-radius: 11px;
    border: 1px solid var(--landing-border);
}

.portal-check.ok { background: rgba(22, 163, 74, 0.08); border-color: rgba(22, 163, 74, 0.3); }
.portal-check.warn { background: rgba(217, 119, 6, 0.09); border-color: rgba(217, 119, 6, 0.32); }
.portal-check.bad { background: rgba(185, 28, 28, 0.08); border-color: rgba(185, 28, 28, 0.3); }

.portal-check-counts {
    display: block;
    font-size: 0.82rem;
    color: var(--landing-ink-muted);
    margin-top: 0.2rem;
}

.portal-check-list {
    margin: 0.7rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.86rem;
    color: var(--landing-ink-soft);
}

.portal-check-list li { margin-bottom: 0.25rem; }
.portal-check-list li.fail { color: #b91c1c; }
.portal-check-list li.warn { color: #b45309; }

.portal-cta-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.portal-cta-row .portal-cta { margin-top: 0; }

.portal-kpi-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.portal-kpi {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1.2rem 1.4rem;
    background: var(--landing-card-bg);
    border: 1px solid var(--landing-border);
    border-radius: 12px;
    box-shadow: var(--landing-card-shadow);
}

.portal-kpi-num {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--brand-orange);
}

.portal-kpi-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--landing-ink-muted);
}

/* Legal documents (/terms, /privacy) */
.legal-doc { text-align: left; }

.legal-doc .section-title { text-align: left; }

.legal-updated {
    color: var(--landing-ink-muted);
    font-size: 0.85rem;
    margin: 0.2rem 0 1.8rem;
}

.legal-doc h2 {
    color: var(--landing-ink);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1.8rem 0 0.5rem;
}

.legal-doc p {
    color: var(--landing-ink-soft);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 0.9rem;
}

.legal-doc a {
    color: var(--brand-orange);
    text-decoration: none;
}

.legal-doc a:hover { text-decoration: underline; }
