/* =========================================================================
   Kairsh Studio — Subscription shop
   Extends styles.css; reuses its tokens (--accent, --card-bg, fonts) so the
   page reads as the same product rather than a bolted-on storefront.
   ========================================================================= */

.sub-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 96px;
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.sub-hero {
    text-align: center;
    padding: 72px 0 48px;
}

.sub-hero .hero-title {
    font-size: clamp(2.4rem, 6vw, 4rem);
    margin-bottom: 12px;
}

.sub-hero .hero-subtitle {
    max-width: 560px;
    margin: 0 auto;
}

.identity-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: left;
}

.identity-chip strong { color: var(--text-primary); }
.identity-chip code {
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.identity-chip i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.identity-active {
    border-color: rgba(48, 209, 88, 0.4);
    color: #30d158;
}
.identity-active strong { color: #30d158; }

.identity-warn { border-color: rgba(255, 214, 10, 0.3); }

/* ── Tier cards ──────────────────────────────────────────────────────── */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 80px;
}

.tier-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px 28px;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
}

/* The paid tier has to win the eye immediately — it's the only card with a
   decision attached to it. */
.tier-card-featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 18px 50px rgba(0, 113, 227, 0.18);
}

.tier-flag {
    position: absolute;
    top: -12px;
    left: 28px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.tier-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.tier-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 24px;
}

.tier-amount {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.tier-period {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.tier-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.tier-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.93rem;
}

.tier-list strong { color: var(--text-primary); }

.tier-list i {
    width: 17px;
    height: 17px;
    color: var(--accent);
    flex-shrink: 0;
}

.tier-btn {
    display: block;
    text-align: center;
    padding: 12px 20px;
    border-radius: 980px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.tier-btn-primary {
    background: var(--accent);
    color: #fff;
}
.tier-btn-primary:hover { background: var(--accent-hover); }

.tier-btn-ghost {
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}
.tier-btn-ghost:hover { border-color: var(--accent); }

.tier-foot {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-top: 12px;
}

/* ── Sections ────────────────────────────────────────────────────────── */
.section-title {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 600;
    margin-bottom: 28px;
    text-align: center;
}

.checkout-section,
.steps-section,
.faq-section {
    margin-bottom: 80px;
}

/* ── Checkout embed slot ─────────────────────────────────────────────── */
.embed-slot {
    min-height: 420px;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.embed-placeholder {
    text-align: center;
    color: var(--text-secondary);
    padding: 48px 24px;
}

.embed-placeholder i {
    width: 34px;
    height: 34px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.embed-placeholder p { margin: 6px 0; }

.embed-hint { font-size: 0.86rem; color: var(--text-muted); }
.embed-hint a { color: var(--accent); }

.notice {
    display: flex;
    gap: 14px;
    padding: 22px 24px;
    border-radius: 16px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
}

.notice i { width: 22px; height: 22px; flex-shrink: 0; }
.notice p { color: var(--text-secondary); margin: 6px 0 0; font-size: 0.92rem; }

.notice-good { border-color: rgba(48, 209, 88, 0.35); }
.notice-good i { color: #30d158; }

/* ── Steps ───────────────────────────────────────────────────────────── */
.steps {
    list-style: none;
    counter-reset: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 16px;
}

.steps li {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 22px 24px;
    border-radius: 16px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
}

.step-num {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.steps strong { color: var(--text-primary); }
.steps p { color: var(--text-secondary); margin: 6px 0 0; font-size: 0.92rem; }

.steps code,
.faq code,
.notice code {
    font-family: var(--font-mono);
    font-size: 0.86em;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-primary);
}

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq {
    border-bottom: 1px solid var(--glass-border);
    padding: 18px 4px;
}

.faq summary {
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: "+";
    color: var(--text-secondary);
    font-size: 1.25rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.faq[open] summary::after { transform: rotate(45deg); }

.faq p {
    color: var(--text-secondary);
    margin: 12px 0 2px;
    font-size: 0.92rem;
    line-height: 1.6;
    max-width: 70ch;
}

/* ── Mobile ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .sub-main { padding: 0 16px 64px; }
    .sub-hero { padding: 48px 0 32px; }
    .tier-card { padding: 26px 22px; }
    .identity-chip { width: 100%; }
}

/* Respect users who've asked for less motion — styles.css animates
   .fade-in on scroll. */
@media (prefers-reduced-motion: reduce) {
    .fade-in { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* =========================================================================
   SellApp Embed Modal Adjustments
   ========================================================================= */

/* Ensure SellApp modal sits above the fixed navigation bar (z-index: 9999) */
.embed-dialog {
    z-index: 10000 !important;
}

/* Guard Lucide icons against SellApp's svg { display: block } base reset */
svg[data-lucide],
.tier-list i,
.identity-chip i,
.notice i,
.embed-placeholder i {
    display: inline-block;
}
