/* Digital Tools Hub — design system for hub pages (home, info pages, new tools). */

:root {
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --bg: #f7f7fb;
  --bg-elev: #ffffff;
  --bg-sunken: #eef0f6;
  --border: #e3e5ee;
  --border-strong: #cfd3e0;
  --text: #121527;
  --text-2: #4a5068;
  --text-3: #767c95;
  --accent: #4f46e5;
  --accent-2: #7c3aed;
  --accent-soft: #eef0ff;
  --accent-text: #ffffff;
  --ok: #059669;
  --warn: #d97706;
  --danger: #dc2626;
  --ring: 0 0 0 3px rgba(79, 70, 229, .28);
  --shadow-sm: 0 1px 2px rgba(18, 21, 39, .06);
  --shadow: 0 1px 2px rgba(18, 21, 39, .05), 0 8px 24px -8px rgba(18, 21, 39, .12);
  --shadow-lg: 0 24px 60px -12px rgba(18, 21, 39, .28);
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 64px;

  --c-finance: #059669;
  --c-health: #e11d48;
  --c-productivity: #2563eb;
  --c-dev: #d97706;
  --c-design: #c026d3;
  --c-security: #0891b2;
  --c-life: #7c3aed;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0d14;
    --bg-elev: #131622;
    --bg-sunken: #0f121b;
    --border: #232839;
    --border-strong: #31374c;
    --text: #eceef6;
    --text-2: #a9afc4;
    --text-3: #7b8199;
    --accent: #818cf8;
    --accent-2: #a78bfa;
    --accent-soft: #1d2040;
    --accent-text: #0b0d14;
    --ring: 0 0 0 3px rgba(129, 140, 248, .35);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -10px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 70px -10px rgba(0, 0, 0, .7);
    --c-finance: #34d399;
    --c-health: #fb7185;
    --c-productivity: #60a5fa;
    --c-dev: #fbbf24;
    --c-design: #e879f9;
    --c-security: #22d3ee;
    --c-life: #a78bfa;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0d14;
  --bg-elev: #131622;
  --bg-sunken: #0f121b;
  --border: #232839;
  --border-strong: #31374c;
  --text: #eceef6;
  --text-2: #a9afc4;
  --text-3: #7b8199;
  --accent: #818cf8;
  --accent-2: #a78bfa;
  --accent-soft: #1d2040;
  --accent-text: #0b0d14;
  --ring: 0 0 0 3px rgba(129, 140, 248, .35);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -10px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 70px -10px rgba(0, 0, 0, .7);
  --c-finance: #34d399;
  --c-health: #fb7185;
  --c-productivity: #60a5fa;
  --c-dev: #fbbf24;
  --c-design: #e879f9;
  --c-security: #22d3ee;
  --c-life: #a78bfa;
  color-scheme: dark;
}

/* ---------- Base ---------- */
:root { --c: var(--accent); }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--accent); color: var(--accent-text); padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 820px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 750; letter-spacing: -.02em; font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 70%, transparent);
}
.brand-mark svg { width: 18px; height: 18px; }
.site-nav { display: flex; gap: 4px; margin-left: 8px; }
.site-nav a { color: var(--text-2); padding: 8px 12px; border-radius: 8px; font-size: .93rem; font-weight: 550; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); background: var(--bg-sunken); text-decoration: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.search-trigger {
  display: flex; align-items: center; gap: 10px; min-width: 240px;
  height: 40px; padding: 0 10px 0 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg-elev); color: var(--text-3);
  cursor: pointer; font-size: .92rem; box-shadow: var(--shadow-sm);
}
.search-trigger:hover { border-color: var(--border-strong); color: var(--text-2); }
.search-trigger .kbd { margin-left: auto; }
.kbd {
  font-family: var(--font); font-size: .72rem; font-weight: 600; color: var(--text-3);
  border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px;
  padding: 1px 6px; background: var(--bg-sunken);
}

.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; flex: none;
  border-radius: 10px; border: 1px solid var(--border); background: var(--bg-elev);
  color: var(--text-2); cursor: pointer; box-shadow: var(--shadow-sm);
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn svg { width: 18px; height: 18px; }

@media (max-width: 760px) {
  .site-nav { display: none; }
  .search-trigger { min-width: 0; width: 40px; padding: 0; justify-content: center; }
  .search-trigger .label, .search-trigger .kbd { display: none; }
}

/* ---------- Buttons & form controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, background-color .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--text)); }
.btn-secondary { background: var(--bg-elev); border-color: var(--border); color: var(--text); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--border-strong); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--bg-sunken); color: var(--text); }
.btn-sm { height: 34px; padding: 0 12px; font-size: .85rem; border-radius: 8px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: .85rem; font-weight: 600; color: var(--text-2); }
.input, .select, .textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg-elev); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--border-strong); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.textarea { resize: vertical; font-family: var(--mono); font-size: .9rem; line-height: 1.5; }
.select {
  appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23767c95' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group .addon {
  display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--border); border-left: 0;
  border-radius: 0 10px 10px 0; background: var(--bg-sunken); color: var(--text-3); font-size: .9rem;
}
input[type="range"] { width: 100%; accent-color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 28px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -64px 0 auto; height: 420px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 240px at 15% 20%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(500px 220px at 85% 0%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 70%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 650;
  color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: 99px; margin-bottom: 18px;
}
.eyebrow svg { width: 14px; height: 14px; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; letter-spacing: -.035em; max-width: 780px; }
.hero h1 .grad { background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.13rem; color: var(--text-2); max-width: 640px; }
.hero-search {
  margin-top: 26px; max-width: 640px; position: relative;
}
.hero-search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-3); width: 20px; height: 20px; pointer-events: none; }
.hero-search input {
  width: 100%; height: 54px; padding: 0 92px 0 48px; border-radius: 14px; font-size: 1.02rem;
  border: 1px solid var(--border); background: var(--bg-elev); color: var(--text); box-shadow: var(--shadow);
}
.hero-search input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring), var(--shadow); }
.hero-search .kbd { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; color: var(--text-3); font-size: .9rem; }
.hero-stats span { display: inline-flex; align-items: center; gap: 7px; }
.hero-stats svg { width: 16px; height: 16px; color: var(--ok); }

/* ---------- Toolbar / chips ---------- */
.toolbar {
  position: sticky; top: var(--header-h); z-index: 30; padding: 12px 0;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; gap: 12px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px; flex: 1; }
@media (max-width: 760px) { .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 2px 20px; } }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--border);
  background: var(--bg-elev); color: var(--text-2); font-size: .88rem; font-weight: 600; cursor: pointer;
}
.chip svg { width: 15px; height: 15px; }
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip .count { font-size: .75rem; opacity: .65; font-variant-numeric: tabular-nums; }
.sort-select { width: auto; min-height: 36px; height: 36px; padding-top: 0; padding-bottom: 0; font-size: .88rem; border-radius: 99px; }

/* ---------- Sections ---------- */
.section { padding: 18px 0 30px; }
.section-head { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-head h2 { font-size: 1.15rem; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 8px; }
.section-head h2 svg { width: 18px; height: 18px; color: var(--text-3); }
.section-head .meta { color: var(--text-3); font-size: .88rem; }
.link-btn { background: none; border: 0; color: var(--text-3); cursor: pointer; font-size: .85rem; padding: 4px 6px; border-radius: 6px; }
.link-btn:hover { color: var(--text); background: var(--bg-sunken); }

/* ---------- Tool cards ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }
.grid-compact { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }

.card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 20px; border-radius: var(--radius); background: var(--bg-elev);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  color: var(--text);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 45%, var(--border)); text-decoration: none; }
.card:focus-within { border-color: var(--c); }
[data-cat="finance"] { --c: var(--c-finance); }
[data-cat="health"] { --c: var(--c-health); }
[data-cat="productivity"] { --c: var(--c-productivity); }
[data-cat="dev"] { --c: var(--c-dev); }
[data-cat="design"] { --c: var(--c-design); }
[data-cat="security"] { --c: var(--c-security); }
[data-cat="life"] { --c: var(--c-life); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tool-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none;
  color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 22%, transparent);
}
.tool-icon svg { width: 23px; height: 23px; }
.card h3 { font-size: 1.04rem; font-weight: 700; margin: 4px 0 0; }
.card h3 a { color: inherit; }
.card h3 a:hover { text-decoration: none; }
/* Whole card is clickable via the title link. */
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.card p { margin: 0; color: var(--text-2); font-size: .91rem; line-height: 1.5; }
.card-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; font-size: .8rem; color: var(--text-3); }
.cat-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.cat-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 99px;
  font-size: .7rem; font-weight: 750; letter-spacing: .03em; text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent);
}
.badge-new { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.fav-btn {
  position: relative; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 9px; border: 0; background: transparent; color: var(--text-3); cursor: pointer;
  opacity: 0; transition: opacity .15s, color .15s, background-color .15s;
}
.fav-btn svg { width: 18px; height: 18px; }
.card:hover .fav-btn, .fav-btn:focus-visible, .fav-btn[aria-pressed="true"] { opacity: 1; }
.fav-btn:hover { background: var(--bg-sunken); color: var(--text); }
.fav-btn[aria-pressed="true"] { color: #f59e0b; }
.fav-btn[aria-pressed="true"] svg { --icon-fill: currentColor; }
@media (hover: none) { .fav-btn { opacity: 1; } }
.card-badges { display: flex; align-items: center; gap: 4px; }

/* Compact (recents / favourites) */
.mini {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 12px; background: var(--bg-elev); border: 1px solid var(--border); color: var(--text);
  transition: border-color .15s, transform .15s;
}
.mini:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--border)); text-decoration: none; transform: translateY(-1px); }
.mini .tool-icon { width: 38px; height: 38px; border-radius: 10px; }
.mini .tool-icon svg { width: 19px; height: 19px; }
.mini strong { font-size: .93rem; font-weight: 650; display: block; }
.mini span { font-size: .8rem; color: var(--text-3); }

.empty {
  text-align: center; padding: 56px 20px; color: var(--text-3); border: 1px dashed var(--border-strong); border-radius: var(--radius);
}
.empty svg { width: 32px; height: 32px; margin: 0 auto 10px; }

/* ---------- Feature strip ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.feature { padding: 20px; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--border); }
.feature svg { width: 22px; height: 22px; color: var(--accent); margin-bottom: 12px; }
.feature h3 { font-size: 1rem; margin-bottom: 6px; }
.feature p { color: var(--text-2); font-size: .9rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 14px 0; font-weight: 650; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-3); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); margin: 0 0 14px; }

/* ---------- Panels (tool pages) ---------- */
.page-head { padding: 36px 0 20px; }
.breadcrumbs { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--text-3); margin-bottom: 14px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--text-3); }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs svg { width: 14px; height: 14px; }
.page-head h1 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; display: flex; align-items: center; gap: 14px; }
.page-head h1 .tool-icon { width: 48px; height: 48px; }
.page-head p { color: var(--text-2); font-size: 1.05rem; max-width: 720px; margin: 0; }
.panel { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h2 { font-size: 1rem; margin: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .cols-2 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .cols-3 { grid-template-columns: 1fr; } }
.stat { padding: 16px; border-radius: 12px; background: var(--bg-sunken); border: 1px solid var(--border); }
.stat .k { font-size: .8rem; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.stat .v { font-size: 1.5rem; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 4px; word-break: break-word; }
.segmented { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--bg-sunken); border: 1px solid var(--border); flex-wrap: wrap; }
.segmented button {
  border: 0; background: transparent; color: var(--text-2); padding: 7px 14px; border-radius: 8px; font-weight: 600; font-size: .88rem; cursor: pointer;
}
.segmented button[aria-pressed="true"], .segmented button[aria-selected="true"] { background: var(--bg-elev); color: var(--text); box-shadow: var(--shadow-sm); }
.table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: 12px; }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.table th, .table td { padding: 10px 14px; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table th:first-child, .table td:first-child { text-align: left; }
.table thead th { position: sticky; top: 0; background: var(--bg-sunken); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); }
.table tbody tr:last-child td { border-bottom: 0; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; font-size: .9rem; }
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.alert-error { background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent); }
.alert-ok { background: color-mix(in srgb, var(--ok) 10%, transparent); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 25%, transparent); }
.muted { color: var(--text-3); }
.mono { font-family: var(--mono); }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; z-index: 90;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: .9rem; font-weight: 600;
  box-shadow: var(--shadow-lg); transition: opacity .2s, transform .2s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Prose (info & legal pages, tool guides) ---------- */
.prose { color: var(--text-2); font-size: 1.01rem; line-height: 1.7; }
.prose h2 { color: var(--text); font-size: 1.35rem; margin: 2em 0 .6em; }
.prose h3 { color: var(--text); font-size: 1.08rem; margin: 1.6em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: .35em 0; }
.prose strong { color: var(--text); }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--bg-sunken); padding: 2px 6px; border-radius: 6px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 48px; border-top: 1px solid var(--border); background: var(--bg-elev); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding: 44px 0 28px; }
.footer-grid h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text-2); font-size: .92rem; }
.footer-grid a:hover { color: var(--text); }
.footer-about p { color: var(--text-3); font-size: .9rem; max-width: 320px; margin-top: 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0 28px; border-top: 1px solid var(--border); color: var(--text-3); font-size: .85rem; }
.footer-bottom a { color: var(--text-3); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
