/* Shared stylesheet for dpfguard.app — plain static site (no build step,
   see the site's own note in README.md for why Astro was dropped for v1).
   Palette matches the Android app (app/app/src/main/res/values/colors.xml):
   background #121212, card surface #1a1a1a, bronze/amber accent #D4842B
   (one of the app's 5 selectable "BMW Ambient Light" accent colors). */

:root {
  --bg: #121212;
  --surface: #1a1a1a;
  --surface-border: #2a2a2a;
  --text: #f5f5f5;
  --text-dim: #b0b0b0;
  --accent: #d4842b;
  --accent-text: #121212;
  --max-width: 960px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

/* Site-wide: justify body text. Short intentionally-centered blurbs (e.g.
   the hero tagline) set their own inline text-align, which wins over this
   since inline styles outrank a stylesheet rule. */
p {
  text-align: justify;
}

a {
  color: var(--accent);
}

img {
  max-width: 100%;
  display: block;
}

header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px;
}

.site-header .wordmark {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  color: var(--text);
  text-decoration: none;
}

.site-header nav a {
  color: var(--text-dim);
  text-decoration: none;
  margin-left: 24px;
  font-size: 0.95rem;
}

.site-header nav a:hover {
  color: var(--text);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.hero {
  text-align: center;
  padding: 24px 0 48px;
}

.hero img.banner {
  border-radius: 12px;
  margin: 0 auto 32px;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.hero p.tagline {
  color: var(--text-dim);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 32px;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--surface-border);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 48px 0;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 20px;
}

.feature-card h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

.feature-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 0;
}

section {
  margin: 48px 0;
}

h2 {
  font-size: 1.4rem;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  max-width: 380px;
  margin: 32px auto;
}

.price-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 8px 0 24px;
}

.price-card ul {
  text-align: left;
  color: var(--text-dim);
  padding-left: 20px;
  margin-bottom: 24px;
}

.highlight-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 28px 32px;
  margin: 48px 0;
}

.highlight-card h2 {
  margin-top: 0;
}

.highlight-card p, .highlight-card li {
  color: var(--text-dim);
}

.highlight-card p:last-child {
  margin-bottom: 0;
}

.faq-item {
  border-bottom: 1px solid var(--surface-border);
  padding: 20px 0;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.faq-item p {
  color: var(--text-dim);
  margin: 0;
}

footer.site-footer {
  border-top: 1px solid var(--surface-border);
  margin-top: 64px;
  padding: 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

footer.site-footer a {
  color: var(--text-dim);
  margin: 0 8px;
}

.legal h1 {
  font-size: 1.6rem;
}

.legal h2 {
  font-size: 1.1rem;
  margin-top: 32px;
}

.legal p, .legal li {
  color: var(--text-dim);
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9rem;
}

.legal th, .legal td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--surface-border);
  color: var(--text-dim);
}

.legal th {
  color: var(--text);
  font-weight: 600;
}

.notice {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.9rem;
  color: var(--text-dim);
}
