:root {
    --bg: #101010;
    --card: #1a1a1a;
    --border: #2a2a2a;
    --accent: #a8c1ff;
    --accent-soft: rgba(168, 193, 255, 0.12);
    --accent-deep: #7b9fff;
    --text: #ffffff;
    --text-soft: #e0e0e0;
    --muted: #888888;
}

* {
    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:
        radial-gradient(ellipse 90% 65% at 8% -8%, rgba(168, 193, 255, 0.2), transparent 56%),
        radial-gradient(ellipse 70% 50% at 100% 28%, rgba(123, 159, 255, 0.12), transparent 50%),
        radial-gradient(ellipse 65% 45% at 50% 105%, rgba(168, 193, 255, 0.09), transparent 55%),
        var(--bg);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
    min-width: 0;
}

/* Header */
.site-header {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(1040px, calc(100% - 28px));
    padding: 8px 10px 8px 18px;
    background: rgba(36, 41, 54, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(186, 200, 230, 0.32);
    border-radius: 999px;
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.48),
        0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.container {
    padding-top: 92px;
}

.logo {
    text-decoration: none;
    color: inherit;
    justify-self: start;
}

.wordmark {
    display: inline-block;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--text);
    text-shadow: 0 0 18px rgba(168, 193, 255, 0.35);
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(186, 200, 230, 0.28);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}

.nav-toggle-bars {
    display: block;
    width: 16px;
    height: 10px;
    background:
        linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
        linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat,
        linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
}

.site-nav.is-menu-open {
    display: flex !important;
    position: fixed !important;
    z-index: 500 !important;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 8px;
    background: rgba(36, 41, 54, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(186, 200, 230, 0.32);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.site-nav.is-menu-open a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: #f3f3f3;
}

.site-nav.is-menu-open .nav-menu-cta {
    display: block;
}

.site-nav.is-menu-open .nav-account-group {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
    margin-top: 4px;
}

.site-nav.is-menu-open .nav-menu-divider {
    width: auto;
    height: 1px;
    margin: 8px 10px;
}

.site-nav.is-menu-open .nav-account,
.site-nav.is-menu-open .nav-signout {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    text-align: left;
    color: #f3f3f3;
}

.site-nav {
    display: flex;
    flex: 1;
    gap: 22px;
    flex-wrap: wrap;
    justify-content: center;
    min-width: 0;
}

.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 {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--accent);
    color: #12141a;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
}

.nav-cta:hover {
    filter: brightness(1.06);
}

.nav-menu-cta {
    display: none;
}

.nav-account-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-account-group[hidden] {
    display: none !important;
}

.nav-menu-divider {
    width: 1px;
    align-self: stretch;
    background: rgba(255, 255, 255, 0.14);
}

.site-nav .nav-account,
.site-nav .nav-signout {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--text-soft);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
}

.site-nav .nav-account:hover,
.site-nav .nav-signout:hover {
    background: transparent;
    border: none;
    color: var(--accent);
}

.header-actions [hidden],
.nav-login[hidden],
.header-user[hidden],
.nav-account-group[hidden] {
    display: none !important;
}

/* Keep header chrome stable across navigations (session hint + auth) */
html.signed-in [data-auth-logged-out] {
    display: none !important;
}

html.signed-in [data-auth-logged-in] {
    display: flex !important;
}

html:not(.signed-in) [data-auth-logged-in] {
    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%;
}

.nav-account {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(168, 193, 255, 0.45);
    background: rgba(168, 193, 255, 0.14);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
}

.nav-account:hover {
    background: rgba(168, 193, 255, 0.24);
}

.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);
}

.scroll-top {
    position: fixed;
    right: 28px;
    bottom: 36px;
    z-index: 60;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    border: 1px solid #343b4d;
    background: #1b1e27;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.scroll-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top:hover {
    border-color: rgba(168, 193, 255, 0.45);
    background: #222633;
}

@media (prefers-reduced-motion: reduce) {
    .scroll-top {
        transition: none;
    }
}

/* 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(--text-soft);
    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;
}

a.store-badge {
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, opacity 0.2s;
}

a.store-badge:hover {
    border-color: rgba(168, 193, 255, 0.45);
    background: #1c1c1c;
    opacity: 1;
}

.store-badge-live .store-badge-eyebrow {
    color: var(--accent);
}

.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 0 0 1px rgba(168, 193, 255, 0.18),
        0 0 40px rgba(168, 193, 255, 0.12),
        0 40px 80px -28px rgba(0, 0, 0, 0.85);
}

.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: linear-gradient(165deg, rgba(168, 193, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1.5px solid rgba(168, 193, 255, 0.2);
    border-radius: 14px;
    padding: 22px;
    transition: border-color 0.2s, background 0.2s;
}

.trust-card:hover {
    border-color: rgba(168, 193, 255, 0.45);
    background: linear-gradient(165deg, rgba(168, 193, 255, 0.1), rgba(255, 255, 255, 0.03));
    transform: none;
    box-shadow: none;
}

.trust-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(168, 193, 255, 0.14);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: inset 0 0 0 1px rgba(168, 193, 255, 0.2);
}

.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;
    pointer-events: none;
    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;
    pointer-events: auto;
    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-title::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin: 14px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-deep), var(--accent));
}

.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: linear-gradient(165deg, rgba(168, 193, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1.5px solid rgba(168, 193, 255, 0.2);
    border-radius: 14px;
    padding: 24px;
    transition: border-color 0.2s, background 0.2s;
}

.who-card:hover {
    border-color: rgba(168, 193, 255, 0.45);
    background: linear-gradient(165deg, rgba(168, 193, 255, 0.1), rgba(255, 255, 255, 0.03));
    transform: none;
    box-shadow: none;
}

.who-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(168, 193, 255, 0.14);
    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.2);
}

.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-account-link,
.login-signout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    padding: 11px 18px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
}

.login-account-link {
    background: var(--accent);
    color: #101010;
    border: none;
}

.login-account-link:hover {
    filter: brightness(1.05);
}

.login-signout-btn {
    background: #3a1518;
    color: #ffd0d0;
    border: 1px solid #e06a6a;
}

.login-signout-btn:hover {
    background: #4a1c20;
    color: #fff;
}

.closer-section {
    text-align: center;
    padding: 36px 8px 8px;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.closer-section .section-title {
    margin-bottom: 8px;
    font-size: clamp(1.35rem, 3.5vw, 1.7rem);
}

.closer-section .section-title::after {
    margin-bottom: 4px;
}

.closer-copy {
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.5;
    margin: 0 auto 18px;
    max-width: 420px;
    text-wrap: balance;
}

.closer-section .hero-cta {
    margin-bottom: 18px;
    min-width: 0;
    padding: 14px 28px;
    animation: none;
}

.closer-support {
    padding-top: 0;
    border-top: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 10px;
}

.closer-support-label {
    color: var(--muted);
    margin: 0;
    font-size: 0.88rem;
    width: 100%;
}

.contact-lead {
    color: var(--muted);
    margin-bottom: 16px;
    font-size: 1rem;
}

.contact-email {
    display: inline-block;
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
}

.contact-email:hover {
    text-decoration: underline;
}

.contact-phone-wrap {
    margin-top: 0;
    display: inline;
}

.contact-phone-wrap::before {
    content: "·";
    margin-right: 10px;
    color: var(--muted);
}

.contact-phone {
    display: inline-block;
    color: var(--text-soft);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
}

.contact-phone:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 20px 0 28px;
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.site-footer p {
    margin: 0;
}

.site-footer p + p {
    margin-top: 6px;
}

.site-footer a {
    color: var(--text-soft);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--accent);
}

.error-main {
    text-align: center;
    padding: 72px 0 64px;
    max-width: 480px;
    margin: 0 auto;
}

.error-code {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.error-title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.error-copy {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.55;
    margin-bottom: 28px;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.error-actions .hero-cta {
    min-width: 0;
    animation: none;
}

.footer-dot {
    margin: 0 8px;
}

/* Android beta */
.beta-main {
    padding: 48px 0 56px;
    max-width: 640px;
    margin: 0 auto;
}

.beta-hero {
    margin-bottom: 36px;
}

.beta-hero .hero-title {
    font-size: clamp(2rem, 4.5vw, 2.5rem);
}

.beta-hero .hero-lead {
    max-width: 46ch;
}

.beta-actions {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 20px;
    margin-top: 24px;
}

.beta-actions .hero-cta {
    flex: 1 1 0;
    width: auto;
    max-width: none;
    min-width: 0;
    padding: 13px 20px;
    font-size: 1rem;
    background: var(--accent);
    color: #101010;
    border: none;
    transform: none;
    transform-origin: center;
    box-shadow: 0 6px 16px rgba(168, 193, 255, 0.22);
    animation: beta-cta-glow 2.8s ease-in-out infinite;
}

.beta-actions .hero-cta:first-child,
.beta-actions .hero-cta:last-child {
    transform-origin: center;
}

.beta-actions .hero-cta:hover {
    filter: brightness(1.05);
    background: var(--accent);
    color: #101010;
    animation-play-state: paused;
}

@keyframes beta-cta-glow {
    0%, 100% {
        box-shadow: 0 6px 16px rgba(168, 193, 255, 0.2);
    }
    50% {
        box-shadow: 0 8px 22px rgba(168, 193, 255, 0.34);
    }
}

.beta-section {
    margin-bottom: 32px;
}

.beta-section h2 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.beta-steps {
    list-style: none;
    display: grid;
    gap: 10px;
}

.beta-steps li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text-soft);
    font-size: 0.98rem;
    line-height: 1.55;
}

.beta-steps strong {
    color: var(--text);
    font-weight: 600;
}

.beta-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.beta-try {
    list-style: none;
    display: grid;
    gap: 8px;
    color: var(--text-soft);
}

.beta-try li {
    padding-left: 18px;
    position: relative;
    line-height: 1.55;
}

.beta-try li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.beta-closer {
    margin: 8px 0 28px;
    color: var(--text-soft);
    font-size: 1.05rem;
    line-height: 1.55;
    max-width: 36ch;
}

.beta-note {
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.6;
}

.beta-try a,
.beta-note a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 900px) {
    .beta-hero .hero-lead {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 640px) {
    .beta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .beta-actions .hero-cta {
        width: 100%;
        flex: none;
        padding: 12px 16px;
        font-size: 0.95rem;
        transform: none;
        transform-origin: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .beta-actions .hero-cta {
        animation: none;
    }
}

/* 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 {
        left: 8px !important;
        right: auto !important;
        width: calc(100% - 16px) !important;
        max-width: calc(100% - 16px) !important;
        min-width: 0 !important;
        transform: none !important;
        padding: 8px 8px 8px 14px;
        gap: 8px;
        box-sizing: border-box;
        overflow: visible;
        z-index: 1000;
    }

    .nav-toggle {
        display: inline-flex !important;
        position: relative;
        z-index: 2;
        order: 3;
        flex: 0 0 auto;
        width: auto;
        height: 40px;
        justify-content: center;
        align-items: center;
        gap: 8px;
        font-size: 0.85rem;
        padding: 0 12px;
        margin-left: 8px;
        touch-action: manipulation;
    }

    .header-actions {
        order: 2;
        margin-left: auto;
        min-width: 0;
        flex: 1 1 auto;
        justify-content: flex-end;
    }

    .nav-cta {
        display: none !important;
    }

    .site-header > .site-nav {
        display: none !important;
    }

    .site-header.is-open > .site-nav,
    .site-nav.is-menu-open {
        display: flex !important;
        position: fixed !important;
        top: 72px;
        left: 8px;
        right: 8px;
        width: auto !important;
        height: auto !important;
        overflow: visible;
        pointer-events: auto;
        z-index: 500 !important;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        z-index: 50;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 8px;
        background: rgba(36, 41, 54, 0.97);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border: 1px solid rgba(186, 200, 230, 0.32);
        border-radius: 18px;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    }

    .site-header.is-open {
        border-radius: 24px;
    }

    .site-header.is-open .site-nav {
        display: flex;
    }

    .site-nav a,
    .site-nav .nav-signout {
        padding: 11px 12px;
        border-radius: 12px;
    }

    .site-nav a:hover,
    .site-nav .nav-signout:hover {
        background: rgba(168, 193, 255, 0.1);
    }

    .site-nav .nav-account-group {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        width: 100%;
        margin-top: 4px;
    }

    .site-nav .nav-menu-divider {
        width: auto;
        height: 1px;
        margin: 8px 10px;
    }

    .nav-menu-cta {
        display: block;
    }

    .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) {
    .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;
    min-width: 0;
    margin: 0 auto;
}

.billing-manage-row {
    text-align: center;
    color: var(--text-soft);
    margin: -8px auto 24px;
}

.billing-manage-row a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.account-main {
    padding: 40px 0 56px;
    max-width: 640px;
    margin: 0 auto;
}

.account-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 14px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.account-card p {
    color: var(--text-soft);
    margin: 8px 0 14px;
}

.account-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.account-facts strong {
    display: block;
    margin-top: 4px;
    font-size: 0.98rem;
}

.account-note {
    color: var(--muted);
    margin-top: 14px;
}

.account-main .billing-account-panel {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
    border-color: #343b4d;
}

.account-main .billing-account-panel-top {
    background: rgba(168, 193, 255, 0.06);
    border-left: 3px solid var(--accent);
}

.account-main .billing-account-label,
.account-main .billing-summary-label,
.account-meta-label {
    color: #b7c9ff;
}

.account-main .billing-account-info strong,
.account-main .billing-summary-header strong {
    color: #ffffff;
    font-size: 1.2rem;
}

.account-meta {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-top: 8px;
}

.account-meta[hidden] {
    display: none !important;
}

.account-main .billing-summary-note {
    color: #ffffff;
}

.account-main .account-no-plan {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 22px 18px;
}

.account-main .account-no-plan-text {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.45;
}

.account-main .billing-account-details .account-meta-label {
    min-width: 0;
    color: #b7c9ff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.account-main .billing-account-details .account-meta-value {
    color: #f3f3f3;
    font-size: 0.98rem;
}

.account-main .billing-summary-inner {
    background: #12151c;
}

.account-main .billing-summary-item {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #2a3142;
}

.account-main .billing-summary-item strong {
    font-size: 1rem;
    text-align: right;
}

.account-status-ok {
    color: #7dcea0;
}

.account-status-due {
    color: #f3c14b;
}

.account-status-cancel {
    color: #ff8b8b;
}

.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-payment-due {
    margin-top: 16px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(243, 156, 18, 0.4);
    background: rgba(243, 156, 18, 0.1);
}

.billing-payment-due[hidden] {
    display: none !important;
}

.billing-payment-due-text {
    margin: 0;
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.45;
}

.billing-payment-due .billing-primary-btn {
    margin-top: 14px;
}

.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); }
}

/* App-matching paywall */
.paywall-hero {
    text-align: center;
    margin-bottom: 28px;
    width: 100%;
    max-width: 100%;
}

.paywall-headline {
    display: block;
    width: 100%;
    max-width: 100%;
    font-size: clamp(1.45rem, 5vw, 1.85rem);
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: break-word;
    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;
}

.plan-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.plan-panel {
    width: min(100%, 520px);
    border-radius: 22px;
    border: 1.5px solid #343b4d;
    padding: 28px 26px 24px;
    background: #161922;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
}

.plan-panel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.plan-panel-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #9aa6bd;
    margin-bottom: 6px;
}

.plan-panel-name {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: #ffffff;
}

.plan-panel-cost {
    text-align: right;
    flex-shrink: 0;
}

.plan-panel-price {
    display: block;
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.plan-panel-unit {
    display: block;
    margin-top: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #c8c8c8;
}

.plan-panel-unit[hidden] {
    display: none !important;
}

.plan-panel-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
    margin: 0 0 22px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.plan-panel-stat dt {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #c5d0e6;
    margin-bottom: 6px;
}

.plan-panel-stat dd {
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.03em;
}

.plan-panel-stat[hidden] {
    display: none !important;
}

.plan-panel-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 24px;
}

.plan-panel-points li {
    position: relative;
    padding-left: 26px;
    color: #e6e6e6;
    font-size: 0.95rem;
    line-height: 1.4;
}

.plan-panel-points li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #3dcc7a;
    font-weight: 700;
}

.plan-panel-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 14px 20px;
    border: none;
    border-radius: 14px;
    background: var(--accent);
    color: #12141a;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transition: filter 0.15s ease, opacity 0.15s ease;
    animation: plan-cta-pulse 2.4s ease-in-out infinite;
}

.plan-panel-cta:hover:not(:disabled) {
    filter: brightness(1.05);
    animation-play-state: paused;
}

.plan-panel-cta:disabled,
.plan-panel-cta.paywall-plan-loading,
.plan-panel-cta.paywall-plan-disabled {
    opacity: 0.7;
    cursor: not-allowed;
    animation: none;
}

.plan-panel-cta[hidden] {
    display: none !important;
}

@keyframes plan-cta-pulse {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: translateY(-2px) scale(1.015);
        box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32);
    }
}

@media (prefers-reduced-motion: reduce) {
    .plan-panel-cta {
        animation: none;
    }
}

/* Distinct plan themes — one flowing panel, different accent */
.plan-panel.is-starter {
    background: linear-gradient(165deg, #152024 0%, #12181c 100%);
    border-color: #3d7a7a;
}
.plan-panel.is-starter .plan-panel-price,
.plan-panel.is-starter .plan-panel-name { color: #7fe0d6; }
.plan-panel.is-starter .plan-panel-cta {
    background: #5fd4c8;
    color: #0b1c1a;
}

.plan-panel.is-growth {
    background: linear-gradient(165deg, #151d2c 0%, #121820 100%);
    border-color: var(--accent);
}
.plan-panel.is-growth .plan-panel-price,
.plan-panel.is-growth .plan-panel-name { color: var(--accent); }
.plan-panel.is-growth .plan-panel-cta {
    background: var(--accent);
    color: #12141a;
}

.plan-panel.is-studio {
    background: linear-gradient(165deg, #1b1628 0%, #15141f 100%);
    border-color: #8b6fc4;
}
.plan-panel.is-studio .plan-panel-price,
.plan-panel.is-studio .plan-panel-name { color: #c3a6ff; }
.plan-panel.is-studio .plan-panel-cta {
    background: #c3a6ff;
    color: #1a1228;
}

.plan-panel.is-soon {
    background: linear-gradient(165deg, #221c14 0%, #181610 100%);
    border-color: #8a7340;
}
.plan-panel.is-soon .plan-panel-price,
.plan-panel.is-soon .plan-panel-name { color: #e0c06a; }
.plan-panel.is-soon .plan-panel-stats {
    grid-template-columns: 1fr;
}
.plan-panel.is-soon .plan-panel-cta {
    background: #e0c06a;
    color: #1a1508;
}

.plan-panel.billing-plan-highlight {
    box-shadow: 0 0 0 2px rgba(168, 193, 255, 0.45), 0 16px 36px rgba(0, 0, 0, 0.32);
}

.plan-finder {
    text-align: center;
    width: min(100%, 440px);
    margin: 0 auto;
}

.plan-finder-stops {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    margin-top: 10px;
    color: #9aa6bd;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.25;
}

.plan-finder-stops span {
    flex: 1;
    min-width: 0;
}

.plan-finder-stops em {
    display: block;
    margin-top: 2px;
    font-style: normal;
    font-weight: 700;
    color: #d7e0f5;
}

.plan-finder-stops span:nth-child(2),
.plan-finder-stops span:nth-child(3) {
    text-align: center;
}

.plan-finder-stops span:last-child {
    text-align: right;
}

.plan-finder-label {
    display: block;
    color: #c5d0e6;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.plan-finder-value {
    margin: 8px 0 12px;
    font-size: clamp(1.55rem, 4.5vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.plan-finder-slider {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    accent-color: var(--accent);
    cursor: pointer;
}

.plan-finder-note {
    margin-top: 12px;
    color: #f3f3f3;
    font-size: 0.98rem;
}

.paywall-plans.is-single {
    display: flex;
    justify-content: center;
}

.paywall-plans.is-single .paywall-plan-card {
    width: 100%;
    max-width: none;
    height: 100%;
}

.paywall-plan-card[hidden] {
    display: none !important;
}

a.paywall-plan-card {
    text-decoration: none;
    color: inherit;
}

@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-status {
    margin-top: 14px;
    color: #f3f3f3;
    font-size: 0.98rem;
    line-height: 1.5;
}

.paywall-status[hidden] {
    display: none !important;
}

.paywall-plans {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 22px;
}

.paywall-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 100%;
    text-align: left;
    border-radius: 20px;
    border-width: 1.5px;
    border-style: solid;
    padding: 28px 0 24px;
    overflow: hidden;
    cursor: pointer;
    font: inherit;
    color: inherit;
    min-height: 0;
    background: #161922;
    border-color: #343b4d;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
    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 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    margin: 0;
    border-radius: 0;
    flex-shrink: 0;
    background: var(--accent);
}

.paywall-plan-icon {
    position: absolute;
    top: 18px;
    right: 16px;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    flex-shrink: 0;
    z-index: 1;
}

.paywall-plan-icon svg {
    width: 26px;
    height: 26px;
}

.paywall-plan-body {
    flex: 0 0 auto;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 0 24px;
}

.paywall-plan-title-line {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 68px;
}

.paywall-plan-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.paywall-badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.68rem;
    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-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
    min-width: 0;
}

.paywall-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.paywall-stat-kicker {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #c5d0e6;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.paywall-stat-emphasize {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.03em;
}

.paywall-plan-action {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    margin: 22px 24px 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.paywall-price {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.paywall-price-unit {
    font-size: 0.95rem;
    font-weight: 600;
    color: #c8c8c8;
    margin-left: 6px;
}

.paywall-chevron {
    opacity: 0.95;
    margin-left: auto;
}

/* Starter — cool teal */
.paywall-plan-starter {
    background: linear-gradient(165deg, #152024 0%, #12181c 100%);
    border-color: #3d7a7a;
}
.paywall-plan-starter .paywall-accent-bar { background: #5fd4c8; }
.paywall-plan-starter .paywall-plan-icon {
    background: rgba(95, 212, 200, 0.16);
    color: #5fd4c8;
}
.paywall-plan-starter .paywall-price,
.paywall-plan-starter .paywall-chevron { color: #5fd4c8; }

/* Growth — blue */
.paywall-plan-growth {
    background: linear-gradient(165deg, #151d2c 0%, #121820 100%);
    border-color: var(--accent);
    border-width: 2px;
}
.paywall-plan-growth .paywall-accent-bar { background: var(--accent); }
.paywall-plan-growth .paywall-plan-icon {
    background: rgba(168, 193, 255, 0.16);
    color: var(--accent);
}
.paywall-plan-growth .paywall-price,
.paywall-plan-growth .paywall-chevron { color: var(--accent); }

/* Studio — soft purple */
.paywall-plan-studio {
    background: linear-gradient(165deg, #1b1628 0%, #15141f 100%);
    border-color: #8b6fc4;
}
.paywall-plan-studio .paywall-accent-bar { background: #c3a6ff; }
.paywall-plan-studio .paywall-plan-icon {
    background: rgba(195, 166, 255, 0.16);
    color: #c3a6ff;
}
.paywall-plan-studio .paywall-price,
.paywall-plan-studio .paywall-chevron { color: #c3a6ff; }

/* Coming soon — warm gold */
.paywall-plan-soon {
    background: linear-gradient(165deg, #221c14 0%, #181610 100%);
    border-color: #8a7340;
}
.paywall-plan-soon .paywall-accent-bar { background: #e0c06a; }
.paywall-plan-soon .paywall-price,
.paywall-plan-soon .paywall-chevron {
    color: #e0c06a;
    font-size: 1.55rem;
}

.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) {
    .container:has(.billing-main) {
        max-width: 1180px;
    }

    .billing-main {
        max-width: none;
    }

    .paywall-plans {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
        align-items: stretch;
    }

    .paywall-plan-card {
        min-height: 0;
        padding-bottom: 26px;
        border-radius: 20px;
    }

    .paywall-plan-icon {
        top: 22px;
        right: 20px;
        width: 62px;
        height: 62px;
        margin: 0;
    }

    .paywall-plan-icon svg {
        width: 28px;
        height: 28px;
    }

    .paywall-plan-body {
        padding: 0 28px;
    }

    .paywall-plan-title {
        font-size: 1.75rem;
    }

    .paywall-stat-emphasize {
        font-size: 2.4rem;
    }

    .paywall-plan-action {
        margin: 22px 28px 0;
    }

    .paywall-price {
        font-size: 2.15rem;
    }
}

@media (max-width: 640px) {
    .plan-panel {
        padding: 24px 18px 20px;
    }

    .plan-panel-name {
        font-size: 1.7rem;
    }

    .plan-panel-price,
    .plan-panel-stat dd {
        font-size: 1.55rem;
    }

    .account-facts {
        grid-template-columns: 1fr;
    }

    .account-main .billing-account-panel-top,
    .account-main .billing-summary-inner {
        padding: 16px;
    }

    .account-main .billing-account-panel-top {
        padding-left: 13px;
    }

    .account-main .billing-account-info strong {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .account-main .account-meta,
    .account-main .billing-summary-item {
        display: grid;
        grid-template-columns: 6.5rem minmax(0, 1fr);
        align-items: baseline;
        justify-content: start;
        gap: 4px 10px;
    }

    .account-main .account-meta-label,
    .account-main .billing-summary-item .billing-summary-label {
        min-width: 0;
        white-space: nowrap;
    }

    .account-main .billing-account-details .account-meta-label,
    .account-main .billing-account-details .account-meta-value,
    .account-main .billing-summary-item strong {
        overflow: visible;
        text-overflow: unset;
        text-align: left;
    }

    .account-main .account-meta-value,
    .account-main .billing-summary-item strong {
        white-space: normal;
        overflow-wrap: anywhere;
        min-width: 0;
    }

    .account-main .account-no-plan .login-account-link {
        width: 100%;
    }

    .billing-account-panel-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .billing-signout-btn {
        align-self: stretch;
        text-align: center;
    }

    .paywall-plan-card {
        max-width: 100%;
    }

    .plan-finder,
    .plan-panel {
        width: 100%;
        max-width: 100%;
    }

    .paywall-subtext {
        max-width: 18em;
        margin-left: auto;
        margin-right: auto;
    }

    .paywall-headline {
        max-width: 12em;
        margin-left: auto;
        margin-right: auto;
        font-size: 1.55rem;
    }

    .paywall-stat-kicker {
        font-size: 0.68rem;
        letter-spacing: 0.03em;
    }

    .paywall-stat-emphasize {
        font-size: 1.7rem;
    }

    .paywall-plan-body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .paywall-plan-action {
        margin-left: 18px;
        margin-right: 18px;
    }
}
