/* ============================================================
   UX Swipe File — canvas design system
   Concept: a design tool's pasteboard. Artboards on a canvas,
   #ffdd00 as the selection color, chrome like an app rail.
   Light-first. [data-rail="dark"] flips ONLY the sidebar.
   ============================================================ */

:root {
  --paper: #fafaf9;
  --board: #ffffff;
  --ink: #141414;
  --ink-2: #56564f;
  --ink-3: #9b9b94;
  --line: rgba(20, 20, 20, 0.1);
  --line-soft: rgba(20, 20, 20, 0.055);
  --sel: #ffdd00;
  --sel-soft: rgba(255, 221, 0, 0.14);
  --danger: #c92a2a;
  --ok: #2b8a3e;

  /* rail defaults DARK (Jef's call 2026-07-17) — [data-rail="light"] flips it */
  --rail-bg: #141414;
  --rail-ink: #ecece7;
  --rail-ink-2: #b9b9b1;
  --rail-ink-3: #77776f;
  --rail-line: rgba(255, 255, 255, 0.09);
  --rail-hover: rgba(255, 255, 255, 0.06);

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --rail-w: 268px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 20, 20, 0.05), 0 6px 24px -18px rgba(20, 20, 20, 0.25);
}

html[data-rail="light"] {
  --rail-bg: #f4f4f1;
  --rail-ink: #141414;
  --rail-ink-2: #56564f;
  --rail-ink-3: #9b9b94;
  --rail-line: rgba(20, 20, 20, 0.09);
  --rail-hover: rgba(20, 20, 20, 0.05);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select { font: inherit; }
:focus-visible { outline: 2px solid var(--sel); outline-offset: 2px; border-radius: 2px; }

::selection { background: var(--sel); color: var(--ink); }

/* ============================================================
   App shell
   ============================================================ */
.shell { display: flex; min-height: 100vh; }

/* ---------- rail (sidebar) ---------- */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail-w);
  background: var(--rail-bg);
  color: var(--rail-ink);
  border-right: 1px solid var(--rail-line);
  display: flex;
  flex-direction: column;
  z-index: 60;
  transition: background 0.25s ease, color 0.25s ease;
}
.rail-scroll { flex: 1; overflow-y: auto; padding: 10px 14px 14px; scrollbar-width: thin; }

.rail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 12px 10px 20px;
}
.rail-top .toggle { display: inline-flex; padding: 8px; border-radius: 8px; color: var(--rail-ink-3); flex: none; }
.rail-top .toggle:hover { background: var(--rail-hover); color: var(--rail-ink); }
.rail-top .toggle svg { width: 16px; height: 16px; }
.rail-brand { display: flex; align-items: center; text-decoration: none; min-width: 0; }
.rail-brand img { height: 30px; width: auto; }
.rail-brand .lock-light { display: none; }
html[data-rail="light"] .rail-brand .lock-dark { display: none; }
html[data-rail="light"] .rail-brand .lock-light { display: block; }

.rail-section {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rail-ink-3);
  padding: 18px 8px 6px;
}
.rail .item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 8px;
  border-radius: 7px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 480;
  color: var(--rail-ink-2);
  position: relative;
  text-align: left;
}
.rail .item:hover { background: var(--rail-hover); color: var(--rail-ink); }
.rail .item svg { width: 15px; height: 15px; flex: none; stroke-width: 1.8; opacity: 0.85; }
.rail .item .count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--rail-ink-3);
}
.rail .item.active {
  background: var(--rail-hover);
  color: var(--rail-ink);
  font-weight: 560;
}
.rail .item.active::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 3px;
  background: var(--sel);
}
.rail .item.soon { opacity: 0.45; pointer-events: none; cursor: default; }
.rail .item.soon .count { font-size: 9px; letter-spacing: 0.06em; }

/* coming-soon note block (rail) */
.rail-note {
  margin: 8px 8px 2px;
  padding: 13px 14px;
  border: 1px dashed var(--rail-line);
  border-radius: 10px;
}
.rail-note .k {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rail-ink);
  margin-bottom: 7px;
}
.rail-note .k::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sel); flex: none; }
.rail-note p { font-size: 12.5px; line-height: 1.55; color: var(--rail-ink-2); }

.rail-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 8px 4px;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--sel);
  color: #141414;
  font-size: 13.5px;
  font-weight: 620;
  text-decoration: none;
  border: 1px solid rgba(20, 20, 20, 0.14);
  box-shadow: inset 0 -1px 0 rgba(20, 20, 20, 0.12);
}
.rail-cta:hover { filter: brightness(1.04); }
.rail-cta svg { width: 14px; height: 14px; }

.rail-foot {
  border-top: 1px solid var(--rail-line);
  padding: 10px 12px;
}
.rail-foot .socials { display: flex; align-items: center; justify-content: space-between; }
.rail-foot .socials a {
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--rail-ink-3);
  text-decoration: none;
}
.rail-foot .socials a:hover { background: var(--rail-hover); color: var(--rail-ink); }
.rail-foot .socials svg { width: 16px; height: 16px; }

/* theme toggle (dark rail default: show sun = "switch to light") */
.toggle { position: relative; }
html:not([data-rail="light"]) .toggle .moon { display: none; }
html[data-rail="light"] .toggle .sun { display: none; }

/* ---------- topbar (mobile) ---------- */
.topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 55;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar .burger { display: inline-flex; padding: 8px; border-radius: 8px; }
.topbar .burger:hover { background: rgba(20, 20, 20, 0.06); }
.topbar .burger svg { width: 20px; height: 20px; }
.topbar b { font-size: 14.5px; font-weight: 650; }

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.4);
  z-index: 58;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

/* ============================================================
   Canvas — the pasteboard
   ============================================================ */
.main { flex: 1; margin-left: var(--rail-w); min-width: 0; position: relative; }

.canvas {
  position: relative;
  min-height: 100vh;
  background-color: var(--paper);
  background-image:
    /* fine dot grid, 24px */
    radial-gradient(circle, rgba(20, 20, 20, 0.13) 1px, transparent 1.15px),
    /* major cross grid, 120px (dashed vertical / solid horizontal hairlines) */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cline x1='60.25' y1='0' x2='60.25' y2='120' stroke='rgba(20,20,20,0.055)' stroke-width='0.5' stroke-dasharray='7 7'/%3E%3Cline x1='0' y1='60.25' x2='120' y2='60.25' stroke='rgba(20,20,20,0.055)' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 24px 24px, 120px 120px;
  background-position: 12px 12px, 0 0;
}
/* paper grain */
.canvas::before {
  content: "";
  position: fixed;
  inset: 0;
  left: var(--rail-w);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
}
/* rulers */
.ruler-x, .ruler-y { position: fixed; z-index: 2; pointer-events: none; opacity: 0.5; display: none; }
.ruler-x {
  top: 0; left: var(--rail-w); right: 0; height: 22px;
  border-bottom: 1px solid var(--line-soft);
  background:
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 120px) left bottom / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, var(--line-soft) 0 1px, transparent 1px 24px) left bottom / 100% 7px no-repeat,
    linear-gradient(var(--paper), var(--paper));
}
.ruler-y {
  top: 0; bottom: 0; left: var(--rail-w); width: 22px;
  border-right: 1px solid var(--line-soft);
  background:
    repeating-linear-gradient(180deg, var(--line) 0 1px, transparent 1px 120px) right top / 14px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--line-soft) 0 1px, transparent 1px 24px) right top / 7px 100% no-repeat,
    linear-gradient(var(--paper), var(--paper));
}
@media (min-width: 1100px) {
  .ruler-x, .ruler-y { display: block; }
}

.wrap { position: relative; z-index: 3; max-width: 1240px; margin: 0 auto; padding: 40px 48px 80px; }

/* ---------- canvas header ---------- */
.canvas-head { margin-bottom: 26px; }
.canvas-head .crumb {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.canvas-head .crumb a { color: inherit; text-decoration: none; }
.canvas-head .crumb a:hover { color: var(--ink); }
.canvas-head h1 {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 680;
  letter-spacing: -0.022em;
  line-height: 1.15;
}
.canvas-head .sub { margin-top: 8px; color: var(--ink-2); max-width: 62ch; font-size: 15.5px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--board);
  color: var(--ink-2);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--sel); border-color: rgba(20, 20, 20, 0.2); color: var(--ink); font-weight: 600; }
.chip .n { color: var(--ink-3); margin-left: 5px; }
.chip.active .n { color: rgba(20, 20, 20, 0.55); }

/* ============================================================
   Frames — swipe cards as artboards
   ============================================================ */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px 28px;
}
.frame { text-decoration: none; display: block; }
.frame-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  margin-bottom: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.frame-label .dot { width: 7px; height: 7px; border-radius: 2px; background: var(--line); flex: none; transition: background 0.15s; }
.frame-label .cat { margin-left: auto; padding-left: 10px; flex: none; }
.frame:hover .frame-label { color: var(--ink); }
.frame:hover .frame-label .dot { background: var(--sel); }

.frame-shot {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--board);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: visible;
}
.frame-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: calc(var(--radius) - 1px);
}
/* selection outline */
.frame-shot::before, .frame-shot::after { content: ""; position: absolute; opacity: 0; transition: opacity 0.12s; pointer-events: none; }
.frame-shot::before {
  inset: -6px;
  border: 2px solid var(--sel);
  border-radius: calc(var(--radius) + 5px);
  /* white handle bases */
  background:
    linear-gradient(#fff, #fff) 0 0 / 11px 11px,
    linear-gradient(#fff, #fff) 100% 0 / 11px 11px,
    linear-gradient(#fff, #fff) 0 100% / 11px 11px,
    linear-gradient(#fff, #fff) 100% 100% / 11px 11px;
  background-repeat: no-repeat;
}
.frame-shot::after {
  inset: -4px;
  background:
    linear-gradient(var(--sel), var(--sel)) 0 0 / 7px 7px,
    linear-gradient(var(--sel), var(--sel)) 100% 0 / 7px 7px,
    linear-gradient(var(--sel), var(--sel)) 0 100% / 7px 7px,
    linear-gradient(var(--sel), var(--sel)) 100% 100% / 7px 7px;
  background-repeat: no-repeat;
}
.frame:hover .frame-shot::before, .frame:hover .frame-shot::after,
.frame:focus-visible .frame-shot::before, .frame:focus-visible .frame-shot::after { opacity: 1; }
.frame:focus-visible { outline: none; }

.frame-meta { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.frame-meta b { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.frame-meta span { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); margin-left: auto; flex: none; }

/* sponsored slot */
.frame.sponsor-slot .frame-shot {
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle, rgba(20,20,20,0.1) 1px, transparent 1.1px) 0 0 / 16px 16px,
    var(--board);
  border-style: dashed;
}
.frame.sponsor-slot .ph { text-align: center; padding: 20px; }
.frame.sponsor-slot .ph b { font-size: 14px; display: block; }
.frame.sponsor-slot .ph span { font-size: 12.5px; color: var(--ink-3); }

/* infinite scroll sentinel + loader */
.sentinel { height: 1px; }
.loader {
  display: none;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  text-align: center;
  padding: 26px 0 6px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.loader.on { display: block; }

.pager { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pager a, .pager span {
  font-family: var(--mono); font-size: 12px;
  padding: 7px 13px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--board); text-decoration: none; color: var(--ink-2);
}
.pager a:hover { border-color: var(--ink); color: var(--ink); }
.pager .here { background: var(--sel); color: var(--ink); border-color: rgba(20,20,20,0.2); }
html.js .pager { display: none; }

/* ============================================================
   Entry page
   ============================================================ */
.entry { display: grid; grid-template-columns: minmax(0, 1fr) 296px; gap: 36px; align-items: start; }

.browser {
  background: var(--board);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.browser-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--rail-bg, #f4f4f1);
  background: #f4f4f1;
}
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser-bar i:nth-child(1) { background: #f5b8b3; }
.browser-bar i:nth-child(2) { background: #f8df9d; }
.browser-bar i:nth-child(3) { background: #b7e0b9; }
.browser-bar .url {
  flex: 1; margin-left: 6px;
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  background: #fff; border: 1px solid var(--line-soft); border-radius: 6px;
  padding: 3px 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser img { width: 100%; }

.meta-card {
  position: sticky; top: 40px;
  background: var(--board);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 20px;
}
.meta-card .row { padding: 11px 0; border-top: 1px solid var(--line-soft); }
.meta-card .row:first-child { border-top: 0; padding-top: 0; }
.meta-card .k {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px;
}
.meta-card .v { font-size: 13.5px; color: var(--ink); }
.meta-card .v a { text-decoration: none; border-bottom: 1px solid var(--line); }
.meta-card .v a:hover { border-color: var(--ink); }
.meta-card .chips { margin-top: 2px; }
.meta-card .chip { font-size: 10px; padding: 3px 9px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 8px;
  background: var(--ink); color: #fff;
  font-size: 13.5px; font-weight: 570; text-decoration: none;
  border: 1px solid var(--ink);
  width: 100%;
}
.btn:hover { box-shadow: 0 0 0 3px var(--sel-soft), 0 0 0 1px var(--sel); }
.btn svg { width: 14px; height: 14px; }
.btn.ghost { background: var(--board); color: var(--ink); border-color: var(--line); margin-top: 8px; }
.btn.ghost:hover { border-color: var(--ink); box-shadow: none; }

.report { display: block; text-align: center; margin-top: 12px; font-size: 11.5px; color: var(--ink-3); }

.breakdown { max-width: 70ch; margin-top: 48px; }

/* similar */
.similar { margin-top: 64px; }
.similar h2 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 500;
  margin-bottom: 18px;
}

/* ---------- phone modal ---------- */
.phone-modal {
  position: fixed; inset: 0; z-index: 90;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(20, 20, 20, 0.5);
  backdrop-filter: blur(6px);
  padding: 24px;
}
.phone-modal.open { display: flex; }
.phone {
  width: min(340px, 88vw);
  height: min(700px, 88vh);
  background: #fff;
  border: 9px solid var(--ink);
  border-radius: 38px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 80px -20px rgba(20, 20, 20, 0.5);
}
.phone::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 110px; height: 20px; background: var(--ink);
  border-radius: 0 0 14px 14px; z-index: 2;
}
.phone-scroll { height: 100%; overflow-y: auto; }
.phone-scroll img { width: 100%; }
.phone-close {
  position: absolute; top: 20px; right: 20px;
  background: #fff; color: var(--ink);
  border-radius: 50%; padding: 10px;
  box-shadow: 0 4px 16px rgba(20, 20, 20, 0.3);
}
.phone-close svg { width: 18px; height: 18px; }

/* ============================================================
   Articles / prose
   ============================================================ */
.prose { max-width: 70ch; font-size: 16.5px; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: 22px; font-weight: 660; letter-spacing: -0.015em; margin-top: 2em; }
.prose h3 { font-size: 17.5px; font-weight: 640; margin-top: 1.6em; }
.prose a { text-decoration: none; border-bottom: 2px solid var(--sel); }
.prose a:hover { background: var(--sel-soft); }
.prose strong { font-weight: 640; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose blockquote {
  border-left: 3px solid var(--sel);
  padding: 4px 0 4px 18px;
  color: var(--ink-2);
}
.prose code {
  font-family: var(--mono); font-size: 0.85em;
  background: rgba(20, 20, 20, 0.06);
  padding: 2px 6px; border-radius: 5px;
}
.prose hr { border: 0; border-top: 1px solid var(--line); }
.prose em { font-style: italic; }

.byline {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  margin: 14px 0 30px;
}

/* FAQ */
.faq-list { max-width: 70ch; margin-top: 14px; }
.faq-item {
  background: var(--board);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 12px;
}
.faq-item h3 { font-size: 15.5px; font-weight: 630; margin-bottom: 7px; }
.faq-item p { font-size: 14.5px; color: var(--ink-2); }

/* ============================================================
   Tools
   ============================================================ */
.tool-panel {
  background: var(--board);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 26px;
  max-width: 620px;
  margin-bottom: 40px;
}
.tool-panel .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label {
  display: block;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-2);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  font-family: var(--mono); font-size: 15px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}
.field input:focus { outline: 2px solid var(--sel); outline-offset: 0; border-color: transparent; }
.field .hint { font-size: 11px; color: var(--ink-3); margin-top: 4px; }

.tool-out { border-top: 1px dashed var(--line); margin-top: 22px; padding-top: 18px; }
.tool-out .big {
  font-family: var(--mono);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.tool-out .big small { font-size: 0.45em; color: var(--ink-3); font-weight: 500; }
.tool-out .kv { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; }
.tool-out .kv div { font-size: 13px; color: var(--ink-2); }
.tool-out .kv b { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.verdict {
  display: inline-block;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 7px; margin-top: 14px;
}
.verdict.yes { background: rgba(43, 138, 62, 0.12); color: var(--ok); }
.verdict.no { background: rgba(201, 42, 42, 0.1); color: var(--danger); }
.verdict.meh { background: var(--sel-soft); color: #7a6a00; }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.tool-card {
  background: var(--board);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 22px;
  text-decoration: none;
  transition: border-color 0.15s;
  position: relative;
}
.tool-card:hover { border-color: var(--ink); }
.tool-card svg { width: 20px; height: 20px; stroke-width: 1.8; margin-bottom: 12px; }
.tool-card b { display: block; font-size: 15.5px; font-weight: 630; letter-spacing: -0.01em; }
.tool-card p { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }

/* ============================================================
   Subscribe band
   ============================================================ */
.subscribe {
  margin-top: 72px;
  background: var(--board);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sel);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 30px;
  max-width: 620px;
}
.subscribe h2 { font-size: 20px; font-weight: 660; letter-spacing: -0.015em; }
.subscribe p { color: var(--ink-2); font-size: 14.5px; margin-top: 6px; }
.subscribe form { display: flex; gap: 10px; margin-top: 18px; }
.subscribe input {
  flex: 1;
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  min-width: 0;
}
.subscribe button {
  padding: 10px 18px;
  background: var(--ink); color: #fff;
  border-radius: 8px; font-size: 13.5px; font-weight: 570;
  flex: none;
}
.subscribe button:hover { box-shadow: 0 0 0 3px var(--sel-soft), 0 0 0 1px var(--sel); }
.subscribe .msg { font-size: 12.5px; margin-top: 10px; color: var(--danger); }
.subscribe .msg.ok { color: var(--ok); }

/* ============================================================
   Footer
   ============================================================ */
.foot {
  position: relative; z-index: 3;
  border-top: 1px solid var(--line-soft);
  margin-top: 40px;
  padding: 26px 48px 34px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px;
  font-size: 12.5px; color: var(--ink-3);
}
.foot a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.foot a:hover { color: var(--ink); border-color: var(--ink); }
.foot .spacer { flex: 1; }
.foot--center { justify-content: center; text-align: center; }
.foot--center .spacer { display: none; }

/* 404 */
.p404 .canvas-head .sub { max-width: 35ch; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .main { margin-left: 0; }
  .canvas::before { left: 0; }
  .rail {
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 0 0 60px rgba(20, 20, 20, 0.25);
  }
  html.rail-open .rail { transform: translateX(0); }
  html.rail-open .scrim { opacity: 1; pointer-events: auto; }
  .topbar { display: flex; }
  .wrap { padding: 28px 20px 60px; }
  .foot { padding: 22px 20px 30px; }
  .entry { grid-template-columns: 1fr; }
  .meta-card { position: static; }
  .board-grid { gap: 32px 20px; }
}
@media (max-width: 520px) {
  .board-grid { grid-template-columns: 1fr; }
  .subscribe form { flex-direction: column; }
  .tool-panel .grid2 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ============================================================
   Coming-soon mode
   ============================================================ */
.cs-center { display: grid; place-items: center; min-height: 72vh; }
.cs-board {
  max-width: 660px;
  width: 100%;
  background: var(--board);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cs-pad { padding: 36px 38px 40px; }
/* all text on the white board reads #1e1e1b (Jef's spec) */
.cs-board, .cs-board h1, .cs-board h2, .cs-board .lede,
.cs-board .subscribe p, .cs-board .cs-makers { color: #1e1e1b; }
.cs-pad h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 680; letter-spacing: -0.022em; line-height: 1.12; }
.cs-pad .lede { margin-top: 12px; font-size: 16px; max-width: 54ch; }
.cs-board .subscribe { margin: 28px 0 0; max-width: none; box-shadow: none; background: var(--paper); }
.cs-makers { margin-top: 18px; font-size: 12.5px; }
.cs-makers a { color: inherit; }
@media (max-width: 520px) { .cs-pad { padding: 26px 22px 30px; } }

/* print: hide chrome */
@media print {
  .rail, .topbar, .ruler-x, .ruler-y, .subscribe, .foot { display: none !important; }
  .main { margin: 0; }
}
