:root {
  --bg: #ffffff;
  --bg-alt: #fbfbfb;
  --card: #ffffff;
  --border: #eaeaea;
  --text: #191919;
  --text-muted: #666666;
  --blue: #338cf5;
  --teal: #4fd1c5;
  --btn-dark: #333333;
  --btn-dark-hover: #191919;
  --soft-a: #cce2fc;
  --soft-b: #b2f5ea;
  --soft-text: #0059c2;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.08);
  color-scheme: light;
}

html.dark {
  --bg: #191919;
  --bg-alt: #222222;
  --card: #2a2a2a;
  --border: #3a3a3a;
  --text: #f2f2f2;
  --text-muted: #b0b0b0;
  --btn-dark: #4c4c4c;
  --btn-dark-hover: #5c5c5c;
  --soft-a: rgba(51, 140, 245, 0.45);
  --soft-b: rgba(79, 209, 197, 0.45);
  --soft-text: #eaf5ff;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  transition: background-color 0.2s, color 0.2s;
}

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

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

.container {
  max-width: 64rem;
  margin: 0 auto;
  padding-inline: 1.25rem;
}
.container.narrow { max-width: 44rem; }

.muted { color: var(--text-muted); }
.center { text-align: center; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
}
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.brand-name {
  font-size: 1.25rem;
  font-weight: 600;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav { display: flex; align-items: center; gap: 1rem; }
.nav a { color: var(--text); font-weight: 500; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--text);
  cursor: pointer;
}
.theme-toggle svg { width: 1.1rem; height: 1.1rem; }
.icon-sun { display: none; }
html.dark .icon-sun { display: block; }
html.dark .icon-moon { display: none; }

/* Hero */
.hero { padding-block: 3.5rem 2rem; text-align: center; }
.hero-title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.5rem, 7vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  margin: 0 auto 0.75rem;
  max-width: 38rem;
  font-size: 1.15rem;
}
.hero-sub { margin: 0 auto 1.5rem; max-width: 38rem; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  line-height: 1.4;
  transition: background-color 0.15s, box-shadow 0.15s;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  box-shadow: var(--shadow);
}
.btn-primary:hover { box-shadow: var(--shadow-hover); filter: brightness(1.05); }
.btn-secondary {
  color: #fff;
  background: var(--btn-dark);
}
.btn-soft {
  color: var(--soft-text);
  background: linear-gradient(90deg, var(--soft-a), var(--soft-b));
  box-shadow: var(--shadow);
}
.btn-soft:hover { box-shadow: var(--shadow-hover); filter: brightness(1.03); }
.btn-secondary:hover { background: var(--btn-dark-hover); }

/* Sections */
.section { padding-block: 2.5rem; }
.section.alt { background: var(--bg-alt); }
.section-title {
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Cards */
.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .cards.two { grid-template-columns: repeat(2, 1fr); }
  .cards.three { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .cards.three { grid-template-columns: repeat(3, 1fr); }
}
.card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
  box-shadow: var(--shadow);
}
.card h2, .card h3 { margin: 0 0 0.5rem; }
.card h3 { font-size: 1.1rem; }
.feature-title { display: flex; align-items: center; gap: 0.6rem; }
.feature-icon { width: 1.6rem; height: 1.6rem; flex-shrink: 0; }
.feature-icon.teal { color: var(--teal); }
.feature-icon.blue { color: var(--blue); }
.card p { margin: 0 0 1rem; color: var(--text-muted); font-size: 0.95rem; }
.card p:last-child { margin-bottom: 0; }
.cards .card { display: flex; flex-direction: column; }
.cards .card > .btn { margin-top: auto; align-self: flex-start; }
.card .hero-actions { margin-top: 0.5rem; }

/* Video */
.video-frame {
  position: relative;
  padding-top: 56.25%;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #000;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.caption {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.9rem;
}

/* Screenshots */
.shots {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .shots { grid-template-columns: repeat(2, 1fr); }
}
.shots figure { margin: 0; }
.shots img {
  width: 100%;
}
.shots figcaption {
  margin-top: 0.4rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* FAQ */
.faq { margin: 0; }
.faq dt { font-weight: 600; margin-top: 1.25rem; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 0.35rem 0 0; color: var(--text-muted); }

/* Prose (privacy page) */
.prose h1 { font-size: 2rem; margin: 0 0 1rem; }
.prose h2 { font-size: 1.25rem; margin: 1.75rem 0 0.5rem; }
.prose p { margin: 0 0 1rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  padding-block: 2rem;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 2fr 1fr; }
}
.footer-grid .brand { margin-bottom: 0.75rem; }
.footer-grid p { margin: 0 0 0.5rem; }
.footer-heading { margin: 0 0 0.5rem; font-size: 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  padding-block: 1rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
}
