
:root {
  color-scheme: light;
  --ink: #15191d;
  --muted: #5a6572;
  --paper: #f4f3ee;
  --surface: #ffffff;
  --line: rgba(21, 25, 29, 0.16);
  --green: #0f7a5f;
  --blue: #285fa8;
  --coral: #e14f33;
  --amber: #cc9a1d;
  --dark: #0b1118;
  --radius: 8px;
  --container: min(1180px, calc(100vw - 36px));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.lab-hero {
  background: var(--dark);
  color: #fff;
  padding-bottom: 72px;
}

.lab-nav {
  width: var(--container);
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.lab-nav div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.lab-nav a {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  text-decoration: none;
}

.lab-hero section {
  width: var(--container);
  margin: 0 auto;
  padding-top: 70px;
}

.kicker,
.component-id {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.lab-hero h1 {
  max-width: 900px;
  margin: 12px 0 18px;
  font-size: 4.6rem;
  line-height: 0.96;
  letter-spacing: 0;
}

.lab-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.12rem;
}

main {
  width: var(--container);
  margin: 0 auto;
  padding: 44px 0 120px;
  display: grid;
  gap: 28px;
}

.specimen {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 18px 54px rgba(21, 25, 29, 0.08);
}

.specimen[data-group="hero"] {
  border-color: rgba(15, 122, 95, 0.32);
}

.specimen[data-group="cta"] {
  border-color: rgba(225, 79, 51, 0.34);
}

.specimen-head {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  background: #fbfaf6;
}

.specimen-head h3 {
  margin: 4px 0;
  font-size: 1.16rem;
  letter-spacing: 0;
}

.specimen-head p {
  margin: 0;
  color: var(--muted);
}

.pick,
.selection button,
.actions a,
.cta a,
.demo-nav button,
.demo-form button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.pick[aria-pressed="true"] {
  background: var(--green);
  color: #fff;
}

.preview {
  padding: 24px;
}

.preview h2,
.preview b {
  letter-spacing: 0;
}

.c-hero {
  min-height: 420px;
  display: grid;
  align-items: center;
  gap: 24px;
  border-radius: var(--radius);
  padding: 34px;
  overflow: hidden;
}

.c-hero h2 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: 3.2rem;
  line-height: 1;
}

.c-hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.05rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.actions a,
.cta a {
  display: inline-flex;
  align-items: center;
  background: var(--green);
  color: #fff;
  text-decoration: none;
}

.actions a + a {
  background: #fff;
  color: var(--ink);
}

.c-hero.modern {
  grid-template-columns: 1fr 0.8fr;
  background: #10201d;
  color: #fff;
}

.c-hero.modern p {
  color: rgba(255, 255, 255, 0.74);
}

.system-card {
  min-height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    rgba(255, 255, 255, 0.08);
  background-size: 34px 34px;
}

.system-card span {
  display: block;
  margin-top: 120px;
  color: rgba(255, 255, 255, 0.72);
}

.c-hero.classic {
  justify-items: center;
  text-align: center;
  background: #fbf3e2;
  font-family: Georgia, "Times New Roman", serif;
}

.c-hero.dynamic {
  background: linear-gradient(135deg, #fff8f1, #eaf1ff);
  border: 3px solid #17112c;
  box-shadow: 12px 12px 0 #17112c;
}

.impact {
  max-width: 820px;
  font-size: 4.3rem;
  line-height: 0.94;
  font-weight: 950;
}

.c-hero.readable {
  min-height: 320px;
  background: #fff;
}

.c-hero.readable h2 {
  font-size: 2.7rem;
  line-height: 1.1;
}

.c-hero.future {
  background:
    linear-gradient(rgba(90, 220, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 220, 255, 0.06) 1px, transparent 1px),
    #05070d;
  background-size: 34px 34px;
  color: #eef7ff;
}

.c-hero.future p {
  color: #a8bdd1;
}

.console-lines {
  display: grid;
  gap: 8px;
  max-width: 520px;
  margin-top: 20px;
}

.console-lines span {
  border: 1px solid rgba(72, 230, 193, 0.26);
  border-radius: var(--radius);
  padding: 10px;
  color: #48e6c1;
}

.demo-nav,
.trust,
.metric-row,
.proof-row,
.card-grid,
.quiet-cards,
.rail-cards,
.steps,
.timeline,
.kanban,
.quotes,
.before-after,
.case-grid,
.risk-grid,
.tiers,
.fit,
.article-grid,
.demo-footer {
  display: grid;
  gap: 14px;
}

.demo-nav {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.demo-nav a {
  margin-right: 12px;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.demo-nav.segmented span {
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
}

.demo-nav.editorial {
  grid-template-columns: repeat(5, auto);
  justify-content: center;
  font-family: Georgia, "Times New Roman", serif;
}

.trust.logos,
.metric-row,
.proof-row,
.card-grid.three,
.quiet-cards,
.rail-cards,
.steps,
.case-grid,
.risk-grid,
.tiers,
.article-grid {
  grid-template-columns: repeat(3, 1fr);
}

.trust.logos {
  align-items: center;
  grid-template-columns: 1.2fr repeat(4, 1fr);
}

.trust span,
.metric-row div,
.proof-row div,
.card-grid div,
.quiet-cards div,
.rail-cards div,
.steps div,
.kanban div,
.quotes blockquote,
.before-after div,
.case-grid div,
.risk-grid div,
.tiers div,
.fit div,
.article-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
}

.metric-row b {
  display: block;
  color: var(--blue);
  font-size: 2.6rem;
  line-height: 1;
}

.card-grid.two,
.before-after,
.fit,
.quotes {
  grid-template-columns: repeat(2, 1fr);
}

.bento {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

.bento div {
  min-height: 160px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
}

.bento .wide {
  grid-row: span 2;
  background: #10201d;
  color: #fff;
}

.pain span,
.article-grid span {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rail-cards div {
  border-left: 6px solid var(--green);
}

.rail-cards div:nth-child(2) {
  border-left-color: var(--blue);
}

.rail-cards div:nth-child(3) {
  border-left-color: var(--coral);
}

.timeline {
  position: relative;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  border-top: 4px solid var(--green);
  padding-top: 14px;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.flow span {
  flex: 1 1 140px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  font-weight: 900;
}

.kanban {
  grid-template-columns: repeat(3, 1fr);
}

.kanban p {
  border-radius: 6px;
  background: #f2f5f4;
  padding: 10px;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: var(--radius);
  padding: 24px;
}

.cta.wide {
  background: #10201d;
  color: #fff;
}

.cta.minimal {
  border: 1px solid var(--line);
}

.cta.contrast {
  background: #15191d;
  color: #fff;
}

.sticky-demo {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.sticky-demo a {
  align-self: center;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  padding: 12px 16px;
  font-weight: 900;
  text-decoration: none;
}

.matrix {
  width: 100%;
  border-collapse: collapse;
}

.matrix th,
.matrix td {
  border: 1px solid var(--line);
  padding: 12px;
  text-align: left;
}

.demo-form {
  display: grid;
  gap: 14px;
  max-width: 620px;
}

.demo-form label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.demo-form input,
.demo-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  font: inherit;
}

.demo-form textarea {
  min-height: 120px;
}

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: #fff;
}

.faq summary {
  font-weight: 900;
  cursor: pointer;
}

.demo-footer.business,
.demo-footer.dense {
  grid-template-columns: 1.2fr 1fr 1fr;
  background: #101820;
  color: #fff;
  padding: 24px;
  border-radius: var(--radius);
}

.demo-footer.minimal {
  grid-template-columns: 1fr auto auto;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 18px;
}

.demo-footer a {
  display: block;
  margin-top: 6px;
  color: inherit;
}

.selection {
  position: fixed;
  z-index: 100;
  right: 18px;
  bottom: 18px;
  width: min(420px, calc(100vw - 36px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 54px rgba(21, 25, 29, 0.18);
  backdrop-filter: blur(12px);
}

.selection div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.selection output {
  display: block;
  min-height: 38px;
  margin: 8px 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.86rem;
  word-break: break-word;
}

@media (max-width: 860px) {
  :root {
    --container: min(100vw - 28px, 1180px);
  }

  .lab-nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .lab-nav div {
    justify-content: flex-start;
  }

  .lab-hero section {
    padding-top: 34px;
  }

  .lab-hero h1 {
    font-size: 2.7rem;
    line-height: 1.04;
  }

  .specimen-head,
  .cta,
  .sticky-demo {
    align-items: flex-start;
    flex-direction: column;
  }

  .preview {
    padding: 14px;
  }

  .c-hero,
  .c-hero.modern,
  .trust.logos,
  .metric-row,
  .proof-row,
  .card-grid.two,
  .card-grid.three,
  .quiet-cards,
  .rail-cards,
  .steps,
  .timeline,
  .kanban,
  .quotes,
  .before-after,
  .case-grid,
  .risk-grid,
  .tiers,
  .fit,
  .article-grid,
  .demo-footer.business,
  .demo-footer.dense,
  .demo-footer.minimal,
  .demo-nav,
  .bento {
    grid-template-columns: 1fr;
  }

  .c-hero {
    min-height: auto;
    padding: 22px;
  }

  .c-hero h2,
  .impact {
    font-size: 2.3rem;
    line-height: 1.05;
  }

  .selection {
    position: sticky;
    top: 0;
    right: auto;
    bottom: auto;
    width: 100%;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    min-height: 0;
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .selection div {
    grid-column: 1 / -1;
  }

  .selection output {
    min-height: 24px;
    max-height: 34px;
    margin: 0;
    overflow: auto;
    white-space: nowrap;
  }

  .selection button {
    min-height: 36px;
    padding: 0 10px;
  }
}
