/* pose.video site — dark visual language from docs/ui-design-v1-kplawy.md §1.
   One dark theme, no light mode. No remote fonts, no trackers, no JS. */
:root {
  --bg: #0b0f14;
  --surface: #111418;
  --border: #1f242b;
  --primary: #1d8cff;
  --primary-pressed: #166fcc;
  --primary-tint: #0f2740;
  --record: #ff3b30;
  --record-arc: #ff7a2f;
  --success: #2ecc71;
  --warning: #f5b400;
  --text: #ffffff;
  --text-2: #9aa3ad;
  --text-3: #5c6670;
  --pro-bg: #1b2b3e;
  --pro-text: #5cb2ff;
  --radius-card: 20px;
  --radius-pill: 999px;
  --gutter: 20px;
  --max: 1060px;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: #000;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 19px;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--record);
  flex: none;
}
nav.main {
  display: flex;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}
nav.main a {
  color: var(--text-2);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 15px;
}
nav.main a:hover { color: var(--text); text-decoration: none; background: var(--surface); }
nav.main a[aria-current="page"] { color: var(--text); background: var(--primary-tint); }

/* Compact menu for narrow screens (no JS): hidden on desktop, the only
   navigation on phones. */
details.menu {
  display: none;
  margin-left: auto;
  position: relative;
}
details.menu > summary {
  list-style: none;
  cursor: pointer;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 15px;
  user-select: none;
}
details.menu > summary::-webkit-details-marker { display: none; }
details.menu > summary:hover { border-color: var(--primary); }
details.menu > summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
details.menu[open] > nav {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 210px;
  background: #000;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  z-index: 10;
}
details.menu[open] > nav a {
  display: block;
  color: var(--text-2);
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 16px;
}
details.menu[open] > nav a:hover { color: var(--text); text-decoration: none; background: var(--surface); }
details.menu[open] > nav a[aria-current="page"] { color: var(--text); background: var(--primary-tint); }

/* Hero — left-aligned, screenshot at the side */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 56px 0 40px;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.12;
  margin: 0 0 14px;
  letter-spacing: -0.5px;
}
.hero .sub {
  color: var(--text-2);
  font-size: 19px;
  margin: 0 0 22px;
  max-width: 34em;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 17px;
}
.btn:hover { background: var(--primary-pressed); text-decoration: none; }
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn.ghost:hover { border-color: var(--primary); }
.fineprint { color: var(--text-3); font-size: 14px; margin-top: 14px; }

.hero-shot {
  margin: 0;
  text-align: center;
}
.hero-shot img {
  max-width: 280px;
  width: 100%;
  height: auto;
  border-radius: 28px;
  border: 1px solid var(--border);
}
.hero-shot figcaption { color: var(--text-3); font-size: 14px; margin-top: 10px; }

/* Sections */
section.block { padding: 28px 0; }
section.block > h2 {
  font-size: 26px;
  margin: 0 0 6px;
}
section.block > p.lede { color: var(--text-2); margin: 0 0 20px; max-width: 44em; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.card p + p { margin-top: 8px; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--pro-text);
  font-weight: 700;
  margin-bottom: 10px;
}

.pill {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  font-size: 14px;
  color: var(--text-2);
}
.pill.live { color: var(--record); border-color: #5a2623; }
.pill.ok { color: var(--success); border-color: #1e4a33; }
.pill.soon { color: var(--warning); border-color: #54450f; }

/* Phone screenshots row */
.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.shots figure { margin: 0; }
.shots img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
}
.shots figcaption { color: var(--text-2); font-size: 14px; margin-top: 8px; }

/* How-it-works diagram (pure HTML/CSS) */
.flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 8px 0 4px;
  flex-wrap: wrap;
}
.flow .node {
  flex: 1 1 0;
  min-width: 150px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  font-size: 15px;
}
.flow .node strong { display: block; margin-bottom: 4px; }
.flow .node span { color: var(--text-2); font-size: 14px; }
.flow .arrow {
  align-self: center;
  padding: 0 10px;
  color: var(--text-3);
  font-size: 20px;
}

dl.faq { margin: 0; }
dl.faq dt { font-weight: 600; margin: 18px 0 4px; font-size: 18px; }
dl.faq dt:first-child { margin-top: 0; }
dl.faq dd { margin: 0; color: var(--text-2); }
dl.faq dd + dt { border-top: 1px solid var(--border); padding-top: 18px; }

table.plain { border-collapse: collapse; width: 100%; font-size: 15.5px; }
table.plain th, table.plain td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.plain th { color: var(--text-2); font-weight: 600; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }
pre {
  background: #000;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  overflow-x: auto;
  font-size: 14px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 26px 0 40px;
  color: var(--text-3);
  font-size: 14.5px;
}
.site-footer .wrap {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: baseline;
}
.site-footer a { color: var(--text-2); }
.site-footer .spacer { margin-left: auto; }

/* Status line under hero CTAs */
.statusline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

@media (max-width: 820px) {
  :root { --gutter: 16px; }
  nav.main { display: none; }
  /* Left-aligned (not margin-left:auto): at the clamped widths some
     harnesses capture, a right-aligned pill would crop out of frame. */
  details.menu { display: block; margin-left: 0; }
  .site-header .wrap { gap: 12px; }
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .hero h1 { font-size: 34px; }
  .hero-shot img { max-width: 240px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr 1fr; }
  .flow .arrow { transform: rotate(90deg); padding: 6px 0; width: 100%; text-align: center; }
  .flow .node { flex-basis: 100%; }
}

/* Narrow-viewport safety: nothing may force the page wider than the screen. */
img { max-width: 100%; }
.hero > *, .grid-2 > *, .grid-3 > * { min-width: 0; }
.card p, .lede, .sub, dl.faq dd, table.plain td, .site-footer { overflow-wrap: break-word; }
@media (max-width: 520px) {
  .shots { grid-template-columns: 1fr; }
  .shots img { max-width: 300px; margin: 0 auto; display: block; }
}
