/* ═══════════════════════════════════════════════════════════════════════
   AppMare pricing — built on landing.css tokens (.lp-wrap, .lp-kicker,
   .lp-h2, .sec-head) and the shared landing header/footer.
   Card markup comes from js/pricing.js: .pricing-plan-card(.featured),
   .plan-ribbon, .sale-badge, .plan-top, .price-block, .credit-display,
   .plan-price, .price-was, .billing-label, .plan-cta, .plan-features.
   ═══════════════════════════════════════════════════════════════════════ */
body.pricing-page { background: var(--ink); }
.pr-main { width: 100%; }

/* Header is in-flow on pricing (.lh-inflow): give it the same height as elsewhere */
.custom-header.lh-inflow { height: 72px; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.pr-hero { position: relative; padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 3vw, 40px); text-align: center; }
.pr-hero .lp-kicker { justify-content: center; }
.pr-hero .lp-kicker::before { display: none; }
.pr-hero h1 { margin: 0 auto; font-size: clamp(36px, 5vw, 60px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; max-width: 16ch; }
.pr-lead { margin: 18px auto 0; max-width: 58ch; color: var(--muted); font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6; }
.pr-controls { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 30px; }
.billing-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.billing-toggle button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; border-radius: 999px; border: 0;
  background: transparent; color: var(--muted); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.billing-toggle button:hover { color: var(--text); }
.billing-toggle button.active { background: var(--grad); background-origin: border-box; color: #fff; box-shadow: 0 8px 24px -10px rgba(13,76,242,.8); }
.billing-toggle button span { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(38,180,225,.16); color: var(--accent); }
.billing-toggle button.active span { background: rgba(255,255,255,.2); color: #fff; }
.sale-note { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(38,180,225,.4); background: rgba(38,180,225,.1); color: #9fe3ff; font-size: 13.5px; font-weight: 600; }
.sale-note::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(38,180,225,.2); }

/* ── Plans ──────────────────────────────────────────────────────────────── */
.pr-plans { position: relative; padding: clamp(16px, 2vw, 24px) 0 0; }
.pr-plans::before { content: ''; position: absolute; inset: 10% 15% auto; height: 60%; z-index: 0; pointer-events: none; background: radial-gradient(50% 60% at 50% 40%, rgba(13,76,242,.28), transparent 70%); filter: blur(60px); }
.checkout-notice { position: relative; z-index: 1; margin: 0 auto 20px; max-width: 720px; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(255,200,87,.4); background: rgba(255,200,87,.1); color: #ffe1a3; font-size: 14px; text-align: center; }
.checkout-notice[hidden] { display: none; }
.pricing-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 20px; align-items: stretch; }
.pricing-plan-card {
  position: relative; display: flex; flex-direction: column; gap: 22px; padding: 28px;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.pricing-plan-card:hover { border-color: rgba(38,180,225,.4); transform: translateY(-3px); }
.pricing-plan-card.featured { border-color: rgba(38,180,225,.55); background: linear-gradient(180deg, rgba(13,76,242,.14), transparent 55%), var(--panel-2); box-shadow: 0 40px 90px -50px rgba(13,76,242,.9); }
.plan-ribbon { position: absolute; top: -13px; left: 28px; padding: 5px 12px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.plan-top { padding-top: 6px; }
.plan-top h2 { margin: 0 0 6px; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.plan-top p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; min-height: 2.9em; }
.price-block { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.credit-display { order: 3; margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.credit-display small { font-size: 13.5px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; font-size: 40px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-first { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(38,180,225,.1); border: 1px solid rgba(38,180,225,.3); color: #cfefff; font-size: 12.5px; }
.price-first b { font-weight: 700; color: #fff; }
.plan-cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.26); background: rgba(255,255,255,.07); color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.plan-cta:hover { background: rgba(255,255,255,.1); transform: translateY(-1px); }
.featured .plan-cta { background: var(--grad); background-origin: border-box; border: 0; box-shadow: 0 10px 28px -12px rgba(13,76,242,.9); }
.featured .plan-cta:hover { box-shadow: 0 14px 34px -12px rgba(13,76,242,1); }
.plan-cta:focus-visible, .billing-toggle button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.plan-trust { margin-top: -12px; font-size: 12px; color: var(--subtle); text-align: center; }
.plan-trust a { color: var(--muted); }
.plan-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text); line-height: 1.45; }
.plan-features li svg { flex: 0 0 auto; margin-top: 2px; }
.pr-fine { margin: 22px auto 0; max-width: 72ch; text-align: center; font-size: 13px; color: var(--subtle); line-height: 1.6; }

/* ── Included / FAQ ─────────────────────────────────────────────────────── */
.pr-included, .pr-faq { padding-top: clamp(72px, 9vw, 128px); }
.pr-faq { padding-bottom: clamp(72px, 9vw, 128px); }
.pr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pr-item { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.pr-item svg { width: 22px; height: 22px; color: var(--accent); margin-bottom: 6px; }
.pr-item b { font-size: 16.5px; font-weight: 650; letter-spacing: -0.01em; }
.pr-item span { font-size: 14px; color: var(--muted); line-height: 1.55; }
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border-radius: 14px; border: 1px solid var(--line); background: var(--panel); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 16.5px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 9px; height: 9px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); margin-right: 4px; transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details[open] { border-color: rgba(38,180,225,.3); background: var(--panel-2); }
.faq details p { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 70ch; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1000px) { .pricing-grid, .pr-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .pricing-grid, .pr-grid { grid-template-columns: 1fr; } .pr-hero { text-align: left; } .pr-hero .lp-kicker, .pr-controls { justify-content: flex-start; } .pr-lead, .pr-hero h1 { margin-inline: 0; } }
