/* Flawless.Customs: shared styles.
   Dark brand theme taken from the logo: near-black, electric blue, pink accent.
   System fonts only: no external requests, no font licences to manage. */

:root {
  --bg: #05070d;
  --bg-2: #080c17;
  --surface: #0d1322;
  --surface-2: #141c31;
  --text: #eef2ff;
  --muted: #95a1bf;
  --border: #1d2944;
  --border-strong: #2b3b63;
  --accent: #2f7bff;
  --accent-hover: #5b97ff;
  --accent-text: #ffffff;
  --accent-2: #e0357a;
  --glow: rgb(47 123 255 / 45%);
  --gradient: linear-gradient(120deg, #1f5fff 0%, #2f7bff 45%, #6a5cff 100%);
  --error: #ff8a80;
  --error-bg: #3a1613;
  --warning: #f2b75e;
  --warning-bg: #33240c;
  --info: #80c6e6;
  --info-bg: #0f2737;
  --ok: #4ade9b;
  --radius: 12px;
  --shadow: 0 10px 30px rgb(0 0 0 / 35%);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
}

a { color: var(--accent-hover); }
a:hover { color: #8fb6ff; }

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--surface-2);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  overflow-wrap: anywhere;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; }
/* Big headings echo the logo: heavy, slanted, upper-case. */
h1, h2 { font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: 0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
h3 { font-size: 1.1rem; }

:focus-visible { outline: 3px solid var(--accent-hover); outline-offset: 2px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link { position: absolute; left: -999px; top: 8px; }
.skip-link:focus { left: 16px; background: var(--surface); padding: 8px 12px; z-index: 30; }

.muted { color: var(--muted); }
.prose-width { max-width: 65ch; }
/* Electric blue with a glow, like "DRIVE PERFECTION" on the banner. */
.accent-text { color: #3d8bff; text-shadow: 0 0 18px rgb(47 123 255 / 55%); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgb(5 7 13 / 85%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; min-height: 64px; padding-top: 6px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-logo { height: 40px; width: auto; filter: drop-shadow(0 0 8px var(--glow)); }
.brand-name { font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 1.15rem; letter-spacing: 0.02em; }
.brand-name span, .footer-brand span { color: var(--accent); }
.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.nav a { display: block; padding: 6px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--accent); }

.category-bar { border-top: 1px solid var(--border); background: rgb(13 19 34 / 70%); }
.category-bar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px 22px; overflow-x: auto; scrollbar-width: none; }
.category-bar a { display: block; padding: 8px 0; white-space: nowrap; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.category-bar a:hover { color: var(--text); border-bottom-color: var(--accent); }
.category-bar .category-free { color: var(--ok); }
.category-bar .category-free::before { content: "★ "; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 80px; padding: 28px 0 32px; color: var(--muted); font-size: 0.9rem; background: var(--bg-2); }
.site-footer p { margin: 0; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 16px; }
.footer-brand { font-weight: 900; font-style: italic; text-transform: uppercase; color: var(--text); font-size: 1.05rem; }
.footer-tagline { margin-left: 8px; font-size: 0.75rem; letter-spacing: 0.25em; color: var(--accent) !important; font-style: normal; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: var(--text); }

/* ---------- Common text blocks ---------- */
.intro { padding: 40px 0 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; font-weight: 800; color: var(--accent-hover); margin: 0 0 10px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; margin: 0 0 20px; }
.trust-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.trust-list li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 8px; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button {
  font: inherit; font-weight: 700;
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s, background 0.15s;
}
.button:hover { border-color: var(--accent); color: var(--text); }
.button-primary { background: var(--gradient); border-color: transparent; color: var(--accent-text); box-shadow: 0 6px 20px var(--glow); }
.button-primary:hover { color: var(--accent-text); transform: translateY(-1px); box-shadow: 0 8px 28px var(--glow); }
.button-ghost { background: rgb(255 255 255 / 6%); border-color: rgb(255 255 255 / 18%); }
.button-ghost:hover { background: rgb(255 255 255 / 12%); }
.button-lg { padding: 13px 24px; font-size: 1.05rem; }

/* ---------- Storefront hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 300px at 15% 110%, rgb(47 123 255 / 30%), transparent 70%),
    radial-gradient(500px 260px at 90% 100%, rgb(224 53 122 / 18%), transparent 70%);
}
.hero-banner { position: relative; background: #000; }
.hero-banner img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; }
.hero-banner::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to bottom, transparent, var(--bg)); }
.hero-copy { position: relative; padding-top: 8px; padding-bottom: 56px; }
.hero-copy h1 { max-width: 20ch; }

/* ---------- Sections ---------- */
.store-section { margin-top: 64px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 20px; }
.section-head h2, .section-head p { margin: 0; }
.section-head h2::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 8px; border-radius: 2px; background: var(--gradient); transform: skewX(-20deg); }

/* Category tiles */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tile {
  position: relative; overflow: hidden;
  display: grid; gap: 6px; align-content: start;
  min-height: 200px; padding: 22px;
  border-radius: var(--radius);
  color: #fff; text-decoration: none;
  border: 1px solid rgb(255 255 255 / 10%);
  transition: transform 0.2s, box-shadow 0.2s;
}
.tile::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgb(255 255 255 / 8%); }
.tile:hover { color: #fff; transform: translateY(-4px); box-shadow: 0 16px 40px rgb(0 0 0 / 45%); }
.tile img { width: 48px; height: 48px; margin-bottom: 6px; }
.tile-name { font-size: 1.4rem; font-weight: 900; font-style: italic; text-transform: uppercase; line-height: 1.1; }
.tile-blurb { color: rgb(255 255 255 / 82%); font-size: 0.95rem; }
.tile-status { margin-top: auto; padding-top: 10px; font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.tile-cars { background: linear-gradient(135deg, #0b3fd1, #1f7bff 55%, #19b5ff); }
.tile-scripts { background: linear-gradient(135deg, #4b1fb8, #8a3dff 55%, #e0357a); }
.tile-tools { background: linear-gradient(135deg, #0b5a4b, #0f8f6f 55%, #20c997); }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.product-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.product-card:not(.product-card-planned):hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 14px 36px rgb(0 0 0 / 50%), 0 0 0 1px var(--accent), 0 0 30px var(--glow); }
.product-media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--bg-2); }
.product-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-flag { position: absolute; top: 12px; left: 12px; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 10px; border-radius: 999px; background: rgb(5 7 13 / 80%); color: var(--muted); border: 1px solid var(--border-strong); }
.flag-free { background: var(--ok); color: #04130b; border-color: transparent; }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.product-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.product-body h3 a { color: var(--text); text-decoration: none; }
.product-body h3 a:hover { color: var(--accent-hover); }
.product-body > p { margin: 0 0 14px; color: #c9d2ea; }
.product-category { font-size: 0.75rem; font-weight: 800; color: var(--accent-hover) !important; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px !important; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.price { font-size: 1.4rem; font-weight: 900; font-style: italic; }
.price-none { font-size: 0.95rem; font-style: normal; color: var(--muted); font-weight: 700; }
.product-sub { font-size: 0.85rem; margin: 12px 0 0 !important; }
.product-card-planned { background: transparent; border-style: dashed; }
.product-card-planned .product-media img { opacity: 0.6; }

/* Developer Hub promo band */
.hub-band {
  margin-top: 72px; padding: 32px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(500px 240px at 0% 0%, rgb(47 123 255 / 22%), transparent 70%),
    radial-gradient(400px 220px at 100% 100%, rgb(224 53 122 / 14%), transparent 70%),
    var(--surface);
}
.hub-copy p { color: #c9d2ea; }
.hub-copy .trust-list { margin: 16px 0 22px; }
.hub-art img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow), 0 0 40px var(--glow); }

/* ---------- Products page ---------- */
.page-hero {
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(700px 260px at 10% 0%, rgb(47 123 255 / 22%), transparent 70%),
    radial-gradient(500px 220px at 95% 20%, rgb(224 53 122 / 12%), transparent 70%);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: 0.9rem; font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}
a.chip:hover { border-color: var(--accent); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }

.category-section { margin-top: 56px; scroll-margin-top: 130px; }
.category-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 20px; }
.category-head > div { flex: 1; min-width: 200px; }
.category-head h2, .category-head p { margin: 0; }
.category-head img { width: 52px; height: 52px; padding: 10px; border-radius: 12px; background: var(--gradient); box-shadow: 0 0 24px var(--glow); }
#scripts .category-head img { background: linear-gradient(135deg, #8a3dff, #e0357a); }
#tools .category-head img { background: linear-gradient(135deg, #0f8f6f, #20c997); box-shadow: 0 0 24px rgb(32 201 151 / 30%); }
.tag { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); white-space: nowrap; }
.empty-state { display: flex; align-items: center; gap: 18px; padding: 24px; border-radius: var(--radius); border: 1px dashed var(--border-strong); background: rgb(13 19 34 / 50%); }
.empty-state img { width: 44px; height: 44px; opacity: 0.6; }
.empty-state p { margin: 0; color: var(--muted); }
.empty-state strong { color: var(--text); }

/* ---------- Breadcrumb (store -> product page) ---------- */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0 0; padding: 0; font-size: 0.9rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; }
.breadcrumb + .intro { padding-top: 16px; }

/* ---------- Validator ---------- */
.drop-zone {
  background:
    radial-gradient(500px 200px at 0% 0%, rgb(47 123 255 / 14%), transparent 70%),
    var(--surface);
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin: 8px 0 16px;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.drop-zone.drop-active { border-color: var(--accent); box-shadow: 0 0 30px var(--glow); }
.drop-zone p { max-width: 65ch; }
.drop-note { font-size: 0.875rem; color: var(--muted); margin-bottom: 0; }

.status { min-height: 1.6em; font-weight: 500; }
.status-error { color: var(--error); }

.results { margin-top: 8px; }
.results-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.results-header p { margin: 0 0 8px; }

.counts { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.count { font-size: 0.8rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.count-error { background: var(--error-bg); color: var(--error); }
.count-warning { background: var(--warning-bg); color: var(--warning); }
.count-info { background: var(--info-bg); color: var(--info); }
.count-zero { background: var(--surface-2); color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.resource-list { display: grid; gap: 12px; }
.resource { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.resource-summary {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  padding: 14px 16px; cursor: pointer; list-style-position: inside;
}
.resource-name { font-weight: 700; overflow-wrap: anywhere; }
.resource-stats, .resource-clean { margin: 0; padding: 0 16px 14px; color: var(--muted); font-size: 0.9rem; }
.resource-clean { color: var(--ok); }

.findings { list-style: none; margin: 0; padding: 0 16px 16px; display: grid; gap: 10px; }
.finding { border: 1px solid var(--border); border-left-width: 4px; border-radius: 8px; padding: 12px 14px; background: var(--bg-2); }
.finding.sev-error { border-left-color: var(--error); }
.finding.sev-warning { border-left-color: var(--warning); }
.finding.sev-info { border-left-color: var(--info); }
.finding-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.finding-where { font-size: 0.8rem; }
.finding-message { margin: 8px 0 0; overflow-wrap: anywhere; }
.finding-limit { margin: 6px 0 0; font-size: 0.85rem; color: var(--muted); }
.finding-limit-label { font-weight: 600; }

.badge { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 2px 8px; border-radius: 4px; }
.badge-error { background: var(--error-bg); color: var(--error); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-info { background: var(--info-bg); color: var(--info); }

[data-filter="error"] .finding:not(.sev-error),
[data-filter="warning"] .finding:not(.sev-warning),
[data-filter="info"] .finding:not(.sev-info) { display: none; }

.explainer { margin-top: 48px; }
.levels { display: grid; gap: 12px; margin: 0 0 16px; }
.levels div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: baseline; }
.levels dd { margin: 0; }

/* ---------- Docs and legal pages ---------- */
.prose p, .prose li { max-width: 70ch; }
.doc-section { margin-top: 36px; }
.doc-section h3 { margin-top: 24px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; scroll-margin-top: 130px; }
.check h4 { margin: 0 0 4px; font-size: 1rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.check p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.check-id { font-size: 0.75rem; font-weight: 400; color: var(--muted); }
.draft-banner { display: inline-block; margin: 0 0 8px; padding: 6px 12px; border-radius: 6px; background: var(--warning-bg); color: var(--warning); font-weight: 600; font-size: 0.9rem; }
.placeholder { background: var(--warning-bg); color: var(--warning); font-weight: 600; padding: 0 4px; border-radius: 4px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .hub-band { grid-template-columns: 1fr; padding: 22px; }
  .hero-copy { padding-bottom: 40px; }
  .brand-name { font-size: 1rem; }
  .brand-logo { height: 34px; }
}
@media (max-width: 560px) {
  .levels div { grid-template-columns: 1fr; gap: 4px; }
  .results-header .actions { width: 100%; }
  .results-header .button { flex: 1; }
  .actions .button-lg { flex: 1 1 100%; text-align: center; }
  .category-section, .check { scroll-margin-top: 150px; }
}

/* ---------- Report indicators: Passed, Skipped, memory meter ---------- */
.indicators { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.badge-passed { background: rgb(74 222 155 / 15%); color: var(--ok); }
.badge-skipped { background: var(--surface-2); color: var(--muted); border: 1px dashed var(--border-strong); }
.finding.is-skipped { border-left-color: var(--muted); border-left-style: dashed; }

.meter { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.meter-bars { display: inline-flex; gap: 2px; }
.meter-bar { width: 10px; height: 12px; border-radius: 2px; background: var(--surface-2); border: 1px solid var(--border-strong); transform: skewX(-12deg); }
.meter-light { color: var(--ok); }
.meter-heavy { color: var(--warning); }
.meter-oversized { color: var(--error); }
.meter-light .meter-bar.lit { background: var(--ok); border-color: var(--ok); }
.meter-heavy .meter-bar.lit { background: var(--warning); border-color: var(--warning); }
.meter-oversized .meter-bar.lit { background: var(--error); border-color: var(--error); }
.levels-meter div { grid-template-columns: 150px 1fr; }
.explainer h3 { margin-top: 28px; }

/* ---------- Server Log Explainer ---------- */
.field-label { display: block; margin: 18px 0 6px; font-weight: 700; font-size: 0.9rem; }
.log-text {
  width: 100%; min-height: 160px; resize: vertical;
  padding: 12px; border-radius: 10px;
  font: 0.85rem/1.5 var(--mono);
  color: var(--text); background: var(--bg-2);
  border: 1px solid var(--border-strong);
}
.log-text:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.drop-zone .log-text + .actions { margin-top: 12px; }
.log-findings { padding: 0; }
.seen-count { font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.finding-fix { margin: 8px 0 0; }
.log-line { font-size: 0.78rem; overflow-wrap: anywhere; }

/* ---------- Simple report: fix-first box, folding, "Why?" ---------- */
.fix-first {
  margin: 0 0 20px; padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid rgb(255 138 128 / 35%);
  background: linear-gradient(180deg, rgb(58 22 19 / 55%), var(--surface));
}
.fix-first h3 { margin: 0 0 10px; font-size: 1.15rem; font-weight: 900; font-style: italic; text-transform: uppercase; }
.fix-first-list { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.fix-first-list li::marker { color: var(--error); font-weight: 800; }
.fix-first-head { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.fix-first-where { font-size: 0.8rem; font-weight: 700; color: var(--muted); padding: 1px 8px; border-radius: 999px; background: var(--surface-2); }
.fix-first-message { margin: 2px 0 0; color: #c9d2ea; overflow-wrap: anywhere; }
.fix-first > p:last-child { margin: 10px 0 0; }

.why { margin-top: 6px; }
.why > summary, .more-findings > summary { cursor: pointer; color: var(--accent-hover); font-size: 0.85rem; font-weight: 700; width: fit-content; }
.why > p { margin: 6px 0 0; }
.more-findings { padding: 0 16px 14px; }
.more-findings > .findings { padding: 10px 0 0; }

.resource-passed .passed-list { list-style: none; margin: 0; padding: 0 16px 14px; display: grid; gap: 6px; }
.resource-passed .passed-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); }

/* ---------- Readability pass ----------
   Bigger text, brighter secondary text, and normal-case section headings.
   Only the page title (h1) keeps the slanted all-caps brand style. */
:root { --muted: #aeb9d4; }
body { font-size: 17px; line-height: 1.7; }
h2, h3 { font-style: normal; text-transform: none; letter-spacing: 0; }
h2 { font-weight: 800; }
.lead { color: #c3cce3; }
.eyebrow { letter-spacing: 0.1em; }
.finding { padding: 14px 16px; }
.finding-title { font-size: 1.05rem; }
.finding-fix { margin: 6px 0 0; font-size: 1rem; color: var(--text); }
.fix-label { font-weight: 800; color: var(--ok); }
.finding .why { margin-top: 8px; }
.finding .why .finding-message { color: #c9d2ea; }
.badge { font-size: 0.78rem; padding: 3px 9px; }
.count { font-size: 0.85rem; padding: 3px 11px; }
.fix-first h3 { font-style: normal; text-transform: none; font-size: 1.25rem; }
.fix-first-list { gap: 14px; }
.fix-first-head strong { font-size: 1.05rem; }
.resource-summary { padding: 16px 18px; }
.resource-name { font-size: 1.05rem; }

/* ---------- Validator tabs: Vehicle check / Resource check ---------- */
.mode-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.mode-tab {
  font: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border-radius: 12px 12px 0 0;
  border: 1px solid var(--border-strong); border-bottom: none;
  background: var(--bg-2); color: var(--muted);
}
.mode-tab:hover { color: var(--text); }
.mode-tab[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: inset 0 3px 0 var(--accent); }
.mode-tab-name { font-weight: 800; font-size: 1.05rem; }
.mode-tag { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.tag-free { background: rgb(74 222 155 / 15%); color: var(--ok); }
.tag-limited { background: var(--warning-bg); color: var(--warning); }
.mode-tabs + .drop-zone { margin-top: 0; border-top-left-radius: 0; }
.limited-note { font-size: 0.9rem; color: var(--warning); margin-bottom: 0; }

/* Premium tab */
.tag-premium { background: linear-gradient(120deg, #f6c453, #e8a33d); color: #1d1300; }
.premium-list { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 4px; }
.premium-soon { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 4px; }
.flag-premium { background: linear-gradient(120deg, #f6c453, #e8a33d); color: #1d1300; border-color: transparent; }

/* "hidden" must always hide, even on elements styled with display (buttons etc.). */
[hidden] { display: none !important; }
