/* Homepage attractiveness pass — 2026-08-21
   Loaded last on index.html. Ember-on-obsidian, reversible.
   Adds the missing free-learning band, quieter hero, featured tools, CTA polish. */

:root {
  --ha-bg: #0a0806;
  --ha-surface: #14100c;
  --ha-surface2: #1a1511;
  --ha-ember: #ff7a36;
  --ha-ember-soft: #ffb583;
  --ha-line: rgba(255, 255, 255, 0.08);
  --ha-line-ember: rgba(255, 122, 54, 0.38);
  --ha-t1: #f6f1ec;
  --ha-t2: #bcb3a9;
  --ha-t3: #8b8178;
}

/* ── Hero: more air, less competing chrome ── */
.hero {
  padding: 64px 0 48px !important;
}
@media (min-width: 769px) {
  .hero {
    padding-top: 88px !important;
  }
}
.hero .hero-content {
  align-items: start !important;
}
.hero .hero-visual-pro,
.hero .career-carousel {
  min-height: clamp(420px, 48vw, 720px);
  margin-top: 0 !important;
}
.hero-proof-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.hero-proof-pills span {
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid var(--ha-line);
  border-radius: 999px;
  background: rgba(20, 16, 12, 0.55);
  color: var(--ha-t2);
  font-size: 0.78rem;
  font-weight: 650;
}
.hero-buttons .btn-ghost {
  opacity: 0.86;
}
.tc-start-free {
  max-width: 100%;
  border-color: var(--ha-line-ember) !important;
  background:
    linear-gradient(135deg, rgba(20, 16, 12, 0.92), rgba(255, 122, 54, 0.08)) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}
.tc-start-free-label {
  background: rgba(255, 122, 54, 0.16) !important;
  border-color: var(--ha-line-ember) !important;
  color: var(--ha-ember-soft) !important;
}
.tc-start-free-links a {
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(10, 8, 6, 0.45) !important;
  color: var(--ha-t1) !important;
}
.tc-start-free-links a:hover,
.tc-start-free-links a:focus-visible {
  border-color: var(--ha-ember) !important;
  background: rgba(255, 122, 54, 0.14) !important;
  color: #fff !important;
}

@media (min-width: 981px) {
  .tc-path-quick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ── Missing free-learning destinations ── */
.tc-learn-free {
  padding: 108px 0 36px;
  scroll-margin-top: 118px;
  background:
    radial-gradient(70% 80% at 8% 0, rgba(255, 122, 54, 0.12), transparent 58%),
    linear-gradient(180deg, rgba(13, 10, 8, 0.96), var(--ha-bg));
  border-top: 1px solid var(--ha-line);
}
.tc-learn-free-head {
  max-width: 640px;
  margin: 0 0 28px;
}
.tc-learn-free-head h2 {
  margin: 0 0 10px;
  color: var(--ha-t1);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.tc-learn-free-head p {
  margin: 0;
  color: var(--ha-t2);
  font-size: 1.02rem;
  line-height: 1.6;
}
.tc-learn-free-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.tc-learn-free-card {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 22px 20px 18px;
  border: 1px solid var(--ha-line);
  border-radius: 18px;
  background: linear-gradient(165deg, var(--ha-surface2), var(--ha-bg));
  color: inherit;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.tc-learn-free-card:hover,
.tc-learn-free-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--ha-line-ember);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  outline: none;
}
.tc-learn-free-card.is-highlight {
  border-color: var(--ha-ember);
  box-shadow: 0 0 0 1px rgba(255, 122, 54, 0.28), 0 18px 40px rgba(255, 90, 30, 0.12);
}
.tc-learn-free-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 122, 54, 0.12);
  color: var(--ha-ember);
}
.tc-learn-free-icon .tc-icon {
  width: 20px;
  height: 20px;
}
.tc-learn-free-card strong {
  display: block;
  color: var(--ha-t1);
  font-size: 1.08rem;
  font-weight: 780;
  letter-spacing: -0.02em;
}
.tc-learn-free-card span {
  display: block;
  margin-top: 8px;
  color: var(--ha-t2);
  font-size: 0.92rem;
  line-height: 1.55;
  flex: 1;
}
.tc-learn-free-go {
  margin-top: 16px;
  color: var(--ha-ember-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

/* ── Platform: featured first, rest behind a toggle ── */
.platform-section .section-header > div:first-child {
  letter-spacing: 0.12em;
}
#hp-platform-grid .platform-card:not(.is-featured) {
  display: none !important;
}
.platform-section.is-expanded #hp-platform-grid .platform-card:not(.is-featured) {
  display: block !important;
}
.platform-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.4rem;
}
.platform-more-toggle {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ha-line-ember);
  border-radius: 999px;
  background: rgba(20, 16, 12, 0.78);
  color: var(--ha-t1);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  cursor: pointer;
}
.platform-more-toggle:hover,
.platform-more-toggle:focus-visible {
  background: rgba(255, 122, 54, 0.14);
  outline: none;
}

/* ── Consultation band ── */
.consultation-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 36px 40px !important;
}
.consultation-card .btn-primary {
  flex: 0 0 auto;
  min-height: 54px;
  padding: 14px 22px !important;
  white-space: nowrap;
}

/* ── Light theme ── */
html[data-theme="light"] .tc-learn-free {
  background: linear-gradient(180deg, #f7f2ec, #fff);
  border-top-color: rgba(24, 16, 10, 0.08);
}
html[data-theme="light"] .tc-learn-free-head h2,
html[data-theme="light"] .tc-learn-free-card strong {
  color: #16110c;
}
html[data-theme="light"] .tc-learn-free-head p,
html[data-theme="light"] .tc-learn-free-card span {
  color: #5a5249;
}
html[data-theme="light"] .tc-learn-free-card {
  background: #fff;
  border-color: rgba(24, 16, 10, 0.1);
}
html[data-theme="light"] .tc-start-free {
  background: #fff !important;
  border-color: rgba(255, 122, 54, 0.35) !important;
}
html[data-theme="light"] .tc-start-free-links a {
  background: #f7f2ec !important;
  color: #16110c !important;
}

@media (max-width: 980px) {
  .tc-learn-free-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .consultation-card {
    flex-direction: column;
    align-items: stretch;
    padding: 26px 22px !important;
  }
  .consultation-card .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .tc-start-free-links a {
    white-space: normal;
    line-height: 1.2;
    min-height: 44px;
    padding: 8px 6px;
    text-align: center;
    font-size: 0.74rem;
  }
}

@media (max-width: 640px) {
  .tc-learn-free {
    padding: 88px 0 20px;
    scroll-margin-top: 108px;
  }
  .tc-learn-free-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .tc-learn-free-card {
    min-height: 0;
    padding: 18px 16px;
  }
  .hero-proof-pills {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tc-learn-free-card,
  .platform-more-toggle {
    transition: none;
  }
}
