/* ==========================================================================
   Pricing page (content/en/pages/pricing.html). Loaded after feature-page.css.
   Scoped to body.rc-pricing-page. Same building blocks as download-page.css.
   ========================================================================== */

/* Dark cards: same flat glass as the download and feature pages */
.rc-pricing-page .st-card--dark {
  background: rgba(255, 255, 255, 0.035) !important;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.035) 55%, rgba(255, 255, 255, 0.045) 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 32px rgba(0, 0, 0, 0.25) !important;
}

/* ---------- Hero: crown, sapphires and cards dropped from above (pricing-page.js) ---------- */
.pr-drop-stage {
  position: absolute;
  inset: 0;
  /* On wide screens the phones stay around the text (1440px frame) instead of going to the edges */
  left: 50%;
  right: auto;
  width: min(100%, 1440px);
  transform: translateX(-50%);
  z-index: 2;              /* under the title and buttons (.rc-container is z 6) */
  pointer-events: none;
  overflow: hidden;
  visibility: hidden;      /* shown by pricing-page.js once every piece is above the screen */
}

.pr-drop {
  position: absolute;
  display: block;
  will-change: transform;
  transform: rotate(var(--rot, 0deg));   /* no-JS fallback */
}

.pr-drop-inner {
  display: block;
  will-change: transform, opacity;
}

.pr-drop img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 20px 26px rgba(74, 52, 30, 0.28));
  will-change: transform;
}

/* Six phone mockups around the title (cropped WebP copies in assets/mockups/pricing/) */
.pr-drop img { filter: drop-shadow(0 26px 30px rgba(40, 30, 20, 0.32)); }

/* Positions in % of the frame above; sizes also follow the height of the window (vh) */
.prd-1 { --rot: -8deg;  width: clamp(96px, min(12.5vw, 27vh), 205px); left: 3%;   top: 19vh; }
.prd-2 { --rot: 8deg;   width: clamp(96px, min(12.5vw, 27vh), 205px); right: 3%;  top: 12vh; }
.prd-3 { --rot: 10deg;  width: clamp(70px, min(8vw, 17vh), 130px);     left: 20%;  bottom: 5vh; }
.prd-4 { --rot: -12deg; width: clamp(80px, min(9vw, 19vh), 148px);     right: 5%;  bottom: 3vh; }
.prd-5 { --rot: 6deg;   width: clamp(48px, min(4.8vw, 10vh), 80px);    left: 24%;  top: 16vh; }
.prd-6 { --rot: -6deg;  width: clamp(62px, min(7vw, 15vh), 114px);     right: 21%; bottom: 25vh; }

@media (max-width: 1100px) {
  .prd-3 { left: 6%; }
  .prd-4 { right: 6%; bottom: 3vh; }
  .prd-5, .prd-6 { display: none; }
}
/* Short laptop screens: the two small phones near the text would cover the pill and the price chips */
@media (min-width: 769px) and (max-height: 800px) {
  .prd-5, .prd-6 { display: none; }
}

/* Phones: four phones peek from the corners, behind the text (it stays readable) */
@media (max-width: 768px) {
  .prd-1 { width: 72px; left: -24px; top: 11vh; }
  .prd-2 { width: 80px; right: -28px; top: 8vh; bottom: auto; }
  .prd-3 { width: 70px; left: -20px; top: auto; bottom: 5vh; }
  .prd-4 { display: block; width: 74px; right: -22px; bottom: 9vh; }
  .prd-5, .prd-6 { display: none; }
}

/* ---------- Founder pill (hero) ---------- */
.rc-pricing-page a.pr-founder-pill {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 6px 8px 6px 6px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: #0A0E1A;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 8px 24px rgba(10, 14, 26, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.pr-founder-pill-tag,
.pr-founder-pill-time {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.pr-founder-pill-tag { color: #FFFFFF; background: linear-gradient(135deg, #E8A33D 0%, #C9761E 100%); }
.pr-founder-pill-time { color: #1E3A6E; background: rgba(53, 99, 201, 0.1); font-variant-numeric: tabular-nums; }

[data-founder][hidden] { display: none !important; }

.pr-founder-pill-short { display: none; }

/* Plans at a glance, under the hero button */
.pr-price-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.rc-pricing-page a.pr-chip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px 12px 14px;
  border-radius: 18px;
  text-align: left;
  color: #0A0E1A;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.5) 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 12px 32px rgba(10, 14, 26, 0.06);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.rc-pricing-page a.pr-chip:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 16px 40px rgba(10, 14, 26, 0.12); }

.pr-chip-price {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  min-width: 62px;
  height: 48px;
  padding: 0 12px;
  border-radius: 12px;
  align-items: center;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1E3A6E;
  background: rgba(53, 99, 201, 0.1);
}

.pr-chip-price small {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  margin-left: 2px;
  opacity: 0.8;
}

.pr-chip-text {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  line-height: 1.35;
  color: #5A657D;
}

.pr-chip-text strong {
  font-size: 15px;
  font-weight: 700;
  color: #0A0E1A;
}

.pr-chip--premium .pr-chip-price {
  color: #FFFFFF;
  background-color: #191A37;
  background-image:
    radial-gradient(circle at 20% 20%, #3563c9 0%, transparent 65%),
    radial-gradient(circle at 85% 90%, #3563c9 0%, transparent 60%),
    linear-gradient(135deg, #101426 0%, #2E3B6D 100%);
}

/* ---------- Comparison: grouped rows + highlighted Premium column ---------- */
.pr-compare thead th small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.65;
}

.pr-compare .pr-col-premium,
.pr-compare tbody td:last-child {
  background: rgba(53, 99, 201, 0.12);
}

.pr-compare thead .pr-col-premium {
  background: rgba(53, 99, 201, 0.28);
  color: #FFFFFF;
}

.pr-compare tbody tr.pr-table-group th {
  padding-top: 22px;
  padding-bottom: 10px;
  font-family: var(--rc-font-mono, 'JetBrains Mono', monospace);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93C5FD;
  background: rgba(255, 255, 255, 0.02);
}

.pr-compare tbody th a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(147, 197, 253, 0.35);
  text-underline-offset: 3px;
}

.pr-compare tbody th a:hover { color: #93C5FD; text-decoration-color: #93C5FD; }

/* ---------- Founder offer banner (plans) ---------- */
.pr-founder {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto 40px;
  padding: 34px 40px;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  color: #FFFFFF;
  background-color: #1B1630;
  background-image:
    radial-gradient(circle at 12% 0%, rgba(232, 163, 61, 0.45) 0%, transparent 55%),
    radial-gradient(circle at 92% 110%, #3563c9 0%, transparent 55%),
    linear-gradient(135deg, #1A1A38 0%, #101426 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 20px 50px rgba(0, 0, 0, 0.3);
}

.pr-founder-text { display: flex; flex-direction: column; gap: 10px; }

.pr-founder-tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  background: linear-gradient(135deg, #E8A33D 0%, #C9761E 100%);
}

.pr-founder h3 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.pr-founder-price { color: #F5C26B; }
.pr-founder-per { font-size: 0.6em; font-weight: 600; color: rgba(255, 255, 255, 0.7); }

.pr-founder p {
  margin: 0;
  max-width: 470px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.pr-founder-side { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }

.pr-countdown { display: grid; grid-template-columns: repeat(4, 64px); gap: 8px; }

.pr-countdown > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.pr-countdown span {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.pr-countdown small {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.rc-pricing-page .pr-founder-btn { justify-content: center; }

.pr-founder .pr-founder-note { font-size: 12px; text-align: center; color: rgba(255, 255, 255, 0.55); }

/* ---------- Billing toggle (Premium price) ---------- */
.pr-billing {
  display: flex;
  justify-content: center;
  gap: 4px;
  width: max-content;
  margin: 0 auto 28px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.rc-pricing-page .pr-billing-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.rc-pricing-page .pr-billing-btn.is-active { color: #10204A; background: #FFFFFF; }
.rc-pricing-page .pr-billing-btn:focus-visible { outline: 2px solid #93C5FD; outline-offset: 2px; }

.pr-billing-save {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  background: #3563c9;
}

/* ---------- Cream zone: tools grid + FAQ on beige (same as the download page) ---------- */
.pr-cream-zone .products-header { text-align: center; }

.pr-cream-lead {
  max-width: 560px;
  margin: 14px auto 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted-light, #5A657D);
}

.pr-tool-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  margin-left: 4px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  vertical-align: 1px;
  color: #FFFFFF;
  background: #3563c9;
}

.pr-cream-zone .pr-faq {
  padding-top: 110px;
  padding-bottom: 0;
}

.pr-cream-zone .pr-faq .st-head h2 { color: var(--text-dark, #0A0E1A); }
.pr-cream-zone .pr-faq .st-accent { color: var(--green-italic-light, #1E3A6E); }
.pr-cream-zone .pr-faq .st-note { color: #5A657D; }
.pr-cream-zone .pr-note-link { color: #3563c9 !important; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .pr-founder { grid-template-columns: 1fr; padding: 30px 26px; }
  .pr-founder-side { align-items: flex-start; }
  .rc-pricing-page .pr-founder-btn { align-self: stretch; }
  .pr-founder .pr-founder-note { text-align: left; }
}

@media (max-width: 640px) {
  .rc-pricing-page a.pr-chip { width: 100%; max-width: 340px; }
  .rc-pricing-page a.pr-founder-pill { flex-wrap: nowrap; gap: 8px; font-size: 13px; }
  .pr-founder-pill-long { display: none; }
  .pr-founder-pill-short { display: inline; white-space: nowrap; }
  .pr-founder-pill-tag, .pr-founder-pill-time { white-space: nowrap; padding: 0 9px; font-size: 11.5px; }
  .pr-countdown { grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  .pr-founder-side { align-items: stretch; }
  .pr-cream-zone .pr-faq { padding-top: 70px; }
}

/* ---------- Creator code (bottom of the page, same card as "Sell your ranges" on the Database) ---------- */
.st-section.pr-creator { padding-top: 64px; padding-bottom: 0; } /* after the FAQ (.st-section + .st-section has no top space) */
.pr-creator-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 40px;
  border-radius: 26px;
  color: #FFFFFF;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0) 55%),
    linear-gradient(135deg, #142A61 0%, #0E1C44 55%, #0A1433 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-align: start;
}
.pr-creator-cta h2 { margin: 6px 0 12px; font-size: clamp(26px, 3vw, 36px); font-weight: 600; line-height: 1.15; letter-spacing: -0.03em; color: #FFFFFF; }
.pr-creator-cta p { margin: 0 0 20px; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.75); }
.pr-creator-cta .st-eyebrow { font-size: 13px; color: #93C5FD; }
.pr-creator-cta ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.pr-creator-cta li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.85); }
.pr-creator-cta li svg { width: 18px; height: 18px; color: #93C5FD; flex-shrink: 0; margin-top: 2px; }
.pr-creator-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.pr-creator-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  color: #FFFFFF !important; background: #3563C9; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: background-color 0.15s ease;
}
.pr-creator-btn:hover { background: #2C4A8F; }
.pr-creator-btn:focus-visible, .pr-creator-link:focus-visible { outline: 2px solid #93C5FD; outline-offset: 3px; }
.pr-creator-link { font-size: 14px; color: #93C5FD !important; text-decoration: underline; text-underline-offset: 3px; }
.pr-creator-link:hover { color: #FFFFFF !important; }
@media (max-width: 860px) { .pr-creator-cta { grid-template-columns: 1fr; padding: 28px; } }
