/* static/css/viral_score.css - G2, the Viral Score page (templates/viral_score.html). Site tokens with fallbacks,
   logical properties, phone first (measured at 390 px). */
.vs-wrap { max-width: 720px; margin: 0 auto; padding: 1.5rem 16px 6rem; box-sizing: border-box; color: var(--text, #1B1638); }
.vs-wrap [hidden] { display: none !important; }
.vs-hero { text-align: center; margin-bottom: 1.2rem; }
.vs-eyebrow { display: inline-flex; gap: 6px; align-items: center; padding: 5px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 800; color: #C2410C; background: #FFF4E5; border: 1px solid #FBD38D; }
.vs-h1 { margin: .7rem 0 .4rem; font-size: clamp(1.5rem, 5.6vw, 2.2rem); line-height: 1.15; font-weight: 900; letter-spacing: -.02em; }
.vs-lead { margin: 0 auto; max-width: 560px; color: var(--text2, #4A4466); font-size: .98rem; line-height: 1.5; }
.vs-card { background: var(--bg2, #fff); border: 1px solid var(--border, #E6E1F5); border-radius: 18px; padding: 16px;
  margin-bottom: 12px; box-shadow: 0 6px 22px rgba(27, 22, 56, .05); box-sizing: border-box; }
.vs-label { display: block; font-weight: 800; font-size: .9rem; margin-bottom: 6px; }
.vs-text { width: 100%; box-sizing: border-box; min-height: 104px; resize: vertical; padding: 12px 14px; border-radius: 14px;
  border: 1.5px solid var(--border, #E6E1F5); background: var(--bg3, #FAF9FF); color: var(--text, #1B1638);
  font: 600 1rem/1.45 var(--font, system-ui, -apple-system, sans-serif); }
.vs-text:focus { outline: none; border-color: var(--accent, #6D3BF5); box-shadow: 0 0 0 3px rgba(109, 59, 245, .15); }
.vs-ex { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0 12px; }
.vs-ex-h { font-size: .78rem; font-weight: 700; color: var(--text3, #7A7394); }
.vs-chip { border: 1px solid var(--border, #E6E1F5); background: var(--bg2, #fff); color: var(--text2, #4A4466);
  border-radius: 999px; padding: 7px 12px; font: 600 .78rem/1.25 var(--font, system-ui, sans-serif); cursor: pointer;
  text-align: start; max-width: 100%; }
.vs-chip:hover { border-color: var(--accent, #6D3BF5); color: var(--accent, #6D3BF5); }
.vs-plat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.vs-plat-opt { position: relative; }
.vs-plat-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.vs-plat-opt span { display: flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 12px;
  border: 1.5px solid var(--border, #E6E1F5); font-weight: 800; font-size: .88rem; color: var(--text2, #4A4466); }
.vs-plat-opt input:checked + span { border-color: var(--accent, #6D3BF5); color: var(--accent, #6D3BF5); background: var(--bg3, #F3F0FF); }
.vs-plat-opt input:focus-visible + span { outline: 3px solid var(--accent, #6D3BF5); outline-offset: 2px; }
.vs-go { width: 100%; min-height: 52px; border: 0; border-radius: 14px; cursor: pointer; color: #fff;
  font: 900 1rem/1.1 var(--font, system-ui, sans-serif); background: linear-gradient(135deg, #f97316, #db2777 55%, #7c3aed);
  box-shadow: 0 10px 26px rgba(219, 39, 119, .28); display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.vs-go[disabled] { opacity: .75; cursor: progress; }
.vs-go:focus-visible { outline: 3px solid var(--accent, #6D3BF5); outline-offset: 2px; }
.vs-err { margin: 8px 0 0; color: #B91C1C; font-weight: 700; font-size: .86rem; text-align: center; }
.vs-err a { color: inherit; text-decoration: underline; }
.vs-fine { margin: 10px 0 0; font-size: .76rem; color: var(--text3, #7A7394); line-height: 1.5; text-align: center; }

.vs-result, .vs-hooks { scroll-margin-top: 150px; }
.vs-top { display: flex; gap: 16px; align-items: center; }
.vs-ring { position: relative; flex: 0 0 auto; width: 112px; height: 112px; }
.vs-ring-bg { fill: none; stroke: var(--bg3, #F1EEFB); stroke-width: 11; }
.vs-ring-fg { fill: none; stroke-width: 11; stroke-linecap: round; stroke: #7c3aed; stroke-dasharray: 326.7; stroke-dashoffset: 326.7;
  transition: stroke-dashoffset .9s cubic-bezier(.2, .8, .2, 1), stroke .3s; }
.vs-ring-n { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; padding-top: 38px; }
.vs-ring-n b { font-size: 2rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.vs-ring-n small { font-size: .78rem; color: var(--text3, #7A7394); font-weight: 700; }
.vs-top-text { min-width: 0; }
.vs-level { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 900; font-size: .86rem; }
.vs-level.weak { background: #FEF2F2; color: #B91C1C; }
.vs-level.ok { background: #FFFBEB; color: #B45309; }
.vs-level.strong { background: #ECFDF3; color: #15803D; }
.vs-level.viral { background: linear-gradient(135deg, #fde68a, #fbcfe8); color: #9D174D; }
.vs-hookline { margin: 8px 0 0; font-weight: 700; font-size: .95rem; line-height: 1.4; overflow-wrap: anywhere; }
.vs-quick { margin: 6px 0 0; font-size: .78rem; color: #B45309; }
.vs-weak { border-color: #FBD38D; background: linear-gradient(135deg, #FFFBF2, #FFF4E5); }
.vs-weak-h { font-size: .92rem; }
.vs-weak p { margin: 6px 0 0; line-height: 1.5; font-size: .92rem; }
.vs-h2 { margin: 0 0 10px; font-size: 1rem; font-weight: 900; }
.vs-crit { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.vs-crit li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.vs-crit .nm { font-weight: 800; font-size: .88rem; }
.vs-crit .sc { font-weight: 900; font-variant-numeric: tabular-nums; font-size: .88rem; }
.vs-crit .bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--bg3, #F1EEFB); overflow: hidden; }
.vs-crit .bar i { display: block; height: 100%; border-radius: 99px; background: #7c3aed; transition: width .8s ease; }
.vs-crit .bar i.lo { background: #EF4444; }
.vs-crit .bar i.mid { background: #F97316; }
.vs-crit .bar i.hi { background: #16A34A; }
.vs-crit .why { grid-column: 1 / -1; font-size: .8rem; color: var(--text2, #4A4466); line-height: 1.4; }
.vs-hook { border: 1.5px solid var(--border, #E6E1F5); border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; }
.vs-hook-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.vs-angle { font-size: .74rem; font-weight: 800; color: var(--accent, #6D3BF5); text-transform: uppercase; letter-spacing: .04em; }
.vs-badge { font-weight: 900; font-size: .84rem; padding: 3px 9px; border-radius: 999px; background: #ECFDF3; color: #15803D;
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.vs-hook-text { margin: 0; font-size: 1.02rem; font-weight: 800; line-height: 1.4; overflow-wrap: anywhere; }
.vs-hook.masked .vs-hook-text { color: var(--text3, #7A7394); }
.vs-hook.masked .vs-hook-text::after { content: ''; display: inline-block; width: 46%; height: .9em; margin-inline-start: 6px;
  vertical-align: middle; border-radius: 6px; background: linear-gradient(90deg, #E9E4FB, #F5F2FF); }
.vs-hook-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.vs-btn2 { min-height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border, #E6E1F5); background: var(--bg2, #fff);
  color: var(--text, #1B1638); font: 800 .84rem/1 var(--font, system-ui, sans-serif); cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; }
.vs-btn2.pri { background: var(--accent, #6D3BF5); color: #fff; border-color: transparent; }
.vs-unlock { margin-top: 4px; }
.vs-unlock-btn { background: linear-gradient(135deg, #8b5cf6, var(--accent, #6D3BF5)); box-shadow: 0 10px 24px rgba(109, 59, 245, .3); }
.vs-again { display: block; margin: 4px auto 18px; min-height: 44px; border: 0; background: transparent; color: var(--accent, #6D3BF5);
  font: 800 .92rem system-ui; cursor: pointer; text-decoration: underline; }
.vs-how ol { margin: 0; padding-inline-start: 20px; color: var(--text2, #4A4466); font-size: .88rem; line-height: 1.55; }
.vs-how li + li { margin-top: 6px; }
@media (max-width: 420px) {
  .vs-top { gap: 12px; }
  .vs-ring, .vs-ring svg { width: 96px; height: 96px; }
  .vs-ring-n { padding-top: 31px; }
  .vs-ring-n b { font-size: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) { .vs-ring-fg, .vs-crit .bar i { transition: none; } }
