/* =============================================================
   CSS VARIABLES - THE FUTURE CREATOR BRAND (tokens verbatim from
   future-creator-start planTokens + RESULTS_PAGE_DESIGN_SYSTEM.md)
   Legacy var names kept so all existing components re-skin.
   ============================================================= */
:root {
  --burg:         #3A2218;   /* warm brown text (was LYBL burgundy) */
  --pink:         #FF8FB6;
  --pink-light:   #fff4f8;
  --blush:        #fff4f8;
  --border:       #eeded6;
  --muted:        #8a6a62;
  --light:        #b39a92;
  --warm-grey:    #faf5f2;
  --blue:         #9b4bd0;   /* legacy "blue" accents -> TFC lilac/purple */
  --blue-light:   #f3e9fb;
  --blue-border:  #ddc7ee;
  --green:        #2f9e63;
  --green-light:  #eaf7ee;
  --green-border: #cdebd6;
  --grey-bg:      #f6f1ee;
  --grey-border:  #e5d8d2;
  --grey-text:    #9a8078;
  --white:        #ffffff;
  --text:         #3A2218;
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    14px;
  --radius-xl:    16px;
  /* TFC layer */
  --brown:        #3A2218;
  --brown2:       #5b4337;
  --lilac:        #b85ac2;
  --cyan-text:    #00B3CC;
  --cyan-glow:    #00E0FF;
  --purp-from:    #c264cf;
  --purp-to:      #9b4bd0;
  --apri-from:    #FFB36B;
  --apri-to:      #FF7FA0;
  --apri-num:     #C2553B;
  --danger:       #d4537e;
  --danger-deep:  #C2553B;
}
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

/* =============================================================
   RESET + BASE
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: linear-gradient(135deg, #ffdce9 0%, #ffe7d2 42%, #efe0ff 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}

/* When embedded in an iframe (e.g. Pablo), fill the available space */
@media (max-width: 780px) {
  .wrap {
    max-width: 100%;
    padding: 1rem 0.75rem 3rem;
  }
}

/* Iframe-specific: keep the TFC gradient world inside the Pablo embed,
   just reduce outer spacing (transparent bg would lose the brand). */
body.embedded {
  background: linear-gradient(135deg, #ffdce9 0%, #ffe7d2 42%, #efe0ff 100%);
  background-attachment: fixed;
}
body.embedded .wrap {
  max-width: 100%;
  padding: 0.5rem 0.75rem 2rem;
}
body.embedded .lp-strip {
  border-radius: 0;
}
body.embedded .lp-body {
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-bottom: none;
}

/* =============================================================
   ANIMATIONS
   ============================================================= */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes barGrow {
  from { width: 0%; }
}
.fade-up { animation: fadeUp 0.4s ease forwards; }

/* =============================================================
   LANDING PAGE
   ============================================================= */
#landingState { display: block; }

.lp-strip {
  background: var(--pink);
  padding: 9px 16px;
  text-align: center;
  font-size: 11px;
  color: var(--burg);
  font-weight: 500;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.lp-body {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  padding: 2rem 1.8rem 1.8rem;
}
.lp-eyebrow {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 12px;
  font-weight: 500;
  text-align: center;
}
.lp-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--burg);
  line-height: 1.25;
  margin-bottom: 12px;
  text-align: center;
}
.lp-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 400px;
  margin: 0 auto 1.4rem;
  text-align: center;
}
.lp-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}
.lp-pill {
  background: var(--blush);
  border: 0.5px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 11px;
  color: var(--burg);
}
.lp-form {
  background: var(--blush);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
}
.lp-form-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--burg);
  margin-bottom: 12px;
}
.input-label {
  font-size: 10px;
  color: var(--light);
  margin-bottom: 5px;
  display: block;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.handle-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}
.at-sign {
  font-size: 17px;
  font-weight: 500;
  color: var(--burg);
  padding: 0 3px;
}
.handle-input {
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 11px 13px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
  flex: 1;
}
.handle-input:focus { border-color: #c0718a; }

.lp-divider { height: 0.5px; background: var(--border); margin: 14px 0; }

/* QUESTION BLOCKS */
.q-block { margin-bottom: 14px; }
.q-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--burg);
  margin-bottom: 4px;
  display: block;
}
.q-sub {
  font-size: 10px;
  color: var(--light);
  margin-bottom: 9px;
  display: block;
}

/* PILL BUTTONS - selected state is unmistakably burgundy with tick */
.pill-row { display: flex; flex-wrap: wrap; gap: 7px; }
.pill {
  border: 1.5px solid var(--border);
  border-radius: 30px;
  padding: 8px 15px;
  font-size: 11px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}
.pill:hover {
  border-color: var(--burg);
  color: var(--burg);
  background: var(--pink-light);
}
.pill.active {
  background: var(--burg);
  color: var(--white);
  border-color: var(--burg);
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(67,16,0,0.25);
}
.pill.active::after {
  content: ' ✓';
  font-size: 10px;
}

/* PRIMARY BUTTON */
.btn-primary {
  width: 100%;
  padding: 14px;
  background: var(--burg);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  margin-top: 6px;
}
.btn-primary:hover  { opacity: 0.88; }
.btn-primary:active { transform: scale(0.99); }

/* ERROR MESSAGE */
.error-msg {
  background: #fdecea;
  border: 0.5px solid #f5c6c6;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 12px;
  color: #c0392b;
  margin-bottom: 12px;
  display: none;
  line-height: 1.6;
}
.new-creator-note {
  font-size: 11px;
  color: var(--light);
  margin-top: -6px;
  margin-bottom: 14px;
  line-height: 1.5;
  font-style: italic;
}

/* =============================================================
   LOADING STATE
   ============================================================= */
#loadingState {
  display: none;
  text-align: center;
  padding: 5rem 1rem;
}
.spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--border);
  border-top-color: var(--burg);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}
.loading-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  color: var(--burg);
  margin-bottom: 6px;
}
.loading-step { font-size: 11px; color: var(--light); }

/* =============================================================
   RESULTS STATE
   ============================================================= */
#resultsState { display: none; }

/* --- RESULTS HEADER --- */
.r-header {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 0.5px solid var(--border);
  margin-bottom: 14px;
}
.r-header-top {
  background: var(--burg);
  padding: 2rem 1.6rem;
  text-align: center;
}
.r-handle-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  border: 0.5px solid rgba(255,255,255,0.2);
  border-radius: 30px;
  padding: 5px 14px;
  font-size: 11px;
  color: var(--pink);
  font-weight: 500;
  margin-bottom: 12px;
}
.r-handle-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #27ae60;
}
.r-greeting {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--pink);
  line-height: 1.1;
  margin-bottom: 8px;
}
.r-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 10px;
}
.r-summary {
  font-size: 13px;
  color: var(--pink);
  opacity: 0.88;
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto;
}
/* Two-part hero summary: validation line + wound block */
.r-summary-pos {
  font-size: 13px;
  color: var(--pink);
  opacity: 0.75;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 10px;
  font-style: italic;
}
.r-summary-wound {
  font-size: 14px;
  color: var(--pink);
  opacity: 1;
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto;
  font-weight: 500;
}

/* SCORE GRID */
.r-header-bottom {
  background: var(--blush);
  padding: 1.2rem 1.6rem;
}
.score-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.score-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.score-card-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--light);
  margin-bottom: 10px;
  font-weight: 500;
}
.score-card-row { display: flex; align-items: center; gap: 10px; }
.score-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  flex-shrink: 0;
  line-height: 1;
}
.score-num.low  { color: #c0392b; }
.score-num.mid  { color: #e67e22; }
.score-num.high { color: #27ae60; }
.score-bar-wrap { flex: 1; }
.score-bar-track {
  background: #f5e8ef;
  border-radius: 4px;
  height: 5px;
  margin-bottom: 4px;
}
.score-bar-fill {
  height: 5px;
  border-radius: 4px;
  background: var(--burg);
  animation: barGrow 1s ease forwards;
}
.score-bar-sub { font-size: 9px; color: var(--light); text-align: right; }

/* ENGAGEMENT BENCHMARK */
.eng-bench {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.eng-bench-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--light);
  margin-bottom: 10px;
  font-weight: 500;
}
.eng-gauge-row {
  display: flex;
  align-items: center;
  gap: 20px;
}
.eng-gauge-wrap { flex-shrink: 0; }
.eng-gauge-svg { width: 130px; height: 80px; }
.eng-gauge-labels {
  display: flex;
  justify-content: space-between;
  width: 130px;
  font-size: 8px;
  color: var(--light);
  margin-top: 2px;
}
.eng-gauge-info { flex: 1; }
.eng-gauge-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--burg);
  line-height: 1;
}
.eng-gauge-vs {
  font-size: 11px;
  color: var(--light);
  margin-top: 4px;
}
.eng-gauge-vs strong { color: var(--muted); }
.eng-gauge-verdict {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 8px;
}
.eng-gauge-verdict strong { color: var(--burg); }

/* =============================================================
   SECTION PILL DIVIDERS
   ============================================================= */
.section-pill-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}
.section-line        { flex: 1; height: 1px; background: var(--border); }
.section-line.blue   { background: var(--blue-border); }
.section-line.green  { background: var(--green-border); }
.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 30px;
  padding: 7px 20px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.section-pill.quick  { background: #c0392b; color: var(--white); }
.section-pill.good   { background: var(--green); color: var(--white); }
.section-pill.deep   { background: var(--blue);  color: var(--white); }

/* =============================================================
   TIMELINE + DIAGNOSTIC CARDS
   ============================================================= */
.timeline { display: flex; flex-direction: column; }
.t-item {
  display: flex;
  gap: 14px;
  position: relative;
  margin-bottom: 10px;
}
.t-connector {
  position: absolute;
  left: 13px;
  top: 30px;
  bottom: -10px;
  width: 1px;
  background: var(--border);
}
.t-connector.blue  { background: var(--blue-border); }
.t-connector.green { background: var(--green-border); }

.t-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  border: 0.5px solid;
  margin-top: 1px;
}
.t-num.bad    { background: #fdecea;          border-color: #f5c6c6;          color: #c0392b; }
.t-num.warn   { background: #fef5e7;          border-color: #fad7a0;          color: #d35400; }
.t-num.blue-n { background: var(--blue-light); border-color: var(--blue-border); color: var(--blue); }
.t-num.good-n { background: var(--green-light); border-color: var(--green-border); color: var(--green); }
.t-num.star   { background: var(--green-light); border-color: var(--green-border); color: var(--green); font-size: 13px; }

.t-card {
  flex: 1;
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: fadeUp 0.35s ease forwards;
}
.t-card.blue-card  { border-color: var(--blue-border); }
.t-card.good-card  { border-color: var(--green-border); }
.t-card.top-card   { border-color: var(--green-border); }

.t-card-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px 10px;
}
.t-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.t-icon-wrap.bad    { background: #fdecea; }
.t-icon-wrap.warn   { background: #fef5e7; }
.t-icon-wrap.blue-i { background: var(--blue-light); }
.t-icon-wrap.good-i { background: var(--green-light); }

.t-header { flex: 1; }
.t-cat {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--light);
  margin-bottom: 3px;
}
.t-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 5px;
}
.t-badge {
  font-size: 9px;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
}
.badge-bad  { background: #fdecea;          color: #c0392b; }
.badge-warn { background: #fef5e7;          color: #d35400; }
.badge-blue { background: var(--blue-light); color: var(--blue); }
.badge-good { background: var(--green-light); color: var(--green); }

/* TWO COLUMN BODY */
.t-cols {
  display: grid;
  grid-template-columns: 1fr 0.5px 1fr;
  border-top: 0.5px solid var(--border);
}
.t-card.blue-card .t-cols  { border-top-color: var(--blue-border); }
.t-card.good-card .t-cols  { border-top-color: var(--green-border); }
.t-card.top-card .t-cols   { border-top-color: var(--green-border); }

.t-col { padding: 10px 14px; }
.t-col.what-col  { background: var(--warm-grey); }
.t-col.tip-col   { background: var(--pink-light); }
.t-col.good-col  { background: var(--green-light); }
.t-card.blue-card .tip-col { background: var(--blue-light); }

.t-col-divider { background: var(--border); }
.t-card.blue-card .t-col-divider  { background: var(--blue-border); }
.t-card.good-card .t-col-divider  { background: var(--green-border); }
.t-card.top-card .t-col-divider   { background: var(--green-border); }

.t-col-label {
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 5px;
}
.what-col .t-col-label               { color: var(--light); }
.tip-col  .t-col-label               { color: var(--burg); }
.good-col .t-col-label               { color: var(--green); }
.t-card.blue-card .tip-col .t-col-label { color: var(--blue); }

.t-col-text { font-size: 11px; line-height: 1.6; }
.what-col .t-col-text                   { color: var(--muted); }
.tip-col  .t-col-text                   { color: var(--burg); }
.good-col .t-col-text                   { color: var(--green); }
.t-card.blue-card .tip-col .t-col-text  { color: var(--blue); }

/* LOCKED NUDGE */
.locked-nudge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--grey-bg);
  border: 0.5px solid var(--grey-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 16px;
  margin-left: 42px;
}
.locked-nudge-icon  { font-size: 13px; color: var(--grey-text); flex-shrink: 0; }
.locked-nudge-text  { font-size: 11px; color: var(--grey-text); font-style: italic; line-height: 1.5; }

/* =============================================================
   TOP PERFORMING POST CARD
   ============================================================= */
.top-post-card {
  flex: 1;
  background: var(--white);
  border: 0.5px solid var(--green-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.top-post-body { display: flex; }
.top-post-thumb {
  width: 110px;
  min-height: 120px;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
/*
  ANIA: When real thumbnail URL is available from Apify,
  replace the placeholder emoji with:
  <img src="${post.thumbnail_url}" alt="Top post" style="width:100%;height:100%;object-fit:cover">
  Wrap in try/catch - if image fails to load, show emoji fallback.
*/
.top-post-thumb-emoji { font-size: 32px; }
.top-post-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none; /* shown by JS when image loads */
}
.top-post-format-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(0,0,0,0.65);
  color: white;
  font-size: 8px;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 500;
}
.top-post-info { flex: 1; padding: 12px 14px; }
.top-post-caption {
  font-size: 11px;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 8px;
  font-style: italic;
  border-left: 2px solid var(--green-border);
  padding-left: 8px;
}
.top-post-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}
.top-post-stat { font-size: 10px; color: var(--muted); }
.top-post-stat strong {
  display: block;
  font-size: 13px;
  color: var(--burg);
  font-weight: 500;
}
.top-post-link {
  font-size: 10px;
  color: var(--blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}
.top-post-link:hover { text-decoration: underline; }
.top-post-why-label {
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 4px;
}
.top-post-why {
  font-size: 11px;
  color: var(--green);
  line-height: 1.55;
  background: var(--green-light);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
}

/* =============================================================
   SECTION GAP
   ============================================================= */
.section-gap { height: 10px; }

/* =============================================================
   BRIDGE SECTION
   ============================================================= */
.bridge {
  background: var(--blush);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.6rem;
  text-align: center;
  margin: 6px 0 14px;
}
.bridge-eyebrow {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 10px;
}
.bridge-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.85;
}
.bridge-text strong { color: var(--burg); font-weight: 500; }

/* =============================================================
   UPSELL SECTION
   ============================================================= */
.upsell {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 0.5px solid var(--border);
  margin-top: 10px;
}
.upsell-strip {
  background: var(--burg);
  padding: 9px 16px;
  text-align: center;
  font-size: 11px;
  color: var(--pink);
  font-weight: 500;
}
.upsell-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.upsell-left {
  background: var(--blush);
  padding: 1.4rem;
  border-right: 0.5px solid var(--border);
}
.upsell-right {
  background: var(--white);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.upsell-eyebrow {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 6px;
}
.upsell-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  color: var(--burg);
  line-height: 1.3;
  margin-bottom: 12px;
}
.format-list { display: flex; flex-direction: column; gap: 6px; }
.format-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  border: 0.5px solid var(--border);
}
.format-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--burg);
  color: var(--white);
  font-size: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.format-text { font-size: 11px; color: var(--burg); line-height: 1.4; }
.tick-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 1.2rem; }
.tick-item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
.tick-item .tick { color: var(--burg); flex-shrink: 0; font-weight: 500; }
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--burg);
}
.price-label { font-size: 10px; color: var(--light); }


/* =============================================================
   RESPONSIVE - MOBILE
   ============================================================= */
/* Tablet — tighten spacing, keep two-column layouts */
@media (max-width: 768px) {
  .r-greeting          { font-size: 2.2rem; }
  .fix-card            { margin-left: 28px; }
  .lp-body             { padding: 1.5rem 1.2rem 1.4rem; }
  .lp-form             { padding: 1.2rem; }
}

/* Phone — stack everything vertically */
@media (max-width: 520px) {
  .lp-title            { font-size: 1.3rem; }
  .lp-body             { padding: 1.2rem 1rem 1rem; }
  .lp-form             { padding: 1rem; }
  .lp-sub              { font-size: 12px; }
  .lp-pill             { font-size: 10px; padding: 5px 10px; }
  .pill                { font-size: 11px; padding: 7px 12px; }
  .r-greeting          { font-size: 1.8rem; }
  .r-title             { font-size: 1.05rem; }
  .r-summary           { font-size: 11px; }
  .upsell-body         { grid-template-columns: 1fr; }
  .upsell-left         { border-right: none; border-bottom: 0.5px solid var(--border); }
  .top-post-body       { flex-direction: column; }
  .top-post-thumb      { width: 100%; height: 160px; }
  .score-grid          { grid-template-columns: 1fr 1fr; }
  .stat-bar            { flex-wrap: wrap; }
  .stat-bar-item       { flex: 1 1 45%; }
  .vs-cols             { grid-template-columns: 1fr; }
  .vs-cols .t-col-divider { display: none; }
  .vs-col.yours        { border-bottom: 0.5px solid var(--blue-border); }
  .fix-card            { margin-left: 0; }
  .forecast-card       { padding: 16px 14px; }
  .forecast-path       { padding: 12px 14px; }
  .gem-insight         { font-size: 11px; }
  .gem-nudge-text      { font-size: 11px; }
  .fix-insight         { font-size: 11px; }
  .fix-action-text     { font-size: 11px; }
  .eng-gauge-row       { flex-direction: column; text-align: center; gap: 10px; }
  .eng-gauge-labels    { margin: 2px auto 0; }
  .section-pill        { font-size: 11px; padding: 6px 14px; }
}

/* =============================================================
   NEW PSYCHOLOGICAL ELEMENTS - v2
   ============================================================= */

/* Score card description */
.score-card-desc {
  font-size: 10px;
  color: var(--light);
  line-height: 1.45;
  margin-bottom: 8px;
  font-style: italic;
}

/* Score status badge */
.score-status {
  font-size: 9px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  display: inline-block;
  margin-top: 6px;
  letter-spacing: 0.04em;
}
.status-critical { background: #fdecea; color: #c0392b; }
.status-warning  { background: #fef5e7; color: #d35400; }
.status-strong   { background: #eaf6f0; color: #1a5c3a; }

/* Alert state for score cards with warning or critical scores */
.score-card--warn {
  border: 1.5px solid #c8832a !important;
  background: #fffbf5 !important;
  position: relative;
}
.score-card--warn .score-card-label {
  color: #a0621a;
}
.score-card--crit {
  border: 1.5px solid #c0392b !important;
  background: #fff8f8 !important;
}
.score-card--crit .score-card-label {
  color: #a0291b;
}

/* Benchmark line under score card */
.score-benchmark {
  font-size: 9.5px;
  color: var(--light);
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.4;
}
.bench-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.bench-dot.amber { background: #d35400; }
.bench-dot.red   { background: #c0392b; }
.bench-dot.green { background: #1a5c3a; }

/* Issues counter badge */
.issues-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fdecea;
  color: #c0392b;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

/* Severity pill on issue cards */
.severity-pill {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}
.severity-high { background: #fdecea; color: #c0392b; }
.severity-mid  { background: #fef5e7; color: #d35400; }
.severity-growth  { background: #fef5e7; color: #d35400; }
.severity-brands  { background: #fdecea; color: #c0392b; }

/* ============= DEEPER FIX CARDS (Section 3) ============= */
.df-card {
  background: var(--white);
  border: 0.5px solid var(--blue-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.df-header {
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.df-header-text {
  flex: 1;
  min-width: 0;
}
.df-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.df-severity {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 4px;
  background: #fdecea;
  color: #c0392b;
}
.df-severity.severity-growth  { background: #fef5e7; color: #d35400; }
.df-severity.severity-brands  { background: #fdecea; color: #c0392b; }
.df-severity.severity-high    { background: #fdecea; color: #c0392b; }
.df-body {
  padding: 0 16px 14px;
}
.df-creators-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 6px;
}
.df-creators-text {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  padding: 10px 14px;
  background: var(--blue-light);
  border-radius: 8px;
  border-left: 3px solid var(--blue);
}
.df-creators-attribution {
  font-size: 9px;
  color: var(--light);
  margin-top: 6px;
  font-style: italic;
}
.df-why {
  margin: 10px 14px 14px;
  padding: 10px 14px;
  background: #fdf4e7;
  border-left: 3px solid #c8832a;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text);
  line-height: 1.6;
}
.df-why strong {
  display: block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c8832a;
  margin-bottom: 5px;
}

/* Cost line - red strip on issue cards */
.cost-line {
  font-size: 11px;
  color: var(--muted);
  padding: 10px 14px;
  border-top: 0.5px solid var(--border);
  line-height: 1.55;
  font-style: italic;
}
.cost-label {
  font-style: normal;
  font-weight: 500;
  color: var(--burg);
}

/* In-column benchmark line */
.in-col-bench {
  font-size: 10px;
  color: var(--light);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.4;
}

/* Locked card at bottom of issues */
.locked-card {
  background: var(--white);
  border: 0.5px dashed var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  margin-left: 42px;
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.72;
}
.locked-card-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--blush);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}
.locked-card-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  filter: blur(3px);
  user-select: none;
  margin-bottom: 2px;
}
.locked-card-sub {
  font-size: 10px;
  color: var(--light);
}



/* ── STAT BAR ── */
.stat-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  background: var(--blush);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 8px;
}
.stat-bar-item {
  flex: 1;
  padding: 12px 8px;
  text-align: center;
  border-right: 0.5px solid var(--border);
}
.stat-bar-item:last-child { border-right: none; }
.stat-bar-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--burg);
  line-height: 1;
  margin-bottom: 3px;
}
.stat-bar-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--light);
  font-weight: 500;
}

/* ── SIGNALS STRIP ── */
.signals-strip {
  background: #fafafa;
  border: 0.5px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.signals-left { flex: 1; }
.signals-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.signals-bars { display: flex; flex-direction: column; gap: 8px; }
.signal-bar-row { display: flex; align-items: center; gap: 10px; }
.signal-bar-label {
  font-size: 10px;
  color: #c8b8b8;
  width: 100px;
  flex-shrink: 0;
  filter: blur(3.5px);
  user-select: none;
}
.signal-bar-track {
  flex: 1;
  height: 5px;
  background: #f0e4e0;
  border-radius: 4px;
  overflow: hidden;
}
.signal-bar-fill {
  height: 100%;
  background: #ddc8c0;
  border-radius: 4px;
  filter: blur(1.5px);
}
.signal-bar-num {
  font-size: 10px;
  color: #c8b8b8;
  width: 24px;
  text-align: right;
  filter: blur(3.5px);
  user-select: none;
  flex-shrink: 0;
}
.signals-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.signals-lock {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #f5ebe0;
  border: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.signals-lock-text {
  font-size: 9px;
  color: var(--light);
  text-align: center;
  line-height: 1.4;
  max-width: 52px;
}

/* ── SUMMARY CARD ── */
.summary-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 18px;
  margin-bottom: 14px;
}
.summary-eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--light);
  font-weight: 500;
  margin-bottom: 10px;
}
.summary-body {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 10px;
}
.summary-ending {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
  padding-top: 10px;
  border-top: 0.5px solid var(--border);
}

/* ── WHAT'S NEXT SECTION ── */
.whats-next {
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-top: 6px;
}
.wn-top {
  background: #431000;
  padding: 22px 22px 18px;
}
.wn-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c9a090;
  margin-bottom: 7px;
}
.wn-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}
.wn-bottom {
  background: #fff8f5;
  border: 0.5px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  padding: 20px 22px 24px;
}
.wn-body {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 10px;
}
.wn-credibility {
  font-size: 13px;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 18px;
  font-style: italic;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.wn-pills {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.wn-pill {
  background: #431000;
  color: #F5EBE0;
  font-size: 11px;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.wn-pill-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #ffc2df;
  flex-shrink: 0;
}
.wn-descriptors {
  font-size: 10.5px;
  color: var(--light);
  margin-bottom: 18px;
  padding-left: 2px;
}
.wn-desc-div { margin: 0 5px; opacity: 0.45; }
.wn-divider { height: 0.5px; background: var(--border); margin-bottom: 16px; }
.wn-signoff {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
/* Personalised Content Plan CTA block */
.pcp-cta {
  background: var(--burg);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  text-align: center;
  margin: 0 0 12px;
}
.pcp-cta-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 10px;
}
.pcp-cta-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 12px;
}
.pcp-cta-body {
  font-size: 13px;
  color: #e8cece;
  line-height: 1.6;
  margin-bottom: 22px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.pcp-cta-btn {
  display: inline-block;
  background: var(--pink);
  color: var(--burg);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 30px;
  transition: opacity 0.18s;
}
.pcp-cta-btn:hover { opacity: 0.85; }

/* TFC footer — thick border, cream fill, brown sign strip */
.tfc-footer {
  border: 3px solid var(--burg);
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
  margin: 0 0 8px;
  background: var(--blush); /* single bg covers all child elements uniformly */
}
.tfc-footer-follow {
  font-size: 10px;
  font-weight: 600;
  color: var(--light);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 20px 32px 0;
  display: block;
}
.tfc-footer-brand-pill {
  display: inline-block;
  background: var(--burg);
  color: #f7f0f0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 30px;
  margin: 8px 0 12px;
  text-decoration: none;
  transition: opacity 0.18s;
}
.tfc-footer-brand-pill:hover {
  opacity: 0.82;
}
.tfc-footer-tagline {
  font-size: 12px;
  color: var(--muted);
  padding: 0 32px 6px;
}
.tfc-footer-credibility {
  font-size: 11.5px;
  color: var(--light);
  font-style: italic;
  padding: 0 32px 20px;
}
.tfc-footer-sign {
  background: var(--burg);
  padding: 14px 32px;
  font-size: 13px;
  color: #f7f0f0;
  letter-spacing: 0.02em;
}
.tfc-footer-sign strong {
  font-weight: 800;
  color: #fff;
}
.wn-inbox-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--white);
  border: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* =============================================================
   QUICK WIN CARD BODY (single column, no tip)
   ============================================================= */
.qw-body {
  padding: 10px 14px;
  border-top: 0.5px solid var(--border);
  background: var(--warm-grey);
}
.qw-body .t-col-label { color: var(--light); }
.qw-body .t-col-text  { color: var(--muted); }
.good-body {
  background: var(--green-light);
}
.t-card.good-card .qw-body { border-top-color: var(--green-border); }

/* =============================================================
   #1 FIX CARD
   ============================================================= */
.fix-card {
  background: var(--blush);
  border: 1.5px solid var(--burg);
  border-radius: var(--radius-lg);
  margin: 10px 0 0 42px;
  overflow: hidden;
}
.fix-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 10px;
}
.fix-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--burg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.fix-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--burg);
}
.fix-insight {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  padding: 0 16px 12px;
}
.fix-action {
  background: var(--burg);
  padding: 12px 16px;
}
.fix-action-label {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pink);
  margin-bottom: 5px;
}
.fix-action-text {
  font-size: 12px;
  color: var(--white);
  line-height: 1.65;
}

/* =============================================================
   HIDDEN GEM CARD EXTENSIONS
   ============================================================= */
.gem-insight {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.7;
  padding: 12px 14px;
  border-top: 0.5px solid var(--green-border);
  background: var(--warm-grey);
}
.gem-nudge {
  background: var(--green-light);
  padding: 12px 14px;
  border-top: 0.5px solid var(--green-border);
}
.gem-nudge-label {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 5px;
}
.gem-nudge-text {
  font-size: 11.5px;
  color: var(--green);
  line-height: 1.65;
}

/* =============================================================
   DEEPER FIXES — YOU VS THEM COLUMNS
   ============================================================= */
.vs-cols {
  display: grid;
  grid-template-columns: 1fr 0.5px 1fr;
  border-top: 0.5px solid var(--blue-border);
}
.vs-col {
  padding: 10px 14px;
}
.vs-col.yours {
  background: #fdf4f4;
}
.vs-col.theirs {
  background: var(--blue-light);
}
.vs-col-label {
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 5px;
}
.vs-col.yours .vs-col-label  { color: #c0392b; }
.vs-col.theirs .vs-col-label { color: var(--blue); }
.vs-col-text {
  font-size: 11px;
  line-height: 1.6;
}
.vs-col.yours .vs-col-text   { color: #7a3a3a; }
.vs-col.theirs .vs-col-text  { color: var(--blue); }

.missed-opp {
  font-size: 11px;
  color: #c0392b;
  padding: 10px 14px;
  background: #fdf4f4;
  border-top: 0.5px solid #f5dede;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.6;
  font-weight: 500;
}

/* =============================================================
   ACCOUNT FORECAST
   ============================================================= */
.forecast-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px 18px;
  margin-bottom: 14px;
}
.forecast-eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--light);
  font-weight: 600;
  margin-bottom: 10px;
}
.forecast-summary {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.forecast-paths {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.forecast-path {
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.forecast-path.path-bad {
  background: #fdf4f4;
  border: 0.5px solid #f5dede;
}
.forecast-path.path-good {
  background: var(--green-light);
  border: 0.5px solid var(--green-border);
}
.forecast-path-label {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.path-bad .forecast-path-label  { color: #c0392b; }
.path-good .forecast-path-label { color: var(--green); }
.forecast-path-text {
  font-size: 12px;
  line-height: 1.65;
}
.path-bad .forecast-path-text   { color: #7a3a3a; }
.path-good .forecast-path-text  { color: var(--green); }
.forecast-closing {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
  padding-top: 12px;
  border-top: 0.5px solid var(--border);
}

/* =============================================================
   SAVED-LINK BANNER (prepended to results after save succeeds)
   ============================================================= */
.save-link-card {
  background: var(--blush);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.save-link-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  color: var(--burg);
  font-weight: 600;
  line-height: 1.25;
}
.save-link-sub {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}
.save-link-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin-top: 2px;
}
.save-link-url {
  flex: 1;
  min-width: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  color: var(--text);
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.save-link-copy {
  background: var(--burg);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 12.5px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s;
}
.save-link-copy:hover { background: #5a1500; }
.save-link-copy.copied { background: var(--green); }
.save-link-expiry {
  font-size: 11px;
  color: var(--light);
  letter-spacing: 0.2px;
}

/* =============================================================
   NEW ELEMENTS — MAJOR AUDIT OVERHAUL
   ============================================================= */

/* Handle sub-line */
.r-handle-sub {
  font-size: 10px;
  color: var(--light);
  letter-spacing: 0.2px;
  margin-top: 6px;
  opacity: 0.8;
}

/* Weakest signal callout */
.weakest-signal {
  margin: 12px 0 0;
  padding: 13px 15px;
  background: #fdf0e0;
  border-left: 4px solid #c8832a;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text);
}
.weakest-signal-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #a0621a;
  display: block;
  margin-bottom: 6px;
}
.weakest-signal-text { color: var(--text); font-size: 12.5px; }
.weakest-signal-text strong { color: var(--burg); }

/* Engagement pivot sentence */
.engage-pivot {
  font-size: 12.5px;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  padding: 16px 24px;
  line-height: 1.65;
  border-top: 0.5px solid var(--border);
}

/* "Ordered by impact" label */
.section-ranked {
  text-align: center;
  font-size: 10px;
  color: var(--light);
  letter-spacing: 0.2px;
  margin: -6px 0 10px;
}

/* Context bridge */
.context-bridge {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 0 16px 14px;
  line-height: 1.6;
}

/* Locked signal score dash */
.signal-bar-locked {
  color: var(--light);
  font-style: italic;
  font-size: 10px;
}

/* Share prompt */
.share-prompt {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 0;
  padding: 14px 16px;
  background: var(--blush);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.share-prompt-icon { font-size: 22px; flex-shrink: 0; }
.share-prompt-text {
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.55;
}
.share-prompt-text strong { color: var(--burg); }

/* Thuy attribution */
.thuy-attribution {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0 0;
  padding: 16px;
  background: var(--warm-grey);
  border-radius: var(--radius-md);
  border: 0.5px solid var(--border);
}
.thuy-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}
.thuy-attribution-text { flex: 1; }
.thuy-attribution-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.thuy-attribution-name span { color: var(--burg); }
.thuy-attribution-bio {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* Bridge sentence before What's Next */
.wn-bridge {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 20px 24px 0;
  line-height: 1.5;
}

/* AI teaser line in What's Next */
.wn-ai-teaser {
  font-size: 12px;
  color: var(--burg);
  font-style: italic;
  margin-top: 12px;
  line-height: 1.55;
}

/* Locked quick win stubs — tease 3 more areas after the 2 visible cards */
.qw-locked-wrap {
  margin-top: 4px;
}
.qw-locked-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
  opacity: 0.7;
}
.qw-locked-card {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  overflow: hidden;
  position: relative;
}
.qw-locked-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--warm-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.qw-locked-blur {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
  color: var(--text);
}
.qw-locked-badge {
  background: #f0e8e8;
  color: var(--light);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  display: inline-block;
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.qw-locked-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  margin: 12px 0 0;
  padding: 8px 0;
}
.qw-locked-cta-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--burg);
  line-height: 1.5;
  max-width: 440px;
}
.qw-locked-cta-btn {
  font-size: 13px;
}
.qw-locked-cta-sub {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.45;
  max-width: 420px;
}
.signals-unlock-cta {
  text-align: center;
  margin: 10px 0 0;
}
.signals-unlock-cta a {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--burg);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.signals-unlock-cta a:hover { opacity: 0.8; }

/* =============================================================
   TFC 2026 COMPONENT LAYER — new sections for the rebranded audit.
   Tokens verbatim from future-creator-start (planTokens + audit-final).
   Legacy components above are kept for old cached audits.
   ============================================================= */

/* ---- glass card ---- */
.acard {
  position: relative; border-radius: 20px; padding: 18px 16px;
  background: linear-gradient(160deg, rgba(255,255,255,.9), rgba(255,255,255,.62));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 2px 6px rgba(58,34,24,.07), 0 16px 28px -16px rgba(140,90,210,.34);
}

/* ---- numbered section pill (straddles box border) ---- */
.sec-pill {
  position: absolute; top: -11px; left: 16px; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px 4px 4px; border-radius: 999px; font-size: 9.5px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: #fff; z-index: 3; white-space: nowrap;
  background: linear-gradient(135deg, var(--purp-from), var(--purp-to));
  box-shadow: 0 6px 14px -6px rgba(155,75,208,.55);
}
.sec-pill .num {
  width: 17px; height: 17px; border-radius: 999px; background: #fff; color: var(--purp-to);
  display: grid; place-items: center; font-weight: 800; font-size: 10px; letter-spacing: 0;
}
.sec-pill.apri { background: linear-gradient(135deg, var(--apri-from), var(--apri-to)); box-shadow: 0 6px 14px -6px rgba(255,127,160,.6); }
.sec-pill.apri .num { color: var(--apri-num); }
.sec-pill.red { background: linear-gradient(135deg, #f0526b, #d22c50); box-shadow: 0 6px 14px -6px rgba(210,44,80,.65); }
.sec-pill.red .num { color: #d22c50; }
.sec-pill.green { background: linear-gradient(135deg, #5fbf8a, #2f9e63); box-shadow: 0 6px 14px -6px rgba(47,158,99,.55); }
.sec-pill.green .num { color: #2f9e63; }

/* ---- CTA with always-on glow + beam shimmer (brand rule) ---- */
.cta {
  position: relative; display: inline-block; overflow: hidden; cursor: pointer; text-decoration: none;
  background: linear-gradient(135deg, #FF8FB6, #FF7FA0); color: #fff; font-weight: 800; font-size: 14.5px;
  padding: 15px 30px; border-radius: 18px; border: none; font-family: inherit; text-align: center;
  box-shadow: 0 0 18px rgba(255,127,160,.45), 0 12px 30px -10px rgba(255,125,150,.6), inset 0 2px 0 rgba(255,255,255,.4);
  transition: transform .25s, box-shadow .25s;
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1.5px var(--cyan-glow), 0 0 26px rgba(0,224,255,.6), 0 16px 32px -10px rgba(255,125,150,.5), inset 0 2px 0 rgba(255,255,255,.4);
}
.cta.mini { padding: 10px 20px; font-size: 13px; border-radius: 14px; }
.beam {
  position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.6), transparent);
  transform: skewX(-18deg); animation: beam 3.4s ease-in-out infinite; pointer-events: none;
}
@keyframes beam { 0% { left: -60% } 55% { left: 140% } 100% { left: 140% } }

/* ---- shimmer text ---- */
.shimmer {
  background: linear-gradient(100deg, #FF8FB6, #FF8A5B, #FFB36B, #FF7FA0, #FF8FB6);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; animation: shine 4.5s linear infinite;
}
@keyframes shine { to { background-position: 200% center } }

/* ---- spinning rainbow rim ---- */
.rim {
  border-radius: 24px; padding: 3px;
  background: conic-gradient(from var(--a), #FFB3C7, #FFD9A8, #FFF2B0, #B8E6D0, #B3D9FF, #D9C2FF, #FFB3C7);
  animation: spinrim 9s linear infinite;
}
@keyframes spinrim { to { --a: 360deg } }
.rim-inner { border-radius: 21px; padding: 24px 22px; background: linear-gradient(135deg, #fff4f8, #fef0e6 50%, #f3edff); }

/* ---- type helpers ---- */
.tfc-eyebrow { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tfc-small { font-size: 12.5px; color: var(--muted); }
.tfc-body { font-size: 14px; line-height: 1.55; color: var(--brown2); }

/* ---- Maison mascots ---- */
.maison { position: absolute; z-index: 4; pointer-events: none; }
.tfc-sec { position: relative; margin-bottom: 22px; }

/* ---- results hero card: mascot left column on desktop ---- */
.hero-acard { padding: 24px 20px; padding-left: calc(clamp(98px, 24vw, 118px) + 22px); }
.hero-acard .maison { width: clamp(98px, 24vw, 118px); top: 50%; left: 8px; transform: translateY(-50%); }

/* HARD RULE (8 Jul 2026): every absolutely-positioned mascot ships with a
   <=640px rule — on phones the side column wastes half the card, so mascots
   go static, centred, above the text, and the text takes the full width. */
@media (max-width: 640px) {
  .hero-acard { padding: 20px 18px; }
  .hero-acard .maison { position: static; display: block; width: 96px; margin: 0 auto 10px; transform: none; }
}

/* ---- lock cards (every lock is one <a> to the CTA link) ---- */
.lock-badge {
  font-size: 10px; font-weight: 800; letter-spacing: .08em;
  background: linear-gradient(135deg, var(--purp-from), var(--purp-to));
  color: #fff; border-radius: 999px; padding: 4px 10px; white-space: nowrap;
}
.lock-badge.apri { background: linear-gradient(135deg, var(--apri-from), var(--apri-to)); }
.lock-card {
  display: block; position: relative; border-radius: 20px; padding: 18px 16px; text-decoration: none; color: inherit;
  background: linear-gradient(160deg, rgba(255,255,255,.9), rgba(255,255,255,.62));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 2px 6px rgba(58,34,24,.07), 0 16px 28px -16px rgba(140,90,210,.34);
  transition: box-shadow .25s, transform .25s;
  margin-bottom: 22px;
}
.lock-card:hover { box-shadow: 0 0 0 1.5px var(--cyan-glow), 0 0 22px rgba(0,224,255,.45), 0 16px 28px -16px rgba(140,90,210,.34); transform: translateY(-2px); }
.lock-card.with-hero { padding-left: calc(clamp(88px, 21vw, 106px) + 16px); }
.lock-card .hero-maison { width: clamp(88px, 21vw, 106px); top: 50%; left: 6px; transform: translateY(-50%); }
.lock-card.with-hero .lock-badge { position: absolute; top: -10px; left: calc(clamp(88px, 21vw, 106px) + 16px); }
.lock-title { font-size: 14.5px; font-weight: 700; display: block; margin-top: 8px; color: var(--brown); }
.lock-blur { filter: blur(5px); user-select: none; }
.blurred-lines { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.blurred-lines span { height: 10px; border-radius: 5px; background: rgba(58,34,24,.13); filter: blur(3px); display: block; }
.blurred-lines span:nth-child(1) { width: 88%; } .blurred-lines span:nth-child(2) { width: 64%; } .blurred-lines span:nth-child(3) { width: 76%; }
.unlock-line { margin-top: 10px; font-size: 12px; font-weight: 800; color: var(--purp-to); }
.unlock-line.apri { color: var(--apri-num); }

/* Phone: lock-card mascots go static + centred above the text (same hard
   rule as .hero-acard) — kills the dead space around a side-pinned mascot. */
@media (max-width: 640px) {
  .lock-card.with-hero { padding-left: 16px; padding-top: 20px; }
  .lock-card .hero-maison { position: static; display: block; width: 90px; margin: 0 auto 8px; transform: none; }
  .lock-card.with-hero .lock-badge { left: 16px; }
}

/* ---- damage report ---- */
.damage {
  border-radius: 20px; padding: 22px 16px 18px; position: relative;
  background: linear-gradient(160deg, #fdeef0, #fdf1ea); border: 1px solid #f3c3c9;
  box-shadow: 0 2px 6px rgba(58,34,24,.07), 0 16px 28px -16px rgba(212,83,126,.35);
  margin-bottom: 22px;
}
.damage .damage-maison { width: clamp(86px, 20vw, 104px); top: -30px; right: -8px; transform: scaleX(-1); }
.damage-intro { font-size: 12.5px; margin-top: 10px; color: var(--danger-deep); font-weight: 700; max-width: calc(100% - clamp(70px, 17vw, 92px)); }
.dmg-row { border-radius: 14px; background: rgba(255,255,255,.72); padding: 12px 14px; margin-top: 10px; border: 1px solid rgba(212,83,126,.18); }
.dmg-head { display: flex; gap: 10px; align-items: flex-start; }
.dmg-num {
  width: 24px; height: 24px; flex: none; border-radius: 999px; background: linear-gradient(135deg, #ef6f9a, #d4537e);
  color: #fff; font-weight: 800; font-size: 12px; display: grid; place-items: center; margin-top: 1px;
}
.dmg-title { font-size: 15px; font-weight: 700; color: var(--brown); }
.dmg-evidence { font-size: 13.5px; line-height: 1.55; color: var(--brown2); margin-top: 5px; }
.dmg-cost { margin-top: 8px; font-size: 12.5px; color: var(--danger-deep); }
.dmg-cost b { font-weight: 800; }
.quotebox { margin-top: 10px; border-radius: 12px; background: rgba(255,255,255,.75); padding: 10px 12px; font-size: 13px; color: var(--brown); }
.quotebox .ql { font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.quotebox.better { background: linear-gradient(160deg, #eaf7ee, #f3fbf5); border: 1px solid #cdebd6; }

/* ---- win showcase ---- */
.win-card {
  border-radius: 20px; padding: 22px 18px 18px; background: linear-gradient(160deg, #eaf7ee, #f3fbf5);
  border: 1px solid #cdebd6; position: relative; margin-bottom: 22px;
}
.win-card .trophy-maison { width: clamp(60px, 11vw, 84px); top: -20px; right: -8px; transform: scaleX(-1); }
.win-grid { display: grid; grid-template-columns: 150px 1fr; gap: 16px; margin-top: 10px; }
.win-thumb {
  position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 3/4;
  background: linear-gradient(160deg, #c9b8f0, #f0b8d4); display: grid; place-items: center; text-decoration: none;
}
.win-thumb img.real { width: 100%; height: 100%; object-fit: cover; display: block; }
.win-thumb img.fallback-maison { width: 72%; height: auto; }
.win-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.win-stat { font-size: 12.5px; font-weight: 700; color: var(--brown2); }
.win-stat b { display: block; font-size: 17px; font-weight: 800; color: #2f9e63; }

/* ---- locked gem ---- */
.gem-lock {
  border-radius: 20px; padding: 18px; background: linear-gradient(135deg, #efe6ff, #e6f6fb); border: 1px solid #d8cdf0;
  position: relative; display: block; text-decoration: none; color: inherit;
  transition: box-shadow .25s, transform .25s; margin-bottom: 22px;
  padding-left: calc(clamp(80px, 15vw, 110px) + 18px);
}
.gem-lock:hover { box-shadow: 0 0 0 1.5px var(--cyan-glow), 0 0 22px rgba(0,224,255,.45); transform: translateY(-2px); }
.gem-lock .gem-maison { width: clamp(80px, 15vw, 110px); top: 50%; left: 8px; transform: translateY(-50%) scaleX(-1); }

/* ---- ready-to-film (rainbow-rim hero) ---- */
.rtf-wrap { margin-bottom: 22px; }
.rtf-inner { position: relative; }
.rtf-inner .bulb-maison { width: clamp(74px, 17vw, 92px); top: -26px; right: -6px; transform: scaleX(-1); }
.hookquote {
  margin-top: 10px; border-left: 4px solid var(--apri-to); padding: 8px 0 8px 14px;
  font-size: 17px; font-weight: 700; font-style: italic; color: var(--brown);
  max-width: calc(100% - clamp(58px, 13vw, 70px));
}
.steps { margin-top: 12px; display: flex; flex-direction: column; gap: 9px; }
.step { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--brown2); line-height: 1.5; }
.step i {
  font-style: normal; width: 22px; height: 22px; flex: none; border-radius: 999px;
  background: linear-gradient(135deg, var(--apri-from), var(--apri-to)); color: #fff; font-weight: 800; font-size: 11.5px;
  display: grid; place-items: center; margin-top: 1px;
}
.step b { color: var(--brown); }
.rtf-footer-note { font-size: 12.5px; color: var(--muted); text-align: center; margin: 10px 0 22px; }

/* ---- big close ---- */
.big-close { text-align: center; }
.big-close h2 { font-size: clamp(24px, 4.5vw, 30px); font-weight: 800; line-height: 1.22; margin-top: 4px; color: var(--brown); }
.big-close .close-maison { width: clamp(88px, 20vw, 110px); }
.feature-list { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; text-align: left; max-width: 440px; margin-left: auto; margin-right: auto; }
.feature-list > div { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; font-weight: 600; color: var(--brown); }
.feature-list .tick {
  width: 19px; height: 19px; flex: none; border-radius: 999px;
  background: linear-gradient(135deg, var(--apri-from), var(--apri-to)); color: #fff;
  display: grid; place-items: center; font-size: 11px; margin-top: 1px;
}

/* ---- share card ---- */
.share-card-wrap { max-width: 400px; margin: 0 auto 22px; }
.rim-inner.share-card-inner { position: relative; padding: 20px; padding-left: calc(clamp(96px, 23vw, 120px) + 14px); }
.share-card-inner .niche-maison { width: clamp(96px, 23vw, 120px); top: 50%; left: 2px; transform: translateY(-50%); }
.share-score { font-size: 46px; font-weight: 800; line-height: 1.05; }
.share-score .outof { font-size: 20px; }
.share-handle { font-weight: 800; font-size: 15px; color: var(--brown); }
.share-stats { font-size: 12.5px; margin-top: 6px; line-height: 1.7; color: var(--brown2); }
.share-cta-row { text-align: center; margin-top: 12px; }

/* ---- loading show ---- */
.load-card { text-align: center; padding: 26px 22px; max-width: 460px; margin: 40px auto; }
.load-stage { position: relative; width: 112px; height: 112px; margin: 0 auto; }
.load-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: scale(.86); transition: opacity .5s ease, transform .5s ease; }
.load-stage img.on { opacity: 1; transform: scale(1); }
.load-title { font-size: 19px; font-weight: 800; margin-top: 8px; color: var(--brown); }
.ticker { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; text-align: left; max-width: 310px; margin-left: auto; margin-right: auto; }
.tick-row { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--brown2); }
.tick-row .dot { width: 18px; height: 18px; border-radius: 999px; flex: none; display: grid; place-items: center; font-size: 10px; }
.tick-row.done .dot { background: #7fd3a8; color: #fff; }
.tick-row.now .dot { background: linear-gradient(135deg, var(--purp-from), var(--purp-to)); color: #fff; animation: tickpulse 1.2s ease-in-out infinite; }
.tick-row.wait { opacity: .45; }
.tick-row.wait .dot { background: rgba(58,34,24,.12); }
@keyframes tickpulse { 50% { transform: scale(1.25) } }

/* ---- score count-up (numbers animated by JS) ---- */
.count-up { transition: none; }

/* ---- fallback screens ---- */
.fallback-card { text-align: center; padding: 30px 22px; max-width: 520px; margin: 40px auto 22px; }
.fallback-card .fb-maison { width: clamp(90px, 20vw, 112px); margin: 0 auto 8px; display: block; position: static; }

/* ---- mobile ---- */
@media (max-width: 700px) {
  .win-grid { grid-template-columns: 1fr; }
  .win-thumb { max-width: 220px; }
}
@media (max-width: 520px) {
  .rim-inner { padding: 20px 16px; }
  .hookquote { font-size: 15.5px; }
}

/* ---- loading v2: rainbow rim + orbiting rocket + progress bar ---- */
.load-rim { position: relative; max-width: 460px; margin: 40px auto; }
.load-rim .load-card { margin: 0; max-width: none; }
.load-rocket {
  position: absolute; width: 54px; height: 54px; z-index: 6; pointer-events: none;
  top: 0; left: 0;
  animation: orbit 7s linear infinite;
  filter: drop-shadow(0 4px 10px rgba(255,127,160,.45));
}
@keyframes orbit {
  0%    { top: -26px;  left: -18px;            transform: rotate(35deg); }
  12%   { top: -30px;  left: 45%;              transform: rotate(80deg); }
  25%   { top: -26px;  left: calc(100% - 36px); transform: rotate(125deg); }
  37%   { top: 45%;    left: calc(100% - 26px); transform: rotate(170deg); }
  50%   { top: calc(100% - 28px); left: calc(100% - 36px); transform: rotate(215deg); }
  62%   { top: calc(100% - 24px); left: 45%;   transform: rotate(260deg); }
  75%   { top: calc(100% - 28px); left: -18px; transform: rotate(305deg); }
  87%   { top: 45%;    left: -26px;            transform: rotate(350deg); }
  100%  { top: -26px;  left: -18px;            transform: rotate(395deg); }
}
.load-bar {
  height: 10px; border-radius: 6px; background: rgba(58,34,24,.08);
  margin: 14px auto 4px; max-width: 320px; overflow: hidden;
}
.load-bar-fill {
  height: 100%; width: 10%; border-radius: 6px;
  background: linear-gradient(90deg, #FF8FB6, #FFB36B, #FF7FA0);
  background-size: 200% auto; animation: shine 3s linear infinite;
  transition: width 1.2s ease;
}
.load-bar-hint { font-size: 11.5px; color: var(--muted); text-align: center; margin-bottom: 4px; }
@media (prefers-reduced-motion: reduce) { .load-rocket { animation-duration: 20s; } }

/* ---- form rebrand overrides (4 Jul 2026): kill the last LYBL brown ---- */
.lp-body {
  background: linear-gradient(160deg, rgba(255,255,255,.9), rgba(255,255,255,.66));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 2px 6px rgba(58,34,24,.07), 0 16px 28px -16px rgba(140,90,210,.34);
}
.lp-strip {
  background: linear-gradient(135deg, #FF8FB6, #FF7FA0);
  color: #fff; font-weight: 700;
}
.lp-form { background: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.9); border-radius: 16px; }
.lp-pill { background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.95); font-weight: 600; }
.handle-input { border-radius: 12px; border: 1.5px solid rgba(58,34,24,.12); }
.handle-input:focus {
  border-color: var(--cyan-glow);
  box-shadow: 0 0 0 1.5px var(--cyan-glow), 0 0 14px rgba(0,224,255,.35);
}
.pill {
  border: 1.5px solid rgba(58,34,24,.14);
  background: rgba(255,255,255,.85);
  color: var(--brown2);
  font-weight: 600;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 12px;
  transition: box-shadow .2s, border-color .2s, transform .15s, background .2s, color .2s;
}
.pill:hover {
  border-color: var(--cyan-glow);
  color: var(--brown);
  background: #fff;
  box-shadow: 0 0 0 1.5px var(--cyan-glow), 0 0 14px rgba(0,224,255,.4);
  transform: translateY(-1px);
}
.pill.active {
  background: linear-gradient(135deg, var(--purp-from), var(--purp-to));
  color: #fff;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 6px 16px -6px rgba(155,75,208,.6);
}
.pill.active:hover { box-shadow: 0 0 0 1.5px var(--cyan-glow), 0 0 14px rgba(0,224,255,.4), 0 6px 16px -6px rgba(155,75,208,.6); }
.tfc-select {
  width: 100%; padding: 12px 40px 12px 14px; border-radius: 12px;
  border: 1.5px solid rgba(58,34,24,.14); background: rgba(255,255,255,.9);
  font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--brown);
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' stroke='%239b4bd0' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
  transition: box-shadow .2s, border-color .2s;
}
.tfc-select:hover, .tfc-select:focus {
  outline: none; border-color: var(--cyan-glow);
  box-shadow: 0 0 0 1.5px var(--cyan-glow), 0 0 14px rgba(0,224,255,.35);
}
.q-label { font-size: 12.5px; font-weight: 800; color: var(--brown); }
.q-sub { color: var(--muted); }

/* Footer: keep the approved lines, lose the LYBL brown border + brown strip.
   Thin STATIC rainbow border (not the spinning share-card rim) so it stands
   out without competing. Glass fill via double-background border trick. */
.tfc-footer {
  border: 2px solid transparent;
  border-radius: 20px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.92), rgba(255,255,255,.7)) padding-box,
    linear-gradient(135deg, #FFB3C7, #FFD9A8, #FFF2B0, #B8E6D0, #B3D9FF, #D9C2FF) border-box;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 2px 6px rgba(58,34,24,.07), 0 16px 28px -16px rgba(140,90,210,.34);
}
.tfc-footer-brand-pill {
  background: linear-gradient(135deg, var(--purp-from), var(--purp-to));
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(155,75,208,.6);
  transition: box-shadow .2s, transform .15s;
}
.tfc-footer-brand-pill:hover {
  opacity: 1;
  box-shadow: 0 0 0 1.5px var(--cyan-glow), 0 0 16px rgba(0,224,255,.4), 0 6px 16px -6px rgba(155,75,208,.6);
  transform: translateY(-1px);
}
.tfc-footer-sign {
  background: transparent;
  color: var(--brown2);
  padding: 4px 32px 18px;
}
.tfc-footer-sign strong {
  color: var(--brown);
}

/* ---- embed: aurora FULL-BLEED, content constrained (4 Jul night) ----
   The aurora fills 100% of the iframe (fixed attachment covers the whole
   viewport even when content is short — fixes the loading page not reaching
   the bottom). The content column sits ON the aurora: questionnaire full
   width, report 85% so the aurora shows down both sides. Each section keeps
   its own glass shadow, which is what gives the lifted / 3D feel. */
body.embedded {
  background: linear-gradient(135deg, #ffdce9 0%, #ffe7d2 42%, #efe0ff 100%);
  background-attachment: fixed;
  min-height: 100vh;
}
html.embedded, body.embedded { min-height: 100%; }
body.embedded .wrap {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 1.2rem 1rem 2.4rem;
}
body.embedded.results-open .wrap {
  width: 85%;
  max-width: 1120px;
}
/* Inner content column inside the wide report so boxes never go "fat" */
body.embedded.results-open #resultsState {
  max-width: 860px;
  margin: 0 auto;
}
@media (max-width: 700px) {
  body.embedded .wrap,
  body.embedded.results-open .wrap {
    width: 100%;
    padding: 0.9rem 0.75rem 1.8rem;
  }
}

/* ---- footer with launch-rocket, text stays centred ----
   Rocket is absolutely positioned so it doesn't push the centred text.
   Extra bottom padding on mobile reserves room so it never overlaps. */
.tfc-footer-rocket {
  position: relative;
  text-align: center;
}
.tfc-footer-rocket .rocket-maison {
  width: clamp(78px, 16vw, 104px);
  top: 50%; right: 6px;
  transform: translateY(-50%);
}
/* On phones the footer is narrow, so a right-side rocket sits on the text.
   Float it up as a centred hero above the copy instead. */
@media (max-width: 560px) {
  .tfc-footer-rocket .rocket-maison {
    position: static;
    display: block;
    width: 72px;
    margin: 0 auto 4px;
    transform: none;
  }
}
