/* Home (Release AF part 2). Only the home page loads this sheet; hub.css stays for the category and features pages.
   Depth comes from layered shadows and lit edges (AE tokens); motion is transform/opacity only and is removed for
   reduced motion. Breakpoints: phone < 640, tablet 640-1023, desktop 1024+, wide 1600+, 4K 2300+ (root font scales). */

:root {
  --hm-ink: #0b0f16;
  --hm-card: #121822;
  --hm-card-2: #171e2a;
  --hm-edge: #ffffff14;
  --hm-edge-2: #ffffff24;
  --hm-hi: inset 0 1px 0 #ffffff12;
  --hm-lift: 0 1px 1px #0000004d, 0 6px 14px #00000038, 0 18px 40px #00000033;
  --hm-lift-up: 0 2px 2px #00000052, 0 12px 26px #00000047, 0 30px 60px #0000003d;
  --hm-win: #0f141c;
  --hm-ease: cubic-bezier(.2, .7, .2, 1);
}
html[data-theme="light"] {
  --hm-ink: #f4f5f8;
  --hm-card: #ffffff;
  --hm-card-2: #f8f9fb;
  --hm-edge: #10182817;
  --hm-edge-2: #10182826;
  --hm-hi: inset 0 1px 0 #ffffff;
  --hm-lift: 0 1px 1px #1018280d, 0 6px 14px #1018280f, 0 18px 40px #10182812;
  --hm-lift-up: 0 2px 2px #10182812, 0 12px 26px #10182817, 0 30px 60px #1018281a;
  --hm-win: #ffffff;
}

/* Category hues: glossy icon tiles in the dock, the cards and the directory. */
.hm-c--image { --c1: #ff7a59; --c2: #e2366f; }
.hm-c--photo-studio { --c1: #f472b6; --c2: #a21caf; }
.hm-c--media { --c1: #f43f5e; --c2: #9f1239; }
.hm-c--docs { --c1: #fbbf24; --c2: #d97706; }
.hm-c--seo { --c1: #38bdf8; --c2: #2563eb; }
.hm-c--security { --c1: #34d399; --c2: #0f766e; }
.hm-c--education { --c1: #facc15; --c2: #ca8a04; }
.hm-c--service-center { --c1: #60a5fa; --c2: #1d4ed8; }
.hm-c--medical { --c1: #2dd4bf; --c2: #0e7490; }
.hm-c--pharmacy { --c1: #4ade80; --c2: #15803d; }
.hm-c--dental { --c1: #67e8f9; --c2: #0891b2; }
.hm-c--surprises { --c1: #f9a8d4; --c2: #db2777; }
.hm-c--tea-shop { --c1: #d6a46c; --c2: #92400e; }
.hm-c--retail { --c1: #a78bfa; --c2: #6d28d9; }
.hm-c--restaurant { --c1: #fb923c; --c2: #1d7536; }
.hm-c--farm { --c1: #a3e635; --c2: #4d7c0f; }
.hm-c--finance { --c1: #5eead4; --c2: #0f766e; }
.hm-c--office-hr { --c1: #94a3b8; --c2: #475569; }
.hm-c--ecommerce { --c1: #fda4af; --c2: #e11d48; }
.hm-c--all { --c1: #a5b4fc; --c2: #6366f1; }

.hm-wrap {
  width: min(100% - 2 * var(--page-pad), var(--page-max));
  margin-inline: auto;
  box-sizing: border-box;
}

/* ── Hero ─────────────────────────────────────────────────────────────────────────────────────────────────────── */
.hm-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(1.25rem, 4vw, 3.5rem) 0 clamp(1rem, 2.5vw, 2rem);
  overflow: hidden;
}
.hm-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 70% at 12% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%),
    radial-gradient(45% 60% at 92% 10%, color-mix(in srgb, var(--brand2) 16%, transparent), transparent 70%),
    linear-gradient(180deg, transparent 60%, var(--bg));
}
.hm-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--hm-edge) 1px, transparent 1px), linear-gradient(90deg, var(--hm-edge) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 60% at 50% 20%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000, transparent 75%);
  opacity: .55;
}
.hm-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}
.hm-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .4rem .85rem .4rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--hm-edge-2);
  background: color-mix(in srgb, var(--hm-card) 80%, transparent);
  box-shadow: var(--hm-hi), 0 1px 2px #0000002e;
  color: var(--text);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--ae-fast) var(--hm-ease), transform var(--ae-fast) var(--hm-ease);
}
.hm-badge:hover { border-color: color-mix(in srgb, var(--brand) 55%, transparent); }
.hm-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px #22c55e33; }
.hm-badge-arrow { color: var(--muted); }
.hm-title { margin: 1rem 0 .9rem; display: grid; gap: .5rem; }
.hm-brand {
  font-size: clamp(2.6rem, 7.2vw, 4.6rem);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 800;
  background: linear-gradient(100deg, var(--text) 0 52%, color-mix(in srgb, var(--brand) 85%, #fff) 74%, var(--brand2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: .06em;
}
.hm-h1-sub {
  font-size: clamp(1.25rem, 2.6vw, 1.85rem);
  line-height: 1.18;
  letter-spacing: -.025em;
  font-weight: 700;
  max-width: 24ch;
}
.hm-lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(.98rem, 1.25vw, 1.12rem);
  line-height: 1.6;
  max-width: 40rem;
  text-wrap: pretty;
}

/* Search: a raised, lit field — the first thing to use on the page. */
.hm-search { position: relative; z-index: 6; margin: 1.5rem 0 0; max-width: 44rem; }
.hm-search-field { position: relative; }
.hm-search-ico {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  transition: color var(--ae-fast);
}
.hm-search-field:focus-within .hm-search-ico { color: var(--brand); }
.hm-search .hm-search-input {
  width: 100%;
  min-height: 60px;
  padding: 1rem 3.4rem 1rem 3.2rem;
  border-radius: 18px;
  border: 1px solid var(--hm-edge-2);
  background: linear-gradient(180deg, color-mix(in srgb, var(--hm-card-2) 96%, #fff 4%), var(--hm-card));
  color: var(--text);
  font: inherit;
  font-size: 1.05rem;
  box-shadow: var(--hm-hi), inset 0 -1px 0 #0000001f, var(--hm-lift);
  transition: border-color var(--ae-fast), box-shadow var(--ae-med) var(--hm-ease);
  -webkit-appearance: none;
  appearance: none;
}
.hm-search .hm-search-input:hover { border-color: var(--ae-field-hover); }
.hm-search .hm-search-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--hm-hi), var(--hm-lift-up), var(--ae-ring);
}
.hm-search .hm-search-input::placeholder { color: var(--ae-placeholder); opacity: 1; }
.hm-kbd {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  min-width: 1.6rem;
  padding: .1rem .45rem;
  border-radius: 7px;
  border: 1px solid var(--hm-edge-2);
  border-bottom-width: 2px;
  background: var(--hm-card-2);
  color: var(--muted);
  font: 600 .8rem/1.4 ui-monospace, monospace;
  text-align: center;
}
.hm-search-results {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 8;
  margin-top: .6rem;
  border-radius: 16px;
  box-shadow: var(--hm-lift-up);
}

.hm-quick { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1rem; }
.hm-quick-label { color: var(--muted); font-size: .82rem; font-weight: 600; white-space: nowrap; }
.hx-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.hm-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 40px;
  padding: .45rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--hm-edge-2);
  background: var(--hm-card);
  box-shadow: var(--hm-hi), 0 1px 2px #00000029;
  color: var(--text);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--ae-fast) var(--hm-ease), border-color var(--ae-fast);
}
.hm-chip:hover { border-color: color-mix(in srgb, var(--brand) 50%, transparent); transform: translateY(-1px); }
.hm-chip:active { transform: translateY(1px); }
.hm-chip .ui-ico { width: 16px; height: 16px; color: var(--brand); }

.hm-hero .hx-stats {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
}
.hm-hero .hx-stats li { display: flex; align-items: baseline; gap: .45rem; }
.hm-hero .hx-stats strong { font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; }
.hm-hero .hx-stats span { color: var(--muted); font-size: .82rem; }
.hm-hero .hx-stats .bn-word--short { height: .95em; width: auto; vertical-align: -.12em; fill: currentColor; }

/* Stage: three tool windows in perspective (desktop only; decorative). */
.hm-stage { display: none; }
@media (min-width: 1024px) {
  .hm-hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(2rem, 4vw, 4.5rem); }
  .hm-stage {
    display: block;
    position: relative;
    height: clamp(360px, 30vw, 520px);
    perspective: 1400px;
  }
}
.hm-win {
  position: absolute;
  border-radius: 18px;
  border: 1px solid var(--hm-edge-2);
  background: var(--hm-win);
  box-shadow: var(--hm-hi), var(--hm-lift-up);
  overflow: hidden;
  transform-style: preserve-3d;
}
.hm-win-bar {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .6rem .8rem;
  border-bottom: 1px solid var(--hm-edge);
  background: linear-gradient(180deg, var(--hm-card-2), var(--hm-card));
  font-size: .78rem;
  font-weight: 700;
  color: var(--text);
}
.hm-win-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.hm-win-bar i:nth-child(2) { background: #febc2e; }
.hm-win-bar i:nth-child(3) { background: #28c840; margin-right: .4rem; }
.hm-win-body { padding: .9rem; display: grid; gap: .75rem; }
.hm-win--a { left: 16%; right: 6%; top: 8%; z-index: 3; transform: rotateY(-14deg) rotateX(6deg) translateZ(40px); }
.hm-win--b { left: 0; top: 50%; width: 34%; z-index: 4; transform: rotateY(-10deg) rotateX(4deg) translateZ(90px); }
.hm-win--c { right: 2%; top: 56%; width: 24%; z-index: 4; transform: rotateY(-18deg) rotateX(8deg) translateZ(70px); }
.hm-win--a .hm-art { aspect-ratio: 2 / 1; }
.hm-art { border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; }
.hm-art svg { display: block; width: 100%; height: 100%; }
.hm-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .78rem; color: var(--muted); }
.hm-slider { position: relative; flex: 1; height: 6px; border-radius: 6px; background: var(--hm-edge-2); }
.hm-slider b {
  position: absolute;
  inset: 0 30% 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
}
.hm-slider b::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #fff;
  box-shadow: 0 1px 3px #0000004d;
}
.hm-bars { display: grid; gap: .4rem; }
.hm-bar { height: 10px; border-radius: 6px; background: var(--hm-edge-2); }
.hm-bar--after { width: 28%; background: linear-gradient(90deg, #22c55e, #16a34a); }
.hm-btn {
  justify-self: start;
  padding: .5rem 1rem;
  border-radius: 10px;
  color: var(--on-brand);
  font-size: .8rem;
  font-weight: 700;
  background-image: linear-gradient(180deg, #ffffff2b, #fff0 55%), linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: inset 0 1px 0 #ffffff52, inset 0 -2px 0 #0000002e, 0 6px 16px var(--brand-glow);
}
.hm-checker {
  aspect-ratio: 1;
  padding: 0;
  background-color: #e5e7eb;
  background-image:
    linear-gradient(45deg, #cbd2db 25%, transparent 25%, transparent 75%, #cbd2db 75%),
    linear-gradient(45deg, #cbd2db 25%, transparent 25%, transparent 75%, #cbd2db 75%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
}
.hm-checker svg { display: block; width: 100%; height: 100%; }
.hm-qr { color: var(--text); padding: 1rem; }
.hm-qr svg { display: block; width: 100%; height: auto; }

@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .hm-win--b { animation: hm-float 9s var(--hm-ease) infinite alternate; }
  .hm-win--c { animation: hm-float-c 11s var(--hm-ease) infinite alternate; }
}
@keyframes hm-float { to { transform: rotateY(-10deg) rotateX(4deg) translateZ(90px) translateY(-10px); } }
@keyframes hm-float-c { to { transform: rotateY(-18deg) rotateX(8deg) translateZ(70px) translateY(8px); } }

/* Dock: categories as app icons (scrolls sideways on phones). */
.hm-dock { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.hm-dock-list {
  list-style: none;
  margin: 0;
  padding: .25rem 0 .5rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(5.25rem, 1fr);
  gap: .75rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.hm-dock-list::-webkit-scrollbar { display: none; }
.hm-dock-list li { scroll-snap-align: start; }
.hm-app {
  display: grid;
  justify-items: center;
  gap: .5rem;
  padding: .7rem .25rem .6rem;
  border-radius: 18px;
  color: var(--text);
  text-decoration: none;
  text-align: center;
  transition: background-color var(--ae-fast);
}
.hm-app:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
.hm-app:focus-visible { outline: none; box-shadow: var(--ae-ring); }
.hm-app-ico, .hm-cat-ico, .hm-dir-ico, .hm-tile-ico {
  display: grid;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(180deg, #ffffff47, #fff0 48%),
    linear-gradient(145deg, var(--c1, #a5b4fc), var(--c2, #6366f1));
  box-shadow:
    inset 0 1px 0 #ffffff6b,
    inset 0 -3px 0 #00000033,
    0 2px 3px #00000040,
    0 8px 18px color-mix(in srgb, var(--c2, #6366f1) 38%, transparent);
}
.hm-app-ico { width: 56px; height: 56px; border-radius: 17px; transition: transform var(--ae-fast) var(--hm-ease); }
.hm-app-ico .ui-ico { width: 26px; height: 26px; filter: drop-shadow(0 1px 1px #00000040); }
.hm-app:hover .hm-app-ico { transform: translateY(-2px); }
.hm-app:active .hm-app-ico { transform: translateY(1px) scale(.97); }
.hm-app-name { font-size: .78rem; font-weight: 650; line-height: 1.25; max-width: 7.5rem; }
@media (min-width: 1024px) {
  .hm-dock-list { grid-auto-flow: row; grid-template-columns: repeat(11, minmax(0, 1fr)); overflow: visible; }
}

/* ── Sections ─────────────────────────────────────────────────────────────────────────────────────────────────── */
.hm-main { padding-bottom: 4rem; }
.hm-main .hub-section { margin-block: 0; }
.hm-main .hm-cats.hub-section, .hm-main .hm-dir-cat.hub-section { content-visibility: visible; contain-intrinsic-size: none; }
.hm-main .hm-sec { margin-block: clamp(2.75rem, 6vw, 5rem); }
.hm-main .hm-sec + .hm-sec { margin-top: clamp(2.5rem, 5vw, 4.25rem); }
.hm-main .hm-wrap { margin-inline: auto; }
.hm-head { max-width: 48rem; margin-bottom: 1.4rem; }
.hm-head--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.hm-main .hm-head h2, .hm-main .hm-panel h2 {
  margin: 0 0 .45rem;
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  line-height: 1.15;
  letter-spacing: -.035em;
  font-weight: 800;
}
.hm-lead2 { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.55; }
.hm-link { color: var(--link); font-weight: 650; text-decoration: none; white-space: nowrap; }
.hm-link:hover { text-decoration: underline; }
.hm-sec.hm-wrap { content-visibility: auto; contain-intrinsic-size: auto 700px; }

/* Featured bento */
.hm-bento {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.hm-tile-link {
  position: relative;
  height: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: .35rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--hm-edge);
  background: linear-gradient(180deg, var(--hm-card-2), var(--hm-card));
  box-shadow: var(--hm-hi), var(--hm-lift);
  color: var(--text);
  text-decoration: none;
  transition: transform var(--ae-med) var(--hm-ease), box-shadow var(--ae-med) var(--hm-ease), border-color var(--ae-fast);
}
.hm-tile-link:hover { transform: translateY(-3px); box-shadow: var(--hm-hi), var(--hm-lift-up); border-color: var(--hm-edge-2); }
.hm-tile-link:active { transform: translateY(0); }
.hm-tile-link:focus-visible { outline: none; box-shadow: var(--hm-hi), var(--hm-lift), var(--ae-ring); }
.hm-tile-ico { width: 44px; height: 44px; border-radius: 13px; }
.hm-tile-ico .ui-ico { width: 22px; height: 22px; filter: drop-shadow(0 1px 1px #00000040); }
.hm-tile-name { font-weight: 750; font-size: .98rem; line-height: 1.25; letter-spacing: -.01em; margin-top: .3rem; }
.hm-tile-desc {
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hm-tile-go { color: var(--link); font-size: .82rem; font-weight: 700; margin-top: .25rem; }
.hm-tile--xl { grid-column: span 2; }
.hm-tile--xl .hm-tile-link {
  padding: 1.3rem;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--brand) 20%, transparent), transparent 60%),
    linear-gradient(180deg, var(--hm-card-2), var(--hm-card));
  border-color: color-mix(in srgb, var(--brand) 28%, var(--hm-edge));
}
.hm-tile--xl .hm-tile-ico { width: 56px; height: 56px; border-radius: 16px; }
.hm-tile--xl .hm-tile-ico .ui-ico { width: 28px; height: 28px; }
.hm-tile--xl .hm-tile-name { font-size: 1.2rem; }
.hm-tile--xl .hm-tile-desc { font-size: .92rem; }
.hm-tile--xl:nth-child(2) .hm-tile-link {
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--brand2) 20%, transparent), transparent 60%),
    linear-gradient(180deg, var(--hm-card-2), var(--hm-card));
  border-color: color-mix(in srgb, var(--brand2) 28%, var(--hm-edge));
}
@media (max-width: 639px) {
  .hm-tile-link { padding: .85rem; }
  .hm-tile-desc { -webkit-line-clamp: 2; font-size: .8rem; }
  .hm-tile:not(.hm-tile--xl) .hm-tile-go { display: none; }
}
@media (min-width: 640px) { .hm-bento { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
@media (min-width: 1024px) {
  .hm-bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hm-tile--xl { grid-row: span 2; grid-column: span 2; }
  .hm-tile--xl .hm-tile-link { padding: 1.75rem; grid-template-rows: 1fr auto auto auto; }
  .hm-tile--xl .hm-tile-ico { width: 72px; height: 72px; border-radius: 20px; align-self: start; margin-bottom: 1.25rem; }
  .hm-tile--xl .hm-tile-ico .ui-ico { width: 34px; height: 34px; }
  .hm-tile--xl .hm-tile-name { font-size: 1.55rem; letter-spacing: -.025em; }
  .hm-tile--xl .hm-tile-desc { font-size: 1rem; -webkit-line-clamp: 4; }
}
@media (min-width: 1600px) { .hm-bento { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.hm-more { margin-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem 1rem; }
.hm-more-label { color: var(--muted); font-size: .85rem; font-weight: 650; }
.hm-more-list, .hm-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.hm-more-list a, .hm-pills a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: .4rem .85rem;
  border-radius: 999px;
  border: 1px solid var(--hm-edge);
  background: var(--hm-card);
  box-shadow: var(--hm-hi);
  color: var(--text);
  font-size: .86rem;
  text-decoration: none;
  transition: border-color var(--ae-fast), transform var(--ae-fast) var(--hm-ease);
}
.hm-more-list a:hover, .hm-pills a:hover { border-color: color-mix(in srgb, var(--brand) 45%, transparent); transform: translateY(-1px); }

/* Recently updated: dated cards (a row that scrolls on phones). */
.hm-upd-list {
  list-style: none;
  margin: 0;
  padding: .25rem 0 .75rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(82%, 20rem);
  gap: .85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}
.hm-upd { scroll-snap-align: start; }
.hm-upd-link {
  height: 100%;
  box-sizing: border-box;
  display: grid;
  align-content: start;
  gap: .45rem;
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 18px;
  border: 1px solid var(--hm-edge);
  background: linear-gradient(180deg, var(--hm-card-2), var(--hm-card));
  box-shadow: var(--hm-hi), var(--hm-lift);
  color: var(--text);
  text-decoration: none;
  transition: transform var(--ae-med) var(--hm-ease), box-shadow var(--ae-med) var(--hm-ease);
}
.hm-upd-link:hover { transform: translateY(-3px); box-shadow: var(--hm-hi), var(--hm-lift-up); }
.hm-upd-link:focus-visible { outline: none; box-shadow: var(--hm-hi), var(--hm-lift), var(--ae-ring); }
.hm-upd-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.hm-upd-ico { font-size: 1.4rem; }
.hm-upd time {
  padding: .15rem .55rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  color: #16a34a;
  background: #16a34a1f;
  border: 1px solid #16a34a33;
}
html:not([data-theme="light"]) .hm-upd time { color: #4ade80; }
.hm-upd-name { font-weight: 750; line-height: 1.3; }
.hm-upd-note { color: var(--muted); font-size: .86rem; line-height: 1.5; }
@media (min-width: 1024px) {
  .hm-upd-list { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
}

/* Category cards: raised with a glossy icon block. */
.hm-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.hm-main .hm-cat-grid .cat-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .85rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--hm-edge);
  background: linear-gradient(180deg, var(--hm-card-2), var(--hm-card));
  box-shadow: var(--hm-hi), var(--hm-lift);
  color: var(--text);
  text-decoration: none;
  min-height: 0;
  content-visibility: visible;
  contain-intrinsic-size: none;
  transition: transform var(--ae-med) var(--hm-ease), box-shadow var(--ae-med) var(--hm-ease), border-color var(--ae-fast);
}
.hm-main .hm-cat-grid .cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--hm-hi), var(--hm-lift-up);
  border-color: color-mix(in srgb, var(--c1) 45%, var(--hm-edge));
}
.hm-main .hm-cat-grid .cat-card:focus-visible { outline: none; box-shadow: var(--hm-hi), var(--hm-lift), var(--ae-ring); }
.hm-cat-ico { width: 48px; height: 48px; border-radius: 15px; }
.hm-cat-ico .ui-ico { width: 24px; height: 24px; filter: drop-shadow(0 1px 1px #00000040); }
.hm-cat-body { display: grid; gap: .25rem; min-width: 0; }
.hm-cat-body h3 { margin: 0; font-size: 1rem; line-height: 1.25; letter-spacing: -.01em; }
.hm-cat-body p {
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hm-cat-body .cat-card-meta { margin-top: .3rem; }
.hm-cat-body .cat-card-count { color: var(--link); font-size: .8rem; font-weight: 700; }
@media (max-width: 639px) {
  .hm-main .hm-cat-grid .cat-card { grid-template-columns: 1fr; gap: .6rem; padding: .9rem; }
  .hm-cat-ico { width: 44px; height: 44px; border-radius: 14px; }
  .hm-cat-body h3 { font-size: .92rem; }
  .hm-cat-body p { font-size: .78rem; }
}
@media (min-width: 640px) { .hm-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } }
@media (min-width: 900px) { .hm-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .hm-cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1900px) { .hm-cat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* Directory: one closed panel per category. */
.hm-dir-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; align-items: start; }
@media (min-width: 900px) { .hm-dir-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; } }
@media (min-width: 1600px) { .hm-dir-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hm-dir-cat details {
  border-radius: 16px;
  border: 1px solid var(--hm-edge);
  background: var(--hm-card);
  box-shadow: var(--hm-hi), 0 1px 2px #00000024;
}
.hm-dir-cat details[open] { box-shadow: var(--hm-hi), var(--hm-lift); }
.hm-dir-sum {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: .75rem;
  padding: .7rem .9rem;
  min-height: 56px;
  box-sizing: border-box;
  cursor: pointer;
  list-style: none;
  border-radius: 16px;
}
.hm-dir-sum::-webkit-details-marker { display: none; }
.hm-dir-sum::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--ae-med) var(--hm-ease);
}
.hm-dir-cat details[open] > .hm-dir-sum::after { transform: rotate(225deg) translateY(-2px); }
.hm-dir-sum:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.hm-dir-sum:focus-visible { outline: none; box-shadow: var(--ae-ring); }
.hm-dir-ico { width: 36px; height: 36px; border-radius: 11px; }
.hm-dir-ico .ui-ico { width: 18px; height: 18px; }
.hm-dir-sum h3 { margin: 0; font-size: .98rem; line-height: 1.3; }
.hm-dir-n { color: var(--muted); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.hm-dir-cat .catalog-tiles { padding: .25rem .9rem .5rem; margin: 0; }
.hm-dir-all { display: inline-block; margin: 0 .9rem .9rem; color: var(--link); font-size: .85rem; font-weight: 700; text-decoration: none; }
.hm-dir-all:hover { text-decoration: underline; }

/* Compact tool links inside an open category */
.catalog-tiles {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 11.5rem), 1fr));
  gap: .5rem;
}
.ct-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 48px;
  padding: .5rem .7rem;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid var(--hm-edge);
  background: var(--hm-card-2);
  color: var(--text);
  text-decoration: none;
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.25;
  transition: border-color var(--ae-fast), transform var(--ae-fast) var(--hm-ease);
}
.ct-item:hover { border-color: color-mix(in srgb, var(--brand) 45%, transparent); transform: translateY(-1px); }
.ct-item:focus-visible { outline: none; box-shadow: var(--ae-ring); }
.ct-ico { font-size: 1.1rem; flex: none; }
.ct-name { min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 559px) { .catalog-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* About, how-to, why, questions */
.hm-about { display: grid; gap: 1rem; }
@media (min-width: 1024px) { .hm-about { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.25rem; } }
.hm-panel {
  padding: clamp(1.2rem, 2.5vw, 2rem);
  border-radius: 20px;
  border: 1px solid var(--hm-edge);
  background: linear-gradient(180deg, var(--hm-card-2), var(--hm-card));
  box-shadow: var(--hm-hi), var(--hm-lift);
}
.hm-intro p { color: var(--muted); line-height: 1.7; margin: .9rem 0 0; text-wrap: pretty; }
.hm-intro p.hm-lead2 { margin-top: 0; }
.hm-intro a, .hm-note a, .hm-why-card a, .hm-cta-body a { color: var(--link); text-decoration: none; }
.hm-intro a:hover, .hm-note a:hover, .hm-why-card a:hover, .hm-cta-body a:hover { text-decoration: underline; }
.hm-steps { list-style: none; counter-reset: hm; margin: .9rem 0 0; padding: 0; display: grid; gap: .75rem; }
.hm-steps li { counter-increment: hm; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .75rem; line-height: 1.55; color: var(--text); }
.hm-steps li::before {
  content: counter(hm);
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-weight: 800;
  font-size: .9rem;
  color: var(--on-brand);
  background-image: linear-gradient(180deg, #ffffff2b, #fff0 55%), linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: inset 0 1px 0 #ffffff52, inset 0 -2px 0 #0000002e, 0 4px 10px var(--brand-glow);
}
.hm-note { color: var(--muted); font-size: .9rem; line-height: 1.6; margin: 1rem 0 0; }
.hm-why { display: grid; gap: .85rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .hm-why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .hm-why { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hm-why-card {
  padding: 1.2rem;
  border-radius: 18px;
  border: 1px solid var(--hm-edge);
  background: var(--hm-card);
  box-shadow: var(--hm-hi), 0 1px 2px #00000024;
}
.hm-why-ico {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
}
.hm-why-ico .ui-ico { width: 20px; height: 20px; }
.hm-why-card h3 { margin: .8rem 0 .35rem; font-size: 1rem; }
.hm-why-card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.hm-faq-list { display: grid; gap: .6rem; max-width: 56rem; }
.hm-faq-list .faq-item {
  border-radius: 14px;
  border: 1px solid var(--hm-edge);
  background: var(--hm-card);
  box-shadow: var(--hm-hi);
  content-visibility: visible;
  contain-intrinsic-size: none;
}
.hm-faq-list summary { padding: 1rem 1.1rem; font-weight: 650; cursor: pointer; }
.hm-faq-list summary:focus-visible { outline: none; box-shadow: var(--ae-ring); border-radius: 14px; }
.hm-faq-list p { margin: 0; padding: 0 1.1rem 1rem; color: var(--muted); line-height: 1.6; }
.hm-faq-list a { color: var(--link); }

/* Blog */
.hm-posts { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .hm-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .hm-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hm-post {
  display: grid;
  gap: .45rem;
  padding: .75rem .75rem 1.1rem;
  border-radius: 18px;
  border: 1px solid var(--hm-edge);
  background: var(--hm-card);
  box-shadow: var(--hm-hi), var(--hm-lift);
  color: var(--text);
  text-decoration: none;
  transition: transform var(--ae-med) var(--hm-ease), box-shadow var(--ae-med) var(--hm-ease);
}
.hm-post:hover { transform: translateY(-3px); box-shadow: var(--hm-hi), var(--hm-lift-up); }
.hm-post-cover { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--hm-card-2); }
.hm-post-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hm-post-cat { color: var(--link); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 0 .3rem; }
.hm-post h3 { margin: 0; font-size: 1.02rem; line-height: 1.35; padding: 0 .3rem; }
.hm-post p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; padding: 0 .3rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Contact band */
.hm-cta-inner {
  text-align: center;
  padding: clamp(1.75rem, 5vw, 3.25rem) clamp(1.2rem, 4vw, 3rem);
  border-radius: 24px;
  border: 1px solid var(--hm-edge-2);
  background:
    radial-gradient(70% 90% at 15% 0%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 60%),
    radial-gradient(60% 90% at 90% 100%, color-mix(in srgb, var(--brand2) 14%, transparent), transparent 60%),
    var(--hm-card);
  box-shadow: var(--hm-hi), var(--hm-lift);
}
.hm-trust { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.hm-trust li {
  padding: .3rem .75rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 650;
  color: var(--muted);
  border: 1px solid var(--hm-edge);
  background: color-mix(in srgb, var(--hm-card-2) 80%, transparent);
}
.hm-cta-inner h2 { margin: 0 0 .5rem; font-size: clamp(1.45rem, 3vw, 2.1rem); letter-spacing: -.035em; }
.hm-cta-lead { margin: 0 auto .75rem; max-width: 40rem; font-weight: 600; }
.hm-cta-body { margin: 0 auto; max-width: 44rem; color: var(--muted); line-height: 1.65; }
.hm-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.4rem; }

/* Recent (this browser's history): shared styles live in style.css; align it with the page width. */
.hm-main .recent-tools-section { margin-top: 1.5rem; }

/* Phones: an app-like first screen — search high, tighter type, the dock as a swipeable row. */
@media (max-width: 639px) {
  .hm-hero { padding-top: 1rem; }
  .hm-title { margin: .8rem 0 .6rem; }
  .hm-lead {
    font-size: .95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hm-search { margin-top: 1.1rem; }
  .hm-search .hm-search-input { min-height: 54px; border-radius: 16px; font-size: 1rem; padding-right: 1rem; }
  .hm-kbd { display: none; }
  .hm-quick { flex-wrap: nowrap; margin-inline: calc(-1 * var(--page-pad)); padding-inline: var(--page-pad); overflow-x: auto; scrollbar-width: none; }
  .hm-quick::-webkit-scrollbar { display: none; }
  .hx-chips {
    flex-wrap: nowrap;
    scroll-padding-inline: 1rem;
  }
  .hm-hero .hx-stats { gap: .35rem 1rem; margin-top: 1.1rem; }
  .hm-hero .hx-stats strong { font-size: .95rem; }
  .hm-dock { margin-top: 1.25rem; }
  .hm-dock-list { margin-inline: calc(-1 * var(--page-pad)); padding-inline: var(--page-pad); scroll-padding-inline: var(--page-pad); grid-auto-columns: 4.9rem; gap: .35rem; }
  .hm-app-ico { width: 52px; height: 52px; border-radius: 16px; }
  .hm-app-name { font-size: .74rem; }
}

/* Large screens: more air; 4K uses the scaled root font from style.css. */
@media (min-width: 1600px) {
  .hm-hero { padding-top: 4.5rem; }
  .hm-stage { height: 540px; }
}

/* Light theme refinements */
html[data-theme="light"] .hm-hero-bg::after { opacity: .7; }
html[data-theme="light"] .hm-qr { color: #111827; }
html[data-theme="light"] .hm-brand { background-image: linear-gradient(100deg, var(--text) 0 52%, var(--brand) 76%, #db2777); }

@media (prefers-reduced-motion: reduce) {
  .hm-hero *, .hm-main * { transition: none !important; animation: none !important; }
  .hm-tile-link:hover, .hm-upd-link:hover, .hm-main .hm-cat-grid .cat-card:hover, .hm-post:hover,
  .hm-chip:hover, .ct-item:hover, .hm-more-list a:hover, .hm-pills a:hover, .hm-app:hover .hm-app-ico { transform: none; }
}
