:root {
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    display: flex;
    min-height: 100vh;
    align-items: flex-start;
    justify-content: center;
    overflow-x: hidden;
    background: #0b0f19;
    color: #f3f4f6;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.glow-bg,
.glow-bg-right {
    position: fixed;
    z-index: -1;
    width: min(600px, 80vw);
    height: min(600px, 80vw);
    pointer-events: none;
}

.glow-bg {
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.15), rgba(249, 115, 22, 0.05) 50%, transparent 72%);
}

.glow-bg-right {
    right: -10%;
    bottom: -10%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.1), rgba(5, 150, 105, 0.05) 50%, transparent 72%);
}

.container {
    z-index: 1;
    width: min(100%, 1200px);
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
    text-align: center;
}

.pricing-nav {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 1rem;
    margin-bottom: 2rem;
}

.pricing-nav__stack {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 0.25rem;
}

.pricing-nav__link {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.85rem;
    text-decoration: none;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.pricing-nav__form {
    margin: 0;
}

.pricing-nav__button {
    font-family: inherit;
    cursor: pointer;
}

.pricing-nav__status {
    align-self: center;
    color: #6ee7b7;
    font-size: 0.8rem;
    font-weight: 700;
}

.pricing-nav__link--solid {
    border-color: #374151;
    background: #1e293b;
}

.pricing-nav__link:hover {
    border-color: rgba(52, 211, 153, 0.65);
    background: rgba(30, 41, 59, 0.9);
}

.pricing-nav__link:active {
    transform: scale(0.98);
}

.pricing-nav__link:focus-visible,
.btn-checkout:focus-visible {
    outline: 3px solid #6ee7b7;
    outline-offset: 3px;
}

.pricing-nav__note {
    color: #94a3b8;
    font-size: 0.7rem;
}

.header {
    margin: 2rem 0 2.5rem;
}

.badge {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #10b981, #f97316);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 1rem;
    background: linear-gradient(to right, #fff, #9ca3af);
    background-clip: text;
    color: transparent;
    font-size: clamp(2.25rem, 7vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.subtitle {
    max-width: 600px;
    margin: 0 auto;
    color: #9ca3af;
    font-size: 1.15rem;
    line-height: 1.6;
}

.setup-banner {
    display: flex;
    max-width: 800px;
    align-items: flex-start;
    gap: 1.5rem;
    margin: 0 auto 3rem;
    padding: 1.5rem;
    border: 1px solid rgba(5, 150, 105, 0.2);
    border-radius: 1rem;
    background: rgba(5, 150, 105, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: left;
    animation: fade-in 600ms ease-out;
    backdrop-filter: blur(12px);
}

.setup-banner--live {
    border-color: rgba(249, 115, 22, 0.65);
    background: rgba(124, 45, 18, 0.28);
}

.setup-banner--test {
    border-color: rgba(59, 130, 246, 0.55);
    background: rgba(30, 64, 175, 0.2);
}

.setup-banner--blocked {
    border-color: rgba(239, 68, 68, 0.55);
    background: rgba(127, 29, 29, 0.22);
}

.setup-banner-icon {
    flex: 0 0 auto;
    font-size: 2rem;
}

.setup-banner-content {
    min-width: 0;
}

.setup-banner-content h2 {
    margin: 0 0 0.5rem;
    color: #e0e7ff;
    font-size: 1.2rem;
}

.setup-banner-meta {
    margin-bottom: 0 !important;
    color: #e5e7eb !important;
}

.setup-banner-content p {
    margin: 0 0 1rem;
    color: #9ca3af;
    line-height: 1.5;
}

.setup-banner-content pre {
    max-width: 100%;
    margin: 0;
    padding: 1rem;
    overflow-x: auto;
    border: 1px solid #1f2937;
    border-radius: 0.5rem;
    background: #111827;
    color: #a7f3d0;
    font: 0.85rem/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.pricing-grid {
    display: grid;
    max-width: 1000px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 2rem;
    margin: 0 auto;
}

.pricing-grid > * {
    min-width: 0;
}

.pricing-card {
    position: relative;
    display: flex;
    min-width: 0;
    padding: 2.5rem;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    background: rgba(15, 23, 42, 0.68);
    text-align: left;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
    backdrop-filter: blur(12px);
}

.pricing-card:hover {
    border-color: rgba(5, 150, 105, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-6px);
}

.pricing-card--featured {
    border: 2px solid #10b981;
}

.pricing-card--featured::after {
    position: absolute;
    top: -14px;
    right: 24px;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: #10b981;
    color: #fff;
    content: "AUDITED PATH";
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.plan-name {
    margin: 0 0 0.5rem;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
}

.eyebrow {
    margin: 0 0 0.65rem;
    color: #6ee7b7;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.plan-desc {
    min-height: 40px;
    margin: 0 0 2rem;
    color: #9ca3af;
    font-size: 0.95rem;
    line-height: 1.5;
}

.price-container {
    display: grid;
    gap: 0.25rem;
    margin-bottom: 2.5rem;
}

.price-label {
    color: #fff;
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 750;
    letter-spacing: -0.03em;
}

.currency {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 600;
}

.price {
    color: #fff;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.period {
    margin-left: 0.5rem;
    color: #9ca3af;
}

.features-list {
    margin: 0 0 3rem;
    padding: 0;
    flex-grow: 1;
    list-style: none;
}

.features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #d1d5db;
    font-size: 0.95rem;
}

.features-list li::before {
    margin-right: 0.75rem;
    color: #10b981;
    content: "✓";
    font-weight: 800;
}

.seller-disclosure {
    margin: 0 0 1.25rem;
    padding: 1rem;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 0.9rem;
    background: rgba(14, 116, 144, 0.12);
    overflow-wrap: anywhere;
}

.seller-disclosure h3,
.seller-disclosure p,
.seller-disclosure address {
    margin: 0;
}

.seller-disclosure h3 {
    margin-bottom: 0.65rem;
    color: #e0f2fe;
    font-size: 1rem;
}

.seller-disclosure p + p,
.seller-disclosure address + p {
    margin-top: 0.45rem;
}

.seller-disclosure address {
    margin-top: 0.45rem;
    color: #cbd5e1;
    font-style: normal;
}

.seller-disclosure a {
    color: #7dd3fc;
}

.features-list svg {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    flex-shrink: 0;
    color: #10b981;
}

.btn-checkout {
    display: block;
    width: 100%;
    padding: 1rem;
    border: 0;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.btn-checkout.primary {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4);
}

.btn-checkout.primary:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.6);
}

.btn-checkout.secondary {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.btn-checkout.secondary:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.15);
}

.btn-checkout:disabled {
    border: 1px solid #374151;
    background: #1f2937;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.82;
}

.purchase-authority {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin: 1.25rem 0;
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.45;
    text-align: left;
}

.purchase-authority input {
    flex: 0 0 auto;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.1rem;
    accent-color: #38bdf8;
}

.checkout-status {
    margin: 0.9rem 0 0;
    color: #bae6fd;
    font-size: 0.85rem;
    line-height: 1.45;
    text-align: center;
}

.checkout-status--visible {
    display: block;
}

.fine-print {
    margin: 1.25rem 0 0;
    color: #94a3b8;
    font-size: 0.82rem;
    line-height: 1.55;
}

.safety-card {
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    background: rgba(15, 23, 42, 0.55);
    text-align: left;
}

.safety-card h2,
.section-heading h2 {
    margin: 0 0 1rem;
    font-size: 1.6rem;
}

.safety-card ol {
    margin: 1.5rem 0;
    padding-left: 1.4rem;
    color: #d1d5db;
    line-height: 1.6;
}

.safety-card li + li {
    margin-top: 0.8rem;
}

.gateway-section {
    margin: 4rem auto 0;
    text-align: left;
}

.section-heading {
    max-width: 780px;
    margin-bottom: 1.5rem;
}

.section-heading > p:last-child {
    color: #9ca3af;
    line-height: 1.6;
}

.table-scroll {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.7);
}

table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

th,
td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    line-height: 1.45;
    text-align: left;
    vertical-align: top;
}

thead th,
tbody th {
    color: #f8fafc;
}

tbody tr:last-child th,
tbody tr:last-child td {
    border-bottom: 0;
}

.status {
    display: inline-block;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 750;
    white-space: nowrap;
}

.status--enabled {
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
}

.status--blocked {
    background: rgba(249, 115, 22, 0.18);
    color: #fdba74;
}

.status--unavailable {
    background: rgba(239, 68, 68, 0.17);
    color: #fca5a5;
}

.status--payout {
    background: rgba(56, 189, 248, 0.16);
    color: #7dd3fc;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

@media (max-width: 700px) {
    .container {
        padding: 2rem 1rem 3rem;
    }

    .pricing-nav {
        align-items: stretch;
        flex-direction: column;
    }

    .pricing-nav__stack {
        align-items: stretch;
    }

    .pricing-nav__link,
    .pricing-nav__status {
        text-align: center;
    }

    .pricing-nav__button {
        width: 100%;
    }

    .setup-banner {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }

    .pricing-card,
    .safety-card {
        padding: 2rem 1.25rem;
    }

    .pricing-card:hover {
        transform: none;
    }

    h1 {
        font-size: clamp(2rem, 11vw, 2.75rem);
    }

    .subtitle {
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pricing-card,
    .pricing-nav__link,
    .setup-banner {
        animation: none;
        transition: none;
    }
}
