:root {
  --bg: #18181b;
  --surface: #27272a;
  --border: #3f3f46;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --accent: #0f766e;
  --accent-hover: #0d9488;
  --accent-text: #2dd4bf;
  --radius: 6px;
  color-scheme: dark;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: var(--accent-text);
}

code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.9em;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

header {
  border-bottom: 1px solid var(--border);
}

header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 56px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 24px;
  height: 24px;
}

nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
}

nav a:hover {
  color: var(--text);
}

h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin: 0 0 16px;
}

h2 {
  font-size: 1.4rem;
  margin: 0 0 16px;
}

h3 {
  font-size: 1rem;
  margin: 0 0 4px;
}

section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

.hero .wrap > p {
  max-width: 620px;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0 0 24px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  border-color: var(--text-muted);
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.button.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.shot {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px 32px;
}

.features p,
.steps p {
  margin: 0;
  color: var(--text-muted);
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.pair img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.steps {
  margin: 0;
  padding-left: 20px;
}

.steps li {
  margin-bottom: 16px;
}

.notice {
  margin-top: 24px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-text);
  border-radius: var(--radius);
  background: var(--surface);
}

.notice[hidden] {
  display: none;
}

.notice p {
  margin: 0 0 8px;
}

.notice p:last-child {
  margin-bottom: 0;
}


ul.plain {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
}

footer {
  padding: 32px 0 48px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer p {
  margin: 0 0 6px;
}

.prose {
  max-width: 720px;
}

.prose h2 {
  margin-top: 40px;
}

.prose p,
.prose li {
  color: var(--text-muted);
}

@media (max-width: 700px) {
  h1 {
    font-size: 1.7rem;
  }
  .pair {
    grid-template-columns: 1fr;
  }
  nav {
    gap: 14px;
  }
}

/* Interactive transcript demo: a small copy of the app's session view. */
.demo-caption {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 40px 0 10px;
}

.demo-caption .muted {
  font-size: 0.9rem;
}

.demo-badge,
.demo-tag {
  padding: 1px 8px;
  border: 1px solid var(--accent-text);
  border-radius: var(--radius);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.demo-tag {
  margin-left: 4px;
  padding: 0 6px;
  font-size: 11px;
  vertical-align: 2px;
}

.demo {
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  font-size: 14px;
}

.demo-bar,
.demo-head,
.demo-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}

.demo-bar {
  background: var(--surface);
}

.demo-brand {
  font-weight: 600;
  margin-right: 8px;
}

.demo-tab {
  color: var(--text-muted);
}

.demo-tab--on {
  color: var(--text);
  font-weight: 500;
}

.demo-status {
  margin-left: auto;
  color: var(--accent-text);
}

.demo-head {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.demo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.demo-link {
  color: var(--accent-text);
  text-decoration: underline;
}

.demo-title {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-muted {
  color: var(--text-muted);
  font-weight: 400;
}

.demo-btn,
.demo-view,
.demo-prompt {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 500;
}

button.demo-btn {
  cursor: pointer;
}

button.demo-btn:hover {
  border-color: var(--text-muted);
}

.demo-btn--on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.demo-play {
  min-width: 70px;
}

.demo-seek {
  flex: 1;
  accent-color: var(--accent);
}

.demo-time {
  white-space: nowrap;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  color: var(--text-muted);
}

.demo-tabs {
  gap: 4px;
}

.demo-view {
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
}

.demo-view--on {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.demo-search {
  margin-left: 12px;
  flex: 1;
  min-width: 0;
  max-width: 280px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.demo-body {
  height: 340px;
  overflow-y: auto;
  position: relative;
}

.demo-pad {
  padding: 16px;
}

.demo-empty {
  margin: 0;
  padding: 12px 16px;
  color: var(--text-muted);
}

.demo-seg--empty {
  color: var(--text-muted);
  font-style: italic;
}

button.demo-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

button.demo-link {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
}

.demo-progress {
  height: 4px;
  border-radius: 2px;
  background: var(--surface);
  overflow: hidden;
}

.demo-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 0.2s;
}

/* Recordings list */
.demo-list {
  height: 486px;
  overflow-y: auto;
  padding: 16px;
}

.demo-list h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.demo-list-search {
  margin: 0 0 4px;
  width: 100%;
  max-width: 420px;
}

.demo-day {
  margin: 16px 0 6px;
  color: var(--text-muted);
  font-weight: 500;
}

.demo-recs {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.demo-rec {
  display: flex;
  background: var(--surface);
}

.demo-rec + .demo-rec {
  border-top: 1px solid var(--border);
}

.demo-rec-open {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  padding: 10px 12px;
  border: none;
  background: none;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.demo-rec-open:hover,
.demo-rec-save:hover {
  background: #323236;
}

.demo-rec-time {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  color: var(--text-muted);
  padding-top: 1px;
}

.demo-rec-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.demo-rec-place {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-rec-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: var(--text-muted);
  white-space: nowrap;
}

.demo-warn {
  color: #eab308;
  font-size: 13px;
}

.demo-rec-save {
  width: 84px;
  border: none;
  border-left: 1px solid var(--border);
  background: none;
  color: var(--text-muted);
  font: inherit;
  cursor: pointer;
}

.demo-rec-save.on {
  color: var(--accent-text);
  font-weight: 500;
}

.demo-small {
  margin-top: 16px;
  font-size: 13px;
}

/* Editor */
.demo-edit-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}

.demo-edit-row {
  display: grid;
  grid-template-columns: 44px 90px 1fr auto;
  align-items: start;
  gap: 10px;
  padding: 8px 16px;
}

.demo-edit-row + .demo-edit-row {
  border-top: 1px solid var(--border);
}

.demo-edit-row .demo-time {
  padding-top: 6px;
}

.demo-speaker {
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.demo-text {
  width: 100%;
  resize: none;
  overflow: hidden;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  line-height: 1.5;
}

.demo-text:focus,
.demo-speaker:focus,
.demo-search:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}

.demo-edit-actions {
  display: flex;
  gap: 6px;
}

.demo-edit-actions .demo-btn {
  font-size: 13px;
  padding: 3px 8px;
}

.demo-block {
  padding: 10px 16px;
}

.demo-block + .demo-block {
  border-top: 1px solid var(--border);
}

.demo-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.demo-meta span {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--text-muted);
}

.demo-block p {
  margin: 2px 0 0;
}

.demo-seg {
  cursor: pointer;
  border-radius: 3px;
}

.demo-seg:hover {
  background: #323236;
}

.demo-seg.on {
  background: rgba(45, 212, 191, 0.1);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.demo-seg mark {
  background: rgba(234, 179, 8, 0.3);
  color: inherit;
  border-radius: 2px;
}

.demo-seg mark.current {
  box-shadow: 0 0 0 2px #eab308;
}

.demo-search-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  white-space: nowrap;
}

.demo-search-nav[hidden] {
  display: none;
}

.demo-search-nav .demo-btn {
  font-size: 13px;
  padding: 3px 8px;
}

.demo-count {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.demo-stat {
  display: grid;
  grid-template-columns: 70px 1fr 110px;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
}

.demo-track {
  height: 8px;
  border-radius: 4px;
  background: var(--surface);
  overflow: hidden;
}

.demo-track span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.demo-ai-out {
  margin: 12px 0 0;
  white-space: pre-wrap;
  font: inherit;
  color: var(--text);
}

@media (max-width: 700px) {
  .demo-row .demo-btn:not(.demo-play),
  .demo-tab,
  .demo-status {
    display: none;
  }
  .demo-search {
    max-width: none;
    margin-left: 4px;
  }
  .demo-tabs {
    flex-wrap: wrap;
  }
  .demo-edit-row {
    grid-template-columns: 1fr auto;
  }
  .demo-edit-row .demo-time {
    display: none;
  }
  .demo-edit-row .demo-text {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .demo-edit-bar .demo-muted,
  .demo-rec-time {
    display: none;
  }
  .demo-seek {
    min-width: 0;
  }
}
