/* Home / hub page. Deliberately calm and light: the spin screen is the loud,
   dark one, so arriving there should feel like stepping onto a stage. */

:root {
  --hm-bg: #f6f7fb;
  --hm-surface: #ffffff;
  --hm-text: #14162b;
  --hm-muted: #5f6478;
  --hm-border: #e6e8ef;
  --hm-accent: #5b3df5;
  --hm-accent-soft: #eeeaff;
  --hm-sidebar: 264px;
}

body {
  background: var(--hm-bg);
  color: var(--hm-text);
  font-family: var(--font);
  line-height: 1.65;
}

.shell {
  display: grid;
  grid-template-columns: var(--hm-sidebar) minmax(0, 1fr);
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */

.side {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  padding: 24px 18px;
  background: var(--hm-surface);
  border-right: 1px solid var(--hm-border);
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.side__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
  padding: 0 6px;
}

.side__mark {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: linear-gradient(145deg, #7c5cff, var(--hm-accent));
  color: #fff;
}

.side__name {
  display: grid;
  line-height: 1.3;
}

.side__name strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16.5px;
  letter-spacing: 0.01em;
}

.side__name span {
  font-size: 12px;
  color: var(--hm-muted);
}

.side__group {
  display: grid;
  gap: 4px;
}

.side__label {
  padding: 0 10px;
  margin-bottom: 4px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #9aa0b4;
  line-height: 1.6;
}

.side__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--hm-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  transition: background 0.14s, color 0.14s;
}

.side__link:hover {
  background: #f1f2f7;
}

.side__link.is-active {
  background: var(--hm-accent-soft);
  color: var(--hm-accent);
  font-weight: 600;
}

/* Muted enough to read as "not yet available", dark enough to still be legible
   (contrast stays above 3:1). */
.side__link[aria-disabled='true'] {
  color: #7d8397;
  cursor: default;
  pointer-events: none;
}

.side__icon {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 14px;
  background: #f1f2f7;
}

.side__link.is-active .side__icon {
  background: #fff;
}

.side__sub {
  display: grid;
  gap: 2px;
  margin: 2px 0 2px 37px;
  padding-left: 12px;
  border-left: 1.5px solid var(--hm-border);
}

.side__sub a {
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--hm-muted);
  text-decoration: none;
  transition: background 0.14s, color 0.14s;
}

.side__sub a:hover {
  background: #f1f2f7;
  color: var(--hm-text);
}

.side__foot {
  margin-top: auto;
  padding: 12px 10px 0;
  border-top: 1px solid var(--hm-border);
  font-size: 12px;
  line-height: 1.6;
  color: #9aa0b4;
}

/* ---------- Main ---------- */

.main {
  min-width: 0;
  padding: 46px clamp(20px, 5vw, 64px) 70px;
}

.doc {
  max-width: 760px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--hm-accent-soft);
  color: var(--hm-accent);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.6;
}

.doc h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.32;
  letter-spacing: -0.01em;
}

.lede {
  margin: 0 0 34px;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.75;
  color: var(--hm-muted);
}

.doc h2 {
  margin: 46px 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.4;
}

.doc h3 {
  margin: 26px 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16.5px;
  line-height: 1.45;
}

.doc p {
  margin: 0 0 16px;
  line-height: 1.75;
}

/* Prose links only. Without :not([class]) this also repaints .btn--primary,
   whose text then matches its own purple background and disappears. */
.doc a:not([class]) {
  color: var(--hm-accent);
}

.doc ul {
  margin: 0 0 16px;
  padding-left: 20px;
  line-height: 1.8;
}

.doc li + li {
  margin-top: 4px;
}

.doc strong {
  font-weight: 600;
}

hr {
  border: none;
  border-top: 1px solid var(--hm-border);
  margin: 40px 0;
}

/* ---------- Tool card ---------- */

.tool {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  border-radius: 16px;
  background: var(--hm-surface);
  border: 1px solid var(--hm-border);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  margin-bottom: 16px;
}

.tool--soon {
  opacity: 0.62;
}

.tool__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 25px;
  background: linear-gradient(150deg, #2b1660, #150a33);
}

.tool--soon .tool__icon {
  background: #eceef4;
}

.tool__body h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.tool__body p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--hm-muted);
  line-height: 1.7;
}

.tool__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.tool__tags li {
  padding: 3px 10px;
  border-radius: 999px;
  background: #f1f2f7;
  font-size: 12px;
  line-height: 1.6;
  color: var(--hm-muted);
}

.tool__links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--hm-accent);
  color: #fff;
}

.btn--primary:hover {
  background: #4a2ce0;
}

.btn--ghost {
  border: 1px solid var(--hm-border);
  color: var(--hm-text);
  background: var(--hm-surface);
}

.btn--ghost:hover {
  background: #f1f2f7;
}

.soon-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f1f2f7;
  color: #8b91a5;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.6;
}

/* ---------- Steps ---------- */

.steps-num {
  counter-reset: step;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.steps-num li {
  counter-increment: step;
  position: relative;
  padding: 2px 0 2px 42px;
  line-height: 1.75;
}

.steps-num li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--hm-accent-soft);
  color: var(--hm-accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1;
}

/* ---------- FAQ ---------- */

details {
  border: 1px solid var(--hm-border);
  border-radius: 12px;
  background: var(--hm-surface);
  padding: 14px 18px;
  margin-bottom: 10px;
}

details[open] {
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.6;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  float: right;
  color: var(--hm-muted);
  font-weight: 400;
}

details[open] summary::after {
  content: '−';
}

details p {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--hm-muted);
}

.note-box {
  padding: 14px 18px;
  border-radius: 12px;
  background: #fff8e6;
  border: 1px solid #f2dfa8;
  font-size: 14px;
  line-height: 1.7;
}

.note-box strong {
  color: #8a5200;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .side {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--hm-border);
  }

  .side__foot {
    margin-top: 8px;
  }

  .main {
    padding: 30px 20px 56px;
  }
}
