/* Personal Workbench landing page — scoped to .wb-* so it cannot disturb other pages.
   Uses the site design tokens declared in styles.css. */

.wb-hero {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  padding: 56px 0 64px;
}

.wb-hero-copy h1 {
  margin: 8px 0 0;
  font-size: clamp(40px, 5vw, 68px);
  letter-spacing: var(--tracking-tight);
  line-height: 1.04;
}

.wb-lede {
  margin: 18px 0 0;
  max-width: 34em;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.75;
  color: var(--text-2);
}

.wb-lede b {
  color: var(--text);
}

.wb-lede-sub {
  margin: 12px 0 0;
  max-width: 36em;
  line-height: 1.75;
  color: var(--muted);
}

.wb-hero .hero-actions {
  margin-top: 26px;
}

.wb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.wb-chips li {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.5;
}

/* ---------- screenshots ---------- */

.wb-shot {
  margin: 0;
}

.wb-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--elev-2);
}

.wb-shot figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- generic section ---------- */

.wb-section {
  padding: 64px 0;
}

.wb-head {
  max-width: 46em;
}

.wb-head h2 {
  margin: 8px 0 0;
  font-size: var(--h2-size);
  font-weight: var(--h2-weight);
  letter-spacing: var(--tracking-tight);
}

.wb-head-note {
  margin: 12px 0 0;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- steps ---------- */

.wb-steps {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.wb-steps > li {
  position: relative;
  padding: 26px 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--elev-1);
}

.wb-step-no {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.wb-steps h3 {
  margin: 0 0 8px;
  font-size: var(--h3-size);
  font-weight: var(--h3-weight);
}

.wb-steps p {
  margin: 0;
  line-height: 1.75;
  color: var(--text-2);
}

.wb-steps-tight > li {
  padding: 22px 20px;
}

/* ---------- engines ---------- */

.wb-split {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-top: 34px;
}

.wb-panel {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--elev-1);
}

.wb-panel-note {
  background: var(--brand-tint);
}

.wb-panel-note h3 {
  margin: 0 0 14px;
  font-size: var(--h3-size);
  font-weight: var(--h3-weight);
}

.wb-chain {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wb-chain > li {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.wb-chain > li:first-child {
  padding-top: 0;
}

.wb-chain > li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.wb-chain b {
  font-size: 16px;
}

.wb-chain span {
  color: var(--muted);
  line-height: 1.7;
}

.wb-ticks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wb-ticks li {
  position: relative;
  padding: 0 0 0 22px;
  margin-bottom: 12px;
  line-height: 1.75;
  color: var(--text-2);
}

.wb-ticks li:last-child {
  margin-bottom: 0;
}

.wb-ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

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

.wb-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.wb-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wb-card {
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--elev-1);
}

.wb-card h3 {
  margin: 0 0 10px;
  font-size: var(--h3-size);
  font-weight: var(--h3-weight);
}

.wb-card p {
  margin: 0;
  line-height: 1.75;
  color: var(--text-2);
}

.wb-card-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.wb-card-cta .primary-button,
.wb-card-cta .secondary-button {
  margin-top: 20px;
}

.wb-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.wb-tag-quiet {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.wb-meta {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  width: 100%;
}

.wb-meta div {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.wb-meta dt {
  flex: 0 0 46px;
  color: var(--muted);
  font-size: 13px;
}

.wb-meta dd {
  margin: 0;
  color: var(--text-2);
}

/* ---------- code & lists ---------- */

.wb-code {
  margin: 12px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--charcoal);
  color: #e6eef7;
  font-size: 12.5px;
  line-height: 1.65;
  /* Wrap instead of clipping: the command is longer than a step card. */
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.wb-code code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

.wb-card code,
.wb-steps code,
.wb-limits code {
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  background: var(--faint);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 0.92em;
}

.wb-warn {
  margin-top: 12px;
  color: var(--state-pending);
  line-height: 1.7;
  font-size: 14px;
}

.wb-limits {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.wb-limits li {
  position: relative;
  padding: 16px 18px 16px 44px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--soft);
  line-height: 1.75;
  color: var(--text-2);
}

.wb-limits li::before {
  content: "!";
  position: absolute;
  left: 18px;
  top: 16px;
  color: var(--state-pending);
  font-weight: 800;
}

/* ---------- final ---------- */

.wb-section-final {
  padding: 72px 0 84px;
  border-bottom: 0;
}

.wb-final {
  padding: 44px 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--brand-tint);
  box-shadow: var(--elev-1);
}

.wb-final h2 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 34px);
  letter-spacing: var(--tracking-tight);
}

.wb-final p {
  margin: 14px 0 0;
  max-width: 44em;
  line-height: 1.75;
  color: var(--text-2);
}

.wb-final .hero-actions {
  margin-top: 24px;
}

/* ---------- layout guard ---------- */

.wb-hero,
.wb-section {
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
  margin-inline: auto;
  max-width: 1180px;
}

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .wb-hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 40px;
  }
  .wb-steps,
  .wb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wb-split {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .wb-steps,
  .wb-grid,
  .wb-grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .wb-section {
    padding: 48px 0;
  }
  .wb-final {
    padding: 32px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wb-shot img {
    box-shadow: var(--elev-1);
  }
}
