/* Landing pages (static, no JavaScript). Colors match the app. */
:root {
  --bg: #f6f5f2;
  --card: #ffffff;
  --text: #3b3842;
  --text-h: #16141a;
  --muted: #6f6b76;
  --border: #e4e2e6;
  --accent: #d9480f;
  --accent-text: #ffffff;
  --accent-soft: rgba(217, 72, 15, 0.08);
  --pitch: #1f6f43;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #121114;
    --card: #1c1b1f;
    --text: #cfcbd6;
    --text-h: #f4f2f7;
    --muted: #9a96a2;
    --border: #2d2b31;
    --accent: #ff7a3d;
    --accent-text: #1a0d05;
    --accent-soft: rgba(255, 122, 61, 0.12);
    --pitch: #2e8b57;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

a {
  color: var(--accent);
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-size: 15px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text-h);
  text-decoration: none;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand .tld {
  color: var(--accent);
  font-weight: 600;
}

h1,
h2,
h3 {
  color: var(--text-h);
  line-height: 1.25;
}

h1 {
  font-size: clamp(30px, 6vw, 46px);
  margin: 24px 0 12px;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 26px;
  margin: 48px 0 12px;
}

h3 {
  font-size: 18px;
  margin: 0 0 6px;
}

.lead {
  font-size: 19px;
  max-width: 680px;
}

.cta {
  display: inline-block;
  margin: 16px 12px 8px 0;
  padding: 14px 26px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: none;
  font-size: 18px;
}

.note {
  color: var(--muted);
  font-size: 15px;
}

.demo {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 32px 0 8px;
}

.demo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.demo-card pre {
  margin: 0;
  font: 17px/1.7 ui-monospace, 'Cascadia Mono', Consolas, monospace;
  color: var(--text-h);
  white-space: pre-wrap;
}

.demo-arrow {
  font-size: 28px;
  color: var(--accent);
}

.clips {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.clips span {
  flex: 1;
  height: 44px;
  border-radius: 8px;
  background: var(--pitch);
  position: relative;
}

.clips span::after {
  content: '';
  position: absolute;
  inset: 40% 45%;
  border-radius: 50%;
  background: #fff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.box p {
  margin: 0;
}

ol.steps {
  padding-left: 22px;
}

ol.steps li {
  margin-bottom: 10px;
}

code {
  font: 15px ui-monospace, 'Cascadia Mono', Consolas, monospace;
  background: var(--accent-soft);
  color: var(--text-h);
  padding: 1px 6px;
  border-radius: 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  font-size: 16px;
}

th,
td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  color: var(--text-h);
}

.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--text-h);
}

.faq details p {
  margin: 10px 0 0;
}

footer {
  margin: 56px 0 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 640px) {
  .demo {
    grid-template-columns: 1fr;
  }

  .demo-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  .table-scroll {
    overflow-x: auto;
  }
}

/* Legal pages */
.legal main h2 {
  font-size: 22px;
  margin-top: 36px;
}

.legal main h3 {
  margin-top: 20px;
}

.legal ul {
  padding-left: 22px;
}

.legal li {
  margin-bottom: 6px;
}

.summary-box {
  margin-top: 20px;
}

.summary-box h2 {
  margin-top: 0;
}

.todo {
  background: #fde68a;
  color: #3b2a00;
  padding: 0 4px;
  border-radius: 4px;
}

.contact {
  display: block;
  height: auto;
}

.support-mail {
  display: inline-block;
  height: 1.6em;
  width: auto;
  vertical-align: middle;
}

.footer-support {
  display: block;
  margin-top: 6px;
}
