/* EduTray core stylesheet — original design. No frameworks. */

/* ============ Tokens ============ */
:root,
html[data-theme="dark"] {
  --bg: #0b0e14;
  --bg-soft: #0e1320;
  --panel: #131a2b;
  --panel-2: #182136;
  --border: #243049;
  --border-soft: #1b2440;
  --text: #e9edf5;
  --muted: #98a2b8;
  --faint: #6b7690;
  --accent: #2dd4bf;
  --accent-soft: rgba(45, 212, 191, 0.12);
  --accent-ink: #052e29;
  --accent-text: #5eead4;
  --danger: #f87171;
  --warn: #fbbf24;
  --ok: #34d399;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --radius-sm: 9px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

html[data-theme="light"] {
  --bg: #f4f6fa;
  --bg-soft: #eceff5;
  --panel: #ffffff;
  --panel-2: #f7f9fc;
  --border: #dbe1ec;
  --border-soft: #e8edf5;
  --text: #131a28;
  --muted: #5b6577;
  --faint: #8a94a8;
  --accent: #0d9488;
  --accent-soft: rgba(13, 148, 136, 0.1);
  --accent-ink: #ffffff;
  --accent-text: #0d9488;
  --shadow: 0 14px 40px rgba(30, 45, 70, 0.12);
}

/* ============ Base ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: inline-block; vertical-align: middle; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.01em; }
.display, .section-head h2, .cta-band h2, .prose h1, .prose h2,
.blog-card h2, .tool-head h1, .bf-card h3 { font-family: var(--font-display); font-weight: 700; }
p { margin: 0 0 1em; }
::selection { background: var(--accent); color: var(--accent-ink); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 22px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 200; font-weight: 700;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.mono { font-family: var(--mono); font-size: 0.92em; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.header-in { display: flex; align-items: center; gap: 26px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), #0ea5e9); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.brand-mark svg { width: 20px; height: 20px; stroke: #fff; }
.main-nav { display: flex; gap: 4px; margin-left: 8px; }
.main-nav a { color: var(--muted); font-weight: 600; font-size: 0.95rem; padding: 8px 12px; border-radius: 8px; }
.main-nav a:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--text); background: var(--panel-2); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.search-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--border); color: var(--muted);
  border-radius: 10px; padding: 8px 12px; font-size: 0.9rem; cursor: pointer; font-family: inherit;
}
.search-btn:hover { border-color: var(--accent); color: var(--text); }
.search-btn svg { width: 16px; height: 16px; }
kbd {
  font-family: var(--mono); font-size: 0.72rem; background: var(--panel-2);
  border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; color: var(--muted);
}
.icon-btn {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { color: var(--text); border-color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .icon-moon { display: none; }
html[data-theme="light"] .icon-btn .icon-sun { display: none; }
html[data-theme="light"] .icon-btn .icon-moon { display: block; }
.nav-toggle { display: none; }
.mobile-nav { display: none; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 1rem; font-family: inherit;
  padding: 12px 22px; border-radius: 12px; border: 1px solid transparent; cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { filter: brightness(1.08); }
.btn--ghost { background: var(--panel); border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); }
.btn--lg { padding: 15px 28px; font-size: 1.05rem; }
.btn--sm { padding: 8px 14px; font-size: 0.88rem; border-radius: 9px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============ Hero ============ */
.hero { padding: 84px 0 60px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 560px; pointer-events: none;
  background: radial-gradient(600px 300px at 30% 20%, var(--accent-soft), transparent 70%);
}
.hero__inner { position: relative; max-width: 780px; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 14px;
}
.display { font-size: clamp(2.4rem, 5.4vw, 3.9rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 18px; }
.display em { font-style: normal; color: var(--accent-text); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; color: var(--muted); font-size: 0.95rem; }
.hero__facts li { display: flex; align-items: center; gap: 8px; }
.hero__facts svg { width: 17px; height: 17px; color: var(--ok); }

/* ============ Sections ============ */
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section-head { max-width: 720px; margin-bottom: 38px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; }
.section-head h2 em { font-style: normal; color: var(--accent-text); }

/* ============ Shelf grid (categories) ============ */
.shelf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.shelf {
  background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 6px; transition: transform 0.15s ease, border-color 0.15s ease;
}
.shelf:hover { transform: translateY(-3px); border-color: var(--hue, var(--accent)); }
.shelf__top { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.tile {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--hue, var(--accent)) 16%, transparent);
  color: var(--hue, var(--accent-text));
}
.tile svg { width: 22px; height: 22px; }
.shelf h3 { margin: 0; font-size: 1.2rem; }
.shelf__blurb { color: var(--muted); font-size: 0.95rem; margin: 0 0 10px; }
.shelf__tools { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.shelf__tools a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text); font-weight: 600; font-size: 0.95rem; }
.shelf__tools a:hover { background: var(--panel-2); text-decoration: none; }
.shelf__tools svg { width: 17px; height: 17px; color: var(--hue, var(--accent-text)); flex: none; }

/* ============ Principles ============ */
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.principle { background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 26px; }
.principle h3 { font-size: 1.15rem; margin: 14px 0 8px; }
.principle p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* ============ FAQ ============ */
.faq { display: grid; gap: 12px; }
.faq--narrow { max-width: 780px; }
.faq details { background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 0; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { position: relative; width: 16px; height: 16px; flex: none; color: var(--accent-text); }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; }
.faq summary .plus::before { left: 0; top: 7px; width: 16px; height: 2px; }
.faq summary .plus::after { left: 7px; top: 0; width: 2px; height: 16px; transition: transform 0.15s ease; }
.faq details[open] summary .plus::after { transform: scaleY(0); }
.faq__body { padding: 0 22px 20px; color: var(--muted); }
.faq__body p:last-child { margin-bottom: 0; }

/* ============ CTA band ============ */
.cta-band {
  background: linear-gradient(135deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border); border-radius: 20px; padding: clamp(34px, 5vw, 60px);
  text-align: center; position: relative; overflow: hidden;
}
.cta-band::before { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 300px; background: radial-gradient(500px 200px at 50% 100%, var(--accent-soft), transparent 70%); pointer-events: none; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; position: relative; }
.cta-band h2 em { font-style: normal; color: var(--accent-text); }
.cta-band .lede { margin: 0 auto 28px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; position: relative; }

/* ============ Tool pages ============ */
.crumbs { font-size: 0.88rem; color: var(--faint); margin: 26px 0 6px; }
.crumbs a { color: var(--muted); }
.tool-head { margin: 8px 0 28px; max-width: 760px; }
.tool-head h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -0.02em; }
.tool-head .lede { font-size: 1.08rem; }
.tool-layout { display: grid; grid-template-columns: 360px 1fr; gap: 20px; align-items: start; margin-bottom: 40px; }
.panel { background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 24px; }
.panel h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 18px; }
.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field label, .field .label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 8px; }
.field .hint { font-size: 0.85rem; color: var(--faint); margin-top: 6px; }
input[type="text"], input[type="number"], input[type="email"], select, textarea {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-sm); padding: 10px 12px; font-size: 0.95rem; font-family: inherit;
}
textarea { min-height: 150px; resize: vertical; font-family: var(--mono); font-size: 0.88rem; line-height: 1.6; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
input[type="color"] { width: 64px; height: 44px; padding: 2px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-soft); cursor: pointer; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 17px; height: 17px; }
.check-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 0.95rem; cursor: pointer; }
.check-row input { flex: none; }
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row output { font-family: var(--mono); font-weight: 700; min-width: 52px; text-align: right; color: var(--accent-text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.output-box {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 18px; font-family: var(--mono); font-size: 0.92rem; line-height: 1.7;
  word-break: break-all; min-height: 80px; position: relative;
}
.output-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 600;
  background: var(--panel-2); border: 1px solid var(--border); color: var(--muted);
  padding: 5px 11px; border-radius: 999px;
}
.chip--ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.chip--warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.chip--bad { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 16px 0; }
.stat { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; text-align: center; }
.stat b { display: block; font-size: 1.5rem; font-weight: 800; color: var(--accent-text); }
.stat span { font-size: 0.8rem; color: var(--muted); }
.tool-notes { max-width: 860px; }
.tool-notes h2 { font-size: 1.4rem; margin-top: 34px; }
.tool-notes p, .tool-notes li { color: var(--muted); }
.tool-notes ul { padding-left: 22px; }
.dropzone {
  border: 2px dashed var(--border); border-radius: var(--radius); padding: 34px 20px; text-align: center;
  color: var(--muted); cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone:hover, .dropzone--over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone svg { width: 34px; height: 34px; margin-bottom: 10px; color: var(--accent-text); }
.preview-img { max-width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.swatch-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.swatch { width: 64px; height: 64px; border-radius: 12px; border: 1px solid var(--border); cursor: pointer; position: relative; }
.swatch:hover::after { content: attr(data-hex); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); background: var(--text); color: var(--bg); font-size: 0.72rem; font-family: var(--mono); padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.notice { border: 1px solid var(--border); border-left: 4px solid var(--accent); background: var(--panel-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 18px; margin: 18px 0; font-size: 0.95rem; color: var(--muted); }
.notice--warn { border-left-color: var(--warn); }
.notice--bad { border-left-color: var(--danger); }

/* ============ Tables ============ */
.table-wrap { overflow-x: auto; border: 1px solid var(--border-soft); border-radius: var(--radius); }
table.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border-soft); }
.table thead th { background: var(--panel-2); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: none; }

/* ============ Prose pages ============ */
.prose { max-width: 780px; padding: 20px 0 60px; }
.prose h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -0.02em; margin: 26px 0 18px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2em; }
.prose p, .prose li { color: var(--muted); }
.prose ul, .prose ol { padding-left: 24px; }
.prose a { color: var(--accent-text); }
.blog-list { display: grid; gap: 18px; margin-top: 30px; }
.blog-card { background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 26px; display: block; color: var(--text); }
.blog-card:hover { text-decoration: none; border-color: var(--accent); }
.blog-card__meta { display: flex; gap: 12px; align-items: center; font-size: 0.85rem; color: var(--faint); margin-bottom: 10px; }
.blog-card h2 { margin: 0 0 8px; font-size: 1.35rem; color: var(--text); }
.blog-card p { margin: 0; font-size: 0.97rem; }

/* ============ Footer ============ */
.site-footer { border-top: 1px solid var(--border-soft); margin-top: 40px; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 52px 0 36px; }
.footer-brand p { color: var(--muted); font-size: 0.95rem; max-width: 300px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--muted); font-size: 0.95rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; padding: 20px 0; border-top: 1px solid var(--border-soft); color: var(--faint); font-size: 0.88rem; }

/* ============ Search palette ============ */
.palette { position: fixed; inset: 0; z-index: 300; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 18px 18px; }
.palette[hidden] { display: none; }
.palette-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(3px); }
.palette-panel { position: relative; width: 100%; max-width: 600px; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.palette-search { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border-soft); }
.palette-search svg { width: 20px; height: 20px; color: var(--faint); flex: none; }
.palette-search input { flex: 1; background: none; border: none; color: var(--text); font-size: 1.05rem; font-family: inherit; padding: 0; }
.palette-search input:focus { outline: none; }
.palette-list { list-style: none; margin: 0; padding: 8px; max-height: 340px; overflow-y: auto; }
.palette-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text); }
.palette-list a:hover, .palette-list a.active { background: var(--panel-2); text-decoration: none; }
.palette-list .tile { width: 34px; height: 34px; border-radius: 9px; }
.palette-list .tile svg { width: 18px; height: 18px; }
.palette-list small { display: block; color: var(--faint); font-size: 0.82rem; }
.palette-empty { padding: 26px; text-align: center; color: var(--faint); }
.palette-foot { display: flex; gap: 18px; padding: 12px 18px; border-top: 1px solid var(--border-soft); color: var(--faint); font-size: 0.82rem; }

/* ============ Featured tools bento ============ */
.bf-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.bf-card {
  position: relative; background: var(--panel); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 26px; grid-column: span 2;
  display: flex; flex-direction: column; transition: transform 0.15s ease, border-color 0.15s ease;
}
.bf-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.bf-card--wide { grid-column: span 3; }
.bf-card--full { grid-column: span 6; flex-direction: row; align-items: center; gap: 26px; flex-wrap: wrap; }
.bf-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.bf-card h3 { font-size: 1.35rem; margin: 0 0 8px; }
.bf-card p { color: var(--muted); font-size: 0.95rem; margin: 0 0 16px; }
.bf-card__link { margin-top: auto; font-weight: 700; color: var(--accent-text); display: inline-flex; align-items: center; gap: 6px; padding-top: 8px; }
.bf-card__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.bf-card__link:hover { text-decoration: none; }
.demo { margin: 4px 0 8px; }
.demo-pw { font-family: var(--mono); font-size: 0.95rem; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; word-break: break-all; }
.demo-meter { height: 7px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 99px; margin-top: 12px; overflow: hidden; }
.demo-meter i { display: block; height: 100%; width: 94%; background: linear-gradient(90deg, var(--ok), var(--accent)); border-radius: 99px; }
.demo-meter__label { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--faint); margin-top: 6px; }
.demo-photo { height: 120px; border-radius: 10px; border: 1px solid var(--border); background: linear-gradient(135deg, #60a5fa 0%, #c084fc 55%, #f472b6 100%); position: relative; overflow: hidden; }
.demo-photo__tags { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-between; }
.demo-photo__tags span { font-size: 0.72rem; font-weight: 700; background: rgba(0,0,0,0.55); color: #fff; padding: 3px 9px; border-radius: 99px; }
.demo-swatches { display: flex; gap: 10px; }
.demo-swatches i { width: 52px; height: 52px; border-radius: 12px; border: 1px solid var(--border); }
.demo-readout { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); margin-top: 10px; }
.demo-readout b { color: var(--text); font-size: 1rem; }
.demo-code { font-family: var(--mono); font-size: 0.8rem; line-height: 1.7; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; }
.demo-diff { font-family: var(--mono); font-size: 0.8rem; line-height: 1.8; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px; padding: 10px 0; overflow: hidden; }
.demo-diff span { display: block; padding: 2px 14px; white-space: pre-wrap; word-break: break-all; }
.d-add { background: rgba(52, 211, 153, 0.13); }
.d-del { background: rgba(248, 113, 113, 0.13); }
.d-ctx { color: var(--faint); }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .tool-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .bf-card, .bf-card--wide { grid-column: span 3; }
  .bf-card--full { grid-column: span 6; }
}
@media (max-width: 760px) {
  .main-nav { display: none; }
  .search-btn span, .search-btn kbd { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav { display: block; border-top: 1px solid var(--border-soft); padding: 10px 22px 18px; }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav a { display: block; padding: 11px 4px; color: var(--text); font-weight: 600; border-bottom: 1px solid var(--border-soft); }
  .mobile-nav a:last-child { border-bottom: none; }
  .mobile-nav a:hover { text-decoration: none; color: var(--accent-text); }
  .hero { padding: 56px 0 44px; }
  .section { padding: 48px 0; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .bf-card, .bf-card--wide, .bf-card--full { grid-column: span 6; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Homepage: workflows, chooser, anatomy extras */
.job-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.job-card { background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 26px; }
.job-card h3 { font-family: var(--font-display); margin: 10px 0 8px; font-size: 1.25rem; }
.job-card p { color: var(--muted); font-size: 0.97rem; }
.job-card ol { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 8px; font-size: 0.95rem; }
.job-card ol li::marker { color: var(--accent-text); font-weight: 700; }
.versus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.versus-card { background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 26px; }
.versus-card h3 { font-family: var(--font-display); font-size: 1.2rem; margin: 0 0 10px; }
.versus-card h3 span { color: var(--faint); font-weight: 400; font-style: italic; }
.versus-rule { font-weight: 700; color: var(--text); border-left: 3px solid var(--accent); padding-left: 12px; }
.versus-card p { font-size: 0.95rem; color: var(--muted); }
.versus-card a { font-weight: 700; }
.step-no { display: inline-block; font-family: var(--font-display); color: var(--accent-text); margin-right: 8px; }
.blog-list--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.blog-list--3 .blog-card h2 { font-size: 1.15rem; }
