/* Logo Design Studio — shared styles */
:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --surface-2: #f3f3f0;
  --ink: #1a1a1a;
  --ink-2: #4a4a4a;
  --muted: #888;
  --line: #e5e3dd;
  --line-strong: #d1cfc8;
  --accent: #0f7c80;
  --accent-dark: #0a5a5d;
  --warn: #b45309;
  --fail: #b91c1c;
  --ok: #15803d;
  --star: #d4a017;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 2px 12px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.1);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.12);
  --accent-gradient: linear-gradient(135deg, #0f7c80 0%, #0a9aa0 100%);
  --hero-grad: linear-gradient(135deg, rgba(15,124,128,.08) 0%, rgba(124,58,237,.06) 50%, rgba(249,115,22,.05) 100%);
  --tag-bg: rgba(15,124,128,.08);
  --tag-fg: #0a5a5d;
  font-synthesis: none;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --surface: #1a1a1a;
    --surface-2: #222222;
    --ink: #f0f0f0;
    --ink-2: #c0c0c0;
    --muted: #777;
    --line: #2e2e2e;
    --line-strong: #404040;
    --accent: #4fc3c7;
    --accent-dark: #2fa0a4;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Top nav ===== */
nav.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
  height: 56px;
}
nav.top .brand {
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  white-space: nowrap;
}
nav.top .brand svg { height: 22px; width: auto; vertical-align: middle; margin-right: 6px; }
nav.top .links {
  display: flex; gap: 2px; flex: 1;
  overflow-x: auto; scrollbar-width: none;
}
nav.top .links::-webkit-scrollbar { display: none; }
nav.top .links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-weight: 500;
  font-size: 13px;
  text-decoration: none;
  transition: background .15s, color .15s;
}
nav.top .links a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
nav.top .links a.active { background: var(--surface-2); color: var(--ink); }

/* ===== Hamburger button (desktop hidden) ===== */
nav.top .burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 8px;
  border: none; background: transparent;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}
nav.top .burger .b {
  display: block; width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
nav.top.is-open .burger .b:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.top.is-open .burger .b:nth-child(2) { opacity: 0; }
nav.top.is-open .burger .b:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Mobile nav drawer ===== */
.nav-backdrop {
  display: none;
  position: fixed; inset: 56px 0 0 0;
  background: rgba(0,0,0,.35);
  z-index: 49;
  animation: fadeIn .2s ease;
}
.nav-backdrop.is-open { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateX(-100%); } to { transform: translateX(0); } }

/* ===== Mobile breakpoint ===== */
@media (max-width: 860px) {
  nav.top { padding: 0 14px; gap: 0; }
  nav.top .burger { display: flex; }

  nav.top .links {
    position: fixed;
    top: 56px; left: 0; bottom: 0;
    width: 82%; max-width: 320px;
    background: var(--surface);
    border-right: 1px solid var(--line);
    flex-direction: column;
    padding: 14px 12px;
    gap: 2px;
    transform: translateX(-100%);
    transition: transform .25s cubic-bezier(.4,0,.2,1);
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
  }
  nav.top .links a {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
  }
  nav.top.is-open .links { transform: translateX(0); }
  body.is-locked { overflow: hidden; }
}

/* ===== Main container ===== */
main { flex: 1; padding: 32px 24px; max-width: 1400px; width: 100%; margin: 0 auto; }

/* ===== Rich homepage hero ===== */
.hp-hero {
  position: relative;
  padding: 64px 32px 56px;
  margin: -32px -24px 0;
  background: var(--hero-grad), var(--bg);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hp-hero::before {
  content: '';
  position: absolute; top: -120px; right: -80px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(15,124,128,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hp-hero::after {
  content: '';
  position: absolute; bottom: -160px; left: 10%;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(124,58,237,.10) 0%, transparent 70%);
  pointer-events: none;
}
.hp-hero .hero-inner {
  position: relative; z-index: 2;
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.hp-hero h1 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  margin: 0 0 16px;
  letter-spacing: -.035em;
  font-weight: 800;
}
.hp-hero h1 .grad {
  background: var(--accent-gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hp-hero .lede {
  font-size: 17px; color: var(--ink-2); line-height: 1.6;
  max-width: 560px; margin: 0 0 28px;
}
.hp-hero .hp-cta-row {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px;
}
.hp-hero .btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  background: var(--accent-gradient);
  color: #fff; font-weight: 600; font-size: 14px;
  border-radius: var(--radius);
  border: none;
  box-shadow: 0 4px 16px rgba(15,124,128,.28);
  cursor: pointer; text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.hp-hero .btn-primary:hover {
  text-decoration: none; transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15,124,128,.38);
}
.hp-hero .btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  background: var(--surface);
  color: var(--ink); font-weight: 600; font-size: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  text-decoration: none; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.hp-hero .btn-secondary:hover {
  text-decoration: none; border-color: var(--accent); color: var(--accent);
}
.hp-hero .hp-stats {
  display: flex; gap: 28px; flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hp-hero .hp-stat .n {
  font-size: 26px; font-weight: 800; letter-spacing: -.02em;
}
.hp-hero .hp-stat .l {
  font-size: 12px; color: var(--muted); text-transform: uppercase;
  letter-spacing: .06em; font-weight: 500;
}

/* Hero visual — right column, mockup */
.hp-visual {
  position: relative;
  display: flex; justify-content: center; align-items: center;
}
.hp-visual .mockup {
  width: 100%; max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.hp-visual .mockup-bar {
  height: 34px; display: flex; align-items: center; gap: 6px;
  padding: 0 12px; background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.hp-visual .mockup-bar .d { width: 10px; height: 10px; border-radius: 50%; background: #e55; }
.hp-visual .mockup-bar .d:nth-child(2) { background: #ec3; }
.hp-visual .mockup-bar .d:nth-child(3) { background: #6b6; }
.hp-visual .mockup-body {
  padding: 20px; display: flex; flex-direction: column; gap: 16px;
}
.hp-visual .mockup-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.hp-visual .mockup-swatch { height: 26px; border-radius: 4px; border: 1px solid rgba(0,0,0,.06); }
.hp-visual .mockup-logo {
  height: 120px; background: repeating-conic-gradient(#f0f0f0 0% 25%, #fff 0% 50%) 50% / 12px 12px;
  border-radius: 6px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 22px; letter-spacing: -.02em;
  color: var(--accent);
}
.hp-visual .mockup-score {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-radius: 6px;
  background: rgba(21,128,61,.08); border: 1px solid rgba(21,128,61,.25);
  font-size: 13px;
}
.hp-visual .mockup-score .score-val { font-weight: 700; color: var(--ok); font-size: 18px; }
.hp-visual .mockup-tag {
  position: absolute; top: -10px; right: -10px;
  background: var(--accent-gradient);
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 6px 12px; border-radius: 20px;
  box-shadow: var(--shadow);
}

/* ===== Section headings on homepage ===== */
.hp-section { padding: 48px 0; }
.hp-section + .hp-section { border-top: 1px solid var(--line); }
.hp-section-label {
  font-size: 12px; font-weight: 700;
  color: var(--accent); text-transform: uppercase; letter-spacing: .1em;
  margin: 0 0 8px;
}
.hp-section h2 {
  font-size: clamp(22px, 2.8vw, 32px);
  letter-spacing: -.02em; margin: 0 0 8px;
  font-weight: 800;
}
.hp-section .hp-section-lede {
  color: var(--ink-2); max-width: 680px; margin: 0; font-size: 15px;
}

/* ===== Who it's for — audience cards ===== */
.audience-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px;
  margin-top: 24px;
}
.aud-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.aud-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.aud-card .aud-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--tag-bg); color: var(--tag-fg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.aud-card h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.aud-card p { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 1.55; }

/* ===== Tool showcase — upgrade existing cards ===== */
.tool-showcase { margin-top: 24px; }
.tool-showcase-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;
}
.tool-showcase-head h3 { margin: 0; font-size: 14px; color: var(--ink); font-weight: 700; }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.tool-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex; flex-direction: column; gap: 8px;
  text-decoration: none; color: inherit;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  position: relative; overflow: hidden;
}
.tool-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,124,128,.04) 0%, transparent 50%);
  opacity: 0; transition: opacity .2s; pointer-events: none;
}
.tool-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg); text-decoration: none;
}
.tool-card:hover::after { opacity: 1; }
.tool-card .icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--tag-bg); color: var(--tag-fg);
  display: flex; align-items: center; justify-content: center;
}
.tool-card h3 { margin: 0; font-size: 15px; font-weight: 700; }
.tool-card p { margin: 0; color: var(--ink-2); font-size: 13px; }
.tool-card .arrow {
  margin-top: 6px; color: var(--accent); font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
}

/* ===== How it works — 4-step flow ===== */
.how-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px;
}
.how-step {
  position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px;
}
.how-step .step-num {
  font-size: 28px; font-weight: 800; letter-spacing: -.03em;
  color: var(--accent); line-height: 1;
  margin-bottom: 4px;
}
.how-step h4 { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.how-step p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.how-step .step-link {
  display: inline-block; margin-top: 10px;
  font-size: 12px; font-weight: 600; color: var(--accent);
}
.how-step + .how-step::before {
  content: '→';
  position: absolute; left: -14px; top: 50%; transform: translateY(-50%);
  font-size: 16px; color: var(--muted); font-weight: 700;
}

/* ===== Stats bar ===== */
.stats-bar {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px 28px; margin-top: 32px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.stats-bar .sb-item { text-align: center; }
.stats-bar .sb-item .sb-num {
  font-size: 28px; font-weight: 800; letter-spacing: -.02em;
}
.stats-bar .sb-item .sb-lbl {
  font-size: 11px; color: var(--muted); text-transform: uppercase;
  letter-spacing: .08em; font-weight: 600; margin-top: 4px;
}

/* ===== Rich footer ===== */
footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.footer-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 36px 24px 24px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
}
.footer-inner h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin: 0 0 14px; font-weight: 600;
}
.footer-inner p {
  font-size: 13px; color: var(--ink-2); margin: 0; line-height: 1.6;
}
.footer-inner ul { list-style: none; padding: 0; margin: 0; }
.footer-inner ul li { margin-bottom: 8px; }
.footer-inner ul li a {
  font-size: 13px; color: var(--ink-2); text-decoration: none;
}
.footer-inner ul li a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 16px 24px;
  max-width: 1400px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--muted);
}
.footer-bottom .legal { max-width: 60%; }

/* ===== Page headings ===== */
.page-header { margin-bottom: 20px; }
.page-header h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.01em; }
.page-header p { margin: 0; color: var(--ink-2); font-size: 13px; }

/* ===== Filters bar ===== */
.filters {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}
.filters input[type="text"],
.filters select {
  font: inherit;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  min-width: 160px;
}
.filters input[type="text"] { min-width: 220px; flex: 1; max-width: 360px; }
.filters input:focus, .filters select:focus { outline: none; border-color: var(--accent); }
.filters label {
  display: flex; gap: 6px; align-items: center;
  color: var(--ink-2); font-size: 13px;
}
.filters button {
  font: inherit;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.filters button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.filters button.primary {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.filters button.primary:hover:not(:disabled) {
  background: var(--accent-dark); color: #fff; border-color: var(--accent-dark);
}
.filters .count { color: var(--muted); font-size: 13px; margin-left: auto; }

/* ===== Library grid ===== */
.lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.lib-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  display: flex; flex-direction: column; gap: 6px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.lib-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.lib-card .thumb {
  height: 110px;
  background: #fff;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
}
.lib-card .thumb img, .lib-card .thumb svg { max-width: 92%; max-height: 92%; }
.lib-card .name { font-weight: 600; font-size: 13px; word-break: break-all; }
.lib-card .meta { font-size: 11px; color: var(--muted); line-height: 1.4; }
.lib-card .star { color: var(--star); }

/* ===== Modal ===== */
.modal-bg {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-bg.open { display: flex; }
.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 680px; width: 100%;
  max-height: 85vh; overflow: auto;
}
.modal .m-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: var(--surface);
  z-index: 2;
}
.modal .m-head h3 { margin: 0; font-size: 16px; }
.modal .m-close {
  border: none; background: transparent; font-size: 20px; cursor: pointer; color: var(--muted);
  padding: 4px 8px; border-radius: var(--radius-sm);
}
.modal .m-close:hover { background: var(--surface-2); color: var(--ink); }
.modal .m-body { padding: 20px; }
.modal .m-preview {
  background: repeating-conic-gradient(#f0f0f0 0% 25%, #fff 0% 50%) 50% / 16px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex; align-items: center; justify-content: center;
  min-height: 200px;
  margin-bottom: 16px;
}
.modal .m-preview img, .modal .m-preview svg { max-width: 100%; max-height: 260px; }
.modal dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 6px 14px;
  margin: 0;
}
.modal dt { color: var(--muted); font-size: 13px; }
.modal dd { margin: 0; font-size: 13px; }
.modal .m-actions {
  display: flex; gap: 10px; margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ===== Upload area ===== */
.uploader {
  background: var(--surface);
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.uploader:hover, .uploader.drag { border-color: var(--accent); background: rgba(15,124,128,.04); }
.uploader svg { margin-bottom: 10px; color: var(--accent); }
.uploader .hint { font-size: 12px; margin-top: 6px; }

/* ===== Audit results ===== */
.score-big {
  font-size: 56px; font-weight: 700;
  text-align: center;
  letter-spacing: -.03em;
}
.score-big.ok { color: var(--ok); }
.score-big.warn { color: var(--warn); }
.score-big.fail { color: var(--fail); }

.finding {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border-left: 3px solid;
  margin-bottom: 6px;
  font-size: 13px;
}
.finding.FAIL { border-color: var(--fail); background: rgba(185,28,28,.08); }
.finding.WARN { border-color: var(--warn); background: rgba(180,83,9,.08); }
.finding.INFO { border-color: var(--accent); background: rgba(15,124,128,.08); }
.finding .f-code { font-weight: 600; font-family: monospace; margin-right: 8px; }
.finding .f-level {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  padding: 1px 6px; border-radius: 3px; margin-right: 8px;
}
.finding.FAIL .f-level { background: var(--fail); color: #fff; }
.finding.WARN .f-level { background: var(--warn); color: #fff; }
.finding.INFO .f-level { background: var(--accent); color: #fff; }

.info-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px;
  margin-bottom: 20px;
}
.info-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px;
}
.info-item .label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.info-item .value { font-size: 16px; font-weight: 600; margin-top: 2px; }

/* ===== Preview test sheet ===== */
.test-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.test-cell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.test-cell .tc-label {
  padding: 6px 10px;
  font-size: 11px; color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  background: var(--surface-2);
}
.test-cell .tc-body {
  padding: 20px;
  display: flex; align-items: center; justify-content: center;
  min-height: 120px;
}
.bg-white { background: #fff; }
.bg-black { background: #000; }
.bg-gray { background: #555; }

/* ===== Control row on audit/preview/variants ===== */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.panel h3 { margin: 0 0 10px; font-size: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

button.primary {
  font: inherit; font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--accent); color: #fff;
  cursor: pointer;
}
button.primary:hover { background: var(--accent-dark); }
button.primary:disabled { opacity: .5; cursor: default; }

/* ===== Variants cards ===== */
.var-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px;
}
.var-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.var-card .vc-label {
  padding: 8px 12px; font-size: 12px; font-weight: 600;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.var-card .vc-body {
  padding: 20px; display: flex; align-items: center; justify-content: center;
  min-height: 140px;
}
.var-card .vc-actions {
  padding: 10px 12px; border-top: 1px solid var(--line);
  display: flex; gap: 6px;
}

/* ===== Empty state ===== */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

/* ===== Two-column layout ===== */
.cols-2 { display: grid; grid-template-columns: 320px 1fr; gap: 20px; align-items: start; }

/* ===== Color palettes ===== */
.palette-row {
  display: flex; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); margin: 10px 0;
}
.palette-row .swatch {
  flex: 1; padding: 22px 14px; text-align: center;
  min-width: 60px; display: flex; flex-direction: column; gap: 4px;
  cursor: pointer; transition: transform .15s;
}
.palette-row .swatch:hover { transform: scale(1.04); z-index: 2; box-shadow: var(--shadow); }
.palette-row .swatch .hex {
  font-size: 11px; font-family: ui-monospace, Menlo, monospace;
  padding: 2px 6px; border-radius: 3px; align-self: center;
  background: rgba(0,0,0,.12); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.palette-row .swatch .name {
  font-size: 11px; color: rgba(0,0,0,.55); font-weight: 600;
}
.palette-label { font-size: 13px; font-weight: 600; margin: 14px 0 4px; color: var(--ink); }
.palette-label small { color: var(--muted); font-weight: 400; margin-left: 8px; }

.contrast-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.contrast-chip {
  display: inline-flex; gap: 6px; align-items: center;
  padding: 4px 10px; border-radius: 20px; font-size: 12px; border: 1px solid var(--line);
}
.contrast-chip .dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line); }
.contrast-chip.good { border-color: var(--ok); background: rgba(21,128,61,.08); }
.contrast-chip.ok { border-color: var(--accent); }
.contrast-chip.bad { border-color: var(--fail); background: rgba(185,28,28,.08); }

/* ===== Shelf test ===== */
.shelf {
  background: linear-gradient(180deg, #f9f8f5, #efece3);
  border-radius: var(--radius-lg);
  padding: 28px 24px 32px;
  border: 1px solid var(--line);
}
.shelf h3 { margin: 0 0 6px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.shelf-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 14px;
  align-items: end;
  padding-bottom: 16px;
  border-bottom: 2px solid #c4bfa8;
}
.shelf-item {
  text-align: center; display: flex; flex-direction: column; gap: 6px;
}
.shelf-item .thumb {
  background: #fff; border: 1px solid var(--line-strong); border-radius: 8px;
  height: 80px; display: flex; align-items: center; justify-content: center;
  padding: 8px;
}
.shelf-item .thumb img, .shelf-item .thumb svg { max-width: 92%; max-height: 92%; }
.shelf-item .brand { font-size: 11px; color: var(--ink-2); font-weight: 500; }
.shelf-item.you .thumb { border: 2px solid var(--accent); box-shadow: 0 0 0 2px rgba(15,124,128,.15); }
.shelf-item.you .brand { color: var(--accent); font-weight: 700; }

/* ===== Mark types ===== */
.mark-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.mark-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
}
.mark-card .mc-head {
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.mark-card .mc-head h3 { margin: 0; font-size: 15px; }
.mark-card .mc-head .chip {
  font-size: 11px; padding: 2px 8px; border-radius: 20px;
  background: var(--surface-2); color: var(--ink-2);
}
.mark-card .mc-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.mark-card .mc-body p { margin: 0; font-size: 13px; color: var(--ink-2); }
.mark-card .mc-body ul { margin: 0; padding-left: 18px; font-size: 12px; color: var(--ink-2); }
.mark-card .mc-body li { margin-bottom: 3px; }
.mark-card .mc-examples {
  display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line);
  background: var(--surface-2); overflow-x: auto;
}
.mark-card .mc-examples .ex {
  flex-shrink: 0; width: 70px; height: 70px; background: #fff; border-radius: 6px;
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
}
.mark-card .mc-examples .ex img, .mark-card .mc-examples .ex svg { max-width: 92%; max-height: 92%; }

/* ===== Brief builder ===== */
.brief-form .field { margin-bottom: 14px; }
.brief-form label {
  display: block; font-size: 12px; font-weight: 600; color: var(--ink-2);
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px;
}
.brief-form input[type="text"],
.brief-form input[type="url"],
.brief-form textarea,
.brief-form select {
  width: 100%; font: inherit; padding: 10px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink);
}
.brief-form textarea { min-height: 80px; resize: vertical; }
.brief-form input:focus, .brief-form textarea:focus, .brief-form select:focus { outline: none; border-color: var(--accent); }
.adjective-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.adjective-chips .chip {
  padding: 4px 12px; font-size: 12px; border-radius: 20px;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line-strong);
  cursor: pointer; user-select: none;
}
.adjective-chips .chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }

.brief-preview {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; font-family: ui-serif, Georgia, serif;
  max-height: 500px; overflow-y: auto; white-space: pre-wrap; font-size: 13px;
}

/* ===== Article / legal pages ===== */
.article-wrap { max-width: 820px; margin: 0 auto; }
.article-hero {
  padding: 48px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 32px;
}
.article-hero h1 { font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -.02em; margin: 0 0 8px; font-weight: 800; }
.article-hero .sub { font-size: 16px; color: var(--ink-2); margin: 0; }
.article-hero .meta { font-size: 12px; color: var(--muted); margin-top: 10px; }
.article-body { font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.article-body h2 {
  font-size: 20px; font-weight: 700; color: var(--ink);
  margin: 36px 0 10px; letter-spacing: -.01em;
}
.article-body h3 {
  font-size: 16px; font-weight: 700; color: var(--ink);
  margin: 22px 0 8px;
}
.article-body p { margin: 0 0 14px; }
.article-body ul, .article-body ol { margin: 0 0 14px; padding-left: 22px; }
.article-body li { margin-bottom: 4px; }
.article-body strong { color: var(--ink); }
.article-body a { color: var(--accent); }
.article-body code {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px;
  background: var(--surface-2); padding: 1px 6px; border-radius: 3px;
}
.article-body blockquote {
  border-left: 3px solid var(--accent); padding: 4px 14px; margin: 14px 0;
  color: var(--ink-2); font-style: italic;
  background: rgba(15,124,128,.04); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.article-body table {
  width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px;
}
.article-body th, .article-body td {
  border: 1px solid var(--line); padding: 8px 12px; text-align: left;
}
.article-body th { background: var(--surface-2); font-weight: 600; color: var(--ink); }
.article-cta {
  margin-top: 36px; padding: 20px 24px;
  background: var(--tag-bg); border: 1px solid rgba(15,124,128,.18);
  border-radius: var(--radius); text-align: center;
}
.article-cta a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; background: var(--accent-gradient); color: #fff;
  border-radius: var(--radius); font-weight: 600; text-decoration: none;
  margin-top: 8px;
}

/* ===== Contact form ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px;
}
.contact-card h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.contact-card p { margin: 0 0 14px; color: var(--ink-2); font-size: 13px; line-height: 1.6; }
.contact-card .cc-addr { display:flex; gap:8px; align-items:center; font-size:13px; color:var(--ink); margin-bottom:6px; }
.contact-card .cc-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--tag-bg); color: var(--tag-fg);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-card form { display:flex; flex-direction: column; gap: 12px; }
.contact-card form label { font-size: 11px; text-transform: uppercase; letter-spacing:.08em; font-weight:700; color:var(--muted); }
.contact-card form input, .contact-card form textarea {
  font: inherit; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink);
}
.contact-card form textarea { min-height: 100px; resize: vertical; }
.contact-card form input:focus, .contact-card form textarea:focus { outline: none; border-color: var(--accent); }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .cols-2 { grid-template-columns: 1fr; }
  main { padding: 20px 14px; }
  .hp-hero { padding: 40px 20px 36px; margin: -20px -14px 0; }
  .hp-hero .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hp-hero h1 { font-size: 32px; }
  .hp-hero .lede { font-size: 15px; }
  .hp-section { padding: 36px 0; }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .how-step + .how-step::before { display: none; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .footer-bottom .legal { max-width: 100%; }
}
