/* ==========================================================================
   Social Scan AI — design system
   Tokens → base → layout → components → pages → report → print
   ========================================================================== */

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url('../fonts/manrope-latin-wght-normal.woff2') format('woff2-variations'), url('../fonts/manrope-latin-wght-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url('../fonts/manrope-latin-ext-wght-normal.woff2') format('woff2-variations'), url('../fonts/manrope-latin-ext-wght-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Dark theme only — matches the Social Scan AI brand design */
:root {
    --bg: #060b14;
    --bg-2: #0a101b;
    --surface: #0d1522;
    --surface-2: #111b2b;
    --surface-3: #252e40;
    --panel-grad: linear-gradient(145deg, #101a2a, #0a111d);
    --text: #f7f8fb;
    --text-2: #c5ccda;
    --muted: #aeb6c7;
    --faint: #7f899b;
    --border: rgba(255, 255, 255, .10);
    --border-strong: rgba(255, 255, 255, .20);

    --pink: #d72cff;
    --orange: #ff8a3d;
    --blue: #8aa6ff;
    --cyan: #7fd9ff;
    --accent: #d72cff;
    --accent-hover: #e25bff;
    --accent-soft: rgba(215, 44, 255, .12);
    --accent-text: #8aa6ff;
    --on-accent: #ffffff;
    --grad: linear-gradient(100deg, #c72cff, #ff963f);
    --grad-bar: linear-gradient(90deg, #d62cff, #ff9c45);
    --grad-text: linear-gradient(90deg, #c632ff, #ff6c89, #ffae55);
    --brand-gradient: linear-gradient(100deg, #c72cff, #ff963f);

    --good: #3fd69b;
    --good-soft: rgba(63, 214, 155, .12);
    --mid: #ffb35c;
    --mid-soft: rgba(255, 179, 92, .12);
    --low: #ff6b7a;
    --low-soft: rgba(255, 107, 122, .12);

    --radius: 22px;
    --radius-sm: 13px;
    --radius-xs: 9px;
    --shadow-sm: 0 8px 18px rgba(0, 0, 0, .22);
    --shadow: 0 20px 50px rgba(0, 0, 0, .45);
    --shadow-lg: 0 25px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(221, 48, 255, .12);

    --font: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --container: 1180px;
    --header-h: 76px;
    color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1 0 auto; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; letter-spacing: -.02em; font-weight: 800; color: var(--text); }
h1 { font-size: clamp(30px, 4.2vw, 44px); letter-spacing: -.04em; line-height: 1.05; }
h2 { font-size: clamp(26px, 3.4vw, 39px); letter-spacing: -.05em; line-height: 1.08; }
h3 { font-size: 18px; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
strong { font-weight: 700; }
small, .small { font-size: 13px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 10px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
[hidden] { display: none !important; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-narrow { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }
.page { padding: 40px 0 72px; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.eyebrow, .section-label {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
    color: var(--cyan); margin-bottom: 14px;
}
.gradient-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    height: var(--header-h);
    background: rgba(6, 11, 20, .78);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
}
.site-header.scrolled, .page-app .site-header { border-bottom-color: var(--border); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 23px; letter-spacing: -1px; }
.logo-mark {
    width: 32px; height: 32px; flex-shrink: 0; border: 4px solid #ee3fff; border-right-color: #ff914d; border-bottom-color: #ff914d;
    border-radius: 10px; transform: skew(-7deg); display: grid; place-items: center; color: #fff;
}
.logo-mark::after { content: "S"; font-size: 18px; font-weight: 800; line-height: 1; transform: skew(7deg); }
.logo:hover { text-decoration: none; }
.logo .ai { color: var(--accent-text); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { color: #c8cfdb; font-size: 13.5px; font-weight: 600; padding: 8px 12px; border-radius: 8px; position: relative; }
.nav a:not(.btn):hover { color: var(--text); text-decoration: none; }
.nav a.active:not(.btn) { color: var(--text); background: none; }
.nav a.active:not(.btn)::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--grad-bar); border-radius: 2px; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.credit-pill {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; color: var(--text-2);
    background: var(--surface-2); border: 1px solid var(--border);
    padding: 6px 12px; border-radius: 999px;
}
.credit-pill:hover { text-decoration: none; border-color: var(--border-strong); color: var(--text); }
.credit-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.user-menu { position: relative; }
.user-menu > summary { list-style: none; cursor: pointer; display: flex; }
.user-menu > summary::-webkit-details-marker { display: none; }
.avatar {
    width: 34px; height: 34px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--grad); color: #fff;
    font-weight: 800; font-size: 14px; overflow: hidden; border: 1px solid var(--border);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.menu-panel {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px;
    background: #111a2a; border: 1px solid var(--border); border-radius: 12px;
    box-shadow: var(--shadow-lg); padding: 6px; z-index: 60;
}
.menu-panel .menu-email { padding: 8px 10px 10px; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--border); margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-panel a, .menu-panel button {
    display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px;
    font: inherit; font-size: 14px; color: var(--text); background: none; border: 0; cursor: pointer;
}
.menu-panel a:hover, .menu-panel button:hover { background: var(--surface-2); text-decoration: none; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
    .site-header .nav { display: none; }
    .site-header.open .nav {
        display: flex; flex-direction: column; align-items: stretch;
        position: absolute; left: 0; right: 0; top: var(--header-h);
        background: var(--surface); border-bottom: 1px solid var(--border); padding: 10px 16px 16px; box-shadow: var(--shadow);
    }
    .site-header.open .nav a:not(.btn) { padding: 12px; font-size: 16px; }
    .nav-toggle {
        display: inline-flex; align-items: center; justify-content: center;
        width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
        background: var(--surface); color: var(--text); cursor: pointer;
    }
    .hide-mobile { display: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: inherit; font-size: 15px; font-weight: 800; line-height: 1.2; letter-spacing: -.005em;
    padding: 12px 20px; border-radius: 13px; border: 1px solid transparent;
    cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
/* Dark/colored buttons always carry explicit light text (and win over any "a" color rule) */
a.btn-primary, button.btn-primary, .btn.btn-primary { background: var(--grad); color: #ffffff; box-shadow: 0 10px 30px -10px rgba(215, 44, 255, .55); }
a.btn-primary:hover, button.btn-primary:hover, .btn.btn-primary:hover { background: var(--grad); color: #ffffff; filter: brightness(1.08); }
a.btn-dark, button.btn-dark, .btn.btn-dark { background: var(--text); color: var(--bg); }
a.btn-dark:hover, button.btn-dark:hover, .btn.btn-dark:hover { background: var(--text-2); color: var(--bg); }
a.btn-secondary, button.btn-secondary, .btn.btn-secondary { background: rgba(255, 255, 255, .04); color: var(--text); border-color: var(--border-strong); }
a.btn-secondary:hover, button.btn-secondary:hover, .btn.btn-secondary:hover { background: rgba(255, 255, 255, .09); color: var(--text); }
a.btn-ghost, button.btn-ghost, .btn.btn-ghost { background: transparent; color: var(--text-2); }
a.btn-ghost:hover, button.btn-ghost:hover, .btn.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
a.btn-danger, button.btn-danger, .btn.btn-danger { background: var(--low); color: #ffffff; }
a.btn-danger:hover, button.btn-danger:hover, .btn.btn-danger:hover { background: color-mix(in srgb, var(--low) 88%, #000); color: #ffffff; }
.btn.btn-danger-ghost { background: transparent; color: var(--low); border-color: color-mix(in srgb, var(--low) 35%, transparent); }
.btn.btn-danger-ghost:hover { background: var(--low-soft); color: var(--low); }
.btn.btn-google { background: #ffffff; color: #1f1f1f; border-color: #ffffff; }
a.btn-google:hover { background: #eef0f4; color: #1f1f1f; }
.btn-sm { font-size: 13.5px; padding: 7px 12px; border-radius: 9px; }
.btn-lg { font-size: 16px; padding: 14px 24px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn .spinner { width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Forms ---------- */
.label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.label .opt { font-weight: 400; color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.field + .field { margin-top: 16px; }
.input, .select, textarea.input {
    width: 100%; font: inherit; font-size: 15px; color: var(--text);
    background: rgba(12, 18, 29, .85); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    padding: 12px 14px; transition: border-color .15s, box-shadow .15s; appearance: none;
}
.input::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
select option { background: #0d1522; color: #f7f8fb; }
.select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23aeb6c7' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.input-prefix { position: relative; }
.input-prefix > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #d9e1ee; font-weight: 600; font-size: 18px; pointer-events: none; }
.input-prefix > .input { padding-left: 38px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- Cards, alerts, badges ---------- */
.card { background: var(--panel-grad); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: 0 20px 70px rgba(0, 0, 0, .3); }
.card-lg { padding: 32px; }
.card h2 { font-size: 19px; }
.card-title { font-size: 16px; font-weight: 650; margin: 0 0 4px; letter-spacing: -.01em; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14.5px; line-height: 1.55; border: 1px solid transparent; margin-bottom: 16px; }
.alert a { color: inherit; text-decoration: underline; font-weight: 600; }
.alert-error { background: var(--low-soft); color: var(--low); border-color: color-mix(in srgb, var(--low) 25%, transparent); }
.alert-success { background: var(--good-soft); color: var(--good); border-color: color-mix(in srgb, var(--good) 25%, transparent); }
.alert-info { background: var(--accent-soft); color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 22%, transparent); }
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 600; line-height: 1; padding: 5px 9px; border-radius: 999px;
    background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border);
}
.badge-good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.badge-mid { background: var(--mid-soft); color: var(--mid); border-color: transparent; }
.badge-low { background: var(--low-soft); color: var(--low); border-color: transparent; }
.badge-accent { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.badge .pulse { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: rgba(255, 255, 255, .02); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table th { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; background: rgba(255, 255, 255, .03); white-space: nowrap; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.delta-plus { color: var(--good); font-weight: 600; }
.delta-minus { color: var(--text-2); font-weight: 600; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - var(--header-h) - 160px); display: flex; align-items: center; justify-content: center; padding: 48px 16px; }
.auth-card { width: 100%; max-width: 420px; padding: 36px 32px; box-shadow: var(--shadow); }
.auth-title { font-size: 25px; margin-bottom: 6px; }
.auth-sub { color: var(--muted); margin-bottom: 24px; font-size: 15px; }
.auth-icon { width: 54px; height: 54px; border-radius: 16px; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.auth-legal { font-size: 12.5px; color: var(--muted); margin: 20px 0 0; line-height: 1.55; }
.auth-legal a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.divider-text { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ---------- Landing ---------- */
.hero { position: relative; padding: 64px 0 56px; overflow: hidden; }
.hero::before {
    content: ''; position: absolute; width: 620px; height: 620px; right: -120px; top: -80px; pointer-events: none;
    background: radial-gradient(circle, rgba(235, 43, 255, .22), rgba(255, 119, 58, .10) 38%, transparent 68%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 20px; align-items: center; }
.hero h1 { font-size: clamp(39px, 5.4vw, 60px); line-height: 1.02; letter-spacing: -3px; max-width: 650px; margin: 18px 0; }
.hero .lead { font-size: 19px; line-height: 1.55; color: #c1c9d8; max-width: 560px; margin: 0; }
.scan-form {
    display: flex; gap: 6px; max-width: 610px; margin-top: 28px;
    border: 1px solid rgba(255, 255, 255, .20); background: rgba(12, 18, 29, .85); border-radius: 16px; padding: 7px;
}
.scan-form .at { font-size: 24px; padding: 6px 4px 6px 14px; color: #d9e1ee; line-height: 1.3; }
.scan-form .input { flex: 1; min-width: 0; border: 0; box-shadow: none !important; background: transparent; font-size: 16px; padding: 12px 8px; }
.scan-form .btn { min-width: 150px; }
.trust-row { display: flex; gap: 10px 28px; flex-wrap: wrap; margin-top: 18px; color: #c8cfdb; font-size: 13px; }
.trust-row span::before { content: '✓'; color: #d94bff; margin-right: 9px; font-weight: 800; }
.hero-visual { position: relative; min-height: 470px; }
.phone {
    position: absolute; width: 335px; right: 35px; top: -5px; transform: rotate(7deg);
    border: 8px solid #080b12; border-radius: 42px; overflow: hidden; background: #080b12;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(221, 48, 255, .18);
}
.phone img { display: block; width: 100%; height: auto; }
.float-card {
    position: absolute; right: -5px; top: 150px; width: 158px; padding: 18px; border-radius: 17px;
    background: rgba(17, 24, 40, .92); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 20px 50px rgba(0, 0, 0, .55);
}
.float-card strong { display: block; font-size: 13px; }
.float-card small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.mini-bar { height: 7px; background: #293248; border-radius: 9px; margin-top: 12px; overflow: hidden; }
.mini-bar i { display: block; width: 68%; height: 100%; background: var(--grad-bar); border-radius: 9px; animation: fillbar 2.8s ease-in-out infinite alternate; }
@keyframes fillbar { from { width: 22%; } to { width: 86%; } }
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero { padding-top: 40px; }
    .phone { right: 15%; }
}
@media (max-width: 560px) {
    .hero h1 { letter-spacing: -2px; }
    .hero .lead { font-size: 16px; }
    .scan-form { flex-direction: column; gap: 4px; }
    .scan-form .at { display: none; }
    .scan-form .input { padding: 12px 10px; }
    .scan-form .btn { width: 100%; }
    .trust-row { gap: 10px 14px; font-size: 12px; }
    .hero-visual { min-height: 400px; }
    .phone { width: 255px; right: 10%; border-radius: 32px; }
    .float-card { right: 0; top: 100px; width: 130px; padding: 13px; }
}

.analyzes { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 34px 0 38px; }
.analyzes-grid { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 18px; }
.analyzes-item { padding: 0 18px; border-right: 1px solid rgba(255, 255, 255, .07); text-align: center; }
.analyzes-item:first-child { padding-left: 0; }
.analyzes-item:last-child { border: 0; }
.analyzes-item h3 { font-size: 12.5px; line-height: 1.25; margin: 0; font-weight: 700; letter-spacing: 0; }
.tile-ic {
    width: 42px; height: 42px; margin: 0 auto 10px; border-radius: 11px; display: grid; place-items: center;
    border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 8px 18px rgba(0, 0, 0, .22); color: #fff;
}
.tile-ic.t1 { background: linear-gradient(135deg, #16436e, #1e5a8d); color: #65c8ff; }
.tile-ic.t2 { background: linear-gradient(135deg, #0b5553, #176f69); color: #7ff0d8; }
.tile-ic.t3 { background: linear-gradient(135deg, #56233d, #70324d); color: #ff8fb7; }
.tile-ic.t4 { background: linear-gradient(135deg, #68481f, #805a28); color: #ffc46b; }
.tile-ic.t5 { background: linear-gradient(135deg, #38255e, #51357d); color: #c5a6ff; }
.tile-ic.t6 { background: linear-gradient(135deg, #5a1f63, #7a2a70); color: #ff9bf1; }
@media (max-width: 900px) { .analyzes-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; } .analyzes-item { border: 0; padding: 0; } }
@media (max-width: 560px) { .analyzes-grid { grid-template-columns: repeat(2, 1fr); } }

.sample { padding: 65px 0; }
.sample-grid { display: grid; grid-template-columns: 280px 1fr; gap: 42px; align-items: center; }
.sample-copy p { color: var(--muted); line-height: 1.55; }
.sample-report {
    background: var(--panel-grad); border: 1px solid var(--border); border-radius: 22px; padding: 24px;
    display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; box-shadow: 0 20px 70px rgba(0, 0, 0, .35);
}
.sample-report h4 { font-size: 15px; margin: 0 0 16px; }
.score-wrap { display: flex; align-items: center; gap: 22px; }
.score-wrap .score-ring { width: 128px; height: 128px; }
.score-wrap .score-ring .sv { font-size: 34px; }
.bars { flex: 1; min-width: 0; }
.bar-row { display: grid; grid-template-columns: minmax(70px, auto) minmax(60px, 1fr) 26px; gap: 10px; align-items: center; margin: 13px 0; font-size: 12px; color: #c5ccda; }
.bar-row b { font-weight: 700; color: var(--text); text-align: right; }
.sample-side { border-left: 1px solid var(--border); padding-left: 24px; }
.sample-side .mini-rec { display: flex; gap: 10px; margin: 14px 0; color: #c4cbda; font-size: 13px; line-height: 1.5; }
.num-dot { width: 27px; height: 27px; border-radius: 50%; background: #26324a; display: grid; place-items: center; color: #fff; flex: none; font-size: 12.5px; font-weight: 700; }
.sample-note { font-size: 12px; color: var(--faint); margin-top: 12px; }
@media (max-width: 900px) { .sample-grid { grid-template-columns: 1fr; } .sample-report { grid-template-columns: 1fr; } .sample-side { border-left: 0; border-top: 1px solid var(--border); padding: 20px 0 0; } }
@media (max-width: 560px) { .sample-report { padding: 16px; } .score-wrap { flex-direction: column; align-items: stretch; } .score-wrap .score-ring { margin: 0 auto; } .bar-row { grid-template-columns: 84px 1fr 26px; } }

.showcase { padding: 0 0 65px; }
.show-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 65px; align-items: center; }
.laptop { border-radius: 25px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .15); box-shadow: 0 30px 70px rgba(0, 0, 0, .55); }
.laptop img { width: 100%; display: block; }
.checks { display: grid; gap: 13px; margin-top: 24px; color: #c5cbd7; list-style: none; padding: 0; }
.checks li::before { content: '✓'; color: #ff7c58; margin-right: 11px; font-weight: 800; }
@media (max-width: 900px) { .show-grid { grid-template-columns: 1fr; gap: 32px; } }

.logos-row { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.platform-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255, 255, 255, .03); font-weight: 700; font-size: 13.5px; color: var(--text-2); }
.platform-chip.soon { opacity: .6; }
.platform-chip small { font-weight: 600; color: var(--muted); font-size: 11.5px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .lead { color: var(--text-2); font-size: 17px; }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: 12px; color: var(--text-2); }
.checklist li::before { content: '✓'; position: absolute; left: 0; top: 0; color: #ff7c58; font-weight: 800; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 26px; }
.step::before {
    counter-increment: step; content: counter(step);
    display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%;
    background: var(--grad); color: #fff; font-weight: 800; font-size: 14px; margin-bottom: 16px;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 28px; position: relative; }
.plan.featured { border-color: transparent; background: linear-gradient(145deg, #151d33, #0d1322) padding-box, var(--grad) border-box; border: 1px solid transparent; box-shadow: 0 25px 70px -20px rgba(215, 44, 255, .35); }
.plan .plan-flag { position: absolute; top: -12px; left: 28px; background: var(--grad); color: #fff; border: 0; }
.plan-name { font-size: 12px; font-weight: 700; color: var(--cyan); letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 14px; }
.plan-price { font-size: 46px; font-weight: 800; letter-spacing: -2px; line-height: 1; }
.plan-credits { font-size: 15px; color: var(--text); font-weight: 700; margin: 12px 0 2px; }
.plan-per { font-size: 13.5px; color: var(--muted); }
.plan-blurb { font-size: 14.5px; color: var(--text-2); margin: 16px 0 22px; flex: 1; }
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }

.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; font-weight: 700; font-size: 16.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ''; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
    border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--text-2); margin: -4px 0 20px; }

.final-box {
    background: linear-gradient(100deg, #25206b, #6c2869, #b94754); border-radius: 22px; padding: 28px 38px;
    display: flex; align-items: center; justify-content: space-between; gap: 25px;
}
.final-box h2, .final-box h3 { font-size: 25px; letter-spacing: -1px; margin: 0 0 6px; color: #fff; }
.final-box p { margin: 0; color: #ddd8e6; font-size: 14px; }
.final-box .scan-form { margin: 0; width: 480px; flex-shrink: 0; background: rgba(255, 255, 255, .05); }
.final-box .scan-form .btn { min-width: 130px; }
@media (max-width: 900px) { .final-box { flex-direction: column; align-items: stretch; padding: 25px 20px; } .final-box .scan-form { width: 100%; } }
a.btn-white, .btn.btn-white { background: #ffffff; color: #16112e; }
a.btn-white:hover, .btn.btn-white:hover { background: #f1eeff; color: #16112e; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 32px; font-size: 13.5px; color: var(--faint); background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: 11px; font-weight: 700; color: var(--cyan); margin-bottom: 14px; letter-spacing: 2.5px; text-transform: uppercase; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a, .footer-grid button.linkish { color: #aeb6c7; }
.footer-grid a:hover, .footer-grid button.linkish:hover { color: var(--text); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 12.5px; line-height: 1.6; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
button.linkish { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: var(--accent-text); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- App: dashboard ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head h1 { font-size: clamp(26px, 3.2vw, 32px); margin-bottom: 4px; }
.page-head p { color: var(--muted); margin: 0; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
@media (max-width: 960px) { .dash-grid { grid-template-columns: 1fr; } }
.platform-tabs { display: flex; gap: 6px; padding: 4px; background: rgba(255, 255, 255, .04); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 22px; width: fit-content; max-width: 100%; overflow-x: auto; }
.platform-tab {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 9px; border: 0; background: transparent;
    font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap;
}
.platform-tab.active { background: rgba(255, 255, 255, .1); color: var(--text); }
.platform-tab:disabled { cursor: not-allowed; }
.platform-tab .soon { font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 6px; background: var(--surface-3); color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.audit-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.audit-cta .muted { font-size: 13.5px; }

.progress-card { padding: 28px; }
.progress-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.progress-head .avatar { width: 44px; height: 44px; font-size: 17px; }
.progress-steps { list-style: none; padding: 0; margin: 0; }
.progress-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--muted); font-size: 15px; }
.progress-steps .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.progress-steps li.active { color: var(--text); font-weight: 600; }
.progress-steps li.active .dot { border-color: var(--accent); border-right-color: transparent; animation: spin .8s linear infinite; }
.progress-steps li.done { color: var(--text-2); }
.progress-steps li.done .dot { border-color: var(--good); background: var(--good) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center no-repeat; }
.progress-bar { height: 6px; border-radius: 999px; background: #252e40; overflow: hidden; margin-top: 18px; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--brand-gradient); border-radius: 999px; transition: width 1s ease; }

.credit-box { text-align: left; }
.credit-box .big { font-size: 46px; font-weight: 800; letter-spacing: -2px; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; line-height: 1; margin: 8px 0 4px; }
.aside-list { list-style: none; padding: 0; margin: 12px 0 0; font-size: 14px; color: var(--text-2); }
.aside-list li { padding: 6px 0; display: flex; gap: 10px; }
.aside-list li svg { flex-shrink: 0; margin-top: 3px; color: var(--accent-text); }

.report-list { display: flex; flex-direction: column; }
.report-row {
    display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--border); color: var(--text);
}
.report-row:last-child { border-bottom: 0; }
.report-row:hover { text-decoration: none; background: rgba(255, 255, 255, .03); }
.report-row .mini-score { width: 44px; height: 44px; flex-shrink: 0; font-size: 14px; }
.report-row .rr-main { flex: 1; min-width: 0; }
.report-row .rr-title { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.report-row .rr-meta { font-size: 13px; color: var(--muted); }
.report-row .rr-arrow { color: var(--muted); }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty svg { color: var(--border-strong); margin-bottom: 12px; }

/* ---------- Score ring (0–100, brand gradient) ---------- */
.score-ring {
    --score: 0;
    position: relative; width: 145px; height: 145px; border-radius: 50%; flex-shrink: 0;
    background: conic-gradient(#d72cff 0%, #ff9b4b calc(var(--score) * 1%), #263044 calc(var(--score) * 1%));
    display: grid; place-items: center;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.score-ring::before { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: #0b1220; }
.score-ring > * { position: relative; }
.score-ring .inner { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.score-ring .sv { font-size: 38px; font-weight: 800; letter-spacing: -1.5px; color: var(--text); }
.score-ring .sm { font-size: 13px; color: var(--muted); margin-top: 6px; font-weight: 600; }
.score-ring.sm-ring { width: 46px; height: 46px; }
.score-ring.sm-ring::before { inset: 4px; }
.score-ring.sm-ring .sv { font-size: 14px; letter-spacing: -.5px; }
.score-ring.pending { background: #263044; }
.score-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.score-label::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.score-label.good { color: var(--good); } .score-label.mid { color: var(--mid); } .score-label.low { color: var(--low); }

/* ---------- Report ---------- */
.report { max-width: 980px; margin: 0 auto; }
.report-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.report-top .crumbs { font-size: 14px; color: var(--muted); }
.report-top .crumbs a { color: var(--muted); }
.report-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.r-head { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.r-head .ig-avatar { width: 58px; height: 58px; border-radius: 50%; padding: 3px; background: linear-gradient(135deg, #7a2cff, #f22b91, #ffb13b); flex-shrink: 0; }
.r-head .ig-avatar span { width: 100%; height: 100%; border-radius: 50%; background: #0d1522; display: grid; place-items: center; font-weight: 800; font-size: 20px; border: 2px solid #060b14; }
.r-head h1 { font-size: clamp(24px, 3vw, 32px); margin: 0; letter-spacing: -1px; }
.r-head h1 a { color: var(--text); }
.r-head .r-sub { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.r-overview { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; margin-bottom: 16px; }
.r-score-card { display: flex; flex-direction: column; }
.r-score-card h2, .r-recs-card h2 { font-size: 17px; letter-spacing: -.3px; margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.r-score-card .score-wrap { flex: 1; }
.r-diag { font-size: 16.5px; line-height: 1.55; margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--border); color: var(--text); font-weight: 600; }
.r-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.r-recs-card .mini-rec { display: flex; gap: 12px; margin: 0 0 14px; color: var(--text-2); font-size: 14.5px; line-height: 1.5; align-items: flex-start; }
.r-recs-card .mini-rec strong { color: var(--text); display: block; font-size: 14.5px; }
.r-recs-card .see-all { color: var(--accent-text); font-weight: 700; font-size: 14px; }
.spark { color: var(--pink); }
@media (max-width: 820px) { .r-overview { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .r-score-card .score-wrap { flex-direction: column; align-items: stretch; } .r-score-card .score-ring { margin: 0 auto 8px; } }

.metric-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 0 0 8px; }
.metric { padding: 16px 16px; border: 1px solid var(--border); border-radius: 18px; background: var(--panel-grad); }
.metric .m-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; margin-bottom: 10px; }
.metric .mv { font-size: 24px; font-weight: 800; letter-spacing: -1px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.metric .ml { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.35; }
@media (max-width: 980px) { .metric-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .metric-grid { grid-template-columns: repeat(2, 1fr); } .metric .mv { font-size: 21px; } }
.metric-note { font-size: 12.5px; color: var(--faint); margin: 0 0 20px; }

.r-block { margin-bottom: 16px; }
.r-block > h2 { font-size: 18px; letter-spacing: -.4px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.h-ic { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid rgba(255, 255, 255, .08); background: linear-gradient(135deg, #38255e, #51357d); color: #c5a6ff; }
.r-block p, .r-block li { font-size: 15px; line-height: 1.65; color: var(--text-2); }
.r-block ul { margin: 0; padding-left: 20px; }
.r-block li { margin-bottom: 6px; }
.r-block li::marker { color: var(--muted); }

.area { padding: 16px 0; border-top: 1px solid var(--border); }
.area:first-of-type { border-top: 0; padding-top: 0; }
.area-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.area-head strong { font-size: 15.5px; color: var(--text); }
.area-head .as { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--text); }
.bar { height: 7px; border-radius: 999px; background: #252e40; overflow: hidden; margin-bottom: 10px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.bar span, .bar i { display: block; height: 100%; border-radius: 999px; background: var(--grad-bar); }
.bar-row .bar { margin: 0; }
.area p { margin: 0; font-size: 14.5px; }
.c-good { color: var(--good); } .c-mid { color: var(--mid); } .c-low { color: var(--low); }

.r-problem { background: linear-gradient(120deg, rgba(37, 32, 107, .55), rgba(108, 40, 105, .45) 55%, rgba(185, 71, 84, .35)), var(--panel-grad); border-color: rgba(255, 255, 255, .14); }
.r-problem .h-ic { background: linear-gradient(135deg, #56233d, #70324d); color: #ff8fb7; }
.r-problem h3 { font-size: 17px; margin-bottom: 6px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }
.h-ic.t1 { background: linear-gradient(135deg, #16436e, #1e5a8d); color: #65c8ff; }
.h-ic.t2 { background: linear-gradient(135deg, #0b5553, #176f69); color: #7ff0d8; }
.h-ic.t3 { background: linear-gradient(135deg, #56233d, #70324d); color: #ff8fb7; }
.h-ic.t4 { background: linear-gradient(135deg, #68481f, #805a28); color: #ffc46b; }
.h-ic.t5 { background: linear-gradient(135deg, #38255e, #51357d); color: #c5a6ff; }
.quick-list { list-style: none; padding: 0 !important; counter-reset: q; }
.quick-list li { counter-increment: q; position: relative; padding-left: 34px; margin-bottom: 12px; }
.quick-list li::before { content: counter(q); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: #26324a; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.rec { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--border); }
.rec:first-of-type { border-top: 0; padding-top: 0; }
.rec-n { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.rec h3 { font-size: 16px; margin: 3px 0 8px; }
.rec dl { margin: 0; display: grid; grid-template-columns: 52px 1fr; gap: 4px 12px; font-size: 14.5px; line-height: 1.6; }
.rec dt { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding-top: 3px; }
.rec dd { margin: 0; color: var(--text-2); }
@media (max-width: 560px) { .rec dl { grid-template-columns: 1fr; } .rec dt { padding-top: 6px; } }

.bio-current { font-size: 14px; color: var(--muted); background: rgba(255, 255, 255, .04); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; }
.bio-sugg { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px dashed var(--border-strong); border-radius: 12px; margin-bottom: 10px; font-size: 15px; line-height: 1.55; color: var(--text); }
.bio-sugg .bio-text { flex: 1; white-space: pre-line; }
.bio-sugg .count { font-size: 12px; color: var(--muted); display: block; margin-top: 4px; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pillar { border: 1px solid var(--border); border-radius: 16px; padding: 16px; background: rgba(255, 255, 255, .025); }
.pillar strong { display: block; font-size: 15px; margin-bottom: 4px; }
.pillar p { font-size: 14px !important; margin: 0 0 10px; }
.pillar .idea { font-size: 13.5px; color: var(--text-2); background: rgba(255, 255, 255, .05); border-radius: 8px; padding: 8px 10px; margin: 0; }
.pillar .idea b { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
@media (max-width: 640px) { .pillars { grid-template-columns: 1fr; } }

.posts-table td.cap { min-width: 200px; color: var(--muted); font-size: 13.5px; }
.posts-table tr.best td:first-child { box-shadow: inset 3px 0 0 #ff9b4b; }
.posts-table tr.worst td:first-child { box-shadow: inset 3px 0 0 #4b5670; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.report-footnote { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin-top: 24px; }

/* Share panel */
.share-panel { padding: 22px 24px; }
.share-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--surface-3); transition: background .2s; cursor: pointer; }
.switch span::before { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.switch input:checked + span { background: var(--grad); }
.switch input:checked + span::before { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.share-link { display: flex; gap: 8px; margin-top: 16px; }
.share-link .input { font-size: 14px; background: var(--surface-2); }
.share-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.share-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 11px;
    border: 1px solid var(--border); background: rgba(255, 255, 255, .04); color: var(--text-2);
    font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
.share-btn:hover { text-decoration: none; border-color: var(--border-strong); color: var(--text); background: rgba(255, 255, 255, .08); }
.share-btn[data-net="x"]:hover { color: var(--text); }
.share-btn[data-net="facebook"]:hover { color: #5b9bff; }
.share-btn[data-net="linkedin"]:hover { color: #5aa7ea; }
.share-btn[data-net="whatsapp"]:hover { color: #3fd67a; }
.share-btn[data-net="telegram"]:hover { color: #4cc3f0; }

.shared-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 20px; border-radius: 18px; background: linear-gradient(100deg, rgba(37, 32, 107, .7), rgba(108, 40, 105, .6), rgba(185, 71, 84, .5)); border: 1px solid rgba(255, 255, 255, .12); color: var(--text); margin-bottom: 22px; }
.shared-banner p { margin: 0; font-size: 14.5px; }

/* ---------- Legal / prose ---------- */
.prose { font-size: 16px; line-height: 1.75; color: var(--text-2); }
.prose h1 { font-size: clamp(30px, 4vw, 40px); color: var(--text); margin-bottom: 8px; }
.prose h2 { font-size: 21px; margin: 40px 0 12px; color: var(--text); }
.prose h3 { font-size: 17px; margin: 28px 0 8px; color: var(--text); }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a:not(.btn) { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 8px 0 20px; }
.prose th, .prose td { text-align: left; border-bottom: 1px solid var(--border); padding: 10px 8px; vertical-align: top; }
.prose th { color: var(--text); font-weight: 650; }
.prose .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.prose .callout { background: rgba(255, 255, 255, .04); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; font-size: 15px; }
.legal-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 32px; }
.legal-nav a { font-size: 13px; font-weight: 700; color: var(--text-2); padding: 7px 13px; border-radius: 10px; border: 1px solid var(--border); background: rgba(255, 255, 255, .03); }
.legal-nav a.active { background: var(--grad); color: #fff; border-color: transparent; }
.legal-nav a:hover { text-decoration: none; }

/* ---------- Consent banner ---------- */
.consent {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; max-width: 560px;
    background: rgba(17, 24, 40, .97); border: 1px solid rgba(255, 255, 255, .16); border-radius: 20px; box-shadow: 0 25px 80px rgba(0, 0, 0, .6);
    padding: 22px; backdrop-filter: blur(10px); font-size: 14.5px; color: var(--text-2);
    animation: rise .35s ease;
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.consent h2 { font-size: 16px; margin-bottom: 6px; }
.consent p { margin: 0 0 14px; line-height: 1.55; }
.consent-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.consent-actions .btn { flex: 1 1 auto; }
.consent-options { border-top: 1px solid var(--border); margin: 4px 0 16px; }
.consent-opt { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.consent-opt strong { display: block; color: var(--text); font-size: 14.5px; }
.consent-opt span { font-size: 13px; color: var(--muted); }
.consent-opt .always { font-size: 12px; font-weight: 600; color: var(--good); white-space: nowrap; padding-top: 2px; }
@media (max-width: 560px) { .consent { left: 10px; right: 10px; bottom: 10px; padding: 18px; } }

/* ---------- Toast ---------- */
.toast {
    position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120;
    background: #f7f8fb; color: #0a101b; padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 500;
    box-shadow: var(--shadow-lg); animation: rise .25s ease;
}

/* ---------- Error page ---------- */
.error-page { text-align: center; padding: 96px 20px; }
.error-page .code { font-size: 14px; font-weight: 700; color: var(--accent-text); letter-spacing: .08em; }
.error-page h1 { margin: 10px 0 10px; }
.error-page p { color: var(--muted); max-width: 440px; margin: 0 auto 26px; }

/* ---------- Admin ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.stat-grid .metric .mv { font-size: 28px; }
@media (max-width: 760px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.log-box { font-family: ui-monospace, Menlo, monospace; font-size: 12px; line-height: 1.6; background: rgba(0, 0, 0, .3); border-radius: 10px; padding: 14px; max-height: 360px; overflow: auto; white-space: pre-wrap; word-break: break-word; color: var(--text-2); }

/* ---------- Print: "Save as PDF" prints only the report, on white ---------- */
@media print {
    @page { margin: 14mm; }
    :root { --bg: #fff; --surface: #fff; --panel-grad: #fff; --text: #111; --text-2: #333; --muted: #555; --faint: #666; --border: #ddd; --border-strong: #ccc; --cyan: #0b6e99; }
    body { background: #fff !important; color: #111; }
    .site-header, .site-footer, .no-print, .consent, .share-panel, .report-actions, .shared-banner .btn { display: none !important; }
    .page { padding: 0; }
    .card, .metric, .pillar { box-shadow: none !important; break-inside: avoid; border-color: #ddd !important; background: #fff !important; }
    .r-problem { background: #fff !important; }
    .r-block { break-inside: auto; }
    .score-ring::before { background: #fff; }
    .r-head .ig-avatar span { background: #fff; border-color: #fff; }
    a { color: inherit !important; text-decoration: none !important; }
    .report { max-width: none; }
}

/* ---------- Small screens ---------- */
.logo { white-space: nowrap; }
@media (max-width: 560px) {
    :root { --header-h: 64px; }
    .logo { font-size: 19px; gap: 8px; }
    .logo-mark { width: 27px; height: 27px; border-width: 3px; border-radius: 8px; }
    .logo-mark::after { font-size: 15px; }
    .site-header .container { gap: 12px; }
    .header-actions { gap: 8px; }
    .header-actions .btn-sm { padding: 8px 12px; font-size: 13px; }
    .hero-visual { min-height: 360px; }
}
@media (max-width: 380px) {
    .header-actions .credit-pill { display: none; }
}

/* Hero artwork: shown as-is, edges fade into the page background */
.hero-visual { min-height: 0; display: flex; align-items: center; justify-content: center; }
.hero-art {
    display: block; width: 118%; max-width: none; height: auto; margin-right: -12%;
    -webkit-mask-image: radial-gradient(closest-side ellipse at 56% 52%, #000 68%, transparent 100%);
    mask-image: radial-gradient(closest-side ellipse at 56% 52%, #000 68%, transparent 100%);
}
.hero-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-art { width: 108%; margin: 8px -4% 0; }
}
@media (max-width: 560px) { .hero-visual { min-height: 0; } }

/* Hero: animated "AI Audit" scan card over the artwork */
.hero-visual { position: relative; }
.hero-art { animation: heroFloat 7s ease-in-out infinite; }
@keyframes heroFloat { 50% { transform: translateY(-10px); } }
.scan-card {
    position: absolute; right: -2%; bottom: -3%; width: 210px; padding: 16px 18px; border-radius: 17px;
    background: rgba(17, 24, 40, .9); border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .55), 0 0 40px rgba(215, 44, 255, .15);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    animation: cardFloat 6s ease-in-out infinite;
}
@keyframes cardFloat { 50% { transform: translateY(8px); } }
.scan-card-top { display: flex; align-items: center; gap: 8px; }
.scan-card strong { font-size: 13.5px; }
.scan-card em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 800; color: #ffb36b; font-variant-numeric: tabular-nums; }
.scan-card small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; min-height: 16px; transition: opacity .3s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scan-card small.fade { opacity: 0; }
.scan-dot { width: 8px; height: 8px; border-radius: 50%; background: #3fd69b; box-shadow: 0 0 0 0 rgba(63, 214, 155, .6); animation: scanPing 1.6s ease-out infinite; }
@keyframes scanPing { 70% { box-shadow: 0 0 0 8px rgba(63, 214, 155, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 214, 155, 0); } }
.scan-card .mini-bar i { width: 0; animation: none; transition: width .25s linear; }
.scan-card.done .scan-dot { background: #ff9b4b; animation: none; }
@media (max-width: 900px) { .hero-visual { padding-bottom: 48px; } .scan-card { right: 2%; bottom: -14px; width: 190px; } }
@media (max-width: 560px) { .scan-card { width: 168px; padding: 12px 14px; } }
@media (prefers-reduced-motion: reduce) { .hero-art, .scan-card, .scan-dot { animation: none; } }
