/* ═══════════════════════════════════════════════════════
   archi24 Subscriptions — Frontend CSS
   Plik: assets/css/subscriptions.css
═══════════════════════════════════════════════════════ */

:root {
    --a24-cream:   #F5F0E8;
    --a24-warm:    #FDFAF4;
    --a24-stone:   #C4B99A;
    --a24-ink:     #1A1714;
    --a24-ink2:    #2D2926;
    --a24-accent:  #C17A3E;
    --a24-muted:   #6B6259;
    --a24-border:  rgba(196,185,154,0.35);
    --a24-success: #4A7C59;
}

/* ── PRICING WRAP ────────────────────────────────────── */
.a24-pricing-wrap { max-width: 1100px; margin: 0 auto; padding: 3rem 1rem; }

/* ── BILLING TOGGLE ──────────────────────────────────── */
.a24-billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    font-size: 0.88rem;
    font-family: 'DM Mono', 'Courier New', monospace;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--a24-muted);
}
.a24-toggle-label.a24-active { color: var(--a24-ink); }
.a24-toggle-btn {
    width: 48px; height: 26px;
    background: var(--a24-stone);
    border: none; border-radius: 13px;
    position: relative; cursor: pointer;
    transition: background 0.2s;
    padding: 0;
}
.a24-toggle-btn[aria-pressed="true"] { background: var(--a24-accent); }
.a24-toggle-knob {
    position: absolute;
    top: 3px; left: 3px;
    width: 20px; height: 20px;
    background: white; border-radius: 50%;
    transition: transform 0.2s;
    pointer-events: none;
}
.a24-toggle-btn[aria-pressed="true"] .a24-toggle-knob { transform: translateX(22px); }
.a24-discount {
    background: var(--a24-accent); color: white;
    font-size: 0.58rem; padding: 0.1rem 0.4rem;
    font-style: normal; letter-spacing: 0.08em;
}

/* ── PRICING GRID ────────────────────────────────────── */
.a24-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--a24-border);
    margin-bottom: 4rem;
}

/* ── PLAN CARD ───────────────────────────────────────── */
.a24-plan-card {
    background: var(--a24-warm);
    padding: 2.5rem 2rem;
    position: relative;
    transition: background 0.2s;
}
.a24-plan-card:hover { background: var(--a24-cream); }

.a24-plan-featured {
    background: var(--a24-ink) !important;
}
.a24-plan-featured:hover { background: var(--a24-ink2) !important; }

.a24-plan-top-badge {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background: var(--a24-accent);
    color: white;
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.25rem 0.8rem;
    white-space: nowrap;
}

.a24-plan-name {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--a24-muted);
    margin-bottom: 1rem;
}
.a24-plan-featured .a24-plan-name { color: var(--a24-stone); }

.a24-plan-price {
    font-size: 2.8rem;
    font-weight: 300;
    color: var(--a24-ink);
    line-height: 1;
    margin-bottom: 0.2rem;
    font-family: 'Cormorant Garamond', Georgia, serif;
}
.a24-plan-featured .a24-plan-price { color: #FDFAF4; }
.a24-plan-price sup {
    font-size: 1.1rem;
    vertical-align: super;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
}

.a24-plan-period {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: var(--a24-muted);
    margin-bottom: 2rem;
}
.a24-plan-featured .a24-plan-period { color: rgba(255,255,255,0.5); }

.a24-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}
.a24-plan-features li {
    font-size: 0.85rem;
    color: var(--a24-muted);
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--a24-border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.a24-plan-features li::before { content: '—'; color: var(--a24-accent); font-size: 0.7rem; flex-shrink: 0; }
.a24-plan-featured .a24-plan-features li {
    color: rgba(255,255,255,0.75);
    border-color: rgba(255,255,255,0.08);
}
.a24-plan-featured .a24-plan-features li::before { color: rgba(255,255,255,0.4); }

.a24-plan-btn {
    display: block;
    width: 100%;
    text-align: center;
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.9rem;
    background: none;
    border: 1px solid rgba(196,185,154,0.5);
    color: var(--a24-ink);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}
.a24-plan-btn:hover { background: var(--a24-ink); color: white; border-color: var(--a24-ink); }
.a24-plan-featured .a24-plan-btn { background: var(--a24-accent); border-color: var(--a24-accent); color: white; }
.a24-plan-featured .a24-plan-btn:hover { background: #D4873E; }

.a24-plan-current {
    text-align: center;
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    padding: 0.9rem;
    border: 1px solid var(--a24-border);
    color: var(--a24-success);
}

/* ── PLAN BADGE ──────────────────────────────────────── */
.a24-plan-badge {
    display: inline-block;
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.22rem 0.6rem;
    border: 1px solid transparent;
}
.a24-plan-free  { background: var(--a24-cream); border-color: var(--a24-stone); color: var(--a24-muted); }
.a24-plan-pro   { background: var(--a24-accent); color: white; }
.a24-plan-teams { background: var(--a24-ink); color: #FDFAF4; }

/* ── USAGE WIDGET ────────────────────────────────────── */
.a24-usage-widget { margin: 0.8rem 0; }
.a24-usage-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    margin-bottom: 0.5rem;
    color: var(--a24-muted);
}
.a24-usage-bar {
    height: 4px;
    background: var(--a24-border);
    margin-bottom: 0.5rem;
    position: relative;
}
.a24-usage-fill {
    height: 100%;
    background: var(--a24-accent);
    transition: width 0.5s ease;
}
.a24-usage-tip { font-size: 0.78rem; color: var(--a24-muted); }
.a24-usage-tip a { color: var(--a24-accent); text-decoration: none; }
.a24-usage-tip a:hover { text-decoration: underline; }

/* ── DASHBOARD ───────────────────────────────────────── */
.a24-dashboard { max-width: 760px; }

.a24-dash-header {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--a24-border);
}
.a24-dash-avatar img { border-radius: 0; border: 2px solid var(--a24-border); }
.a24-dash-name { font-size: 1.4rem; font-weight: 300; margin: 0 0 0.2rem; }
.a24-dash-email { font-size: 0.8rem; color: var(--a24-muted); margin-bottom: 0.5rem; }

.a24-dash-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--a24-border);
    margin-bottom: 2rem;
}
.a24-dash-stat {
    background: var(--a24-cream);
    padding: 1.2rem 1rem;
    text-align: center;
}
.a24-dash-stat-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--a24-ink);
    font-family: 'Cormorant Garamond', Georgia, serif;
    line-height: 1;
}
.a24-dash-stat-label {
    display: block;
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--a24-muted);
    margin-top: 0.3rem;
}

.a24-dash-usage {
    background: var(--a24-cream);
    border: 1px solid var(--a24-border);
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}

.a24-dash-upgrade {
    background: var(--a24-ink);
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.a24-dash-upgrade p { color: var(--a24-stone); font-size: 0.9rem; margin: 0; }
.a24-dash-upgrade strong { color: #FDFAF4; }

.a24-dash-section { margin-bottom: 2rem; }
.a24-dash-section-title {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--a24-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--a24-border);
}

/* History List */
.a24-history-list { display: flex; flex-direction: column; gap: 1px; background: var(--a24-border); }
.a24-history-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    align-items: center;
    gap: 1rem;
    background: var(--a24-warm);
    padding: 0.7rem 0.8rem;
    transition: background 0.15s;
}
.a24-history-item:hover { background: var(--a24-cream); }
.a24-history-thumb { width: 56px; height: 42px; object-fit: cover; display: block; }
.a24-history-title { font-size: 0.85rem; color: var(--a24-ink); text-decoration: none; display: block; }
.a24-history-title:hover { color: var(--a24-accent); }
.a24-history-date { font-family: 'DM Mono', 'Courier New', monospace; font-size: 0.62rem; color: var(--a24-muted); margin-top: 0.2rem; display: block; }

.a24-btn-sm {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    background: var(--a24-ink);
    color: white;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
}
.a24-btn-sm:hover { background: var(--a24-accent); color: white; }

/* Plan Log */
.a24-plan-log { display: flex; flex-direction: column; gap: 1px; background: var(--a24-border); }
.a24-log-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: var(--a24-warm);
    padding: 0.6rem 0.8rem;
    font-size: 0.82rem;
}
.a24-log-event { font-weight: 500; flex: 1; }
.a24-log-plan { color: var(--a24-muted); }
.a24-log-date { font-family: 'DM Mono', 'Courier New', monospace; font-size: 0.6rem; color: var(--a24-muted); margin-left: auto; }

/* FAQ */
.a24-pricing-faq { border-top: 1px solid var(--a24-border); padding-top: 3rem; }
.a24-pricing-faq h3 { font-size: 1.5rem; font-weight: 300; margin-bottom: 2rem; font-family: 'Cormorant Garamond', Georgia, serif; }
.a24-faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.a24-faq-q { font-size: 0.9rem; font-weight: 500; margin-bottom: 0.4rem; }
.a24-faq-a { font-size: 0.85rem; color: var(--a24-muted); line-height: 1.6; }

/* Checkout plan info */
.a24-checkout-plan-info {
    background: var(--a24-cream);
    border: 1px solid var(--a24-stone);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}
.a24-checkout-plan-info ul { margin: 0.5rem 0 0 1rem; }
.a24-checkout-plan-info li { color: var(--a24-muted); font-size: 0.85rem; margin-bottom: 0.2rem; }

/* Thank you box */
.a24-thankyou-box {
    background: var(--a24-ink);
    color: #FDFAF4;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
}
.a24-thankyou-icon { font-size: 2.5rem; color: var(--a24-accent); display: block; margin-bottom: 0.5rem; }
.a24-thankyou-box h3 { font-weight: 300; margin-bottom: 0.5rem; }
.a24-thankyou-box p { color: var(--a24-stone); font-size: 0.9rem; margin-bottom: 1.5rem; }

/* Upgrade btn */
.a24-btn-upgrade {
    background: var(--a24-accent) !important;
    color: white !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.85rem 1.8rem;
    text-decoration: none;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}
.a24-btn-upgrade:hover { background: var(--a24-ink) !important; color: white !important; }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
    .a24-pricing-grid { grid-template-columns: 1fr; }
    .a24-faq-grid { grid-template-columns: 1fr; }
    .a24-dash-stats { grid-template-columns: repeat(3, 1fr); }
    .a24-dash-upgrade { flex-direction: column; text-align: center; }
    .a24-history-item { grid-template-columns: 48px 1fr; }
    .a24-btn-sm { display: none; }
}
