:root {
    --bg: #f8f9fa;
    --surface: #ffffff;
    --surface-muted: #f1f3f4;
    --text: #202124;
    --muted: #5f6368;
    --line: #dadce0;
    --line-strong: #c4c7cc;
    --brand: #1a73e8;
    --brand-hover: #1558b0;
    --brand-soft: #e8f0fe;
    --danger: #d93025;
    --danger-soft: #fce8e6;
    --warning: #ea8600;
    --warning-soft: #fef7e0;
    --safe: #188038;
    --safe-soft: #e6f4ea;
    --shadow-sm: 0 1px 2px rgba(60, 64, 67, 0.18), 0 1px 3px 1px rgba(60, 64, 67, 0.1);
    --shadow-md: 0 2px 6px rgba(60, 64, 67, 0.16), 0 8px 24px rgba(60, 64, 67, 0.08);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 20px;
    --radius-sm: 16px;
    --font-sans: "Google Sans", "Avenir Next", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-sans);
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(26, 115, 232, 0.08), transparent 24%),
        radial-gradient(circle at top right, rgba(251, 188, 5, 0.08), transparent 22%),
        linear-gradient(180deg, #ffffff 0, var(--bg) 180px, var(--bg) 100%);
}

a {
    color: inherit;
}

input,
select,
textarea,
button {
    font: inherit;
}

.page {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0 56px;
}

.hero,
.panel,
.card {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.hero,
.panel,
.card {
    position: relative;
}

.hero::after,
.card::after {
    content: "";
    position: absolute;
    inset: auto -80px -120px auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 115, 232, 0.12), transparent 70%);
    pointer-events: none;
}

.hero {
    overflow: hidden;
    padding: 36px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.035em;
}

h1 {
    margin-top: 16px;
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    line-height: 1.05;
}

h2 {
    font-size: clamp(1.45rem, 3vw, 1.8rem);
    line-height: 1.2;
}

h3 {
    font-size: 1.15rem;
    line-height: 1.25;
}

p {
    margin: 0;
}

.lead,
.section-head p,
.aside-note,
.meta-note,
.muted,
footer {
    color: var(--muted);
    line-height: 1.72;
}

.lead {
    max-width: 66ch;
    margin-top: 18px;
    font-size: 1.03rem;
}

.grid {
    display: grid;
    gap: 24px;
    margin-top: 24px;
}

.stack {
    display: grid;
    gap: 20px;
}

.panel {
    padding: 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.section-head p {
    margin-top: 8px;
}

.hero-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

.number-highlight {
    display: block;
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.06em;
}

.question-note {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 500;
    letter-spacing: -0.03em;
}

.risk-chip,
.status,
.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.risk-chip,
.status {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.risk-chip.risk-high,
.status-error,
.badge-spam {
    background: var(--danger-soft);
    color: var(--danger);
    border-color: rgba(217, 48, 37, 0.18);
}

.risk-chip.risk-medium,
.badge-scam {
    background: var(--warning-soft);
    color: var(--warning);
    border-color: rgba(234, 134, 0, 0.18);
}

.risk-chip.risk-safe,
.status-success,
.badge-legit {
    background: var(--safe-soft);
    color: var(--safe);
    border-color: rgba(24, 128, 56, 0.18);
}

.grid-number-layout {
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.stat {
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0, #fbfcfe 100%);
}

.stat strong {
    display: block;
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.stat span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.55;
}

.reports {
    display: grid;
    gap: 14px;
}

.report-card {
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: var(--surface);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.report-card:hover,
.links a:hover,
.card-link:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-sm);
}

.report-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.badge {
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

.report-time {
    color: var(--muted);
    font-size: 0.88rem;
}

.report-card p {
    margin-top: 14px;
    line-height: 1.75;
}

.empty-state {
    padding: 20px;
    border-radius: var(--radius-md);
    background: #fafbfc;
    border: 1px dashed var(--line-strong);
    color: var(--muted);
    line-height: 1.75;
}

.links {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.links a,
.card-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: var(--surface);
    text-decoration: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.links a span:last-child,
.card-link::after {
    color: var(--brand);
    font-size: 0.92rem;
    font-weight: 600;
}

form {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

label {
    display: grid;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--text);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

input:hover,
select:hover,
textarea:hover {
    border-color: var(--line-strong);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.14);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

button,
.button.primary {
    background: var(--brand);
    color: #ffffff;
    border-color: var(--brand);
    box-shadow: 0 1px 2px rgba(26, 115, 232, 0.28);
}

button:hover,
.button.primary:hover {
    background: var(--brand-hover);
    border-color: var(--brand-hover);
    transform: translateY(-1px);
}

.button.secondary {
    background: #ffffff;
    color: var(--text);
    border-color: var(--line);
}

.button.secondary:hover {
    color: var(--brand);
    border-color: rgba(26, 115, 232, 0.38);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.aside-note {
    font-size: 0.94rem;
}

footer {
    margin-top: 28px;
    font-size: 0.88rem;
    text-align: center;
}

.page-landing .page {
    padding-top: 48px;
}

.page-landing .hero {
    padding: 44px;
}

.page-landing h1 {
    max-width: 12ch;
}

.search-box {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}

.search-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.search-row:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.14);
}

.search-row input {
    border: 0;
    padding: 14px 18px;
    background: transparent;
    box-shadow: none;
}

.search-row input:focus {
    box-shadow: none;
}

.page-landing .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-landing .panel {
    min-height: 100%;
}

.card-link::after {
    content: "Sprawdz";
}

.page-feedback {
    display: grid;
    place-items: center;
    padding: 24px;
}

.page-feedback .card {
    width: min(720px, 100%);
    padding: 36px;
}

.page-feedback h1 {
    margin-bottom: 16px;
}

.page-number .hero {
    background: linear-gradient(180deg, #ffffff 0, #fbfcff 100%);
}

@media (max-width: 940px) {
    .grid-number-layout,
    .page-landing .grid {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .page {
        width: min(100% - 20px, 1120px);
        padding-top: 24px;
        padding-bottom: 40px;
    }

    .hero,
    .panel,
    .card {
        border-radius: 24px;
    }

    .hero,
    .panel,
    .card,
    .page-landing .hero,
    .page-feedback .card {
        padding: 24px;
    }

    .search-row {
        grid-template-columns: 1fr;
        border-radius: 24px;
    }

    .search-row button,
    button,
    .button {
        width: 100%;
    }

    .actions {
        display: grid;
    }
}
