*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f7f7fc;
  --surface: #ffffff;
  --text: #1a1a2e;
  --text-muted: #5a5a7a;
  --accent: #6c63ff;
  --accent-dark: #574fd6;
  --border: #e2e2f0;
  --radius: 10px;
  --max-width: 820px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* ── Nav ─────────────────────────────────────────────── */

nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-brand:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

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

.nav-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ── Main content ────────────────────────────────────── */

main {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* ── Page header (support, privacy) ─────────────────── */

.page-header {
  margin-bottom: 2.5rem;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ── Card ────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}

/* ── Hero (index) ────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 4rem 0 3rem;
}

.hero-wordmark {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.hero-wordmark span {
  color: var(--accent);
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

/* ── Section heading ─────────────────────────────────── */

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ── Product card (index) ────────────────────────────── */

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.product-icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.4rem;
}

.product-info h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
}

.product-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.product-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.15s;
}

.btn:hover {
  background: var(--accent-dark);
  color: #fff;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
}

/* ── FAQ (support) ───────────────────────────────────── */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

details[open] {
  border-color: var(--accent);
}

summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.97rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 400;
  flex-shrink: 0;
  margin-left: 1rem;
}

details[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 1.25rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ── Contact block (support) ─────────────────────────── */

.contact-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.contact-icon {
  font-size: 1.3rem;
}

/* ── Privacy policy ──────────────────────────────────── */

.policy-section {
  margin-bottom: 2rem;
}

.policy-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.policy-section p,
.policy-section li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.policy-section ul {
  padding-left: 1.25rem;
}

.policy-section ul li {
  margin-bottom: 0.25rem;
}

.policy-meta {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ── Footer ──────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.83rem;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ── Mobile ──────────────────────────────────────────── */

@media (max-width: 600px) {
  .hero-wordmark {
    font-size: 2.25rem;
  }

  .hero-tagline {
    font-size: 1.05rem;
  }

  .product-card {
    flex-direction: column;
    gap: 1rem;
  }

  main {
    padding: 2rem 1.25rem;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }
}
