/* LabWired landing — light / neo-brutalist palette (restored) */

:root {
  --lw-bg-base: #ffffff;
  --lw-bg-surface: #f8f9fa;
  --lw-bg-elevated: #ffffff;
  --lw-fg-primary: #1a1a1a;
  --lw-fg-secondary: #444444;
  --lw-fg-tertiary: rgba(0, 0, 0, 0.55);
  --lw-border: #1a1a1a;
  --lw-border-soft: #d6d8dc;
  --lw-accent: #0056b3;
  --lw-accent-hover: #004494;
  --lw-accent-soft: rgba(0, 86, 179, 0.10);
  --lw-magenta: #d63384;
  --lw-magenta-soft: rgba(214, 51, 132, 0.12);
  --lw-success: #27c93f;
  --lw-warning: #ffbd2e;
  --lw-shadow-card: 5px 5px 0 #1a1a1a;
  --lw-shadow-card-hover: 7px 7px 0 #1a1a1a;
  --lw-shadow-cta: 4px 4px 0 #1a1a1a;
  --lw-font-ui: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --lw-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--lw-bg-base);
  color: var(--lw-fg-primary);
  font-family: var(--lw-font-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--lw-magenta-soft); color: var(--lw-fg-primary); }
a { color: inherit; text-decoration: none; }

code {
  font-family: var(--lw-font-mono);
  font-size: 0.92em;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid var(--lw-border-soft);
  border-radius: 3px;
  color: var(--lw-fg-primary);
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Top chrome — light, with hard bottom border */
.chrome {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 56px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--lw-border);
}

.brand {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--lw-fg-primary); font-weight: 700; letter-spacing: -0.01em;
  flex-shrink: 0;
}

.tagline-chrome {
  color: var(--lw-fg-tertiary);
  font-size: 12px;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
@media (max-width: 900px) { .tagline-chrome { display: none; } }

.spacer { flex: 1; }

.chrome-nav {
  display: flex; align-items: center; gap: 20px;
  font-size: 14px;
}
.chrome-nav a { color: var(--lw-fg-secondary); transition: color 150ms; font-weight: 500; }
.chrome-nav a:hover { color: var(--lw-fg-primary); }

.cta-pill {
  background: var(--lw-fg-primary);
  color: #ffffff !important;
  padding: 7px 14px;
  border: 2px solid var(--lw-fg-primary);
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  transition: transform 120ms, box-shadow 120ms;
  box-shadow: 3px 3px 0 var(--lw-accent);
}
.cta-pill:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--lw-accent); }

/* Hamburger toggle — hidden on desktop, the checkbox drives the dropdown. */
.nav-toggle { display: none; }
.nav-burger { display: none; }

/* Mobile: collapse the inline nav into a tap-to-open dropdown panel so links
   are never cut off mid-word or hidden behind a horizontal scroll strip. */
@media (max-width: 720px) {
  .nav-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 10px 8px;
    margin-left: 4px;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--lw-fg-primary);
    border-radius: 2px;
    transition: transform 200ms ease, opacity 150ms ease;
  }

  /* Visually-hidden but keyboard-focusable toggle. */
  .nav-toggle {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
  }
  .nav-toggle:focus-visible ~ .nav-burger {
    outline: 2px solid var(--lw-accent);
    outline-offset: 2px;
  }

  /* Burger morphs into an X when open. */
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* The dropdown panel itself. */
  .chrome-nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 10px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--lw-border);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
  }
  .nav-toggle:checked ~ .chrome-nav { display: flex; }

  .chrome-nav a {
    padding: 13px 24px;
    font-size: 15px;
    border-bottom: 1px solid var(--lw-border-soft);
  }
  .chrome-nav a:last-child { border-bottom: none; }

  .cta-pill {
    margin: 12px 24px 4px;
    padding: 11px 14px;
    font-size: 14px;
    text-align: center;
  }

  /* Signed-in/out auth chrome is a full-width dropdown row like the nav links,
     so the name + Sign out align with everything else instead of hugging the
     left edge and clipping. */
  .auth-slot {
    display: flex;
    width: 100%;
    padding: 13px 24px;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--lw-border-soft);
  }
  .auth-slot .auth-user {
    width: 100%;
    justify-content: space-between;
  }
  .auth-slot .auth-user-name { max-width: none; }
}

/* Hero */
.hero {
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero-compact { padding-bottom: 72px; }
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(0, 86, 179, 0.08), transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(214, 51, 132, 0.06), transparent 50%);
  pointer-events: none;
}

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--lw-magenta);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  margin-bottom: 24px;
}
.kicker-dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--lw-magenta);
  box-shadow: 0 0 12px rgba(214, 51, 132, 0.6);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.hero-h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  max-width: 19ch;
  color: var(--lw-fg-primary);
}
.hero-accent { color: var(--lw-accent); }

.hero-sub {
  font-size: 19px;
  line-height: 1.5;
  color: var(--lw-fg-secondary);
  max-width: 58ch;
  margin: 0 0 40px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }
.hero-ctas.centered { justify-content: center; }

.hero-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 860px;
  margin: 0 0 48px;
}

.hero-proof-card {
  background: #ffffff;
  border: 2px solid var(--lw-border);
  border-radius: 10px;
  box-shadow: 4px 4px 0 #1a1a1a;
  padding: 16px 18px;
}

.hero-proof-card span {
  display: block;
  color: var(--lw-magenta);
  font-family: var(--lw-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-proof-card strong {
  display: block;
  color: var(--lw-fg-primary);
  font-size: 15px;
  line-height: 1.4;
}

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

.cta-primary {
  display: inline-flex; align-items: center;
  background: var(--lw-accent);
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border: 2px solid var(--lw-fg-primary);
  border-radius: 999px;
  box-shadow: var(--lw-shadow-cta);
  transition: transform 120ms, box-shadow 120ms, background 150ms;
}
.cta-primary:hover {
  background: var(--lw-accent-hover);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--lw-fg-primary);
}
.cta-primary.big { padding: 16px 28px; font-size: 16px; }

.cta-secondary {
  display: inline-flex; align-items: center;
  background: #ffffff;
  color: var(--lw-fg-primary);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border: 2px solid var(--lw-fg-primary);
  border-radius: 999px;
  box-shadow: var(--lw-shadow-cta);
  transition: transform 120ms, box-shadow 120ms;
}
.cta-secondary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--lw-fg-primary);
}
.cta-secondary.big { padding: 16px 28px; font-size: 16px; }

/* Hero platform pills */
.hero-platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: 760px;
}

.hero-platforms-label {
  color: var(--lw-fg-tertiary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  margin-right: 8px;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid var(--lw-fg-primary);
  color: var(--lw-fg-primary);
  font-family: var(--lw-font-mono);
  font-size: 12px;
  font-weight: 500;
}

/* Sections */
.section { padding: 96px 0; }
.section-bg {
  background: var(--lw-bg-surface);
  border-top: 2px solid var(--lw-border);
  border-bottom: 2px solid var(--lw-border);
}

.section-kicker {
  color: var(--lw-fg-tertiary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 0 0 16px;
  max-width: 20ch;
  text-align: center;
  color: var(--lw-fg-primary);
}
.section-h2.left {
  text-align: left;
  margin-left: 0;
}

.section .container > .section-kicker:not(:has(~ .ci-row)):not(:has(~ .os-row)),
.section .container > .section-h2:not(.left) {
  text-align: center; margin-left: auto; margin-right: auto;
}

.section-sub {
  color: var(--lw-fg-secondary);
  font-size: 17px;
  max-width: 58ch;
  margin: 0 auto 48px;
  text-align: center;
  line-height: 1.55;
}
.section-sub.left { margin: 0 0 32px; text-align: left; }

/* Cards — neo-brutalist white with black border + offset shadow */
.cards-3 {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; } }

.card {
  background: #ffffff;
  border: 2px solid var(--lw-border);
  border-radius: 10px;
  padding: 28px;
  box-shadow: var(--lw-shadow-card);
  transition: transform 150ms, box-shadow 150ms;
}
.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--lw-shadow-card-hover);
}

.card-icon { font-size: 28px; margin-bottom: 12px; }
.card h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; color: var(--lw-fg-primary); }
.card p { color: var(--lw-fg-secondary); font-size: 14.5px; line-height: 1.55; margin: 0; }

/* Pilot pricing */
.pilot-offer {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: stretch;
  max-width: 980px;
  margin: 0 auto 28px;
}

.pilot-main,
.pilot-step {
  background: #ffffff;
  border: 2px solid var(--lw-border);
  border-radius: 10px;
  box-shadow: var(--lw-shadow-card);
}

.pilot-main {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pilot-label,
.pilot-step span {
  display: inline-flex;
  width: fit-content;
  color: var(--lw-fg-primary);
  background: var(--lw-warning);
  border: 2px solid var(--lw-border);
  border-radius: 6px;
  padding: 4px 8px;
  font-family: var(--lw-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pilot-main h3 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  margin: 18px 0 14px;
}

.pilot-main p,
.pilot-step p {
  color: var(--lw-fg-secondary);
  line-height: 1.6;
  margin: 0;
}

.pilot-main .hero-ctas { margin: 28px 0 0; }

.pilot-side {
  display: grid;
  gap: 16px;
}

.pilot-step {
  padding: 22px;
}

.pilot-step p {
  font-size: 14px;
  margin-top: 10px;
}

.pilot-addons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 920px;
  margin: 0 auto;
}

.pilot-addons span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 2px solid var(--lw-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--lw-fg-secondary);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 2px 2px 0 var(--lw-border);
}

@media (max-width: 860px) {
  .pilot-offer { grid-template-columns: 1fr; }
  .pilot-main { padding: 28px; }
}

/* B2C pricing (proto.cat shape) */
.pricing-period {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 0 auto 36px;
  width: fit-content;
  padding: 4px;
  border: 2px solid var(--lw-border);
  border-radius: 999px;
  background: var(--lw-bg-surface);
  box-shadow: 3px 3px 0 var(--lw-border);
}
.pricing-period-btn {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--lw-fg-secondary);
  cursor: pointer;
}
.pricing-period-btn.is-active {
  background: var(--lw-accent);
  color: #fff;
}
.pricing-save {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--lw-accent);
}
.pricing-period-btn.is-active .pricing-save {
  color: rgba(255, 255, 255, 0.9);
}
.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto 28px;
}
.pricing-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 2px solid var(--lw-border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--lw-shadow-card);
}
.pricing-tier-popular {
  border-color: var(--lw-accent);
  box-shadow: 6px 6px 0 var(--lw-accent);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--lw-accent);
  color: #fff;
  border: 2px solid var(--lw-border);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.pricing-tier h3 {
  margin: 4px 0 0;
  font-size: 1.25rem;
  font-weight: 800;
}
.pricing-blurb {
  margin: 6px 0 0;
  color: var(--lw-fg-secondary);
  font-size: 14px;
}
.pricing-price {
  margin-top: 18px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.pricing-amount {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.pricing-per {
  font-size: 14px;
  color: var(--lw-fg-tertiary);
}
.pricing-meter {
  margin: 8px 0 0;
  font-family: var(--lw-font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--lw-accent);
}
.pricing-features {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  flex: 1;
}
.pricing-features li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--lw-fg-secondary);
}
.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--lw-accent);
  font-weight: 800;
}
.pricing-cta {
  margin-top: 22px;
  text-align: center;
  display: inline-flex;
  justify-content: center;
  width: 100%;
}
.pricing-free {
  max-width: 1040px;
  margin: 0 auto 28px;
  padding: 16px 18px;
  border: 2px solid var(--lw-border);
  border-radius: 12px;
  background: var(--lw-bg-surface);
  box-shadow: 3px 3px 0 var(--lw-border);
  font-size: 14px;
  color: var(--lw-fg-secondary);
  text-align: center;
}
.pricing-free a {
  color: var(--lw-accent);
  font-weight: 700;
  margin-left: 6px;
}
.pricing-enterprise {
  max-width: 1040px;
  margin: 0 auto 20px;
  padding: 24px;
  border: 2px solid var(--lw-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--lw-shadow-card);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 16px;
  align-items: center;
}
.pricing-fine {
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
  font-size: 12px;
  color: var(--lw-fg-tertiary);
}
.pricing-fine a { color: var(--lw-accent); font-weight: 600; }
@media (max-width: 900px) {
  .pricing-tiers { grid-template-columns: 1fr; max-width: 420px; }
  .pricing-enterprise { grid-template-columns: 1fr; }
}

/* Lab chips */
.lab-chips {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  max-width: 880px; margin: 0 auto 48px;
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: #ffffff;
  border: 2px solid var(--lw-border);
  color: var(--lw-fg-primary);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 3px 3px 0 var(--lw-border);
  transition: transform 120ms, box-shadow 120ms;
}
.chip:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--lw-accent);
}

/* Bring-your-own */
.byo-card {
  background: #ffffff;
  border: 2px solid var(--lw-border);
  border-radius: 10px;
  padding: 28px;
  box-shadow: var(--lw-shadow-card);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  max-width: 880px; margin: 0 auto;
}
.byo-card h3 { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.byo-card p { color: var(--lw-fg-secondary); font-size: 14px; margin: 0; max-width: 56ch; }
@media (max-width: 720px) { .byo-card { flex-direction: column; align-items: flex-start; } }

/* Steps */
.steps {
  list-style: none; padding: 0;
  max-width: 720px;
  margin: 0 auto;
  counter-reset: step;
}
.steps li {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 24px 0;
  border-top: 2px solid var(--lw-border);
}
.steps li:first-child { border-top: none; }

.step-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--lw-accent);
  color: #ffffff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--lw-font-mono); font-weight: 700; font-size: 15px;
  border: 2px solid var(--lw-border);
  box-shadow: 2px 2px 0 var(--lw-border);
}
.steps h3 { font-size: 17px; font-weight: 700; margin: 0 0 4px; color: var(--lw-fg-primary); }
.steps p { color: var(--lw-fg-secondary); font-size: 15px; line-height: 1.55; margin: 0; }

/* Agent harness */
.agent-loop {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0 auto 40px;
}
@media (max-width: 980px) { .agent-loop { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .agent-loop { grid-template-columns: 1fr; } }

.agent-step {
  background: #ffffff;
  border: 2px solid var(--lw-border);
  border-radius: 10px;
  padding: 22px;
  box-shadow: 3px 3px 0 var(--lw-border);
  min-height: 190px;
}
.agent-step-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--lw-magenta);
  color: #ffffff;
  border: 2px solid var(--lw-border);
  box-shadow: 2px 2px 0 var(--lw-border);
  font-family: var(--lw-font-mono);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}
.agent-step h3 { font-size: 17px; margin: 0 0 8px; }
.agent-step p { color: var(--lw-fg-secondary); font-size: 14px; line-height: 1.55; margin: 0; }

.agent-install {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
  background: #ffffff;
  border: 2px solid var(--lw-border);
  border-radius: 10px;
  box-shadow: 4px 4px 0 var(--lw-border);
}
.agent-install-copy h3 {
  margin: 8px 0 10px;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.08;
}
.agent-install-copy p,
.agent-prompt {
  color: var(--lw-fg-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
.agent-install-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 8px;
  background: var(--lw-warning);
  border: 2px solid var(--lw-border);
  border-radius: 6px;
  color: var(--lw-fg-primary);
  font-family: var(--lw-font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.agent-install-action {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.inline-command {
  display: flex;
  align-items: center;
  max-width: 100%;
  margin: 0;
  padding: 14px 16px;
  background: #1a1a1a;
  color: #f8f9fa;
  border: 2px solid var(--lw-border);
  border-radius: 8px;
  overflow-x: auto;
  font-family: var(--lw-font-mono);
  font-size: 12px;
}
.inline-command code { background: none; border: none; color: inherit; padding: 0; white-space: nowrap; }
.agent-local {
  display: grid;
  gap: 6px;
  color: var(--lw-fg-tertiary);
  font-size: 12px;
  line-height: 1.55;
  margin: 4px 0 0;
}
.agent-local span {
  font-weight: 700;
}
.inline-command-secondary {
  padding: 10px 12px;
  background: var(--lw-bg-surface);
  color: var(--lw-fg-primary);
  border-color: var(--lw-border-soft);
  font-size: 11.5px;
}

@media (max-width: 860px) {
  .agent-install { grid-template-columns: 1fr; }
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 760px) { .tool-grid { grid-template-columns: 1fr; } }

.tool-card {
  background: #ffffff;
  border: 2px solid var(--lw-border);
  border-radius: 10px;
  padding: 24px;
  box-shadow: var(--lw-shadow-card);
}
.tool-card h3 { margin: 0 0 8px; font-size: 18px; }
.tool-card p { color: var(--lw-fg-secondary); margin: 0; font-size: 14.5px; line-height: 1.6; }

.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
@media (max-width: 860px) { .status-grid { grid-template-columns: 1fr; gap: 28px; } }

/* CI row */
.ci-row {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 56px; align-items: center;
}
@media (max-width: 900px) { .ci-row { grid-template-columns: 1fr; gap: 32px; } }

.snippet {
  background: #1a1a1a;
  color: #f8f9fa;
  border: 2px solid var(--lw-border);
  border-radius: 10px;
  padding: 20px 22px;
  font-family: var(--lw-font-mono);
  font-size: 13px;
  line-height: 1.65;
  overflow-x: auto;
  margin: 0;
  box-shadow: var(--lw-shadow-card);
}
.snippet code { background: none; padding: 0; color: inherit; border: none; }

/* Open source row */
.os-row {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 56px; align-items: center;
}
@media (max-width: 900px) { .os-row { grid-template-columns: 1fr; gap: 32px; } }

.os-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.os-stat {
  background: #ffffff;
  border: 2px solid var(--lw-border);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 3px 3px 0 var(--lw-border);
}
.os-stat-value {
  font-family: var(--lw-font-mono);
  font-size: 17px; font-weight: 700;
  color: var(--lw-accent);
}
.os-stat-label { color: var(--lw-fg-tertiary); font-size: 12px; margin-top: 4px; }

/* Final CTA */
.final-cta { padding: 120px 0; text-align: center; }
.final-cta h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 32px;
  color: var(--lw-fg-primary);
}
.muted { color: var(--lw-fg-tertiary); font-size: 13px; margin-top: 20px; }

/* Footer */
.footer { padding: 40px 0; border-top: 2px solid var(--lw-border); background: var(--lw-bg-base); }
.footer-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  color: var(--lw-fg-tertiary); font-size: 13px;
}
.footer-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--lw-fg-secondary); transition: color 150ms; font-weight: 500; }
.footer-links a:hover { color: var(--lw-fg-primary); }

/* ── Self-playing Nokia 5110 hero ─────────────────────────────────────── */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}
.hero-split-copy { min-width: 0; }
.hero-split-device { display: flex; flex-direction: column; align-items: center; }

.nokia {
  background: #2b2f24;
  border: 2px solid #3a3f30;
  border-radius: 18px;
  padding: 22px 20px 28px;
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.06), 0 20px 40px rgba(0, 0, 0, 0.45);
  width: 280px;
  max-width: 100%;
}
.nokia-brand {
  color: #aeb59a;
  font: 700 0.7rem/1 monospace;
  letter-spacing: 0.12em;
  text-align: center;
  margin-bottom: 10px;
}
.nokia-lcd {
  background: linear-gradient(160deg, #cfe04a, #aab51a);
  border-radius: 4px;
  padding: 10px;
  box-shadow: inset 0 0 0 2px #5c6320, inset 0 0 14px rgba(0, 0, 0, 0.35);
}
.nokia-lcd canvas {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  aspect-ratio: 84 / 48;
}
.nokia-pad { display: flex; justify-content: center; margin-top: 16px; }
.nokia-dpad {
  width: 52px; height: 52px; border-radius: 50%;
  background: #1f2218;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.05);
}
.nokia-caption {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--lw-fg-tertiary, #6b7280);
  text-align: center;
}
.nokia-caption code { font-size: 0.78em; }

@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; gap: 32px; }
  .hero-split-device { order: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Homepage — Lovable layout · LabWired neo-brutalist (home-*)
   ═══════════════════════════════════════════════════════════════ */

main.home { display: block; }

.home-hero {
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 24px 40px;
  text-align: center;
}
.home-hero-top {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr;
  gap: 28px 36px;
  align-items: center;
  text-align: left;
  margin-bottom: 28px;
}
@media (max-width: 860px) {
  .home-hero-top { grid-template-columns: 1fr; text-align: center; }
  .home-sub { margin-left: auto; margin-right: auto; }
  .home-hero-copy { display: flex; flex-direction: column; align-items: center; }
}

.home-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--lw-border);
  background: var(--lw-accent-soft);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px; font-weight: 700; color: var(--lw-accent);
  margin-bottom: 16px;
  box-shadow: 2px 2px 0 #1a1a1a;
}
.home-pill span { width: 7px; height: 7px; border-radius: 50%; background: var(--lw-accent); }

.home-h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: none;
  color: var(--lw-fg-primary);
}
.home-acc { color: var(--lw-accent); }
.home-sub {
  margin: 0;
  max-width: 38ch;
  font-size: 1.05rem;
  color: var(--lw-fg-secondary);
  line-height: 1.5;
}

/* Composer */
.home-prompt {
  text-align: left;
  position: relative;
  background: #fff;
  border: 1px solid rgba(26, 26, 26, 0.1);
  border-radius: 24px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.06),
    0 24px 48px rgba(0, 86, 179, 0.08);
  padding: 0;
  overflow: hidden;
  transition: box-shadow 180ms ease, border-color 180ms ease;
}
.home-prompt:focus-within {
  border-color: rgba(0, 86, 179, 0.45);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 8px 28px rgba(0, 0, 0, 0.08),
    0 0 0 4px rgba(0, 86, 179, 0.12),
    0 28px 56px rgba(0, 86, 179, 0.12);
}
.home-prompt.drag-over {
  border-color: var(--lw-accent);
  box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.15);
}
.home-prompt-field { position: relative; min-height: 100px; }
.home-prompt textarea {
  width: 100%; border: 0; outline: 0; resize: none;
  min-height: 100px; max-height: 220px;
  padding: 14px 20px 10px;
  font-size: 17px; font-weight: 450; line-height: 1.5;
  font-family: var(--lw-font-ui); color: var(--lw-fg-primary); background: transparent;
  letter-spacing: -0.01em;
  position: relative; z-index: 1;
}
.home-prompt textarea::placeholder { color: transparent; }
.home-prompt-autotype {
  position: absolute; inset: 0;
  padding: 14px 20px 10px;
  font-size: 17px; font-weight: 450; line-height: 1.5;
  font-family: var(--lw-font-ui);
  letter-spacing: -0.01em;
  color: #9ca3af;
  pointer-events: none;
  white-space: pre-wrap;
  word-break: break-word;
  z-index: 0;
}
.home-prompt-autotype.hidden { display: none; }
.home-prompt-autotype .caret {
  display: inline-block;
  width: 1.5px; height: 1.1em;
  background: #9ca3af;
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: home-caret-blink 1.05s step-end infinite;
}
.home-prompt-autotype.deleting .caret { background: var(--lw-accent); }
@keyframes home-caret-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.home-prompt-attachments {
  display: none;
  flex-wrap: wrap; gap: 8px;
  padding: 0 16px 10px;
}
.home-prompt-attachments:not([hidden]) { display: flex; }
.attach-chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(0,0,0,0.1);
  background: #f8f9fa;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px; font-weight: 600; color: var(--lw-fg-secondary);
  font-family: var(--lw-font-mono);
}
.attach-chip b { color: var(--lw-fg-primary); font-weight: 700; }
.attach-chip .rm, .attach-chip button {
  border: 0; background: transparent; cursor: pointer;
  color: #888; font-weight: 800; line-height: 1; padding: 0 2px;
}
.attach-chip .rm:hover { color: var(--lw-fg-primary); }

.home-prompt-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: linear-gradient(180deg, rgba(248,249,250,0.5), #fff);
}
.home-prompt-tools { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.home-prompt-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.home-tool {
  height: 36px; min-width: 36px;
  border: 0; border-radius: 10px;
  background: transparent; color: #5b6470;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 0 8px;
  font-size: 12px; font-weight: 650;
  cursor: pointer;
  transition: background 120ms, color 120ms;
}
.home-tool svg { width: 18px; height: 18px; flex-shrink: 0; }
.home-tool:hover, .home-tool.on { background: var(--lw-bg-surface); color: var(--lw-fg-primary); }
@media (max-width: 640px) { .home-tool .t { display: none; } }

.home-voice-btn {
  width: 40px; height: 40px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 999px;
  background: #fff;
  color: var(--lw-fg-secondary);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background 120ms, color 120ms, border-color 120ms;
}
.home-voice-btn:hover { border-color: rgba(0,86,179,0.3); color: var(--lw-accent); }
.home-voice-btn.on, .home-voice-btn.listening {
  background: var(--lw-accent); color: #fff; border-color: var(--lw-accent);
  box-shadow: 0 6px 16px rgba(0, 86, 179, 0.3);
}
.home-voice-btn.listening {
  background: #c2255c; border-color: #c2255c;
  animation: home-pulse-voice 1.1s ease-in-out infinite;
}
@keyframes home-pulse-voice {
  0%, 100% { box-shadow: 0 0 0 0 rgba(194, 37, 92, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(194, 37, 92, 0); }
}
.home-voice-btn svg { width: 18px; height: 18px; }

.home-build {
  background: var(--lw-accent); color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700; font-size: 14px;
  letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.2) inset,
    0 6px 16px rgba(0, 86, 179, 0.35);
  transition: transform 120ms, filter 120ms, box-shadow 120ms;
}
.home-build:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.2) inset,
    0 8px 20px rgba(0, 86, 179, 0.4);
}
.home-build:active { transform: translateY(0); }
.home-build svg { width: 16px; height: 16px; flex-shrink: 0; }
a.home-build, .home-build-link {
  border: 2px solid var(--lw-border);
  border-radius: 12px;
  box-shadow: 3px 3px 0 #1a1a1a;
  text-decoration: none;
}
a.home-build:hover, .home-build-link:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #1a1a1a;
  filter: none;
}

.home-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-top: 16px;
}
.home-chip {
  border: 2px solid var(--lw-border-soft);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px; font-weight: 700; color: var(--lw-fg-secondary);
  cursor: pointer;
  font-family: inherit;
}
.home-chip:hover, .home-chip.on {
  border-color: var(--lw-accent); color: var(--lw-accent); background: var(--lw-accent-soft);
}

/* Live Nokia side */
.home-live-side { min-width: 0; }
.home-live-row {
  margin: 0;
  border: 2px solid var(--lw-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 5px 5px 0 #1a1a1a;
  background: #0d0e12;
  text-align: left;
}
/* The whole live card links to the lab — same affordance as .home-build. */
a.home-live-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms, box-shadow 120ms;
}
a.home-live-link:hover, a.home-live-link:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 #1a1a1a;
}
/* Single-column hero (≤860px): don't let the LCD balloon to full width —
   cap the card and center it, or it dwarfs the headline on small windows. */
@media (max-width: 860px) {
  .home-live-side { max-width: 380px; margin: 0 auto; width: 100%; }
}
.home-live-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; background: #1a1a1a; color: #c8ccd4;
  font-family: var(--lw-font-mono); font-size: 11px; font-weight: 600;
}
.home-live-bar .run { color: #9ef0a8; display: inline-flex; align-items: center; gap: 6px; }
.home-live-bar .run::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: #27c93f;
}
.home-live-cap {
  margin-top: 10px; font-size: 12px; color: var(--lw-fg-tertiary); text-align: center;
}
.home-live-cap a { color: var(--lw-accent); font-weight: 700; }
.home-live-cap code {
  font-family: var(--lw-font-mono); background: rgba(0,0,0,0.06); padding: 1px 5px; border-radius: 3px;
}
.home-nokia-stage {
  background: linear-gradient(160deg, #cfe04a, #aab51a);
  aspect-ratio: 84 / 48;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 2px #5c6320, inset 0 0 18px rgba(0,0,0,0.25);
}
.home-nokia-stage canvas {
  width: 92%; height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.home-toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1a1a1a; color: #fff; padding: 10px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none;
  transition: opacity 180ms, transform 180ms; z-index: 100;
  border: 2px solid #0056b3; box-shadow: 4px 4px 0 #0056b3;
}
.home-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Trust */
.home-trust {
  max-width: 960px; margin: 48px auto 0; padding: 0 24px 40px;
  text-align: center;
}
.home-trust p {
  margin: 0 0 16px; font-size: 13px; font-weight: 600; color: var(--lw-fg-tertiary);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.home-trust-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px;
}
.home-trust-item {
  border: 2px solid var(--lw-border);
  background: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px; font-weight: 700;
  box-shadow: 2px 2px 0 #1a1a1a;
  color: inherit;
  text-decoration: none;
}
a.home-trust-item:hover {
  border-color: var(--lw-accent);
}
.home-trust-item span { color: var(--lw-accent); }
.home-trust-item.home-trust-github {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-block: 6px;
}
.home-trust-star-badge {
  display: block;
  height: 20px;
  width: auto;
}

/* How it works */
.home-meet {
  background: var(--lw-bg-surface);
  border-top: 2px solid var(--lw-border);
  border-bottom: 2px solid var(--lw-border);
  padding: 72px 24px;
}
.home-meet-inner { max-width: 1000px; margin: 0 auto; }
.home-meet h2 {
  margin: 0 0 8px; text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em;
}
.home-lead {
  text-align: center; color: var(--lw-fg-secondary); margin: 0 0 40px; font-size: 1.05rem;
}
.home-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 800px) { .home-steps { grid-template-columns: 1fr; } }
.home-step {
  background: #fff;
  border: 2px solid var(--lw-border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 4px 4px 0 #1a1a1a;
}
.home-step .n {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--lw-accent); color: #fff;
  font-size: 13px; font-weight: 800;
  border: 2px solid var(--lw-border);
  margin-bottom: 12px;
}
.home-step h3 { margin: 0 0 8px; font-size: 1.1rem; }
.home-step p { margin: 0; color: var(--lw-fg-secondary); font-size: 14px; }

/* Labs gallery */
.home-discover {
  padding: 72px 24px;
  max-width: 1120px; margin: 0 auto;
}
.home-discover-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end;
  gap: 12px; margin-bottom: 28px;
}
.home-discover-head h2 {
  margin: 0 0 6px; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.03em;
}
.home-discover-head p { margin: 0; color: var(--lw-fg-secondary); }
.home-discover-head a {
  font-weight: 700; color: var(--lw-accent); font-size: 14px;
  border-bottom: 2px solid var(--lw-accent);
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .home-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .home-grid { grid-template-columns: 1fr; } }

.home-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 2px solid var(--lw-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 4px 4px 0 #1a1a1a;
  transition: transform 120ms, box-shadow 120ms;
}
.home-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #1a1a1a; }
.home-card-img {
  position: relative; height: 170px; background: #0d0e12;
  border-bottom: 2px solid var(--lw-border);
  display: block;
}
.home-card-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block;
}
.home-live-pill {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,0.78); color: #fff;
  font-size: 10px; font-weight: 800; font-family: var(--lw-font-mono);
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 4px 9px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
}
.home-live-pill::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: #27c93f;
}
.home-card[data-lab-id="agent-invaders-embed"] .home-live-pill::before {
  background: #7db4ff;
}
.home-card-body { flex: 1; padding: 14px 16px 14px; display: flex; flex-direction: column; gap: 0; }
.home-card-body .tag {
  display: inline-block; font-size: 11px; font-weight: 700; color: var(--lw-fg-tertiary);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px;
}
.home-card-body h3 { margin: 0 0 4px; font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.home-card-body h3 a { color: inherit; }
.home-card-body h3 a:hover { color: var(--lw-accent); }
.home-card-body p { margin: 0 0 12px; font-size: 13px; color: var(--lw-fg-secondary); flex: 1; }
.home-card-open {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--lw-border-soft);
  color: var(--lw-accent);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.home-card-open:hover { color: var(--lw-accent-hover); }
.home-card-meta {
  display: flex; align-items: center;
  gap: 8px; padding-top: 10px; border-top: 1px solid var(--lw-border-soft);
}
/* Blueprint-style author chip: LabWired account label, not GitHub.
   margin-right:auto keeps the author left and groups Fork + Star tightly on
   the right, instead of space-between stranding Fork in the middle. */
.home-card-author {
  display: inline-flex; align-items: center; gap: 8px;
  min-width: 0; margin-right: auto;
  font-size: 12px; font-weight: 600; color: var(--lw-fg-secondary);
  text-decoration: none; cursor: default;
}
a.home-card-author:hover .name { color: var(--lw-accent); text-decoration: underline; }
.home-card-author .avatar {
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--lw-accent-soft); color: var(--lw-accent);
  border: 1.5px solid rgba(0, 86, 179, 0.25);
  display: grid; place-items: center;
  font-size: 10px; font-weight: 800; flex-shrink: 0;
  object-fit: cover;
}
.home-card-author .avatar.curated {
  background: rgba(0, 86, 179, 0.12);
  color: var(--lw-accent);
}
.home-card-author .name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--lw-fg-primary);
}
.home-card-author .curated-pill {
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--lw-accent);
  border: 1px solid rgba(0, 86, 179, 0.35);
  border-radius: 999px; padding: 1px 7px; flex-shrink: 0;
}
.home-community-empty {
  grid-column: 1 / -1; margin: 0; padding: 18px 4px;
  font-size: 14px; color: var(--lw-fg-secondary);
}
.home-card-img--placeholder {
  display: grid; place-items: center;
}
.home-card-placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background: var(--lw-accent-soft);
  color: var(--lw-fg-secondary);
  font-size: 13px; font-weight: 700; font-family: var(--lw-font-mono);
  text-align: center; padding: 12px;
}
.home-card-page {
  font-size: 11px; font-weight: 700; color: var(--lw-fg-tertiary);
  text-decoration: none; white-space: nowrap;
}
.home-card-page:hover { color: var(--lw-accent); text-decoration: underline; }
/* Community "Open in Playground" sits above meta (author + star). */
.home-community .home-card-open {
  margin-top: auto;
}
/* Auth chrome (Clerk) */
.auth-slot {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}
.auth-btn {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--lw-border);
  background: #fff;
  color: var(--lw-fg-primary);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--lw-accent);
  text-decoration: none;
}
.auth-btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--lw-accent); }
.auth-btn-ghost {
  box-shadow: none;
  background: transparent;
  font-weight: 600;
  color: var(--lw-fg-secondary);
  padding: 4px 8px;
}
.auth-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.auth-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--lw-fg-secondary);
  max-width: 12ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-star-btn.is-busy,
.home-fork-btn.is-busy {
  opacity: 0.55;
  pointer-events: none;
}

.home-fork-btn {
  display: inline-flex; align-items: center;
  border: 2px solid var(--lw-border);
  background: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px; font-weight: 700; color: var(--lw-fg-secondary);
  box-shadow: 2px 2px 0 #1a1a1a;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
  transition: color 120ms, background 120ms, border-color 120ms;
}
.home-fork-btn:hover {
  color: var(--lw-accent);
  border-color: var(--lw-accent);
  background: var(--lw-accent-soft);
}
.home-star-btn {
  display: inline-flex; align-items: center; gap: 5px;
  border: 2px solid var(--lw-border);
  background: #fff;
  border-radius: 999px;
  padding: 4px 10px 4px 8px;
  font-size: 12px; font-weight: 700; color: var(--lw-fg-secondary);
  box-shadow: 2px 2px 0 #1a1a1a;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
  transition: color 120ms, background 120ms, border-color 120ms, transform 120ms;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.home-star-btn:hover { color: var(--lw-fg-primary); }
.home-star-btn:focus-visible {
  outline: 2px solid var(--lw-accent);
  outline-offset: 2px;
}
.home-star-btn:active { transform: scale(0.96); }
.home-star-btn[aria-pressed="true"] {
  color: var(--lw-accent);
  border-color: var(--lw-accent);
  background: var(--lw-accent-soft);
}
.home-star-btn svg { width: 14px; height: 14px; transition: fill 120ms, transform 160ms; }
.home-star-btn[aria-pressed="true"] svg {
  fill: var(--lw-accent);
  stroke: var(--lw-accent);
  transform: scale(1.08);
}
.home-star-btn .star-count {
  font-variant-numeric: tabular-nums;
  min-width: 1.25em;
}

.home-blueprints {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px;
}
.home-bp-label {
  width: 100%; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--lw-fg-tertiary); margin-bottom: 4px;
}
.home-bp {
  border: 2px solid var(--lw-border);
  background: var(--lw-bg-surface);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px; font-weight: 700;
  box-shadow: 2px 2px 0 #1a1a1a;
  cursor: pointer;
  font-family: inherit;
}
.home-bp:hover { background: var(--lw-accent-soft); color: var(--lw-accent); }

/* Numbers band */
.home-nums {
  background: var(--lw-fg-primary); color: #fff;
  padding: 56px 24px;
  text-align: center;
}
.home-nums-inner {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 700px) { .home-nums-inner { grid-template-columns: 1fr; } }
.home-num strong {
  display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em;
  color: #7db4ff; margin-bottom: 6px;
}
.home-num span { font-size: 14px; color: #a8adb8; }

/* MCP */
.home-mcp {
  max-width: 960px; margin: 0 auto; padding: 72px 24px;
}
.home-mcp-intro { margin-bottom: 20px; }
.home-mcp-intro h2 {
  margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 1.85rem);
  letter-spacing: -0.02em; font-weight: 800;
}
.home-mcp-intro p {
  margin: 0; color: var(--lw-fg-secondary); font-size: 15px; max-width: 56ch; line-height: 1.5;
}
.home-mcp-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 800px) { .home-mcp-grid { grid-template-columns: 1fr 1fr; } }
.home-mcp-box {
  border: 2px solid var(--lw-border);
  border-radius: 16px;
  box-shadow: 5px 5px 0 #1a1a1a;
  padding: 28px;
  display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start;
  background: #fff;
}
.home-mcp-box h2 { margin: 0 0 8px; font-size: 1.25rem; letter-spacing: -0.02em; }
.home-mcp-box p { margin: 0; color: var(--lw-fg-secondary); font-size: 14px; line-height: 1.45; }
.home-mcp-box code {
  font-family: var(--lw-font-mono); font-size: 12px;
  background: #f0f2f6; padding: 1px 5px; border-radius: 4px;
}
.home-mcp-box pre {
  margin: 0 0 10px; padding: 12px 14px;
  background: #0d0e12; color: #e8f1ff;
  border: 2px solid var(--lw-border); border-radius: 10px;
  font-family: var(--lw-font-mono); font-size: 12px; white-space: pre-wrap;
  cursor: pointer;
}
.home-mcp-box pre code {
  color: #e8f1ff !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  font: inherit;
}
.home-mcp-box pre:last-child { margin-bottom: 0; }
.home-mcp-link { margin-top: 8px !important; font-size: 13px !important; }
.home-mcp-link a { color: var(--lw-accent); font-weight: 600; text-decoration: none; }
.home-mcp-link a:hover { text-decoration: underline; }

/* Final CTA */
.home-final {
  text-align: center; padding: 72px 24px 80px;
  border-top: 2px solid var(--lw-border);
  background: var(--lw-bg-surface);
}
.home-final h2 {
  margin: 0 0 12px; font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800; letter-spacing: -0.03em;
}
.home-final .home-build { font-size: 15px; padding: 14px 22px; }
