/* ===========================================================================
   Homepage only.
   Lifted verbatim out of the HOME_STYLES template literal in app/page.tsx, so
   the styles live where every other stylesheet in this project lives and get
   the same content-hashed cache busting from cssHashes() in next.config.ts.
   Nothing here is global on purpose: .hero, .basic, .cat-chip and
   .handoff-strip are generic enough that putting them in site.css would start
   styling pages that have never seen them. Loaded only by app/page.tsx, after
   lessons.css, which is the order the inline <style> block had by virtue of
   sitting in the body.
   =========================================================================== */

.hero { padding: 92px 0 30px; }
.hero h1 { max-width: none; white-space: nowrap; font-size: clamp(30px, 5.8vw, 64px); }
@media (max-width: 540px) { .hero h1 { white-space: normal; max-width: 16ch; } }
.hero .lead { margin-bottom: 30px; }
.hero-cta { justify-content: center; }
.hero .chips { margin-top: 26px; }

/* Basics band (privacy + credits), directly under the hero */
.basics { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.basic {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--mid-sea); border-radius: var(--radius);
  padding: 24px 26px; color: var(--ink); transition: border-color .18s, transform .18s, background .18s;
}
.basic.credits { border-left-color: var(--stucco); }
.basic:hover { transform: translateY(-2px); background: var(--surface-2); color: var(--ink); border-color: var(--venetian); }
.basic.credits:hover { border-color: var(--stucco); }
.basic .bk { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sea-light); margin-bottom: 10px; }
.basic.credits .bk { color: var(--stucco); }
.basic h3 { font-family: var(--display); font-weight: 400; font-size: 23px; margin: 0 0 8px; letter-spacing: -0.01em; }
.basic p { margin: 0 0 14px; color: var(--ink-dim); font-size: 14.5px; }
.basic ul { margin: 0 0 14px; padding-left: 18px; color: var(--ink-dim); font-size: 14px; }
.basic li { margin: 4px 0; }
.basic .go { font-size: 13.5px; color: var(--venetian); }

.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 9px; color: var(--ink-dim);
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 9px 9px 9px 16px; font-size: 14px; transition: border-color .18s, color .18s, background .18s;
}
.cat-chip:hover { border-color: var(--venetian); color: var(--ink); background: var(--surface-2); }
.cat-chip b { font-weight: 400; font-variant-numeric: tabular-nums; color: var(--ink-faint);
  background: var(--midnight); border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; font-size: 12.5px; }

.track .model-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.track .model-chip { font-size: 12.5px; color: var(--ink-dim); background: var(--midnight); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; }

/* The Commons band — the community as its own destination, not a track */
.commons-band .kicker { color: var(--stucco); }
.commons-cols { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; align-items: start; }
.commons-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px;
}
.commons-card.latest { border-left: 3px solid var(--stucco); }
.commons-card .cc-k { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stucco); margin-bottom: 12px; }
.commons-card .cc-empty { color: var(--ink-dim); font-size: 14.5px; margin: 4px 0 2px; }
.commons-side { display: flex; flex-direction: column; gap: 16px; }
.commons-side .req-list { list-style: none; margin: 0; padding: 0; }
.commons-side .req-list li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); align-items: center; }
.commons-side .req-list li:first-child { border-top: none; }
.commons-side .rv { display: flex; flex-direction: column; align-items: center; }
.commons-side .rv .a { font-size: 11px; line-height: 1; color: var(--stucco); }
.commons-side .rv .c { font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.commons-side .req-list a { color: var(--ink); font-size: 14px; line-height: 1.3; }
.commons-side .req-list a:hover { color: var(--sea-light); }
.commons-cta { width: 100%; text-align: center; }
@media (max-width: 820px) { .commons-cols { grid-template-columns: 1fr; } }

.handoff-strip {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  background: linear-gradient(180deg, rgba(60,143,221,0.08), rgba(60,143,221,0)), var(--surface);
  border: 1px solid var(--border-strong); border-left: 3px solid var(--venetian);
  border-radius: var(--radius); padding: 26px 28px;
}
.handoff-strip .hi { width: 46px; height: 46px; border-radius: 11px; flex: none; display: grid; place-items: center; background: rgba(60,143,221,0.12); color: var(--venetian); }
.handoff-strip .ht { flex: 1; min-width: 240px; }
.handoff-strip h2 { font-family: var(--display); font-weight: 400; font-size: 22px; margin: 0 0 5px; }
.handoff-strip p { margin: 0; color: var(--ink-dim); font-size: 14.5px; max-width: 70ch; }
.handoff-strip .hb { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; background: var(--venetian-deep); color: var(--on-accent); border-radius: 9px; padding: 12px 20px; font-size: 14.5px; }
.handoff-strip .hb:hover { background: var(--venetian); color: var(--on-accent); }

@media (max-width: 820px) { .basics { grid-template-columns: 1fr; } }
