
/* IWP Photo Premium Questionnaire — visual layer only; original scoring/logic stays intact */
body.photo-question-mode{background:radial-gradient(circle at 95% 6%,rgba(53,93,71,.12),transparent 25%),linear-gradient(180deg,#f8f4eb,#fffdfa 60%,#f4f0e7);}
body.photo-question-mode .trust-strip{display:none}
body.photo-question-mode .progress-wrap{display:none}
body.photo-question-mode .app-shell{width:min(1320px,100%);padding-top:16px}
body.photo-question-mode .topbar{margin-bottom:18px}
body.photo-question-mode .assessment-card:before{display:none}
.assessment-card.photo-layout{padding:0!important;display:grid!important;grid-template-columns:minmax(0,1.04fr) minmax(360px,.96fr);min-height:690px;overflow:hidden;border-radius:34px;border:1px solid rgba(27,65,50,.14);background:#fff;box-shadow:0 34px 80px rgba(18,49,38,.17);justify-content:stretch!important}
.question-content{background:radial-gradient(circle at 8% 0%,rgba(44,118,86,.22),transparent 32%),linear-gradient(150deg,#0f4a39,#0a382d 72%,#082f27);padding:40px 44px 28px;display:flex;flex-direction:column;min-width:0;color:#fff}
.premium-question-brand{margin-bottom:24px}
.premium-brand-row{display:flex;align-items:center;gap:12px;margin-bottom:24px}.premium-brand-row img{width:54px;height:54px;object-fit:contain;filter:drop-shadow(0 5px 10px rgba(0,0,0,.08))}.premium-brand-row strong{display:block;font-family:Georgia,"Times New Roman",serif;font-size:1.25rem;font-weight:500;color:#fff}.premium-brand-row span{display:block;color:#e3bd72;font-size:.84rem;margin-top:2px}
.premium-mini-progress{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;color:rgba(255,255,255,.88);font-size:.76rem;font-weight:700}.premium-mini-track{height:7px;border-radius:99px;background:rgba(255,255,255,.17);overflow:hidden}.premium-mini-track i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#ecd18e,#c99739)}.premium-mini-progress b{color:#f5dfaa;font-size:.75rem}
.photo-layout .eyebrow,.photo-layout .question-context{color:#e6c178!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;letter-spacing:.12em;margin-bottom:10px!important}
.photo-layout .context-icon,.photo-layout .option-icon{display:none!important}
.photo-layout h1,.photo-layout h2{font-family:Georgia,"Times New Roman",serif;color:#fff!important;font-weight:500;line-height:1.05;margin:0 0 24px;font-size:clamp(2.05rem,3.25vw,3.25rem);max-width:780px}
.photo-layout p,.photo-layout .lead{color:rgba(255,255,255,.78)}
.photo-layout .sensitive-line{color:#e7d9bd;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);padding:7px 11px;border-radius:999px;width:max-content;max-width:100%;margin-bottom:11px}
.photo-layout .option-grid{display:grid;grid-template-columns:1fr;gap:10px;margin:0 0 10px}
.photo-layout .option-btn{min-height:54px;padding:12px 16px;border-radius:999px;border:1px solid rgba(255,255,255,.38);background:rgba(255,255,255,.025);color:#fff;box-shadow:none;gap:12px}
.photo-layout .option-btn:hover{transform:translateY(-1px);border-color:#e8c77f;background:rgba(255,255,255,.07);box-shadow:0 8px 18px rgba(0,0,0,.10)}
.photo-layout .option-btn.selected{border:1.5px solid #e4bd68;background:linear-gradient(90deg,rgba(228,189,104,.2),rgba(255,255,255,.06));box-shadow:0 0 0 3px rgba(228,189,104,.07)}
.photo-layout .option-text strong{color:#fff;font-weight:650;font-size:.92rem}.photo-layout .option-text small{color:rgba(255,255,255,.66)}
.photo-layout .option-btn:before{content:"";width:18px;height:18px;flex:0 0 18px;border-radius:50%;border:2px solid rgba(255,255,255,.82);box-shadow:inset 0 0 0 4px transparent;transition:.18s}
.photo-layout .option-btn.selected:before{border-color:#f0d28c;box-shadow:inset 0 0 0 4px #0c3e31;background:#f0d28c}
.photo-layout .scale-grid{display:grid;grid-template-columns:1fr;gap:10px;margin:0 0 10px}
.photo-layout .scale-btn{min-height:54px;border-radius:999px;border:1px solid rgba(255,255,255,.38);background:rgba(255,255,255,.025);color:#fff;padding:11px 16px;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:13px;text-align:left;box-shadow:none}
.photo-layout .scale-btn:hover{transform:translateY(-1px);border-color:#e8c77f;background:rgba(255,255,255,.07)}
.photo-layout .scale-btn.selected{border:1.5px solid #e4bd68;background:linear-gradient(90deg,rgba(228,189,104,.2),rgba(255,255,255,.06))}
.photo-layout .scale-dot{width:18px;height:18px;flex:0 0 18px;margin:0;border-radius:50%;background:transparent!important;border:2px solid rgba(255,255,255,.82);box-shadow:none}
.photo-layout .scale-btn.selected .scale-dot{border-color:#f0d28c;box-shadow:inset 0 0 0 4px #0c3e31;background:#f0d28c!important}
.photo-layout .scale-btn span{color:#fff;font-size:.9rem;text-align:left}
.photo-layout .actions{margin-top:auto;padding-top:18px;display:flex;align-items:center;justify-content:space-between;gap:12px}.photo-layout .btn{border-radius:999px;padding:13px 24px}.photo-layout .btn-ghost{color:#f3d88e;background:transparent;border:0}.photo-layout .btn-primary{min-width:180px;background:linear-gradient(135deg,#efd69a,#c89536);color:#173b2f;box-shadow:0 12px 28px rgba(0,0,0,.15)}.photo-layout .btn-primary:disabled{opacity:.42}
.photo-layout .notice{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.12);color:#fff}.photo-layout .notice.warning{background:rgba(176,117,29,.16);border-color:rgba(238,198,116,.4);color:#ffe8b2}.photo-layout .notice.danger{background:rgba(128,26,26,.22);border-color:rgba(255,175,175,.36);color:#ffe4e4}
.photo-layout label{color:#fff}.photo-layout .input{background:rgba(255,255,255,.94);border-color:transparent;color:#18352b}
.premium-reassurance{margin-top:16px;padding-top:14px;border-top:1px solid rgba(255,255,255,.13);color:rgba(255,255,255,.62);font-size:.72rem;line-height:1.4}
.question-photo{position:relative;min-height:690px;overflow:hidden;background:#dfe6df}.question-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;transition:transform .75s ease, opacity .28s ease;animation:photoFade .35s ease both}.photo-layout:hover .question-photo img{transform:scale(1.015)}.photo-shade{position:absolute;inset:0;background:linear-gradient(180deg,transparent 42%,rgba(7,31,24,.22) 70%,rgba(7,31,24,.58) 100%)}.photo-caption{position:absolute;left:28px;right:28px;bottom:28px;color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.25)}.photo-caption span{display:block;font-family:Georgia,"Times New Roman",serif;font-size:1.15rem;margin-bottom:5px}.photo-caption b{font-size:.6rem;letter-spacing:.2em;font-weight:700;color:#efd597}
.goals-layout .question-content{overflow:auto;max-height:760px}.goals-layout .option-grid{grid-template-columns:1fr 1fr;gap:8px}.goals-layout .option-btn{border-radius:18px;min-height:50px;padding:10px 12px}.goals-layout .option-btn:before{display:none}.goals-layout h2{font-size:clamp(1.8rem,2.7vw,2.7rem)}
.result-layout .result-program{background:linear-gradient(135deg,#efd69a,#c89536);color:#173b2f}.result-layout .result-grid{grid-template-columns:1fr 1fr}.result-layout .result-box{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.12)}.result-layout .result-box h3,.result-layout .result-box li{color:#fff}.result-layout .coach-next{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.14)}.result-layout .coach-next strong{color:#f0d28c}.result-layout .coach-next span{color:rgba(255,255,255,.75)}.result-layout .cta-link{background:linear-gradient(135deg,#efd69a,#c89536);color:#173b2f}
body.photo-question-mode .app-footer{padding-top:15px}
@media(max-width:900px){
  .assessment-card.photo-layout{grid-template-columns:1fr;min-height:auto}
  .question-content{order:1;padding:30px 26px 20px}
  .question-photo{order:2;min-height:220px}
  .goals-layout .option-grid{grid-template-columns:1fr 1fr}
  .photo-caption{bottom:18px;left:20px}
  .premium-brand-row{margin-bottom:16px}
}
@media(max-width:640px){
  body.photo-question-mode .app-shell{padding:10px}
  .assessment-card.photo-layout{border-radius:25px}
  .question-content{padding:22px 18px 18px}
  .question-photo{min-height:300px}
  .photo-layout h2{font-size:1.95rem;margin-bottom:18px}
  .premium-mini-progress{grid-template-columns:auto 1fr auto;gap:9px}
  .goals-layout .option-grid{grid-template-columns:1fr}
  .photo-layout .actions{position:sticky;bottom:-1px;background:linear-gradient(180deg,rgba(9,55,43,0),rgba(9,55,43,.98) 25%);padding-top:22px;padding-bottom:3px}
  .photo-layout .btn-primary{min-width:150px}
  .photo-caption{left:16px;right:16px;bottom:12px}
  .photo-caption span{font-size:.9rem}
  .photo-caption b{font-size:.5rem}
  .result-layout .result-grid{grid-template-columns:1fr}
}
@keyframes photoFade{from{opacity:.55}to{opacity:1}}


/* ===== MOBILE QUESTION PHOTO FLOW ===== */
.mobile-question-photo{display:none;position:relative;overflow:hidden;border-radius:20px;margin:0 0 20px;height:180px;background:#dfe6df}
.mobile-question-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;animation:photoFade .35s ease both}
.mobile-photo-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,34,27,.02),rgba(8,34,27,.12) 55%,rgba(8,34,27,.62) 100%)}
.mobile-question-photo span{position:absolute;left:16px;right:16px;bottom:13px;color:#fff;font-family:Georgia,"Times New Roman",serif;font-size:1rem;text-shadow:0 2px 10px rgba(0,0,0,.3)}
.photo-layout .option-btn:focus-visible,.photo-layout .scale-btn:focus-visible,.photo-layout .btn:focus-visible{outline:3px solid #f0d28c;outline-offset:3px}

@media(max-width:900px){
  .assessment-card.photo-layout{display:block!important}
  .question-content{padding:28px 24px 20px}
  .question-photo{display:none!important}
  .mobile-question-photo{display:block}
  .premium-brand-row{display:none}
  .premium-question-brand{margin-bottom:14px}
  .premium-mini-progress{margin-bottom:16px}
  .goals-layout .option-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
  .question-content{padding:22px 16px 18px}
  .mobile-question-photo{height:150px;border-radius:18px;margin-bottom:18px}
  .photo-layout h2{font-size:1.88rem;line-height:1.08;margin-bottom:18px}
  .photo-layout .option-btn,.photo-layout .scale-btn{min-height:52px}
  .goals-layout .option-grid{grid-template-columns:1fr}
  .photo-layout .actions{position:sticky;bottom:-1px;z-index:5}
}


/* ===== MOBILE REFINEMENT v3 — based on real iPhone screenshots ===== */
@media(max-width:640px){
  .question-content{padding:20px 16px calc(110px + env(safe-area-inset-bottom,0px))}
  .mobile-question-photo{height:142px;margin-bottom:16px;border-radius:18px}
  .mobile-question-photo span{display:none!important}
  .mobile-photo-shade{background:linear-gradient(180deg,rgba(8,34,27,0),rgba(8,34,27,.08) 70%,rgba(8,34,27,.18) 100%)}
  .photo-layout .actions{position:static!important;bottom:auto!important;z-index:auto!important;background:none!important;padding-top:16px!important;padding-bottom:0!important}
  .photo-layout .btn{min-height:48px}
  .photo-layout .btn-primary{min-width:146px}
  .photo-layout .option-btn,.photo-layout .scale-btn{min-height:50px;padding-top:10px;padding-bottom:10px}
  .photo-layout h2{font-size:1.82rem;line-height:1.09;margin-bottom:16px}
  .photo-layout .eyebrow,.photo-layout .question-context{margin-bottom:8px!important}
  .premium-reassurance{margin-top:13px}
}
@media(max-width:390px){
  .question-content{padding-left:14px;padding-right:14px}
  .mobile-question-photo{height:132px}
  .photo-layout h2{font-size:1.74rem}
  .photo-layout .option-text strong{font-size:.89rem}
}


/* ===== MOBILE FACES v4 — dedicated 20:9 crops, no runtime face cropping ===== */
@media(max-width:900px){
  .mobile-question-photo{width:100%;height:auto!important;aspect-ratio:20/9;overflow:hidden;background:#dfe6df}
  .mobile-question-photo img{width:100%;height:100%;object-fit:cover!important;object-position:center!important}
}
@media(max-width:640px){
  .mobile-question-photo{height:auto!important;aspect-ratio:20/9;margin-bottom:16px}
}
@media(max-width:390px){
  .mobile-question-photo{height:auto!important;aspect-ratio:20/9}
}

@media(max-width:640px){
  .question-photo img{object-position:center 26%;}
  .question-photo{border-radius:18px;overflow:hidden}
}

/* ===== MOBILE FINAL v8 — verified 4:3 face-safe crops ===== */
@media(max-width:900px){
  .mobile-question-photo{display:block!important;width:100%!important;height:auto!important;aspect-ratio:4/3!important;border-radius:20px!important;margin:0 0 18px!important;overflow:hidden!important;background:#dfe6df!important}
  .mobile-question-photo img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center center!important}
}
@media(max-width:640px){
  .mobile-question-photo{height:auto!important;aspect-ratio:4/3!important;border-radius:20px!important;margin-bottom:18px!important}
  .question-content{padding:20px 16px calc(92px + env(safe-area-inset-bottom,0px))!important}
  .photo-layout h2{font-size:1.82rem!important;line-height:1.09!important}
}
@media(max-width:390px){
  .mobile-question-photo{aspect-ratio:4/3!important}
}


/* IWP Result Experience v9 — calm, human, non-clinical */
.result-layout.assessment-card{grid-template-columns:1fr!important;min-height:auto!important;max-width:1040px;margin-inline:auto}
.result-layout .question-photo{display:none!important}
.result-layout .question-content{padding:46px 52px 38px;background:radial-gradient(circle at 94% 4%,rgba(213,169,78,.15),transparent 24%),linear-gradient(145deg,#0f4a39,#0a382d 70%,#082f27)}
.result-layout .premium-question-brand{margin-bottom:26px}
.result-layout .premium-reassurance{display:none}
.result-hero{max-width:820px;margin-bottom:28px}
.result-hero h2{font-size:clamp(2.35rem,4.6vw,4rem)!important;margin-bottom:16px!important}
.result-hero .lead{font-size:1.04rem;line-height:1.65;max-width:790px;color:rgba(255,255,255,.78)!important}
.result-soft-note{display:inline-flex;align-items:center;border:1px solid rgba(239,213,151,.24);background:rgba(239,213,151,.08);color:#efd597;border-radius:999px;padding:8px 12px;font-size:.72rem;font-weight:760;letter-spacing:.02em}
.result-section{padding:24px 0;border-top:1px solid rgba(255,255,255,.12)}
.result-section-kicker{font-size:.74rem;letter-spacing:.11em;text-transform:uppercase;font-weight:850;color:#efd597;margin-bottom:14px}
.result-pill-wrap{display:flex;flex-wrap:wrap;gap:9px}
.result-pill{display:inline-flex;align-items:center;min-height:42px;padding:10px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.07);color:#fff;font-size:.86rem;font-weight:720}
.result-pill.strength{background:rgba(183,216,190,.10);border-color:rgba(183,216,190,.22)}
.result-empty{margin:0!important;font-size:.94rem!important;color:rgba(255,255,255,.72)!important}
.result-recommendation-card{margin:8px 0 20px;padding:25px;border-radius:24px;border:1px solid rgba(239,213,151,.24);background:linear-gradient(145deg,rgba(255,255,255,.08),rgba(239,213,151,.08));box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
.result-program-intro{font-size:.92rem!important;margin:0 0 13px!important;color:rgba(255,255,255,.72)!important}
.result-program-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.result-layout .result-program{margin:0!important;background:linear-gradient(135deg,#efd69a,#c89536)!important;color:#173b2f!important;box-shadow:none!important;padding:10px 14px!important}
.result-weeks{display:inline-flex;align-items:center;border:1px solid rgba(255,255,255,.22);border-radius:999px;padding:9px 13px;color:#fff;font-size:.82rem;font-weight:760}
.result-program-text{font-size:.98rem!important;line-height:1.6!important;margin:0 0 12px!important;color:rgba(255,255,255,.88)!important;max-width:800px}
.result-program-note{font-size:.76rem!important;line-height:1.55!important;margin:0!important;color:rgba(255,255,255,.58)!important;max-width:800px}
.result-warning{margin:0 0 20px!important}
.result-coach-card{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:16px;padding:18px;border-radius:24px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.075);margin:20px 0 13px}
.result-coach-card img{width:74px;height:74px;border-radius:50%;object-fit:cover;object-position:center 18%;border:2px solid rgba(239,213,151,.5)}
.result-coach-copy strong{display:block;color:#f0d28c;font-family:Georgia,"Times New Roman",serif;font-size:1.12rem;font-weight:500;margin-bottom:6px}
.result-coach-copy span{display:block;color:rgba(255,255,255,.73);font-size:.82rem;line-height:1.5;max-width:520px}
.result-main-cta{white-space:nowrap;text-align:center;background:linear-gradient(135deg,#efd69a,#c89536)!important;color:#173b2f!important;padding:13px 19px!important}
.result-disclaimer{margin-top:8px!important;color:rgba(255,255,255,.5)!important}
.result-bottom-actions{display:flex;justify-content:flex-start;margin-top:15px}
.result-bottom-actions .btn-secondary{background:rgba(255,255,255,.09);color:rgba(255,255,255,.78);border:1px solid rgba(255,255,255,.14)}

@media(max-width:760px){
  .result-layout .question-content{padding:28px 19px 24px}
  .result-layout .premium-brand-row{display:none}
  .result-layout .premium-question-brand{margin-bottom:18px}
  .result-hero{margin-bottom:20px}
  .result-hero h2{font-size:2.35rem!important;line-height:1.05!important}
  .result-hero .lead{font-size:.96rem!important;line-height:1.58!important}
  .result-soft-note{border-radius:16px;line-height:1.35}
  .result-section{padding:20px 0}
  .result-pill{font-size:.82rem;min-height:40px}
  .result-recommendation-card{padding:20px 17px;border-radius:20px}
  .result-coach-card{grid-template-columns:58px 1fr;padding:16px;gap:12px}
  .result-coach-card img{width:58px;height:58px}
  .result-main-cta{grid-column:1/-1;width:100%;margin-top:5px}
  .result-bottom-actions{padding-bottom:calc(20px + env(safe-area-inset-bottom,0px))}
  .result-bottom-actions .btn{width:100%}
}


/* IWP Result Experience v10 — final visual polish */
.result-layout .premium-brand-row{display:none!important}
.result-layout .premium-question-brand{margin-bottom:18px!important}
.result-layout .question-content{
  padding:40px 46px 34px!important;
}
.result-layout .premium-mini-progress{
  max-width:100%;
  margin-bottom:2px;
}
.result-hero{
  max-width:820px;
  margin-bottom:24px;
}
.result-hero h2{
  font-size:clamp(2.55rem,4vw,3.7rem)!important;
  line-height:1.02!important;
  margin-bottom:14px!important;
}
.result-hero .lead{
  font-size:1.02rem!important;
  line-height:1.62!important;
  max-width:780px;
}
.result-soft-note{
  margin-top:2px;
  padding:9px 13px;
  font-size:.76rem;
}
.result-section{
  padding:21px 0;
}
.result-section-kicker{
  font-size:.76rem;
  margin-bottom:13px;
}
.result-pill{
  min-height:44px;
  padding:10px 15px;
  font-size:.89rem;
  background:rgba(255,255,255,.085);
}
.result-pill.strength{
  background:rgba(183,216,190,.13);
  border-color:rgba(183,216,190,.27);
}
.result-recommendation-card{
  padding:26px 28px;
  border-color:rgba(239,213,151,.32);
  background:linear-gradient(145deg,rgba(255,255,255,.09),rgba(239,213,151,.10));
}
.result-program-intro{
  font-size:.95rem!important;
}
.result-program-row{
  margin:4px 0 15px;
}
.result-layout .result-program{
  font-size:.94rem!important;
  letter-spacing:.03em;
  padding:11px 16px!important;
  border-radius:999px!important;
}
.result-weeks{
  padding:10px 14px;
  font-size:.85rem;
}
.result-program-text{
  font-size:1rem!important;
  line-height:1.62!important;
}
.result-program-note{
  font-size:.8rem!important;
  line-height:1.55!important;
  color:rgba(255,255,255,.64)!important;
}
.result-coach-card{
  grid-template-columns:82px minmax(0,1fr) auto;
  gap:18px;
  padding:20px;
  border-color:rgba(239,213,151,.20);
  background:linear-gradient(145deg,rgba(255,255,255,.09),rgba(255,255,255,.055));
}
.result-coach-card img{
  width:82px;
  height:82px;
}
.result-coach-copy strong{
  font-size:1.2rem;
}
.result-coach-copy span{
  font-size:.86rem;
  line-height:1.52;
}
.result-main-cta{
  min-width:190px;
  padding:14px 20px!important;
  font-weight:800!important;
  box-shadow:0 10px 24px rgba(0,0,0,.12);
}
.result-disclaimer{
  font-size:.72rem!important;
  line-height:1.5!important;
}
.result-bottom-actions{
  margin-top:12px;
}
@media(max-width:760px){
  .result-layout .question-content{padding:24px 18px 22px!important}
  .result-layout .premium-question-brand{margin-bottom:14px!important}
  .result-hero{margin-bottom:18px}
  .result-hero h2{font-size:2.3rem!important}
  .result-hero .lead{font-size:.96rem!important}
  .result-section{padding:18px 0}
  .result-pill{font-size:.84rem;min-height:40px}
  .result-recommendation-card{padding:19px 16px}
  .result-coach-card{
    grid-template-columns:64px 1fr;
    padding:16px;
    gap:12px;
  }
  .result-coach-card img{width:64px;height:64px}
  .result-main-cta{
    grid-column:1/-1;
    width:100%;
    min-width:0;
    margin-top:4px;
  }
}

/* V13 narrative section */
.narrative-fields{display:grid;gap:18px;margin-top:6px}.narrative-fields label{display:grid;gap:7px;font-weight:700}.narrative-fields label small{font-weight:400;color:rgba(255,255,255,.68);line-height:1.45}.photo-layout .narrative-input{width:100%;min-height:118px;resize:vertical;border-radius:18px;padding:14px 15px;line-height:1.5;font:inherit}.char-count{justify-self:end;color:rgba(255,255,255,.52);font-size:.68rem;margin-top:-4px}.narrative-error[hidden]{display:none!important}
@media(max-width:640px){.narrative-fields{gap:16px}.photo-layout .narrative-input{min-height:108px;border-radius:16px}.photo-layout .narrative-fields label small{font-size:.8rem}}

/* V14 - Inicio serio + comentarios opcionales por respuesta */
.intro-transform .intro-copy{display:flex;flex-direction:column}
.intro-transform .intro-principles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0 16px}
.intro-transform .intro-principles>div{border:1px solid rgba(28,72,54,.13);background:rgba(255,255,255,.68);border-radius:16px;padding:13px 14px;display:flex;align-items:center;gap:10px}
.intro-transform .intro-principles span{font-size:.67rem;letter-spacing:.12em;color:#b38636;font-weight:800}
.intro-transform .intro-principles strong{font-size:.82rem;line-height:1.25;color:#173d30}
.intro-transform .intro-promise{margin:2px 0 10px;padding:15px 17px;border-left:3px solid #c79a45;background:rgba(242,231,207,.55);border-radius:0 14px 14px 0;font-family:Georgia,"Times New Roman",serif;color:#173d30;font-size:1.03rem;line-height:1.45}
.intro-transform .intro-closing{font-weight:750;color:#245442;margin:4px 0 14px}
.answer-detail{margin:12px 0 4px;border:1px solid rgba(255,255,255,.18);border-radius:16px;background:rgba(255,255,255,.045);overflow:hidden}
.answer-detail summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;color:#f0d394;font-size:.81rem;font-weight:750}
.answer-detail summary::-webkit-details-marker{display:none}.answer-detail summary b{width:23px;height:23px;border-radius:50%;display:grid;place-items:center;background:rgba(239,211,148,.14);border:1px solid rgba(239,211,148,.28);font-size:.78rem}
.answer-detail-body{padding:0 14px 14px}.answer-detail-body p{font-size:.76rem!important;line-height:1.5;margin:0 0 9px;color:rgba(255,255,255,.65)!important}
.answer-detail-input{width:100%;min-height:82px;resize:vertical;border-radius:13px!important;padding:11px 12px!important;line-height:1.45}.answer-detail-meta{display:flex;justify-content:space-between;gap:12px;margin-top:6px;font-size:.64rem;color:rgba(255,255,255,.48)}
.answer-detail[open] summary{border-bottom:1px solid rgba(255,255,255,.10)}
@media(max-width:900px){.intro-transform .intro-principles{grid-template-columns:1fr}}
@media(max-width:640px){.intro-transform .intro-principles{gap:7px;margin:14px 0 12px}.intro-transform .intro-principles>div{padding:10px 11px;border-radius:13px}.intro-transform .intro-promise{font-size:.94rem;padding:12px 13px}.answer-detail{border-radius:14px;margin-top:10px}.answer-detail summary{padding:11px 12px;font-size:.78rem}.answer-detail-body{padding:0 12px 12px}.answer-detail-input{min-height:76px}}

/* V14.1 - Return to main website */
.result-bottom-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.result-bottom-actions .btn-home{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  background:linear-gradient(135deg,#efc66f,#d9a93d);
  color:#123e32;
  border:1px solid rgba(239,198,111,.65);
  font-weight:800;
  box-shadow:0 10px 24px rgba(0,0,0,.10);
}
.result-bottom-actions .btn-home:hover{
  transform:translateY(-1px);
}
@media(max-width:640px){
  .result-bottom-actions{
    display:grid;
    grid-template-columns:1fr;
  }
  .result-bottom-actions .btn,
  .result-bottom-actions .btn-home{
    width:100%;
  }
}

/* IWP Engine Core v1.0 - secure report delivery */
.consent-check{display:flex!important;align-items:flex-start;gap:10px;margin:16px 0;padding:14px;border:1px solid rgba(255,255,255,.16);border-radius:14px;background:rgba(255,255,255,.05);font-size:.78rem;line-height:1.45}
.consent-check input{margin-top:3px;accent-color:#d8b15c}.result-report-card{margin:18px 0;padding:16px 18px;border-radius:16px;background:rgba(239,211,148,.11);border:1px solid rgba(239,211,148,.25);display:flex;flex-wrap:wrap;gap:10px;align-items:center}.result-report-card strong{color:#f2d79d}.result-report-card .report-status-detail{font-size:.78rem;color:rgba(255,255,255,.67)}.report-open-link,.report-retry{margin-left:auto;border:0;border-radius:999px;background:#e8c36f;color:#143d32;text-decoration:none;font-weight:800;font-size:.78rem;padding:9px 13px;cursor:pointer}@media(max-width:640px){.result-report-card{display:grid}.report-open-link,.report-retry{margin-left:0;text-align:center;width:100%}}

/* QA: explicit light result palette; scoped to the completed assessment. */
#screen:has(.result-hero){background:#fff!important;color:#243f35!important}
#screen:has(.result-hero) :is(.result-hero h2,.result-hero .lead,.result-program-intro,.result-program-text,.result-program-note,.result-weeks,.result-empty,.result-coach-copy span,.result-disclaimer,.report-status-detail){color:#344b42!important}
#screen:has(.result-hero) :is(.eyebrow,.result-section-kicker,.result-coach-copy strong,.result-report-card strong){color:#72531c!important}
#screen:has(.result-hero) :is(.result-soft-note,.result-pill,.result-pill.strength){background:#eef4ef!important;color:#244b3b!important;border-color:#cad9ce!important}
#screen:has(.result-hero) :is(.result-recommendation-card,.result-report-card){background:#faf7ef!important;border-color:#dfd3b9!important}
#screen:has(.result-hero) .result-coach-card{background:#f5f8f5!important;border-color:#d4ded7!important}
#screen:has(.result-hero) .result-section{border-color:#d4ded7!important}
#screen:has(.result-hero) .result-bottom-actions .btn-secondary{background:#edf3ee!important;color:#244b3b!important;border-color:#cad9ce!important}
@media(max-width:640px){#screen:has(.result-hero) .result-main-cta{white-space:normal;overflow-wrap:anywhere}}

/* Explicit background for the inner result wrapper. */
#screen:has(.result-hero) .question-content{background:#fff!important;color:#243f35!important}
#screen:has(.result-hero) :is(.premium-mini-progress,.premium-mini-progress span,.progress-meta){color:#344b42!important}
