/* Premium Home pricing (PU-PRICING-PREMIUM-HIERARCHY, PU-PRICING-PERSUASION-2).
   Scoped to .pp (rendered by js/pricing-template.js only when the root declares
   data-pricing-layout="premium"). Selectors are prefixed with .pp so they outrank the
   runtime styles injected by ensureStudioPricingStyles(). Colours reuse existing E-Labs
   tokens: --accent #6c63ff, --accent2 #8b5cf6, cyan #38bdf8, --yellow #eab308, --green. */

#pricing.pp-section { background: var(--bg, #0a0a0f); max-width: 100%; padding: 4.5rem 2rem 5rem; scroll-margin-top: var(--pp-sticky-top, 64px); }
#pricing.pp-section #canonical-pricing-root { max-width: 1180px; margin: 0 auto; }

.pp {
  --pp-text: #ececf4;
  --pp-soft: #b9b9cf;
  --pp-muted: #9a9ab4;
  --pp-line: #24243a;
  --pp-panel: #111118;
  --pp-panel2: #0d0d14;
  --pp-brand: #6c63ff;
  --pp-focus: #a5a0ff;
  color: var(--pp-text);
  font-family: inherit;
}
.pp *, .pp *::before, .pp *::after { box-sizing: border-box; }
.pp section { padding: 0; max-width: none; } /* neutralise the page-wide section{padding;max-width} rule */
.pp .pp-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pp .pp-ico { width: 18px; height: 18px; flex-shrink: 0; }
.pp a:focus-visible, .pp button:focus-visible, .pp summary:focus-visible {
  outline: 2px solid var(--pp-focus); outline-offset: 3px; border-radius: 10px;
}
/* Anchors and focused controls clear the fixed site header (height measured by JS). */
.pp [id], .pp a, .pp button, .pp summary { scroll-margin-top: calc(var(--pp-sticky-top, 64px) + 12px); }

/* ── Value hook ───────────────────────────────────────────────────────────── */
.pp .pp-hero {
  position: relative; overflow: hidden; text-align: left;
  padding: 40px 40px 30px; border-radius: 24px; border: 1px solid #2b2950;
  background:
    radial-gradient(70% 120% at 0% 0%, rgba(108, 99, 255, .30), transparent 60%),
    radial-gradient(60% 120% at 100% 0%, rgba(56, 189, 248, .16), transparent 60%),
    linear-gradient(180deg, #14132a, #0e0e18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 80px -40px rgba(108, 99, 255, .55);
}
.pp .pp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 32px; align-items: stretch; }
.pp .pp-eyebrow { margin: 0 0 10px; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #b3aeff; }
.pp .pp-title { margin: 0 0 18px; font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.06; font-weight: 900; letter-spacing: -.035em; color: #fff; }
.pp .pp-grad { background: linear-gradient(120deg, #a5a0ff 10%, #7dd3fc 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pp .pp-why { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 9px; }
.pp .pp-why li { display: flex; align-items: flex-start; gap: 10px; font-size: 1rem; line-height: 1.45; color: var(--pp-soft); }
.pp .pp-why li .pp-ico { width: 20px; height: 20px; margin-top: 1px; color: #a5a0ff; }
.pp .pp-why strong { color: #fff; font-weight: 700; }
.pp .pp-sub { margin: 0 0 20px; max-width: 680px; font-size: .9rem; line-height: 1.6; color: var(--pp-soft); }
.pp .pp-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pp .pp-btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px; font-size: .95rem; font-weight: 800; text-decoration: none; }
.pp .pp-btn .pp-ico { width: 18px; height: 18px; }
.pp .pp-btn-primary { color: #fff; background: linear-gradient(135deg, #5b52f0, #7c3aed); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 14px 30px -12px rgba(108, 99, 255, .9); }
.pp .pp-btn-primary:hover { filter: brightness(1.08); }
.pp .pp-btn-quiet { color: var(--pp-text); border: 1px solid #7b77c4; background: rgba(10, 10, 18, .4); }
.pp .pp-btn-quiet:hover { border-color: #8b85ff; }

.pp .pp-hero-panel {
  display: flex; flex-direction: column; padding: 22px 22px 18px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(20, 19, 42, .9), rgba(10, 10, 18, .85));
  border: 1px solid rgba(165, 160, 255, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 0 0 1px rgba(0, 0, 0, .3), 0 0 32px -10px rgba(108, 99, 255, .55);
}
.pp .pp-panel-k { margin: 0 0 4px; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pp-soft); }
.pp .pp-panel-k2 { margin-top: 18px; margin-bottom: 10px; }
.pp .pp-panel-price { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.pp .pp-panel-price strong { font-size: 2.4rem; font-weight: 900; letter-spacing: -.04em; color: #fff; line-height: 1; }
.pp .pp-panel-price span { font-size: .9rem; color: var(--pp-soft); }
.pp .pp-panel-alt { margin: 6px 0 0; font-size: .84rem; color: var(--pp-soft); }
.pp .pp-meter { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.pp .pp-meter li { display: grid; grid-template-columns: 3.4em minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: .86rem; }
.pp .pp-meter-name { font-weight: 800; color: #fff; }
.pp .pp-meter-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.pp .pp-meter-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--tier) 55%, transparent), var(--tier)); box-shadow: 0 0 10px color-mix(in srgb, var(--tier) 60%, transparent); }
.pp .pp-meter-val { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--tier-ink); }
.pp .pp-panel-note { margin: auto 0 0; padding-top: 14px; font-size: .78rem; line-height: 1.5; color: var(--pp-soft); }

.pp .pp-tiles { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pp .pp-tiles li { flex: 1 1 160px; min-width: 0; }
.pp .pp-tile {
  display: flex; align-items: center; gap: 12px; height: 100%; padding: 12px 12px 12px 12px;
  border-radius: 16px; border: 1px solid rgba(255, 255, 255, .09); background: rgba(10, 10, 18, .55);
  color: var(--pp-text); text-decoration: none; transition: border-color .2s, background .2s, transform .2s;
}
.pp .pp-tile:hover { border-color: rgba(165, 160, 255, .55); background: rgba(108, 99, 255, .10); transform: translateY(-2px); }
.pp .pp-tile-ico { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px; background: rgba(108, 99, 255, .18); color: #c4c0ff; }
.pp .pp-tile-image .pp-tile-ico { background: rgba(56, 189, 248, .16); color: #7dd3fc; }
.pp .pp-tile-video .pp-tile-ico { background: rgba(139, 92, 246, .2); color: #c4b5fd; }
.pp .pp-tile-audio .pp-tile-ico { background: rgba(34, 197, 94, .15); color: #86efac; }
.pp .pp-tile-folder .pp-tile-ico { background: rgba(234, 179, 8, .14); color: #fcd34d; }
.pp .pp-tile-ico .pp-ico { width: 20px; height: 20px; }
.pp .pp-tile-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.pp .pp-tile-txt strong { font-size: .92rem; font-weight: 700; color: #fff; }
.pp .pp-tile-txt span { font-size: .78rem; line-height: 1.4; color: var(--pp-soft); }
.pp .pp-tile-go { width: 16px; height: 16px; flex-shrink: 0; color: var(--pp-muted); }
.pp .pp-hero-note { margin: 16px 0 0; font-size: .82rem; line-height: 1.6; color: var(--pp-soft); }
.pp .pp-hero-note a, .pp .pp-a a, .pp .pp-faq-more a { color: #c4c0ff; text-decoration: underline; text-underline-offset: 3px; }

/* ── Toolbar: single cadence control + compare link ──────────────────────── */
.pp .pp-plans { margin-top: 40px; }
.pp .pp-toolbar { display: flex; align-items: center; justify-content: center; gap: 12px 28px; flex-wrap: wrap; margin-bottom: 24px; }
.pp .pc-cadence { flex-direction: row; gap: 14px; margin: 0; }
.pp .pc-cadence-group { padding: 5px; gap: 4px; background: #0b0b12; border: 1px solid #2e2e48; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5); }
.pp .pc-cadence-opt { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 112px; font-size: .9rem; color: var(--pp-soft); }
.pp .pc-cadence-opt:hover { color: #fff; }
.pp .pc-cadence-opt[aria-checked="true"] { background: linear-gradient(135deg, #5b52f0, #7c3aed); color: #fff; box-shadow: 0 6px 18px -6px rgba(108, 99, 255, .8); }
.pp .pc-cadence-opt:focus-visible { outline: 2px solid var(--pp-focus); outline-offset: 3px; }
.pp .pp-opt-pill { white-space: nowrap; font-size: .68rem; font-weight: 800; letter-spacing: .02em; padding: 3px 8px; border-radius: 999px; background: #14532d; color: #bbf7d0; border: 1px solid #22c55e; }
/* Inside the selected (violet) Annual option the pill turns light so text and pill edge both
   contrast with the gradient (QA-J28: green-on-violet was too close). */
.pp .pc-cadence-opt[aria-checked="true"] .pp-opt-pill { background: #f0fdf4; color: #14532d; border-color: #f0fdf4; }
.pp .pc-cadence-caption { font-size: .8rem; color: var(--pp-soft); min-width: 15em; }
.pp .pp-compare-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 6px; font-size: .88rem; font-weight: 600; color: var(--pp-soft); text-decoration: none; }
.pp .pp-compare-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.pp .pp-compare-link .pp-ico { width: 16px; height: 16px; }

/* ── Plan cards: aligned anatomy via subgrid ─────────────────────────────── */
.pp .pp-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: stretch;
  grid-template-rows: repeat(5, auto); column-gap: 18px; row-gap: 0;
}
.pp .pc-t-basic { --tier: #38bdf8; --tier-ink: #7dd3fc; --tier-surface: #0c1a24; }
.pp .pc-t-pro { --tier: #6c63ff; --tier-ink: #b3aeff; --tier-surface: #15132c; }
.pp .pc-t-pro_plus { --tier: #eab308; --tier-ink: #fcd34d; --tier-surface: #1d1808; }
.pp .pc.pp-card {
  grid-row: span 5; display: grid; grid-template-rows: subgrid; row-gap: 14px; align-content: start;
  padding: 22px 20px 18px; border-radius: 22px; overflow: hidden; isolation: isolate;
  border: 1px solid color-mix(in srgb, var(--tier) 40%, #2a2a3e);
  background:
    radial-gradient(120% 60% at 50% -10%, color-mix(in srgb, var(--tier) 26%, transparent), transparent 62%),
    linear-gradient(180deg, var(--tier-surface), #0e0e15 78%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 0 0 1px rgba(0, 0, 0, .25),
    0 0 28px -14px var(--tier),
    0 28px 60px -32px rgba(0, 0, 0, .9);
  transition: border-color .22s, box-shadow .22s, transform .22s;
}
/* Restrained neon edge light: a 1px gradient rim brightest at the top-left and bottom-right. */
.pp .pc.pp-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 0;
  background: linear-gradient(150deg, color-mix(in srgb, var(--tier) 90%, #fff 10%), transparent 34%, transparent 70%, color-mix(in srgb, var(--tier) 55%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.pp .pc.pp-card > * { position: relative; z-index: 1; }
.pp .pc.pp-card::before { height: 3px; background: linear-gradient(90deg, transparent, var(--tier), transparent); box-shadow: 0 0 14px var(--tier); z-index: 1; }
.pp .pc.pp-card:hover { border-color: color-mix(in srgb, var(--tier) 66%, #2a2a3e); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 36px -12px var(--tier), 0 34px 70px -30px color-mix(in srgb, var(--tier) 45%, transparent); transform: translateY(-3px); }
.pp .pc.pp-card.rec { border-color: color-mix(in srgb, var(--tier) 70%, #2a2a3e); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 1px color-mix(in srgb, var(--tier) 40%, transparent), 0 30px 80px -30px color-mix(in srgb, var(--tier) 70%, transparent); }

.pp .pp-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 30px; }
.pp .pc-name { margin: 0; font-size: 1.5rem; font-weight: 900; letter-spacing: -.02em; color: #fff; display: flex; align-items: center; gap: 10px; }
.pp .pc-name::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--tier); box-shadow: 0 0 12px var(--tier); }
.pp .pp-pills { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pp .pp-pill { font-size: .7rem; font-weight: 800; letter-spacing: .03em; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pp .pp-pill[hidden] { display: none; }
.pp .pp-pill-save { background: #14532d; color: #bbf7d0; border: 1px solid #22c55e; }
.pp .pp-pill-rec { background: linear-gradient(135deg, #5b52f0, #7c3aed); color: #fff; border: 1px solid #8b85ff; }

.pp .pp-diff { display: flex; flex-direction: column; gap: 4px; }
.pp .pp-diff p { margin: 0; }
.pp .pp-diff-lead { display: flex; align-items: flex-start; gap: 7px; font-size: .92rem; line-height: 1.45; font-weight: 700; color: var(--tier-ink); }
.pp .pp-diff-lead .pp-ico { width: 16px; height: 16px; margin-top: 3px; }
.pp .pp-diff-scale { font-size: .82rem; line-height: 1.45; color: var(--pp-soft); }

.pp .pp-credits {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  background: color-mix(in srgb, var(--tier) 10%, #0b0b12);
  border: 1px solid color-mix(in srgb, var(--tier) 30%, #26263a);
}
.pp .pp-credits .pp-ico { width: 26px; height: 26px; color: var(--tier-ink); }
.pp .pp-credits div { display: flex; flex-direction: column; gap: 2px; }
.pp .pp-credits strong { font-size: 1.02rem; font-weight: 800; color: #fff; }
.pp .pp-credits span { font-size: .78rem; color: var(--pp-soft); }

/* Inner purchase panel: price, exact billing amount, one action, renewal caption. */
.pp .pp-buy {
  display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, .12));
  border: 1px solid rgba(255, 255, 255, .07); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.pp .pp-price { display: flex; flex-direction: column; justify-content: flex-end; min-height: 74px; }
.pp .pp-price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pp .pc-price { font-size: 2.9rem; font-weight: 900; letter-spacing: -.04em; line-height: 1; color: #fff; background: none; -webkit-text-fill-color: #fff; }
.pp .pc-period { margin: 0; font-size: .9rem; font-weight: 600; color: var(--pp-soft); }
.pp .pp-billed { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 8px 0 0; font-size: .92rem; font-weight: 700; color: #fff; }
.pp .pp-billed[hidden] { display: none; }
.pp .pp-compare-at { font-size: .9rem; font-weight: 600; color: var(--pp-muted); text-decoration-thickness: 2px; }
.pp .pp-compare-at[hidden] { display: none; }

.pp .pc-cta.pp-cta {
  width: 100%; min-height: 52px; margin: 0; border-radius: 14px; font-size: .98rem; font-weight: 800; letter-spacing: -.005em; color: #fff;
  background: linear-gradient(135deg, #5b52f0, #7c3aed);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 14px 30px -12px color-mix(in srgb, var(--tier) 75%, #6c63ff);
}
/* Tier-specific actions (contrast verified: white on #0369a1 / #5b52f0, #1c1400 on #fcd34d). */
.pp .pc-t-basic .pc-cta.pp-cta { background: linear-gradient(135deg, #0369a1, #075985); }
.pp .pc-t-pro_plus .pc-cta.pp-cta { background: linear-gradient(135deg, #fcd34d, #f5c542); color: #1c1400; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 14px 30px -12px rgba(234, 179, 8, .75); }
.pp .pc-cta.pp-cta:hover { transform: translateY(-1px); filter: brightness(1.08); }
.pp .rec .pc-cta.pp-cta { background: #fff; color: #17133a; box-shadow: 0 14px 34px -12px rgba(165, 160, 255, .9); }
/* Subscription checkout not live (window.ELABS_SUBSCRIPTION_CHECKOUT_ENABLED false): the plan CTA is a
   focusable <button aria-disabled="true">. Same box as the live CTA; neutral surface for every tier
   (overrides the tier/recommended fills); text #dcdcea on the card panel (contrast measured in
   evidence/pu-honest-subscribe-cta). No hover lift. */
.pp .pp-card .pc-cta.pp-cta.pc-cta-soon,
.pp .pp-card .pc-cta.pp-cta.pc-cta-soon:hover {
  background: rgba(255, 255, 255, .05); color: #dcdcea; filter: none; transform: none; cursor: not-allowed;
  box-shadow: inset 0 0 0 1px #4a4a66;
}
.pp .pc-topup-link {
  align-self: center; margin-top: -4px; font-size: .84rem; font-weight: 700; color: #c4c0ff;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.pp .pc-topup-link:hover { color: #fff; }
.pp .pc-foot { min-height: 0; margin-top: -4px; font-size: .78rem; color: var(--pp-soft); }
.pp .pc-save { color: #86efac; font-weight: 700; }

.pp .pp-benefits { border-top: 1px solid var(--pp-line); padding-top: 10px; }
.pp .pp-benefits > summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 32px; cursor: pointer; list-style: none;
  font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pp-soft);
}
.pp details > summary::-webkit-details-marker { display: none; }
.pp .pp-chev { width: 18px; height: 18px; flex-shrink: 0; transition: transform .2s; }
.pp details[open] > summary .pp-chev { transform: rotate(180deg); }
.pp .pp-groups { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.pp .pp-group { padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--tier) 4%, rgba(255, 255, 255, .02)); border: 1px solid var(--pp-line); }
.pp .pp-group-h { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tier-ink); }
.pp .pp-group-h .pp-ico { width: 15px; height: 15px; }
.pp .pc-feats { list-style: none; margin: 0; padding: 0; flex: none; }
.pp .pc-feats li { display: flex; align-items: flex-start; gap: 8px; padding: 1px 0; font-size: .88rem; line-height: 1.45; color: var(--pp-text); }
.pp .pp-ck { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; color: var(--tier-ink); }
.pp .pp-usage-note { max-width: 860px; margin: 20px auto 0 !important; text-align: center; font-size: .84rem !important; line-height: 1.6; color: var(--pp-soft) !important; }

/* ── Compare plans ───────────────────────────────────────────────────────── */
.pp .pp-compare, .pp .pp-faq { margin-top: 72px; }
.pp .pp-h2 { margin: 0 0 8px; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; letter-spacing: -.03em; color: #fff; }
.pp .pp-h2-sub { margin: 0 0 22px; font-size: .9rem; color: var(--pp-soft); }
.pp .pp-table-wrap { border-radius: 20px; border: 1px solid var(--pp-line); background: linear-gradient(180deg, #121219, #0e0e15); overflow: hidden; }
.pp .pp-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.pp .pp-table thead th { padding: 20px 16px 16px; text-align: center; font-size: 1.1rem; font-weight: 900; color: #fff; border-bottom: 1px solid var(--pp-line); }
.pp .pp-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; background: var(--tier); vertical-align: middle; box-shadow: 0 0 8px var(--tier); }
.pp .pp-table th[scope="row"] { padding: 13px 20px; text-align: left; font-weight: 600; color: var(--pp-text); width: 28%; }
.pp .pp-table td { padding: 13px 16px; text-align: center; color: var(--pp-soft); }
.pp .pp-table tbody tr + tr { border-top: 1px solid #1b1b2b; }
.pp .pp-trow-group th { padding: 16px 20px 8px; text-align: left; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #b3aeff; background: rgba(108, 99, 255, .05); }
.pp .pp-yes { display: inline-flex; color: var(--tier-ink); }
.pp .pp-yes .pp-ico { width: 20px; height: 20px; }
.pp .pp-no { color: var(--pp-muted); }
.pp .pp-compare-cards { display: none; }

/* ── Questions ───────────────────────────────────────────────────────────── */
.pp .pp-faq { max-width: 1000px; margin-left: auto; margin-right: auto; }
.pp .pp-faq .pp-h2 { text-align: center; margin-bottom: 22px; }
.pp .pp-faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; align-items: start; }
.pp .pp-q { border-radius: 16px; border: 1px solid var(--pp-line); background: var(--pp-panel); }
.pp .pp-q[open] { border-color: #34325a; }
.pp .pp-q > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; padding: 14px 18px; cursor: pointer; list-style: none; font-size: .98rem; font-weight: 700; color: #fff; border-radius: 16px; }
.pp .pp-a { padding: 0 18px 18px; }
.pp .pp-a p { margin: 0; font-size: .9rem; line-height: 1.7; color: var(--pp-soft); }
.pp .pp-faq-more { margin: 16px 0 0; text-align: center; font-size: .84rem; color: var(--pp-soft); }
.pp .pp-final { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.pp .pp-final p { margin: 0; font-size: 1.05rem; font-weight: 700; color: #fff; }

/* ── Partner marketplace band (quiet, separate from plans) ───────────────── */
.pp .pp-partner {
  display: flex; align-items: center; gap: 20px; margin-top: 64px; padding: 20px 24px; border-radius: 18px;
  border: 1px solid var(--pp-line); background: var(--pp-panel2);
}
.pp .pp-partner-img { width: 56px; height: 56px; object-fit: cover; border-radius: 14px; border: 1px solid var(--pp-line); flex-shrink: 0; }
.pp .pp-partner-body { flex: 1; min-width: 0; }
.pp .pp-partner .pp-eyebrow { margin-bottom: 4px; color: var(--pp-muted); font-size: .7rem; }
.pp .pp-partner-title { margin: 0; font-size: 1.1rem; font-weight: 800; color: #fff; }
.pp .pp-partner-sub { margin: 2px 0 6px; font-size: .86rem; color: var(--pp-soft); }
.pp .pp-partner-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .8rem; color: var(--pp-muted); }
.pp .pp-partner-list li::before { content: "\2022"; margin-right: 6px; color: #5d5d78; }
.pp .pp-partner-cta {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; flex-shrink: 0;
  border: 1px solid #34345a; color: var(--pp-text); font-size: .88rem; font-weight: 700; text-decoration: none;
}
.pp .pp-partner-cta:hover { border-color: #6c63ff; background: rgba(108, 99, 255, .08); }
.pp .pp-partner-cta .pp-ico { width: 16px; height: 16px; }

/* ── Laptop / tablet ─────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .pp .pp-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .pp .pp-hero-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); column-gap: 28px; }
  .pp .pp-hero-panel > :nth-child(-n+3) { grid-column: 1; }
  .pp .pp-panel-k2, .pp .pp-meter, .pp .pp-panel-note { grid-column: 2; }
  .pp .pp-panel-k2 { grid-row: 1; margin-top: 0; }
  .pp .pp-meter { grid-row: 2 / span 2; }
  .pp .pp-panel-note { grid-row: 4; }
}
@media (max-width: 899px) {
  #pricing.pp-section { padding: 3.5rem 1.5rem 4rem; }
  .pp .pp-hero { padding: 30px 26px 26px; }
  .pp .pp-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 16px; }
  .pp .pc.pp-card {
    grid-row: auto; grid-template-rows: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; row-gap: 12px;
    grid-template-areas: "head benefits" "diff benefits" "credits benefits" "buy benefits";
    align-content: start;
  }
  .pp .pp-card-head { grid-area: head; }
  .pp .pp-diff { grid-area: diff; }
  .pp .pp-credits { grid-area: credits; }
  .pp .pp-buy { grid-area: buy; }
  .pp .pp-price { min-height: 0; }
  .pp .pc-price { font-size: 2.5rem; }
  .pp .pp-benefits { grid-area: benefits; border-top: 0; padding-top: 0; }
  .pp .pc.rec { order: -1; }
  .pp .pp-faq-list { grid-template-columns: minmax(0, 1fr); }
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  #pricing.pp-section { padding: 2.75rem 16px 3.5rem; }
  .pp .pp-hero { padding: 24px 18px 20px; border-radius: 20px; }
  .pp .pp-title { margin-bottom: 14px; }
  .pp .pp-why li { font-size: .94rem; }
  .pp .pp-sub { font-size: .86rem; margin-bottom: 16px; }
  .pp .pp-hero-actions .pp-btn { flex: 1 1 120px; padding: 0 14px; }
  /* Mobile hero stays short: entry price only (per-plan credits are on each card),
     compact capability chips without descriptions. */
  .pp .pp-hero-panel { display: block; padding: 16px; }
  .pp .pp-panel-k2, .pp .pp-meter, .pp .pp-panel-note { display: none; }
  .pp .pp-panel-price strong { font-size: 2rem; }
  .pp .pp-tiles { gap: 8px; margin-top: 16px; }
  .pp .pp-tiles li { flex: 1 1 110px; }
  .pp .pp-tile { gap: 10px; padding: 8px 12px 8px 8px; min-height: 52px; }
  .pp .pp-tile-ico { width: 34px; height: 34px; border-radius: 10px; }
  .pp .pp-tile-txt span { display: none; }
  .pp .pp-tile-go { display: none; }
  .pp .pp-plans { margin-top: 28px; }
  .pp .pp-toolbar {
    position: sticky; top: var(--pp-sticky-top, 0px); z-index: 20; margin: 0 -16px 16px; padding: 10px 16px 8px;
    flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; background: rgba(10, 10, 15, .96); border-bottom: 1px solid var(--pp-line);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  /* Inside the plans the sticky cadence bar also covers the top: clear header + bar. */
  .pp .pp-plans .pp-grid [id], .pp .pp-plans .pp-grid a, .pp .pp-plans .pp-grid summary, .pp .pp-plans .pp-card, .pp .pp-usage-note {
    scroll-margin-top: calc(var(--pp-sticky-top, 64px) + var(--pp-bar-h, 96px) + 12px);
  }
  .pp .pc-cadence { display: contents; }
  .pp .pc-cadence-group { display: flex; flex: 1 0 100%; }
  .pp .pc-cadence-opt { flex: 1; min-width: 0; padding: 0 10px; }
  .pp .pc-cadence-caption { flex: 1; align-self: center; text-align: left; min-width: 0; padding-left: 4px; }
  .pp .pp-compare-link { min-height: 32px; font-size: .82rem; padding: 0 4px; }
  .pp .pc.pp-card { display: flex; flex-direction: column; gap: 12px; padding: 20px 16px 14px; }
  .pp .pp-buy { padding: 14px; }
  .pp .pp-benefits { border-top: 1px solid var(--pp-line); padding-top: 6px; }
  .pp .pp-benefits > summary { min-height: 44px; }
  .pp .pc-price { font-size: 2.6rem; }
  .pp .pp-table-wrap { display: none; }
  .pp .pp-compare-cards { display: flex; flex-direction: column; gap: 10px; }
  .pp .pp-ccard { border-radius: 16px; border: 1px solid color-mix(in srgb, var(--tier) 30%, #24243a); background: var(--pp-panel); }
  .pp .pp-ccard > summary { display: flex; align-items: center; min-height: 52px; padding: 0 16px; cursor: pointer; list-style: none; font-size: 1.05rem; font-weight: 800; color: #fff; border-radius: 16px; }
  .pp .pp-ccard > summary .pp-chev { margin-left: auto; }
  .pp .pp-ccard dl { margin: 0; padding: 0 16px 14px; }
  .pp .pp-dl-group { padding: 12px 0 4px; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #b3aeff; }
  .pp .pp-dl-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 8px 0; border-top: 1px solid #1b1b2b; font-size: .86rem; }
  .pp .pp-dl-row dt { color: var(--pp-text); font-weight: 600; }
  .pp .pp-dl-row dd { margin: 0; text-align: right; color: var(--pp-soft); }
  .pp .pp-compare, .pp .pp-faq { margin-top: 52px; }
  .pp .pp-q > summary { padding: 12px 16px; font-size: .95rem; }
  .pp .pp-a { padding: 0 16px 16px; }
  .pp .pp-final .pp-btn { width: 100%; }
  .pp .pp-partner { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 44px; padding: 18px; }
  .pp .pp-partner-cta { width: 100%; justify-content: center; }
}
@media (max-width: 359px) {
  .pp .pp-opt-pill { padding: 2px 6px; font-size: .64rem; }
  .pp .pc-cadence-opt { gap: 5px; padding: 0 6px; }
  .pp .pp-card-head { flex-wrap: wrap; }
  .pp .pc-price { font-size: 2.3rem; }
  .pp .pp-meter li { grid-template-columns: 3em minmax(0, 1fr) auto; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .pp *, .pp *::before, .pp *::after { transition: none !important; animation: none !important; }
  .pp .pp-tile:hover, .pp .pc.pp-card:hover, .pp .pc-cta.pp-cta:hover { transform: none; }
}

/* visual-hooks patch-r1 (fix 8): per-plan media strip */
.pp .pp-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 2px 0 8px; }
.pp .pp-thumbs img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .08); background: #0e0e15; }
@media (max-width: 640px) { .pp .pp-thumbs { gap: 5px; } .pp .pp-thumbs img { aspect-ratio: 4 / 3; } }
