/* =====================================================================
   qiboo-hero2.css — v2.1 anonymous homepage rebuild (2026-07-24)
   Loaded on index.html after styles.css + qiboo-home.css. Scoped to the
   new anon sections only (hero-v2, cta-v2, conditions-row, pro-v2,
   proof-line) plus the legacy-section hide list below. Uses the shared
   design tokens from styles.css — no new fonts, no new color system.
   Cinnabar (--cinnabar, styles.css) is used ONLY on the hero stamp —
   single-touch rule, do not reuse it anywhere else in this file.
   ===================================================================== */

/* ---- Legacy section hide list (anon only — these sections live inside
   #view-anon, which is already fully hidden for signed-in states by
   qiboo-home.css, so a plain display:none here only ever affects anon
   visitors). Left in the DOM on purpose — no SEO cost, easy rollback. */
#view-anon [data-screen-label="pro-teaser"],
#view-anon [data-screen-label="how-it-works"],
#view-anon [data-screen-label="free-vs-pro"],
#view-anon [data-screen-label="appraisal"],
#view-anon [data-screen-label="sources"],
#view-anon [data-screen-label="featured"],
#view-anon [data-screen-label="quick-access"],
#view-anon [data-screen-label="search"],
#view-anon [data-screen-label="press"],
#view-anon [data-screen-label="collections"],
#view-anon [data-screen-label="multimedia"],
#view-anon [data-screen-label="directory"],
#view-anon [data-screen-label="education"],
#view-anon [data-screen-label="feed"],
#view-anon [data-screen-label="newsletter"] {
  display: none;
}

/* =====================================================================
   1. HERO — "the seal moment"
   ===================================================================== */
.qhero2 { padding: clamp(40px, 6vw, 76px) 0 clamp(28px, 4vw, 44px); }
.qhero2__in {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.qhero2__h {
  font-size: clamp(32px, 4.4vw, 54px); line-height: 1.08; font-weight: 600;
  color: var(--primary-darker); margin: 0 0 16px; letter-spacing: -0.02em;
}
.qhero2__h em { font-style: italic; color: var(--primary); }
.qhero2__lede {
  font-family: var(--font-sans); font-size: 17px; line-height: 1.6;
  color: var(--ink-soft); max-width: 480px; margin: 0;
}

/* the appraised-study card — the ONE cinnabar touch on the page (the stamp) */
.qhero2__card {
  position: relative; display: block; text-decoration: none; color: inherit;
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--r-xl, 20px); padding: 26px 26px 22px;
  transition: border-color .16s, transform .16s;
}
.qhero2__card:hover { border-color: var(--slate-300); transform: translateY(-2px); }
.qhero2__card:focus-visible { outline: 2px solid var(--accent-ai); outline-offset: 3px; }

.qhero2__stamp {
  position: absolute; top: 18px; right: 20px; color: var(--cinnabar);
  transform: scale(0) rotate(-18deg); opacity: 0;
  animation: qhStamp .55s cubic-bezier(.2, 1.3, .4, 1) .35s forwards;
}
@keyframes qhStamp {
  0% { transform: scale(0) rotate(-18deg); opacity: 0; }
  60% { transform: scale(1.12) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(-6deg); opacity: .92; }
}
@media (prefers-reduced-motion: reduce) {
  .qhero2__stamp { animation: none; transform: rotate(-6deg); opacity: .92; }
}

.qhero2__card-tag {
  display: inline-block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--slate-500); margin: 0 74px 10px 0;
}
.qhero2__card-t {
  font-family: var(--font-sans); font-size: 18px; font-weight: 700; line-height: 1.35;
  color: var(--ink); margin: 0 0 8px; max-width: 88%;
}
.qhero2__card-meta {
  font-size: 12.5px; color: var(--slate-500); margin: 0 0 18px; letter-spacing: -0.01em;
}

.qhero2__gauge { margin: 0 0 18px; }
.qhero2__gauge-top {
  display: flex; align-items: baseline; justify-content: space-between;
  font-family: var(--font-sans); font-size: 12.5px; color: var(--ink-soft); margin: 0 0 7px;
}
.qhero2__gauge-lbl { font-weight: 700; color: var(--primary-dark); }
.qhero2__gauge-bar {
  height: 7px; border-radius: 999px; background: var(--slate-100); overflow: hidden;
}
.qhero2__gauge-fill {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  width: 0%; animation: qhGauge 1.1s cubic-bezier(.3, .8, .3, 1) .5s forwards;
}
@keyframes qhGauge { to { width: 62%; } }
@media (prefers-reduced-motion: reduce) {
  .qhero2__gauge-fill { animation: none; width: 62%; }
}

.qhero2__card-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sans); font-size: 13.5px; font-weight: 700; color: var(--primary-dark);
}

@media (max-width: 860px) {
  .qhero2__in { grid-template-columns: 1fr; }
  .qhero2__lede { max-width: none; }
}

/* qhero2__card-col: wraps the appraised-study card + the bridge link beneath it,
   so both share the card's grid column width */
.qhero2__card-col { display: flex; flex-direction: column; gap: 10px; }

.seal-bridge {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  text-decoration: none; color: var(--primary-dark); background: var(--white);
  border: 1px solid var(--slate-200); border-radius: var(--r-lg, 14px);
  padding: 11px 18px; font-family: var(--font-sans); font-size: 13.5px; font-weight: 600;
  transition: border-color .14s, color .14s;
}
.seal-bridge svg { flex: none; }
.seal-bridge:hover { border-color: var(--primary-light); color: var(--primary-darker); text-decoration: underline; }

/* =====================================================================
   2. PRIMARY CTA + jump chips
   ===================================================================== */
.qcta2 { padding: 4px 0 clamp(32px, 5vw, 52px); }
.qcta2__in { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.qcta2__btn {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  background: var(--gfill-3); color: #fff; font-family: var(--font-sans);
  font-weight: 700; font-size: 16px; border-radius: 999px; padding: 15px 30px;
  transition: transform .14s, box-shadow .14s, background-color .14s;
}
.qcta2__btn:hover { background: var(--gfill-2); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.qcta2__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.qcta2__chip {
  display: inline-block; text-decoration: none; color: var(--ink-soft);
  font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  background: var(--white); border: 1px solid var(--slate-200); border-radius: 999px;
  padding: 8px 15px; transition: border-color .14s, color .14s;
}
.qcta2__chip:hover { border-color: var(--primary-light); color: var(--primary-dark); }

/* audience-card icon color (SVG line icons — see index.html) */
.aud-card__ic svg { color: var(--primary-dark); }

/* =====================================================================
   3. PRODUCT TRIO — lead card is the Patient Evidence Report (conversion
   hook); atlas + study-appraisal ride along as secondary. Placed between
   cta-v2 and the audience cards.
   ===================================================================== */
.trio { padding: clamp(20px, 3vw, 34px) 0 clamp(32px, 5vw, 52px); }
.trio__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 16px; align-items: stretch; }
.trio__card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--r-lg, 14px);
  padding: 22px 24px; transition: border-color .14s, transform .14s;
}
.trio__card:hover { border-color: var(--primary-light); transform: translateY(-2px); }
.trio__card--lead {
  border-top: 3px solid var(--primary);
  background: linear-gradient(180deg, var(--sage), var(--white) 60%);
}
.trio__ic { display: inline-flex; color: var(--primary-dark); margin-bottom: 12px; }
.trio__t { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--primary-darker); margin: 0 0 7px; }
.trio__card--lead .trio__t { font-size: 19px; }
.trio__d { font-family: var(--font-sans); font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; margin: 0 0 14px; flex: 1; }
.trio__go {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-sans);
  font-size: 13px; font-weight: 700; color: var(--primary-dark);
}

@media (max-width: 860px) {
  .trio__grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   4. "EVIDENCE BY CONDITION" row
   ===================================================================== */
.qcond2 { padding: 6px 0 clamp(28px, 4vw, 40px); }
.qcond2__in { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 10px; }
.qcond2__label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--slate-500);
  flex: none; margin-right: 4px;
}
.qcond2__chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 auto; }
.qcond2__chips a {
  display: inline-block; text-decoration: none; color: var(--ink-soft);
  font-family: var(--font-sans); font-size: 12.5px; font-weight: 600;
  background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 999px;
  padding: 6px 13px; transition: border-color .14s, color .14s, background-color .14s;
}
.qcond2__chips a:hover { border-color: var(--primary-light); color: var(--primary-dark); background: var(--white); }
.qcond2__all {
  flex: none; display: inline-flex; align-items: center; gap: 5px; text-decoration: none;
  font-family: var(--font-sans); font-size: 12.5px; font-weight: 700; color: var(--accent-ai);
  margin-left: auto;
}
.qcond2__all:hover { text-decoration: underline; }

/* =====================================================================
   6. ONE PRO CARD (incl. PDF Studio entry)
   ===================================================================== */
.qpro2 { padding: clamp(30px, 5vw, 48px) 0; }
.qpro2__in {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 3.5vw, 40px);
  align-items: stretch; background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--r-xl, 20px); padding: clamp(26px, 3vw, 36px);
}
.qpro2__copy { display: flex; flex-direction: column; justify-content: center; }
.qpro2__h {
  font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; color: var(--primary-darker);
  line-height: 1.2; margin: 12px 0 10px; letter-spacing: -0.01em;
}
.qpro2__p { font-family: var(--font-sans); font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 18px; max-width: 44ch; }
.qpro2__cta {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  background: var(--gfill-2); color: #fff; font-family: var(--font-sans); font-weight: 700;
  font-size: 14px; border-radius: 999px; padding: 12px 22px; transition: background-color .14s, transform .14s;
}
.qpro2__cta:hover { background: var(--gfill-1); transform: translateY(-1px); }
.qpro2__anchor { font-family: var(--font-sans); font-size: 12.5px; color: var(--slate-500); margin: 10px 0 0; }

.qpro2__studio {
  display: block; text-decoration: none; color: inherit; background: var(--q-gold-soft, #f7edd2);
  border: 1px solid var(--q-gold, #c9a227); border-radius: var(--r-lg, 14px);
  padding: 22px 24px; transition: transform .14s;
}
.qpro2__studio:hover { transform: translateY(-2px); }
.qpro2__studio-badge {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-sans);
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #7a5d00; margin-bottom: 10px;
}
.qpro2__studio-t {
  font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--primary-darker);
  line-height: 1.3; margin: 0 0 8px;
}
.qpro2__studio-p { font-family: var(--font-sans); font-size: 13px; color: #5b4d1f; line-height: 1.5; margin: 0 0 14px; }
.qpro2__studio-go {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-sans);
  font-size: 13px; font-weight: 700; color: #7a5d00;
}

@media (max-width: 760px) {
  .qpro2__in { grid-template-columns: 1fr; }
}

/* =====================================================================
   7. MONO EVIDENCE LINE
   ===================================================================== */
.qproof2 { padding: 0 0 clamp(28px, 4vw, 44px); }
.qproof2__line {
  text-align: center; font-size: 12.5px; letter-spacing: .04em; color: var(--slate-500);
  margin: 0;
}
