/* OpenRoom landing — default theme tokens from packages/ui.
   Three surfaces, two hues, two shadows. Structure comes from fill. */

.landing {
  --background: #faf9f8;
  --foreground: #242424;
  --card: #ffffff;
  --primary: #0f6cbd;
  --primary-hover: #115ea3;
  --primary-foreground: #ffffff;
  --secondary: #f3f2f1;
  --secondary-foreground: #242424;
  --muted-foreground: #616161;
  --tertiary: #8a8886;
  --accent: #ebf3fc;
  --accent-foreground: #115ea3;
  --border: #e1dfdd;
  --hairline: #edebe9;
  --chrome: #f3f2f1;
  --desk: #e8e6e4;
  --live: #ca5010;
  --live-foreground: #ffffff;
  --live-tint: #fdf1e8;
  --live-tint-foreground: #9c3d0b;
  --radius: 0.25rem;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  --shadow-page: 0 1px 2px rgba(0, 0, 0, 0.12), 0 6px 20px rgba(0, 0, 0, 0.1);
  --chart-1: #0f6cbd;
  --chart-2: #107c41;
  --chart-3: #b88217;
  --chart-4: #b4009e;
  --chart-5: #5c2e91;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system,
    "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  .landing {
    --background: #201f1e;
    --foreground: #f3f2f1;
    --card: #292827;
    --primary: #4f9ae8;
    --primary-hover: #7ab4ee;
    --primary-foreground: #06122b;
    --secondary: #323130;
    --secondary-foreground: #f3f2f1;
    --muted-foreground: #c8c6c4;
    --tertiary: #a19f9d;
    --accent: #163a5c;
    --accent-foreground: #b3d6f5;
    --border: #484644;
    --hairline: #3b3a39;
    --chrome: #252423;
    --desk: #151413;
    --live: #ca5010;
    --live-foreground: #ffffff;
    --live-tint: #3d2213;
    --live-tint-foreground: #f4c7a5;
    --shadow-page: 0 1px 2px rgba(0, 0, 0, 0.28), 0 6px 24px rgba(0, 0, 0, 0.32);
    --chart-1: #4f9ae8;
    --chart-2: #54b471;
    --chart-3: #e8b44a;
    --chart-4: #e05bc4;
    --chart-5: #a47bea;
  }
}

.landing {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font);
  font-weight: 400;
}

.landing a {
  color: var(--primary);
}

.landing .wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Chrome nav — same furniture as the host shell. */
.landing .topnav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--chrome);
  border-bottom: 1px solid var(--border);
  min-height: 44px;
  padding: 0 1.5rem;
  font-size: 0.875rem;
}

.landing .topnav .brand {
  font-weight: 600;
  color: var(--foreground);
}

.landing .topnav .brand img {
  border-radius: var(--radius-md);
}

.landing .topnav .nav-cta {
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius-md);
  padding: 0.4rem 0.9rem;
}

.landing .topnav .nav-cta:hover {
  background: var(--primary-hover);
  text-decoration: none;
}

.landing footer.site {
  background: var(--chrome);
  border-top: 1px solid var(--border);
  margin-top: 0;
  max-width: none;
  padding: 1.25rem 1.5rem 2rem;
}

section.band {
  padding: 4.5rem 0;
  border-top: 1px solid var(--hairline);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--tertiary);
  margin: 0 0 0.5rem;
}

.landing h2.section-title {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  border: 0;
  padding: 0;
  margin: 0 0 0.75rem;
}

.section-lede {
  max-width: 44rem;
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 2.5rem;
}

/* ---------------------------------------------------------------- hero */

.hero {
  padding: 4.5rem 0 0;
  text-align: center;
}

.pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--live-tint-foreground);
  background: var(--live-tint);
  border: 0;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 0 auto 1.25rem;
  max-width: 22ch;
}

.hero .lede {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted-foreground);
  max-width: 40rem;
  margin: 0 auto 1.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn.solid {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.btn.solid:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  text-decoration: none;
}

.btn.outline {
  color: var(--foreground);
  background: var(--card);
  border-color: var(--input);
}

.btn.outline:hover {
  background: var(--chrome);
  text-decoration: none;
}

.hero-note {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--tertiary);
}

/* Stage mock sits on the desk — same grammar as the live console. */
.hero-desk {
  background: var(--desk);
  margin-top: 3.5rem;
  padding: 2.5rem 0 3rem;
}

.stage-mock {
  background: var(--card);
  color: var(--foreground);
  border: 0;
  border-radius: 12px;
  box-shadow: var(--shadow-page);
  padding: 1.75rem 2rem 2rem;
  font-variant-numeric: tabular-nums;
  text-align: left;
  max-width: 46rem;
  margin: 0 auto;
}

.stage-mock .session-code {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0.85rem;
  margin-bottom: 1.25rem;
}

.stage-mock .session-code .join {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.stage-mock .live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--live);
  flex: none;
}

.stage-mock .session-code strong {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--live);
}

.stage-mock .prompt {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
  max-width: 28ch;
  margin: 0 0 1.35rem;
}

.stage-mock .bar-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr 2.5rem;
  gap: 0.75rem;
  align-items: center;
  margin: 0.7rem 0;
  font-size: 0.875rem;
}

.stage-mock .bar {
  height: 1.875rem;
  border-radius: var(--radius-sm);
  transform-origin: left;
  animation: bar-grow 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.stage-mock .bar-row:nth-child(3) .bar {
  animation-delay: 0.15s;
}

.stage-mock .bar-row:nth-child(4) .bar {
  animation-delay: 0.3s;
}

@keyframes bar-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.stage-mock .pct {
  text-align: right;
  color: var(--muted-foreground);
}

.assistant-strip {
  border-top: 0;
  padding: 1.5rem 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.75rem;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.assistant-strip .label {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--tertiary);
}

.assistant-strip .who {
  font-weight: 600;
  color: var(--foreground);
}

/* ------------------------------------------------------------- grids */
/* One paper sheet, hairlines inside. Not a field of boxed tiles. */

.route-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
}

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

.product-route {
  background: var(--card);
  border: 0;
  border-radius: 12px;
  padding: 1.75rem 1.85rem 2rem;
}

.product-route.featured {
  background: var(--accent);
}

.fact {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 1.5rem 1.6rem;
  box-shadow: 1px 0 0 var(--hairline), 0 1px 0 var(--hairline);
}

.product-route h3,
.fact h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.product-route h3 {
  font-size: 1.25rem;
}

.product-route > p:not(.eyebrow),
.fact p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.5;
}

.product-route ul {
  margin: 1.15rem 0 1.35rem;
  padding-left: 1.15rem;
  color: var(--foreground);
  font-size: 0.875rem;
}

.product-route li {
  margin: 0.4rem 0;
}

.route-link {
  font-weight: 600;
}

.fact .swatch {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  margin-right: 0.4rem;
  vertical-align: -0.05rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.steps.four {
  grid-template-columns: repeat(4, 1fr);
}

.section-action {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin: 2.5rem 0 0;
}

.step {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0 0.25rem 0 0;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--tertiary);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 0.65rem;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
}

.step p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ------------------------------------------------------------ agent */

.agent-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.agent-split ul {
  margin: 1rem 0;
  padding-left: 1.25rem;
}

.agent-split li {
  margin: 0.55rem 0;
}

.terminal {
  background: var(--card);
  color: var(--foreground);
  border: 0;
  border-radius: 12px;
  box-shadow: var(--shadow-page);
  padding: 1.25rem 1.4rem;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.55;
}

.terminal code {
  background: none;
  color: inherit;
  padding: 0;
}

.terminal .cm {
  color: var(--tertiary);
}

/* ------------------------------------------------------------ themes */

.theme-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.theme-card {
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
}

.theme-card .paint {
  padding: 1rem;
  border-bottom: 1px solid var(--hairline);
}

.theme-card .paint .mini-prompt {
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.theme-card .paint .mini-bar {
  height: 0.5rem;
  border-radius: var(--radius-sm);
  margin: 0.3rem 0;
}

.theme-card .meta {
  padding: 0.75rem 1rem;
}

.theme-card .meta h3 {
  margin: 0 0 0.2rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.theme-card .meta p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* -------------------------------------------------------------- faq */

.faq-list {
  background: var(--card);
  border: 0;
  border-radius: 12px;
  overflow: hidden;
}

.faq-list details {
  border-bottom: 1px solid var(--hairline);
}

.faq-list details:last-child {
  border-bottom: 0;
}

.faq-list summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
  list-style: none;
}

.faq-list summary::before {
  content: "+";
  display: inline-block;
  width: 1.25rem;
  color: var(--primary);
  font-weight: 600;
}

.faq-list details[open] summary::before {
  content: "–";
}

.faq-list details p {
  margin: 0 1.25rem 1.15rem 2.5rem;
  max-width: 46rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

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

.final-cta {
  background: var(--chrome);
  color: var(--foreground);
  border-top: 1px solid var(--border);
  padding: 4rem 0;
  text-align: center;
}

.final-cta h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  border: 0;
  padding: 0;
}

.final-cta p {
  margin: 0 0 1.5rem;
  color: var(--muted-foreground);
}

.final-cta .btn.outline {
  background: var(--card);
}

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

@media (max-width: 60rem) {
  .agent-split,
  .card-grid,
  .card-grid.two,
  .route-grid,
  .steps,
  .steps.four {
    grid-template-columns: 1fr;
  }

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

  .hero {
    padding: 3rem 0 0;
  }

  .hero-desk {
    margin-top: 2.5rem;
    padding: 1.75rem 0 2.25rem;
  }
}

@media (max-width: 34rem) {
  .landing .topnav {
    flex-wrap: nowrap;
    gap: 0.75rem;
    padding: 0 1rem;
    font-size: 0.82rem;
  }

  .landing .topnav .brand {
    margin-right: 0;
  }

  .landing .topnav .nav-optional {
    display: none;
  }

  .theme-grid {
    grid-template-columns: 1fr;
  }

  .stage-mock {
    padding: 1.25rem 1.1rem 1.4rem;
  }

  .stage-mock .bar-row {
    grid-template-columns: 5rem 1fr 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing * {
    animation: none !important;
    transition: none !important;
  }
}
