:root {
  --bg: #ffffff;
  --surface: #f0f0f3;
  --surface-strong: #e0e1e6;
  --text: #0b0c0e;
  --muted: #60646c;
  --border: #e4e4e9;
  --accent: #0d9488;
  --accent-strong: #0f766e;
  --accent-soft: #ccfbf1;
  --on-accent: #ffffff;
  --body: #e3e5ea;
  --tape-off: #9ea3ab;
  --radius: 20px;
  --max: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #17181a;
    --surface-strong: #2e3135;
    --text: #f4f4f5;
    --muted: #b0b4ba;
    --border: #2e3135;
    --accent: #2dd4bf;
    --accent-strong: #5eead4;
    --accent-soft: #123b37;
    --on-accent: #04201d;
    --body: #2a2d31;
    --tape-off: #5b6068;
  }
}

* {
  box-sizing: border-box;
}

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

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
.site-header nav a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 56px;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.hero p.lead {
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 34em;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 16px;
  font-weight: 600;
  text-decoration: none;
}
.button.primary {
  background: var(--accent);
  color: var(--on-accent);
}
.button.primary:hover {
  background: var(--accent-strong);
}
.button.secondary {
  background: var(--surface);
  color: var(--text);
}
.note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 32px;
  background: var(--surface);
  border-radius: 32px;
}
.figure {
  width: 100%;
  max-width: 220px;
  height: auto;
}
.figure-body {
  fill: var(--body);
}
.tape line {
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.tape circle {
  fill: var(--accent);
}
.tape-off {
  stroke: var(--tape-off);
  stroke-width: 1.5;
  stroke-dasharray: 3 4;
  stroke-linecap: round;
}
.stat {
  position: absolute;
  right: -12px;
  bottom: 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 8px 30px rgb(0 0 0 / 0.08);
  font-size: 14px;
}
.stat strong {
  display: block;
  font-size: 22px;
}
.stat span {
  color: var(--muted);
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 24px 0 72px;
}
.feature {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
}
.feature h2 {
  font-size: 20px;
  margin: 0 0 8px;
}
.feature p {
  margin: 0;
  color: var(--muted);
}

/* Long-form pages (privacy policy) */
.doc {
  max-width: 720px;
  padding: 56px 20px 80px;
}
.doc h1 {
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 8px;
}
.doc h2 {
  font-size: 22px;
  margin: 40px 0 8px;
}
.doc .meta {
  color: var(--muted);
  margin: 0 0 32px;
}
.doc .summary {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.doc .summary ul {
  margin: 8px 0 0;
  padding-left: 20px;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 16px 0;
}
.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--border);
}
.doc th {
  color: var(--muted);
  font-weight: 600;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 40px;
}
.site-footer a {
  color: var(--muted);
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0 32px;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .stat {
    right: 12px;
  }
  .doc table,
  .doc thead,
  .doc tbody,
  .doc tr,
  .doc th,
  .doc td {
    display: block;
  }
  .doc thead {
    display: none;
  }
  .doc td {
    border-bottom: none;
    padding: 2px 0;
  }
  .doc tr {
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
  }
  .doc td:first-child {
    font-weight: 600;
  }
}
