/* ReBoost Hub Plans & Pricing (/temp/pricing): "the receipt with nothing hidden".
   Hero identity: ink night (#0b1020) with a faint dot grid and an indigo (#6d7bff) glow, indigo primary button; a paper
   receipt LEFT prints the free extras line by line, copy RIGHT. No photo, no person, no van, no phone, so it reads
   differently from every category hero (see the list in docs/playbooks/temp-page-from-design.md).
   Value before price (owner, Sep 25): the receipt hero (kept as designed, owner), then the plan cards with the
   complete grouped list of what each plan includes (price + button in the card header; the ONLY place plan contents
   show), the "On every plan" strip, add-ons (dark, not part of any plan), FAQ (light), closing night band. Prefix pr-. */

.pricing-page {
  --rb-bg: #0b1020;
  background: var(--rb-bg);
  color: #0f172a;
}
.pr-main { min-width: 0; }
.pr-main > footer { width: auto; margin: 0; padding-inline: 24px; }

.pr {
  --ink: #0f172a;
  --ink2: #3b4760;
  --night: #0b1020;
  --indigo: #6d7bff;
  --indigo-deep: #4c5bf0;
  --paper: #f5f6fb;
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  background: var(--paper);
}
.pr *, .pr *::before, .pr *::after { box-sizing: border-box; }
:where(.pr) :where(h1, h2, h3, p, ul, ol, figure, table) { margin: 0; padding: 0; }
:where(.pr) :where(ul, ol) { list-style: none; }
.pr svg { display: block; overflow: visible; }
.pr h1, .pr h2, .pr h3, .pr-plan__price b, .pr-addon__price b, .pr-receipt__total b {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -.015em;
}
.pr h1 em, .pr h2 em { font-family: inherit; font-style: normal; font-weight: 700; letter-spacing: inherit; }
.pr :is(a, button, summary, input, select):focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; }
.pr-i { width: 20px; height: 20px; }
.pr-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.pr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 10px;
  background: var(--indigo-deep);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22) inset, 0 8px 22px rgba(76, 91, 240, .45);
  color: #fff;
  font: 700 17px/1 "DM Sans", sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.pr-btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .28) inset, 0 12px 28px rgba(76, 91, 240, .55); }
.pr-btn .pr-i { width: 18px; height: 18px; }
.pr-btn--ghost { border: 1px solid rgba(255, 255, 255, .34); background: rgba(255, 255, 255, .04); box-shadow: none; }
.pr-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); box-shadow: none; }
.pr-btn--lg { min-height: 58px; font-size: 18px; }

.pr-head { display: grid; gap: 8px; max-width: 760px; margin: 0 auto 26px; text-align: center; }
.pr-head h2 { font-size: clamp(30px, 7.4vw, 44px); line-height: 1.06; }
.pr-sub { color: var(--ink2); font-size: 17px; line-height: 1.55; }
.pr-tag { justify-self: center; padding: 5px 12px; border-radius: 999px; background: rgba(255, 176, 32, .14); color: #ffc55c; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* ---------------------------------------------------------------- hero */
.pr-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 40px 16px 52px;
  background:
    radial-gradient(ellipse 60% 70% at 18% 40%, rgba(109, 123, 255, .3), transparent 70%),
    radial-gradient(ellipse 40% 50% at 92% 10%, rgba(32, 201, 151, .12), transparent 72%),
    linear-gradient(180deg, #0b1020 0%, #0e1430 100%);
  color: #fff;
}
.pr-hero__grid { position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.4px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000 30%, transparent 100%); pointer-events: none; }
.pr-hero__in { display: grid; gap: 34px; max-width: 1180px; margin: 0 auto; }
.pr-hero__copy { display: grid; justify-items: start; gap: 16px; }
.pr-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: rgba(255, 255, 255, .06); color: #d9deff; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pr-kicker__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--indigo); box-shadow: 0 0 0 4px rgba(109, 123, 255, .25); }
.pr .pr-hero h1 { margin: 0; color: #fff; font-size: clamp(38px, 10vw, 50px); line-height: 1.02; letter-spacing: -.03em; }
.pr .pr-hero h1 em { display: block; margin-top: 8px; color: #a5aeff; }
.pr-hero__sub { max-width: 560px; color: #c7cde6; font-size: 17.5px; line-height: 1.55; }
.pr-hero__context { padding: 6px 12px; border-radius: 8px; background: rgba(32, 201, 151, .14); color: #7ff0cc; font-size: 14px; font-weight: 700; }
.pr-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; margin-top: 4px; }
.pr-hero__actions .pr-btn { flex: 1 1 220px; }

/* the receipt: every line holds its space, motion only changes opacity/transform, so nothing shifts */
.pr-receipt { position: relative; display: grid; justify-items: center; gap: 12px; }
.pr-receipt__paper {
  position: relative;
  width: min(100%, 360px);
  padding: 22px 22px 34px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f7f2 100%);
  color: #1d2436;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .06);
  transform: rotate(-1.6deg);
  -webkit-mask: radial-gradient(circle at 8px 100%, transparent 7px, #000 7.5px) 0 0 / 16px 100% repeat-x;
  mask: radial-gradient(circle at 8px 100%, transparent 7px, #000 7.5px) 0 0 / 16px 100% repeat-x;
}
.pr-receipt__head { display: grid; justify-items: center; gap: 2px; padding-bottom: 14px; border-bottom: 2px dashed #c9ccd6; text-align: center; }
.pr-receipt__head b { font-family: "Space Grotesk", sans-serif; font-size: 22px; letter-spacing: -.01em; }
.pr-receipt__head small { color: #5b6275; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; }
.pr-receipt__lines { display: grid; gap: 11px; padding: 16px 0; border-bottom: 2px dashed #c9ccd6; }
.pr-receipt__lines li { display: flex; align-items: baseline; gap: 8px; font-size: 15px; }
.pr-receipt__lines i { flex: 1 1 auto; min-width: 16px; border-bottom: 2px dotted #b6bac6; transform: translateY(-4px); }
.pr-receipt__lines b { color: #0e9f6e; font-weight: 800; letter-spacing: .04em; }
.pr-receipt__total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 14px; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; }
.pr-receipt__total b { color: #1d2436; font-size: 30px; letter-spacing: -.02em; text-transform: none; }
.pr-receipt__total small { margin-left: 2px; color: #5b6275; font-size: 15px; font-weight: 600; }
.pr-receipt__stamp { position: absolute; right: 64px; bottom: 98px; padding: 5px 10px; border: 3px solid #4c5bf0; border-radius: 6px; color: #4c5bf0; font: 800 14px/1 "Space Grotesk", sans-serif; letter-spacing: .1em; text-transform: uppercase; opacity: .88; transform: rotate(-12deg); }
.pr-receipt figcaption { color: #aab2d4; font-size: 14px; font-weight: 600; }

.pr-printing .pr-receipt__lines li, .pr-printing .pr-receipt__total { opacity: 0; transform: translateY(-6px); transition: opacity .35s ease, transform .35s ease; }
.pr-printing .pr-receipt__stamp { opacity: 0; transform: rotate(-12deg) scale(1.6); transition: opacity .2s ease, transform .28s cubic-bezier(.2, 1.4, .4, 1); }
.pr-printing .is-on { opacity: 1; transform: none; }
.pr-printing .pr-receipt__stamp.is-on { opacity: .88; transform: rotate(-12deg) scale(1); }

/* ---------------------------------------------------------------- plans (the 8bae170c card look: colored top bar, dark
   header with price + button, clean check lists). The lists are the ONLY place plan contents show: no compare table. */
.pr-plans { padding: 52px 16px 44px; background: var(--paper); scroll-margin-top: 140px; }
.pr-cards { display: grid; gap: 18px; max-width: 1180px; margin: 0 auto; }
.pr-plan {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 14px 32px -12px rgba(15, 23, 42, .18), 0 0 0 1px rgba(15, 23, 42, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.pr-plan:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 22px 40px -14px rgba(15, 23, 42, .26), 0 0 0 1px color-mix(in srgb, var(--plan) 45%, transparent); }
.pr-plan__top { display: grid; grid-template-rows: auto auto 1fr auto; gap: 6px; padding: 22px 22px 22px; background: linear-gradient(160deg, #141b36 0%, #0d1328 100%); color: #fff; border-top: 5px solid var(--plan); }
.pr .pr-plan__name { color: color-mix(in srgb, var(--plan) 70%, #fff); font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pr-plan__price { display: flex; align-items: baseline; gap: 4px; }
.pr-plan__price b { font-size: 50px; line-height: 1; }
.pr-plan__price span { color: #aeb6d6; font-size: 17px; font-weight: 600; }
.pr-plan__fit { color: #d5daf0; font-size: 16px; line-height: 1.45; }
.pr-plan__body { display: flex; flex-direction: column; flex: 1 1 auto; padding-bottom: 8px; }
.pr-plan__sec { padding: 18px 22px 4px; }
.pr-plan__sec + .pr-plan__sec { border-top: 1px solid #eceef5; }
.pr .pr-plan__group { margin: 0 0 12px; color: var(--ink2); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pr-plan__later { color: #8a90a6; font-size: 15px; font-style: italic; line-height: 1.4; }
.pr-plan__nojs { padding: 18px 22px; color: var(--ink2); font-size: 15.5px; line-height: 1.5; }
.pr-list { display: grid; gap: 11px; padding-bottom: 14px; }
.pr-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); font-size: 16px; line-height: 1.4; }
.pr-ok { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; color: var(--plan, #0e9f6e); }
.pr-plan__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 12px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--plan);
  box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--plan) 70%, transparent);
  color: #fff;
  font: 700 17px/1.2 "DM Sans", sans-serif;
  text-align: center;
  text-decoration: none;
  transition: transform .18s ease, filter .18s ease;
}
.pr-plan__btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.pr-plan__btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.pr-plan--mid .pr-plan__btn { background: var(--indigo-deep); }
.pr-plan--top .pr-plan__btn { background: #0f9f78; }

.pr-every { max-width: 1180px; margin: 22px auto 0; padding: 22px; border-radius: 16px; background: linear-gradient(160deg, #141b36 0%, #0d1328 100%); color: #fff; box-shadow: 0 20px 40px -18px rgba(11, 16, 32, .55); }
.pr .pr-every h3 { margin-bottom: 16px; color: #fff; font-size: 20px; }
.pr-every__list { display: grid; gap: 14px; }
.pr-every__list li { display: flex; align-items: center; gap: 12px; }
.pr-every__ic { display: grid; flex: 0 0 auto; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(109, 123, 255, .16); color: #b3bbff; }
.pr-every__ic svg { width: 22px; height: 22px; }
.pr-every__list b { display: block; font-size: 16px; }
.pr-every__list small { display: block; margin-top: 2px; color: #b9c0dc; font-size: 14.5px; }
.pr-every__list a { color: #b3bbff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.pr-every__list a:hover { color: #fff; }
.pr-foot { max-width: 1180px; margin: 16px auto 0; color: var(--ink2); font-size: 14.5px; text-align: center; }

/* ---------------------------------------------------------------- add-ons (dark band: not part of any plan) */
.pr-addons { position: relative; padding: 60px 16px 64px; background: linear-gradient(180deg, #0b1020 0%, #111838 100%); color: #fff; scroll-margin-top: 140px; }
.pr-addons .pr-sub { color: #c1c8e4; }
.pr-addon-grid { display: grid; gap: 16px; max-width: 1180px; margin: 0 auto; }
.pr-addon {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
  transition: transform .2s ease, border-color .2s ease;
}
.pr-addon::before { content: ""; position: absolute; left: 22px; top: 0; width: 56px; height: 4px; border-radius: 0 0 4px 4px; background: var(--ac); }
.pr-addon:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--ac) 55%, transparent); }
.pr-addon__name { color: color-mix(in srgb, var(--ac) 60%, #fff); font-size: 15px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pr-addon__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.pr-addon__price b { font-size: 34px; line-height: 1; }
.pr-addon__price span { color: #b9c0dc; font-size: 16px; font-weight: 600; }
.pr-addon__text { color: #d3d8ee; font-size: 16px; line-height: 1.5; }
.pr-addon__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin-top: auto; padding: 0 18px; border-radius: 10px; background: var(--ac); color: #fff; font-size: 16px; font-weight: 700; text-decoration: none; transition: filter .18s ease; }
.pr-addon__btn:hover { color: #fff; filter: brightness(1.1); }
.pr-addon__btn .pr-i { width: 17px; height: 17px; }
.pr-addon__link { align-self: center; color: #d3d8ee; font-size: 15px; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 4px; }
.pr-addon__link:hover { color: #fff; }

/* ---------------------------------------------------------------- FAQ */
.pr-faq-wrap { padding: 56px 16px 60px; background: var(--paper); }
.pr-faq { display: grid; gap: 10px; max-width: 900px; margin: 0 auto; }
.pr .pr-faq h2 { margin-bottom: 10px; font-size: clamp(28px, 6.4vw, 38px); text-align: center; }
.pr-faq details { border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(15, 23, 42, .08), 0 6px 16px -10px rgba(15, 23, 42, .2); }
.pr-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; color: var(--ink); font-size: 17px; font-weight: 700; list-style: none; cursor: pointer; }
.pr-faq summary::-webkit-details-marker { display: none; }
.pr-plus { flex: 0 0 auto; width: 18px; height: 18px; color: var(--indigo-deep); transition: transform .25s ease; }
.pr-faq details[open] .pr-plus { transform: rotate(45deg); }
.pr-faq details p { padding: 0 18px 17px; color: var(--ink2); font-size: 16px; line-height: 1.6; }

/* ---------------------------------------------------------------- plan form (existing flow) */

/* ---------------------------------------------------------------- closing night band */
.pr-finale {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 64px 16px 72px;
  background:
    radial-gradient(ellipse 55% 60% at 12% 20%, rgba(109, 123, 255, .32), transparent 70%),
    radial-gradient(ellipse 40% 50% at 88% 90%, rgba(32, 201, 151, .16), transparent 72%),
    linear-gradient(180deg, #080c1a 0%, #0d1430 100%);
  color: #fff;
  scroll-margin-top: 140px;
}
.pr-finale__in { display: grid; justify-items: start; gap: 18px; max-width: 1180px; margin: 0 auto; }
.pr .pr-finale h2 { color: #fff; font-size: clamp(36px, 9.6vw, 46px); line-height: 1.03; letter-spacing: -.025em; }
.pr .pr-finale h2 em { display: block; margin-top: 6px; color: #a5aeff; }
.pr-finale__sub { max-width: 620px; color: #c7cde6; font-size: 17px; line-height: 1.55; }
.pr-finale__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; width: 100%; }
.pr-finale__actions .pr-btn { flex: 1 1 100%; }
.pr-finale__link { color: #fff; font-size: 16.5px; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 5px; }
.pr-finale__link:hover { color: #c3c9ff; text-decoration-color: currentColor; }
.pr-finale__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pr-finale__chips li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: rgba(8, 12, 26, .55); color: #d7ddef; font-size: 13.5px; font-weight: 600; }
.pr-finale__chips li::before { content: ""; width: 9px; height: 5px; margin-top: -3px; border: solid #3ee88a; border-width: 0 0 2px 2px; transform: rotate(-45deg); }

/* ---------------------------------------------------------------- tablet */
@media (min-width: 760px) {
  .pr-hero { padding: 56px 32px 64px; }
  .pr-hero__actions .pr-btn { flex: 0 0 auto; }
  .pr-addon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pr-finale__actions .pr-btn { flex: 0 0 auto; }
  .pr-plans, .pr-addons, .pr-faq-wrap { padding-inline: 32px; }
  .pr-every__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  /* Side by side: the cards share row lines (header + the four groups), so every group label starts level across
     all three cards and the cards end at the same height. */
  .pr-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; row-gap: 0; }
  .pr-plan { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
  .pr-plan__body { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; padding-bottom: 0; }
  .pr-plan__sec:last-child { padding-bottom: 12px; }
  .pr-every__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 24px; }
}

/* ---------------------------------------------------------------- wide: receipt LEFT, copy RIGHT */
@media (min-width: 1100px) {
  .pr-hero { padding: 64px clamp(40px, 5vw, 96px) 72px; }
  .pr-hero__in { grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); align-items: center; gap: clamp(40px, 5vw, 90px); }
  .pr .pr-hero h1 { font-size: clamp(46px, 4.2vw, 64px); }
  .pr-hero__sub { font-size: 19px; }
  .pr-plans { padding: 64px clamp(40px, 5vw, 96px) 72px; }
  .pr-addons, .pr-faq-wrap { padding: 76px clamp(40px, 5vw, 96px); }
  .pr-finale { padding: 88px clamp(40px, 5vw, 96px) 96px; }
  .pr .pr-finale h2 { font-size: clamp(46px, 3.8vw, 64px); }
  .pr-finale__sub { font-size: 19px; }
}
@media (max-width: 1099px) { .pr-hero__copy { order: -1; } }
@media (max-width: 759px) { .pr-receipt__paper { transform: none; } }
@media (max-width: 1180px) {
  .pr-plans, .pr-addons, .pr-finale { scroll-margin-top: 140px; }
}
@media (min-width: 1181px) {
  .pr-plans, .pr-addons, .pr-finale { scroll-margin-top: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  .pr-btn, .pr-plan, .pr-plan__btn, .pr-addon, .pr-addon__btn, .pr-plus { transition: none !important; }
  .pr-plan:hover, .pr-addon:hover, .pr-btn:hover, .pr-plan__btn:hover { transform: none; }
}
