/*
 * BrightArchive Subscription Portal — Design System
 * Extracted from docs/subscription-portal-mockup.html
 * Version: 1.1.0 (prod-templates-static — prototype rules removed)
 *
 * All design tokens, component classes, and animation rules are production-safe.
 */
/* ───────────────────────────────────────────────────────────────────────
   Design tokens
──────────────────────────────────────────────────────────────────────── */
:root {
    --navy: #0D1B3E;
    --navy-dark: #080F24;
    --navy-mid: #162C6A;
    --blue: #1B4FD8;
    --blue-mid: #3B72F6;
    --blue-light: #5B9BFF;
    --blue-bg: #EEF2FF;
    --blue-dark: #0F2F7A;
    --purple: #6C47FF;
    --teal: #00C9B1;
    --green: #00B37E;
    --green-bg: #F0FDF4;
    --amber: #F59E0B;
    --amber-bg: #FFFBEB;
    --red: #EF4444;
    --red-bg: #FEF2F2;
    --g50: #F8FAFC;
    --g100: #F1F5F9;
    --g200: #E2E8F0;
    --g300: #CBD5E1;
    --g400: #94A3B8;
    --g500: #64748B;
    --g600: #475569;
    --g700: #334155;
    --g800: #1E293B;
    --g900: #0F172A;
    --r4: 4px;
    --r6: 6px;
    --r8: 8px;
    --r12: 12px;
    --r16: 16px;
    --r20: 20px;
    --r99: 999px;
    --sh-sm: 0 1px 4px rgba(0, 0, 0, .08);
    --sh-md: 0 4px 16px rgba(0, 0, 0, .10);
    --sh-lg: 0 8px 40px rgba(0, 0, 0, .14);
    --t: .17s ease;
    --sidebar: 240px;
    --topnav: 100px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--g50);
    color: var(--g800);
    line-height: 1.55;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased
}

a {
    color: inherit;
    text-decoration: none
}

button {
    font-family: inherit;
    cursor: pointer
}

input,
select,
textarea {
    font-family: inherit
}

/* ── Topnav ── */
.topnav {
    background: rgba(13, 27, 62, .92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    height: var(--topnav);
    padding: 0 clamp(16px, 4vw, 40px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 200;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    outline-offset: 4px
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--blue-mid), var(--purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #fff;
    font-size: .95rem;
    flex-shrink: 0
}

.brand-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: 1;
    white-space: nowrap
}

.brand-wordmark .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(180deg, #ff751f 0%, #ff914d 100%);
    box-shadow: inset 0 7px 0 rgba(255, 255, 255, .14);
    position: relative;
    flex-shrink: 0
}

.brand-wordmark .brand-mark::before {
    content: "";
    position: absolute;
    left: 5px;
    right: 5px;
    top: 9px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 6px 0 rgba(255, 255, 255, .62)
}

.brand-wordmark .brand-text {
    font-size: 1.12rem
}

.brand-wordmark.dark {
    color: var(--g900)
}

.brand-logo {
    height: 30px;
    width: auto;
    display: block
}

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

.nav-links a {
    color: rgba(255, 255, 255, .6);
    font-size: .875rem;
    transition: color var(--t);
    padding: 4px
}

.nav-links a:hover {
    color: #fff
}

.btn-nav {
    background: var(--blue-mid);
    color: #fff;
    border: none;
    border-radius: var(--r6);
    padding: 8px 18px;
    font-size: .85rem;
    font-weight: 700;
    transition: background var(--t);
    white-space: nowrap
}

.btn-nav:hover {
    background: var(--blue-light)
}

/* Text-style nav button — for tab-switching buttons that look like nav links */
.btn-nav-text {
    background: none;
    border: none;
    color: rgba(255, 255, 255, .6);
    font-size: .875rem;
    padding: 4px;
    cursor: pointer;
    transition: color var(--t);
    white-space: nowrap
}

.btn-nav-text:hover {
    color: #fff
}

/* Ghost/outline nav button — secondary CTA in topnav */
.btn-nav-ghost {
    background: transparent;
    color: rgba(255, 255, 255, .75);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--r6);
    padding: 7px 16px;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--t), border-color var(--t), color var(--t);
    white-space: nowrap
}

.btn-nav-ghost:hover {
    background: rgba(255, 255, 255, .09);
    border-color: rgba(255, 255, 255, .4);
    color: #fff
}

/* Vertical separator between nav link groups */
.nav-divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, .12);
    flex-shrink: 0
}

/* Hamburger — mobile only */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    padding: 4px;
    line-height: 1
}

.mobile-menu {
    display: none;
    position: fixed;
    inset: var(--topnav) 0 0 0;
    background: var(--navy-dark);
    z-index: 190;
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    overflow-y: auto
}

.mobile-menu.open {
    display: flex
}

.mobile-menu a,
.mobile-menu button {
    display: block;
    width: 100%;
    text-align: left;
    color: rgba(255, 255, 255, .7);
    font-size: 1rem;
    padding: 14px 12px;
    border-radius: var(--r8);
    border: none;
    background: none;
    transition: all var(--t)
}

.mobile-menu a:hover,
.mobile-menu button:hover {
    background: rgba(255, 255, 255, .07);
    color: #fff
}

.mobile-menu .btn-primary-mobile {
    background: var(--blue-mid);
    color: #fff;
    font-weight: 700;
    margin-top: 8px
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: var(--r6);
    font-weight: 700;
    transition: all var(--t);
    border: 2px solid transparent;
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit
}

.btn-lg {
    padding: 13px 28px;
    font-size: .95rem
}

.btn-md {
    padding: 10px 20px;
    font-size: .875rem
}

.btn-sm {
    padding: 7px 14px;
    font-size: .8rem
}

.btn-primary {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue)
}

.btn-primary:hover {
    background: var(--blue-mid);
    border-color: var(--blue-mid)
}

.btn-primary:disabled {
    background: var(--g300);
    border-color: var(--g300);
    cursor: not-allowed
}

.btn-outline {
    background: transparent;
    color: var(--blue);
    border-color: var(--blue)
}

.btn-outline:hover {
    background: #EFF6FF
}

.btn-ghost {
    background: var(--g100);
    color: var(--g700);
    border-color: var(--g200)
}

.btn-ghost:hover {
    background: var(--g200)
}

.btn-danger {
    background: transparent;
    color: var(--red);
    border-color: var(--red)
}

.btn-danger:hover {
    background: var(--red-bg)
}

.btn-full {
    width: 100%
}

.plan-cta {
    margin-top: 4px
}

.plan-cta-note {
    margin-top: 10px;
    font-size: .76rem;
    color: var(--g500);
    text-align: center;
    line-height: 1.6;
    min-height: 3.2em
}

/* ──────────────────────────────────────────────────────────────────────
   PAGE 1 — PRICING
────────────────────────────────────────────────────────────────────── */

/* Hero */
.hero {
    background: linear-gradient(140deg, var(--navy-dark) 0%, var(--navy-mid) 55%, #1d3c93 100%);
    color: #fff;
    text-align: center;
    padding: clamp(48px, 8vw, 88px) clamp(16px, 5vw, 24px) clamp(40px, 6vw, 64px)
}

.hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(91, 155, 255, .14);
    border: 1px solid rgba(91, 155, 255, .28);
    color: var(--blue-light);
    border-radius: var(--r99);
    padding: 5px 16px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 20px
}

.hero h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -.02em
}

.hero h1 em {
    font-style: normal;
    background: linear-gradient(90deg, var(--blue-light), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.hero .lead {
    font-size: clamp(1.05rem, 2.8vw, 1.3rem);
    color: rgba(255, 255, 255, .68);
    max-width: 480px;
    margin: 0 auto 32px
}

.save-chip {
    background: var(--teal);
    color: var(--navy);
    border-radius: var(--r99);
    font-size: .68rem;
    font-weight: 800;
    padding: 2px 8px;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: .02em
}

/* Brand logo images */
.logo-img {
    height: 80px;
    width: auto;
    display: block
}



.sidebar-app-logo {
    height: 70px;
    width: auto;
    display: block
}

.al-logo-img {
    max-height: 70px;
    width: auto;
    display: block
}

/* Plan cards */
.plans-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1040px;
    margin: 0 auto
}

@media(max-width:860px) {
    .plans-wrap {
        grid-template-columns: 1fr;
        max-width: 420px
    }
}

.plan-card {
    background: #fff;
    border-radius: var(--r16);
    border: 2px solid var(--g200);
    padding: 32px 28px;
    position: relative;
    text-align: left;
    transition: box-shadow var(--t), border-color var(--t);
    display: flex;
    flex-direction: column
}

.plan-card:hover {
    box-shadow: var(--sh-lg);
    border-color: var(--g300)
}

.plan-card.featured {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(27, 79, 216, .1), var(--sh-md)
}

.plan-card.featured:hover {
    border-color: var(--blue-mid)
}

.pop-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue);
    color: #fff;
    border-radius: var(--r99);
    padding: 4px 18px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap
}

.plan-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 16px;
    flex-shrink: 0
}

.plan-icon-wrap.t {
    background: #EFF6FF
}

.plan-icon-wrap.b {
    background: #EEF2FF
}

.plan-icon-wrap.e {
    background: #F0FDF4
}

.plan-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--g900);
    margin-bottom: 3px
}

.plan-tag {
    font-size: .82rem;
    color: var(--g600);
    margin-bottom: 18px;
    min-height: 38px
}

.plan-price {
    margin-bottom: 22px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start
}

.plan-price-line {
    display: flex;
    align-items: baseline;
    gap: 4px
}

.plan-amt {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--g900);
    line-height: 1;
    letter-spacing: -.03em
}

.plan-period {
    font-size: .82rem;
    color: var(--g400)
}

.plan-per {
    display: block;
    font-size: .77rem;
    color: var(--g400);
    margin-top: 3px
}

.plan-features {
    list-style: none;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex: 1
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: .85rem;
    color: var(--g700)
}

.fc {
    color: var(--green);
    font-size: .9rem;
    flex-shrink: 0;
    margin-top: 1px;
    font-weight: 700
}

.fm {
    color: var(--g300);
    font-size: .9rem;
    flex-shrink: 0;
    margin-top: 1px
}

/* Trust strip */
.trust-strip {
    background: rgba(0, 0, 0, .25);
    padding: 16px clamp(16px, 4vw, 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 2vw, 32px);
    flex-wrap: nowrap;
    margin-top: 40px
}

.ti {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, .55);
    font-size: .8rem
}

/* Feature comparison */
.compare {
    background: #f5f8ff;
    padding: clamp(40px, 6vw, 72px) clamp(16px, 5vw, 24px)
}

.compare h2 {
    text-align: center;
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    font-weight: 900;
    letter-spacing: -.02em;
    margin-bottom: 8px
}

.compare .sub {
    text-align: center;
    color: var(--g600);
    font-size: .88rem;
    margin: 0 auto 40px
}

.compare-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch
}

.ctable {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    max-width: 920px;
    margin: 0 auto
}

.ctable th {
    padding: 12px 18px;
    text-align: center;
    font-size: .78rem;
    font-weight: 700;
    color: var(--g400);
    border-bottom: 2px solid var(--g200)
}

.ctable th:first-child {
    text-align: left
}

.ctable th.fc-col {
    color: var(--blue)
}

.ctable td {
    padding: 12px 18px;
    text-align: center;
    font-size: .85rem;
    border-bottom: 1px solid var(--g100)
}

.ctable td:first-child {
    text-align: left;
    color: var(--g700);
    font-weight: 500
}

.ctable tr:hover td {
    background: var(--g50)
}

.ctable .cat td {
    background: var(--g50);
    font-weight: 700;
    color: var(--g600);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em
}

.cy {
    color: var(--green);
    font-size: 1rem;
    font-weight: 700
}

.cn {
    color: var(--g300);
    font-size: 1rem
}

/* FAQ */
.faq {
    max-width: 720px;
    margin: 0 auto;
    padding: clamp(40px, 6vw, 72px) clamp(16px, 5vw, 24px)
}

.faq h2 {
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    font-weight: 900;
    letter-spacing: -.02em;
    margin-bottom: 32px
}

.faq-item {
    border-bottom: 1px solid var(--g200);
    cursor: pointer
}

.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    font-weight: 600;
    font-size: .92rem;
    gap: 12px
}

.faq-q .arr {
    color: var(--g300);
    font-size: .8rem;
    flex-shrink: 0;
    transition: transform var(--t)
}

.faq-item.open .faq-q .arr {
    transform: rotate(180deg)
}

.faq-a {
    font-size: .86rem;
    color: var(--g600);
    line-height: 1.7;
}

/* ──────────────────────────────────────────────────────────────────────
   PAGE 2 — CHECKOUT BRIDGE
────────────────────────────────────────────────────────────────────── */
.center-page {
    min-height: calc(100vh - var(--topnav));
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(24px, 5vw, 56px) clamp(16px, 5vw, 24px)
}

.card {
    background: #fff;
    border-radius: var(--r20);
    box-shadow: var(--sh-md);
    padding: clamp(24px, 5vw, 48px) clamp(20px, 5vw, 44px);
    width: 100%
}

.card-sm {
    max-width: 460px
}

.card-md {
    max-width: 520px
}

.card-lg {
    max-width: 580px
}

/* Step pill */
.step-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #EEF2FF;
    color: var(--blue);
    border-radius: var(--r99);
    padding: 5px 14px;
    font-size: .75rem;
    font-weight: 700;
    margin-bottom: 20px
}

.card h2 {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -.02em;
    margin-bottom: 8px
}

.card .sub {
    color: var(--g600);
    font-size: .88rem;
    margin-bottom: 28px;
    line-height: 1.6
}

/* Order summary */
.order-box {
    background: var(--g50);
    border-radius: var(--r12);
    border: 1px solid var(--g200);
    padding: 20px;
    margin-bottom: 24px
}

.order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: .85rem
}

.order-row .lbl {
    color: var(--g600)
}

.order-row .val {
    font-weight: 600;
    color: var(--g800)
}

.order-row.total {
    border-top: 1px solid var(--g200);
    margin-top: 8px;
    padding-top: 14px
}

.order-row.total .lbl {
    font-weight: 700;
    color: var(--g800);
    font-size: .9rem
}

.order-row.total .val {
    font-size: 1.1rem;
    color: var(--blue);
    font-weight: 900
}

.secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--g400);
    font-size: .76rem;
    margin-top: 14px
}

/* ──────────────────────────────────────────────────────────────────────
   PAGE 3 — ACCOUNT SETUP
────────────────────────────────────────────────────────────────────── */
.step-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 28px
}

.si-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 800;
    flex-shrink: 0
}

.si-dot.done {
    background: var(--green);
    color: #fff
}

.si-dot.now {
    background: var(--blue);
    color: #fff
}

.si-dot.wait {
    background: var(--g200);
    color: var(--g400)
}

.si-line {
    height: 2px;
    flex: 1
}

.si-line.done {
    background: var(--green)
}

.si-line.wait {
    background: var(--g200)
}

/* Form elements */
.fgroup {
    margin-bottom: 18px
}

.frow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px
}

@media(max-width:500px) {
    .frow {
        grid-template-columns: 1fr
    }
}

label {
    display: block;
    font-size: .8rem;
    font-weight: 700;
    color: var(--g700);
    margin-bottom: 6px
}

.req {
    color: var(--red)
}

input[type=text],
input[type=email],
input[type=tel],
select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--g300);
    border-radius: var(--r6);
    font-size: .9rem;
    color: var(--g800);
    background: #fff;
    outline: none;
    transition: border-color var(--t), box-shadow var(--t)
}

input:focus,
select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(27, 79, 216, .1)
}

input.err {
    border-color: var(--red)
}

.hint {
    font-size: .77rem;
    color: var(--g400);
    margin-top: 5px;
    line-height: 1.5
}

.legal {
    font-size: .74rem;
    color: var(--g400);
    margin-top: 20px;
    text-align: center;
    line-height: 1.7
}

.legal a {
    color: var(--blue-mid)
}

/* ──────────────────────────────────────────────────────────────────────
   PAGE 4 — PROVISIONING
────────────────────────────────────────────────────────────────────── */
.spinner {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 4px solid var(--g200);
    border-top-color: var(--blue);
    animation: spin 1s linear infinite;
    margin: 0 auto 24px
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.prov-bar-wrap {
    width: 100%;
    height: 4px;
    background: var(--g100);
    border-radius: var(--r99);
    overflow: hidden;
    margin: 18px 0 0
}

#prov-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--blue-mid), var(--purple));
    transition: width .6s ease
}

#prov-heading {
    font-size: 1.45rem;
    letter-spacing: -.025em;
    margin-bottom: 6px
}

#prov-subtext {
    color: var(--g500);
    font-size: .87rem;
    margin-bottom: 0
}

.psteps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
    text-align: left
}

.pstep {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border-radius: var(--r8);
    font-size: .86rem
}

.pstep.done {
    background: var(--green-bg);
    color: var(--g700)
}

.pstep.now {
    background: #EEF2FF;
    color: var(--g700)
}

.pstep.wait {
    background: var(--g50);
    color: var(--g400)
}

.ps-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    flex-shrink: 0
}

.pstep.done .ps-icon {
    background: var(--green);
    color: #fff
}

.pstep.now .ps-icon {
    background: var(--blue);
    color: #fff
}

.pstep.wait .ps-icon {
    background: var(--g200);
    color: var(--g400)
}

.ps-lbl {
    flex: 1;
    font-weight: 600
}

.pstep-label {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: baseline;
    column-gap: 14px;
    flex: 1;
    min-width: 0
}

.pstep-title {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .11em;
    color: var(--g700);
    line-height: 1.45
}

.pstep-copy {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    line-height: 1.45
}

.pstep-copy::before {
    content: "·";
    margin-right: 10px
}

.pstep.done .pstep-copy {
    color: var(--green)
}

.pstep.now .pstep-copy {
    color: var(--blue)
}

.pstep.wait .pstep-copy {
    color: var(--g400)
}

.ps-sub {
    font-size: .75rem;
    color: inherit;
    opacity: .7
}

.pstep.done .ps-sub {
    color: var(--green);
    opacity: 1
}

.pstep.now .ps-sub {
    color: var(--blue);
    opacity: 1
}

.signup-shell-grid {
    display: grid;
    grid-template-columns: minmax(720px, 1fr) minmax(400px, 420px);
    gap: 32px;
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
    padding: 0 clamp(18px, 4vw, 40px)
}

.side-card-stack {
    display: flex;
    flex-direction: column;
    gap: 16px
}

/* ── Plan summary card (signup sidebar) ── */
.plan-summary-card {
    padding: 24px 24px 20px;
    border-top: 3px solid var(--blue)
}

.plan-name {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--g900);
    text-transform: uppercase;
    margin-bottom: 12px
}

.plan-price-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px
}

.plan-price {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--g900);
    line-height: 1;
    letter-spacing: -.02em
}

.plan-price-unit {
    font-size: .9rem;
    font-weight: 400;
    color: var(--g500)
}

.plan-tagline {
    font-size: .8rem;
    color: var(--g400);
    margin-bottom: 0
}

.plan-rule {
    border: none;
    border-top: 1px solid var(--g200);
    margin: 16px 0
}

.plan-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px
}

.plan-chip {
    background: var(--g50);
    border: 1px solid var(--g200);
    border-radius: var(--r8);
    padding: 10px 12px
}

.plan-chip-label {
    display: block;
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--g400);
    margin-bottom: 4px
}

.plan-chip-value {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--g800);
    line-height: 1.2
}

.plan-chip-note {
    display: block;
    font-size: .7rem;
    color: var(--g400);
    margin-top: 3px
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.plan-features li {
    font-size: .82rem;
    color: var(--g600);
    padding-left: 20px;
    position: relative;
    line-height: 1.4
}

.plan-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700
}

/* ── Signup steps card (sidebar vertical stepper) ── */
.signup-steps-card {
    padding: 20px 24px 16px
}

.signup-steps-card .psteps {
    margin-top: 0;
    gap: 0
}

.signup-steps-card .pstep {
    background: transparent;
    padding: 0;
    align-items: flex-start;
    position: relative;
    padding-bottom: 18px
}

.signup-steps-card .pstep:last-child {
    padding-bottom: 0
}

/* Vertical connector line */
.signup-steps-card .pstep::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 26px;
    bottom: 0;
    width: 2px;
    background: var(--g200)
}

.signup-steps-card .pstep:last-child::before {
    display: none
}

.signup-steps-card .pstep.now::before {
    background: linear-gradient(to bottom, var(--blue-mid), var(--g200))
}

.signup-steps-card .ps-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    font-size: .78rem;
    font-weight: 700;
    margin-top: 1px
}

.signup-steps-card .pstep-label {
    grid-template-columns: 1fr;
    row-gap: 2px;
    padding-top: 2px
}

.signup-steps-card .pstep-title {
    font-size: .88rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.3
}

.signup-steps-card .pstep-copy {
    font-size: .78rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.4
}

.signup-steps-card .pstep-copy::before {
    content: none
}

.signup-steps-card .pstep.now .pstep-title {
    color: var(--blue)
}

.signup-steps-card .pstep.now .pstep-copy {
    color: var(--g500)
}

.signup-steps-card .pstep.wait .pstep-title {
    color: var(--g400)
}

.signup-steps-card .pstep.wait .pstep-copy {
    color: var(--g300)
}

.signup-steps-note {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--g100);
    font-size: .75rem;
    color: var(--g400);
    text-align: center
}

.section-eyebrow {
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--g500);
    margin-bottom: 14px
}

.flow-note {
    border: 1px solid var(--g200);
    border-radius: var(--r12);
    background: linear-gradient(135deg, #fff, var(--g50));
    padding: 14px 16px;
    font-size: .8rem;
    color: var(--g600);
    line-height: 1.55
}

.checkout-panel {
    border: 1px solid rgba(15, 32, 64, .12);
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 24px 64px rgba(15, 32, 64, .14);
    margin-bottom: 22px
}

.checkout-header {
    background: radial-gradient(circle at 15% 0, rgba(91, 155, 255, .32), transparent 32%),
        linear-gradient(135deg, #081733, #132a57);
    color: #fff;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px
}

.checkout-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--r99);
    padding: 7px 10px;
    color: rgba(255, 255, 255, .78);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    white-space: nowrap
}

.checkout-body {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(260px, .72fr);
    gap: 0
}

.checkout-main {
    padding: 24px
}

.checkout-summary {
    background: linear-gradient(180deg, var(--g50), #fff);
    border-left: 1px solid var(--g200);
    padding: 24px
}

.readonly-field {
    border: 1px solid var(--g200);
    border-radius: var(--r12);
    padding: 12px 14px;
    background: var(--g50);
    font-size: .86rem;
    color: var(--g700);
    line-height: 1.45
}

.payment-card {
    border: 1px solid var(--g200);
    border-radius: var(--r16);
    padding: 16px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 32, 64, .06);
    margin-bottom: 16px
}

.mock-input {
    height: 44px;
    border: 1.5px solid var(--g200);
    border-radius: var(--r8);
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: var(--g400);
    background: linear-gradient(180deg, #fff, var(--g50));
    font-size: .86rem
}

.mock-input.card-number {
    font-family: "Courier New", monospace;
    letter-spacing: .04em;
    color: var(--g500)
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 18px
}

.trust-chip {
    border: 1px solid var(--g200);
    border-radius: var(--r99);
    padding: 6px 10px;
    background: #fff;
    color: var(--g500);
    font-size: .72rem;
    font-weight: 700
}

.handoff-card {
    background: var(--blue-bg);
    border: 1px solid rgba(27, 79, 216, .18);
    border-radius: var(--r12);
    padding: 14px 16px;
    margin-bottom: 18px;
    font-size: .82rem;
    color: var(--blue-dark);
    line-height: 1.55
}

.data-chip-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px
}

.data-chip {
    border: 1px solid var(--g200);
    border-radius: var(--r12);
    background: #fff;
    padding: 11px 12px
}

.data-chip .k {
    display: block;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--g400);
    margin-bottom: 4px
}

.data-chip .v {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    color: var(--g700);
    line-height: 1.35
}

.side-card-stack .pstep-label,
#pg-setup .pstep-label {
    grid-template-columns: 1fr;
    row-gap: 3px
}

.side-card-stack .pstep-title,
.side-card-stack .pstep-copy,
#pg-setup .pstep-title,
#pg-setup .pstep-copy {
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.35
}

.side-card-stack .pstep-title,
#pg-setup .pstep-title {
    font-size: .92rem
}

.side-card-stack .pstep-copy,
#pg-setup .pstep-copy {
    font-size: .8rem;
    font-weight: 700
}

.side-card-stack .pstep-copy::before,
#pg-setup .pstep-copy::before {
    content: "";
    margin-right: 0
}

#pg-setup .card-lg {
    max-width: 960px;
    padding-inline: clamp(36px, 7vw, 72px)
}

@media(max-width:1180px) {
    .signup-shell-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width:720px) {
    .checkout-body {
        grid-template-columns: 1fr
    }

    .checkout-summary {
        border-left: 0;
        border-top: 1px solid var(--g200)
    }

    .data-chip-grid {
        grid-template-columns: 1fr
    }
}

/* ──────────────────────────────────────────────────────────────────────
   CHECKOUT RETURN (Step 3) — confirmation card
────────────────────────────────────────────────────────────────────── */
/* Single-column step layout inside the narrow confirmation card */
.card-lg .pstep-label {
    grid-template-columns: 1fr;
    row-gap: 3px;
}

.card-lg .pstep-copy {
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
    font-size: .82rem;
}

.card-lg .pstep-copy::before {
    content: none;
}

.card-lg .pstep-title {
    text-transform: none;
    letter-spacing: normal;
    font-size: .92rem;
}

/* Checkout-specific step container */
.checkout-steps {
    margin-top: 0;
    margin-bottom: 24px;
}

/* Email hint box on Step 3 */
.checkout-hint {
    background: var(--g50);
    border: 1px solid var(--g200);
    border-left: 3px solid var(--blue-mid);
    border-radius: var(--r8);
    padding: 13px 16px;
    font-size: .84rem;
    color: var(--g700);
    line-height: 1.65;
    margin: 16px 0 20px;
}

/* ──────────────────────────────────────────────────────────────────────
   PAGE 5 — SUCCESS
────────────────────────────────────────────────────────────────────── */
.success-icon-wrap {
    width: 72px;
    height: 72px;
    background: var(--green-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 24px
}

.app-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px
}

.app-link {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1.5px solid var(--g200);
    border-radius: var(--r12);
    padding: 14px 18px;
    text-decoration: none;
    background: #fff;
    transition: border-color var(--t), box-shadow var(--t)
}

.app-link:hover {
    border-color: var(--blue-mid);
    box-shadow: var(--sh-sm)
}

.al-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--blue-bg)
}

.al-name {
    font-weight: 700;
    font-size: .9rem;
    color: var(--g900)
}

.al-url {
    font-size: .77rem;
    color: var(--g400)
}

.al-arr {
    margin-left: auto;
    color: var(--g300);
    font-size: 1rem
}

.email-card {
    background: var(--g50);
    border: 1px solid var(--g200);
    border-radius: var(--r8);
    padding: 14px 16px;
    font-size: .82rem;
    color: var(--g600);
    line-height: 1.7
}

.email-preview {
    background: #f8fafc;
    border: 1px solid var(--g200);
    border-radius: var(--r20);
    padding: clamp(16px, 3vw, 28px)
}

.email-preview-shell {
    background: #fff;
    border: 1px solid var(--g200);
    border-radius: var(--r16);
    box-shadow: var(--sh-sm);
    overflow: hidden
}

.email-client-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e5e7eb;
    border-bottom: 1px solid var(--g200);
    padding: 10px 14px;
    color: var(--g500);
    font-size: .75rem
}

.email-client-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--g300)
}

.email-client-subject {
    border-bottom: 1px solid var(--g200);
    padding: 18px 20px
}

.email-client-subject h3 {
    color: var(--g900);
    font-size: 1.1rem;
    letter-spacing: -.01em;
    margin-bottom: 8px
}

.email-client-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--g500);
    font-size: .78rem;
    line-height: 1.6
}

.email-inbox-preview {
    background: #fff;
    border: 1px solid var(--g200);
    border-radius: var(--r12);
    margin-bottom: 16px;
    padding: 14px 16px;
    box-shadow: var(--sh-sm)
}

.email-inbox-preview strong {
    color: var(--g900)
}

.email-inbox-preview .snippet {
    color: var(--g500);
    font-size: .82rem;
    line-height: 1.5;
    margin-top: 4px
}

.email-preview-head {
    background: var(--g50);
    border-bottom: 1px solid var(--g200);
    padding: 16px 20px;
    font-size: .82rem;
    color: var(--g600);
    line-height: 1.7
}

.email-preview-body {
    padding: clamp(22px, 4vw, 34px);
    color: var(--g700);
    font-size: .9rem;
    line-height: 1.75
}

.email-logo-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: var(--blue-dark);
    margin-bottom: 22px
}

.email-cta {
    display: inline-block;
    margin: 18px 0;
    padding: 12px 18px;
    border-radius: var(--r8);
    background: var(--blue);
    color: #fff;
    font-weight: 800;
    text-decoration: none
}

.email-meta-box {
    background: var(--blue-bg);
    border: 1px solid rgba(27, 79, 216, .14);
    border-radius: var(--r8);
    padding: 14px 16px;
    color: var(--blue-dark);
    font-size: .82rem;
    line-height: 1.65
}

/* ──────────────────────────────────────────────────────────────────────
   PAGE 6 — ACCOUNT PORTAL
────────────────────────────────────────────────────────────────────── */
.portal-wrap {
    display: grid;
    grid-template-columns: var(--sidebar) 1fr;
    min-height: calc(100vh - var(--topnav))
}

/* Sidebar */
.portal-side {
    background: var(--navy);
    position: sticky;
    top: var(--topnav);
    height: calc(100vh - var(--topnav));
    overflow-y: auto;
    padding: 24px 0;
    display: flex;
    flex-direction: column
}

.ps-org {
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    padding: 0 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    margin-bottom: 16px
}

.ps-org-name {
    display: block;
    margin-top: 2px
}

.org-switcher {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: .85rem;
    font-weight: 600
}

.ps-org-plan {
    font-size: .73rem;
    color: rgba(255, 255, 255, .35);
    font-weight: 400;
    margin-top: 2px
}

.ps-sect {
    padding: 0 12px;
    margin-bottom: 6px
}

.ps-lbl {
    font-size: .68rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .28);
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 0 4px;
    margin-bottom: 4px
}

.ps-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 8px;
    border-radius: var(--r6);
    color: rgba(255, 255, 255, .6);
    font-size: .86rem;
    font-weight: 500;
    transition: all var(--t);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left
}

.ps-link:hover {
    background: rgba(255, 255, 255, .07);
    color: #fff
}

.ps-link.active {
    background: rgba(27, 79, 216, .45);
    color: #fff;
    font-weight: 700
}

.ps-link .psi {
    width: 16px;
    text-align: center;
    font-size: .85rem;
    flex-shrink: 0
}

.ps-link .ps-add {
    margin-left: auto;
    font-size: .65rem;
    font-weight: 700;
    background: rgba(255, 255, 255, .1);
    border-radius: 4px;
    padding: 2px 7px;
    opacity: .7
}

.ps-div {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, .07);
    margin: 10px 12px
}

/* Portal content */
.portal-body {
    padding: clamp(24px, 4vw, 40px);
    background: var(--g50);
    overflow-y: auto
}

.ph {
    margin-bottom: 28px
}

.ph h1 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 900;
    letter-spacing: -.02em;
    margin-bottom: 3px
}

.ph p {
    color: var(--g600);
    font-size: .86rem
}

/* Tab panes */
.tab-pane {
    display: none
}

.tab-pane.active {
    display: block
}

/* Metric cards */
.metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px
}

@media(max-width:700px) {
    .metrics {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:420px) {
    .metrics {
        grid-template-columns: 1fr
    }
}

.metric {
    background: #fff;
    border-radius: var(--r12);
    border: 1px solid var(--g200);
    padding: 18px 20px
}

.ml {
    font-size: .72rem;
    font-weight: 700;
    color: var(--g400);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 6px
}

.mv {
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--g900);
    line-height: 1;
    letter-spacing: -.03em
}

.mv-quota {
    font-size: 1.35rem;
    font-weight: 300;
    color: var(--g400);
    letter-spacing: 0;
    margin-left: 2px
}

.msub {
    font-size: .77rem;
    color: var(--g400);
    margin-top: 4px
}

.mtag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .75rem;
    font-weight: 700;
    margin-top: 6px
}

.mtag.good {
    color: var(--green)
}

.mtag.warn {
    color: var(--amber)
}

/* Section card */
.sc {
    background: #fff;
    border-radius: var(--r12);
    border: 1px solid var(--g200);
    margin-bottom: 18px;
    overflow: hidden
}

.sc-head {
    padding: 16px 22px;
    border-bottom: 1px solid var(--g100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap
}

.sc-head h3 {
    font-size: .95rem;
    font-weight: 800
}

.sc-body {
    padding: 22px
}

.sc-body-flush {
    padding: 0
}

/* Plan rows */
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid var(--g100)
}

.detail-row:last-child {
    border-bottom: none
}

.dl {
    font-size: .85rem;
    color: var(--g600)
}

.dv {
    font-size: .85rem;
    font-weight: 600;
    color: var(--g800)
}

/* Status pills */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: var(--r99);
    padding: 3px 10px;
    font-size: .73rem;
    font-weight: 700
}

.pill::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%
}

.pill-paid {
    background: var(--green-bg);
    color: var(--green)
}

.pill-paid::before {
    background: var(--green)
}

.pill-trial,
.pill-in_trial {
    background: #EEF2FF;
    color: var(--blue)
}

.pill-trial::before,
.pill-in_trial::before {
    background: var(--blue)
}

.pill-active {
    background: var(--green-bg);
    color: var(--green)
}

.pill-active::before {
    background: var(--green)
}

.pill-pastdue,
.pill-past_due {
    background: var(--amber-bg);
    color: var(--amber)
}

.pill-pastdue::before,
.pill-past_due::before {
    background: var(--amber)
}

.pill-non_renewing {
    background: var(--amber-bg);
    color: var(--amber)
}

.pill-non_renewing::before {
    background: var(--amber)
}

.pill-expired,
.pill-cancelled {
    background: var(--red-bg);
    color: var(--red)
}

.pill-expired::before,
.pill-cancelled::before {
    background: var(--red)
}

/* Invoice table */
.itable {
    width: 100%;
    border-collapse: collapse;
    font-size: .84rem
}

.itable th {
    text-align: left;
    padding: 10px 18px;
    font-size: .72rem;
    font-weight: 700;
    color: var(--g400);
    text-transform: uppercase;
    letter-spacing: .06em;
    border-bottom: 2px solid var(--g200)
}

.itable td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--g100)
}

.itable tr:last-child td {
    border-bottom: none
}

.itable tr:hover td {
    background: var(--g50)
}

.istatus {
    display: inline-block;
    border-radius: var(--r99);
    padding: 2px 9px;
    font-size: .71rem;
    font-weight: 700
}

.istatus.paid {
    background: var(--green-bg);
    color: var(--green)
}

.istatus.due {
    background: var(--amber-bg);
    color: var(--amber)
}

.istatus.fail {
    background: var(--red-bg);
    color: var(--red)
}

.lbtn {
    background: none;
    border: none;
    color: var(--blue);
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0
}

.lbtn:hover {
    color: var(--blue-mid)
}

/* User rows */
.user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    border-bottom: 1px solid var(--g100)
}

.user-item:last-child {
    border-bottom: none
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    background: var(--avatar-bg, #1B4FD8)
}

.ui-info .name {
    font-size: .86rem;
    font-weight: 700
}

.ui-info .email {
    font-size: .76rem;
    color: var(--g400)
}

.ui-role {
    margin-left: auto;
    font-size: .72rem;
    font-weight: 700;
    background: var(--g100);
    color: var(--g600);
    border-radius: var(--r99);
    padding: 3px 10px;
    white-space: nowrap
}

.ui-invited {
    background: #EEF2FF;
    color: var(--blue)
}

/* Quota bar */
.qbar-wrap {
    margin-bottom: 20px
}

.qbar-labels {
    display: flex;
    justify-content: space-between;
    font-size: .77rem;
    color: var(--g600);
    margin-bottom: 6px
}

.qbar {
    height: 7px;
    background: var(--g200);
    border-radius: var(--r99);
    overflow: hidden
}

.qbar-fill {
    width: var(--qbar-w, 0%);
    height: 100%;
    border-radius: var(--r99);
    background: var(--blue);
    transition: width .4s ease
}

.qbar-fill.warn {
    background: var(--amber)
}

.qbar-fill.crit {
    background: var(--red)
}

/* Alert banner */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-radius: var(--r12);
    padding: 15px 18px;
    margin-bottom: 18px;
    border: 1.5px solid
}

.alert.warn {
    background: var(--amber-bg);
    border-color: #FDE68A
}

.alert.info {
    background: #EEF2FF;
    border-color: #BFDBFE
}

.alert-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px
}

.alert-body .alert-title {
    font-weight: 700;
    font-size: .88rem;
    margin-bottom: 3px
}

.alert-body p {
    font-size: .82rem;
    color: var(--g700);
    line-height: 1.55
}

/* Danger zone */
.danger-card {
    border-color: #FCA5A5 !important
}

.danger-head {
    background: var(--red-bg) !important
}

/* Payment card display */
.pay-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: var(--g50);
    border: 1.5px solid var(--g200);
    border-radius: var(--r12)
}

.card-brand {
    width: 46px;
    height: 30px;
    background: var(--g800);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .58rem;
    font-weight: 900;
    letter-spacing: .04em;
    flex-shrink: 0
}

.cn-num {
    font-weight: 700;
    font-size: .88rem;
    color: var(--g800)
}

.cn-exp {
    font-size: .77rem;
    color: var(--g600);
    margin-top: 2px
}

/* ── Mobile bottom tab bar (portal) ── */
.mobile-tabs {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--g200);
    z-index: 150;
    padding: 0 4px 4px;
    grid-template-columns: repeat(4, 1fr)
}

.mt-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 4px 6px;
    border: none;
    background: none;
    color: var(--g400);
    font-size: .65rem;
    font-weight: 600;
    transition: color var(--t)
}

.mt-btn.active {
    color: var(--blue)
}

.mt-btn .mti {
    font-size: 1.2rem;
    line-height: 1
}

/* ──────────────────────────────────────────────────────────────────────
   MODALS
────────────────────────────────────────────────────────────────────── */
.modal-bg {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .48);
    z-index: 500;
    align-items: flex-end;
    justify-content: center;
    padding: 0
}

.modal-bg.open {
    display: flex
}

@media(min-width:600px) {
    .modal-bg {
        align-items: center;
        padding: 20px
    }
}

.modal {
    background: #fff;
    width: 100%;
    border-radius: var(--r20) var(--r20) 0 0;
    padding: 24px 20px 32px;
    max-height: 90vh;
    overflow-y: auto
}

@media(min-width:600px) {
    .modal {
        max-width: 480px;
        border-radius: var(--r20);
        padding: 36px
    }
}

.modal-drag {
    width: 40px;
    height: 4px;
    background: var(--g200);
    border-radius: var(--r99);
    margin: 0 auto 20px;
    display: block
}

@media(min-width:600px) {
    .modal-drag {
        display: none
    }
}

.modal h3 {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -.02em;
    margin-bottom: 6px
}

.modal .modal-sub {
    color: var(--g600);
    font-size: .86rem;
    margin-bottom: 22px;
    line-height: 1.6
}

.modal-acts {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap
}

.modal-acts .btn {
    flex: 1;
    min-width: 120px
}

.reason-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--r8);
    border: 1.5px solid var(--g200);
    cursor: pointer;
    font-size: .86rem;
    transition: border-color var(--t);
    margin-bottom: 8px
}

.reason-opt input {
    accent-color: var(--blue)
}

.reason-opt:hover {
    border-color: var(--blue)
}

.plan-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: var(--r8);
    border: 1.5px solid var(--g200);
    cursor: pointer;
    margin-bottom: 10px;
    transition: all var(--t)
}

.plan-opt:hover {
    border-color: var(--blue)
}

.plan-opt.on {
    border-color: var(--blue);
    background: #EEF2FF
}

.plan-opt input {
    accent-color: var(--blue)
}

.po-info .po-name {
    font-weight: 700;
    font-size: .9rem
}

.po-info .po-desc {
    font-size: .77rem;
    color: var(--g600)
}

.po-price {
    margin-left: auto;
    font-weight: 900;
    font-size: .95rem;
    color: var(--blue);
    white-space: nowrap
}

/* ──────────────────────────────────────────────────────────────────────
   RESPONSIVE — portal layout collapses
────────────────────────────────────────────────────────────────────── */
@media(max-width:768px) {
    .portal-wrap {
        grid-template-columns: 1fr
    }

    .portal-side {
        display: none
    }

    .mobile-tabs {
        display: grid
    }

    .portal-body {
        padding-bottom: 80px
    }

    /* space for tab bar */
    .hamburger {
        display: block
    }

    .nav-links .nav-hide {
        display: none
    }

    .nav-divider {
        display: none
    }

    /* above mobile tabs when portal visible */
}

@media(max-width:480px) {
    .plans-wrap {
        max-width: 100%
    }

    .plan-card {
        padding: 24px 20px
    }

    .ctable th,
    .ctable td {
        padding: 10px 10px
    }
}

/* Utility */
.gap-2 {
    gap: 8px
}

.gap-3 {
    gap: 12px
}

.mt-3 {
    margin-top: 12px
}

.mt-4 {
    margin-top: 16px
}

.mt-6 {
    margin-top: 24px
}

.mb-3 {
    margin-bottom: 12px
}

.flex {
    display: flex
}

.items-c {
    align-items: center
}

.jc-sb {
    justify-content: space-between
}

.fw {
    flex-wrap: wrap
}

.text-c {
    text-align: center
}

.hidden {
    display: none !important
}

/* ═══════════════════════════════════════════════════════════════════════
   ANIMATION LAYER — eye-catching micro-interactions & reveals
═══════════════════════════════════════════════════════════════════════ */

/* — Keyframes — */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(.88) translateY(14px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroFloat1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(52px, -40px) scale(1.09);
    }

    66% {
        transform: translate(-30px, 24px) scale(.94);
    }
}

@keyframes heroFloat2 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-44px, 30px) rotate(160deg);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulseBorder {

    0%,
    100% {
        box-shadow: 0 0 0 3px rgba(27, 79, 216, .10), var(--sh-md);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(59, 114, 246, .15), 0 0 36px rgba(59, 114, 246, .10), var(--sh-lg);
    }
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes rippleOut {
    to {
        transform: scale(4.5);
        opacity: 0;
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(.4);
    }

    70% {
        transform: scale(1.1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmerBar {
    0% {
        background-position: -600px 0;
    }

    100% {
        background-position: 600px 0;
    }
}

/* — Hero animated orbs — */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .15;
    pointer-events: none;
    will-change: transform;
}

.hero-orb-1 {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, var(--purple), transparent 70%);
    top: -200px;
    left: -120px;
    animation: heroFloat1 22s ease-in-out infinite;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--teal), transparent 70%);
    bottom: -140px;
    right: -60px;
    animation: heroFloat2 26s ease-in-out infinite;
}

.hero-orb-3 {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, var(--blue-mid), transparent 70%);
    top: 35%;
    left: 58%;
    animation: heroFloat1 32s ease-in-out infinite reverse;
}

/* — Animated gradient hero headline — */
.hero h1 em {
    background: linear-gradient(90deg,
            var(--blue-light) 0%,
            var(--teal) 30%,
            var(--purple) 60%,
            var(--blue-light) 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s linear infinite;
}

/* — Eyebrow badge gentle float — */
.hero .eyebrow {
    animation: floatBadge 3.8s ease-in-out infinite;
}

/* — Plan card stagger reveal — */
.plan-card {
    opacity: 0;
    transform: translateY(20px) scale(.98);
    transition: opacity .5s cubic-bezier(.16, 1, .3, 1),
        transform .5s cubic-bezier(.16, 1, .3, 1),
        box-shadow var(--t),
        border-color var(--t);
}

.plan-card.card-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.plan-card.card-visible:hover {
    transform: translateY(-5px) scale(1.013) !important;
    box-shadow: 0 18px 56px rgba(0, 0, 0, .16) !important;
    border-color: var(--g300) !important;
}

.plan-card.card-visible.featured:hover {
    border-color: var(--blue-mid) !important;
    transform: translateY(-6px) scale(1.018) !important;
}

/* — Featured card animated glow — */
.plan-card.featured.card-visible {
    animation: pulseBorder 3.4s ease-in-out infinite;
}

/* — Price amount flip — */
.plan-amt {
    display: inline-block;
    transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), opacity .16s ease;
}

.plan-amt.flipping {
    transform: translateY(-14px) scale(.8);
    opacity: 0;
}

/* — Button ripple + press — */
.btn {
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(.967) !important;
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .28);
    transform: scale(0);
    animation: rippleOut .6s ease-out forwards;
    pointer-events: none;
    z-index: 0;
}

/* — Scroll reveal — */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .6s cubic-bezier(.16, 1, .3, 1),
        transform .6s cubic-bezier(.16, 1, .3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* — Save chip pop — */
.save-chip {
    display: inline-block;
    animation: popIn .45s cubic-bezier(.34, 1.56, .64, 1) both;
    animation-delay: .85s;
    opacity: 0;
    animation-fill-mode: both;
}

/* — Modal scale-bounce — */
.modal-box {
    animation: scaleIn .3s cubic-bezier(.34, 1.56, .64, 1) both;
}

/* — Alert slide down — */
.alert {
    animation: slideDown .42s cubic-bezier(.16, 1, .3, 1) both;
}

/* — FAQ smooth open via max-height — */
.faq-a {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height .38s cubic-bezier(.4, 0, .2, 1),
        padding .38s cubic-bezier(.4, 0, .2, 1);
}

.faq-item.open .faq-a {
    max-height: 500px;
    padding-bottom: 18px;
}

/* — Input focus glow — */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 114, 246, .2);
    transition: box-shadow .2s ease, border-color .2s ease;
}

/* — Card entry for portal sections — */
.sc {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s cubic-bezier(.16, 1, .3, 1),
        transform .5s cubic-bezier(.16, 1, .3, 1);
}

.sc.card-visible {
    opacity: 1;
    transform: none;
}

/* — Metric value count-up flash — */
.mv.counting {
    animation: countUp .45s cubic-bezier(.16, 1, .3, 1) both;
}

/* — Confetti canvas — */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

/* — Provisioning progress bar shimmer — */
.prov-progress-inner {
    transition: width 1.4s cubic-bezier(.4, 0, .2, 1);
    background: linear-gradient(90deg,
            var(--blue) 0%,
            var(--blue-mid) 50%,
            var(--teal) 100%);
    background-size: 600px 100%;
    animation: shimmerBar 2s linear infinite;
}

/* — Checkout card float in — */
.card {
    animation: scaleIn .36s cubic-bezier(.34, 1.56, .64, 1) both;
}

/* — Step indicator pulse — */
.si-dot.now {
    animation: pulseBorder 1.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
    }

    .hero-orb,
    .btn-ripple,
    #confetti-canvas {
        display: none !important;
    }
}

/* ══════════════════════════════════════════════════
           MARKETING INTEGRATION — namespaced with mktg-
           Tokens, helpers, and component styles
        ══════════════════════════════════════════════════ */

/* ─── Hero 2-column grid (marketing context) ─── */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 32px;
}

.hero-grid>.mktg-hero-left {
    text-align: left;
}

.micro-proof-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    max-width: 340px;
    margin-top: 20px;
}

.micro-stat {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(140, 188, 255, .18);
    border-radius: 14px;
    padding: 18px 14px;
    text-align: center;
}

.micro-stat.accent {
    background: rgba(255, 122, 34, .12);
    border-color: rgba(255, 122, 34, .28);
}

.stat-num {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 11px;
    color: #9ab5d4;
    text-transform: uppercase;
    letter-spacing: .06em;
}

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

    .hero-grid>.mktg-hero-left {
        text-align: center;
    }

    .hero-grid>.mktg-hero-left .micro-proof-grid {
        margin-left: auto;
        margin-right: auto;
    }
}

/* CSS tokens added for marketing sections */
:root {
    --accent: #ff7a22;
    --accent-2: #8cbcff;
    --container: 1140px;
    --g600: #4b5970;
    --radius-lg: 18px;
    --radius-xl: 26px;
    --bg: #071831;
    --white: #ffffff;
    --muted: #7e94b3;
    --light: #eef4fd;
    --line: rgba(255, 255, 255, .1);
    --ok: #22c55e;
    --shadow: 0 24px 64px rgba(7, 24, 49, .6);
}

.mktg-section,
.mktg-cta-band {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Container helper */
.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(18px, 5vw, 60px);
}

/* Section helpers */
.mktg-section {
    padding: clamp(56px, 8vw, 104px) 0;
}

.mktg-section-light {
    background: #f5f8ff;
}

/* Eyebrow label */
.mktg-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(255, 122, 34, .08);
    border: 1px solid rgba(255, 122, 34, .22);
    border-radius: 100px;
    padding: 4px 12px;
}

/* Eyebrow badge variant for dark-background sections */
.mktg-eyebrow-dark {
    background: rgba(140, 188, 255, .14);
    border-color: rgba(140, 188, 255, .24);
    color: #dbe9ff;
}

/* ─── Benefit grid ─── */
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.benefit-card {
    background: #fff;
    border: 1px solid #e1e8f5;
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: 0 2px 12px rgba(15, 32, 64, .06);
}

.benefit-icon {
    font-size: 28px;
    margin-bottom: 14px;
    line-height: 1;
}

.benefit-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f2040;
    margin: 0 0 10px;
}

.benefit-card p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--g600);
    margin: 0;
}

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

/* ─── ROI section two-col layout ─── */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

@media (max-width: 860px) {
    .two-col {
        grid-template-columns: 1fr;
    }
}

/* Value list */
.value-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.value-item strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #edf4ff;
    margin-bottom: 8px;
}

.value-item span {
    font-size: 15px;
    line-height: 1.7;
    color: #b8cce8;
}

/* ROI card */
.mktg-roi-card {
    background: #fff;
    border: 1px solid #e1e8f5;
    border-radius: var(--radius-xl);
    padding: 32px 28px;
}

.mktg-roi-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--g900);
    margin: 0 0 8px;
}

.mktg-roi-card>p {
    font-size: 14px;
    color: var(--g500);
    margin: 0 0 20px;
    line-height: 1.6;
}

.mktg-input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 24px;
}

.mktg-input-grid .field {
    display: flex;
    flex-direction: column;
}

.mktg-input-grid .field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--g700);
    margin-bottom: 6px;
    min-height: 2.75em;
    line-height: 1.35;
}

.mktg-input-grid .field input {
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: var(--g900);
    font-size: 15px;
    padding: 9px 12px;
    font-family: inherit;
}

.mktg-input-grid .field input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.mktg-roi-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.mktg-roi-metric {
    background: #eef2ff;
    border: 1px solid #e1e8f5;
    border-radius: 12px;
    padding: 18px 14px;
    text-align: center;
}

.mktg-roi-metric .num {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: var(--blue);
    line-height: 1;
    margin-bottom: 6px;
}

.mktg-roi-metric .meta {
    font-size: 12px;
    color: var(--g500);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.mktg-roi-summary {
    background: rgba(255, 122, 34, .07);
    border: 1px solid rgba(255, 122, 34, .22);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.mktg-roi-summary strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #b84d0a;
    margin-bottom: 5px;
}

.mktg-roi-summary span {
    font-size: 13px;
    color: var(--g600);
    line-height: 1.55;
}

.mktg-roi-note {
    font-size: 12.5px;
    color: var(--g500);
    margin: 0;
    line-height: 1.6;
}

.mktg-roi-card .hint {
    color: var(--g400);
}

#mktg-roi {
    overflow: hidden;
    background: #f5f8ff;
    color: var(--g900);
}

#mktg-roi .mktg-roi-intro {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

#mktg-roi .mktg-roi-intro h2 {
    margin: 14px 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
    letter-spacing: -.03em;
    color: var(--g900);
}

#mktg-roi .mktg-roi-intro p {
    max-width: 72ch;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.7;
    color: var(--g600);
}

#mktg-roi .mktg-eyebrow-dark {
    background: rgba(255, 122, 34, .08);
    border-color: rgba(255, 122, 34, .22);
    color: var(--accent);
}

#mktg-roi .mktg-roi-layout {
    display: flex;
    flex-direction: column;
    gap: clamp(28px, 4vw, 40px);
    max-width: 1040px;
    margin: 36px auto 0;
}

#mktg-roi .mktg-roi-points-wrap {
    padding-top: 4px;
}

#mktg-roi .mktg-roi-points-label {
    margin: 0 0 18px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--g500);
}

#mktg-roi .mktg-roi-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

#mktg-roi .mktg-roi-point {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px 24px;
    background: #fff;
    border: 1px solid #e1e8f5;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 12px rgba(15, 32, 64, .06);
}

#mktg-roi .mktg-roi-point-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 122, 34, .1);
    color: var(--accent);
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
}

#mktg-roi .mktg-roi-point-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--g900);
}

#mktg-roi .mktg-roi-point-body {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: var(--g600);
}

#mktg-roi .mktg-roi-card {
    box-shadow: 0 16px 42px rgba(15, 32, 64, .10);
}

@media (max-width: 860px) {
    .mktg-input-grid {
        grid-template-columns: 1fr;
    }

    .mktg-roi-results {
        grid-template-columns: 1fr 1fr;
    }

    #mktg-roi .mktg-roi-layout {
        max-width: 620px;
    }

    #mktg-roi .mktg-roi-points {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 560px) {
    .mktg-roi-results {
        grid-template-columns: 1fr;
    }

    .mktg-roi-summary {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ─── Workflow comparison grid ─── */
.workflow-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
}

.flow-card {
    background: #fff;
    border: 1px solid #e1e8f5;
    border-radius: var(--radius-lg);
    padding: 32px 28px;
}

.flow-card.bright {
    background: linear-gradient(135deg, #0f2040 0%, #1a3a6e 100%);
    border-color: rgba(140, 188, 255, .2);
}

.flow-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #0f2040;
    margin: 0 0 10px;
}

.flow-card.bright h3 {
    color: #fff;
}

.flow-card>p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--g600);
    margin: 0 0 20px;
}

.flow-card.bright>p {
    color: #a9b9d6;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    font-size: 13px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 100px;
}

.chip.bad {
    background: #f2e8e8;
    color: #8b3535;
    border: 1px solid #e8c8c8;
}

.chip.good {
    background: rgba(255, 122, 34, .14);
    color: #ff9c4a;
    border: 1px solid rgba(255, 122, 34, .28);
}

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

/* ─── Competitive table (mktg-compare) ─── */
#mktg-compare .compare-wrap {
    margin-top: 32px;
    overflow: hidden;
}

#mktg-compare .compare-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#mktg-compare table.compare {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 720px;
}

#mktg-compare table.compare thead th {
    background: #0f2040;
    color: #fff;
    padding: 14px 18px;
    text-align: left;
    font-weight: 700;
}

#mktg-compare table.compare thead th:first-child {
    border-radius: 10px 0 0 0;
}

#mktg-compare table.compare thead th:last-child {
    border-radius: 0 10px 0 0;
}

#mktg-compare table.compare tbody tr:nth-child(odd) {
    background: #f7f9ff;
}

#mktg-compare table.compare tbody tr:nth-child(even) {
    background: #fff;
}

#mktg-compare table.compare tbody th,
#mktg-compare table.compare tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid #e1e8f5;
    vertical-align: top;
    line-height: 1.5;
    text-align: left;
}

#mktg-compare table.compare tbody th {
    font-weight: 700;
    color: #0f2040;
    white-space: nowrap;
}

#mktg-compare table.compare td.bright-cell {
    background: rgba(255, 122, 34, .06);
    border-left: 3px solid var(--accent);
}

#mktg-compare table.compare td strong,
#mktg-compare table.compare tbody th strong {
    display: block;
    margin-bottom: 4px;
}

#mktg-compare .compare-note {
    margin-top: 16px;
    background: #f5f8ff;
    border-left: 4px solid var(--accent);
    border-radius: 0 8px 8px 0;
    padding: 14px 18px;
    font-size: 14px;
    color: var(--g600);
    line-height: 1.6;
}

/* ─── CTA band ─── */
.mktg-cta-band {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    padding: 40px 0;
}

.cta-band-btn {
    background: #fff;
    color: var(--navy) !important;
    border: 2px solid transparent;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .18);
}

.cta-band-btn:hover {
    background: var(--navy);
    color: #fff !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .28);
    transform: translateY(-1px);
}

.mktg-cta-band .cta-band .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.mktg-cta-band .cta-band strong {
    display: block;
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 800;
    color: #1e1202;
    margin-bottom: 4px;
}

.mktg-cta-band .cta-band span {
    font-size: 15px;
    color: rgba(30, 18, 2, .7);
}

@media (max-width: 860px) {
    .mktg-cta-band .cta-band .inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ─── Landing page polish ─── */
#pg-plans {
    --pg-section-y: clamp(64px, 8vw, 96px);
    --pg-block-gap: clamp(40px, 5vw, 56px);
    --pg-intro-gap: clamp(36px, 4.5vw, 48px);
}

#pg-plans .hero {
    text-align: center;
    padding-top: var(--pg-section-y);
    padding-bottom: clamp(40px, 5vw, 64px);
}

#pg-plans .hero-grid {
    grid-template-columns: minmax(0, 760px);
    justify-content: center;
    gap: 0;
    margin-bottom: 0;
}

#pg-plans .hero-grid>.mktg-hero-left {
    text-align: center;
}

#pg-plans .hero h1 {
    max-width: 680px;
    margin-inline: auto;
    margin-bottom: 18px;
}

#pg-plans .hero .lead {
    max-width: 700px;
    margin: 0 auto;
}

#pg-plans .hero .lead+.lead {
    margin-top: 14px;
}

#pg-plans .hero .lead:last-of-type {
    margin-bottom: 0;
}

#pg-plans .micro-proof-grid {
    max-width: 430px;
    margin-top: 22px;
    margin-left: auto;
    margin-right: auto;
}

#pg-plans .plans-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    gap: clamp(24px, 3vw, 32px);
    max-width: 1160px;
    margin: var(--pg-intro-gap) auto 0;
    align-items: stretch;
}

#pg-plans .plan-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: clamp(26px, 3vw, 34px);
    border-width: 1px;
    box-shadow: 0 18px 48px rgba(7, 24, 49, .12);
}

#pg-plans .plan-cta {
    margin-top: auto;
    padding-top: 8px;
}

#pg-plans .plan-card.featured {
    box-shadow: 0 0 0 3px rgba(27, 79, 216, .12), 0 22px 56px rgba(7, 24, 49, .18);
}

#pg-plans .plan-cta-note {
    min-height: 0;
}

#pg-plans .btn-lg {
    font-weight: 700;
    letter-spacing: .01em;
    border-radius: var(--r8);
}

#pg-plans .btn-primary.btn-lg {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(27, 79, 216, .35);
}

#pg-plans .btn-primary.btn-lg:hover {
    background: linear-gradient(135deg, var(--blue-mid) 0%, #5B9BFF 100%);
    box-shadow: 0 6px 20px rgba(27, 79, 216, .45);
    transform: translateY(-1px);
}

#pg-plans .btn-outline.btn-lg {
    border-width: 1.5px;
    font-weight: 600;
    color: var(--g700);
    border-color: var(--g300);
    background: var(--g50);
}

#pg-plans .btn-outline.btn-lg:hover {
    background: var(--g100);
    border-color: var(--g400);
    color: var(--g900);
    transform: translateY(-1px);
}

#pg-plans .plan-tag {
    min-height: 0;
    margin-bottom: 16px;
}

#pg-plans .plan-price {
    min-height: 0;
    margin-bottom: 18px;
}

#pg-plans .plan-card:not(.featured) .plan-amt {
    font-size: clamp(1.7rem, 4vw, 2.15rem);
}

#pg-plans .plan-features {
    flex: 1;
    gap: 10px;
}

/* Plans page uses <span class="fc"> in markup; signup uses li::before only */
#pg-plans .plan-features li {
    padding-left: 0;
}

#pg-plans .plan-features li::before {
    content: none;
}

#pg-plans .trust-strip {
    max-width: 1320px;
    margin: var(--pg-intro-gap) auto 0;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 999px;
    background: rgba(3, 10, 28, .34);
}

/* Centered section intros — consistent across marketing blocks */
#pg-plans .mktg-section-head {
    text-align: center;
    max-width: 820px;
    margin: 0 auto var(--pg-intro-gap);
}

#pg-plans .mktg-section-head .mktg-eyebrow {
    margin-bottom: 12px;
}

#pg-plans .mktg-section-head>p,
#pg-plans .mktg-section-head .sub,
#pg-plans .compare .sub {
    max-width: 72ch;
    margin-inline: auto;
}

#pg-plans .mktg-section {
    padding-block: var(--pg-section-y);
}

#pg-plans .benefit-grid,
#pg-plans .workflow-grid,
#pg-plans #mktg-compare .compare-wrap {
    margin-top: 0;
}

#pg-plans .benefit-card,
#pg-plans .flow-card,
#pg-plans .mktg-roi-card {
    box-shadow: 0 16px 42px rgba(15, 32, 64, .08);
}

/* Consistent section intro spacing (replaces inline styles in plans.html) */
#pg-plans .mktg-section-head h2 {
    margin: 12px auto 14px;
    max-width: min(680px, 100%);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: -.03em;
    color: #0f2040;
}

/* Section headlines: explicit 2-line / 1-line layout at desktop (avoids awkward auto-wrap) */
#pg-plans .mktg-headline-2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: none;
}

#pg-plans .mktg-headline-2__line {
    display: block;
}

#pg-plans .mktg-headline-1,
#pg-plans #mktg-roi .mktg-roi-intro .mktg-headline-1 {
    max-width: none;
}

@media (min-width: 768px) {
    #pg-plans .mktg-headline-2__line {
        white-space: nowrap;
    }

    #pg-plans .mktg-headline-1,
    #pg-plans #mktg-roi .mktg-roi-intro .mktg-headline-1 {
        white-space: nowrap;
    }
}

#pg-plans .mktg-section-head>p,
#pg-plans .mktg-section-head .sub {
    font-size: 17px;
    line-height: 1.7;
    color: var(--g600);
    margin: 0 auto;
}

#pg-plans section.compare {
    padding-block: var(--pg-section-y);
}

#pg-plans section.compare .mktg-section-head h2 {
    max-width: none;
}

#pg-plans #mktg-compare .compare-scroll {
    max-width: 1040px;
    margin-inline: auto;
}

#pg-plans section.compare .compare-scroll {
    max-width: 920px;
    margin-inline: auto;
}

#pg-plans #mktg-roi .mktg-roi-intro {
    margin-bottom: var(--pg-intro-gap);
}

#pg-plans #mktg-roi .mktg-roi-layout {
    margin-top: 0;
}

#pg-plans .mktg-cta-band {
    padding-block: var(--pg-section-y);
}

#pg-plans .mktg-cta-band .cta-band .inner {
    justify-content: center;
    text-align: center;
}

#pg-plans #mktg-compare .compare-note {
    max-width: 1040px;
    margin-inline: auto;
    text-align: left;
    border-left: none;
    border-radius: var(--radius-lg);
    padding: 18px 22px;
}

#pg-plans #mktg-compare .compare-note p {
    margin: 0;
    line-height: 1.6;
}

#pg-plans #mktg-compare .compare-note p+p {
    margin-top: 0;
}

/* ── FAQ layout ── */
.faq-wrap {
    background: #f5f8ff;
}

.faq-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--pg-section-y, clamp(56px, 8vw, 104px)) clamp(16px, 5vw, 60px);
}

#pg-plans .faq-wrap .faq-inner {
    padding-block: var(--pg-section-y);
}

.faq-header {
    text-align: center;
    margin-bottom: 52px;
}

.faq-header h2 {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 900;
    letter-spacing: -.03em;
    color: #0f2040;
    margin: 10px 0 8px;
}

.faq-sub {
    font-size: 15px;
    color: var(--g500);
    margin: 0;
}

.faq-sub a {
    color: var(--blue-mid);
    font-weight: 600;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: start;
    max-width: 720px;
    margin-inline: auto;
}

.faq-category {
    margin-bottom: 40px;
}

.faq-cat-label {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--accent);
    padding-bottom: 10px;
    margin-bottom: 2px;
    border-bottom: 2px solid var(--g200);
}

/* Override global faq max-width for the new layout */
#pg-plans .faq {
    display: none;
}

@media (max-width: 860px) {
    #pg-plans .hero {
        text-align: center;
    }

    #pg-plans .hero .lead {
        margin-inline: auto;
    }

    #pg-plans .plans-wrap {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        max-width: 480px;
    }

    #pg-plans .plan-card {
        display: flex;
        flex-direction: column;
        grid-row: auto;
    }

    #pg-plans .trust-strip {
        border-radius: 24px;
        flex-wrap: wrap;
    }
}

/* ──────────────────────────────────────────────────────────────────────
   ELEGANT STEP REFINEMENTS — provisioning, checkout-return, setup-complete
   Override the heavy all-caps typographic treatment for cleaner flow pages.
────────────────────────────────────────────────────────────────────── */

/* Remove uppercase from provisioning status steps */
#prov-card .pstep-title,
#prov-card .pstep-copy,
.checkout-steps .pstep-title,
.checkout-steps .pstep-copy {
    text-transform: none;
    letter-spacing: normal;
}

#prov-card .pstep-title,
.checkout-steps .pstep-title {
    font-weight: 600;
    font-size: .9rem;
    color: var(--g800);
    line-height: 1.4;
}

#prov-card .pstep-copy,
.checkout-steps .pstep-copy {
    font-weight: 500;
    font-size: .78rem;
}

/* Stack title + copy vertically (remove the awkward side-by-side grid) */
#prov-card .pstep-label,
.checkout-steps .pstep-label {
    grid-template-columns: 1fr;
    gap: 2px;
}

/* Remove the bullet "·" prefix in stacked layout */
#prov-card .pstep-copy::before,
.checkout-steps .pstep-copy::before {
    content: none;
}

/* Tighter step padding in provisioning card */
#prov-card .pstep {
    padding: 11px 14px;
    gap: 12px;
}

#prov-card .psteps {
    gap: 8px;
    margin-top: 20px;
}

/* Hide the progress bar after provisioning is finished */
#prov-card[data-status="succeeded"] .prov-bar-wrap,
#prov-card[data-status="failed"] .prov-bar-wrap {
    display: none;
}

/* Refined SVG-backed success / state icon */
.success-icon-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--green-bg);
    border: 2px solid var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--green);
    flex-shrink: 0;
}

.success-icon-ring.icon-fail {
    background: var(--red-bg);
    border-color: var(--red);
    color: var(--red);
}

.success-icon-ring svg {
    display: block;
}

/* Setup-complete success card — slightly wider than default .card-lg for step copy */
.setup-complete-card {
    max-width: 660px;
}

/* Setup-complete numbered steps */
.setup-steps {
    text-align: left;
    margin: 20px 0;
    border: 1px solid var(--g200);
    border-radius: var(--r12);
    overflow: hidden;
}

.setup-step {
    padding: 15px 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--g50);
}

.setup-step+.setup-step {
    border-top: 1px solid var(--g200);
}

.setup-step-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--blue-bg);
    color: var(--blue);
    font-weight: 800;
    font-size: .83rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.setup-step-content {
    flex: 1;
    min-width: 0;
}

.setup-step-title {
    font-weight: 700;
    font-size: .92rem;
    color: var(--g900);
    line-height: 1.4;
    margin-bottom: 3px;
}

.setup-step-body {
    font-size: .83rem;
    color: var(--g600);
    line-height: 1.55;
}

/* ── Skip-to-content link (accessibility) ── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 8px;
    z-index: 10000;
    background: var(--navy);
    color: #fff;
    padding: 10px 20px;
    border-radius: 0 0 var(--r8) var(--r8);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: top .15s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--blue-light);
    outline-offset: 2px;
}