/* ============================================================
   Simple Tools — Components
   ============================================================ */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--t-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.4s ease, color 0.4s ease;
}
body::before {
  /* subtle paper grain */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  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.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
[data-theme="dark"] body::before { mix-blend-mode: screen; opacity: 0.6; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; margin: 0; color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-soft); color: var(--accent-ink); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--sp-5); position: relative; z-index: 1; }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }
.serif { font-family: var(--font-display); }
.muted { color: var(--muted); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-ink);
  font-weight: 500;
}

/* ============================================================
   HEADER
   ============================================================ */
.st-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in oklab, var(--paper) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.st-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--sp-5);
  height: 64px;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.32rem; letter-spacing: -0.02em; white-space: nowrap; }
.brand__mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(150deg, #c4632f, #9a3f1f);
  display: grid; place-items: center; color: #fff5e8; flex: none;
  box-shadow: var(--shadow-1), inset 0 1px 0 rgb(255 255 255 / 0.25);
}
.brand__mark svg { width: 18px; height: 18px; }
.brand b { font-weight: 600; }
.brand i { font-style: italic; color: var(--muted); font-weight: 400; }
.st-header__spacer { flex: 1; }

.st-nav { display: flex; align-items: center; gap: 2px; }
.st-nav a, .icon-btn, .launcher__btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 13px;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-size: var(--t-sm); font-weight: 500;
  border: 1px solid transparent;
  background: transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.st-nav a:hover, .icon-btn:hover, .launcher__btn:hover { background: var(--surface); color: var(--ink); border-color: var(--line); }
.icon-btn { width: 38px; padding: 0; justify-content: center; }
.icon-btn svg { width: 18px; height: 18px; }

/* Launcher dropdown */
.launcher { position: relative; }
.launcher__btn { font-weight: 600; }
.launcher__btn svg { width: 16px; height: 16px; }
.launcher__panel {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: min(440px, 86vw);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  padding: var(--sp-3);
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  max-height: 70vh; overflow: auto;
}
.launcher.open .launcher__panel { display: grid; }
.launcher__item { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: var(--r); }
.launcher__item:hover { background: var(--surface-2); }
.launcher__ico { width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center; }
.launcher__ico svg { width: 19px; height: 19px; }
.launcher__name { font-size: var(--t-sm); font-weight: 600; line-height: 1.15; }
.launcher__cat { font-size: var(--t-xs); color: var(--muted); }

/* theme toggle knob */
.theme-toggle svg.moon { display: none; }
[data-theme="dark"] .theme-toggle svg.sun { display: none; }
[data-theme="dark"] .theme-toggle svg.moon { display: block; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 48px; padding: 0 24px;
  border-radius: var(--r-pill);
  font-size: var(--t-base); font-weight: 600;
  border: 1px solid transparent;
  background: var(--accent); color: var(--on-accent);
  white-space: nowrap;
  box-shadow: var(--shadow-1), inset 0 1px 0 rgb(255 255 255 / 0.18);
  transition: transform 0.12s ease, box-shadow 0.2s, filter 0.2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-2), inset 0 1px 0 rgb(255 255 255 / 0.2); filter: saturate(1.05); }
.btn:active { transform: translateY(0); }
.btn svg { width: 19px; height: 19px; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.btn--ghost:hover { border-color: var(--accent-line); filter: none; }
.btn--sm { height: 40px; padding: 0 18px; font-size: var(--t-sm); }
.btn--block { width: 100%; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line);
  font-size: var(--t-sm); color: var(--ink-2); font-weight: 500;
  transition: all 0.16s;
}
.chip:hover { border-color: var(--accent-line); color: var(--ink); }
.chip--on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); }

/* ============================================================
   LAYOUT — tool page
   ============================================================ */
.tool-main { padding: var(--sp-7) 0 var(--sp-8); }
.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--rail-w);
  gap: var(--sp-7);
  align-items: start;
}
@media (max-width: 980px) { .tool-grid { grid-template-columns: 1fr; } .rail { display: none; } }

.tool-hero { margin-bottom: var(--sp-6); max-width: 720px; }
.tool-hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: var(--sp-4);
}
.tool-hero__ico {
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgb(255 255 255 / 0.25);
  border: 1px solid var(--accent-line);
}
.tool-hero__ico svg { width: 26px; height: 26px; }
.tool-hero h1 { font-size: var(--t-2xl); margin-bottom: 10px; }
.tool-hero h1 em { font-style: italic; color: var(--accent-ink); }
.tool-hero p { font-size: var(--t-md); color: var(--ink-2); margin: 0; max-width: 60ch; }
.crumbs { font-size: var(--t-sm); color: var(--muted); margin-bottom: var(--sp-5); display: flex; align-items: center; gap: 8px; white-space: nowrap; flex-wrap: wrap; }
.crumbs a:hover { color: var(--accent-ink); }
.crumbs svg { width: 13px; height: 13px; opacity: 0.6; }

/* ============================================================
   CARDS / WORKSPACE
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.workspace {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
  padding: var(--sp-6);
  position: relative;
  overflow: hidden;
}
.workspace::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
  opacity: 0.85;
}
.ws-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-5); flex-wrap: wrap; }
.ws-head h2 { font-size: var(--t-lg); }
.ws-toolbar { display: flex; gap: var(--sp-2); flex-wrap: wrap; }

/* Drop zone */
.dropzone {
  border: 2px dashed var(--accent-line);
  border-radius: var(--r-lg);
  background: var(--accent-tint);
  padding: var(--sp-8) var(--sp-5);
  text-align: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.dropzone:hover { background: var(--accent-soft); transform: translateY(-1px); }
.dropzone__ico {
  width: 72px; height: 72px; border-radius: 20px; margin: 0 auto var(--sp-4);
  display: grid; place-items: center;
  background: var(--surface); color: var(--accent);
  box-shadow: var(--shadow-1); border: 1px solid var(--accent-line);
}
.dropzone__ico svg { width: 36px; height: 36px; }
.dropzone h3 { font-size: var(--t-lg); margin-bottom: 6px; }
.dropzone p { color: var(--muted); margin: 0 0 var(--sp-5); font-size: var(--t-sm); }
.dropzone__hint { font-size: var(--t-xs); color: var(--faint); margin-top: var(--sp-4); }

/* file rows */
.filelist { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-5); }
.filerow {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
}
.filerow__grip { color: var(--faint); cursor: grab; display: grid; }
.filerow__grip svg { width: 16px; height: 16px; }
.filerow__thumb { width: 42px; height: 52px; border-radius: 6px; background: var(--paper-2); border: 1px solid var(--line); flex: none; display: grid; place-items: center; color: var(--accent); }
.filerow__thumb svg { width: 20px; height: 20px; }
.filerow__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.filerow__name { font-weight: 600; font-size: var(--t-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filerow__sub { font-size: var(--t-xs); color: var(--muted); }
.filerow__x { color: var(--faint); border: none; background: none; padding: 6px; border-radius: 8px; display: grid; }
.filerow__x:hover { background: var(--paper-2); color: var(--ink); }
.filerow__x svg { width: 16px; height: 16px; }

/* Inputs */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: var(--t-xs); color: var(--muted); }
.input, .select, textarea.input {
  height: 48px; padding: 0 15px;
  background: var(--surface-2); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r);
  font-family: inherit; font-size: var(--t-base); width: 100%;
  transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
}
.input:focus, .select:focus, textarea.input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft); background: var(--surface);
}
textarea.input { height: auto; padding: 12px 15px; line-height: 1.6; resize: vertical; }
.input-group { display: flex; gap: 0; min-width: 0; }
.input-group .input { border-radius: var(--r) 0 0 var(--r); flex: 1 1 auto; min-width: 0; }
.input-group .select { border-radius: 0 var(--r) var(--r) 0; border-left: none; flex: 0 0 auto; width: auto; min-width: 52px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 560px){ .field-row { grid-template-columns: 1fr; } }
.form-stack { display: flex; flex-direction: column; gap: var(--sp-5); }

/* Range slider */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--line-strong); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid var(--surface); box-shadow: var(--shadow-1); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 3px solid var(--surface); cursor: pointer; }

/* Result / stat blocks */
.result {
  margin-top: var(--sp-5);
  background: var(--accent-tint);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
}
.result__big { font-family: var(--font-display); font-size: var(--t-3xl); line-height: 1; color: var(--accent-ink); letter-spacing: -0.02em; }
.result__label { font-family: var(--font-mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); margin-bottom: 8px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--sp-3); margin-top: var(--sp-4); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--sp-4); }
.stat__v { font-family: var(--font-display); font-size: var(--t-lg); color: var(--ink); }
.stat__k { font-size: var(--t-xs); color: var(--muted); }

/* ============================================================
   AD SLOTS (placeholders, realistic IAB sizes)
   ============================================================ */
.ad {
  position: relative;
  background: var(--ad-bg);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r);
  display: grid; place-items: center;
  color: var(--faint);
  overflow: hidden;
}
.ad::before {
  content: "ADVERTISEMENT"; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.28em; color: var(--faint);
}
.ad__size { font-family: var(--font-mono); font-size: var(--t-sm); opacity: 0.8; white-space: nowrap; }
.ad--leaderboard { height: 90px; margin-bottom: var(--sp-5); }
.ad--inline { height: 250px; margin-top: var(--sp-6); }
.ad--rail { height: 600px; position: sticky; top: 84px; }
.rail { display: flex; flex-direction: column; gap: var(--sp-5); }
body.ads-off .ad { display: none; }

/* ============================================================
   CONTENT (SEO copy below tool)
   ============================================================ */
.content { margin-top: var(--sp-8); display: grid; gap: var(--sp-7); max-width: 760px; }
.content h2 { font-size: var(--t-xl); margin-bottom: var(--sp-3); }
.content h2 em { font-style: italic; color: var(--accent-ink); }
.content p { color: var(--ink-2); margin: 0 0 var(--sp-3); }
.steps { display: grid; gap: var(--sp-4); counter-reset: step; }
.step { display: flex; gap: var(--sp-4); align-items: flex-start; }
.step__n { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-family: var(--font-display); font-size: var(--t-md); border: 1px solid var(--accent-line); }
.step h4 { font-family: var(--font-sans); font-weight: 700; font-size: var(--t-base); margin-bottom: 3px; }
.step p { font-size: var(--t-sm); margin: 0; }
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: var(--sp-4) 0; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: var(--t-lg); color: var(--accent); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 var(--sp-4); font-size: var(--t-sm); margin: 0; }

/* related tools strip */
.related { margin-top: var(--sp-8); }
.related h2 { font-size: var(--t-lg); margin-bottom: var(--sp-4); }
.related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--sp-3); }
.related__card { display: flex; align-items: center; gap: 12px; padding: var(--sp-3); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); transition: all 0.16s; }
.related__card:hover { border-color: var(--accent-line); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.related__card .tile-ico { width: 38px; height: 38px; }
.related__card span { font-size: var(--t-sm); font-weight: 600; }

/* ============================================================
   APP ICON TILES (shared)
   ============================================================ */
.tile-ico {
  border-radius: 24%;
  display: grid; place-items: center;
  position: relative;
  background:
    linear-gradient(160deg, color-mix(in oklab, var(--ti) 26%, var(--surface)), color-mix(in oklab, var(--ti) 12%, var(--surface)));
  color: var(--ti);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgb(255 255 255 / 0.4), inset 0 -2px 6px color-mix(in oklab, var(--ti) 18%, transparent);
  border: 1px solid color-mix(in oklab, var(--ti) 30%, var(--line));
}
[data-theme="dark"] .tile-ico {
  background: linear-gradient(160deg, color-mix(in oklab, var(--ti) 34%, var(--surface)), color-mix(in oklab, var(--ti) 16%, var(--surface)));
  box-shadow: var(--shadow-1), inset 0 1px 0 rgb(255 255 255 / 0.08);
}
.tile-ico svg { width: 56%; height: 56%; }

/* ============================================================
   FOOTER
   ============================================================ */
.st-footer { border-top: 1px solid var(--line); margin-top: var(--sp-9); background: var(--paper-2); position: relative; z-index: 1; }
.st-footer__inner { max-width: var(--maxw); margin: 0 auto; padding: var(--sp-8) var(--sp-5) var(--sp-6); }
.st-footer__top { display: grid; grid-template-columns: 1.4fr repeat(5, minmax(120px, 1fr)); gap: var(--sp-6); }
@media (max-width: 1080px){ .st-footer__top { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px){ .st-footer__top { grid-template-columns: 1fr 1fr; } }
.st-footer h5 { font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--sp-4); font-weight: 500; }
.st-footer__links { display: flex; flex-direction: column; gap: 10px; }
.st-footer__links a { font-size: var(--t-sm); color: var(--ink-2); }
.st-footer__links a:hover { color: var(--accent-ink); }
.st-footer__about { max-width: 34ch; }
.st-footer__about p { font-size: var(--t-sm); color: var(--muted); margin: var(--sp-3) 0 0; }
.st-footer__bottom { margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; font-size: var(--t-sm); color: var(--muted); }

/* ---------- tool-specific shared bits ---------- */
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: var(--sp-3); margin-top: var(--sp-5); }
.img-thumb { position: relative; aspect-ratio: 1; border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-1); }
.img-thumb__art { position: absolute; inset: 0; }
.img-thumb__tag { position: absolute; left: 7px; bottom: 7px; font-family: var(--font-mono); font-size: 10px; padding: 2px 7px; border-radius: 999px; background: rgb(0 0 0 / 0.45); color: #fff; }
.img-thumb__x { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border: none; border-radius: 50%; background: rgb(0 0 0 / 0.5); color: #fff; display: grid; place-items: center; }
.img-thumb__x svg { width: 13px; height: 13px; }

.page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--sp-4); margin-top: var(--sp-5); }
.page-thumb { aspect-ratio: 3/4; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--surface-2); display: grid; place-items: center; cursor: pointer; position: relative; transition: all 0.15s; box-shadow: var(--shadow-1); overflow: hidden; padding: 0; }
.page-thumb span { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--muted); position: absolute; left: 6px; right: 6px; bottom: 6px; z-index: 2; padding: 3px 6px; border-radius: 999px; background: color-mix(in oklab, var(--surface) 88%, transparent); box-shadow: var(--shadow-1); }
.page-thumb:not(.has-preview)::before { content: ""; width: 54%; height: 4px; border-radius: 2px; background: var(--line-strong); box-shadow: 0 8px 0 var(--line-strong), 0 16px 0 var(--line-strong), 0 24px 0 var(--line-strong); }
.page-thumb canvas { width: 100%; height: 100%; object-fit: cover; display: block; background: #fff; }
.page-thumb__loading { width: 54%; height: 4px; border-radius: 2px; background: var(--line-strong); box-shadow: 0 8px 0 var(--line-strong), 0 16px 0 var(--line-strong), 0 24px 0 var(--line-strong); opacity: 0.75; }
.page-thumb.sel { border-color: var(--accent); background: var(--accent-tint); box-shadow: 0 0 0 3px var(--accent-soft); }
.page-thumb.sel::after { content: "✓"; position: absolute; top: 5px; right: 7px; color: var(--accent); font-weight: 700; }

.seg { display: inline-flex; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-pill); gap: 2px; flex-wrap: wrap; }
.seg button { border: none; background: transparent; height: 34px; padding: 0 16px; border-radius: var(--r-pill); font: 500 var(--t-sm)/1 var(--font-sans); color: var(--muted); cursor: pointer; transition: all 0.15s; }
.seg button.on { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-1); }

.qr-stage { display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-6); aspect-ratio: 1; }
.qr-stage svg { width: 100%; height: 100%; max-width: 280px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 32px; height: 32px; border-radius: 8px; border: 2px solid var(--line); cursor: pointer; padding: 0; }
.swatch.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }

.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); align-items: start; }
@media (max-width: 620px){ .split-2 { grid-template-columns: 1fr; } }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.compare__cell { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.compare__cell h4 { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 10px 12px 0; }
.compare__art { height: 150px; margin: 10px 12px; border-radius: var(--r-sm); }
.compare__meta { padding: 0 12px 12px; }
.bar { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.amort { display: flex; height: 18px; border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.amort > i { display: block; height: 100%; }

/* utilities */
.divider { height: 1px; background: var(--line); border: none; margin: var(--sp-5) 0; }
.flex { display: flex; }
.center { align-items: center; }
.between { justify-content: space-between; }
.gap-2 { gap: var(--sp-2); } .gap-3 { gap: var(--sp-3); } .gap-4 { gap: var(--sp-4); }
.wrap-flex { flex-wrap: wrap; }
.mt-4 { margin-top: var(--sp-4); } .mt-5 { margin-top: var(--sp-5); } .mt-6 { margin-top: var(--sp-6); }

/* entrance */
@media (prefers-reduced-motion: no-preference) {
  /* Hidden start lives in the keyframe (from) applied via fill-mode `both`, so
     content is NEVER stuck invisible if the animation doesn't run (headless
     renderers, animation-disabled engines). Normal users see the identical
     staggered fade-in; reduced-motion users get the static page (no rule here). */
  .reveal { animation: rise 0.6s cubic-bezier(0.2,0.7,0.2,1) both; }
  .reveal-1 { animation-delay: 0.04s; } .reveal-2 { animation-delay: 0.1s; }
  .reveal-3 { animation-delay: 0.16s; } .reveal-4 { animation-delay: 0.22s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
