/* ---------- Fonts ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin.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+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-ext.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;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f2f4f7;
  --text: #0b1220;
  --text-2: #344054;
  --muted: #5b6475;
  --subtle: #8a93a3;
  --border: #e6e8ec;
  --border-strong: #d5d9e0;
  --accent: #2457d6;
  --accent-hover: #1c47b5;
  --accent-soft: #edf2ff;
  --brand: #d81f3f;
  --up: #12a150;     --up-bg: #ecf9f1;     --up-line: #bfe8cf;
  --issues: #b95f00; --issues-bg: #fff6e9; --issues-line: #f6d7a6;
  --down: #d92d20;   --down-bg: #fef1f0;   --down-line: #f6c6c1;
  --unknown: #98a1b0; --unknown-bg: #f2f4f7; --unknown-line: #e3e6eb;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04);
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 6px rgba(16, 24, 40, .05);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, .04), 0 12px 32px rgba(16, 24, 40, .08);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.6; font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { flex: 1; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.02em; color: var(--text); }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: 1.125rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 650; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 6px; }
svg { flex: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.lede { color: var(--muted); font-size: 1.075rem; max-width: 66ch; margin: 10px 0 0; }
.lede:empty { display: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 750; font-size: 1.02rem; letter-spacing: -.02em; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand b { color: var(--brand); font-weight: 750; }
.brand .mark { width: 32px; height: 32px; filter: drop-shadow(0 2px 4px rgba(216, 31, 63, .25)); }
.main-nav { display: flex; gap: 4px; }
.main-nav a { color: var(--text-2); font-size: .92rem; font-weight: 550; padding: 7px 12px; border-radius: 9px; }
.main-nav a:hover { background: var(--surface-2); color: var(--text); }
.search-header { margin-left: auto; width: min(320px, 100%); }
@media (max-width: 980px) { .main-nav { display: none; } }
@media (max-width: 640px) {
  .header-inner { height: auto; flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .search-header { width: 100%; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: .95rem; font-weight: 650; cursor: pointer; white-space: nowrap;
  border: 1px solid transparent; border-radius: 11px; padding: 10px 18px; line-height: 1.2;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(36, 87, 214, .3), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-report { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(216, 31, 63, .3), inset 0 1px 0 rgba(255, 255, 255, .15); }
.btn-report:hover { background: #bd1734; color: #fff; }
.btn-ghost { background: var(--surface); color: var(--text-2); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-sm { padding: 7px 12px; font-size: .86rem; border-radius: 9px; }
.btn-sm svg { width: 16px; height: 16px; }
.btn:disabled { opacity: .6; cursor: wait; }
.text-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: .92rem; }
.text-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Search ---------- */
.search { position: relative; display: flex; align-items: center; gap: 8px; }
.search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); display: flex; color: var(--subtle); pointer-events: none; }
.search-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.search input {
  flex: 1; min-width: 0; font: inherit; font-size: .95rem; color: var(--text);
  background: var(--surface-2); border: 1px solid transparent; border-radius: 11px; padding: 9px 14px 9px 40px;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.search input::placeholder { color: var(--subtle); }
.search input:focus { outline: none; background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(36, 87, 214, .12); }
.search-hero { max-width: 680px; margin-top: 26px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 16px; padding: 7px; box-shadow: var(--shadow-lg); }
.search-hero:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(36, 87, 214, .12), var(--shadow-lg); }
.search-hero .search-icon { left: 22px; }
.search-hero input { background: transparent; border: 0; font-size: 1.06rem; padding: 12px 12px 12px 46px; box-shadow: none !important; }
.search-hero .btn { padding: 12px 22px; }
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 50;
  list-style: none; margin: 0; padding: 6px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg);
}
.search-results a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 9px; color: var(--text); font-weight: 550; }
.search-results a .host { margin-left: auto; color: var(--subtle); font-size: .85rem; font-weight: 400; }
.search-results a:hover, .search-results a.active { background: var(--surface-2); }
.search-results .check-row .logo-tile { background: var(--accent-soft); color: var(--accent); }
.search-results .check-row .logo-tile svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
@media (max-width: 560px) { .search-hero .btn { padding: 12px 14px; } }

/* ---------- Logos ---------- */
.logo-tile {
  display: inline-grid; place-items: center; flex: none; overflow: hidden;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.logo-tile img { display: block; object-fit: contain; }
.logo-sm { width: 26px; height: 26px; border-radius: 7px; }  .logo-sm img { width: 18px; height: 18px; }
.logo-md { width: 42px; height: 42px; border-radius: 11px; } .logo-md img { width: 28px; height: 28px; }
.logo-lg { width: 52px; height: 52px; border-radius: 13px; } .logo-lg img { width: 36px; height: 36px; }
.logo-xl { width: 88px; height: 88px; border-radius: 22px; box-shadow: var(--shadow); } .logo-xl img { width: 60px; height: 60px; }
.logo-letter { border: 0; color: #fff; font-weight: 750; background: linear-gradient(135deg, hsl(var(--h) 70% 55%), hsl(calc(var(--h) + 25) 65% 42%)); }
.logo-sm.logo-letter { font-size: .78rem; } .logo-md.logo-letter { font-size: 1.1rem; } .logo-xl.logo-letter { font-size: 2.4rem; }

/* ---------- Status primitives ---------- */
[data-state="up"] { --c: var(--up); --c-bg: var(--up-bg); --c-line: var(--up-line); }
[data-state="issues"] { --c: var(--issues); --c-bg: var(--issues-bg); --c-line: var(--issues-line); }
[data-state="down"] { --c: var(--down); --c-bg: var(--down-bg); --c-line: var(--down-line); }
[data-state="unknown"], [data-state="loading"], [data-state="idle"] { --c: var(--unknown); --c-bg: var(--unknown-bg); --c-line: var(--unknown-line); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--unknown)); flex: none; }
.dot[data-state="down"] { box-shadow: 0 0 0 3px var(--down-bg); }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  font-size: .76rem; font-weight: 650; color: var(--c); background: var(--c-bg); border-radius: 999px; padding: 2px 9px 2px 8px; line-height: 1.6;
}
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.live-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--down); background: var(--down-bg); border-radius: 999px; padding: 3px 9px; }
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--down); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--c-line); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: .86rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs svg { width: 14px; height: 14px; fill: none; stroke: var(--subtle); stroke-width: 2; }
.crumbs [aria-current] { color: var(--text-2); font-weight: 550; }

/* ---------- Status band (service + check pages) ---------- */
.status-band {
  padding: 26px 0 30px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--c-bg) 0%, var(--bg) 100%);
  transition: background .3s;
}
.status-band[data-state="loading"], .status-band[data-state="idle"] { background: linear-gradient(180deg, #eef2f8 0%, var(--bg) 100%); }
.status-band h1 { margin-bottom: 20px; }
.status-band .search-hero { margin: 0 0 20px; }
.verdict-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px 26px;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.verdict-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--c); }
.verdict-main { display: flex; align-items: center; gap: 22px; min-width: 0; }
.eyebrow { margin: 0 0 4px; font-size: .78rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); }
.verdict { display: flex; align-items: center; gap: 12px; margin: 0; font-size: clamp(1.45rem, 2.6vw, 1.95rem); font-weight: 800; letter-spacing: -.025em; color: var(--c); line-height: 1.2; }
.status-band[data-state="loading"] .verdict { color: var(--text); }
.verdict-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); flex: none; animation: pulse 2s infinite; }
.verdict-sub { margin: 6px 0 0; color: var(--text-2); max-width: 60ch; }
.verdict-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: none; text-align: right; }
.verdict-q { margin: 0; font-weight: 650; color: var(--text-2); font-size: .95rem; }
.verdict-meta { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .84rem; color: var(--muted); }
.verdict-meta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0 0; }
.stat-row div { background: rgba(255, 255, 255, .75); border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; }
.stat-row dt { font-size: .78rem; color: var(--muted); font-weight: 550; }
.stat-row dd { margin: 2px 0 0; font-size: 1.2rem; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
  .verdict-card { flex-direction: column; align-items: stretch; padding: 20px; }
  .verdict-main { gap: 16px; align-items: flex-start; }
  .logo-xl { width: 64px; height: 64px; border-radius: 17px; } .logo-xl img { width: 44px; height: 44px; }
  .verdict-side { align-items: stretch; text-align: left; }
  .verdict-q { display: none; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Page layout ---------- */
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; padding-top: 28px; }
.sidebar { display: grid; gap: 20px; position: sticky; top: 84px; }
@media (max-width: 980px) { .page-grid { grid-template-columns: minmax(0, 1fr); } .sidebar { position: static; } }
.page-head { padding: 30px 0 6px; }
.summary { font-size: 1.02rem; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow-sm); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 720px) { .two-col { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
.two-col .card { margin-bottom: 0; }
.two-col { margin-bottom: 20px; }
.sidebar .card { margin-bottom: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-note { margin: 12px 0 0; font-size: .84rem; color: var(--muted); }
.side-card { padding: 18px 18px; }
.side-card .card-head { margin-bottom: 10px; }
.side-card h2 { font-size: 1rem; }
@media (max-width: 560px) { .card { padding: 18px; } }

/* ---------- Chart ---------- */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid-line { stroke: var(--border); stroke-width: 1; }
.chart .axis { fill: var(--subtle); font-size: 14px; font-family: inherit; }
.chart .area { fill: url(#area-grad); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.chart .hot { fill: var(--down); }
.chart .usual { stroke: var(--subtle); stroke-width: 1.5; stroke-dasharray: 5 5; }
.chart .now-dot { fill: var(--accent); stroke: #fff; stroke-width: 2.5; }
.chart .hit { fill: transparent; }
.chart-tip { position: absolute; pointer-events: none; transform: translate(-50%, -110%); background: var(--text); color: #fff; font-size: .78rem; font-weight: 600; padding: 5px 9px; border-radius: 8px; white-space: nowrap; box-shadow: var(--shadow-lg); }
.legend { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); }
.key { display: inline-block; width: 16px; height: 3px; border-radius: 2px; margin-left: 6px; }
.key-reports { background: var(--accent); }
.key-usual { background: repeating-linear-gradient(90deg, var(--subtle) 0 4px, transparent 4px 7px); }
.skeleton { height: 180px; border-radius: 12px; background: linear-gradient(90deg, var(--surface-2) 0%, #f8f9fb 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton.thin { height: 34px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Report ---------- */
.report-card p { color: var(--text-2); }
.kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.kind {
  display: flex; align-items: center; gap: 10px; text-align: left;
  font: inherit; font-size: .95rem; font-weight: 550; color: var(--text); cursor: pointer;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; padding: 11px 14px;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.kind:hover { border-color: var(--brand); background: #fff8f9; }
.kind-radio { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border-strong); flex: none; transition: border .15s; }
.kind:hover .kind-radio { border-color: var(--brand); }
.kind.chosen { border-color: var(--brand); background: #fff3f5; box-shadow: 0 0 0 3px rgba(216, 31, 63, .1); }
.kind.chosen .kind-radio { border: 5px solid var(--brand); }
.kind:disabled { cursor: default; }
.report-msg { margin: 12px 0 0; min-height: 1.5em; font-size: .92rem; color: var(--text-2); }
.report-msg.ok { color: var(--up); font-weight: 600; }

/* ---------- Lists ---------- */
.kind-bars, .recent-list, .trend-list, .row-list { list-style: none; margin: 0; padding: 0; }
.kind-bars { display: grid; gap: 12px; }
.kind-bars li:not(.muted) { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 4px 10px; font-size: .9rem; font-weight: 550; }
.kind-bars .track { grid-column: 1 / -1; height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.kind-bars .fill { display: block; height: 100%; background: linear-gradient(90deg, #ff6b6b, var(--brand)); border-radius: 4px; }
.kind-bars .pct { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.recent-list li:not(.muted) { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.recent-list li:last-child { border-bottom: 0; }
.recent-list .cc { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); color: var(--text-2); font-size: .72rem; font-weight: 700; flex: none; }
.recent-list .what { flex: 1; min-width: 0; color: var(--text-2); }
.recent-list .what b { color: var(--text); font-weight: 650; }
.recent-list time { color: var(--subtle); font-size: .8rem; white-space: nowrap; }
.muted-row, li.muted { color: var(--muted); font-size: .9rem; }
.trend-list li:not(.muted), .row-list li { border-bottom: 1px solid var(--border); }
.trend-list li:last-child, .row-list li:last-child { border-bottom: 0; }
.trend-list a, .row-list a { display: flex; align-items: center; gap: 10px; padding: 8px 4px; color: var(--text); font-weight: 550; font-size: .92rem; border-radius: 8px; }
.trend-list a:hover, .row-list a:hover { background: var(--surface-2); }
.row-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trend-list .count { margin-left: auto; color: var(--muted); font-size: .8rem; font-weight: 500; white-space: nowrap; }
.side-card .text-link { margin-top: 10px; }
.visit-card { display: flex; align-items: center; gap: 12px; }
.visit-card div { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.visit-card span { color: var(--muted); font-size: .84rem; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Checks ---------- */
.check-summary { font-weight: 650; margin-bottom: 12px; }
.uptime { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 4px; }
.uptime span { height: 34px; border-radius: 5px; background: var(--unknown-line); }
.uptime span[data-state="up"] { background: var(--up); }
.uptime span[data-state="issues"] { background: #f5a524; }
.uptime span[data-state="down"] { background: var(--down); }
.uptime .skeleton { grid-column: 1 / -1; }
.uptime-axis { display: flex; justify-content: space-between; font-size: .78rem; color: var(--subtle); margin-top: 6px; }
.official { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 1.02rem; }
.official .dot { width: 12px; height: 12px; }

/* ---------- Prose, steps, FAQ ---------- */
.prose-card h2 { font-size: 1.2rem; margin-bottom: 14px; }
.prose-card h2:not(:first-child) { margin-top: 26px; }
.prose-card p, .prose-card li { color: var(--text-2); }
.prose-card.narrow { max-width: 780px; margin: 10px 0 40px; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .85rem; }
.faq details { border-top: 1px solid var(--border); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; font-weight: 650; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; color: var(--subtle); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 14px; }

/* ---------- Home ---------- */
.home-hero {
  padding: 64px 0 52px; border-bottom: 1px solid var(--border); position: relative; overflow: hidden;
  background:
    radial-gradient(900px 380px at 85% -10%, rgba(216, 31, 63, .08), transparent 60%),
    radial-gradient(900px 420px at 0% 0%, rgba(36, 87, 214, .09), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}
.home-hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(11, 18, 32, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 18, 32, .035) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); pointer-events: none; }
.home-hero .wrap { position: relative; z-index: 1; }
.home-hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); letter-spacing: -.04em; max-width: 22ch; line-height: 1.05; text-wrap: balance; }
.home-hero.compact { padding: 48px 0; }
.home-hero.compact h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); max-width: none; }
.hero-kicker { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; font-weight: 550; margin-bottom: 18px; }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 0; font-size: .88rem; color: var(--muted); }
.quick a { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); font-weight: 550; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px 4px 5px; box-shadow: var(--shadow-sm); }
.quick a:hover { border-color: var(--border-strong); color: var(--text); }
.quick .logo-tile { width: 22px; height: 22px; border-radius: 50%; border: 0; box-shadow: none; }
.quick .logo-tile img { width: 16px; height: 16px; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 26px 0 0; padding: 0; color: var(--text-2); font-size: .9rem; font-weight: 550; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; fill: none; stroke: var(--up); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.section { margin-bottom: 36px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-size: 1.3rem; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 12px; }
.svc-card { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-sm); color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; }
.svc-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-lg); transform: translateY(-1px); color: var(--text); }
.svc-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.svc-name { font-weight: 650; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.cat-card { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; color: var(--text); box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; }
.cat-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-lg); color: var(--text); }
.cat-card span:last-child { color: var(--muted); font-size: .85rem; }
.cat-logos { display: flex; gap: 6px; margin-bottom: 12px; }
.cat-logos .logo-tile { width: 30px; height: 30px; border-radius: 8px; }
.cat-logos .logo-tile img { width: 20px; height: 20px; }
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.how-step { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: var(--shadow-sm); }
.how-step h3 { margin: 12px 0 6px; }
.how-step p { margin: 0; color: var(--muted); font-size: .92rem; }
.how-num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--text); color: #fff; font-weight: 700; font-size: .9rem; }
@media (max-width: 720px) { .how-grid { grid-template-columns: minmax(0, 1fr); } .home-hero { padding: 40px 0 36px; } }

/* ---------- A–Z ---------- */
.az { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 24px; }
.az a { display: grid; place-items: center; min-width: 36px; height: 36px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; font-weight: 650; color: var(--text-2); }
.az a:hover { border-color: var(--accent); color: var(--accent); }
.az-group { margin-bottom: 26px; }
.az-group h2 { font-size: 1.4rem; margin-bottom: 8px; }
.az-list { columns: 3 240px; column-gap: 28px; }
.az-list li { break-inside: avoid; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 56px; background: #0b1220; color: #a9b1c1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin: 14px 0 0; font-size: .9rem; max-width: 34ch; }
.site-footer h3 { color: #fff; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer nav a { color: #a9b1c1; font-size: .9rem; }
.site-footer nav a:hover { color: #fff; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 20px; padding-bottom: 28px; }
.footer-legal p { margin: 0; font-size: .8rem; color: #7d8697; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Ads ---------- */
.ad { margin: 0 0 20px; min-height: 90px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ad-side { min-height: 250px; }
.ad-placeholder { border: 1px dashed var(--border-strong); border-radius: var(--radius); color: var(--subtle); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; background: var(--surface); }

/* ---------- About card ---------- */
.about-card p { margin: 12px 0 14px; font-size: .9rem; color: var(--text-2); line-height: 1.55; }
.about-card .visit-card b { font-size: .95rem; }
