/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:    #e02020;
  --red-dk: #b71515;
  --blue:   #3478f6;
  --green:  #30b050;
  --orange: #f57c00;
  --purple: #8e44ad;
  --teal:   #0097a7;

  --bg:       #ffffff;
  --bg-soft:  #f5f5f7;
  --text:     #1d1d1f;
  --text-sub: #6e6e73;
  --border:   #d2d2d7;

  --radius: 18px;
  --max-w:  960px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:       #000000;
    --bg-soft:  #1c1c1e;
    --text:     #f5f5f7;
    --text-sub: #98989d;
    --border:   #38383a;
  }
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Nav ──────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255,255,255,0.75);
  border-bottom: 1px solid var(--border);
}
@media (prefers-color-scheme: dark) {
  header { background: rgba(0,0,0,0.75); }
}

nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.05rem;
}

.app-icon-small {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(145deg, #e02020, #8b0000);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 24px;
}
.nav-links a {
  color: var(--text-sub);
  font-size: 0.9rem;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 80px 24px 72px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  background: linear-gradient(145deg, #e02020, #8b0000);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  box-shadow: 0 12px 36px rgba(224, 32, 32, 0.35);
}

.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-sub);
  max-width: 520px;
  margin: 0 auto 36px;
}

.app-store-btn {
  display: inline-block;
  transition: opacity 0.15s, transform 0.15s;
}
.app-store-btn:hover { opacity: 0.8; transform: scale(1.03); text-decoration: none; }

/* ── Features ─────────────────────────────────────────────── */
.features {
  background: var(--bg-soft);
  padding: 72px 24px;
}

.features-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon.red    { background: var(--red); }
.feature-icon.blue   { background: var(--blue); }
.feature-icon.green  { background: var(--green); }
.feature-icon.orange { background: var(--orange); }
.feature-icon.purple { background: var(--purple); }
.feature-icon.teal   { background: var(--teal); }

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.55;
}

/* ── Privacy callout ──────────────────────────────────────── */
.privacy-callout {
  padding: 72px 24px;
}

.privacy-callout-inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.privacy-callout h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.privacy-callout p {
  color: var(--text-sub);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.link-arrow {
  font-weight: 600;
  color: var(--red);
}
.link-arrow:hover { text-decoration: underline; }

/* ── Doc pages (privacy + support) ───────────────────────── */
.doc-main {
  padding: 56px 24px 80px;
}

.doc-container {
  max-width: 700px;
  margin: 0 auto;
}

.doc-container h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.doc-meta {
  color: var(--text-sub);
  font-size: 0.9rem;
  margin-bottom: 36px;
}

.doc-container h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 12px;
}

.doc-container p {
  color: var(--text-sub);
  margin-bottom: 14px;
  line-height: 1.7;
}

.doc-container ul {
  margin: 0 0 14px 20px;
  color: var(--text-sub);
  line-height: 1.7;
}

.doc-container ul li { margin-bottom: 4px; }

.doc-container strong { color: var(--text); }

/* ── Support card ─────────────────────────────────────────── */
.support-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin: 32px 0 48px;
}

.support-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.support-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.support-card p {
  font-size: 0.9rem;
  color: var(--text-sub);
  margin-bottom: 16px;
}

.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 980px;
  transition: opacity 0.15s, transform 0.15s;
}
.btn-primary:hover { opacity: 0.85; transform: scale(1.02); text-decoration: none; }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq { margin-top: 8px; }

details {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

summary {
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--text-sub);
  transition: transform 0.2s;
}
details[open] summary::after {
  content: "−";
}

details p {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.65;
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 24px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-logo {
  font-weight: 700;
  font-size: 1rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-sub);
}
.footer-links a:hover { color: var(--text); text-decoration: none; }

.footer-copy {
  width: 100%;
  font-size: 0.8rem;
  color: var(--text-sub);
  margin-top: 8px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero { padding: 56px 20px 48px; }
  .features { padding: 48px 20px; }
  .support-card { flex-direction: column; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
