/* ===== Svensk Lagbevakning ===== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --blue:       #1a4d8f;
    --blue-dk:    #163f78;
    --blue-lt:    #e8eef7;
    --blue-mid:   #4a7cbf;
    --green:      #1a7a3c;
    --green-lt:   #e6f4eb;
    --orange:     #c0600a;
    --orange-lt:  #fdf0e6;
    --purple:     #6b2fa0;
    --purple-lt:  #f3ecfc;
    --amber:      #a06000;
    --amber-lt:   #fff8e1;
    --gray:       #666;
    --gray-lt:    #f2f2f2;
    --bg:         #f0f3f8;
    --white:      #ffffff;
    --border:     #dde3ec;
    --text:       #1a1f2e;
    --text-sm:    #4a5568;
    --radius:     8px;
    --radius-lg:  12px;
    --shadow:     0 1px 4px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.04);
    --shadow-md:  0 4px 12px rgba(0,0,0,.1), 0 1px 4px rgba(0,0,0,.06);
    --touch:      44px; /* minimum touch target */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-text-size-adjust: 100%;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ===== TOPBAR ===== */
.topbar {
    background: linear-gradient(135deg, #1a3f7a 0%, #1a4d8f 60%, #2259a8 100%);
    color: #fff;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    height: 56px;
    gap: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    position: sticky;
    top: 0;
    z-index: 200;
}
.topbar__logo {
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    letter-spacing: .01em;
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-shrink: 0;
}
.topbar__logo:hover { text-decoration: none; opacity: .9; }

/* Desktop nav */
.topbar__nav {
    display: flex;
    gap: 0;
    align-items: center;
}
.topbar__nav a {
    color: rgba(255,255,255,.82);
    font-size: .88rem;
    padding: 0 .8rem;
    height: 56px;
    display: flex;
    align-items: center;
    transition: background .12s, color .12s;
    white-space: nowrap;
}
.topbar__nav a:hover,
.topbar__nav a.active {
    color: #fff;
    background: rgba(255,255,255,.13);
    text-decoration: none;
}

.topbar__right { margin-left: auto; display: flex; align-items: center; gap: .5rem; }

.topbar__subscribe {
    background: rgba(255,255,255,.18);
    color: #fff;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 99px;
    padding: .4rem 1rem;
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
    height: auto;
    transition: background .12s;
    display: flex;
    align-items: center;
    gap: .3rem;
}
.topbar__subscribe:hover { background: rgba(255,255,255,.28); text-decoration: none; color: #fff; }

/* Hamburger button — hidden on desktop */
.topbar__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 8px;
    border-radius: 6px;
    flex-shrink: 0;
    transition: background .12s;
}
.topbar__burger:hover { background: rgba(255,255,255,.1); }
.topbar__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}
.topbar__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topbar__burger.open span:nth-child(2) { opacity: 0; }
.topbar__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer — hidden until burger is clicked */
.mobile-nav {
    display: none;
    position: fixed;
    top: 56px; left: 0; right: 0;
    background: #1a3f7a;
    z-index: 199;
    box-shadow: 0 8px 20px rgba(0,0,0,.3);
}
.mobile-nav.open {
    display: block;
}
.mobile-nav a {
    display: flex;
    align-items: center;
    padding: .9rem 1.25rem;
    color: rgba(255,255,255,.88);
    font-size: .95rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    min-height: var(--touch);
    transition: background .12s;
}
.mobile-nav a:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.mobile-nav a.active { color: #fff; font-weight: 700; }
.mobile-nav__subscribe {
    margin: .75rem 1.25rem;
    background: rgba(255,255,255,.18) !important;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: var(--radius) !important;
    justify-content: center !important;
    font-weight: 600 !important;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #1a3f7a 0%, #1a4d8f 50%, #1e5caf 100%);
    color: #fff;
    padding: 2.5rem 0 2rem;
    margin-bottom: 1.75rem;
}
.hero h1 { font-size: 1.9rem; font-weight: 800; margin-bottom: .4rem; line-height: 1.2; }
.hero p   { font-size: 1rem; opacity: .85; max-width: 500px; }

/* ===== LAYOUT ===== */
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
main { padding: 0 0 4rem; }

/* ===== STATS BAR ===== */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .875rem;
    margin-bottom: 1.75rem;
}
.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--blue);
}
.stat-card--green::before  { background: var(--green); }
.stat-card--amber::before  { background: var(--amber); }
.stat-card--orange::before { background: var(--orange); }
.stat-card__num   { font-size: 2rem; font-weight: 800; color: var(--blue); line-height: 1; }
.stat-card--green  .stat-card__num { color: var(--green); }
.stat-card--amber  .stat-card__num { color: var(--amber); }
.stat-card--orange .stat-card__num { color: var(--orange); }
.stat-card__label { font-size: .78rem; color: var(--text-sm); margin-top: .3rem; font-weight: 500; }

/* ===== SECTION HEADERS ===== */
.section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--blue);
    display: flex;
    align-items: center;
    gap: .4rem;
}
.section-title a { font-size: .8rem; font-weight: 500; margin-left: auto; color: var(--blue); }

/* ===== LAW CARDS ===== */
.law-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: .875rem;
    margin-bottom: 2rem;
}
.law-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: .45rem;
    transition: box-shadow .15s, transform .15s;
    position: relative;
    overflow: hidden;
}
.law-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--blue);
    border-radius: 3px 0 0 3px;
}
.law-card--green::before  { background: var(--green); }
.law-card--amber::before  { background: var(--amber); }
.law-card--orange::before { background: var(--orange); }
.law-card--purple::before { background: var(--purple); }
.law-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

.law-card__title { font-size: .95rem; font-weight: 600; color: var(--text); line-height: 1.35; }
.law-card__title a { color: inherit; }
.law-card__title a:hover { color: var(--blue); text-decoration: none; }
.law-card__meta { font-size: .8rem; color: var(--text-sm); display: flex; flex-wrap: wrap; gap: .5rem; }
.law-card__footer {
    margin-top: auto;
    padding-top: .6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem;
}

/* ===== STATUS BADGES ===== */
.badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    padding: .25em .75em;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}
.badge--blue    { background: var(--blue-lt);   color: var(--blue);   }
.badge--orange  { background: var(--orange-lt); color: var(--orange); }
.badge--purple  { background: var(--purple-lt); color: var(--purple); }
.badge--amber   { background: var(--amber-lt);  color: var(--amber);  }
.badge--green   { background: var(--green-lt);  color: var(--green);  }
.badge--gray    { background: var(--gray-lt);   color: var(--gray);   }

/* ===== DATE PILL ===== */
.date-pill {
    font-size: .8rem;
    color: var(--text-sm);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: .2em .6em;
    white-space: nowrap;
}
.date-pill--urgent { background: var(--amber-lt); border-color: #dbb800; color: var(--amber); font-weight: 600; }
.date-pill--active { background: var(--green-lt); border-color: #7dc99a; color: var(--green); font-weight: 600; }

/* ===== PIPELINE ===== */
.pipeline-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: .5rem; margin: 1.25rem 0; }
.pipeline {
    display: flex;
    align-items: flex-start;
    min-width: max-content;
    gap: 0;
}
.pipeline__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90px;
    position: relative;
}
.pipeline__step + .pipeline__step::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 10px;
    width: 20px;
    height: 2px;
    background: var(--border);
}
.pipeline__step--done + .pipeline__step::before  { background: var(--blue); }
.pipeline__step--now  + .pipeline__step::before  { background: var(--blue); }
.pipeline__dot {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--border);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--border);
    margin-bottom: .35rem;
    transition: background .2s;
    flex-shrink: 0;
}
.pipeline__step--done .pipeline__dot { background: var(--blue);  box-shadow: 0 0 0 2px var(--blue); }
.pipeline__step--now  .pipeline__dot { background: var(--green); box-shadow: 0 0 0 2px var(--green); animation: pulse 1.5s infinite; }
.pipeline__label { font-size: .72rem; color: var(--text-sm); text-align: center; line-height: 1.3; }
.pipeline__step--done .pipeline__label { color: var(--blue); font-weight: 600; }
.pipeline__step--now  .pipeline__label { color: var(--green); font-weight: 700; }

@keyframes pulse {
    0%   { box-shadow: 0 0 0 2px var(--green); }
    50%  { box-shadow: 0 0 0 5px rgba(26,122,60,.2); }
    100% { box-shadow: 0 0 0 2px var(--green); }
}

/* ===== TABLE (desktop) ===== */
.law-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.law-table th {
    text-align: left;
    padding: .65rem .85rem;
    font-size: .74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-sm);
    border-bottom: 2px solid var(--border);
    background: #fafbfd;
    white-space: nowrap;
}
.law-table td { padding: .7rem .85rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.law-table tr:last-child td { border-bottom: none; }
.law-table tbody tr { transition: background .1s; }
.law-table tbody tr:hover td { background: var(--blue-lt); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }

/* ===== LAW LIST CARDS (mobile alternative to table) ===== */
.law-list { display: none; }
.events-list { display: none; }
.law-list__item {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: .9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.law-list__item:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.law-list__item:last-child  { border-bottom: none; border-radius: 0 0 var(--radius) var(--radius); }
.law-list__title { font-size: .95rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.law-list__title a { color: inherit; }
.law-list__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    color: var(--text-sm);
}

/* ===== FILTER BAR ===== */
.filter-bar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    align-items: flex-end;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow);
}
.filter-bar label {
    font-size: .75rem;
    font-weight: 700;
    color: var(--text-sm);
    display: block;
    margin-bottom: .25rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.filter-bar select,
.filter-bar input[type="search"],
.filter-bar input[type="text"] {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .55rem .85rem;
    font-size: .9rem;
    color: var(--text);
    background: var(--white);
    outline: none;
    width: 100%;
    min-height: var(--touch);
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
    appearance: none;
}
.filter-bar select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a5568' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    padding-right: 2rem;
}
.filter-bar select:focus,
.filter-bar input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-lt); }
.filter-bar__group { flex: 1; min-width: 160px; }
.filter-bar__actions { display: flex; gap: .5rem; align-items: flex-end; flex-shrink: 0; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .6rem 1.2rem;
    border-radius: var(--radius);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background .12s, transform .1s;
    white-space: nowrap;
    min-height: var(--touch);
    text-decoration: none;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dk); text-decoration: none; color: #fff; }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: #146030; text-decoration: none; color: #fff; }
.btn--outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn--outline:hover { background: var(--bg); text-decoration: none; }
.btn--sm { padding: .45rem 1rem; font-size: .85rem; min-height: 38px; }
.btn--block { width: 100%; }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 1.75rem; flex-wrap: wrap; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: var(--touch); height: var(--touch);
    border: 1px solid var(--border); border-radius: var(--radius);
    font-size: .9rem; color: var(--text); padding: 0 .5rem;
    transition: background .1s;
}
.pagination a:hover { background: var(--blue-lt); border-color: var(--blue); color: var(--blue); text-decoration: none; }
.pagination .current { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
.pagination .disabled { opacity: .35; pointer-events: none; }

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
    content: '';
    position: absolute;
    left: .65rem; top: .5rem; bottom: .5rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--blue), var(--border));
}
.timeline__item { position: relative; padding: 0 0 1.5rem 1.25rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
    position: absolute; left: -1.4rem; top: .25rem;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--border);
    z-index: 1;
}
.timeline__dot--done  { background: var(--blue);  border-color: var(--blue); }
.timeline__dot--green { background: var(--green); border-color: var(--green); }
.timeline__dot--amber { background: var(--amber); border-color: var(--amber); }
.timeline__date  { font-size: .8rem; color: var(--text-sm); margin-bottom: .15rem; font-weight: 600; }
.timeline__title { font-weight: 600; font-size: 1rem; color: var(--text); }
.timeline__desc  { font-size: .88rem; color: var(--text-sm); margin-top: .2rem; line-height: 1.45; }
.timeline__source { font-size: .82rem; margin-top: .35rem; }

/* ===== DETAIL PAGE ===== */
.detail-header {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow);
}
.detail-header h1 { font-size: 1.3rem; margin-bottom: .6rem; line-height: 1.3; }
.detail-meta {
    display: flex; flex-wrap: wrap; gap: 1rem;
    font-size: .88rem; color: var(--text-sm);
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid var(--border);
}
.detail-meta dt { font-weight: 700; color: var(--text); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .15rem; }

.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.25rem; }

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}
.card__title {
    font-weight: 700;
    font-size: .74rem;
    margin-bottom: .85rem;
    color: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: .06em;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--border);
}

/* ===== SUBSCRIBE FORM ===== */
.subscribe-form {
    background: linear-gradient(135deg, var(--blue) 0%, #2259a8 100%);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    color: #fff;
    margin: 2rem 0;
}
.subscribe-form h2 { margin-bottom: .4rem; font-size: 1.15rem; }
.subscribe-form p  { opacity: .85; margin-bottom: 1.1rem; font-size: .9rem; }
.subscribe-form__row {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}
.subscribe-form__row input[type="email"] {
    flex: 1;
    min-width: 0; /* wichtig: erlaubt shrinking */
    padding: .6rem 1rem;
    border: none;
    border-radius: var(--radius);
    font-size: .95rem;
    outline: none;
    min-height: var(--touch);
}
.subscribe-form__row input[type="email"]:focus { box-shadow: 0 0 0 3px rgba(255,255,255,.4); }
.subscribe-form__row .btn { flex-shrink: 0; }

/* ===== ALERTS ===== */
.alert { padding: .9rem 1.1rem; border-radius: var(--radius); font-size: .9rem; margin-bottom: 1rem; }
.alert--info    { background: var(--blue-lt);   color: var(--blue);   border: 1px solid #b3c9e8; }
.alert--success { background: var(--green-lt);  color: var(--green);  border: 1px solid #8ecba8; }
.alert--warning { background: var(--amber-lt);  color: var(--amber);  border: 1px solid #dbb800; }

/* ===== EMPTY STATE ===== */
.empty { text-align: center; padding: 3rem 1rem; color: var(--text-sm); }
.empty__icon { font-size: 2.5rem; margin-bottom: .75rem; }

/* ===== FOOTER ===== */
footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 1.75rem 1rem;
    text-align: center;
    font-size: .82rem;
    color: var(--text-sm);
    margin-top: 3rem;
    line-height: 1.7;
}
footer a { color: var(--text-sm); }

/* ===== SPINNER ===== */
.spinner {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid var(--border);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin .6s linear infinite;
    vertical-align: middle;
    margin-left: .4rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

mark { background: #fff3b0; padding: 0 .1em; border-radius: 2px; }

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */

/* --- Tablet: 900px ---------------------------------------- */
@media (max-width: 900px) {
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .topbar__nav .hide-tablet { display: none; }
}

/* --- Mobile: 700px ---------------------------------------- */
@media (max-width: 700px) {
    /* Nav */
    .topbar__nav { display: none; }
    .topbar__subscribe.desktop-only { display: none; }
    .topbar__burger { display: flex; }

    /* Hero */
    .hero { padding: 1.75rem 0 1.5rem; margin-bottom: 1.25rem; }
    .hero h1 { font-size: 1.45rem; }
    .hero p   { font-size: .92rem; }

    /* Layout */
    .container { padding: 0 1rem; }

    /* Stats */
    .stats-bar { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
    .stat-card { padding: .85rem .9rem; }
    .stat-card__num { font-size: 1.7rem; }

    /* Cards */
    .law-grid { grid-template-columns: 1fr; gap: .7rem; }

    /* Table → hide on mobile, show card list */
    .table-desktop { display: none; }
    .law-list { display: block; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--white); }

    /* Events table on home page */
    .events-table { display: none; }
    .events-list { display: block; }

    /* Filter bar: stack everything */
    .filter-bar { flex-direction: column; gap: .6rem; }
    .filter-bar__group { min-width: 0; width: 100%; }
    .filter-bar__actions { width: 100%; }
    .filter-bar__actions .btn { flex: 1; }

    /* Detail page */
    .detail-grid { grid-template-columns: 1fr; gap: 1rem; }
    .detail-header { padding: 1.1rem; }
    .detail-header h1 { font-size: 1.15rem; }
    .detail-meta { gap: .75rem; }

    /* Subscribe form */
    .subscribe-form { padding: 1.35rem; }
    .subscribe-form__row { flex-direction: column; }
    .subscribe-form__row input[type="email"],
    .subscribe-form__row .btn { width: 100%; }

    /* Pagination */
    .pagination a, .pagination span { min-width: 40px; height: 40px; font-size: .85rem; }

    /* Timeline */
    .timeline__title { font-size: .95rem; }

    /* Pipeline label readability */
    .pipeline__label { font-size: .68rem; }
    .pipeline__step { width: 78px; }
}

/* --- Small mobile: 400px ---------------------------------- */
@media (max-width: 400px) {
    .stats-bar { grid-template-columns: 1fr 1fr; gap: .5rem; }
    .stat-card__num { font-size: 1.5rem; }
    .hero h1 { font-size: 1.25rem; }
    .container { padding: 0 .75rem; }
    .topbar { padding: 0 .75rem; }
}
