/* Homepage sections below the hero. Loaded after console.css + hero.css.
   Every band shares one left edge (main's gutter) and one vertical rhythm. */

.home .band {
  padding: clamp(64px, 9vw, 112px) 0;
}
.home .band + .band { padding-top: 0; }

.home .band h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 22ch;
  margin: 0;
}
.home .band-lede {
  color: var(--ink-dim);
  font-size: clamp(15.5px, 1.5vw, 18px);
  line-height: 1.6;
  max-width: 54ch;
  margin: 18px 0 0;
}
.home .band-lede strong { color: var(--ink); font-weight: 600; }
.home .band-note {
  color: var(--ink-faint);
  font-size: 14px;
  margin: 28px 0 0;
}
.home .band a:not(.btn) { color: var(--accent-bright); }
.home .band a:not(.btn):hover { color: var(--ink); }
.home code {
  font-family: var(--mono);
  font-size: 0.92em;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 6px;
  border-radius: 5px;
}

/* ---------- One left edge for the whole page ----------
   main is centred at --maxw with a clamp() gutter; the full-bleed hero and
   the floating header line their content up with that same column. */
.home {
  --gutter: clamp(20px, 5vw, 40px);
  --content-left: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
}
.home .vhero { padding-left: var(--content-left); padding-right: var(--content-left); }
.home .vhero-social { left: var(--content-left); }
.home .site-header {
  width: calc(100% - 2 * var(--gutter) + 52px) !important;
  max-width: calc(var(--maxw) - 2 * var(--gutter) + 52px) !important;
  padding-left: 26px !important;
  padding-right: 26px !important;
}

/* ---------- How it works: copy beside a real request ---------- */
.how-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.how-steps {
  list-style: none;
  counter-reset: step;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.how-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 38px;
  color: var(--ink-dim);
  font-size: 15.5px;
  line-height: 1.55;
}
.how-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 24px;
  width: 24px;
  height: 24px;
  text-align: center;
  border-radius: 50%;
  color: var(--accent-bright);
  background: var(--accent-soft);
}
.how-steps li strong { color: var(--ink); font-weight: 600; margin-right: 4px; }
.how-steps code { display: table; margin-top: 6px; overflow-wrap: anywhere; }
.text-link { display: inline-block; margin-top: 26px; font-size: 15px; }

.code-card {
  margin: 0;
  min-width: 0;
  border-radius: 14px;
  background: #121316;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.code-label {
  display: block;
  font-size: 12.5px;
  color: var(--ink-faint);
}
.code-card > .code-label { padding: 14px 20px 0; }
.code-card pre {
  margin: 0;
  padding: 14px 20px 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: #d9d6cf;
  tab-size: 4;
}
.code-card code { background: none; padding: 0; border-radius: 0; font-size: inherit; color: inherit; }
.code-card .k { color: #a8a39a; }
.code-card .s { color: #f0a877; }
.code-card .changed {
  display: inline-block;
  width: calc(100% + 40px);
  margin-left: -20px;
  padding-left: 20px;
  background: rgba(242, 102, 28, 0.1);
}
.code-out {
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #0f1012;
}
.code-out p {
  margin: 6px 0 0;
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--ink);
}

/* ---------- Model: one row of real limits ---------- */
.model-head { display: grid; gap: 0; }
.spec-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 40px 0 0;
  border-radius: 14px;
  background: #121316;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.spec-row > div {
  padding: 22px 22px 24px;
  min-width: 0;
}
.spec-row > div + div { box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.06); }
.spec-row dt {
  font-size: 13px;
  color: var(--ink-faint);
  margin: 0 0 8px;
}
.spec-row dd {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

/* ---------- Why: four plain columns, no cards ---------- */
.why-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin-top: 40px;
}
.why-cols h3 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 10px;
}
.why-cols p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- FAQ: heading left, questions right ---------- */
.faq-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}
.home .faq-list { max-width: none; gap: 10px; }
.home .faq-list details { margin-bottom: 0; }
.home .faq-list details:hover { transform: none; }

/* ---------- Close ---------- */
.close-band { display: grid; justify-items: start; gap: 22px; }
.home .close-band h2 { max-width: none; }
.close-band .band-note { margin: 0; }

/* Buttons on this page change state, they do not jump or glow. */
.home .btn-primary { box-shadow: none; }
.home .btn-primary:hover { transform: none; }
.home .vhero-btn-primary:hover { transform: none; }

@media (max-width: 720px) {
  .home .vhero-social { left: auto; margin-left: 0; }
  .home .site-header {
    width: calc(100% - 2 * var(--gutter) + 32px) !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}
@media (max-width: 960px) {
  .how-band { grid-template-columns: 1fr; }
  .spec-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spec-row > div:nth-child(4) { box-shadow: none; }
  .spec-row > div:nth-child(n + 4) { border-top: 1px solid rgba(255, 255, 255, 0.06); }
  .why-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-band { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .spec-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-row > div { box-shadow: none !important; border-top: 1px solid rgba(255, 255, 255, 0.06); }
  .spec-row > div:nth-child(-n + 2) { border-top: 0; }
  .spec-row > div:nth-child(even) { box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.06) !important; }
  .spec-row > div:last-child { grid-column: 1 / -1; }
  .why-cols { grid-template-columns: 1fr; }
  .code-card pre { font-size: 12.5px; }
}

/* ---------- Phone menu (nav.js). Hidden until JS runs and only below 920px. ---------- */
.nav-toggle,
.nav-panel { display: none; }
@media (max-width: 920px) {
  .js-nav .nav-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    cursor: pointer;
  }
  .js-nav .nav-toggle:hover,
  .js-nav .nav-toggle[aria-expanded="true"] { background: rgba(255, 255, 255, 0.06); }
  .js-nav .nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .site-nav .nav-cta { min-height: 36px; display: inline-flex; align-items: center; }
  .nav-panel:not([hidden]) {
    display: grid;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    padding: 8px;
    background: #141416;
    border: 1px solid rgba(242, 242, 240, 0.08);
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  }
  .nav-panel a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 12px;
    color: var(--ink);
    font-size: 16px;
  }
  .nav-panel a:hover,
  .nav-panel a:focus-visible { background: rgba(255, 255, 255, 0.06); color: var(--ink); }
  .site-footer .footer-links { gap: 4px 22px; }
  .site-footer .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 400px) {
  .home .brand-name { font-size: 14px; }
  .site-nav { gap: 8px; }
  .site-nav .nav-cta, .js-nav .nav-toggle { padding: 6px 11px; }
}
/* The menu repeats "Get started" as its last, highlighted item. */
.nav-panel .nav-panel-cta { background: var(--ink); color: #0a0a0b; font-weight: 600; margin-top: 4px; }
.nav-panel .nav-panel-cta:hover,
.nav-panel .nav-panel-cta:focus-visible { background: #ffffff; color: #0a0a0b; }

/* Smallest phones (≤ 400px): tighten the pill so brand, "Get started" and "Menu" share one row. */
@media (max-width: 400px) {
  .home .site-header { padding-left: 12px !important; padding-right: 12px !important; gap: 8px !important; }
  .home .brand { gap: 8px; }
  .home .brand-mark { width: 30px; height: 30px; font-size: 15px; }
  .home .brand-name { font-size: 13px; }
  .site-nav { gap: 6px; }
  .site-nav .nav-cta, .js-nav .nav-toggle { padding: 6px 10px; font-size: 13px; }
}
