:root {
  --bg-glow: radial-gradient(ellipse 80% 60% at 22% 8%, #1c1c1e 0%, #000000 55%);
  --green: #21D07A;
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.68);
  --text-muted: rgba(255, 255, 255, 0.4);
  --border: rgba(255, 255, 255, 0.1);
  --surface: rgba(255, 255, 255, 0.04);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #000000;
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  position: relative;
  z-index: 0;
}

/* Fixed to the viewport (not body's own, content-driven height) so the glow
   animates identically whether the page is one screen tall or many — sized
   larger than the viewport to leave room to pan without exposing an edge. */
body::before {
  content: '';
  position: fixed;
  top: -15%;
  left: -15%;
  width: 130%;
  height: 130%;
  z-index: -1;
  background: var(--bg-glow);
  background-repeat: no-repeat;
  animation: glow-drift 24s ease-in-out infinite alternate;
}

@keyframes glow-drift {
  0%   { transform: translate(0%, 0%); }
  33%  { transform: translate(6%, 4%); }
  66%  { transform: translate(-4%, 5%); }
  100% { transform: translate(3%, -3%); }
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Hero ────────────────────────────────────────────────────────────── */
/* Fills the space above the footer and centers its content, so the page
   feels balanced regardless of viewport height (phone vs. tall desktop). */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 24px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(28px, 5.5vw, 44px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 20px;
}

.hero p {
  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0 auto 40px;
  max-width: 480px;
}

/* ── App Store button ───────────────────────────────────────────────── */

.appstore-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  color: #000000;
  padding: 13px 24px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.appstore-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.appstore-button svg {
  flex-shrink: 0;
}

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

.footer {
  flex-shrink: 0;
  width: 100%;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.footer-inner {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--text-secondary);
}

.footer-x {
  display: inline-flex;
  align-items: center;
}

.footer-x svg {
  display: block;
}

.footer-email {
  cursor: default;
  user-select: text;
}

/* ── Legal / policy pages ───────────────────────────────────────────── */

.legal {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 24px 100px;
}

.legal-back {
  display: inline-block;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 32px;
}

.legal-back:hover {
  color: var(--text-primary);
}

.legal h1 {
  font-size: clamp(24px, 4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 0 0 8px;
}

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

.legal section {
  margin-bottom: 28px;
}

.legal h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 10px;
}

.legal p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 10px;
  white-space: pre-line;
}

.support-email {
  color: var(--green);
}

.support-email:hover {
  text-decoration: underline;
}

.faq-item {
  margin-bottom: 20px;
}

.faq-q {
  font-size: 15px;
  font-weight: 600;
  color: var(--green);
  margin: 0 0 4px;
}

.faq-a {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* ── Small phones ────────────────────────────────────────────────────── */
@media (max-width: 380px) {
  .hero { padding: 48px 20px; }
  .appstore-button { padding: 12px 20px; font-size: 15px; }
}

/* ── Large desktop ───────────────────────────────────────────────────── */
@media (min-width: 1440px) {
  .hero { max-width: 880px; }
  .hero h1 { font-size: 48px; }
}
