/* Colours are tokens, as in the app (apps/web/src/index.css): defined once here and redefined for
   dark mode, so no rule below names a colour of its own. */
:root {
  --bg: hsl(0 0% 100%);
  --bg-alt: hsl(240 20% 98%);
  --fg: hsl(222 47% 11%);
  --muted: hsl(215 16% 42%);
  --border: hsl(220 14% 90%);
  --card: hsl(0 0% 100%);
  --primary: hsl(243 75% 59%);
  --primary-fg: hsl(0 0% 100%);
  --primary-soft: hsl(243 90% 96%);
  --ring: hsl(243 75% 59% / 0.35);
  --shadow: 0 1px 2px hsl(222 47% 11% / 0.05), 0 12px 40px -12px hsl(243 50% 30% / 0.22);
  --term-bg: hsl(222 47% 11%);
  --term-fg: hsl(220 14% 90%);
  --cta-bg: hsl(243 75% 59%);
  --cta-fg: hsl(0 0% 100%);
  --good: hsl(142 64% 30%);
  --good-soft: hsl(142 70% 94%);
  --warn: hsl(32 90% 36%);
  --warn-soft: hsl(40 95% 92%);
  --bad: hsl(0 70% 46%);
  --bad-soft: hsl(0 85% 95%);
  --info: hsl(217 80% 46%);
  --info-soft: hsl(217 90% 95%);
  --neutral-soft: hsl(220 14% 94%);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: hsl(224 30% 8%);
    --bg-alt: hsl(224 28% 11%);
    --fg: hsl(220 14% 94%);
    --muted: hsl(218 11% 65%);
    --border: hsl(220 16% 20%);
    --card: hsl(224 26% 12%);
    --primary: hsl(234 89% 74%);
    --primary-fg: hsl(222 47% 11%);
    --primary-soft: hsl(243 40% 20%);
    --ring: hsl(234 89% 74% / 0.4);
    --shadow: 0 1px 2px hsl(0 0% 0% / 0.3), 0 12px 40px -12px hsl(0 0% 0% / 0.6);
    --term-bg: hsl(224 32% 5%);
    --cta-bg: hsl(243 50% 32%);
    --good: hsl(142 60% 62%);
    --good-soft: hsl(142 40% 16%);
    --warn: hsl(38 92% 62%);
    --warn-soft: hsl(36 50% 16%);
    --bad: hsl(0 85% 70%);
    --bad-soft: hsl(0 45% 18%);
    --info: hsl(213 90% 70%);
    --info-soft: hsl(217 45% 18%);
    --neutral-soft: hsl(220 16% 18%);
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --bg: hsl(224 30% 8%);
  --bg-alt: hsl(224 28% 11%);
  --fg: hsl(220 14% 94%);
  --muted: hsl(218 11% 65%);
  --border: hsl(220 16% 20%);
  --card: hsl(224 26% 12%);
  --primary: hsl(234 89% 74%);
  --primary-fg: hsl(222 47% 11%);
  --primary-soft: hsl(243 40% 20%);
  --ring: hsl(234 89% 74% / 0.4);
  --shadow: 0 1px 2px hsl(0 0% 0% / 0.3), 0 12px 40px -12px hsl(0 0% 0% / 0.6);
  --term-bg: hsl(224 32% 5%);
  --cta-bg: hsl(243 50% 32%);
  --good: hsl(142 60% 62%);
  --good-soft: hsl(142 40% 16%);
  --warn: hsl(38 92% 62%);
  --warn-soft: hsl(36 50% 16%);
  --bad: hsl(0 85% 70%);
  --bad-soft: hsl(0 45% 18%);
  --info: hsl(213 90% 70%);
  --info-soft: hsl(217 45% 18%);
  --neutral-soft: hsl(220 16% 18%);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--primary-soft);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 720px) {
  .wrap {
    padding: 0 32px;
  }
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--primary);
  color: var(--primary-fg);
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 100;
}
.skip:focus {
  left: 8px;
}

/* Announcement bar, above the nav */
.announce {
  background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 70%, hsl(280 80% 60%)));
  color: var(--primary-fg);
}
.announce-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  padding-top: 8px;
  padding-bottom: 8px;
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
}
.announce-tag {
  flex: none;
  padding: 1px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary-fg) 22%, transparent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.announce-cta {
  flex: none;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.announce-row:hover .announce-cta,
.announce-row:focus-visible .announce-cta {
  text-decoration-thickness: 2px;
}
/* On a phone, the claim and the link; the rest of the sentence is on the section itself. */
@media (max-width: 720px) {
  .announce-more {
    display: none;
  }
  .announce-row {
    font-size: 13px;
    gap: 8px;
  }
}
@media (max-width: 420px) {
  .announce-text {
    display: none;
  }
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}
.nav-links {
  display: none;
  gap: 24px;
  margin-left: 16px;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--fg);
}
/* Three entries — the Features menu, Integrations, AI agents — fit beside the brand and actions
   from 900px; below that they live in the menu. Eight top-level links wrapped onto two lines. */
@media (min-width: 900px) {
  .nav-links {
    display: flex;
    align-items: center;
  }
}

/* The Features menu: a disclosure button, its panel a column of section links. */
.nav-menu {
  position: relative;
}
.nav-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
}
.nav-menu-btn:hover,
.nav-menu-btn[aria-expanded='true'] {
  color: var(--fg);
}
.nav-menu-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s;
}
.nav-menu-btn[aria-expanded='true'] svg {
  transform: rotate(180deg);
}
.nav-menu-panel {
  display: none;
  flex-direction: column;
}
.nav-menu.open .nav-menu-panel {
  display: flex;
}
.nav-links .nav-menu-panel a span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
@media (min-width: 900px) {
  .nav-menu-panel {
    position: absolute;
    top: calc(100% + 14px);
    left: -14px;
    min-width: 260px;
    padding: 6px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }
  .nav-links .nav-menu-panel a {
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--fg);
  }
  .nav-links .nav-menu-panel a:hover,
  .nav-links .nav-menu-panel a:focus-visible {
    background: var(--neutral-soft);
  }
}
.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
  border-radius: 8px;
  cursor: pointer;
}
.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.i-moon {
  display: none;
}
:root[data-theme='dark'] .i-sun {
  display: none;
}
:root[data-theme='dark'] .i-moon {
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    transform 0.15s ease,
    background 0.15s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
}
.btn-outline {
  border-color: var(--border);
  background: var(--card);
}
.btn-light {
  background: var(--cta-fg);
  color: hsl(243 75% 45%);
}
@media (max-width: 420px) {
  .nav-actions .btn-sm {
    display: none;
  }
}
/* Log in and Sign up sit in the header from 421px; below that the header hides its buttons for
   room, so the menu carries them instead. Never both at once. */
.nav-links .nav-menu-only {
  display: none;
}
@media (max-width: 420px) {
  .nav-links .nav-menu-only {
    display: block;
  }
}

/* Hero */
.hero {
  padding: 56px 0 24px;
  text-align: center;
  background:
    radial-gradient(60% 50% at 50% 0%, var(--primary-soft), transparent 70%),
    var(--bg);
}
@media (min-width: 720px) {
  .hero {
    padding-top: 96px;
  }
}
.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}
.hero h1 {
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 800;
}
.br-lg {
  display: none;
}
@media (min-width: 860px) {
  .br-lg {
    display: inline;
  }
}
.lede {
  max-width: 680px;
  margin: 20px auto 0;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}
.hero-shot.frame {
  margin: 56px auto 0;
  max-width: 1080px;
}

/* Browser frame around screenshots */
.frame {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
}
.frame-bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.frame-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

/* Sections */
.section {
  padding: 72px 0;
}
@media (min-width: 720px) {
  .section {
    padding: 104px 0;
  }
}
.section.alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}
.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}
.section h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
}
.sub {
  color: var(--muted);
  font-size: 17px;
  margin: 16px 0 0;
}

/* Tour */
.tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 24px;
  scrollbar-width: thin;
}
.tabs button {
  flex: none;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.tabs button[aria-selected='true'] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-fg);
}
.panel {
  display: grid;
  gap: 32px;
  align-items: start;
}
@media (min-width: 960px) {
  .panel {
    grid-template-columns: 300px 1fr;
  }
}
.panel-copy h3 {
  font-size: 24px;
  margin-bottom: 12px;
}
.panel-copy p {
  color: var(--muted);
  margin: 0;
}
.panel img {
  transition: opacity 0.2s ease;
}
.panel img.loading {
  opacity: 0.3;
}

/* Features grid */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  background: var(--card);
}
.card svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 14px;
}
.card svg .fill {
  fill: var(--primary);
}
.card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Six cards: three by two on wide screens. */
@media (min-width: 960px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Self-hosted */
.split {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}
.checks {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
}
.checks li {
  position: relative;
  padding-left: 30px;
}
.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}
.terminal {
  border-radius: 12px;
  overflow: hidden;
  background: var(--term-bg);
  color: var(--term-fg);
  box-shadow: var(--shadow);
  min-width: 0;
}
.terminal .frame-bar {
  background: transparent;
  border-color: hsl(220 16% 22%);
}
.terminal .frame-bar span {
  background: hsl(220 16% 28%);
}
.terminal pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.7;
}
.terminal code {
  background: none;
  padding: 0;
  font-size: inherit;
}
.terminal .c {
  color: hsl(218 11% 55%);
}
.terminal .p {
  color: hsl(234 89% 74%);
}
.terminal .o {
  color: hsl(142 60% 65%);
}

/* Shared bits */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.narrow {
  max-width: 820px;
}
.grad {
  background: linear-gradient(90deg, var(--primary), hsl(280 70% 60%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.split-wide {
  align-items: start;
}
@media (min-width: 960px) {
  .split-wide {
    grid-template-columns: 5fr 6fr;
  }
  .split-wide.reverse {
    grid-template-columns: 5fr 7fr;
  }
}
.checks b {
  color: var(--fg);
}
.checks li {
  color: var(--muted);
}

/* Mobile menu: the links drop down under the bar below 900px. */
.menu-btn {
  display: grid;
}
@media (max-width: 899px) {
  .nav-links.open {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px 16px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav-links.open a,
  .nav-links.open .nav-menu-btn {
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open .nav-menu-btn {
    width: 100%;
    justify-content: space-between;
    color: var(--fg);
  }
  /* Inside the mobile menu the Features sections sit indented under their button. */
  .nav-links.open .nav-menu-panel a {
    padding-left: 16px;
  }
}
@media (min-width: 900px) {
  .menu-btn {
    display: none;
  }
}

/* Hero stats */
.stats {
  list-style: none;
  margin: 48px auto 0;
  padding: 0;
  max-width: 1080px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
@media (min-width: 720px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stats li {
  background: var(--card);
  padding: 20px 16px;
  display: grid;
  gap: 4px;
}
.stats b {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
}
.stats span {
  font-size: 14px;
  color: var(--muted);
}

/* Problem */
.pains {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.pains article {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  background: var(--card);
}
.pain-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bad);
  background: var(--bad-soft);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.pains h3 {
  font-size: 19px;
  margin-bottom: 8px;
}
.pains p {
  margin: 0;
  color: var(--muted);
}
.answer {
  margin: 32px 0 0;
  padding: 20px 24px;
  border-radius: 14px;
  background: var(--primary-soft);
  font-size: 17px;
}
.answer strong {
  color: var(--primary);
}

/* Visibility matrix and scorecard: two cards built as real tables. */
.matrix-card,
.score-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 24px;
  min-width: 0;
}
.matrix-card h3,
.score-card h3 {
  font-size: 18px;
}
.matrix-note,
.matrix-foot,
.score-foot,
.score-head p {
  color: var(--muted);
  font-size: 14px;
  margin: 4px 0 0;
}
.matrix-foot,
.score-foot {
  margin-top: 16px;
}
.matrix-scroll {
  overflow-x: auto;
  margin-top: 16px;
}
.matrix,
.score {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.matrix th,
.matrix td,
.score th,
.score td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.matrix thead th,
.score thead th {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  vertical-align: bottom;
}
.matrix tbody th,
.score tbody th,
.score thead th:first-child {
  text-align: left;
  font-weight: 600;
}
.matrix tbody tr:last-child > *,
.score tbody tr:last-child > * {
  border-bottom: 0;
}
.yes,
.no {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-weight: 700;
}
.yes {
  background: var(--good-soft);
  color: var(--good);
}
.no {
  color: var(--muted);
}

.mini-grid {
  margin-top: 56px;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.mini-grid h3,
.principles h3 {
  font-size: 16px;
  margin-bottom: 6px;
}
.mini-grid p,
.principles p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Scorecard */
.score-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}
.pill {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--neutral-soft);
  color: var(--muted);
}
.score td {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.score td.null {
  color: var(--muted);
}
.bar {
  display: inline-block;
  vertical-align: middle;
  width: 44px;
  height: 6px;
  border-radius: 3px;
  background: var(--neutral-soft);
  margin-right: 8px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: var(--w);
  background: var(--primary);
}
.v {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.v-strong {
  background: var(--good-soft);
  color: var(--good);
}
.v-steady {
  background: var(--info-soft);
  color: var(--info);
}
.v-strained {
  background: var(--bad-soft);
  color: var(--bad);
}
.v-blocked {
  background: var(--warn-soft);
  color: var(--warn);
}
.v-early {
  background: var(--neutral-soft);
  color: var(--muted);
}
.verdicts {
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}
.verdicts div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: baseline;
}
.verdicts dd {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.principles {
  margin-top: 56px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.principles > div {
  border-left: 3px solid var(--primary);
  padding: 4px 0 4px 18px;
}

/* Project steps: copy beside a screenshot, alternating sides on wide screens. */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 72px;
}
.steps li {
  display: grid;
  gap: 24px;
  align-items: center;
}
@media (min-width: 960px) {
  .steps li {
    grid-template-columns: 2fr 3fr;
    gap: 48px;
  }
  .steps li:nth-child(even) .step-copy {
    order: 2;
  }
}
.step-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--primary-fg);
  font-weight: 700;
  margin-bottom: 16px;
}
.step-copy h3 {
  font-size: 24px;
  margin-bottom: 12px;
}
.step-copy p {
  color: var(--muted);
  margin: 0;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 8px;
  font-size: 15px;
}
.ticks li {
  display: block;
  padding-left: 22px;
  position: relative;
}
.ticks li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Features */
.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  counter-reset: step;
}
.flow span {
  counter-increment: step;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
}
.flow span::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
}
.flow-note {
  color: var(--muted);
  font-size: 14px;
  margin: 12px 0 0;
}
.feature-split {
  margin-top: 48px;
  display: grid;
  gap: 32px;
  align-items: start;
}
@media (min-width: 960px) {
  .feature-split {
    grid-template-columns: 3fr 2fr;
  }
}
.feature-points {
  display: grid;
  gap: 22px;
}
.feature-points h3,
.duo h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
.feature-points p,
.duo p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.duo {
  margin-top: 64px;
  display: grid;
  gap: 40px;
}
@media (min-width: 860px) {
  .duo {
    grid-template-columns: 1fr 1fr;
  }
}
.duo .frame {
  margin-bottom: 20px;
}

/* Reports */
.report-groups {
  display: grid;
  gap: 16px;
}
@media (min-width: 960px) {
  .report-groups {
    grid-template-columns: repeat(3, 1fr);
  }
}
.rg {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  padding: 24px;
}
.rg header {
  display: flex;
  gap: 14px;
  align-items: start;
  margin-bottom: 16px;
}
.rg-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-soft);
}
.rg-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rg h3 {
  font-size: 19px;
}
.rg header p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.rg ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rg li {
  display: grid;
  gap: 2px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.rg li span {
  color: var(--muted);
}
.rg li.hl {
  margin: 0 -12px;
  padding: 12px;
  border-radius: 10px;
  border-top-color: transparent;
  background: var(--primary-soft);
}
.reports-shot {
  margin-top: 48px;
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 960px) {
  .reports-shot {
    grid-template-columns: 3fr 2fr;
  }
  .reports-shot .checks {
    margin: 0;
  }
}
.tour {
  margin-bottom: 56px;
}

/* Audiences */
.audiences {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.audiences article {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  background: var(--card);
}
.audiences h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.audiences p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* FAQ */
.faq {
  display: grid;
  gap: 10px;
}
.faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  padding: 0 20px;
}
.faq summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  color: var(--primary);
  font-size: 20px;
  line-height: 1;
}
.faq details[open] summary::after {
  content: '−';
}
.faq details p {
  margin: 0 0 18px;
  color: var(--muted);
}

/* Demo request */
.cta {
  background: var(--cta-bg);
  color: var(--cta-fg);
  padding: 80px 0;
}
.cta-split {
  display: grid;
  gap: 40px;
  align-items: start;
}
@media (min-width: 960px) {
  .cta-split {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}
.eyebrow.light {
  color: var(--cta-fg);
  opacity: 0.8;
}
.cta h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
}
.cta-copy > p {
  opacity: 0.88;
  font-size: 17px;
  margin: 16px 0 0;
}
.cta-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.cta-list li {
  padding-left: 28px;
  position: relative;
}
.cta-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: 700;
}
.cta-copy .cta-direct {
  margin-top: 28px;
  font-size: 15px;
}
.cta-direct a {
  font-weight: 600;
}
.demo-form {
  background: var(--card);
  color: var(--fg);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}
.field-row {
  display: grid;
  gap: 16px;
}
@media (min-width: 560px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}
.field {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-weight: 400;
  font-size: 15px;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  width: 100%;
}
.field textarea {
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}
.field input[aria-invalid='true'] {
  border-color: var(--bad);
}
.demo-form .btn-light {
  background: var(--primary);
  color: var(--primary-fg);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}
.btn-block {
  width: 100%;
}
.form-error {
  margin: 0;
  color: var(--bad);
  font-size: 14px;
}
.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  color: var(--muted);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}
.footer .brand {
  font-size: 15px;
  color: var(--fg);
}
.footer-tag {
  margin: 10px 0 0;
  max-width: 300px;
}
.footer nav {
  display: grid;
  gap: 8px;
  align-content: start;
}
.footer nav h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg);
  margin-bottom: 4px;
}
.footer nav a {
  text-decoration: none;
}
.footer nav a:hover {
  color: var(--fg);
}
.footer-base {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.footer-base p {
  margin: 0;
}

/* Meetings, todos and recordings: copy beside an illustration, alternating sides. */
.collab {
  display: grid;
  gap: 32px;
  align-items: center;
  margin-top: 72px;
}
.collab:first-of-type {
  margin-top: 0;
}
@media (min-width: 960px) {
  .collab {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
  .collab.reverse .collab-copy {
    order: 2;
  }
  .collab.collab-wide {
    grid-template-columns: 1fr;
  }
}
.collab-copy h3 {
  font-size: 26px;
  margin-bottom: 12px;
}
.collab-copy > p {
  color: var(--muted);
  margin: 0;
  font-size: 17px;
}
.collab-wide .collab-copy {
  max-width: 720px;
}
.collab-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  margin-bottom: 16px;
}
.collab-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.collab-icon svg .fill {
  fill: var(--primary);
}
.ticks b {
  color: var(--fg);
}
.ticks li {
  color: var(--muted);
}

/* Illustrations drawn in HTML, in the app's own shapes. */
.mock {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 24px;
  display: grid;
  gap: 14px;
  font-size: 14px;
  min-width: 0;
}
.mock p {
  margin: 0;
}
.mock-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}
.mock-title {
  font-size: 18px;
  font-weight: 700;
}
.mock-sub,
.mock-meta,
.mock-count {
  color: var(--muted);
  font-size: 13px;
}
.mock-count {
  margin-left: auto;
}
.mock-label {
  font-weight: 600;
  margin-top: 4px;
}
.mock-actions,
.chips,
.mock-filters,
.mock-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.mbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.mbtn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mbtn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-fg);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 3px;
  border-radius: 999px;
  background: var(--neutral-soft);
  font-size: 13px;
}
.chip i {
  font-style: normal;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--card);
  font-size: 10px;
  font-weight: 700;
}
.mock-list,
.todo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.mock-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 12px;
}
.mock-list li + li,
.todo-list li + li {
  border-top: 1px solid var(--border);
}
.mock-list code {
  font-size: 12px;
}
.st {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}
.st-blocked {
  background: var(--bad-soft);
  color: var(--bad);
}
.st-review {
  background: var(--warn-soft);
  color: var(--warn);
}
.mock-todo,
.todo-list li {
  display: flex;
  gap: 12px;
  align-items: start;
}
.mock-todo {
  padding: 12px;
  border-radius: 10px;
  background: var(--primary-soft);
}
.todo-list li {
  padding: 12px;
}
.todo-list li.done > div > p:first-child {
  text-decoration: line-through;
  color: var(--muted);
}
/* The round done box from the app (DoneBox in todos/todos.tsx). */
.dbox {
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--muted);
  margin-top: 1px;
}
.dbox.on {
  background: var(--primary);
  border-color: var(--primary);
}
.dbox svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: var(--primary-fg);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cal {
  color: var(--primary);
}
.fpill {
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.fpill.on {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}
.badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 12px;
}
.badge.red {
  background: var(--bad);
  color: hsl(0 0% 100%);
}
.rec-grid {
  display: grid;
  gap: 24px 32px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.rec-grid h4 {
  margin: 0 0 6px;
  font-size: 16px;
}
.rec-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8em;
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--bg-alt);
}

/* Integrations */
.integ-cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 80px;
}
.integ-card {
  display: block;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  background: var(--card);
  transition:
    transform 0.15s ease,
    border-color 0.15s ease;
}
.integ-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}
.integ-card h3 {
  font-size: 18px;
  margin: 14px 0 6px;
}
.integ-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.integ-logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  flex: none;
}
.integ-logo.sm {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.integ-logo svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.integ-logo.sm svg {
  width: 17px;
  height: 17px;
}
.git-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--term-bg);
  color: var(--term-fg);
  font-size: 13px;
}
.git-line code {
  background: none;
  color: inherit;
  padding: 0;
}
.git-arrow {
  color: hsl(234 89% 74%);
}
.git-linked {
  color: hsl(142 60% 65%);
}
.pr-list li {
  flex-wrap: nowrap;
  align-items: start;
}
.pr-list li > div {
  min-width: 0;
}
.pr-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--good);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 2px;
}
.pr-icon.merged svg {
  stroke: hsl(270 60% 58%);
}
.st-merged {
  background: hsl(270 80% 95%);
  color: hsl(270 55% 45%);
}
:root[data-theme='dark'] .st-merged {
  background: hsl(270 35% 22%);
  color: hsl(270 80% 80%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .st-merged {
    background: hsl(270 35% 22%);
    color: hsl(270 80% 80%);
  }
}
.st-good {
  background: var(--good-soft);
  color: var(--good);
}
.refs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.refs code {
  font-size: 12px;
}
.mfield {
  display: grid;
  gap: 8px;
}
.zoom-room {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.zoom-room > div {
  flex: 1;
  min-width: 0;
}
.mx {
  color: var(--muted);
  font-size: 18px;
}
.mock-todo .mbtn {
  margin-left: auto;
  align-self: center;
}
@media (max-width: 480px) {
  .mock-todo {
    flex-wrap: wrap;
  }
  .mock-todo .mbtn {
    margin-left: 0;
  }
}
/* A reference is one token; breaking TSK-12@acme at its hyphen reads as two. */
.ticks code,
.refs code {
  white-space: nowrap;
}

/* AI agents: one prompt, the tools it called, and the answer. */
.chat-q,
.chat-a {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  line-height: 1.5;
}
.chat-q {
  justify-self: end;
  max-width: 88%;
  background: var(--primary);
  color: var(--primary-fg);
  border-bottom-right-radius: 4px;
}
.chat-a {
  max-width: 92%;
  background: var(--neutral-soft);
  border-bottom-left-radius: 4px;
}
.agent-calls li {
  flex-wrap: wrap;
}
.agent-calls code {
  font-weight: 600;
}

/* Try it free: a quiet band above the demo request, so a visitor who wants to look for themselves
   is not sent to a sales form first. */
.try-band {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:
    radial-gradient(80% 120% at 0% 0%, var(--primary-soft), transparent 70%),
    var(--card);
}
.try-band h2 {
  margin-top: 0;
}
.try-band .sub {
  margin-bottom: 0;
}
.try-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
@media (min-width: 860px) {
  .try-band {
    grid-template-columns: 1fr auto;
    padding: 40px 48px;
  }
}
@media (max-width: 420px) {
  .try-band {
    padding: 24px 20px;
  }
  .try-actions .btn {
    flex: 1;
  }
}
