/* ============================================================
   FUTURE READY — Learn / AI Smart Hub widget styles
   ============================================================ */

/* ---------- shared widget shell ---------- */
.widget { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px, 3vw, 40px); box-shadow: var(--sh-md); }
.widget__top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.widget__top .ichip { width: 44px; height: 44px; border-radius: 13px; flex: none; }
.widget__top .ichip svg { width: 22px; height: 22px; }
.widget__top > div:last-child { flex: 1 1 auto; min-width: 0; }
.widget__klabel { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--purple-700); }
.widget h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin-top: 2px; }
.widget__intro { color: var(--t-muted); margin-top: 0; margin-bottom: 26px; max-width: 60ch; }
.widget-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.4vw, 30px); align-items: start; }
@media (max-width: 880px){ .widget-grid { grid-template-columns: 1fr; } }

/* ---------- mini-lessons (details) ---------- */
.lessons { display: grid; gap: 14px; }
.lesson { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); overflow: hidden; }
.lesson[open] { border-color: var(--purple-100); box-shadow: var(--sh-md); }
.lesson summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 20px clamp(18px,2.4vw,26px); font-weight: 700; font-size: 1.08rem; color: var(--t); letter-spacing: -0.01em; }
.lesson summary::-webkit-details-marker { display: none; }
.lesson__no { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--purple-050); color: var(--purple-700); font-weight: 800; font-size: 0.95rem; }
.lesson summary .chev { margin-left: auto; flex: none; width: 22px; height: 22px; color: var(--t-faint); transition: transform .3s var(--ease); }
.lesson[open] summary .chev { transform: rotate(180deg); color: var(--purple-700); }
.lesson__body { padding: 0 clamp(18px,2.4vw,26px) 22px 72px; color: var(--t-muted); }
.lesson__body p { margin-bottom: 10px; }
.lesson__body .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
@media (max-width:520px){ .lesson__body { padding-left: clamp(18px,2.4vw,26px); } }

/* ---------- AI or Human ---------- */
.w-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.w-step { font-weight: 700; font-size: 0.84rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--purple-700); white-space: nowrap; }
.w-score { font-weight: 700; font-size: 0.86rem; color: var(--t-faint); white-space: nowrap; }
.w-quote { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--purple); border-radius: 0 var(--r-md) var(--r-md) 0; padding: 22px 24px; font-size: 1.18rem; font-weight: 600; color: var(--t); line-height: 1.5; letter-spacing: -0.01em; }
.w-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.w-choice { padding: 16px; border-radius: var(--r-md); border: 1.5px solid var(--line-2); background: #fff; font-weight: 700; font-size: 1.05rem; color: var(--t); transition: all .18s var(--ease); }
.w-choice:hover:not(:disabled) { border-color: var(--purple); color: var(--purple-700); transform: translateY(-2px); }
.w-choice:disabled { cursor: default; opacity: 0.75; }
.w-choice.is-correct { border-color: #1FB667; background: #EAF9F1; color: #15804C; opacity: 1; }
.w-choice.is-wrong { border-color: #E5484D; background: #FCEEEE; color: #C12A2F; opacity: 1; }
.w-feedback { display: none; margin-top: 18px; padding: 18px 20px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); }
.w-feedback.is-show { display: block; }
.w-feedback__tag { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 0.9rem; margin-bottom: 8px; }
.w-feedback__tag svg { width: 17px; height: 17px; }
.w-feedback.is-good .w-feedback__tag { color: #15804C; }
.w-feedback.is-bad .w-feedback__tag { color: #C12A2F; }
.w-feedback p { color: var(--t-2); font-size: 0.98rem; }
.w-feedback .btn { margin-top: 14px; }
.w-result { text-align: center; padding: 14px 0; }
.w-result__score { font-weight: 800; font-size: 3rem; letter-spacing: -0.03em; color: var(--purple-700); }
.w-result__msg { color: var(--t-muted); max-width: 44ch; margin: 10px auto 20px; }

/* ---------- Fact or Fiction ---------- */
.ff-row { padding: 16px 0; border-bottom: 1px solid var(--line); }
.ff-row:first-child { padding-top: 0; }
.ff-stmt { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; font-size: 1.05rem; color: var(--t); }
.ff-num { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--purple-050); color: var(--purple-700); font-weight: 800; font-size: 0.85rem; }
.ff-btns { display: flex; gap: 10px; margin-top: 12px; }
.ff-btn { padding: 9px 22px; border-radius: var(--r-pill); border: 1.5px solid var(--line-2); background: #fff; font-weight: 700; color: var(--t-2); transition: all .16s var(--ease); }
.ff-btn:hover:not(:disabled) { border-color: var(--purple); color: var(--purple-700); }
.ff-btn:disabled { cursor: default; }
.ff-btn.is-correct { border-color: #1FB667; background: #EAF9F1; color: #15804C; }
.ff-btn.is-wrong { border-color: #E5484D; background: #FCEEEE; color: #C12A2F; }
.ff-fb { display: none; align-items: center; gap: 8px; margin-top: 12px; font-size: 0.94rem; color: var(--t-2); }
.ff-fb.is-show { display: flex; }
.ff-fb svg { flex: none; width: 17px; height: 17px; }
.ff-fb.is-good svg { color: #15804C; }
.ff-fb.is-bad svg { color: #C12A2F; }
.ff-takeaway { display: none; align-items: flex-start; gap: 11px; margin-top: 20px; padding: 16px 18px; border-radius: var(--r-md); background: var(--purple-050); border: 1px solid var(--purple-100); color: var(--purple-700); font-weight: 600; font-size: 0.96rem; }
.ff-takeaway.is-show { display: flex; }
.ff-takeaway svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }

/* ---------- Prompt Improver ---------- */
.pi-tabs { display: inline-flex; gap: 4px; padding: 5px; background: var(--paper-2); border-radius: var(--r-pill); margin-bottom: 22px; }
.pi-tab { padding: 9px 20px; border-radius: var(--r-pill); border: 0; background: transparent; font-weight: 700; color: var(--t-muted); transition: all .18s var(--ease); }
.pi-tab.is-on { background: #fff; color: var(--purple-700); box-shadow: var(--sh-sm); }
.pi-meter-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pi-meter { display: inline-flex; gap: 5px; }
.pi-seg { width: 34px; height: 7px; border-radius: 4px; background: var(--paper-3); transition: background .3s var(--ease); }
.pi-seg.on { background: var(--purple); }
.pi-meter-lbl { font-weight: 700; font-size: 0.86rem; color: var(--t-faint); }
.pi-prompt { background: var(--ink-900); color: #EDEAFB; border-radius: var(--r-md); padding: 22px 24px; font-size: 1.1rem; font-weight: 500; line-height: 1.5; letter-spacing: -0.01em; font-family: ui-monospace, 'SF Mono', Menlo, monospace; }
.pi-note { margin-top: 14px; color: var(--t-muted); }
.pi-takeaway { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 600; color: var(--t); }

/* ---------- Trust poll ---------- */
.tr-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tr-row:first-child { padding-top: 0; }
.tr-task { font-weight: 700; font-size: 1.06rem; color: var(--t); }
.tr-opts { display: inline-flex; gap: 7px; }
.tr-opt { padding: 8px 16px; border-radius: var(--r-pill); border: 1.5px solid var(--line-2); background: #fff; font-weight: 600; font-size: 0.92rem; color: var(--t-muted); transition: all .16s var(--ease); }
.tr-opt:hover { border-color: var(--purple); color: var(--purple-700); }
.tr-opt.is-pick { border-color: var(--purple); background: var(--purple); color: #fff; }
.tr-takeaway { display: none; align-items: flex-start; gap: 11px; margin-top: 20px; padding: 16px 18px; border-radius: var(--r-md); background: var(--purple-050); border: 1px solid var(--purple-100); color: var(--purple-700); font-weight: 600; font-size: 0.96rem; }
.tr-takeaway.is-show { display: flex; }
.tr-takeaway svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }

/* ---------- Myth-buster ---------- */
.myth { background: linear-gradient(160deg, var(--ink-800), var(--ink-900)); color: #fff; border-radius: var(--r-xl); padding: clamp(28px,3.4vw,44px); position: relative; overflow: hidden; }
.myth h3 { color: #fff; }
.myth .eyebrow { color: var(--purple-300); }
.myth__q { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.025em; margin: 14px 0 6px; color:#fff; }
.myth__claim { color: var(--purple-300); font-weight: 600; font-style: italic; margin-bottom: 22px; }
.myth__answer { background: rgba(255,255,255,0.06); border: 1px solid var(--line-dark); border-radius: var(--r-md); padding: 20px 22px; }
.myth__answer .verdict { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: #7EE8B0; margin-bottom: 8px; }
.myth__answer p { color: var(--t-on-dark-muted); }
.myth__answer .verdict svg { width: 18px; height: 18px; }

/* ---------- Pledge ---------- */
.pledge { background: linear-gradient(160deg, #fff, var(--purple-050)); border: 1px solid var(--purple-100); border-radius: var(--r-xl); padding: clamp(28px,3.4vw,44px); box-shadow: var(--sh-md); }
.pledge__list { display: grid; gap: 12px; margin: 22px 0 26px; }
.pledge__list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--t); font-size: 1.04rem; }
.pledge__list .tk { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--purple); color: #fff; margin-top: 1px; }
.pledge__list .tk svg { width: 15px; height: 15px; }
.pledge__btn .btn svg { width: 18px; height: 18px; }
.pledge__done { display: none; align-items: center; gap: 12px; padding: 16px 20px; border-radius: var(--r-pill); background: #EAF9F1; border: 1px solid #BFE9D2; color: #15804C; font-weight: 700; }
.pledge__done svg { flex: none; width: 22px; height: 22px; }
.pledge.is-pledged .pledge__btn { display: none; }
.pledge.is-pledged .pledge__done { display: inline-flex; }

/* ---------- Glossary ---------- */
.glossary { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (max-width: 720px){ .glossary { grid-template-columns: 1fr; } }
.glossary div { background: #fff; padding: 22px clamp(18px,2.2vw,26px); }
.glossary dt { font-weight: 800; color: var(--t); font-size: 1.05rem; letter-spacing: -0.01em; }
.glossary dd { margin-top: 6px; color: var(--t-muted); font-size: 0.96rem; }

/* ---------- Downloads ---------- */
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px,2vw,22px); }
@media (max-width: 620px){ .dl-grid { grid-template-columns: 1fr; } }
.dl-card { display: flex; align-items: center; gap: 18px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease); text-decoration: none; }
.dl-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); border-color: var(--line-2); text-decoration: none; }
.dl-card__ico { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--purple-050); color: var(--purple-700); }
.dl-card__ico svg { width: 26px; height: 26px; }
.dl-card__t { font-weight: 700; color: var(--t); letter-spacing: -0.01em; }
.dl-card__s { font-size: 0.88rem; color: var(--t-faint); margin-top: 2px; }
.dl-card__go { margin-left: auto; color: var(--purple-700); flex: none; }
.dl-card__go svg { width: 20px; height: 20px; }
