:root {
    color-scheme: light;
    --color-background: #f7f8fc;
    --color-surface: #ffffff;
    --color-surface-alt: #eef2ff;
    --color-border: #d9def5;
    --color-text: #182042;
    --color-text-muted: #4d577a;
    --color-primary: #2536ff;
    --color-primary-dark: #1b27c7;
    --color-env-banner: #c1121f;
    --color-accent: #16c2aa;
    --shadow-card: 0 24px 60px rgba(28, 36, 74, 0.16);
    --shadow-soft: 0 12px 30px rgba(24, 32, 66, 0.1);
    --radius-pill: 999px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background: var(--color-background);
    font-family: inherit;
    color: var(--color-text);
    line-height: 1.6;
}

h1,
h2,
h3 {
    margin: 0;
    font-weight: 600;
    color: var(--color-text);
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    line-height: 1.15;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

h3 {
    font-size: 1.25rem;
}

p {
    margin: 0;
    color: var(--color-text-muted);
}

a {
    color: inherit;
}

.environment-banner {
    background: var(--color-env-banner);
    color: #ffffff;
    text-align: center;
    padding: 0.6rem 1rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.85rem;
    position: sticky;
    top: 0;
    z-index: 20;
    display: none;
}

.has-environment-banner .environment-banner {
    display: block;
}

.site-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(24, 32, 66, 0.08);
}

.brand-mark {
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--color-text);
}

.brand-tagline {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.site-nav a {
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--color-text);
}

.primary-cta,
.ghost-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    padding: 0.75rem 1.6rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-cta {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #ffffff;
    box-shadow: var(--shadow-soft);
}

.primary-cta:hover,
.primary-cta:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 18px 42px rgba(37, 54, 255, 0.35);
}

.ghost-cta {
    background: rgba(37, 54, 255, 0.1);
    color: var(--color-primary);
}

.ghost-cta:hover,
.ghost-cta:focus-visible {
    background: rgba(37, 54, 255, 0.18);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: var(--color-accent);
    font-weight: 600;
}

.hero-summary {
    font-size: 1.05rem;
}

.hero-metrics dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    font-weight: 600;
}

.hero-metrics dd {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-text);
}

.hero-card {
    background: linear-gradient(160deg, rgba(37, 54, 255, 0.92), rgba(64, 84, 255, 0.75));
    color: #ffffff;
    box-shadow: var(--shadow-card);
}

.hero-card-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.85;
}

.hero-card-value {
    font-size: clamp(2.5rem, 6vw, 3.6rem);
    font-weight: 700;
}

.hero-card-subtitle {
    font-size: 0.85rem;
    opacity: 0.8;
}

.hero-card-footer span {
    font-size: 0.8rem;
    opacity: 0.75;
}

.metrics {
    background: var(--color-surface-alt);
}

.metrics-group {
    display: grid;
    gap: 1.25rem;
}

.metrics-group-heading {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text);
}

.metric-card {
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.metric-card-title {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}

.metric-value {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--color-text);
}

.metric-caption {
    font-size: 0.9rem;
}

.product-card {
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(24, 32, 66, 0.08);
}

.stripe-products {
    display: flex;
    justify-content: center;
    width: 100%;
}

.stripe-products stripe-pricing-table {
    width: 100%;
}

.stripe-pricing-placeholder {
    margin: 0;
    padding: 1.5rem 0;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    text-align: center;
}

.product-icon {
    width: 76px;
    height: 76px;
    min-width: 76px;
    border-radius: 1.5rem;
    background: var(--color-surface-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(24, 32, 66, 0.08);
    position: relative;
    overflow: hidden;
}

.product-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-icon--fallback::before,
.product-icon--fallback::after {
    content: "";
    position: absolute;
    width: 36px;
    height: 4px;
    background: rgba(24, 32, 66, 0.25);
    border-radius: 999px;
}

.product-icon--fallback::before {
    transform: rotate(45deg);
}

.product-icon--fallback::after {
    transform: rotate(-45deg);
}

.product-card--loading,
.product-card--empty,
.product-card--error {
    display: grid;
    align-items: center;
    justify-items: start;
    gap: 1rem;
    min-height: 240px;
}

.loading-bar {
    width: 100%;
    height: 0.75rem;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, rgba(24, 32, 66, 0.08), rgba(24, 32, 66, 0.18), rgba(24, 32, 66, 0.08));
    background-size: 200% 100%;
    animation: shimmer 1.4s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.product-error-message {
    margin: 0;
    font-size: 0.98rem;
    color: var(--color-text-muted);
}

.product-card h3 {
    font-size: 1.4rem;
}

.product-card-body {
    display: grid;
    gap: 1rem;
}

.product-card--soon {
    border: 1px dashed var(--color-border);
    background: rgba(37, 54, 255, 0.04);
}

.product-status {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.product-status::before {
    content: "";
    display: inline-block;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 999px;
    background: currentColor;
}

.product-variant-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.product-price {
    font-size: 0.95rem;
    color: var(--color-text);
    font-weight: 500;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.product-badge.available {
    background: rgba(22, 194, 170, 0.16);
    color: var(--color-accent);
}

.product-badge.coming-soon {
    background: rgba(128, 128, 160, 0.14);
    color: var(--color-text-muted);
}

.product-description {
    font-size: 0.98rem;
}

.product-features li {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.product-features li::before {
    content: "";
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--color-accent);
    margin-right: 0.5rem;
}

.product-variant-toggle {
    --toggle-padding: 0.35rem;
    --variant-count: 1;
    --variant-index: 0;
    background: rgba(37, 54, 255, 0.14);
}

.product-variant-toggle__indicator {
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    width: calc((100% - (var(--toggle-padding) * 2)) / var(--variant-count));
    transform: translateX(calc(var(--variant-index) * 100%));
}

.product-variant-toggle__option {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    border-radius: var(--radius-pill);
    transition: color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: none;
}

.product-variant-toggle__option.is-active {
    color: var(--color-primary);
}

.product-variant-toggle__option:focus-visible {
    outline: none;
    color: var(--color-primary);
    box-shadow: inset 0 0 0 2px rgba(37, 54, 255, 0.25);
}

.product-card button[disabled],
.product-card a[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.primary-cta.is-placeholder {
    opacity: 0.6;
}

.product-features--empty li::before {
    background: rgba(24, 32, 66, 0.2);
}

.contact {
    background: var(--color-surface-alt);
}

.contact-actions a {
    font-size: 0.95rem;
}

.site-footer {
    background: #111831;
    color: rgba(255, 255, 255, 0.84);
}

.site-footer .brand-mark {
    color: #ffffff;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: #ffffff;
}

[data-nav-target]:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
