/* Safety check: one thing on screen at a time. A gauge for the answer, bars for the reasons. */
.sc-head { max-width: 820px; }
.sc-title { max-width: 24ch; }
.sc-work { padding-top: 12px; max-width: 820px; }
.sc-panel { padding: 22px; }
.sc-tabs { position: relative; display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.sc-tabs button { position: relative; z-index: 1; font: 700 14.5px var(--body); color: var(--muted); background: none; border: 0; border-radius: 10px; padding: 10px 18px; cursor: pointer; transition: color .25s; }
.sc-tabs button.is-on { color: var(--accent-ink); }
.sc-tabs button:focus-visible, .sc-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sc-tabs__bar { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 10px; background: var(--accent-tint); box-shadow: inset 0 0 0 1px var(--accent); transition: transform .35s cubic-bezier(.2, 1, .3, 1), width .35s cubic-bezier(.2, 1, .3, 1); }
.sc-pane { animation: sc-in .35s ease-out; }
.sc-pane[hidden] { display: none; }
.sc-input { width: 100%; min-height: 120px; resize: vertical; margin: 8px 0 14px; font: 500 15.5px/1.5 var(--body); }
.sc-drop { display: grid; gap: 6px; place-items: center; text-align: center; padding: 38px 20px; border: 2px dashed var(--line); border-radius: 18px; background: var(--surface-2); cursor: pointer; transition: border-color .25s, background .25s, transform .25s; }
.sc-drop:hover, .sc-drop.is-over, .sc-drop:focus-within { border-color: var(--accent); background: var(--accent-tint); }
.sc-drop.is-over { transform: scale(1.015); }
.sc-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sc-drop__big { font: 800 18px var(--display, var(--body)); }
.sc-drop__small { color: var(--muted); font-size: 14px; }

.sc-result { --tone: var(--muted); margin-top: 20px; padding: 24px; border: 1px solid color-mix(in srgb, var(--tone) 50%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--tone) 10%, var(--sheet)), var(--sheet) 55%); animation: sc-in .45s cubic-bezier(.2, 1.1, .3, 1); }
.sc-result[hidden] { display: none; }
.sc-result[data-tone="good"] { --tone: var(--pass); } .sc-result[data-tone="warn"] { --tone: var(--med); } .sc-result[data-tone="bad"] { --tone: var(--crit); }
.sc-result__top { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.sc-gauge { position: relative; width: 220px; flex: none; }
.sc-gauge svg { display: block; width: 100%; height: auto; }
.sc-gauge__bg, .sc-gauge__fg { fill: none; stroke-width: 14; stroke-linecap: round; }
.sc-gauge__bg { stroke: var(--line); }
.sc-gauge__fg { stroke: var(--tone); filter: drop-shadow(0 0 8px var(--tone)); stroke-dasharray: 283; stroke-dashoffset: 283; transition: stroke-dashoffset 1.2s cubic-bezier(.2, 1, .3, 1); }
.sc-gauge__num { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; line-height: 1; }
.sc-gauge__num b { display: block; font: 800 40px var(--display, var(--body)); color: var(--tone); }
.sc-gauge__num span { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; }
.sc-result__txt { flex: 1 1 260px; min-width: 0; }
.sc-result__txt h2 { margin: 0; font: 800 clamp(20px, 3.6vw, 26px)/1.15 var(--display, var(--body)); }
.sc-result__txt p { margin: 8px 0 0; color: var(--slate); max-width: 56ch; }
.sc-h3 { margin: 22px 0 10px; font: 800 15px var(--display, var(--body)); }
.sc-why { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sc-why li { animation: sc-in .45s calc(var(--i, 0) * .09s + .25s) cubic-bezier(.2, 1, .3, 1) both; }
.sc-why b { display: block; font: 700 15px var(--body); }
.sc-why span { display: block; margin-top: 2px; color: var(--slate); font-size: 14px; }
.sc-why i { display: block; height: 6px; margin-top: 7px; border-radius: 99px; background: var(--line); overflow: hidden; }
.sc-why i::after { content: ""; display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: var(--tone); transform-origin: left; animation: sc-bar .8s calc(var(--i, 0) * .09s + .4s) cubic-bezier(.2, 1, .3, 1) both; }
.sc-fp { margin: 18px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.sc-fp a { color: var(--accent-ink); font-weight: 700; }
.sc-limits { margin-top: 14px; color: var(--muted); font-size: 13.5px; }
.sc-limits summary { cursor: pointer; }
.sc-limits ul { margin: 8px 0 0; padding-left: 18px; }
@keyframes sc-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes sc-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 520px) { .sc-gauge { width: 100%; max-width: 260px; margin: 0 auto; } .sc-tabs button { padding: 10px 12px; } }
@media (prefers-reduced-motion: reduce) { .sc-pane, .sc-result, .sc-why li, .sc-why i::after { animation: none; } .sc-gauge__fg, .sc-tabs__bar { transition: none; } }
.sc-pwrow { display: flex; gap: 10px; align-items: center; margin: 8px 0 6px; }
.sc-pwrow .url-input { flex: 1; font: 600 17px var(--mono); }
.sc-pwnote { margin: 0 0 14px; color: var(--muted); font-size: 13.5px; }

/* ---- landing hero: a message being checked ---- */
.scan__panel.sc-panel { padding: 30px; }
.sh .scan__panel { margin: 0; }
.sh-demo { position: relative; margin-top: 30px; max-width: 540px; min-height: 270px; animation: fadeUp 1s .7s cubic-bezier(.2, .8, .2, 1) both; }
.sh-phone { position: relative; width: min(320px, 100%); padding: 24px 20px 26px; border: 1px solid var(--line); border-radius: 28px; background: var(--surface-2); box-shadow: var(--shadow-lg); overflow: hidden; }
.sh-phone::before { content: ""; display: block; width: 54px; height: 5px; margin: -10px auto 14px; border-radius: 9px; background: var(--line); }
.sh-msg { margin: 0; font: 500 14.5px/1.6 var(--body); color: var(--slate); }
.sh-msg b { color: var(--crit); font-weight: 700; overflow-wrap: anywhere; }
.sh-beam { position: absolute; left: 0; right: 0; top: -60px; height: 60px; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 32%, transparent)); border-bottom: 2px solid var(--accent); box-shadow: 0 6px 24px var(--accent); animation: sh-sweep 7s ease-in-out infinite; }
.sh-chip, .sh-verdict { position: absolute; left: 336px; padding: 6px 13px; border-radius: 999px; font: 700 13px var(--body); white-space: nowrap; border: 1px solid currentColor; opacity: 0; animation-duration: 7s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
.sh-chip { color: var(--high); background: var(--high-bg); }
.sh-chip--1 { top: 34px; animation-name: sh-pop1; } .sh-chip--2 { top: 88px; animation-name: sh-pop2; } .sh-chip--3 { top: 142px; animation-name: sh-pop3; }
.sh-verdict { top: 196px; left: 100px; padding: 9px 18px; font-size: 15px; color: var(--crit); background: var(--crit-bg); animation-name: sh-pop4; }
@keyframes sh-sweep { 0% { top: -60px; } 52%, 100% { top: 100%; } }
@keyframes sh-pop1 { 0%, 18% { opacity: 0; transform: translateY(8px) scale(.94); } 23%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes sh-pop2 { 0%, 32% { opacity: 0; transform: translateY(8px) scale(.94); } 37%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes sh-pop3 { 0%, 46% { opacity: 0; transform: translateY(8px) scale(.94); } 51%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes sh-pop4 { 0%, 62% { opacity: 0; transform: translateY(8px) scale(.94); } 67%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.sh-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 6px; padding-bottom: 36px; }
.sh-more__card { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); text-decoration: none; color: inherit; transition: border-color .25s, transform .25s, background .25s; }
.sh-more__card:hover, .sh-more__card:focus-visible { border-color: var(--accent); background: var(--accent-tint); transform: translateY(-3px); outline: none; }
.sh-more__card b { display: block; font: 800 16px var(--display, var(--body)); }
.sh-more__card span { display: block; margin-top: 6px; color: var(--slate); font-size: 14px; }
@media (max-width: 960px) { .sh-more { grid-template-columns: minmax(0, 1fr); } .sh-chip, .sh-verdict { position: static; display: inline-block; margin: 10px 8px 0 0; opacity: 1; animation: none; } .sh-demo { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .sh-beam { display: none; } .sh-chip, .sh-verdict { opacity: 1; animation: none; } .sh-demo { animation: none; } }
.sc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; }
.sc-actions:empty { display: none; }
.sc-actions__note { margin: 0; color: var(--muted); font-size: 13.5px; max-width: 60ch; }
