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

/* ── Tokens ── */
:root {
  --red:    #CC0001;
  --dark:   #121212;
  --card:   #1e1e1e;
  --muted:  #888;
  --text:   #fff;
  --border: #2a2a2a;
}

/* ── Base ── */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  min-height: 100svh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  display: flex;
  flex-direction: column;
  background-color: #121212;
  background: linear-gradient(0deg,rgba(0, 106, 255, 0) 30%, rgba(0, 106, 255, 0.4) 60%), url('/assets/background5c.jpg');
  /* background: linear-gradient(0deg,rgba(0, 106, 255, 0) 20%, rgba(0, 106, 255, 0.4) 70%), url('/assets/background5c.jpg'); */
  background-size: cover;
  background-position: bottom;
  background-blend-mode: normal;
}

body.black{
  background: var(--dark);
}

/* ── Header ── */
header {
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  /* border-bottom: 1px solid var(--border);
  background-color: rgba(0,0,0,.8); */
}

.logo-mark {
  width: 40px;
  height: 40px;
  background-color: #fff;
  background-image: url('/assets/app_icon.jpg');
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  text-decoration: none;
  flex-shrink: 0;
}

header h1 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
}

header a {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 36px 24px 12px 24px;
  /* border-top: 1px solid var(--border); */
  color: var(--muted);
  font-size: 13px;
  margin-top: auto;
}
footer p {
  color: var(--muted);
}
footer a {
  color: var(--muted);
  text-decoration: underline;
  margin: 0 10px;
}
footer a:hover { color: var(--text); }
footer a:last-of-type { margin-right: 20px; }

/* ── Global links (overridden by component-level rules) ── */
a { color: #ff6666; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Prose (legal pages) ── */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  width: 100%;
}

.page-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}

.updated {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 48px;
}

h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 40px 0 12px;
  color: var(--text);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 24px 0 8px;
  color: var(--text);
}

p { margin-bottom: 14px; color: #ccc; font-size: 15px; }

ul, ol { padding-left: 20px; margin-bottom: 14px; }
li { color: #ccc; font-size: 15px; margin-bottom: 6px; }

.callout {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
  color: #ccc;
}

.disclaimer-box {
  background: rgba(204,0,1,0.08);
  border: 1px solid rgba(204,0,1,0.25);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0;
}
.disclaimer-box p {
  font-size: 14px;
  color: #ddd;
  margin-bottom: 0;
}

/* ── Hero (index) ── */
main { flex: 1; }

.hero {
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: left;
  text-align: left;
  padding: 0px 24px 60px;
}

.hero h2 {
  font-size: clamp(30px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  max-width: 720px;
  margin-bottom: 20px;
  border: none;
  padding: 0;
  color: var(--text);
}

.hero h2 em {
  color: var(--red);
  font-style: normal;
}

.hero p {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 48px;
}

/* ── Store buttons ── */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: left;
}

.store-btn img {
  height: 50px;
  flex-shrink: 0;
}

/* ── Feature grid (index) ── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 64px auto 0;
  padding: 0 24px;
  width: 100%;
}

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

.feature-icon {
  font-size: 28px;
  margin-bottom: 12px;
  display: block;
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  border: none;
  padding: 0;
}

.feature-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* ── 404 ── */
.error-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 20px 24px;
}

.error-page h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  border: none;
  padding: 0;
  margin: 0 0 12px;
}

.error-page p {
  color: var(--text);
  max-width: 380px;
  margin-bottom: 32px;
  text-align: left;
}

.btn-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 12px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.btn-home:hover { text-decoration: none; }

@media (max-width: 860px) {
  .hero {
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  body {
    background-color: #121212;
    background: linear-gradient(0deg,rgba(0, 106, 255, 0) 30%, rgba(0, 106, 255, 0.4) 100%), url('/assets/background5c.jpg');
    background-size: cover;
    background-position: bottom;
    background-blend-mode: darken;
  }
  footer {
    padding-bottom: 0;
  }
  footer p {
    font-size: 0.6em;
  }
}
