/* ---------- Tokens (matches the app's brand) ---------- */

:root {
  --brand-red: #f7323f;
  --brand-red-hover: #d9252f;

  --bg: #fafafa;
  --bg-elev: #ffffff;
  --text: #18181b;
  --text-muted: #52525b;
  --text-faint: #71717a;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;

  --radius: 10px;
  --radius-sm: 6px;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter",
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --container: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --bg-elev: #18181b;
    --text: #fafafa;
    --text-muted: #a1a1aa;
    --text-faint: #71717a;
    --border: #27272a;
    --border-strong: #3f3f46;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ---------- Nav ---------- */

.nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(12px);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.nav-logo {
  display: block;
  clip-path: inset(0 round 28%);
}
.nav-title {
  font-size: 15px;
}
.nav-title .dot {
  color: var(--brand-red);
}
.nav-links {
  display: flex;
  gap: 18px;
  font-size: 14px;
}
.nav-links a {
  color: var(--text-muted);
}
.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ---------- Hero ---------- */

.hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 96px 24px 64px;
  text-align: center;
}
.hero-logo {
  clip-path: inset(0 round 28%);
  filter: drop-shadow(0 10px 24px rgba(247, 50, 63, 0.28));
  margin-bottom: 32px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.hero h1 em {
  font-style: italic;
  color: var(--brand-red);
}
.hero-tag {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 auto 36px;
  max-width: 640px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.hero-meta {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 8px;
}

/* ---------- Buttons ---------- */

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background 140ms, border-color 140ms, color 140ms, transform 140ms;
}
.btn-primary {
  background: var(--brand-red);
  color: #ffffff !important;
  border: 1px solid var(--brand-red);
}
.btn-primary:hover {
  background: var(--brand-red-hover);
  border-color: var(--brand-red-hover);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
  background: var(--bg);
  text-decoration: none;
  border-color: var(--text-muted);
}

/* ---------- Section helpers ---------- */

.section-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 36px;
  text-align: center;
}

/* ---------- Features ---------- */

.features {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 24px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.feature-icon {
  font-size: 28px;
  margin-bottom: 12px;
  color: var(--brand-red);
}
.feature h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 10px;
}
.feature p {
  font-size: 14.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* ---------- Extras list ---------- */

.extras {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 24px;
}
.extras-inner {
  max-width: 820px;
  margin: 0 auto;
}
.extras-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px 36px;
}
.extras-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
}
.extras-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-red);
  font-weight: 600;
}

/* ---------- Compare ---------- */

.compare {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 24px;
}
.compare-inner {
  max-width: 960px;
  margin: 0 auto;
}
.compare-intro {
  text-align: center;
  font-size: 15.5px;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 720px;
}
.compare-table th,
.compare-table td {
  padding: 12px 14px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.compare-table thead th {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
  background: var(--bg);
  border-bottom-width: 2px;
}
.compare-table thead th:nth-child(2) {
  color: var(--brand-red);
}
.compare-table tbody th {
  text-align: left;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg);
  white-space: nowrap;
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}
.compare-table td strong {
  color: var(--brand-red);
}
.compare-note {
  font-size: 12.5px;
  color: var(--text-faint);
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}

/* ---------- Screenshots ---------- */

.screenshots {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 24px;
}
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 24px;
}
.screenshot {
  margin: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.screenshot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.screenshot figcaption {
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* ---------- FAQ ---------- */

.faq {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 24px;
}
.faq-inner {
  max-width: 760px;
  margin: 0 auto;
}
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 18px 4px;
}
.faq details:first-of-type {
  border-top: 1px solid var(--border);
}
.faq summary {
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--brand-red);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}
.faq details p code {
  font-size: 13.5px;
}

/* ---------- Lightbox ---------- */

.screenshot img {
  cursor: zoom-in;
}
.screenshot img:focus-visible {
  outline: 3px solid var(--brand-red);
  outline-offset: 2px;
  border-radius: var(--radius);
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: zoom-out;
  padding: 32px 24px;
  opacity: 0;
  transition: opacity 180ms ease;
}
.lightbox.is-open {
  display: flex;
  opacity: 1;
}
.lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
  gap: 14px;
}
.lightbox-img {
  max-width: min(1400px, 96vw);
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  display: block;
}
.lightbox-caption {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  text-align: center;
  max-width: 720px;
  line-height: 1.5;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 140ms;
}
.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.24);
  outline: none;
}

/* ---------- Why ---------- */

.why {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  padding: 80px 24px;
}
.why-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.why p {
  font-size: 16.5px;
  color: var(--text-muted);
  margin: 0 0 18px;
  text-align: left;
}
.why-cta {
  text-align: center !important;
  margin-top: 32px !important;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px 48px;
  text-align: center;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
}
footer p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text-muted);
}
footer a { color: var(--text-muted); }
footer a:hover { color: var(--text); text-decoration: none; }
.footer-meta {
  font-size: 12.5px !important;
  color: var(--text-faint) !important;
  max-width: 540px;
  margin: 0 auto !important;
  line-height: 1.5;
}

/* ---------- Version badge ---------- */

#version-badge {
  font-size: 12px;
  font-weight: 600;
  margin-left: 4px;
  opacity: 0.85;
}
