/* Homepage layer — the landing page only.
 *
 * site.css carries the tokens, the header, the footer and the shared page furniture.
 * This file is the landing page's own component set: hero, endpoint bar, proof strip,
 * cards, quickstart, closing. Scoped under .home so no other page can be affected.
 *
 * Rules this file holds to:
 *   - one spacing scale (8 / 12 / 16 / 24 / 32 / 48 / 72 / 120), nothing off-scale
 *   - one radius per role (14 card, 10 control, 999 pill)
 *   - hairlines at --line, never a shadow on a dark surface
 *   - no accent colour; hierarchy comes from size, weight and space
 */

.home { padding-top: 0; }

/* ---------- hero ---------- */
.home .hero {
  padding: 132px 0 0;
  text-align: center;
}

.home .heromark {
  display: block;
  width: 132px; height: 132px;
  margin: 0 auto 28px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 30px 90px -40px rgba(255, 255, 255, .22);
}
html[data-theme="light"] .home .heromark {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 20px 60px -34px rgba(0, 0, 0, .35);
}

.home .hero .eyebrow {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 20px;
}

.home .hero h1 {
  font-size: clamp(26px, 3.3vw, 46px);
  line-height: 1.14;
  letter-spacing: -.035em;
  font-weight: 600;
  margin: 0 auto;
}
.home .hero h1 span { display: block; white-space: nowrap; }

.home .hero .lede {
  max-width: 560px;
  margin: 22px auto 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--mute);
  text-wrap: pretty;
}

/* ---------- endpoint bar: the long row ---------- */
.epbar {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 760px;
  margin: 40px auto 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--tint);
  overflow: hidden;
  text-align: left;
  transition: border-color .15s;
}
.epbar:hover { border-color: #333; }
html[data-theme="light"] .epbar:hover { border-color: #cfcfcf; }

.epbar .ep-label {
  flex: 0 0 auto;
  padding: 0 14px;
  height: 52px;
  display: flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
  border-right: 1px solid var(--line);
}

.epbar code {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 16px;
  height: 52px;
  display: flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--ink);
  background: none;
  border: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.epbar code::-webkit-scrollbar { display: none; }
.epbar code b { font-weight: 500; color: var(--mute); }

.epbar .ep-copy {
  flex: 0 0 auto;
  height: 52px;
  padding: 0 18px;
  border: 0;
  border-left: 1px solid var(--line);
  background: none;
  color: var(--mute);
  font: inherit;
  font-size: 12.5px;
  font-weight: 550;
  cursor: pointer;
  transition: color .15s, background .15s;
}
.epbar .ep-copy:hover { color: var(--ink); background: #171717; }
html[data-theme="light"] .epbar .ep-copy:hover { background: #eee; }
.epbar .ep-copy.done { color: var(--ink); }

.home .hero .cta { margin-top: 28px; }

/* ---------- works with ---------- */
.home .works { margin-top: 64px; }
.home .works .eyebrow { margin-bottom: 14px; font-size: 10.5px; letter-spacing: .12em; }

/* ---------- proof strip ---------- */
.proof {
  margin: 88px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.proof .inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1080px;
  margin: 0 auto;
}
.proof .cell {
  padding: 30px 26px;
  border-right: 1px solid var(--line);
}
.proof .cell:last-child { border-right: 0; }
.proof .n {
  font-family: var(--mono);
  font-size: 26px;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1.1;
}
.proof .k {
  margin-top: 7px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- section shell ---------- */
.home section { margin: 0 auto; }
.home .band {
  max-width: 1080px;
  padding: 104px 24px 0;
}
.home .band > .kicker {
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 12px;
}
.home .band h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -.025em;
  font-weight: 600;
  max-width: 22ch;
}
.home .band .sub {
  margin-top: 12px;
  max-width: 54ch;
  color: var(--mute);
  font-size: 14.5px;
  line-height: 1.62;
}

/* ---------- feature cards ---------- */
.home .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 40px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.home .card {
  background: var(--paper);
  padding: 28px 26px 30px;
  transition: background .15s;
}
.home .card:hover { background: #0e0e0e; }
html[data-theme="light"] .home .card:hover { background: #fff; }
.home .card .tag {
  font-size: 10.5px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--dim);
}
.home .card h3 {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.35;
}
.home .card p {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--mute);
}
.home .card .chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 18px;
}
.home .card .chip-s {
  font-size: 11px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--dim);
}
.home .card .chip-s.mono { font-family: var(--mono); font-size: 10.5px; }

/* ---------- quickstart ---------- */
.home .steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}
.home .step .n {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: .08em;
}
.home .step h3 {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.home .step p {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--mute);
}

.home .term {
  margin-top: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--tint);
}
.home .term .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
}
.home .term pre {
  margin: 0;
  padding: 20px 18px;
  background: none;
  border: 0;
  border-radius: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: #cfcfcf;
  overflow-x: auto;
}
html[data-theme="light"] .home .term pre { background: none; color: #2c2c2c; }

/* ---------- closing ---------- */
.home .closing {
  max-width: 1080px;
  padding: 120px 24px 96px;
  text-align: center;
}
.home .closing h2 {
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: -.03em;
  font-weight: 600;
  margin: 0 auto;
  max-width: 20ch;
  text-wrap: balance;
}
.home .closing p {
  margin: 14px auto 0;
  max-width: 46ch;
  color: var(--mute);
  font-size: 14.5px;
  line-height: 1.6;
}
.home .closing .cta { margin-top: 30px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .home .cards, .home .steps { grid-template-columns: 1fr; gap: 1px; }
  .home .steps { gap: 28px; }
  .proof .inner { grid-template-columns: repeat(2, 1fr); }
  .proof .cell:nth-child(2) { border-right: 0; }
  .proof .cell:nth-child(1), .proof .cell:nth-child(2) { border-bottom: 1px solid var(--line); }
  .home .band { padding-top: 76px; }
  .home .closing { padding: 84px 24px 64px; }
}
@media (max-width: 620px) {
  .home .hero { padding-top: 104px; }
  .home .heromark { width: 104px; height: 104px; margin-bottom: 22px; }
  .epbar { flex-wrap: wrap; }
  .epbar .ep-label { height: 44px; border-right: 0; border-bottom: 1px solid var(--line); width: 100%; }
  .epbar code { height: 48px; width: 100%; }
  .epbar .ep-copy { height: 44px; border-left: 0; border-top: 1px solid var(--line); width: 100%; }
}
