/* Short Link Scanner: public site styles (Soft UI). */

:root {
    --ink: #1f2438;
    --ink-2: #3a3f55;
    --muted: #5b6176;
    --faint: #848aa0;
    --surface: #eef1f6;
    --surface-2: #e6eaf1;
    --card: #ffffff;
    --line: #e1e5ed;
    --coral: #e5513a;
    --coral-strong: #c42f0e;
    --coral-soft: #fde9e4;
    --coral-grad: linear-gradient(135deg, #e5513a 0%, #c42f0e 100%);
    --brand-grad: linear-gradient(135deg, #f46a59 0%, #fd3b00 100%);
    --safe: #0b7a54;
    --safe-soft: #def5ea;
    --caution: #96580a;
    --caution-soft: #fff1d6;
    --danger: #b9203a;
    --danger-soft: #fde6ea;
    --unknown: #46557a;
    --unknown-soft: #e7ecf6;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow-raised: 0 1px 2px rgba(31, 36, 56, .05), 0 12px 32px -14px rgba(31, 36, 56, .22);
    --shadow-float: 0 2px 6px rgba(31, 36, 56, .05), 0 28px 56px -24px rgba(31, 36, 56, .34);
    --shadow-press: inset 0 2px 5px rgba(31, 36, 56, .07), inset 0 0 0 1px rgba(31, 36, 56, .06);
    --edge: inset 0 1px 0 rgba(255, 255, 255, .9);
    --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --bs-body-font-family: var(--font);
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--surface);
    --bs-emphasis-color: var(--ink);
    --bs-secondary-color: var(--muted);
    --bs-link-color: var(--coral-strong);
    --bs-link-color-rgb: 196, 47, 14;
    --bs-link-hover-color: #9c2509;
    --bs-link-hover-color-rgb: 156, 37, 9;
    --bs-border-color: var(--line);
    --bs-border-radius: var(--radius-md);
    --bs-primary: #c42f0e;
    --bs-primary-rgb: 196, 47, 14;
    --bs-focus-ring-color: rgba(229, 81, 58, .28);
}

/* ---------- Base ---------- */
html { scroll-padding-top: 96px; }
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: radial-gradient(1100px 520px at 50% -180px, #ffffff 0%, rgba(255, 255, 255, 0) 72%), var(--surface);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); }
p { margin-bottom: 1rem; }
a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
::selection { background: #fbd3c9; color: var(--ink); }
:focus-visible { outline: 3px solid rgba(229, 81, 58, .45); outline-offset: 2px; border-radius: 6px; }
.text-muted { color: var(--muted) !important; }
.mono { font-family: var(--mono); }
/* URLs must show their exact characters: no ligatures in the monospace face. */
.mono, .scan-form__input, .trace__url, .path__url, .destination__url, .not-found__code, code, pre, kbd, samp { font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 2000;
    padding: .6rem 1rem; border-radius: var(--radius-sm);
    background: var(--ink); color: #fff; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.site-main { flex: 1 0 auto; padding-bottom: 3rem; }

/* ---------- Buttons ---------- */
.btn {
    --bs-btn-font-weight: 600;
    --bs-btn-border-radius: var(--radius-md);
    --bs-btn-padding-x: 1.25rem;
    --bs-btn-padding-y: .7rem;
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn-sm { --bs-btn-padding-x: .9rem; --bs-btn-padding-y: .45rem; --bs-btn-font-size: .9rem; --bs-btn-border-radius: 11px; }
.btn-lg { --bs-btn-padding-x: 1.6rem; --bs-btn-padding-y: .9rem; --bs-btn-font-size: 1.05rem; }
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-border-color: transparent;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-border-color: transparent;
    background: var(--coral-grad);
    box-shadow: 0 10px 22px -10px rgba(196, 47, 14, .65), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn-primary:hover, .btn-primary:focus-visible {
    background: linear-gradient(135deg, #ea5c45 0%, #b72a0b 100%);
    box-shadow: 0 14px 26px -10px rgba(196, 47, 14, .7), inset 0 1px 0 rgba(255, 255, 255, .22);
    transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); box-shadow: 0 6px 14px -8px rgba(196, 47, 14, .7); }
.btn-soft {
    --bs-btn-color: var(--ink);
    --bs-btn-hover-color: var(--ink);
    --bs-btn-active-color: var(--ink);
    --bs-btn-bg: #fff;
    --bs-btn-hover-bg: #fff;
    --bs-btn-active-bg: var(--surface);
    --bs-btn-border-color: transparent;
    --bs-btn-hover-border-color: transparent;
    box-shadow: var(--shadow-raised), var(--edge);
}
.btn-soft:hover { box-shadow: var(--shadow-float); transform: translateY(-1px); }
.btn-ghost {
    --bs-btn-color: var(--ink-2);
    --bs-btn-hover-color: var(--ink);
    --bs-btn-hover-bg: rgba(31, 36, 56, .06);
    --bs-btn-active-bg: rgba(31, 36, 56, .1);
    --bs-btn-border-color: transparent;
    --bs-btn-hover-border-color: transparent;
}

/* ---------- Surfaces ---------- */
.soft-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-raised), var(--edge);
    padding: 1.5rem;
}
@media (min-width: 768px) { .soft-card { padding: 2rem; } }

.section { padding: 3.5rem 0 1rem; }
.section__head { max-width: 40rem; margin-bottom: 2rem; }
.section__title { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.15rem); margin-bottom: .6rem; }
.section__lead { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* ---------- Admin bar (signed-in admins only) ---------- */
.admin-bar { background: var(--ink); color: #d9dcea; font-size: .88rem; }
.admin-bar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1.25rem; padding-top: .5rem; padding-bottom: .5rem; }
.admin-bar__status { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; }
.admin-bar__status strong { color: #fff; }
.admin-bar__status .bi { color: #ff8a76; }
.admin-bar__ads { display: inline-flex; align-items: center; gap: .4rem; color: #c3c7d8; }
.admin-bar__swatch { width: .8rem; height: .8rem; border-radius: 3px; background: #ffd84d; box-shadow: 0 0 0 2px rgba(255, 216, 77, .25); }
.admin-bar__links { display: flex; flex-wrap: wrap; gap: .25rem; }
.admin-bar__links a { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .6rem; border-radius: 8px; color: #fff; text-decoration: none; }
.admin-bar__links a:hover { background: rgba(255, 255, 255, .1); }

/* ---------- Header / navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; padding: .75rem 0 0; pointer-events: none; }
.site-nav {
    pointer-events: auto;
    background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: saturate(170%) blur(14px);
    backdrop-filter: saturate(170%) blur(14px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-raised), var(--edge);
    padding: .55rem .75rem .55rem 1rem;
}
.site-brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.site-brand:hover { color: var(--ink); }
.site-brand img { border-radius: 9px; }
.site-brand--light, .site-brand--light:hover { color: #fff; }
.site-nav__toggle { border: 0; border-radius: 12px; padding: .35rem .6rem; font-size: 1.5rem; line-height: 1; color: var(--ink); background: var(--surface); box-shadow: var(--shadow-press); }
.site-nav__toggle:focus { box-shadow: 0 0 0 .2rem rgba(229, 81, 58, .25); }
.site-nav__links { gap: .15rem; }
.site-nav .nav-link { font-weight: 500; color: var(--ink-2); padding: .5rem .85rem !important; border-radius: 11px; }
.site-nav .nav-link:hover { color: var(--ink); background: rgba(31, 36, 56, .05); }
.site-nav .nav-link.active { color: var(--coral-strong); background: var(--coral-soft); }
.site-nav__cta { margin-left: .75rem; }
@media (max-width: 991.98px) {
    .site-nav .navbar-collapse { padding: .75rem 0 .35rem; }
    .site-nav__cta { margin: .5rem 0 0; width: 100%; }
}

/* ---------- Ads ---------- */
.ad-slot { text-align: center; max-width: 100%; overflow-x: auto; overflow-y: hidden; }
.ad-slot--wide { margin-top: 1.25rem; margin-bottom: .25rem; }
.ad-slot--homepage_ad { margin: 2rem auto 0; }
.soft-card--ad { padding: 1rem; margin-bottom: 1.5rem; }
.ad-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem;
    min-height: 90px; padding: 1rem 1.25rem;
    background: repeating-linear-gradient(-45deg, #fff3a6 0 14px, #ffeb85 14px 28px);
    border: 2px dashed #d9a400;
    border-radius: var(--radius-md);
    color: #5c4300; text-align: center; font-size: .9rem;
}
.ad-slot--wide.ad-placeholder { max-width: 760px; }
.ad-slot--sidebar_ad.ad-placeholder { min-height: 250px; box-shadow: none; }
.ad-slot--homepage_ad.ad-placeholder { min-height: 120px; }
.ad-placeholder__label { font-weight: 700; display: inline-flex; align-items: center; gap: .4rem; }
.ad-placeholder__size { font-weight: 500; opacity: .75; }
.ad-placeholder__note { max-width: 32rem; opacity: .85; }

/* ---------- Scan form ---------- */
.scan-form { display: flex; gap: .65rem; align-items: stretch; }
.scan-form__field { position: relative; flex: 1 1 auto; min-width: 0; }
.scan-form__icon { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); font-size: 1.35rem; color: var(--faint); pointer-events: none; }
.scan-form__input {
    width: 100%; height: 100%; min-height: 3.6rem;
    padding: .9rem 6.2rem .9rem 3.1rem;
    font: 500 1.05rem/1.3 var(--mono);
    font-variant-ligatures: none;
    font-feature-settings: "liga" 0, "calt" 0;
    color: var(--ink);
    background: #f6f8fb;
    border: 1px solid #dfe4ec;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-press);
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.scan-form__input::placeholder { color: #8f95a8; font-family: var(--font); font-weight: 400; }
.scan-form__input:focus { outline: none; background: #fff; border-color: rgba(229, 81, 58, .55); box-shadow: 0 0 0 4px rgba(229, 81, 58, .14); }
.scan-form__paste {
    position: absolute; right: .55rem; top: 50%; transform: translateY(-50%);
    display: inline-flex; align-items: center; gap: .3rem;
    border: 0; border-radius: 10px; padding: .4rem .7rem;
    font-size: .85rem; font-weight: 600; color: var(--ink-2);
    background: #fff; box-shadow: var(--shadow-raised);
}
.scan-form__paste:hover { color: var(--coral-strong); }
.scan-form__submit { flex: 0 0 auto; min-height: 3.6rem; padding-left: 1.5rem; padding-right: 1.5rem; font-size: 1.02rem; }
.scan-form__busy { display: none; align-items: center; gap: .5rem; }
.scan-form.is-busy .scan-form__label { display: none; }
.scan-form.is-busy .scan-form__busy { display: inline-flex; }
.scan-form.is-busy .scan-form__submit { pointer-events: none; opacity: .92; }
.spinner { width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 575.98px) {
    .scan-form { flex-direction: column; }
    .scan-form__submit { width: 100%; }
}

/* ---------- Home: hero ---------- */
.hero { padding: 3.25rem 0 1rem; }
.hero__grid { display: grid; gap: 2.75rem; align-items: center; }
@media (min-width: 992px) { .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 3.5rem; } .hero { padding-top: 4.5rem; } }
.hero__title { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 3.9rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; margin-bottom: 1.1rem; }
.hero__lead { font-size: clamp(1.1rem, 1rem + .35vw, 1.28rem); color: var(--muted); max-width: 34rem; margin-bottom: 1.75rem; }
.hero__form { max-width: 40rem; }
.hero__services { margin: 1rem 0 0; font-size: .92rem; color: var(--muted); }
.hero__services b { font-weight: 500; color: var(--ink-2); }

/* Redirect trace: the signature element (hero demo and results page) */
.trace-card {
    position: relative;
    background: var(--card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-float), var(--edge);
    padding: 1.6rem 1.5rem 1.4rem;
}
.trace-card__caption { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.1rem; font-size: .9rem; color: var(--muted); }
.trace-card__caption strong { color: var(--ink); font-weight: 600; }
.trace { list-style: none; margin: 0; padding: 0; }
.trace__hop { position: relative; display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); column-gap: .85rem; padding-bottom: 1.15rem; }
.trace__hop:last-child { padding-bottom: 0; }
.trace__hop::before {
    content: ""; position: absolute; left: calc(.8rem - 1px); top: 1.55rem; bottom: .1rem;
    border-left: 2px dashed #cfd5e1;
}
.trace__hop:last-child::before { display: none; }
.trace__node { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-press); display: grid; place-items: center; margin-top: .1rem; }
.trace__node::after { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: #9aa1b5; }
.trace__hop--end .trace__node { background: var(--caution-soft); }
.trace__hop--end .trace__node::after { background: #e0a21a; width: .65rem; height: .65rem; }
.trace__url { font-family: var(--mono); font-size: .95rem; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.trace__meta { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .3rem; font-size: .8rem; }
.trace__flag { margin-top: .55rem; display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .65rem; border-radius: 10px; font-size: .85rem; background: var(--caution-soft); color: var(--caution); }

/* Status chips */
.chip {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .18rem .55rem; border-radius: 999px;
    font-size: .78rem; font-weight: 600; line-height: 1.4;
    background: var(--surface); color: var(--ink-2); white-space: nowrap;
}
.chip--redirect { background: #eceffc; color: #3b4a8c; }
.chip--ok { background: var(--safe-soft); color: var(--safe); }
.chip--warn { background: var(--caution-soft); color: var(--caution); }
.chip--bad { background: var(--danger-soft); color: var(--danger); }
.chip--muted { background: var(--surface); color: var(--muted); font-weight: 500; }

@media (prefers-reduced-motion: no-preference) {
    .trace--animate .trace__hop { opacity: 0; transform: translateY(6px); animation: hop-in .45s ease forwards; }
    .trace--animate .trace__hop:nth-child(2) { animation-delay: .35s; }
    .trace--animate .trace__hop:nth-child(3) { animation-delay: .7s; }
    .trace--animate .trace__hop:nth-child(4) { animation-delay: 1.05s; }
    @keyframes hop-in { to { opacity: 1; transform: none; } }
}

/* Stats strip */
.stats { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.stats__item { display: flex; align-items: baseline; gap: .5rem; color: var(--muted); font-size: .95rem; }
.stats__item strong { font-size: 1.35rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }

/* ---------- Home: what we check ---------- */
.checks-panel { display: grid; gap: 2rem; }
@media (min-width: 992px) { .checks-panel { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3rem; align-items: start; } }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem 1.5rem; }
@media (min-width: 576px) { .check-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.check-list li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: .8rem; align-items: start; }
.check-list__icon { width: 2.4rem; height: 2.4rem; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; color: var(--coral-strong); background: var(--coral-soft); }
.check-list h3 { font-size: 1.02rem; margin: .15rem 0 .2rem; }
.check-list p { margin: 0; font-size: .93rem; color: var(--muted); line-height: 1.5; }

/* ---------- Home: steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
.step { position: relative; padding: 1.5rem; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .55); box-shadow: var(--shadow-press); counter-increment: step; }
.step::before {
    content: counter(step);
    display: grid; place-items: center;
    width: 2.4rem; height: 2.4rem; margin-bottom: .9rem; border-radius: 50%;
    font-weight: 700; color: #fff; background: var(--coral-grad);
    box-shadow: 0 8px 18px -8px rgba(196, 47, 14, .6);
}
.step h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.step p { margin: 0; color: var(--muted); }

/* ---------- Posts grid ---------- */
.post-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .post-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .post-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.post-card { display: flex; flex-direction: column; overflow: hidden; background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-raised), var(--edge); transition: box-shadow .2s ease, transform .2s ease; }
.post-card:hover { box-shadow: var(--shadow-float); }
.post-card__image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; }
.post-card__image--empty { display: grid; place-items: center; background: linear-gradient(135deg, #fbe4de, #eef1f6); color: var(--coral); font-size: 2.2rem; }
.post-card__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 1.25rem 1.4rem 1.4rem; }
.post-card__meta { font-size: .85rem; color: var(--muted); margin-bottom: .4rem; }
.post-card__title { font-size: 1.18rem; margin-bottom: .5rem; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card { position: relative; }
.post-card__excerpt { color: var(--muted); font-size: .97rem; margin-bottom: 1rem; }
.post-card__tags { margin-top: auto; position: relative; z-index: 1; }

/* Tags */
.tag-list { display: flex; flex-wrap: wrap; gap: .45rem; }
.tag {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .28rem .7rem; border-radius: 999px;
    font-size: .85rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
    background: var(--surface); box-shadow: inset 0 0 0 1px rgba(31, 36, 56, .06);
}
.tag:hover { color: var(--coral-strong); background: var(--coral-soft); }
.tag__count { font-size: .75rem; color: var(--faint); }

/* ---------- CTA band ---------- */
.cta-band {
    display: grid; gap: 1.25rem; align-items: center;
    padding: 2rem; border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #fff 0%, #fdeee9 100%);
    box-shadow: var(--shadow-raised), var(--edge);
}
@media (min-width: 768px) { .cta-band { grid-template-columns: minmax(0, 1fr) auto; padding: 2.5rem 3rem; } }
.cta-band h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem); margin-bottom: .35rem; }
.cta-band p { margin: 0; color: var(--muted); }

/* ---------- Page heads ---------- */
.page-head { padding: 3rem 0 1.75rem; }
.page-head__title { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); font-weight: 700; letter-spacing: -0.03em; margin-bottom: .5rem; }
.page-head__lead { font-size: 1.15rem; color: var(--muted); max-width: 40rem; margin: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1rem; font-size: .9rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--faint); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--coral-strong); }

/* ---------- Blog ---------- */
.blog-layout { display: grid; gap: 2rem; }
@media (min-width: 992px) { .blog-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 2.5rem; align-items: start; } }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1.5rem; color: var(--muted); }
.filter-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .4rem .3rem .8rem; border-radius: 999px; background: var(--coral-soft); color: var(--coral-strong); font-weight: 600; font-size: .9rem; }
.filter-chip a { display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; color: inherit; text-decoration: none; background: rgba(255, 255, 255, .7); }
.empty-state { text-align: center; padding: 3rem 1.5rem; }
.empty-state .bi { font-size: 2.2rem; color: var(--faint); }

.soft-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; margin-top: 2.5rem; list-style: none; padding: 0; }
.soft-pagination a, .soft-pagination span {
    display: grid; place-items: center; min-width: 2.6rem; height: 2.6rem; padding: 0 .8rem;
    border-radius: 12px; font-weight: 600; text-decoration: none;
    background: #fff; color: var(--ink-2); box-shadow: var(--shadow-raised);
}
.soft-pagination a:hover { color: var(--coral-strong); }
.soft-pagination .is-current { background: var(--coral-grad); color: #fff; }

.blog-sidebar { display: grid; gap: 1.5rem; }
.blog-sidebar .soft-card--ad { margin: 0; }
.sidebar-block { padding: 1.5rem; }
.sidebar-block__title { font-size: 1.05rem; margin-bottom: 1rem; }
.sidebar-posts { list-style: none; margin: 0; padding: 0; }
.sidebar-posts li + li { border-top: 1px solid var(--line); }
.sidebar-posts a { display: block; padding: .7rem 0; text-decoration: none; }
.sidebar-posts__title { display: block; color: var(--ink); font-weight: 500; line-height: 1.35; }
.sidebar-posts a:hover .sidebar-posts__title { color: var(--coral-strong); }
.sidebar-posts__date { display: block; font-size: .82rem; color: var(--muted); margin-top: .15rem; }
.sidebar-block--cta { background: linear-gradient(160deg, #fff 0%, #fdeee9 100%); }
.sidebar-block--cta p { color: var(--muted); font-size: .95rem; }

/* ---------- Article ---------- */
.article { padding: 1.5rem; }
@media (min-width: 768px) { .article { padding: 2.5rem 3rem; } }
.article__title { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.7rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; margin-bottom: 1rem; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; color: var(--muted); font-size: .93rem; margin-bottom: 1.5rem; }
.article__meta .bi { margin-right: .3rem; }
.avatar { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--coral-grad); color: #fff; font-weight: 700; font-size: .9rem; margin-right: .5rem; }
.article__image { margin: 0 0 2rem; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-raised); }
.article__image img { width: 100%; height: auto; display: block; }
.toc { margin: 0 0 2rem; padding: 1.25rem 1.5rem; border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-press); }
.toc summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "\F282"; font-family: "bootstrap-icons"; font-size: .85rem; transition: transform .2s ease; }
.toc[open] summary::after { transform: rotate(180deg); }
.toc ul { list-style: none; margin: .85rem 0 0; padding: 0; }
.toc li { position: relative; margin: .3rem 0; padding-left: 1rem; }
.toc li::before { content: ""; position: absolute; left: 0; top: .7em; width: .35rem; height: .35rem; border-radius: 50%; background: var(--coral); }
.toc li.toc__sub { margin-left: 1rem; }
.toc li.toc__sub::before { background: #b8bfd0; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--coral-strong); text-decoration: underline; }

.prose { font-size: 1.1rem; line-height: 1.8; color: #2a2f44; overflow-wrap: break-word; }
.prose > * { max-width: 46rem; }
.prose h2 { font-size: 1.7rem; margin: 2.5rem 0 1rem; }
.prose h3 { font-size: 1.35rem; margin: 2rem 0 .8rem; }
.prose h4 { font-size: 1.15rem; margin: 1.6rem 0 .6rem; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose li > p { margin-bottom: .4rem; }
.prose a { color: var(--coral-strong); text-decoration: underline; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-md); margin: 1.25rem 0; box-shadow: var(--shadow-raised); }
.prose blockquote { margin: 1.75rem 0; padding: 1rem 1.4rem; border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-press); color: var(--ink-2); font-style: italic; }
.prose blockquote p:last-child { margin: 0; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--surface); padding: .12em .4em; border-radius: 6px; color: #9c2509; }
.prose pre { font-family: var(--mono); background: #1f2438; color: #e9ebf3; padding: 1.1rem 1.25rem; border-radius: var(--radius-md); overflow-x: auto; font-size: .92rem; }
.prose pre code { background: none; color: inherit; padding: 0; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.5rem 0; font-size: .98rem; border-radius: var(--radius-md); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.prose th, .prose td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--surface); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
.prose iframe, .prose video { max-width: 100%; border-radius: var(--radius-md); }
.table-scroll { overflow-x: auto; }
.prose .check-list { margin: 1.25rem 0 2rem; }
.prose .check-list li { margin: 0; }
.prose .check-list h3 { font-size: 1.02rem; margin: .15rem 0 .2rem; }
.prose .check-list p { margin: 0; font-size: .95rem; }
.prose > h2:first-child, .prose .mt-0 { margin-top: 0; }
.legal-updated { font-size: .95rem; color: var(--muted); margin: .75rem 0 0; }

.article__footer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: grid; gap: 1.5rem; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.share__label { font-weight: 600; margin-right: .25rem; }
.share a, .share button {
    display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; border: 0;
    background: #fff; color: var(--ink-2); box-shadow: var(--shadow-raised); text-decoration: none; font-size: 1.05rem;
}
.share a:hover, .share button:hover { color: var(--coral-strong); }
.author-card { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-press); }
.author-card .avatar { width: 3rem; height: 3rem; font-size: 1.2rem; margin: 0; }
.author-card p { margin: 0; color: var(--muted); font-size: .93rem; }
.author-card strong { display: block; color: var(--ink); }

/* ---------- Scan results ---------- */
.scan-page { padding-top: 2rem; }
.scan-bar { margin-bottom: 1.5rem; }
.scan-bar .scan-form__input { min-height: 3.2rem; font-size: .98rem; background: #fff; }
.scan-bar .scan-form__submit { min-height: 3.2rem; }

.verdict { position: relative; overflow: hidden; padding: 1.75rem 1.5rem; }
@media (min-width: 768px) { .verdict { padding: 2.25rem 2.5rem; } }
.verdict::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--verdict-color, var(--unknown)); }
.verdict--safe { --verdict-color: #16a06d; --verdict-soft: var(--safe-soft); --verdict-ink: var(--safe); }
.verdict--caution { --verdict-color: #e0a21a; --verdict-soft: var(--caution-soft); --verdict-ink: var(--caution); }
.verdict--danger { --verdict-color: #d7334c; --verdict-soft: var(--danger-soft); --verdict-ink: var(--danger); }
.verdict--unknown { --verdict-color: #7f8db0; --verdict-soft: var(--unknown-soft); --verdict-ink: var(--unknown); }
.verdict__top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.verdict__icon { width: 3.6rem; height: 3.6rem; border-radius: 18px; display: grid; place-items: center; font-size: 1.8rem; background: var(--verdict-soft); color: var(--verdict-ink); box-shadow: var(--edge); }
.verdict__label { font-size: .85rem; font-weight: 600; color: var(--verdict-ink); margin: 0 0 .15rem; }
.verdict__title { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.2rem); font-weight: 700; letter-spacing: -0.025em; margin: 0 0 .4rem; }
.verdict__summary { color: var(--ink-2); margin: 0; max-width: 46rem; }

.destination { margin-top: 1.5rem; padding: 1.1rem 1.25rem; border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-press); }
.destination__label { font-size: .85rem; color: var(--muted); margin: 0 0 .3rem; }
.destination__url { font-family: var(--mono); font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; word-break: break-word; color: var(--ink); margin: 0; }
.destination__url .host { font-weight: 600; color: var(--ink); background: rgba(255, 216, 77, .35); border-radius: 4px; padding: 0 .15em; }
.destination__url .rest { color: var(--muted); }
.destination__title { margin: .6rem 0 0; font-size: .95rem; color: var(--ink-2); }
.destination__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.destination__risky summary { cursor: pointer; color: var(--danger); font-weight: 600; font-size: .92rem; }
.destination__risky[open] summary { margin-bottom: .6rem; }
.meta-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.25rem; }

.result-grid { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
@media (min-width: 992px) { .result-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: start; } }
.result-block__title { font-size: 1.15rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }

.findings { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.findings-card { margin-top: 1.5rem; }
@media (min-width: 992px) { .findings--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.finding { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: .8rem; padding: .9rem 1rem; border-radius: var(--radius-md); background: var(--surface); }
.finding__icon { width: 2.2rem; height: 2.2rem; border-radius: 11px; display: grid; place-items: center; font-size: 1.05rem; }
.finding--danger { background: var(--danger-soft); }
.finding--danger .finding__icon { background: #fff; color: var(--danger); }
.finding--caution { background: var(--caution-soft); }
.finding--caution .finding__icon { background: #fff; color: var(--caution); }
.finding--info .finding__icon { background: #fff; color: var(--unknown); }
.finding h3 { font-size: 1rem; margin: .1rem 0 .2rem; }
.finding p { margin: 0; font-size: .95rem; color: var(--ink-2); overflow-wrap: anywhere; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.check { display: flex; align-items: center; gap: .6rem; font-size: .95rem; }
.check .bi { font-size: 1.1rem; }
.check--pass .bi { color: #16a06d; }
.check--warn .bi { color: #d38f0b; }
.check--fail .bi { color: var(--danger); }
.check--skip { color: var(--faint); }

.path { list-style: none; margin: 0; padding: 0; }
.path__hop { position: relative; display: grid; grid-template-columns: 2rem minmax(0, 1fr); column-gap: .9rem; padding-bottom: 1.4rem; }
.path__hop:last-child { padding-bottom: 0; }
.path__hop::before { content: ""; position: absolute; left: calc(1rem - 1px); top: 2.1rem; bottom: .15rem; border-left: 2px dashed #cfd5e1; }
.path__hop:last-child::before { display: none; }
.path__marker { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font-size: .82rem; font-weight: 700; color: var(--ink-2); background: var(--surface); box-shadow: var(--shadow-press); }
.path__hop--final .path__marker { background: var(--verdict-soft, var(--surface)); color: var(--verdict-ink, var(--ink)); }
.path__hop--stop .path__marker { background: var(--danger-soft); color: var(--danger); }
.path__url { font-family: var(--mono); font-size: .93rem; font-weight: 500; overflow-wrap: anywhere; word-break: break-word; margin: .2rem 0 .35rem; }
.path__chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.path__detail { margin: .45rem 0 0; font-size: .88rem; color: var(--muted); }
.path__detail--bad { color: var(--danger); }

.notes { list-style: none; padding: 0; margin: 1.25rem 0 0; font-size: .9rem; color: var(--muted); }
.notes li { display: flex; gap: .45rem; }
.scan-disclaimer { margin-top: 1.5rem; font-size: .88rem; color: var(--muted); }
.scan-error { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; }
.scan-error .bi { font-size: 1.6rem; color: var(--caution); }

/* ---------- Forms (contact) ---------- */
.form-label { font-weight: 600; font-size: .95rem; margin-bottom: .4rem; }
.form-control, .form-select {
    padding: .75rem 1rem; border-radius: var(--radius-md);
    background-color: #f6f8fb; border: 1px solid #dfe4ec;
    box-shadow: var(--shadow-press);
}
.form-control:focus, .form-select:focus { background-color: #fff; border-color: rgba(229, 81, 58, .55); box-shadow: 0 0 0 4px rgba(229, 81, 58, .14); }
.form-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { border: 0; border-radius: var(--radius-md); }
.alert-success { background: var(--safe-soft); color: var(--safe); }
.alert-danger { background: var(--danger-soft); color: var(--danger); }
.alert-warning { background: var(--caution-soft); color: var(--caution); }

.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.info-list li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: .8rem; }
.info-list .check-list__icon { width: 2.4rem; height: 2.4rem; }
.info-list strong { display: block; }
.info-list span { color: var(--muted); font-size: .95rem; }

.content-layout { display: grid; gap: 2rem; }
@media (min-width: 992px) { .content-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 2.5rem; align-items: start; } }

/* ---------- 404 ---------- */
.not-found { text-align: center; max-width: 40rem; margin: 0 auto; padding: 4rem 0 2rem; }
.not-found__code { font-family: var(--mono); font-size: .95rem; color: var(--coral-strong); margin-bottom: .5rem; }
.not-found .scan-form { margin: 2rem 0 1rem; text-align: left; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 3rem; padding: 3.25rem 0 1.25rem; background: #1f2438; color: #c3c7d8; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.site-footer__grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, .7fr) minmax(0, .7fr); } }
.site-footer__about p { margin: 1rem 0 1.25rem; max-width: 26rem; }
.site-footer__app { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .95rem; border-radius: 12px; color: #fff; text-decoration: none; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.site-footer__app:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.site-footer__heading { font-size: 1rem; color: #fff; margin-bottom: .9rem; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer__links a { color: #c3c7d8; text-decoration: none; }
.site-footer__links a:hover { color: #fff; text-decoration: underline; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__admin { color: #9ea3b8; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.site-footer__admin:hover { color: #fff; }

/* ---------- Android app banner ---------- */
.app-banner {
    position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 1040;
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: .75rem; align-items: center;
    padding: .7rem .7rem .7rem .8rem; border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .95); box-shadow: var(--shadow-float);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.app-banner[hidden] { display: none; }
.app-banner__icon { border-radius: 11px; }
.app-banner__text { display: flex; flex-direction: column; line-height: 1.25; font-size: .85rem; color: var(--muted); }
.app-banner__text strong { color: var(--ink); font-size: .95rem; }
.app-banner__close { border: 0; background: none; color: var(--faint); padding: .35rem; border-radius: 8px; }

/* ---------- Utilities ---------- */
.stack > * + * { margin-top: 1.5rem; }
.visually-hidden-focusable:not(:focus) { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
