/* Home page (course chooser): hero, course cards and feature list.
   The hero is deliberately low so the first screen (header + hero + cards with button) fits into
   ~900 px at 1920x1080 and ~630 px at 1366x768. */

.hero { padding: 28px var(--s-5) var(--s-5); text-align: center; position: relative; overflow: hidden; }
.hero h1 { font-size: clamp(28px, 2.6vw, 40px); line-height: 1.12; letter-spacing: -.02em; margin: 0 auto var(--s-3); max-width: 900px; }
.hero p { font-size: 17px; color: var(--muted); max-width: 720px; margin: 0 auto var(--s-4); }
.hero .cta .btn { white-space: normal; }
.hero .cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 860px) { .hero .glyphs { display: none; } }
.hero .glyphs { position: absolute; inset: 0; pointer-events: none; font-family: var(--serif); color: var(--muted); opacity: .22; font-size: 40px; }
.hero .glyphs span { position: absolute; }
.hero .glyphs .g1 { left: 6%; top: 18%; }
.hero .glyphs .g2 { left: 12%; top: 62%; }
.hero .glyphs .g3 { right: 9%; top: 14%; }
.hero .glyphs .g4 { right: 14%; top: 58%; }
.hero .glyphs .g5 { left: 22%; top: 84%; font-size: 30px; }
.hero .glyphs .g6 { right: 24%; top: 82%; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s-4); max-width: 1060px; margin: var(--s-2) auto 56px; padding: 0 var(--s-5); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); }
.card.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.card .tag-row { display: flex; align-items: center; justify-content: space-between; }
.card .ktag { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); }
.card.soon .ktag { background: var(--surface-2); color: var(--muted); }
.card.soon h3 { color: var(--muted); }
.card .soonlbl { font-family: var(--mono); font-size: 11px; color: var(--muted); display: inline-flex; gap: 5px; align-items: center; }
.card h3 { margin: var(--s-1) 0 0; font-size: 21px; line-height: 1.25; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; flex: 1; }
.card .meta { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }

.features { max-width: 1060px; margin: 0 auto 80px; padding: 0 var(--s-5); display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s-6); }
.features div h4 { margin: 0 0 6px; font-size: 15px; }
.features div p { margin: 0; color: var(--muted); font-size: 14px; }
.features .k { font-family: var(--mono); color: var(--accent); font-size: 12px; margin-bottom: var(--s-2); display: block; text-transform: uppercase; letter-spacing: .08em; }
/* four points side by side where there is room; auto-fit would leave the fourth alone on a second row */
@media (min-width: 1000px) { .features { grid-template-columns: repeat(4, 1fr); } }

@media (max-height: 720px) {
  .hero { padding: 18px var(--s-5) 14px; }
  .hero p { margin-bottom: var(--s-3); }
  .cards { margin-top: 6px; }
}
