/* Atkinson Hyperlegible Next — designed by the Braille Institute for low-vision readers. Self-hosted (no
   third-party font requests: strict CSP and no visitor data sent to font CDNs). SIL OFL, see /fonts. */
@font-face {
  font-family: "Atkinson Next";
  src: url("../fonts/atkinson-next-latin.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Next";
  src: url("../fonts/atkinson-next-latin-ext.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --primary: #1446a0;      /* access blue */
  --primary-600: #0f3a88;
  --primary-50: #e8effa;
  --night: #0f2a5f;        /* hero band */
  --marker: #ffd23f;       /* highlighter / focus accent */
  --marker-ink: #3d2f00;
  --teal: #0e7c6b;
  --bg: #eef3f8;           /* mist */
  --surface: #ffffff;
  --text: #172033;         /* ink */
  --muted: #45506a;
  --subtle: #525d72;
  --border: #d9e1ec;
  --font: "Atkinson Next", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --good: #15803d;
  --good-bg: #dcfce7;
  --warn: #a16207;
  --warn-bg: #fef9c3;
  --bad: #b91c1c;
  --bad-bg: #fee2e2;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, .12);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); }
a { color: var(--primary); text-underline-offset: .18em; text-decoration-thickness: 1px; transition: color .15s, text-decoration-thickness .15s; }
a:hover { color: var(--primary-600); text-decoration-thickness: 2px; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
/* The same high-visibility focus the toolbar offers: marker yellow with a dark inner ring. */
:focus-visible { outline: 3px solid var(--marker); outline-offset: 2px; box-shadow: 0 0 0 5px var(--text); border-radius: 4px; }
code, pre { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .88em; }

.skip-link { position: absolute; left: 12px; top: -60px; background: var(--text); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap; border: 0 !important; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt { margin-top: 1rem; } .mb { margin-bottom: 1rem; } .mt-lg { margin-top: 2rem; }
.flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

/* ---------- buttons & forms ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none; background: var(--primary); color: #fff; line-height: 1.2;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, color .18s, border-color .18s; }
/* Hover: lift, a soft shadow and a light sweep across the button. */
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .55s var(--ease); }
.btn:hover { background: var(--primary-600); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px -8px rgba(20, 70, 160, .6); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn svg { transition: transform .18s var(--ease); }
.btn:hover svg { transform: scale(1.12); }
.btn-marker { background: var(--marker); color: var(--marker-ink); }
.btn-marker:hover { background: #ffdd66; color: var(--marker-ink); box-shadow: 0 10px 24px -10px rgba(255, 210, 63, .9); }
.btn-outline { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-outline:hover { background: var(--surface); color: var(--primary); border-color: var(--primary); box-shadow: 0 8px 18px -10px rgba(23, 32, 51, .35); }
.btn-outline::after, .btn-ghost::after { background: linear-gradient(110deg, transparent 30%, rgba(20, 70, 160, .08) 50%, transparent 70%); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .btn:hover { transform: none; }
}
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: #e2e8f0; color: var(--text); }
.btn-danger { background: var(--bad); }
.btn-danger:hover { background: #991b1b; }
.btn-sm { padding: 6px 12px; font-size: .82rem; border-radius: 8px; }
.btn-lg { padding: 14px 26px; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.field { margin-bottom: 16px; }
.field label, .label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.input, select.input, textarea.input { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; background: #fff; color: var(--text); }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29, 78, 216, .2); }
textarea.input { min-height: 110px; resize: vertical; }
.input-color { width: 52px; height: 42px; padding: 3px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; cursor: pointer; }
.help { font-size: .82rem; color: var(--subtle); margin-top: 4px; }
.error { color: var(--bad); font-size: .84rem; margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 18px; }
@media (max-width: 720px) { .form-grid, .form-grid-3 { grid-template-columns: 1fr; } }
.checks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.checks-grid .check { background: #f8fafc; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }

/* ---------- cards / tables ---------- */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); padding: 22px; margin-bottom: 20px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.stat .label { color: var(--muted); font-weight: 500; font-size: .85rem; margin: 0; }
.stat .value { font-size: 1.85rem; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--subtle); font-weight: 600; background: #f8fafc; }
.table tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .76rem; font-weight: 600; background: #e2e8f0; color: #334155; white-space: nowrap; }
.badge.good { background: var(--good-bg); color: var(--good); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.info { background: var(--primary-50); color: var(--primary); }
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-state svg { width: 48px; height: 48px; color: #94a3b8; margin-bottom: 10px; }

.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 500; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: var(--good-bg); color: #14532d; }
.alert-error { background: var(--bad-bg); color: #7f1d1d; }
.alert-info { background: var(--primary-50); color: #1e3a8a; }
.alert-warn { background: var(--warn-bg); color: #713f12; }

.code-box { position: relative; background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: 16px 18px; padding-right: 96px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.code-box .btn { position: absolute; top: 10px; right: 10px; }
.progress { height: 8px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.progress.over > span { background: var(--bad); }

.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; list-style: none; padding: 0; }
.pagination a, .pagination span { display: inline-block; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border); background: #fff; text-decoration: none; color: var(--text); font-size: .88rem; }
.pagination .active span { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .disabled span { color: #94a3b8; }

/* ---------- public layout ---------- */
.site-header { background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; gap: 24px; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.logo:hover { color: var(--text); }
.logo-mark { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--primary); transition: transform .3s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-12deg) scale(1.06); }
.nav { display: flex; gap: 2px; flex: 1; }
.nav a { position: relative; padding: 8px 12px; color: var(--muted); text-decoration: none; font-weight: 700; }
/* Underline grows from the centre on hover; the current page keeps it. */
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; border-radius: 2px; background: var(--marker); transform: scaleX(0); transition: transform .22s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.menu-toggle { display: none; }
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .site-header .container { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; }
  .nav, .header-actions { display: none; width: 100%; }
  .site-header.open .nav, .site-header.open .header-actions { display: flex; flex-direction: column; align-items: stretch; }
  .logo { flex: 1; }
}

.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.lang-switch a { padding: 6px 10px; font-size: .8rem; font-weight: 700; text-decoration: none; color: var(--muted); text-transform: uppercase; transition: background .15s, color .15s; }
.lang-switch a:hover { background: var(--primary-50); color: var(--primary); }
.lang-switch a[aria-current="true"] { background: var(--primary); color: #fff; }

/* Hero: deep blue band; the headline itself is a live demo of the toolbar. */
.hero { position: relative; overflow: hidden; background: var(--night); color: #fff; padding: 76px 0 84px; }
.hero::before { /* faint grid like a wayfinding sign */
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); line-height: 1.06; letter-spacing: -.025em; font-weight: 800; margin-bottom: 20px; max-width: 14ch; color: #fff; }
.hero .lead { font-size: 1.16rem; line-height: 1.65; color: #d6e0f5; max-width: 54ch; }
.hero .note { color: #b9c7e6; font-size: .92rem; }
.hero .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.hero .btn-outline:hover { background: rgba(255, 255, 255, .08); color: #fff; border-color: #fff; }
.hero a:not(.btn) { color: #fff; }
.hero-copy { transition: letter-spacing .35s var(--ease), word-spacing .35s var(--ease); }
.hero-copy h1, .hero-copy .lead { transition: font-size .35s var(--ease), color .35s, background-color .35s, line-height .35s var(--ease); }
/* States switched by the "try it" buttons */
.hero.try-large .hero-copy h1 { font-size: clamp(2.7rem, 5.6vw, 4.5rem); }
.hero.try-large .hero-copy .lead { font-size: 1.36rem; }
.hero.try-contrast { background: #000; }
.hero.try-contrast::before { opacity: 0; }
.hero.try-contrast .hero-copy h1 { color: var(--marker); }
.hero.try-contrast .hero-copy .lead { color: #fff; }
.hero.try-spacing .hero-copy { letter-spacing: .06em; word-spacing: .16em; }
.hero.try-spacing .hero-copy .lead { line-height: 2; }
.try { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .16); }
.try p { margin: 0 0 10px; color: #b9c7e6; font-size: .92rem; }
.try-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.try-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .18s var(--ease); }
.try-btn:hover { border-color: var(--marker); transform: translateY(-1px); }
.try-btn[aria-pressed="true"] { background: var(--marker); color: var(--marker-ink); border-color: var(--marker); }
.try-btn svg { width: 18px; height: 18px; }

.hero-art { position: relative; }
.hero-art svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .35)); }
.hero-art .art-panel { transform-origin: 85% 90%; animation: art-panel .9s .25s var(--ease) both; }
.hero-art .art-cursor { animation: art-cursor 6s 1.2s ease-in-out infinite; }
@keyframes art-panel { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes art-cursor { 0%, 100% { transform: translate(0, 0); } 45% { transform: translate(-46px, -58px); } 55% { transform: translate(-46px, -58px); } }

.section { padding: 84px 0; }
.section-alt { background: #fff; }
.section-title { max-width: 720px; margin: 0 0 40px; }
.section-title h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.02em; line-height: 1.15; }
.section-title p { color: var(--muted); font-size: 1.08rem; }
.section-title.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Tools: a quiet list in columns, separated by rules — not a wall of identical cards. */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0 32px; }
.feature { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 18px 0; border-top: 1px solid var(--border); }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-50); color: var(--primary); display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s, transform .25s var(--ease); }
.feature:hover .ic { background: var(--primary); color: #fff; transform: rotate(-6deg); }
.feature h2, .feature h3 { font-size: 1.04rem; margin: 2px 0 0; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }
.feature-grid.no-icons .feature { grid-template-columns: 1fr; }

.profiles { display: flex; flex-wrap: wrap; gap: 10px; }
.profile-chip { padding: 12px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--border); max-width: 270px; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.profile-chip:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 10px 22px -16px rgba(20, 70, 160, .8); }
.profile-chip strong { display: block; }
.profile-chip span { color: var(--muted); font-size: .9rem; }

/* How it works is a real sequence, so it is numbered. */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; counter-reset: step; }
.step { position: relative; padding-top: 58px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--marker); color: var(--marker-ink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.15rem; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 56px; right: -16px; height: 2px; background: repeating-linear-gradient(90deg, var(--border) 0 8px, transparent 8px 14px); }
@media (max-width: 700px) { .step:not(:last-child)::after { display: none; } }

.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.trust-item { padding: 22px; border-radius: 16px; background: var(--night); color: #dbe5f7; }
.trust-item h3 { color: #fff; font-size: 1.05rem; display: flex; gap: 10px; align-items: center; }
.trust-item h3 svg { color: var(--marker); flex: none; }
.trust-item p { margin: 0; font-size: .95rem; }

.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s; }
.plan:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(23, 32, 51, .55); border-color: #b9c6da; }
.plan.featured { border: 2px solid var(--primary); box-shadow: 0 0 0 6px var(--primary-50); }
.plan .price { font-size: 2.5rem; font-weight: 800; margin: 8px 0 2px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.plan .price small { font-size: .95rem; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.plan li { padding: 6px 0 6px 28px; position: relative; font-size: .95rem; }
.plan li::before { content: ""; position: absolute; left: 0; top: 9px; width: 18px; height: 18px; border-radius: 50%; background: var(--good-bg) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>") center/12px no-repeat; }
.plan li.no::before { background: #f1f5f9 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='3' stroke-linecap='round'><path d='M18 6L6 18M6 6l12 12'/></svg>") center/10px no-repeat; }
.plan li.no { color: var(--subtle); }
.period-toggle { display: inline-flex; background: #dfe7f1; border-radius: 12px; padding: 4px; margin-bottom: 26px; }
.period-toggle button { border: 0; background: none; padding: 8px 18px; border-radius: 9px; font: inherit; font-weight: 700; cursor: pointer; color: var(--muted); transition: background .18s, color .18s; }
.period-toggle button:hover { color: var(--text); }
.period-toggle button[aria-pressed="true"] { background: #fff; color: var(--text); box-shadow: var(--shadow); }

.cta { position: relative; overflow: hidden; background: var(--primary); color: #fff; border-radius: 24px; padding: 52px 48px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.cta::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; border: 36px solid rgba(255, 210, 63, .9); }
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 6px; position: relative; z-index: 1; color: #fff; }
.cta p { margin: 0; color: #d6e0f5; position: relative; z-index: 1; }
.cta .btn { position: relative; z-index: 1; }
@media (max-width: 700px) { .cta { grid-template-columns: 1fr; padding: 36px 24px; } }

.site-footer { border-top: 1px solid var(--border); padding: 34px 0; color: var(--muted); font-size: .92rem; background: #fff; }
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--primary); }

.auth-wrap { min-height: calc(100vh - 70px); display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 1.7rem; letter-spacing: -.01em; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.3em; }
.legal-body h2 { font-size: 1.25rem; }

/* ---------- app layout ---------- */
.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar { background: #0f172a; color: #cbd5e1; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.sidebar .logo { color: #fff; padding: 4px 8px 22px; }
.side-nav { list-style: none; margin: 0; padding: 0; }
.side-nav a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; color: #cbd5e1; text-decoration: none; font-weight: 500; font-size: .93rem; }
.side-nav a:hover { background: #1e293b; color: #fff; }
.side-nav a[aria-current="page"] { background: var(--primary); color: #fff; }
.side-nav svg { width: 18px; height: 18px; flex: none; }
.side-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #94a3b8; padding: 18px 12px 6px; font-weight: 700; }
.side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid #1e293b; }
.side-foot .plan-pill { display: block; font-size: .82rem; color: #94a3b8; padding: 0 12px 10px; }
.side-foot .plan-pill b { color: #fff; }
.main { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 14px 28px; background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.topbar .grow { min-width: 0; }
.topbar .user { font-weight: 600; font-size: .9rem; }
.content { padding: 28px; max-width: 1240px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 1.6rem; margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.breadcrumbs { font-size: .85rem; color: var(--subtle); margin-bottom: 6px; }
.breadcrumbs a { color: var(--subtle); }
.tabs-nav { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 22px; overflow-x: auto; overflow-y: hidden; }
.tabs-nav a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .92rem; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs-nav a[aria-current="page"] { color: var(--primary); border-color: var(--primary); }
.sidebar-toggle { display: none; }
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; z-index: 60; transform: translateX(-100%); transition: transform .2s; }
  .app.nav-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  .sidebar-toggle { display: inline-flex; }
  .content { padding: 18px 16px; }
  .topbar { padding: 12px 16px; }
}
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3-1 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1000px) { .grid-2, .grid-3-1 { grid-template-columns: 1fr; } }

.site-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.site-row:last-child { border-bottom: 0; }
.site-avatar { width: 42px; height: 42px; border-radius: 12px; background: var(--primary-50); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 800; flex: none; text-transform: uppercase; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: #94a3b8; }
.dot.on { background: #16a34a; }

/* ---------- charts ---------- */
.chart { position: relative; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 180px; border-bottom: 1px solid #cbd5e1; padding-top: 8px; }
.bars .bar { flex: 1; position: relative; display: flex; align-items: flex-end; height: 100%; min-width: 3px; }
.bars .bar span { display: block; width: 100%; background: var(--primary); border-radius: 4px 4px 0 0; min-height: 1px; }
.bars .bar:hover span, .bars .bar:focus span { background: var(--primary-600); }
.bars .bar .tip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: #0f172a; color: #fff; padding: 5px 9px; border-radius: 6px; font-size: .78rem; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .1s; z-index: 5; }
.bars .bar:hover .tip, .bars .bar:focus .tip { opacity: 1; }
.bars .bar:focus { outline: none; }
.bars .bar:focus-visible span { outline: 2px solid #f97316; outline-offset: 1px; }
.bars-axis { display: flex; justify-content: space-between; font-size: .75rem; color: var(--subtle); margin-top: 6px; }
.hbar { display: grid; grid-template-columns: minmax(120px, 190px) 1fr 56px; gap: 12px; align-items: center; padding: 6px 0; font-size: .9rem; }
.hbar .track { height: 10px; background: #eef2f7; border-radius: 5px; overflow: hidden; }
.hbar .track span { display: block; height: 100%; background: var(--primary); border-radius: 0 4px 4px 0; }
.hbar .val { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }

.score-ring { --val: 0; --col: var(--good); width: 120px; height: 120px; border-radius: 50%; background: conic-gradient(var(--col) calc(var(--val) * 1%), #e2e8f0 0); display: flex; align-items: center; justify-content: center; flex: none; }
.score-ring > div { width: 92px; height: 92px; background: #fff; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-ring b { font-size: 1.9rem; line-height: 1; }
.score-ring.warn { --col: #ca8a04; } .score-ring.bad { --col: var(--bad); }
.issue { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.issue summary { cursor: pointer; padding: 14px 16px; display: flex; gap: 12px; align-items: center; list-style: none; }
.issue summary::-webkit-details-marker { display: none; }
.issue summary .grow { font-weight: 600; }
.issue .body { padding: 0 16px 16px; color: var(--muted); }
.issue .body pre { background: #f8fafc; border: 1px solid var(--border); padding: 8px 10px; border-radius: 8px; white-space: pre-wrap; word-break: break-all; color: var(--text); margin: 6px 0; }

.preview-stage { position: relative; height: 460px; border-radius: 14px; background: linear-gradient(180deg, #f8fafc, #e2e8f0); overflow: hidden; border: 1px solid var(--border); }
.preview-stage .fake { padding: 22px; }
.preview-stage .fake i { display: block; height: 12px; background: #cbd5e1; border-radius: 6px; margin-bottom: 10px; }
.preview-btn { position: absolute; border-radius: 50%; border: 3px solid #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 18px rgba(0, 0, 0, .3); }
