

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("/fonts/manrope-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url("/fonts/manrope-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url("/fonts/manrope-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url("/fonts/fraunces-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --canvas: #fafafa;
  --bg: #ffffff;
  --surface: #ffffff;
  --fg: #121614;
  --muted: #5c6560;
  --muted-2: #5a635d;
  --border: #e8eae8;
  --border-strong: #cdd2ce;
  --accent: #0f766e;
  --accent-hover: #0d5f59;
  --accent-fg: #ffffff;
  --accent-soft: #e7f6f3;
  --sheet-head-bg: #f0f2f0;
  --sheet-stripe: #f7f8f7;
  --sheet-hover: #e8f5f2;
  --yes-bg: #d8f3e4;
  --yes-fg: #084c24;
  --no-bg: #eef0ee;
  --no-fg: #3f4742;
  --shadow: 0 1px 2px rgba(18,22,20,0.04), 0 8px 24px rgba(18,22,20,0.06);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 7px;
  --ph-cta: #0f766e;
  --ph-cta-hover: #0d5f59;
  --ph-sidebar-bg: #f5f6f4;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0c0f0e;
    --bg: #101412;
    --surface: #161b19;
    --fg: #eef2ef;
    --muted: #9aa49e;
    --muted-2: #6f7973;
    --border: #252b28;
    --border-strong: #343c38;
    --accent: #2dd4bf;
    --accent-hover: #5eead4;
    --accent-fg: #042f2e;
    --accent-soft: #143532;
    --sheet-head-bg: rgba(22, 27, 25, 0.92);
    --sheet-stripe: #121714;
    --sheet-hover: #1a2a27;
    --yes-bg: #143a24;
    --yes-fg: #56dc8c;
    --no-bg: #1e2421;
    --no-fg: #8a938d;
    --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.35);
    --ph-sidebar-bg: #141916;
  }
}
* { box-sizing: border-box; }
html { background: var(--canvas); }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--canvas);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--accent-fg); }
a { color: var(--accent); }

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 2rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #121614;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
}
@media (prefers-color-scheme: dark) {
  .brand-mark { background: #eef2ef; color: #101412; }
}
.site-header nav { display: flex; gap: 0.25rem; }
.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.site-header nav a:hover { color: var(--fg); background: var(--canvas); }

main { width: 100%; margin: 0; padding: 2rem; }
.site-footer {
  width: 100%;
  margin: 2.5rem 0 0;
  padding: 2.25rem 2rem 1.75rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.75rem 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand { max-width: 34ch; }
.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  transition: opacity 0.15s;
}
.footer-brand-link:hover { opacity: 0.72; }
.footer-tagline {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.15rem;
  align-items: center;
}
.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.footer-nav a:hover { color: var(--fg); background: var(--canvas); }
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.15rem;
}
.footer-copy,
.footer-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted-2);
  line-height: 1.45;
}
.footer-note { max-width: 52ch; }
@media (max-width: 640px) {
  .site-footer { padding: 1.75rem 1.25rem 1.5rem; }
  .footer-main { flex-direction: column; gap: 1.25rem; }
  .footer-nav { margin-left: -0.35rem; }
  .footer-meta { flex-direction: column; gap: 0.35rem; }
}

/* Typography */
h1 { margin: 0 0 0.35rem; font-family: "Fraunces", Georgia, serif; font-optical-sizing: auto; font-size: 1.95rem; font-weight: 600; letter-spacing: -0.03em; }
h2 { font-weight: 700; letter-spacing: -0.01em; }
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.lede { color: var(--muted); font-size: 1.02rem; max-width: 62ch; margin: 0 0 1.25rem; line-height: 1.55; }
.stat-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}
.stat-chip strong { color: var(--fg); font-weight: 700; }

/* Toolbar / filters */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  padding: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}
.search-box {
  position: relative;
  flex: 1 1 220px;
  min-width: 180px;
}
.search-box svg { position: absolute; left: 0.65rem; top: 50%; transform: translateY(-50%); opacity: 0.45; pointer-events: none; }
.toolbar input[type="text"] {
  width: 100%;
  padding: 0.55rem 0.75rem 0.55rem 2.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--canvas);
  color: var(--fg);
  font-size: 0.9rem;
  font-family: inherit;
}
.toolbar input[type="text"]:focus, .toolbar select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.toolbar select {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--canvas);
  color: var(--fg);
  font-size: 0.9rem;
  font-family: inherit;
}
.chip-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--canvas);
  color: var(--muted);
  font-size: 0.86rem;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip-toggle:has(input:checked) {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

/* Cards / grid (free tools) */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0.9rem; }
.tool-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  background: var(--surface);
  text-decoration: none;
  color: var(--fg);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.tool-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-1px); }
.tool-card .tool-name { font-weight: 700; }
.tool-card .tool-price { color: var(--muted); font-size: 0.88rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.15rem; }
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
}
.empty-state {
  color: var(--muted);
  padding: 3rem 1rem;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
}

/* Avatar / logo */
.tool-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
}
.tool-logo-md { width: 34px; height: 34px; border-radius: 10px; }
.tool-logo-lg { width: 56px; height: 56px; border-radius: 14px; }
.tool-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
  display: block;
}
.tool-logo-lg img { padding: 6px; }
.tool-logo-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  background: hsl(var(--hue), 28%, 92%);
  color: hsl(var(--hue), 45%, 28%);
}
.tool-logo-md .tool-logo-fallback { font-size: 0.9rem; }
.tool-logo-lg .tool-logo-fallback { font-size: 1.4rem; }
.tool-logo.is-fallback .tool-logo-fallback { display: inline-flex; }
.tool-logo.is-fallback img { display: none; }
@media (prefers-color-scheme: dark) {
  .tool-logo { background: #1a1f1d; }
  .tool-logo-fallback {
    background: hsl(var(--hue), 20%, 18%);
    color: hsl(var(--hue), 45%, 72%);
  }
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
  background: hsl(var(--hue), 28%, 92%);
  color: hsl(var(--hue), 45%, 28%);
  border: 1px solid hsl(var(--hue), 20%, 84%);
}
@media (prefers-color-scheme: dark) {
  .avatar {
    background: hsl(var(--hue), 20%, 18%);
    color: hsl(var(--hue), 45%, 72%);
    border-color: hsl(var(--hue), 18%, 28%);
  }
}
.avatar-lg { width: 56px; height: 56px; border-radius: 14px; font-size: 1.4rem; }

/* Tool detail — Product Hunt-inspired layout */
.page-tool main { max-width: 1120px; margin: 0 auto; padding: 1.75rem 1.5rem 2.5rem; }
.ph-page {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
.ph-main { min-width: 0; }
.ph-sidebar {
  min-width: 0;
  position: sticky;
  top: 4.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
@media (max-width: 900px) {
  .ph-page { grid-template-columns: 1fr; gap: 1.5rem; }
  .ph-sidebar { position: static; }
  .ph-visit-outline { display: none !important; }
}

/* Header */
.ph-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 0.85rem;
}
.ph-header-left {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
}
.ph-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
  object-fit: contain;
  border: 1px solid var(--border);
  background: #fff;
  padding: 6px;
}
.ph-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  background: hsl(var(--hue), 28%, 92%);
  color: hsl(var(--hue), 45%, 28%);
}
@media (prefers-color-scheme: dark) {
  .ph-logo { background: #1a1f1d; }
  .ph-logo-fallback { background: hsl(var(--hue), 20%, 18%); color: hsl(var(--hue), 45%, 72%); }
}
.ph-header-text { min-width: 0; }
.ph-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.ph-title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.ph-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  color: white;
  letter-spacing: 0.01em;
}
.ph-tagline {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.45;
}
.ph-meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted-2);
}
.ph-visit-outline {
  flex-shrink: 0;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s;
}
.ph-visit-outline:hover {
  border-color: var(--muted);
  background: var(--canvas);
}

/* Category link */
.ph-category-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
}
.ph-category-link:hover { color: var(--accent); }
.ph-category-icon { opacity: 0.55; font-size: 0.9rem; }

/* Main content */
.ph-content { margin-top: 0.25rem; }
.ph-section { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.ph-section-first { margin-top: 1.25rem; padding-top: 0; border-top: 0; }
.ph-section-title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.ph-body-text {
  margin: 0 0 0.9rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--fg);
}
.ph-callouts {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
}
@media (min-width: 720px) {
  .ph-callouts { grid-template-columns: repeat(3, 1fr); }
}
.ph-callout {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}
.ph-callout-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  margin: 0 0 0.35rem;
  font-weight: 700;
}
.ph-callout p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--fg);
}
.ph-snap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}
@media (min-width: 720px) {
  .ph-snap-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.ph-snap-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  background: var(--bg);
}
.ph-snap-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-2);
  font-weight: 700;
}
.ph-snap-value {
  margin-top: 0.25rem;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.35;
}
.ph-alt-grid {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}
@media (min-width: 640px) {
  .ph-alt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ph-alt-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: var(--bg);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.ph-alt-card:hover {
  border-color: var(--border-strong);
  background: var(--canvas);
}
.ph-alt-name { font-weight: 700; font-size: 0.95rem; }
.ph-alt-meta { font-size: 0.8rem; color: var(--muted); margin-top: 0.1rem; }
.ph-faq-list { display: flex; flex-direction: column; gap: 0.5rem; }
.ph-faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  background: var(--bg);
}
.ph-faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.ph-faq-item summary::-webkit-details-marker { display: none; }
.ph-faq-item p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}
.ph-muted { color: var(--muted); font-size: 0.92rem; line-height: 1.55; margin: 0; }
.ph-verify { margin-top: 1rem; font-size: 0.82rem; color: var(--muted-2); }
.ph-verify a { color: var(--accent); }
.ph-fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
}
.ph-fact-chip {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.ph-fact-chip-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-2);
  margin-bottom: 0.2rem;
}
.ph-fact-chip-value { font-size: 0.92rem; font-weight: 700; }

/* Price history timeline */
.ph-timeline { list-style: none; margin: 0; padding: 0; }
.ph-timeline li {
  position: relative;
  padding: 0 0 1rem 1.2rem;
  border-left: 2px solid var(--border);
  margin-left: 0.25rem;
}
.ph-timeline li:last-child { border-color: transparent; padding-bottom: 0; }
.ph-timeline li::before {
  content: "";
  position: absolute;
  left: -5.5px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
  border: 2px solid var(--surface);
}
.ph-timeline li:first-child::before { background: var(--ph-cta); }
.ph-tl-date { font-size: 0.76rem; color: var(--muted-2); font-weight: 600; }
.ph-tl-value { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92rem; margin-top: 0.1rem; }

/* Sidebar */
.ph-sidebar-card {
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--ph-sidebar-bg);
  margin-bottom: 0.5rem;
}
.ph-sidebar-price-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}
.ph-sidebar-price {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.ph-sidebar-price-muted { font-size: 1rem; font-weight: 600; font-family: inherit; color: var(--muted); }
.ph-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--ph-cta);
  color: var(--accent-fg);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background 0.15s, transform 0.1s;
}
.ph-cta-btn:hover { background: var(--ph-cta-hover); }
.ph-sidebar-actions {
  display: flex;
  flex-direction: column;
  padding: 0.25rem 0;
}
.ph-sidebar-action {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.15rem;
  color: var(--fg);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background 0.12s;
}
.ph-sidebar-action:hover { background: var(--canvas); color: var(--accent); }
.ph-action-icon {
  width: 1.1rem;
  text-align: center;
  opacity: 0.45;
  font-size: 0.85rem;
}
.ph-sidebar-info, .ph-sidebar-browse {
  padding: 0.75rem 0.15rem 0;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.ph-sidebar-info-title {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--fg);
}
.ph-info-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0;
  font-size: 0.84rem;
}
.ph-info-label { color: var(--muted); }
.ph-info-value { font-weight: 600; text-align: right; }
.ph-external-link {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.84rem;
  color: var(--muted);
  text-decoration: none;
}
.ph-external-link:hover { color: var(--accent); }
.ph-sidebar-cat-list { display: flex; flex-direction: column; gap: 0.1rem; }
.ph-sidebar-cat {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0;
  font-size: 0.84rem;
  color: var(--fg);
  text-decoration: none;
}
.ph-sidebar-cat:hover { color: var(--accent); }
.ph-sidebar-cat.is-current { font-weight: 700; color: var(--accent); }
.ph-sidebar-cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: hsl(var(--hue), 65%, 52%);
}
.ph-sidebar-cat-count {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 0.78rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}
.panel h2 { font-size: 1.05rem; margin: 0 0 0.9rem; }
.price-box {
  background: var(--accent-soft);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}
.price-box .price-value { font-size: 1.6rem; font-weight: 800; color: var(--accent); font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.price-box .price-label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.3rem;
  background: var(--accent);
  color: var(--accent-fg);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.15s;
}
.cta-button:hover { background: var(--accent-hover); }
.verify-note { color: var(--muted-2); font-size: 0.82rem; margin-top: 0.65rem; }

/* Price history timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative;
  padding: 0 0 1.1rem 1.35rem;
  border-left: 2px solid var(--border);
  margin-left: 0.35rem;
}
.timeline li:last-child { border-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -6.5px;
  top: 3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
}
.timeline li:first-child::before { background: var(--yes-fg); }
.timeline .tl-date { font-size: 0.76rem; color: var(--muted-2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.timeline .tl-value { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.95rem; margin-top: 0.15rem; }

/* Spreadsheet-style directory table */
.sheet-wrap {
  border: 1px solid #d5dad6;
  border-radius: var(--radius-lg);
  overflow: auto;
  max-height: 76vh;
  background: #ffffff;
  box-shadow:
    0 1px 2px rgba(18,22,20,0.05),
    0 10px 28px rgba(18,22,20,0.07);
}
table.sheet {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
  background: #ffffff;
}
table.sheet col.col-num { width: 3.5%; }
table.sheet col.col-name { width: 32.5%; }
table.sheet col.col-category { width: 12.5%; }
table.sheet col.col-price { width: 18.5%; }
table.sheet col.col-free { width: 33%; }
table.sheet th, table.sheet td {
  padding: 0.72rem 0.95rem;
  text-align: left;
  border-bottom: 1px solid #e6e9e6;
  white-space: nowrap;
}
table.sheet thead th {
  position: sticky;
  top: 0;
  background: #eef1ef;
  backdrop-filter: none;
  color: #3f4743;
  font-weight: 800;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  z-index: 1;
  box-shadow: inset 0 -1px 0 #d5dad6;
}
table.sheet thead th a { color: inherit; }
table.sheet tbody tr { transition: background 0.1s; background: #ffffff; }
table.sheet tbody tr:nth-child(even) { background: #f6f7f6; }
table.sheet tbody tr:hover { background: #eaf6f3; }
table.sheet td.rownum, table.sheet th.rownum {
  color: #7a847e;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  font-weight: 600;
}
table.sheet td.name-cell {
  vertical-align: middle;
}
.name-cell-inner {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.tool-name-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1 1 auto;
  color: #121614;
  font-weight: 700;
  text-decoration: none;
  touch-action: manipulation;
}
.tool-name-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tool-name-link:hover { color: var(--accent); }
table.sheet td:nth-child(3),
table.sheet td:nth-child(4) {
  overflow: hidden;
  text-overflow: ellipsis;
}
table.sheet td.price-cell {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  font-weight: 600;
  color: #1a1f1c;
}

.pill {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 650;
  white-space: nowrap;
}
.pill-yes { background: var(--yes-bg); color: var(--yes-fg); }
.pill-trial { background: color-mix(in srgb, var(--yes-bg) 55%, var(--accent, #c4a35a) 45%); color: var(--yes-fg); }
.pill-no { background: var(--no-bg); color: var(--no-fg); }
.free-access-cell {
  white-space: normal;
  vertical-align: middle;
}
.free-access-cell-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  max-width: 100%;
}
.free-access-cell .pill:not(.pill-card-no):not(.pill-card-yes) {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  flex: 0 1 auto;
  width: fit-content;
  max-width: 100%;
  white-space: normal;
  line-height: 1.35;
}
.pill-card-no,
.pill-card-yes {
  flex-shrink: 0;
  padding: 0.12rem 0.42rem;
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.pill-card-no {
  background: var(--canvas);
  color: var(--muted);
  border: 1px solid var(--border-strong);
}
@media (prefers-color-scheme: dark) {
  .pill-card-no {
    background: color-mix(in srgb, var(--yes-fg) 8%, var(--surface));
    color: var(--yes-fg);
    border-color: color-mix(in srgb, var(--yes-fg) 28%, var(--border));
  }
}
.pill-card-yes {
  background: #fef3c7;
  color: #92400e;
}
@media (prefers-color-scheme: dark) {
  .pill-card-yes {
    background: color-mix(in srgb, #fbbf24 18%, var(--surface));
    color: #fbbf24;
    border: 1px solid color-mix(in srgb, #fbbf24 35%, var(--border));
  }
}
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 650;
  white-space: nowrap;
  text-decoration: none;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--border);
}

/* ── Homepage ── */
.page-home main { padding: 0; max-width: none; background: #fafafa; }
.page-home .site-header {
  background: rgba(255,255,255,0.88);
  border-bottom: 1px solid var(--border);
}
@media (prefers-color-scheme: dark) {
  .page-home .site-header { background: rgba(14,15,20,0.9); }
}
.page-home .site-header nav a[href="/"] { color: var(--fg); font-weight: 600; }

.home-page { width: 100%; }

.home-hero {
  border-bottom: 1px solid var(--border);
  background: #ffffff;
  padding: 3.25rem 2rem 3.5rem;
}
@media (prefers-color-scheme: dark) {
  .home-hero {
    background: var(--canvas);
  }
}
.home-hero-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 3rem;
  align-items: center;
}
.home-hero-copy { min-width: 0; }
.home-brand {
  margin: 0 0 1rem;
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  font-size: 1.2rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.home-title {
  margin: 0 0 1rem;
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  font-size: clamp(2.4rem, 4.4vw, 3.55rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.06;
  color: var(--fg);
}
.home-lede {
  margin: 0 0 1.75rem;
  max-width: 38ch;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
}
.home-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
}
.home-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.35rem;
  border-radius: 10px;
  background: #121614;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 650;
  transition: background 0.15s, transform 0.15s;
}
.home-cta-primary:hover { background: #000; transform: translateY(-1px); }
.home-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--fg);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s;
}
.home-cta-secondary:hover { border-color: var(--fg); background: var(--bg); }
@media (prefers-color-scheme: dark) {
  .home-cta-primary { background: #f8fafc; color: #0f172a; }
  .home-cta-primary:hover { background: #fff; }
}
.home-proof {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.home-proof strong { color: var(--fg); font-weight: 700; }

.home-hero-visual {
  min-width: 0;
  position: relative;
}
.hero-sheet {
  background: #fff;
  border: 1px solid #d0d4dc;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(15,23,42,0.06),
    0 12px 28px rgba(15,23,42,0.08),
    0 28px 64px rgba(15,23,42,0.12);
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transform-origin: left center;
  animation: hero-sheet-in 0.7s ease-out both;
}
@keyframes hero-sheet-in {
  from { opacity: 0; transform: perspective(1200px) rotateY(-10deg) translateY(12px); }
  to { opacity: 1; transform: perspective(1200px) rotateY(-6deg) rotateX(2deg); }
}
@media (prefers-color-scheme: dark) {
  .hero-sheet {
    background: #16171e;
    border-color: #343744;
    box-shadow:
      0 1px 2px rgba(0,0,0,0.4),
      0 28px 64px rgba(0,0,0,0.55);
  }
}
.hero-sheet-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 0.95rem;
  border-bottom: 1px solid #d8dbe3;
  background: #f3f4f7;
}
@media (prefers-color-scheme: dark) {
  .hero-sheet-chrome {
    background: #12131a;
    border-bottom-color: #2c2f3a;
  }
}
.hero-sheet-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b8bec9;
}
.hero-sheet-dot:nth-child(1) { background: #ff5f57; }
.hero-sheet-dot:nth-child(2) { background: #febc2e; }
.hero-sheet-dot:nth-child(3) { background: #28c840; }
.hero-sheet-label {
  margin-left: 0.45rem;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  color: #4b5563;
}
.hero-sheet-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.86rem;
  color: #14151a;
}
.hero-sheet-table col.col-num { width: 3.5%; }
.hero-sheet-table col.col-name { width: 32.5%; }
.hero-sheet-table col.col-category { width: 12%; }
.hero-sheet-table col.col-price { width: 18%; }
.hero-sheet-table col.col-free { width: 34%; }
@media (prefers-color-scheme: dark) {
  .hero-sheet-table { color: #edeef2; }
}
.hero-sheet-table th,
.hero-sheet-table td {
  padding: 0.72rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid #e4e6ec;
  white-space: nowrap;
}
@media (prefers-color-scheme: dark) {
  .hero-sheet-table th,
  .hero-sheet-table td { border-bottom-color: #2a2d38; }
}
.hero-sheet-table thead th {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #4b5563;
  background: #f7f8fa;
}
@media (prefers-color-scheme: dark) {
  .hero-sheet-table thead th {
    color: #a1a8b5;
    background: #1a1b23;
  }
}
.hero-sheet-table tbody tr:last-child td { border-bottom: none; }
.hero-sheet-table tbody tr:nth-child(even) { background: #f8f9fb; }
@media (prefers-color-scheme: dark) {
  .hero-sheet-table tbody tr:nth-child(even) { background: #13141b; }
}
.hero-sheet-table .prev-num {
  color: #6b7280;
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  font-weight: 600;
}
.hero-sheet-table .prev-name {
  font-weight: 700;
  color: #111827;
  vertical-align: middle;
}
.hero-sheet-table .prev-name-inner {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  overflow: hidden;
}
.hero-sheet-table .prev-name span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (prefers-color-scheme: dark) {
  .hero-sheet-table .prev-name { color: #f3f4f6; }
}
.hero-sheet-table .prev-price {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1f2937;
}
@media (prefers-color-scheme: dark) {
  .hero-sheet-table .prev-price { color: #e5e7eb; }
}
.hero-sheet-table .cat-pill {
  font-weight: 700;
}
.hero-sheet-table .pill {
  font-weight: 700;
}
.hero-sheet-table .pill-yes {
  background: #dcfce7;
  color: #14532d;
}
.hero-sheet-table .pill-trial {
  background: #ccfbf1;
  color: #0f766e;
}
.hero-sheet-table .pill-no {
  background: #eef0f3;
  color: #374151;
}
.hero-sheet-table td.free-access-cell {
  white-space: normal;
}
.hero-sheet-table .free-access-cell .pill:not(.pill-card-no):not(.pill-card-yes) {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  flex: 0 1 auto;
  width: fit-content;
  max-width: 100%;
  white-space: normal;
  line-height: 1.35;
}
.hero-sheet-table .pill-card-no {
  background: #f3f4f7;
  color: #1f2937;
  border-color: #d8dbe3;
}
.hero-sheet-table .pill-card-yes {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
@media (prefers-color-scheme: dark) {
  .hero-sheet-table .pill-card-no {
    background: #1a1b23;
    color: #a1a8b5;
    border-color: #2c2f3a;
  }
  .hero-sheet-table .pill-card-yes {
    background: color-mix(in srgb, #fbbf24 16%, #1a1b23);
    color: #fbbf24;
    border-color: color-mix(in srgb, #fbbf24 30%, #2c2f3a);
  }
}

.home-directory {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 3rem;
  transition: opacity 0.12s ease;
}
.home-directory.is-soft-loading {
  opacity: 0.55;
  pointer-events: none;
}
.home-directory-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.home-directory-title {
  margin: 0 0 0.2rem;
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.home-directory-sub {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.home-directory-sub strong { color: var(--fg); }
.home-free-link {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s;
}
.home-free-link:hover { border-color: var(--fg); }

.home-cat-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.15rem;
}
.home-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s;
}
.home-cat-pill:hover { border-color: var(--border-strong); background: var(--canvas); }
.home-cat-pill.is-active {
  border-color: hsl(var(--hue) 42% 42%);
  background: hsl(var(--hue) 72% 96%);
  box-shadow: inset 0 0 0 1px hsl(var(--hue) 42% 42% / 0.2);
}
.home-cat-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.home-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}
.home-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s;
}
.home-more-link:hover {
  border-color: var(--fg);
  background: var(--canvas);
}

.toolbar-premium {
  position: sticky;
  top: 3.5rem;
  z-index: 10;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border), var(--shadow);
  margin-bottom: 1.5rem;
}
@media (prefers-color-scheme: dark) {
  .toolbar-premium { background: rgba(14,15,20,0.9); }
}
.toolbar-clear {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.toolbar-clear:hover { color: var(--fg); background: var(--canvas); }

.sheet-premium {
  border-radius: 14px;
  border: 1px solid #cfd5d1;
  background: #ffffff;
  box-shadow:
    0 1px 2px rgba(18,22,20,0.06),
    0 14px 36px rgba(18,22,20,0.1);
  max-height: none;
}
.sheet-premium table.sheet thead th {
  padding: 0.9rem 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  background: #e9ecea;
  color: #2f3632;
}
.sheet-premium table.sheet td {
  padding: 0.85rem 1rem;
}
.sheet-premium table.sheet tbody tr {
  transition: background 0.12s, box-shadow 0.12s;
}
.sheet-premium table.sheet tbody tr:hover {
  background: #e5f4f0;
  box-shadow: inset 3px 0 0 #0f766e;
}
@media (prefers-color-scheme: dark) {
  .sheet-premium {
    border-color: var(--border-strong);
    background: var(--surface);
  }
  .sheet-premium table.sheet thead th {
    background: var(--sheet-head-bg);
    color: var(--muted);
  }
  .sheet-premium table.sheet tbody tr:hover {
    background: var(--sheet-hover);
    box-shadow: inset 3px 0 0 var(--accent);
  }
}
.sheet-premium .sort-link { text-decoration: none; color: inherit; }
.sheet-premium .sort-link.is-active { color: var(--accent); }
.sort-arrow { margin-left: 0.15rem; opacity: 0.7; }
.avatar-md { width: 34px; height: 34px; border-radius: 10px; font-size: 0.9rem; }
.sheet-premium td.name-cell { position: relative; }
.sheet-premium .tool-name-link { transition: color 0.12s; }
.sheet-premium tbody tr.tool-row { cursor: pointer; }
.sheet-premium .row-arrow {
  margin-left: auto;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s, transform 0.15s;
  color: var(--fg);
  flex-shrink: 0;
}
.sheet-premium tr:hover .row-arrow { opacity: 1; transform: translateX(0); }
.price-empty { color: var(--muted-2); }
.tags-cell .tags { margin-top: 0; }
.notes-cell {
  max-width: 42ch;
  white-space: normal;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

/* Built-in free tools (interactive) */
.ft-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.ft-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.25rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-decoration: none;
  color: var(--fg);
  box-shadow: var(--shadow);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.ft-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(15,23,42,0.1);
}
.ft-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.ft-card-title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.ft-card-desc {
  margin: 0;
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}
.ft-card-cta {
  margin-top: 0.35rem;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--fg);
}
.ft-card:hover .ft-card-cta { text-decoration: underline; }

.ft-open-link {
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
}
.ft-open-link:hover { text-decoration: underline; }
.ft-panel {
  margin-top: 0.5rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.ft-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}
.ft-form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
}
.ft-form-row .ft-field { flex: 1 1 140px; }
.ft-field { display: flex; flex-direction: column; gap: 0.35rem; }
.ft-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-2);
}
.ft-field input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--canvas);
  color: var(--fg);
  font: inherit;
  font-size: 0.95rem;
}
.ft-field input:focus {
  outline: 2px solid #111827;
  outline-offset: 1px;
}
@media (prefers-color-scheme: dark) {
  .ft-field input:focus { outline-color: #f8fafc; }
}
.ft-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}
.ft-results-stack { grid-template-columns: 1fr; }
.ft-result {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: var(--canvas);
  border: 1px solid var(--border);
}
.ft-result-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-2);
  margin-bottom: 0.25rem;
}
.ft-result-value {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--fg);
  word-break: break-word;
}
.ft-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  border: none;
  border-radius: var(--radius-sm);
  background: #111827;
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
}
.ft-btn:hover { background: #000; }
@media (prefers-color-scheme: dark) {
  .ft-btn { background: #f8fafc; color: #0f172a; }
  .ft-btn:hover { background: #fff; }
}
.ft-btn-ghost {
  margin-top: 0.65rem;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border-strong);
}
.ft-btn-ghost:hover { background: var(--canvas); }
.ft-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--canvas);
  color: var(--fg);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  resize: vertical;
}
.ft-hint {
  display: inline-block;
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  color: var(--muted-2);
}
.ft-sidebar-note {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.empty-state-premium {
  padding: 4rem 2rem;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}
.empty-state-premium .empty-icon {
  font-size: 2rem;
  opacity: 0.35;
  margin-bottom: 0.75rem;
}
.empty-state-premium h3 { margin: 0 0 0.35rem; font-size: 1.1rem; }
.empty-state-premium p { margin: 0 0 1.25rem; color: var(--muted); }
.cta-outline {
  background: transparent !important;
  color: var(--fg) !important;
  border: 1px solid var(--border-strong);
}
.cta-outline:hover { background: var(--canvas) !important; }

/* Category / directory sub-pages */
.page-directory main { max-width: 1200px; margin: 0 auto; }
.dir-page { width: 100%; }
.dir-header { margin-bottom: 1.5rem; }
.dir-back {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.dir-back:hover { color: var(--fg); }
.dir-count { margin: 0.5rem 0 0; font-size: 0.88rem; color: var(--muted); }
.dir-count strong { color: var(--fg); }

@media (max-width: 960px) {
  .home-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-sheet { transform: none; animation: none; }
  .home-lede { max-width: none; }
}
@media (max-width: 768px) {
  .site-header { padding: 0.75rem 1rem; }
  main { padding: 1.25rem 1rem 2rem; }
  .home-hero { padding: 2.25rem 1.25rem 2rem; }
  .home-directory { padding: 1.5rem 1.25rem 2.5rem; }
  .home-directory-head { flex-direction: column; align-items: flex-start; }
  .toolbar-premium { top: 3.2rem; }
  .hero-sheet-table .cat-pill { display: none; }
  .free-access-cell-inner { gap: 0.25rem 0.35rem; }
  .sheet-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  table.sheet { min-width: 34rem; }
  .tool-name-link { min-height: 2.75rem; }
}
@media (max-width: 640px) {
  .home-hero-visual { display: none; }

  .sheet-wrap {
    overflow: visible;
    max-height: none;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  table.sheet {
    display: block;
    width: 100%;
    min-width: 0;
    border-collapse: separate;
  }
  table.sheet colgroup,
  table.sheet thead {
    display: none;
  }
  table.sheet tbody {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }
  table.sheet tr.tool-row {
    display: block;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem 0.95rem;
    background: var(--surface);
    box-shadow: var(--shadow);
  }
  table.sheet tr.tool-row:nth-child(even) {
    background: var(--surface);
  }
  table.sheet tr.tool-row:hover {
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--border-strong);
  }
  table.sheet td {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    white-space: normal;
  }
  table.sheet td.rownum,
  table.sheet td:nth-child(3) {
    display: none;
  }
  table.sheet td.name-cell {
    margin-bottom: 0.45rem;
  }
  .name-cell-inner {
    gap: 0.65rem;
  }
  .tool-name-link {
    min-height: 2.5rem;
    font-size: 1rem;
  }
  .tool-name-text {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
  table.sheet td.price-cell {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 0.35rem;
  }
  table.sheet td.price-cell::before {
    content: "Starting ";
    font-weight: 600;
    color: var(--muted-2);
    font-family: inherit;
  }
  table.sheet td.free-access-cell {
    margin-top: 0.15rem;
  }
  .free-access-cell-inner {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .sheet-premium .row-arrow {
    opacity: 0.35;
    transform: none;
    margin-left: 0.25rem;
  }
}

/* Admin review */
.review-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem;
  margin-bottom: 0.9rem;
  box-shadow: var(--shadow);
}
.review-item .diff-row { display: flex; gap: 0.75rem; margin-top: 0.5rem; font-size: 0.9rem; }
.diff-old { color: var(--no-fg); text-decoration: line-through; font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.diff-new { color: var(--yes-fg); font-weight: 700; font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.btn { border: none; border-radius: var(--radius-sm); padding: 0.45rem 0.9rem; cursor: pointer; font-weight: 600; font-size: 0.85rem; font-family: inherit; }
.btn-approve { background: var(--yes-fg); color: white; }
.btn-reject { background: #d9483f; color: white; }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
