/* The Lagging Team — homepage.
   Shell (palette, nav band, footer, card, buttons) is in shell.css, loaded
   first. Only the homepage's own bands belong here. */

.page-home { max-width: 1180px; margin: 0 auto; padding: 0 24px 24px; }

.home-h2 { font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; margin: 0; }

.home-section-head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 12px;
}

.home-more { font-size: 14.5px; font-weight: 600; text-decoration: none; }

.home-lede { margin: 10px 0 0; color: var(--muted); font-size: 16px; }

.home-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--slate);
}

/* ---- Hero ---- */

.home-hero { padding-top: 40px; }

.hero-panel { background: var(--midnight); border-radius: 20px; padding: 60px 60px 0; color: #ffffff; }

.hero-eyebrow {
  margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: #8f9dbb;
}

.hero-title {
  margin: 20px 0 0; font-size: 58px; line-height: 1.07; font-weight: 700;
  letter-spacing: -0.03em; max-width: 820px;
}

.hero-title .flame { color: var(--flame); }

.hero-sub { margin: 22px 0 0; color: #c2c8dd; font-size: 19px; line-height: 1.6; max-width: 560px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 0; }

.btn-ghost {
  display: inline-block; border: 1.5px solid rgba(255, 255, 255, 0.45); color: #ffffff;
  font-weight: 600; font-size: 15px; padding: 12.5px 24px; border-radius: 9px; text-decoration: none;
}

.btn-ghost:hover { border-color: #ffffff; color: #ffffff; }

.hero-strip {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 52px; border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-strip > div { padding: 26px 24px 30px 0; }

.hero-strip-key { display: block; color: #ffffff; font-size: 24px; font-weight: 700; letter-spacing: -0.015em; }
.hero-strip-val { display: block; color: #8f9dbb; font-size: 14px; margin-top: 6px; }

/* ---- Listen row ---- */

.home-listen { padding-top: 28px; text-align: center; }

.home-listen-label {
  margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--slate);
}

.home-listen-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 14px 0 0; }

.home-listen-links a {
  border: 1px solid #d9dde9; border-radius: 999px; padding: 9px 18px;
  font-size: 14px; font-weight: 500; color: var(--midnight); text-decoration: none; background: #ffffff;
}

.home-listen-links a:hover { border-color: var(--flame); color: var(--flame); }

/* ---- Episode artwork plate ---- */

.ep-art { display: block; flex: 0 0 auto; border-radius: 10px; background: var(--midnight); object-fit: cover; }

.ep-art-blank {
  display: flex; align-items: center; justify-content: center;
  color: var(--flame); font-weight: 700; letter-spacing: 0.08em;
}

.ep-art-lg { width: 200px; height: 200px; font-size: 20px; }
/* A full square. The episode artwork carries its own title, bottom-anchored
   on the 3000px master, so any crop shorter than 1:1 cuts the title off. */
.ep-art-sm { width: 100%; aspect-ratio: 1 / 1; height: auto; font-size: 17px; border-radius: 10px 10px 0 0; }

/* ---- Latest episode ---- */

.home-latest { padding-top: 56px; }

.latest-card { display: flex; gap: 28px; margin-top: 20px; background: var(--midnight); border-radius: 16px; padding: 28px; }

.latest-card .ep-art { background: #1f1f47; }

.latest-body { min-width: 0; }

.latest-card .home-meta { color: #8f9dbb; }

.latest-title { margin: 10px 0 0; font-size: 28px; line-height: 1.22; letter-spacing: -0.02em; }
.latest-title a { color: #ffffff; text-decoration: none; }
.latest-title a:hover { color: var(--flame); }

.latest-summary { margin: 12px 0 0; color: #c2c8dd; font-size: 16px; line-height: 1.6; max-width: 560px; }

.latest-links { margin: 22px 0 0; }

/* ---- Episode cards ---- */

.home-starthere { padding-top: 56px; }

.ep-cards {
  list-style: none; margin: 24px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px;
}

.ep-card-link {
  display: flex; flex-direction: column; height: 100%; background: #ffffff;
  border: 1px solid #e3e6ef; border-radius: 14px; overflow: hidden;
  text-decoration: none; color: var(--midnight);
}

.ep-card-link:hover { border-color: var(--flame); }

.ep-card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px; }

.ep-card-title { font-size: 19px; font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }

.ep-card-summary { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ---- Guests ---- */

.home-guests { padding-top: 56px; }

.home-guests .guest-grid {
  list-style: none; margin: 24px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px;
}

.home-guests .guest-card-link {
  display: flex; align-items: center; gap: 16px; padding: 18px; background: #ffffff;
  border: 1px solid #e3e6ef; border-radius: 12px; text-decoration: none; color: var(--midnight);
}

.home-guests .guest-card-link:hover { border-color: var(--flame); }

.home-guests .guest-avatar {
  flex: 0 0 auto; width: 60px; height: 60px; border-radius: 50%;
  border: 4px solid var(--flame); object-fit: cover; background: var(--ground);
}

.home-guests .guest-avatar-blank { display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 700; }

.home-guests .guest-card-body { display: flex; flex-direction: column; gap: 3px; }
.home-guests .guest-card-name { font-size: 16.5px; font-weight: 600; line-height: 1.3; }
.home-guests .guest-card-credentials { color: var(--slate); font-size: 13.5px; }
.home-guests .guest-card-count {
  margin-top: 4px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--flame);
}

/* ---- Capture ---- */

.home-capture { padding-top: 56px; }

.capture-card { background: #ffffff; border: 1px solid #e3e6ef; border-radius: 14px; padding: 40px 44px; max-width: 620px; }

.capture-card form { margin-top: 22px; }

.field { margin-bottom: 16px; }

.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }

.field input {
  width: 100%; font: inherit; font-size: 15px; color: var(--midnight);
  background: #fbfbfe; border: 1px solid #d3d8e6; border-radius: 9px; padding: 12px 15px;
}

/* Honeypot: visually removed, still in the DOM for bots */
.hp-wrap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.turnstile-slot { margin: 16px 0; min-height: 65px; }

.btn {
  display: inline-block; width: 100%; font: inherit; font-weight: 600; font-size: 16px;
  color: #ffffff; text-decoration: none; text-align: center; background: var(--flame);
  border: 1.5px solid var(--flame); border-radius: 9px; padding: 13px 24px; cursor: pointer;
}

.btn:hover { background: #c94c1b; border-color: #c94c1b; color: #ffffff; }
.btn[disabled] { opacity: 0.6; cursor: default; }

.btn-secondary { background: transparent; color: var(--flame); border: 1.5px solid var(--flame); width: auto; }
.btn-secondary:hover { background: var(--flame); color: #ffffff; }

.form-error {
  color: #8c3512; background: #fdf1ec; border: 1px solid var(--flame);
  border-radius: 9px; padding: 10px 14px; font-size: 14.5px; margin-bottom: 14px;
}

.success { padding: 8px 0; }
.success-headline { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
.share-line { color: var(--muted); margin: 16px 0 12px; font-size: 15px; }
.copy-feedback { min-height: 24px; margin: 8px 0 0; font-size: 14px; color: var(--slate); }

/* ---- Start band ---- */

.home-start { padding-top: 56px; }

.start-panel {
  background: var(--midnight); border-radius: 20px; padding: 48px 56px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
}

.start-title { color: #ffffff; font-size: 32px; }
.start-sub { margin: 14px 0 0; color: #c2c8dd; font-size: 16.5px; line-height: 1.6; max-width: 600px; }

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

@media (max-width: 900px) {
  .page-home { padding: 0 20px 20px; }
  .hero-panel { padding: 40px 28px 0; border-radius: 16px; }
  .hero-title { font-size: 38px; }
  .hero-sub { font-size: 17px; }
  .home-h2 { font-size: 24px; }
  .latest-card { flex-direction: column; padding: 22px; }
  .ep-art-lg { width: 140px; height: 140px; }
  .latest-title { font-size: 23px; }
  .ep-cards { grid-template-columns: 1fr; }
  .capture-card { padding: 28px 22px; }
  .start-panel { padding: 32px 26px; }
  .start-title { font-size: 26px; }
}

@media (max-width: 420px) {
  .hero-title { font-size: 32px; }
  .hero-strip > div { padding-right: 12px; }
  .hero-strip-key { font-size: 20px; }
}
