/* The Grid — shared styles for landing + legal pages.
   Dark-first theme matching the mobile app: bg #0B0906, primary red #DC181F,
   secondary gold #C9A14A, accent green #6BC97A. Display type Clash Display,
   body type Geist (self-hosted from /fonts to match the app exactly). */

@font-face {
  font-family: "Clash Display";
  src: url("fonts/ClashDisplay-Medium.otf") format("opentype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url("fonts/ClashDisplay-Semibold.otf") format("opentype");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url("fonts/ClashDisplay-Bold.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Medium.otf") format("opentype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-SemiBold.otf") format("opentype");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --bg: #0B0906;
  --card: #141110;
  --card-elevated: #1C1815;
  --border: #2A2522;
  --border-light: #3A332E;
  --text: #F5F0E8;
  --text-muted: #A8A29A;
  --text-dim: #857F77;
  --primary: #DC181F;
  --primary-dark: #B8141A;
  --primary-subtle: #2A0E0C;
  --secondary: #C9A14A;
  --accent: #6BC97A;
  --display: "Clash Display", "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  --body: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--secondary); }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px;
}

.container--narrow {
  max-width: 720px;
}

/* Header / nav */
header {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
header .container {
  padding-top: 16px;
  padding-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}
.logo span { color: var(--primary); }
nav a {
  margin-left: 24px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
}
nav a:hover { color: var(--text); }

/* Hero */
.hero {
  padding: 80px 0 64px;
  text-align: center;
  /* Soft red glow at the top, echoing the app's black/red surfaces. */
  background: radial-gradient(120% 80% at 50% -20%, rgba(220, 24, 31, 0.14), transparent 60%);
}
.hero h1 {
  font-family: var(--display);
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--primary); }
.hero p.lead {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
}
.hero .ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.1s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--primary);
  color: #fff;
}
.btn--primary:hover { background: var(--primary-dark); color: #fff; }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}
.btn--ghost:hover { border-color: var(--secondary); color: var(--secondary); }

/* Features */
.features {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.15s ease;
}
.feature:hover { border-color: var(--border-light); }
.feature h3 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.feature p {
  color: var(--text-muted);
  font-size: 15px;
}
.section-title {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.section-sub {
  color: var(--text-muted);
  font-size: 17px;
}

/* Legal pages */
.legal h1 {
  font-family: var(--display);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.legal .updated {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 40px;
}
.legal h2 {
  font-family: var(--display);
  font-size: 23px;
  font-weight: 600;
  margin: 40px 0 12px;
  color: var(--text);
}
.legal p, .legal li {
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: 16px;
}
.legal strong { color: var(--text); }
.legal ul, .legal ol {
  padding-left: 24px;
  margin-bottom: 12px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 64px;
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer .links a {
  color: var(--text-muted);
  margin-left: 20px;
  font-size: 14px;
}
footer .links a:hover { color: var(--text); }
footer .copyright {
  color: var(--text-dim);
  font-size: 14px;
}

@media (max-width: 600px) {
  .hero { padding: 48px 0 32px; }
  .hero h1 { font-size: 38px; }
  .hero p.lead { font-size: 17px; }
  nav a { margin-left: 16px; font-size: 14px; }
  footer .container { justify-content: flex-start; }
  footer .links a { margin-left: 0; margin-right: 16px; }
}
