:root {
    --bg: #101010;
    --card: #1a1a1a;
    --border: #2a2a2a;
    --accent: #a8c1ff;
    --accent-soft: rgba(168, 193, 255, 0.12);
    --text: #ffffff;
    --text-soft: #e0e0e0;
    --muted: #888888;
    --circle-teal: #4ecdc4;
    --circle-gold: #ffe66d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
}

.bg-circles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.14;
}

.circle-1 {
    width: 220px;
    height: 220px;
    background: var(--accent);
    top: 80px;
    left: -60px;
}

.circle-2 {
    width: 160px;
    height: 160px;
    background: var(--circle-teal);
    top: 220px;
    right: -40px;
}

.circle-3 {
    width: 190px;
    height: 190px;
    background: var(--circle-gold);
    bottom: 120px;
    left: 40px;
}

.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Header */
.site-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}

.logo {
    text-decoration: none;
    color: inherit;
    justify-self: start;
}

.wordmark {
    display: inline-block;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--text);
    text-shadow: 0 0 18px rgba(168, 193, 255, 0.35);
}

.site-nav {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    justify-content: center;
    justify-self: center;
}

.site-nav a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.site-nav a:hover {
    color: var(--accent);
}

.header-actions {
    justify-self: end;
}

.header-actions [hidden],
.nav-login[hidden],
.header-user[hidden] {
    display: none !important;
}

.nav-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(168, 193, 255, 0.4);
    background: var(--accent-soft);
    color: var(--accent);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.nav-login:hover {
    border-color: var(--accent);
    background: rgba(168, 193, 255, 0.18);
    color: var(--text);
}

.header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
}

.header-user-email {
    font-size: 0.85rem;
    color: var(--muted);
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-signout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-soft);
    font-size: 0.88rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.nav-signout:hover {
    border-color: rgba(168, 193, 255, 0.45);
    color: var(--accent);
    background: var(--accent-soft);
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 280px);
    align-items: center;
    gap: 48px;
    padding: 64px 0 56px;
    max-width: 960px;
    margin: 0 auto;
}

.hero-copy {
    text-align: left;
}

.hero-kicker {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 2.85rem);
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.hero-lead {
    font-size: 1.08rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 0;
    max-width: 34ch;
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
}

.store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 8px 14px 8px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #161616;
    color: var(--text-soft);
    user-select: none;
}

.store-badge-soon {
    opacity: 0.72;
    cursor: default;
}

.store-badge-icon {
    flex-shrink: 0;
    color: var(--text);
}

.store-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    text-align: left;
}

.store-badge-eyebrow {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.store-badge-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-soft);
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 220px;
    padding: 16px 36px;
    border-radius: 30px;
    background: var(--accent);
    color: #101010;
    font-size: 1.08rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    box-shadow: 0 8px 20px rgba(168, 193, 255, 0.28);
    animation:
        hero-cta-enter 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both,
        hero-cta-pulse 2s ease-in-out 0.9s infinite;
}

.hero-cta:hover {
    filter: brightness(1.05);
}

.hero-cta-arrow {
    flex-shrink: 0;
    color: #101010;
}

@keyframes hero-cta-enter {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes hero-cta-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 20px rgba(168, 193, 255, 0.28);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 10px 28px rgba(168, 193, 255, 0.4);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-cta {
        animation: none;
    }
}

.hero-cta-secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(168, 193, 255, 0.45);
}

.hero-cta-secondary:hover {
    filter: none;
    border-color: var(--accent);
    background: var(--accent-soft);
}

/* Phone shell */
.phone-shell {
    width: min(100%, 240px);
    margin: 0 auto;
    background: #0d0d0d;
    border-radius: 36px;
    padding: 8px;
    box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.08) inset,
        0 40px 80px -28px rgba(0, 0, 0, 0.85),
        0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone-shell-lg {
    width: min(100%, 268px);
    border-radius: 40px;
    padding: 9px;
}

.phone-shell img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 28px;
    background: #151515;
}

.phone-shell-lg img {
    border-radius: 31px;
}

/* Showcase (screenshot + copy) */
.showcase-section {
    padding: 24px 0 16px;
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.showcase-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 240px);
    align-items: center;
    gap: 40px;
    max-width: 880px;
    margin: 0 auto;
    width: 100%;
}

.showcase-row-reverse {
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
}

.showcase-row-reverse .showcase-copy {
    order: 2;
}

.showcase-row-reverse .showcase-visual {
    order: 1;
}

.showcase-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.showcase-copy h2 {
    font-size: clamp(1.45rem, 3.5vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 12px;
}

.showcase-copy p {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.65;
    max-width: 36ch;
}

.showcase-visual {
    display: flex;
    justify-content: center;
}

/* Trust / extras */
.trust-section {
    padding: 56px 0 24px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 8px;
}

.trust-section .section-lead {
    margin-bottom: 28px;
}

.trust-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.trust-card:hover {
    border-color: rgba(168, 193, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -18px rgba(168, 193, 255, 0.35);
}

.trust-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.trust-card h3 {
    font-size: 1.02rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.trust-card p {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.65;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal-delay-1 {
    transition-delay: 0.12s;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Sections */
.section-title {
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-lead {
    text-align: center;
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto 40px;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Who it's for */
.who-section {
    padding: 56px 0;
}

.who-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.who-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.who-card:hover {
    border-color: rgba(168, 193, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -18px rgba(168, 193, 255, 0.35);
}

.who-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(168, 193, 255, 0.2), rgba(168, 193, 255, 0.06));
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: inset 0 0 0 1px rgba(168, 193, 255, 0.18);
}

.who-card-wide {
    grid-column: 1 / -1;
}

.who-card h3 {
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 8px;
    font-weight: 600;
}

.who-card p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.65;
}

/* Login page */
.login-main {
    padding: 40px 0 48px;
    max-width: 520px;
    margin: 0 auto;
}

.login-hero {
    text-align: center;
    margin-bottom: 28px;
}

.login-title {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.login-lead {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.6;
}

.login-account-bar {
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.login-account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.login-pricing-link {
    min-width: 0;
    padding: 10px 18px;
    font-size: 0.92rem;
    animation: none;
}

.closer-section {
    text-align: center;
    padding: 48px 24px;
    margin: 8px 0 48px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.closer-section .section-title {
    margin-bottom: 10px;
}

.closer-copy {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 auto 22px;
    max-width: 480px;
}

.closer-section .hero-cta {
    margin-bottom: 28px;
    animation: none;
}

.closer-support {
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.closer-support-label {
    color: var(--muted);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.contact-lead {
    color: var(--muted);
    margin-bottom: 16px;
    font-size: 1rem;
}

.contact-email {
    display: inline-block;
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
}

.contact-email:hover {
    text-decoration: underline;
}

.contact-phone-wrap {
    margin-top: 12px;
}

.contact-phone {
    display: inline-block;
    color: var(--text-soft);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
}

.contact-phone:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 32px 0 48px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
}

.site-footer a {
    color: var(--accent);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-dot {
    margin: 0 8px;
}

/* Legal pages (privacy, terms) */
main.legal-main {
    padding: 2rem 0 3rem;
    max-width: 720px;
}

main.legal-main h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

main.legal-main h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--accent);
}

main.legal-main p,
main.legal-main li {
    color: var(--text-soft);
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

main.legal-main ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

main.legal-main a {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 900px) {
    .site-header {
        grid-template-columns: 1fr auto;
        row-gap: 14px;
    }

    .site-nav {
        grid-column: 1 / -1;
        order: 3;
        justify-self: stretch;
        justify-content: flex-start;
        gap: 16px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
        max-width: 560px;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        align-items: center;
    }

    .store-badges {
        justify-content: center;
        width: 100%;
    }

    .showcase-row,
    .showcase-row-reverse {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
        max-width: 420px;
    }

    .showcase-row-reverse .showcase-copy,
    .showcase-row-reverse .showcase-visual {
        order: unset;
    }

    .showcase-copy p {
        margin-left: auto;
        margin-right: auto;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .site-header {
        grid-template-columns: 1fr auto;
    }

    .site-nav {
        gap: 14px;
    }

    .header-user-email {
        display: none;
    }

    .hero {
        padding-top: 48px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta {
        width: 100%;
        min-width: 0;
        padding: 16px 24px;
        font-size: 1.05rem;
    }

    .store-badge {
        flex: 1 1 calc(50% - 5px);
        justify-content: center;
    }

    .who-grid {
        grid-template-columns: 1fr;
    }

    .who-card-wide {
        grid-column: auto;
    }

    .phone-shell,
    .phone-shell-lg {
        width: min(100%, 220px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Billing page */
.billing-main {
    padding: 32px 0 40px;
    max-width: 520px;
    margin: 0 auto;
}

.billing-account-bar,
.billing-account-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 auto 28px;
    padding: 14px 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.billing-account-panel {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
}

.billing-account-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
}

.billing-account-panel[hidden],
.billing-account-bar[hidden],
.billing-auth-panel[hidden],
.billing-summary[hidden],
.billing-summary-inner[hidden],
#plans-wrap[hidden] {
    display: none !important;
}

.billing-account-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.billing-account-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.billing-account-info strong {
    color: var(--text);
    font-size: 0.98rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.billing-account-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 6px;
}

.billing-account-details span {
    font-size: 0.88rem;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.billing-account-details span[hidden] {
    display: none !important;
}

.billing-signout-btn {
    flex-shrink: 0;
    padding: 10px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.billing-signout-btn:hover {
    border-color: var(--accent);
}

.billing-auth-panel {
    max-width: 400px;
    margin: 28px auto 24px;
    padding: 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.billing-auth-panel.billing-auth-attention {
    animation: billing-shake 0.45s ease;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(168, 193, 255, 0.35);
}

@keyframes billing-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.billing-auth-copy {
    color: var(--muted);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.billing-oauth-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.billing-oauth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.billing-oauth-btn:hover {
    border-color: var(--accent);
}

.billing-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 6px 0 14px;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.billing-auth-divider::before,
.billing-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.billing-summary {
    max-width: 520px;
    margin: 0 auto 24px;
    padding: 20px 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.billing-summary-inner {
    padding: 18px;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.18);
}

.billing-summary-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
}

.billing-summary-header strong {
    font-size: 1.15rem;
    color: var(--text);
}

.billing-summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.billing-summary-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.billing-summary-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.billing-summary-item strong {
    color: var(--text);
    font-size: 0.95rem;
}

.billing-summary-note {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.4;
}

.billing-cancel-btn {
    margin-top: 16px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 24px;
    border: 1px solid rgba(231, 76, 60, 0.45);
    background: transparent;
    color: #e74c3c;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.billing-cancel-btn:hover:not(:disabled) {
    background: rgba(231, 76, 60, 0.08);
}

.billing-cancel-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.billing-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.billing-input {
    width: 100%;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
}

.billing-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 30px;
    background: var(--accent);
    color: #000;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    margin-top: 8px;
}

.billing-primary-btn:hover {
    filter: brightness(1.05);
}

.billing-primary-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.billing-error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 12px;
    text-align: center;
}

.billing-error.billing-error-banner {
    display: block;
    margin: 16px 0 0;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(231, 76, 60, 0.45);
    background: rgba(231, 76, 60, 0.12);
    color: #ff8f84;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
    text-align: left;
}

.billing-error.billing-error-banner[hidden] {
    display: none !important;
}

.billing-error.billing-error-attention {
    animation: billing-error-shake 0.55s ease;
}

@keyframes billing-error-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.paywall-stat-emphasize {
    font-weight: inherit;
}

/* App-matching paywall */
.paywall-hero {
    text-align: center;
    margin-bottom: 28px;
}

.paywall-headline {
    font-size: clamp(1.35rem, 3.2vw, 1.6rem);
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.4;
    animation: paywall-glow 4.4s ease-in-out infinite;
}

.paywall-subtext {
    font-size: 0.95rem;
    color: var(--muted);
    margin-top: 12px;
    line-height: 1.55;
    max-width: 38ch;
    margin-left: auto;
    margin-right: auto;
}

@keyframes paywall-glow {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; }
}

.paywall-bridge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 22px 0;
    padding: 0 8px;
}

.paywall-bridge-line {
    flex: 1;
    height: 1px;
    max-width: 72px;
    background: #2a3348;
}

.paywall-bridge-icons {
    display: flex;
    align-items: center;
    gap: 14px;
}

.paywall-bridge-icon {
    width: 38px;
    height: 38px;
    border-radius: 19px;
    background: #151b28;
    border: 1px solid #2a3348;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.paywall-plans {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.paywall-plan-card {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    border-radius: 12px;
    border-width: 1.5px;
    border-style: solid;
    padding: 16px 12px 16px 0;
    overflow: hidden;
    cursor: pointer;
    font: inherit;
    color: inherit;
    transition: transform 0.18s ease, opacity 0.15s ease, box-shadow 0.18s ease;
}

.paywall-plan-card:hover:not(:disabled) {
    transform: translateY(-5px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.paywall-plan-card:disabled {
    cursor: not-allowed;
}

.paywall-plan-locked {
    cursor: pointer;
}

.paywall-plan-current {
    box-shadow: 0 0 0 2px rgba(168, 193, 255, 0.35);
}

.paywall-plan-disabled {
    opacity: 0.55;
}

.paywall-plan-loading {
    opacity: 0.85;
}

.paywall-accent-bar {
    width: 4px;
    align-self: stretch;
    margin-right: 10px;
    border-radius: 0 2px 2px 0;
    flex-shrink: 0;
}

.paywall-plan-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.paywall-plan-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.paywall-plan-title-line {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.paywall-plan-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
}

.paywall-badge {
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.56rem;
    font-weight: 800;
    color: #101010;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: var(--accent);
}

.paywall-badge-current {
    background: #34d399;
    color: #06281c;
}

.paywall-badge-current[hidden] {
    display: none !important;
}

.paywall-stat {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #a8a8a8;
    line-height: 1.35;
}

.paywall-stat svg {
    flex-shrink: 0;
    margin-top: 0.15em;
}

.paywall-stat-text {
    flex: 1;
    min-width: 0;
}

.paywall-plan-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    margin-left: 6px;
    flex-shrink: 0;
}

.paywall-price {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
}

.paywall-price-unit {
    font-size: 0.62rem;
    font-weight: 600;
    color: #888;
    margin-top: 1px;
    margin-bottom: 6px;
}

.paywall-chevron {
    opacity: 0.95;
}

/* Starter — grey */
.paywall-plan-starter {
    background: #181818;
    border-color: #333333;
}
.paywall-plan-starter .paywall-accent-bar { background: #6b7280; }
.paywall-plan-starter .paywall-plan-icon {
    background: #252525;
    color: #6b7280;
}
.paywall-plan-starter .paywall-stat svg { color: #6b7280; }
.paywall-plan-starter .paywall-price,
.paywall-plan-starter .paywall-chevron { color: #6b7280; }

/* Growth — light blue (popular) */
.paywall-plan-growth {
    background: #121a28;
    border-color: var(--accent);
    border-width: 2px;
}
.paywall-plan-growth .paywall-accent-bar { background: var(--accent); }
.paywall-plan-growth .paywall-plan-icon {
    background: #1e2a42;
    color: var(--accent);
}
.paywall-plan-growth .paywall-stat svg { color: var(--accent); }
.paywall-plan-growth .paywall-price,
.paywall-plan-growth .paywall-chevron { color: var(--accent); }

/* Studio — soft purple */
.paywall-plan-studio {
    background: #1a1524;
    border-color: #5c4a7a;
}
.paywall-plan-studio .paywall-accent-bar { background: #c3a6ff; }
.paywall-plan-studio .paywall-plan-icon {
    background: #2a2238;
    color: #c3a6ff;
}
.paywall-plan-studio .paywall-stat svg { color: #c3a6ff; }
.paywall-plan-studio .paywall-price,
.paywall-plan-studio .paywall-chevron { color: #c3a6ff; }
.paywall-plan-studio .paywall-badge { background: #c3a6ff; }

.billing-plan-highlight {
    box-shadow: 0 0 0 2px rgba(168, 193, 255, 0.45);
}

.billing-footnote {
    text-align: center;
    color: #666;
    font-size: 0.7rem;
    line-height: 1.35;
    margin-bottom: 8px;
}

.billing-success-main {
    padding: 64px 0;
    display: flex;
    justify-content: center;
}

.billing-success-card {
    max-width: 480px;
    text-align: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 40px 28px;
}

.billing-success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

@media (min-width: 900px) {
    .billing-main {
        max-width: 640px;
    }

    .paywall-plans {
        gap: 18px;
    }

    .paywall-plan-card {
        padding: 22px 18px 22px 0;
        border-radius: 14px;
        border-width: 2px;
    }

    .paywall-plan-title {
        font-size: 1.2rem;
    }

    .paywall-stat {
        font-size: 0.92rem;
    }

    .paywall-stat-emphasize {
        font-weight: 800;
        color: var(--text);
    }

    .paywall-price {
        font-size: 1.35rem;
    }

    .paywall-plan-icon {
        width: 50px;
        height: 50px;
    }

    .paywall-plan-icon svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 640px) {
    .billing-account-panel-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .billing-signout-btn {
        align-self: stretch;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .paywall-plan-card {
        padding-right: 10px;
    }

    .paywall-stat {
        font-size: 0.7rem;
    }
}
