/* Scam Check shell (spec 041 §2, §3, §5): the product's own ground and glow,
   indigo-tinted surfaces inside the page, the "Scam Check" lockup and mark,
   notices, the safety box under the message box, the quick-link tiles and
   "How Scam Check works". The navbar, its menus, toasts and the footer keep
   Oskoole's own values. Colours only through main.css variables. */

body.sc-body { background: linear-gradient(180deg, var(--sc-ground-top) 0, var(--sc-ground-bottom) 640px); background-color: var(--sc-ground-bottom); }
html body.sc-body::before {
    position: absolute; inset: 0 0 auto; height: 560px;
    background: radial-gradient(ellipse 70% 100% at 50% 0, var(--sc-glow) 0%, transparent 70%);
}
.sc-page { position: relative; z-index: 1; --card-bg: var(--sc-surface); --input-bg: var(--sc-surface); }

/* ── mark and lockup ── */
.sc-mark { display: block; }
.sc-mark-tile {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 44px; height: 44px; border-radius: 28%; background: var(--sc-accent); color: var(--sc-on-accent);
}
.sc-mark-tile .sc-mark { width: 64%; height: 64%; }
.sc-mark-tile--sm { width: 32px; height: 32px; }
.sc-mark-tile--lg { width: 72px; height: 72px; }
.sc-lockup {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; align-self: flex-start;
    font-weight: 800; line-height: 1.2; letter-spacing: -.02em; text-decoration: none;
}
.sc-page a.sc-lockup, .sc-page a.sc-lockup:hover, .sc-lockup { color: var(--text-primary); text-decoration: none; }
.sc-lockup-name { font-size: 1.5rem; }
.sc-lockup-accent { color: var(--sc-accent); }
.sc-lockup--sm { min-height: 44px; }
.sc-lockup--sm .sc-lockup-name { font-size: 1.25rem; }
.sc-page a.sc-lockup:hover .sc-lockup-accent { color: var(--sc-accent-strong); }
.sc-page a.sc-lockup { position: relative; }
.sc-page a.sc-lockup::after { content: ""; position: absolute; left: -6px; right: -6px; top: min(0px, calc(50% - 22px)); bottom: min(0px, calc(50% - 22px)); }

/* ── hero (start screen and landing) ── */
.sc-hero { display: flex; flex-direction: column; align-items: center; text-align: center; }
.sc-hero .sc-lockup { align-self: center; }
.sc-page .sc-hero-title { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; letter-spacing: -.03em; margin: 8px 0 6px; text-wrap: balance; }
.sc-hero-hl { color: var(--sc-accent); }
.sc-hero-sub { color: var(--text-secondary); font-size: 1.25rem; line-height: 1.5; margin: 0 0 14px; }
.sc-hero-notes { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 36rem; margin: 0 auto 14px; text-align: left; }
.sc-hero-notes > * { margin: 0; }
.sc-hero > .sc-lead { max-width: 36rem; margin: 0 auto; }
.sc-land-card, .sc-about-card {
    padding: 22px; border-radius: 24px; background: var(--card-bg);
    border: 1px solid var(--card-border); box-shadow: var(--card-shadow);
}
.sc-land-card > .sc-notice { padding: 0; border: none; border-radius: 0; background: none; box-shadow: none; font-weight: 700; }

/* ── cards and notices ── */
.sc-screen > .sc-lockup + .sc-back { margin-top: -12px; }

/* ── safety box under the message box ── */
[data-sc-screen="start"] .sc-safety { margin-top: 16px; }

/* ── quick links ── */
[data-sc-screen="start"] .sc-foot, [data-sc-landing] .sc-foot { margin-top: 20px; }
.sc-foot:has(> .sc-btn--urgent)::before { content: ""; flex-basis: 100%; height: 0; order: 1; }
.sc-foot > .sc-btn--urgent { order: 0; align-self: center; }
.sc-foot > .sc-nav-btn { order: 2; max-width: 100%; }

/* ── "How Scam Check works" ── */
.sc-how {
    margin-top: 20px; border-radius: 20px; background: var(--card-bg);
    border: 1px solid var(--card-border); box-shadow: var(--card-shadow);
}
.sc-how > summary {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 8px 20px;
    font-weight: 800; cursor: pointer; list-style: none; border-radius: 20px;
}
.sc-how > summary::-webkit-details-marker { display: none; }
.sc-how-chev { width: 24px; height: 24px; color: var(--sc-accent); transform: rotate(180deg); transition: transform .15s ease; }
.sc-how[open] .sc-how-chev { transform: rotate(-90deg); }
.sc-how-body { display: flex; flex-direction: column; gap: 14px; padding: 0 20px 20px; }
.sc-how-steps { padding-left: 1.4em; display: flex; flex-direction: column; gap: 8px; }
.sc-how-body .sc-nav-btn { align-self: flex-start; }

@media (max-width: 500px) {
    .sc-mark-tile--md { width: 32px; height: 32px; }
    .sc-lockup--md { min-height: 32px; }
    .sc-lockup--md .sc-lockup-name { font-size: 1.25rem; }
    .sc-page .sc-hero-title { font-size: 2rem; margin: 4px 0 10px; }
    .sc-hero-sub { display: none; }
    .sc-hero-notes { margin-bottom: 10px; }
    .sc-screen > .sc-lockup + .sc-back { margin-top: -14px; }
    [data-sc-screen="start"] .sc-safety {
        display: block; margin-top: 8px; padding: 10px 12px; font-size: 1.125rem; font-weight: 700; line-height: 1.35;
    }
    [data-sc-screen="start"] .sc-safety-icon { float: left; width: 24px; height: 24px; padding: 3px; margin: 0 8px 0 0; }
    [data-sc-screen="start"] .sc-safety .sc-listen { display: flex; width: fit-content; clear: both; min-height: 44px; margin-top: 8px; }
}
@media (min-width: 501px) {
    [data-sc-screen="start"] .sc-safety { grid-template-columns: auto 1fr auto; align-items: center; }
    [data-sc-screen="start"] .sc-safety .sc-listen { grid-column: 3; grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .sc-how-chev { transition: none; }
}
