/* ============================================================
   AscendQ v2 — results page
   ============================================================ */
.results {
  display: none;
  animation: rIn .55s cubic-bezier(.2,.7,.2,1) both;
}
.results.show { display: block; }
@keyframes rIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* === Recent-reviews badge === */
.r-rating {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 4px auto 14px;
  padding: 7px 14px;
  border: 1px solid rgba(221,185,116,0.30);
  background: rgba(221,185,116,0.06);
  border-radius: 999px;
  width: fit-content;
  font-family: var(--ff-sans);
  font-size: 12.5px;
  color: var(--text);
}
.r-rating-stars { color: var(--gold); letter-spacing: 1px; font-size: 13px; }
.r-rating-value { font-weight: 600; color: var(--text); }
.r-rating-meta {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.10em;
  color: var(--text-sub);
  text-transform: uppercase;
}
.r-rating-meta b { color: var(--text); font-weight: 600; }

.r-eyebrow {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  text-align: center;
  margin: 8px 0 14px;
  font-weight: 600;
}
.r-headline {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: clamp(40px, 8vw, 58px);
  line-height: 1.04;
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text);
}
.r-headline em { color: var(--gold); font-style: italic; }
.r-sub {
  text-align: center;
  color: var(--text-dim);
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 18px;
  margin-bottom: 36px;
}

/* === Bell curve panel === */
.bell-wrap {
  background: rgba(232,228,220,0.025);
  border: 1px solid rgba(232,228,220,0.08);
  border-radius: 18px;
  padding: 22px 18px 14px;
  margin: 0 auto 36px;
  max-width: 540px;
}
.bell-wrap svg { width: 100%; height: auto; display: block; }
.bell-legend {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 12px;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--text-sub);
  text-transform: uppercase;
}
.bell-legend strong { color: var(--text); font-family: var(--ff-serif); font-style: italic; font-weight: 400; font-size: 16px; letter-spacing: 0; margin-left: 6px; }
.bell-legend .dot-cur, .bell-legend .dot-short, .bell-legend .dot-pred {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px;
}
.bell-legend .dot-cur   { background: #5E5A52; }
.bell-legend .dot-short { background: var(--green); }
.bell-legend .dot-pred  { background: var(--gold); box-shadow: 0 0 6px rgba(221,185,116,0.6); }

/* === Weakness bars (liquid + bubbles) === */
.weak-block {
  background: rgba(232,228,220,0.04);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  margin: 0 auto 36px;
  max-width: 540px;
}
.weak-head {
  text-align: center;
  margin-bottom: 22px;
}
.weak-head-eyebrow {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 600;
}
.weak-head-title {
  font-family: var(--ff-serif);
  font-size: 22px;
  color: var(--text);
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.weak-head-title em { color: var(--gold); font-style: italic; }
.weak-list { display: flex; flex-direction: column; gap: 16px; }
.weak-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.weak-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--ff-sans);
  font-size: 14.5px;
  color: var(--text);
}
.weak-label .name { font-weight: 500; }
.weak-label .pct {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  color: var(--text-sub);
  letter-spacing: 0.06em;
}

/* The bar itself — gradient liquid that fills to (deficit * 100)% */
.weak-bar {
  position: relative;
  height: 18px;
  background: rgba(15,16,17,0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}
.weak-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  background:
    linear-gradient(90deg, rgba(247,110,120,0.85) 0%, rgba(221,107,95,1) 50%, rgba(247,110,120,0.85) 100%);
  border-radius: 10px 0 0 10px;
  transition: width 1.4s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
/* Liquid sheen — moves left↔right inside the fill */
.weak-fill::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.18) 45%,
    rgba(255,255,255,0.30) 50%,
    rgba(255,255,255,0.18) 55%,
    transparent 100%);
  animation: liquidFlow 3.5s ease-in-out infinite;
}
@keyframes liquidFlow {
  0%, 100% { transform: translateX(-40%); }
  50%      { transform: translateX(40%); }
}
/* Bubble — 3 per row, randomized via inline animation-delay */
.weak-bubble {
  position: absolute;
  bottom: -4px;
  width: 5px;
  height: 5px;
  background: rgba(255,255,255,0.55);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255,255,255,0.4);
  animation: bubbleRise linear infinite;
  pointer-events: none;
}
@keyframes bubbleRise {
  0%   { transform: translateY(0) scale(0.6); opacity: 0; }
  10%  { opacity: 0.85; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-22px) scale(1); opacity: 0; }
}

/* === Protocol preview (5 vague titles, always-locked detail panels) === */
.proto-block {
  background: rgba(232,228,220,0.04);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  margin: 0 auto 36px;
  max-width: 540px;
  position: relative;
}
.proto-head {
  text-align: center;
  margin-bottom: 20px;
}
.proto-head-ready {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  background: rgba(125,211,168,0.10);
  border: 1px solid rgba(125,211,168,0.30);
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--green);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
}
.proto-head-ready .r-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(125,211,168,0.7);
  animation: rPulse 1.6s infinite;
}
@keyframes rPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.85); }
}
.proto-head-eyebrow {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 600;
}
.proto-head-title {
  font-family: var(--ff-serif);
  font-size: 22px;
  color: var(--text);
  letter-spacing: -0.005em;
}
.proto-head-title em { color: var(--gold); font-style: italic; }

.proto-list { display: flex; flex-direction: column; gap: 12px; }
.proto-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  background: rgba(15,16,17,0.55);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color .3s, opacity .3s;
}
.proto-num {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold);
  background: rgba(221,185,116,0.10);
  border: 1px solid rgba(221,185,116,0.25);
  border-radius: 8px;
  padding: 6px 0;
  text-align: center;
  font-weight: 600;
}
.proto-body { display: flex; flex-direction: column; gap: 6px; }
.proto-tag {
  display: inline-block;
  width: fit-content;
  font-family: var(--ff-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 2px;
}
.proto-tag[data-kind="personal"]  { color: var(--gold);  background: rgba(221,185,116,0.10); border: 1px solid rgba(221,185,116,0.25); }
.proto-tag[data-kind="cognitive"] { color: var(--green); background: rgba(125,211,168,0.10); border: 1px solid rgba(125,211,168,0.30); }
.proto-title {
  font-family: var(--ff-serif);
  font-size: 17px;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.proto-desc {
  position: relative;
  font-family: var(--ff-sans);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-dim);
  padding: 8px 0 0;
  transition: filter .6s ease;
}
.proto-lock-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s, transform .6s cubic-bezier(.34,1.56,.64,1);
}
.proto-lock-icon svg { width: 18px; height: 18px; color: var(--gold); }
.proto-lock-icon .chain-l, .proto-lock-icon .chain-r {
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(221,185,116,0.5), transparent);
}

/* === Unlock CTA === */
.unlock-wrap {
  text-align: center;
  margin: 0 auto 28px;
  max-width: 540px;
}
.unlock-foot {
  margin-top: 14px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text);
  text-transform: uppercase;
  font-weight: 600;
}

/* === Mobile unlock CTA === */
/* Inline placement directly below the bell curve. The sub-text is hidden
   so the button stays minimal: lock icon + "Unlock full protocol" + arrow. */
@media (max-width: 720px) {
  .unlock-wrap {
    margin: 4px auto 22px;
    padding: 0 4px;
  }
  .unlock-wrap .btn {
    width: 100%;
    box-shadow: 0 10px 30px -8px rgba(0,0,0,0.6), 0 0 24px -4px rgba(221,185,116,0.30);
  }
  .unlock-text-sub { display: none; }
  .unlock-text-main { font-size: 16px; }
  .unlock-foot { margin-top: 10px; font-size: 10.5px; }
  .unlock-hint { font-size: 11px; }
}


/* ============================================================
   Compact protocol preview — titles only, tight rows
   Goal: keep the Unlock CTA in viewport without scrolling on
   most screens. Each item is one row: num + title + chip.
   ============================================================ */
.proto-item-compact {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  background: rgba(15,16,17,0.55);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.proto-item-compact + .proto-item-compact { margin-top: 6px; }
.proto-item-compact .proto-num {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold);
  background: rgba(221,185,116,0.10);
  border: 1px solid rgba(221,185,116,0.25);
  border-radius: 6px;
  padding: 5px 0;
  text-align: center;
  font-weight: 600;
}
.proto-item-compact .proto-title {
  font-family: var(--ff-serif);
  font-size: 16px;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 0;
  /* prevent layout shift on long titles */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.proto-item-compact .proto-cat {
  font-family: var(--ff-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-sub);
  background: rgba(232,228,220,0.04);
  border: 1px solid rgba(232,228,220,0.08);
  padding: 4px 9px;
  border-radius: 100px;
  font-weight: 600;
  white-space: nowrap;
}
/* Per-category accent on the chip */
.proto-item-compact[data-cat="lifestyle"]   .proto-cat { color: var(--gold);  border-color: rgba(221,185,116,0.30); background: rgba(221,185,116,0.07); }
.proto-item-compact[data-cat="sport"]       .proto-cat { color: var(--green); border-color: rgba(125,211,168,0.30); background: rgba(125,211,168,0.07); }
.proto-item-compact[data-cat="cognitive"]   .proto-cat { color: #8B95E8;      border-color: rgba(139,149,232,0.35); background: rgba(139,149,232,0.08); }
.proto-item-compact[data-cat="supplements"] .proto-cat { color: #E8B07A;      border-color: rgba(232,176,122,0.30); background: rgba(232,176,122,0.07); }
.proto-item-compact[data-cat="hormones"]    .proto-cat { color: #DD7B6F;      border-color: rgba(221,123,111,0.30); background: rgba(221,123,111,0.07); }

/* Tighten the surrounding protocol block now that items are smaller */
.proto-block {
  padding: 18px 18px 18px;
  margin-bottom: 22px;
}
.proto-block .proto-head {
  margin-bottom: 12px;
}
.proto-block .proto-head-ready {
  margin-bottom: 8px;
  padding: 4px 10px;
  font-size: 9.5px;
}
.proto-block .proto-head-title {
  font-size: 19px;
}

/* Mobile — the unlock button is sticky-bottom on small screens, but on
   medium screens we still want the protocol short enough that the inline
   CTA appears without scroll. Hide titles' ellipsis-overflow at smaller
   sizes by relaxing white-space. */
@media (max-width: 520px) {
  .proto-item-compact { grid-template-columns: 32px 1fr; gap: 10px; padding: 10px 12px; }
  .proto-item-compact .proto-title { font-size: 14.5px; white-space: normal; }
  .proto-item-compact .proto-cat { display: none; }
}

/* === Make the Unlock CTA harder to miss === */
.unlock-wrap .btn {
  font-size: 17px;
  padding: 20px 44px;
  background: linear-gradient(180deg, #F4D796 0%, #DDB974 100%);
  color: #0F1011;
  font-weight: 700;
  box-shadow: 0 14px 32px -10px rgba(221,185,116,0.65), 0 0 32px -8px rgba(221,185,116,0.40);
  letter-spacing: 0.005em;
}
.unlock-wrap .btn em { color: #0F1011; font-style: italic; font-weight: 700; }
.unlock-wrap .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -10px rgba(221,185,116,0.85), 0 0 44px -8px rgba(221,185,116,0.55);
}
.unlock-foot {
  margin-top: 12px;
  color: var(--text);
  font-weight: 600;
}

/* ============================================================
   Unlock CTA — high-conversion redesign
   Bigger, lock icon, pulsing glow, two-line label with subline,
   "tap to unlock" hint arrow above, reassurance pill below.
   Goal: impossible to miss + impossible to misunderstand.
   ============================================================ */
.unlock-wrap { text-align: center; margin: 0 auto 28px; max-width: 540px; }

/* Hint above the button — bouncing arrow + short label */
.unlock-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}
.unlock-hint-arrow {
  display: inline-block;
  font-size: 14px;
  animation: unlockArrowBounce 1.6s ease-in-out infinite;
}
@keyframes unlockArrowBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

/* The big CTA */
.btn.unlock-cta-big {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 28px;
  background: linear-gradient(180deg, #F4D796 0%, #DDB974 100%);
  color: #0F1011;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.20);
  text-decoration: none;
  font-family: var(--ff-sans);
  font-weight: 700;
  font-size: 18px;
  position: relative;
  transition: transform .15s, box-shadow .25s;
  box-shadow:
    0 18px 38px -10px rgba(221,185,116,0.65),
    0 0 40px -8px rgba(221,185,116,0.45);
  animation: unlockPulse 2.4s ease-in-out infinite;
  width: auto;
  max-width: 460px;
  margin: 0 auto;
}
@keyframes unlockPulse {
  0%, 100% { box-shadow: 0 18px 38px -10px rgba(221,185,116,0.65), 0 0 40px -8px rgba(221,185,116,0.45); }
  50%      { box-shadow: 0 22px 44px -10px rgba(221,185,116,0.80), 0 0 56px -6px rgba(221,185,116,0.65); }
}
.btn.unlock-cta-big:hover {
  transform: translateY(-3px);
  box-shadow:
    0 24px 50px -10px rgba(221,185,116,0.90),
    0 0 64px -6px rgba(221,185,116,0.70);
}
.btn.unlock-cta-big:active { transform: translateY(-1px); }

/* Lock icon inside the button — switches from closed to open on hover */
.unlock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15,16,17,0.18);
  color: #0F1011;
  flex-shrink: 0;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), background .25s;
}
.unlock-icon svg { width: 18px; height: 18px; }
.btn.unlock-cta-big:hover .unlock-icon {
  background: rgba(15,16,17,0.28);
  transform: rotate(-12deg) scale(1.08);
}
.btn.unlock-cta-big:hover .unlock-icon svg path {
  /* Subtle nod toward "opening" — the shackle path rotates a touch */
  transform-origin: 50% 100%;
}

/* Two-line button label */
.unlock-text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  text-align: left;
}
.unlock-text-main {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.unlock-text-sub {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(15,16,17,0.70);
  margin-top: 3px;
  text-transform: none;
}

.btn.unlock-cta-big .btn-arrow {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  transition: transform .2s;
}
.btn.unlock-cta-big:hover .btn-arrow { transform: translateX(4px); }

/* Reassurance pill below the CTA */
.unlock-foot {
  margin-top: 14px;
  text-align: center;
}
.unlock-foot-pill {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 600;
  padding: 7px 16px;
  background: rgba(232,228,220,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
}

/* Mobile sizing */
@media (max-width: 520px) {
  .btn.unlock-cta-big { padding: 16px 20px; gap: 12px; font-size: 16px; }
  .unlock-icon { width: 34px; height: 34px; }
  .unlock-icon svg { width: 16px; height: 16px; }
  .unlock-text-main { font-size: 16px; }
  .unlock-text-sub { font-size: 10.5px; }
  .btn.unlock-cta-big .btn-arrow { font-size: 18px; }
  .unlock-hint { font-size: 10px; }
}
