/* Homepage — Cosmic Utility directory (Stage 2).
   Scoped under .home with an hm- prefix; relies on tokens.css.
   Responsive across mobile, tablet, and desktop viewports without horizontal overflow. */

.home {
  --c-card: var(--bg-card);
  --c-line: var(--border-subtle);
  --c-ink: var(--text-main);
  --c-muted: var(--text-muted);
  --c-soft: #F8FAFC;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--c-ink);
  line-height: 1.5;
  padding-bottom: var(--space-8);
}
.home *, .home *::before, .home *::after { box-sizing: border-box; }
:where(.home) :where(h1, h2, h3, p, ul, dl, dd) { margin: 0; padding: 0; }
:where(.home) :where(ul) { list-style: none; }
.home [hidden] { display: none !important; }
.home :focus-visible { outline: 3px solid color-mix(in srgb, var(--accent-chart) 55%, transparent); outline-offset: 2px; border-radius: 8px; }
.home .ic { width: 24px; height: 24px; flex: none; display: block; }
.hm-num, .hm-card-no, .hm-ro-v, .hm-inst-time { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.hm-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-muted); }

/* ================= 1. Hero ================= */
.hm-hero {
  display: grid;
  gap: var(--space-6);
  align-items: center;
  padding: 32px 0 40px;
}
@media (min-width: 768px) {
  .hm-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 48px;
    padding: 48px 0 56px;
  }
}

.hm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-muted);
  letter-spacing: 0.01em;
}
.hm-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-live);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--status-live) 18%, transparent);
}
.hm-hero h1 {
  margin-top: 16px;
  font-size: clamp(2.25rem, 1.4rem + 3.8vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
  color: var(--text-main);
}
.hm-sub {
  margin-top: 16px;
  font-size: 1.125rem;
  color: var(--c-muted);
  max-width: 48ch;
  line-height: 1.6;
  text-wrap: pretty;
}

.hm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Reusable buttons */
.hm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  min-width: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.hm-btn .ic { width: 18px; height: 18px; }

.hm-btn--primary {
  background: var(--action-primary, #4F46E5);
  color: #FFFFFF;
  border: 1px solid var(--action-primary, #4F46E5);
  padding: 0 26px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}
.hm-btn--primary:hover {
  background: var(--action-primary-hover, #4338CA);
  border-color: var(--action-primary-hover, #4338CA);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}
.hm-btn--primary:active {
  background: var(--action-primary-active, #3730A3);
  transform: translateY(1px);
}
.hm-btn--primary:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.hm-btn--secondary {
  background: var(--c-card);
  color: var(--c-ink);
  border: 1px solid #CBD5E1;
}
.hm-btn--secondary:hover {
  background: #F8FAFC;
  border-color: var(--c-ink);
  transform: translateY(-1px);
}

/* Celestial Instrument (Sky Wheel) */
.hm-instrument {
  --el-fire: #FB7185;
  --el-earth: #34D399;
  --el-air: #FBBF24;
  --el-water: #38BDF8;
  position: relative;
  background: var(--bg-ink);
  color: var(--text-on-ink);
  border-radius: 20px;
  padding: 20px 20px 22px;
  box-shadow: 0 24px 48px -20px rgba(11, 16, 32, 0.4);
  overflow: hidden;
  max-width: 400px;
  margin: 0 auto;
}
.hm-instrument::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 45% at 50% 38%, rgba(56, 189, 248, 0.08), transparent 70%);
  pointer-events: none;
}
.hm-inst-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-ink-muted);
}
.hm-inst-title { font-weight: 700; color: var(--text-on-ink); }
.hm-inst-time { letter-spacing: 0.04em; text-transform: none; }
.hm-wheel { position: relative; max-width: 360px; margin: 10px auto 4px; }

.sw { display: block; width: 100%; height: auto; overflow: visible; }
.sw-line { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 1.2; }
.sw-tick { fill: none; stroke: rgba(255, 255, 255, 0.2); stroke-width: 1; }
.sw-notch { fill: var(--brand-cinnabar); }
.sw-core { fill: var(--bg-ink-raised); stroke: rgba(255, 255, 255, 0.1); stroke-width: 1; }
.sw-pointer { stroke: var(--brand-cinnabar); stroke-width: 1.5; stroke-dasharray: 3 5; opacity: 0.8; }
.sw-sign { cursor: pointer; outline: none; }
.sw-hit { fill: transparent; stroke: transparent; stroke-width: 1.5; transition: fill 0.2s, stroke 0.2s; }
.sw-sign path { fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; opacity: 0.82; transition: opacity 0.2s; }
.sw-fire path { stroke: var(--el-fire); } .sw-earth path { stroke: var(--el-earth); }
.sw-air path { stroke: var(--el-air); } .sw-water path { stroke: var(--el-water); }
.sw-sign:hover path, .sw-sign[aria-pressed="true"] path { opacity: 1; }
.sw-sign:hover .sw-hit { fill: rgba(255, 255, 255, 0.06); }
.sw-sign[aria-pressed="true"] .sw-hit { fill: rgba(255, 255, 255, 0.1); stroke: rgba(255, 255, 255, 0.5); }
.sw-sign:focus-visible .sw-hit { stroke: #fff; stroke-width: 2.5; }
.sw-body circle { fill: var(--bg-ink); stroke-width: 1.5; }
.sw-body path { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sw-sun circle { stroke: var(--brand-cinnabar); } .sw-sun path { stroke: #FDBA74; }
.sw-moon circle { stroke: rgba(255, 255, 255, 0.6); } .sw-moon path { stroke: #E2E8F0; }
.sw-k, .sw-deg, .sw-sub { text-anchor: middle; fill: var(--text-on-ink); }
.sw-k { font: 700 15px var(--font-ui); letter-spacing: 0.16em; text-transform: uppercase; fill: var(--text-on-ink-muted); }
.sw-deg { font: 700 56px var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.sw-deg.is-word { font-family: var(--font-ui); font-size: 40px; font-weight: 800; letter-spacing: -0.03em; }
.sw-sub { font: 600 18px var(--font-ui); fill: #CBD5E1; }

.hm-readout, .hm-signcard { position: relative; margin-top: 10px; border-top: 1px solid var(--border-ink); padding-top: 12px; }
.hm-ro-row { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; font-size: 0.875rem; }
.hm-ro-k { color: var(--text-on-ink-muted); }
.hm-ro-v { font-weight: 700; text-align: right; }
.hm-ro-hint { margin-top: 8px; font-size: 0.8125rem; color: var(--text-on-ink-muted); }
.hm-instrument noscript .hm-ro-hint { position: relative; text-align: center; }

.hm-sc-meta { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-on-ink-muted); }
.hm-sc-name { margin-top: 4px; font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; }
.hm-sc-text { margin-top: 6px; font-size: 0.875rem; color: #CBD5E1; line-height: 1.5; }
.hm-sc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hm-btn--light { background: #fff; color: var(--bg-ink); border: 1px solid #fff; min-height: 40px; }
.hm-btn--light:hover { transform: translateY(-1px); }
.hm-btn--ghost { background: transparent; color: var(--text-on-ink); border: 1px solid var(--border-ink); min-height: 40px; }
.hm-btn--ghost:hover { border-color: rgba(255, 255, 255, 0.4); }
.hm-instrument :focus-visible { outline-color: rgba(255, 255, 255, 0.7); }

/* Compact celestial visual: omit cleanly on small screens (< 768px) */
@media (max-width: 767px) {
  .hm-instrument {
    display: none !important;
  }
}

/* ================= 2. Start Here ================= */
.hm-start {
  margin-top: var(--space-5);
  padding: 36px 0 40px;
  border-top: 1px solid var(--border-subtle, #E2E8F0);
}
.hm-start-head { margin-bottom: 24px; }
.hm-start-head h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 6px;
  color: var(--text-main, #0F172A);
}
.hm-start-sub {
  color: var(--text-muted, #64748B);
  font-size: 1rem;
  margin-top: 6px;
  max-width: 60ch;
}
.hm-start-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.hm-start-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--bg-card, #FFFFFF);
  border: 1px solid var(--border-subtle, #E2E8F0);
  border-radius: var(--radius-card, 14px);
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.2s;
  min-height: 220px;
}
.hm-start-card:hover, .hm-start-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--lift-shadow);
  border-color: color-mix(in srgb, var(--a) 40%, #CBD5E1);
}
.hm-start-badge {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--a);
  background: color-mix(in srgb, var(--a) 10%, #FFFFFF);
  padding: 4px 12px;
  border-radius: var(--radius-pill, 9999px);
  margin-bottom: 14px;
  text-decoration: none !important;
}
.hm-start-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--a) 12%, #FFFFFF);
  color: var(--a);
  margin-bottom: 12px;
  flex: none;
}
.hm-start-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--text-main, #0F172A);
  text-decoration: none !important;
}
.hm-start-desc {
  font-size: 0.9375rem;
  color: var(--text-muted, #64748B);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
  text-decoration: none !important;
}
.hm-start-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--a);
  margin-top: auto;
  min-height: 44px;
  text-decoration: none !important;
}
.hm-start-cta .ic {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}
.hm-start-card:hover .hm-start-cta .ic {
  transform: translateX(3px);
}

/* ================= 3. Directory ================= */
.hm-dir {
  margin-top: var(--space-6);
  padding-top: 36px;
  border-top: 1px solid var(--border-subtle, #E2E8F0);
  scroll-margin-top: 72px;
}
.hm-dir-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.hm-dir-title {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main, #0F172A);
}
.hm-status {
  margin-top: 4px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted, #64748B);
}
.hm-search-box {
  width: 100%;
  max-width: 420px;
}
.hm-search-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted, #64748B);
  margin-bottom: 6px;
}
.hm-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.hm-search-input-wrap .ic {
  position: absolute;
  left: 16px;
  color: var(--text-muted, #64748B);
  pointer-events: none;
  width: 20px;
  height: 20px;
}
.hm-search-input-wrap input {
  width: 100%;
  height: 48px;
  padding: 0 46px 0 48px;
  border: 1px solid var(--border-control, #64748B);
  border-radius: var(--radius-pill, 9999px);
  background: var(--bg-card, #FFFFFF);
  font: inherit;
  font-size: 1rem;
  color: var(--text-main, #0F172A);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color var(--duration-fast, 120ms), box-shadow var(--duration-fast, 120ms);
}
.hm-search-input-wrap input::placeholder { color: var(--text-muted, #64748B); opacity: 0.85; }
.hm-search-input-wrap input:hover { border-color: var(--border-control-hover, #334155); }
.hm-search-input-wrap input:focus {
  outline: none;
  border-color: var(--action-primary, #4F46E5);
  box-shadow: var(--focus-ring, 0 0 0 3px rgba(79, 70, 229, 0.25));
}
.hm-search-input-wrap input::-webkit-search-cancel-button { display: none; }
.hm-search-input-wrap kbd {
  position: absolute;
  right: 14px;
  min-width: 24px;
  height: 24px;
  display: none;
  place-items: center;
  border: 1px solid var(--border-subtle, #E2E8F0);
  border-radius: 6px;
  font: 600 0.75rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text-muted, #64748B);
  background: var(--bg-card-subtle, #F1F5F9);
}
@media (hover: hover) and (pointer: fine) {
  .hm-search-input-wrap kbd { display: grid; }
}

/* Category Filter Bar */
.hm-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle, #E2E8F0);
}
.hm-filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-pill, 9999px);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary, #475569);
  background: var(--bg-card, #FFFFFF);
  border: 1px solid var(--border-subtle, #CBD5E1);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.hm-filter-chip:hover {
  color: var(--text-main, #0F172A);
  border-color: var(--border-strong, #94A3B8);
  background: var(--bg-app, #F8FAFC);
}
.hm-filter-chip.is-active,
.hm-filter-chip[aria-pressed="true"] {
  background: var(--text-main, #0F172A) !important;
  color: #FFFFFF !important;
  border-color: var(--text-main, #0F172A) !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}
.hm-filter-chip:focus-visible {
  outline: 2px solid var(--action-primary, #4F46E5);
  outline-offset: 2px;
}
.hm-clear {
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted, #64748B);
  text-decoration: underline;
  cursor: pointer;
  min-height: 44px;
  padding: 0 8px;
}
.hm-clear:hover { color: var(--text-main, #0F172A); }

/* Tool Sections */
.hm-sec {
  --a: var(--accent-chart);
  margin-top: 36px;
  scroll-margin-top: 72px;
}
.hm-sec:first-child { margin-top: 0; }
.hm-sec-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.hm-sec-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--a) 11%, #FFFFFF);
  color: var(--a);
  flex: none;
}
.hm-sec-head h3 {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.hm-sec-head p {
  font-size: 0.9375rem;
  color: var(--c-muted);
}
.hm-sec-count {
  margin-left: auto;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-muted);
  background: #EEF1F5;
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
}
@media (max-width: 560px) { .hm-sec-head p { display: none; } }

/* Bento Grid */
#tool-sections { container: dir / inline-size; }
.hm-bento {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  grid-auto-flow: dense;
}
@container dir (min-width: 560px) {
  .hm-bento { grid-template-columns: repeat(2, 1fr); }
  .hm-cell--xl, .hm-cell--wide { grid-column: span 2; }
}
@container dir (min-width: 900px) {
  .hm-bento {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(190px, auto);
  }
  .hm-cell--xl { grid-row: span 2; }
}
.hm-cell { display: flex; }

.hm-card {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 190px;
  padding: 22px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.hm-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.hm-card-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--a, var(--accent-chart)) 11%, #FFFFFF);
  color: var(--a, var(--accent-chart));
  flex: none;
  transition: background 0.25s, color 0.25s;
}
.hm-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.hm-card-sum {
  font-size: 0.9375rem;
  color: var(--c-muted);
  max-width: 40ch;
  text-wrap: pretty;
  line-height: 1.5;
}
.hm-beat { display: inline; }
.hm-beat:first-child { color: var(--c-ink); font-weight: 600; }

.hm-card--live:hover, .hm-card--live:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--lift-shadow);
  border-color: color-mix(in srgb, var(--a) 40%, #CBD5E1);
}
.hm-card--live:hover .hm-card-ico {
  background: var(--a);
  color: #FFFFFF;
}
.hm-card-cta {
  margin-top: auto;
  padding-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--a);
  min-height: 44px;
}
.hm-card-cta .ic {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}
.hm-card--live:hover .hm-card-cta .ic {
  transform: translateX(3px);
}

.hm-card--xl, .hm-card--live.hm-card--wide { padding: 26px; }
.hm-card--xl .hm-card-title { font-size: 1.625rem; font-weight: 800; letter-spacing: -0.02em; }
.hm-card--xl .hm-card-sum { font-size: 1.0625rem; }
.hm-card--live.hm-card--wide .hm-card-title { font-size: 1.375rem; font-weight: 800; }
.hm-card--xl { background: radial-gradient(120% 90% at 100% 100%, color-mix(in srgb, var(--a) 7%, #FFFFFF), var(--c-card) 60%); }

.hm-empty {
  text-align: center;
  padding: 56px 16px;
  color: var(--c-muted);
}
.hm-empty b {
  display: block;
  color: var(--c-ink);
  font-size: 1.125rem;
  margin-bottom: 6px;
}
.hm-linkbtn {
  margin-top: 8px;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  color: var(--c-ink);
  cursor: pointer;
  text-decoration: underline;
  min-height: 44px;
  padding: 0 8px;
}

/* ================= 4. Methodology ================= */
.hm-methodology {
  margin-top: var(--space-8);
  padding-top: var(--space-7);
  border-top: 1px solid var(--border-subtle, #E2E8F0);
}
.hm-method-header h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 6px;
  color: var(--text-main, #0F172A);
}
.hm-method-lead {
  font-size: 1.125rem;
  color: var(--text-muted, #64748B);
  max-width: 65ch;
  margin-top: 8px;
  line-height: 1.6;
}
.hm-method-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 32px;
}
@media (min-width: 820px) {
  .hm-method-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.hm-method-card {
  background: var(--bg-card, #FFFFFF);
  border: 1px solid var(--border-subtle, #E2E8F0);
  border-radius: var(--radius-card, 14px);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.hm-method-ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--a) 12%, #FFFFFF);
  color: var(--a);
  margin-bottom: 16px;
  flex: none;
}
.hm-method-card h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--text-main, #0F172A);
  line-height: 1.3;
}
.hm-method-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary, #475569);
  line-height: 1.6;
  margin: 0;
}
.hm-method-card a {
  color: var(--action-primary, #4F46E5);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.hm-method-card a:hover {
  color: var(--action-primary-hover, #4338CA);
}
.hm-method-card code {
  font-size: 0.875rem;
  background: var(--bg-card-subtle, #F1F5F9);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle, #E2E8F0);
  color: var(--text-main, #0F172A);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.hm-method-footer {
  margin-top: 24px;
  padding: 18px 24px;
  background: var(--bg-card-subtle, #F8FAFC);
  border: 1px solid var(--border-subtle, #E2E8F0);
  border-radius: var(--radius-card, 14px);
  font-size: 0.9375rem;
  color: var(--text-muted, #64748B);
  line-height: 1.6;
}
.hm-method-footer a {
  color: var(--action-primary, #4F46E5);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.hm-method-footer a:hover {
  color: var(--action-primary-hover, #4338CA);
}

/* ================= 5. Published Guides ================= */
.hm-guides {
  margin-top: var(--space-7);
}
.hm-guides-header h2 {
  font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 6px;
  color: var(--text-main, #0F172A);
}
.hm-guides-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 20px;
}
@media (min-width: 768px) {
  .hm-guides-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.hm-guide-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--bg-card, #FFFFFF);
  border: 1px solid var(--border-subtle, #E2E8F0);
  border-radius: var(--radius-card, 14px);
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s ease;
  min-height: 200px;
}
.hm-guide-card:hover, .hm-guide-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--lift-shadow);
  border-color: var(--border-strong, #94A3B8);
}
.hm-guide-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--action-primary, #4F46E5);
  background: var(--action-primary-tint, #EEF2FF);
  padding: 3px 10px;
  border-radius: var(--radius-pill, 9999px);
  margin-bottom: 12px;
  align-self: flex-start;
  text-decoration: none !important;
}
.hm-guide-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--text-main, #0F172A);
  text-decoration: none !important;
  line-height: 1.35;
}
.hm-guide-desc {
  font-size: 0.9375rem;
  color: var(--text-muted, #64748B);
  line-height: 1.55;
  margin: 0 0 16px;
  flex: 1;
  text-decoration: none !important;
}
.hm-guide-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--action-primary, #4F46E5);
  margin-top: auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
  transition: transform 0.2s ease, color 0.2s ease;
}
.hm-guide-card:hover .hm-guide-link {
  color: var(--action-primary-hover, #4338CA);
  transform: translateX(3px);
}

/* ================= 6. Trust Information ================= */
.hm-trust {
  margin-top: var(--space-7);
  display: grid;
  gap: 16px;
}
@media (min-width: 768px) {
  .hm-trust {
    grid-template-columns: repeat(3, 1fr);
  }
}
.hm-trust-item {
  padding: 24px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-card);
  background: var(--c-card);
}
.hm-trust-item .hm-card-ico { margin-bottom: 14px; }
.hm-trust-item h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}
.hm-trust-item p {
  font-size: 0.9375rem;
  color: var(--c-muted);
  line-height: 1.5;
}
.hm-trust-item a {
  color: var(--accent-chart);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

/* ================= Motion ================= */
@media (prefers-reduced-motion: no-preference) {
  .hm-hero-copy > *, .hm-instrument { animation: hm-rise var(--duration-normal, 180ms) var(--ease) both; }
  .hm-hero-copy > :nth-child(2) { animation-delay: 0.03s; }
  .hm-hero-copy > :nth-child(3) { animation-delay: 0.06s; }
  .hm-hero-copy > :nth-child(4) { animation-delay: 0.09s; }
  .hm-hero-copy > :nth-child(5) { animation-delay: 0.12s; }
  .hm-instrument { animation-delay: 0.08s; }
}
@keyframes hm-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (hover: none) { .hm-card--live:hover, .hm-start-card:hover, .hm-guide-card:hover { transform: none; box-shadow: none; } }
