@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
    --bg: #e8edf4;
    --bg-accent: #dce6f2;
    --surface: #ffffff;
    --surface-elevated: #f8fafc;
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #ccfbf1;
    --accent: #f59e0b;
    --text: #0f172a;
    --muted: #64748b;
    --border: #cbd5e1;
    --header-from: #0f172a;
    --header-to: #1e3a5f;
    --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
    --radius: 1rem;
    --radius-sm: 0.625rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background: var(--bg);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(13, 148, 136, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(245, 158, 11, 0.06), transparent);
    color: var(--text);
    font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Header ── */

.site-header {
    background: linear-gradient(135deg, var(--header-from) 0%, var(--header-to) 100%);
    color: #fff;
    padding: 2.75rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(13, 148, 136, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

.site-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

.site-header .container {
    position: relative;
    z-index: 1;
}

.site-header h1 {
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.site-header p {
    opacity: 0.85;
    max-width: 42rem;
    line-height: 1.6;
}

.site-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    padding: 0.25rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.site-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

/* ── Main layout ── */

main {
    flex: 1;
}

.page-content {
    padding: 2rem 0 3rem;
}

/* ── Cards ── */

.card-soft {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card-soft:hover {
    box-shadow: var(--shadow-lg);
}

.card-soft .section-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.card-soft .section-title::before {
    content: "";
    display: block;
    width: 4px;
    height: 1.25em;
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    border-radius: 2px;
    flex-shrink: 0;
}

/* ── Metrics ── */

.metrics-row {
    margin-bottom: 1.5rem;
}

.metric {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 1.15rem 1.25rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.metric:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.metric .small {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted) !important;
}

.metric .value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-top: 0.25rem;
}

/* ── Table ── */

.table-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.table {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.table thead th {
    white-space: nowrap;
    background: var(--header-from);
    color: #fff;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: none;
    padding: 0.85rem 1rem;
}

.table tbody td {
    padding: 0.65rem 1rem;
    border-color: var(--border);
    vertical-align: middle;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: var(--surface-elevated);
}

.table tbody tr:hover > * {
    background-color: var(--primary-light) !important;
}

/* ── SEO & FAQ ── */

.seo-block {
    line-height: 1.75;
    color: #334155;
}

.seo-block p:last-child {
    margin-bottom: 0;
}

.faq-section-title {
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    border-left: 3px solid var(--primary);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.2s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow);
}

.faq-item + .faq-item {
    margin-top: 0.75rem;
}

.faq-item h3 {
    color: var(--text);
    font-weight: 600;
}

/* ── Summary list (report page) ── */

.summary-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: grid;
    gap: 0.5rem;
}

.summary-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 1rem;
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.925rem;
}

.summary-list li span:first-child {
    color: var(--muted);
    font-weight: 500;
}

.summary-list li span:last-child {
    font-weight: 700;
    color: var(--text);
}

/* ── Buttons (non-form context) ── */

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--primary-dark), #115e59);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
    transition: all 0.15s ease;
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}

.action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

/* ── Ad units ── */

.ad-unit-section {
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    text-align: center;
}

.ad-placeholder {
    min-height: 120px;
    border: 2px dashed #b8c7dd;
    border-radius: var(--radius-sm);
    background: var(--surface-elevated);
    color: var(--muted);
    font-weight: 600;
    display: grid;
    place-items: center;
}

/* ── Footer ── */

.site-footer {
    background: var(--header-from);
    color: rgba(255, 255, 255, 0.7);
    padding: 1.75rem 0;
    margin-top: auto;
    font-size: 0.875rem;
}

.site-footer p {
    margin-bottom: 0;
}

.site-footer a {
    color: var(--primary-light);
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
}

/* ── Responsive ── */

@media (max-width: 767.98px) {
    .site-header {
        padding: 2rem 0 2.25rem;
    }

    .metric .value {
        font-size: 1.15rem;
    }

    .summary-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
}
