/* Addon sales landings — black + Apple blue */

:root {
    --ad-bg: #000;
    --ad-text: #f5f5f7;
    --ad-muted: #a1a1a6;
    --ad-blue: #0071e3;
    --ad-blue-deep: #0077ed;
    --ad-border: rgba(255, 255, 255, 0.1);
    --ad-font: 'Plus Jakarta Sans', system-ui, sans-serif;
    --ad-display: 'Syne', 'Plus Jakarta Sans', system-ui, sans-serif;
    --ad-col: 44rem;
}

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

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--ad-font);
    color: var(--ad-text);
    background: #000;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

.ad-wrap {
    max-width: var(--ad-col);
    margin: 0 auto;
    padding: 0 clamp(1.15rem, 4vw, 1.5rem);
}

.ad-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(14px);
    background: rgba(0, 0, 0, 0.75);
    border-bottom: 1px solid var(--ad-border);
}

.ad-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
}

.ad-nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 0.92rem;
}

.ad-nav__brand img { border-radius: 8px; }

.ad-hero {
    padding: clamp(2.5rem, 8vw, 4rem) 0 2rem;
}

.ad-hero__logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    margin-bottom: 1rem;
    box-shadow: 0 0 0 1px rgba(0, 113, 227, 0.4), 0 12px 32px rgba(0, 113, 227, 0.3);
}

.ad-hero__eyebrow {
    margin: 0 0 0.4rem;
    color: #6ab4ff;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.72rem;
}

.ad-hero h1 {
    margin: 0 0 0.75rem;
    font-family: var(--ad-display);
    font-size: clamp(1.85rem, 5vw, 2.6rem);
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.ad-hero p {
    margin: 0;
    color: var(--ad-muted);
    font-size: 1.05rem;
    max-width: 34rem;
}

.ad-note {
    margin: 0 0 1.25rem;
    color: var(--ad-muted);
    font-size: 0.9rem;
}

.ad-tiers {
    display: grid;
    gap: 0.9rem;
    padding-bottom: 3rem;
}

.ad-tier {
    border: 1px solid var(--ad-border);
    border-radius: 16px;
    padding: 1.25rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}

.ad-tier--featured {
    border-color: rgba(0, 113, 227, 0.55);
    box-shadow: 0 0 40px rgba(0, 113, 227, 0.18);
}

.ad-tier__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.ad-tier__name {
    font-family: var(--ad-display);
    font-weight: 700;
    font-size: 1.15rem;
}

.ad-tier__price {
    font-weight: 700;
    color: #8ec5ff;
    font-size: 1.2rem;
}

.ad-tier__price small {
    font-size: 0.75rem;
    color: var(--ad-muted);
    font-weight: 500;
}

.ad-tier__quota {
    margin: 0 0 1rem;
    color: var(--ad-muted);
    font-size: 0.95rem;
}

.ad-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.7rem;
    padding: 0.65rem 1.2rem;
    border-radius: 999px;
    border: none;
    background: var(--ad-blue);
    color: #fff;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    width: 100%;
}

.ad-btn:hover { background: var(--ad-blue-deep); }
.ad-btn:disabled { opacity: 0.55; cursor: wait; }

.ad-btn--ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--ad-text);
    margin-top: 0.5rem;
}

.ad-status {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: rgba(0, 113, 227, 0.12);
    color: #9fd0ff;
    font-size: 0.92rem;
}

.ad-status--err {
    background: rgba(255, 59, 48, 0.12);
    color: #ff8a80;
}

.ad-footer {
    border-top: 1px solid var(--ad-border);
    padding: 1.25rem 0 2rem;
    color: var(--ad-muted);
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.ad-footer a { color: #6ab4ff; font-weight: 600; }

.ad-nav__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.ad-theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    border-radius: 999px;
    border: 1px solid var(--ad-border);
    background: transparent;
    color: var(--ad-text);
    cursor: pointer;
}

.ad-theme-btn svg { width: 1rem; height: 1rem; }
.ad-theme-btn__sun { display: none; }
.ad-theme-btn__moon { display: block; }
html[data-theme="light"] .ad-theme-btn__sun { display: block; }
html[data-theme="light"] .ad-theme-btn__moon { display: none; }

html[data-theme="light"] {
    color-scheme: light;
    --ad-bg: #f5f5f7;
    --ad-text: #1d1d1f;
    --ad-muted: #6e6e73;
    --ad-border: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] body {
    background: var(--ad-bg);
}

html[data-theme="light"] .ad-nav {
    background: rgba(245, 245, 247, 0.85);
}

html[data-theme="light"] .ad-tier {
    background: linear-gradient(160deg, #ffffff, rgba(255, 255, 255, 0.7));
}

html[data-theme="light"] .ad-tier__price {
    color: #0071e3;
}

html[data-theme="light"] .ad-status {
    background: rgba(0, 113, 227, 0.1);
    color: #0071e3;
}

html[data-theme="light"] .ad-footer a {
    color: #0071e3;
}
