/* CD Tracker — shared styles for index, support and privacy pages */
:root {
  --bg: #f6f8f7;
  --surface: #ffffff;
  --surface-2: #eef4f1;
  --text: #0e1a16;
  --muted: #4d5f58;
  --line: rgba(14, 26, 22, 0.10);
  --brand: #13906b;
  --brand-strong: #0b6e55;
  --brand-soft: rgba(19, 144, 107, 0.10);
  --gold: #f0a23a;
  --shadow: 0 18px 48px rgba(14, 26, 22, 0.10);
  --radius: 20px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07120f;
    --surface: #0f1f1a;
    --surface-2: #132822;
    --text: #eaf5f0;
    --muted: #a3b8b0;
    --line: rgba(234, 245, 240, 0.10);
    --brand: #34d39c;
    --brand-strong: #1fa37a;
    --brand-soft: rgba(52, 211, 156, 0.12);
    --shadow: 0 18px 48px rgba(0, 0, 0, 0.40);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1100px 520px at 15% -10%, var(--brand-soft), transparent 60%),
    radial-gradient(800px 460px at 90% 0%, rgba(240, 162, 58, 0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 24px 16px 64px; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 0 28px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 4px 14px rgba(11, 110, 85, 0.30); }
.brand strong { display: block; font-size: 17px; letter-spacing: -0.2px; }
.brand span { display: block; font-size: 12px; color: var(--muted); }
.site-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.site-nav a {
  text-decoration: none; font-size: 14px; padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-color: var(--brand); color: var(--brand); }

/* Cards & sections */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.section { margin-top: 24px; padding: 28px 24px; }
.section h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -0.5px; line-height: 1.15; }
.section .lead { margin: 0 0 20px; color: var(--muted); max-width: 64ch; }
.muted { color: var(--muted); }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: center;
  padding: 36px 32px;
}
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding: 28px 20px; } }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted);
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2);
}
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.hero h1 { margin: 16px 0 12px; font-size: 44px; line-height: 1.07; letter-spacing: -1px; }
@media (max-width: 520px) { .hero h1 { font-size: 34px; } }
.hero p.sub { margin: 0; font-size: 17px; color: var(--muted); max-width: 56ch; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 14px;
  font-weight: 650; font-size: 15px; text-decoration: none; border: 1px solid var(--line);
  background: var(--surface-2);
}
.btn.primary { background: var(--brand-strong); color: #fff; border-color: transparent; }
.btn.primary:hover { background: var(--brand); }
.btn:hover { transform: translateY(-1px); transition: transform 0.15s ease; }
.fine { margin-top: 14px; font-size: 13px; color: var(--muted); }

.phone {
  justify-self: center; width: min(300px, 80vw);
  border-radius: 40px; padding: 10px; background: #0b0f0d;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}
.phone img { border-radius: 31px; width: 100%; height: auto; }

/* Screenshot strip */
.shots {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
@media (max-width: 900px) { .shots { grid-template-columns: repeat(2, 1fr); } }
.shots figure { margin: 0; }
.shots img {
  border-radius: 22px; border: 1px solid var(--line); width: 100%; height: auto;
  box-shadow: 0 12px 30px rgba(14, 26, 22, 0.12);
}
.shots figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }
.shots figcaption b { display: block; color: var(--text); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feat { padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); }
.feat .ico {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 10px;
}
.feat .ico svg { width: 20px; height: 20px; }
.feat h3 { margin: 0 0 4px; font-size: 16px; }
.feat p { margin: 0; font-size: 14px; color: var(--muted); }
.feat .new {
  font-size: 11px; font-weight: 700; color: #7a4a00; background: rgba(240, 162, 58, 0.22);
  padding: 2px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 2px;
}
@media (prefers-color-scheme: dark) { .feat .new { color: #ffd08a; } }

/* Free vs Pro */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { .plans { grid-template-columns: 1fr; } }
.plan { padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface-2); }
.plan.pro { border: 2px solid var(--brand); background: var(--surface); }
.plan h3 { margin: 0; font-size: 20px; }
.plan .price { margin: 4px 0 14px; color: var(--muted); font-size: 14px; }
.plan ul { margin: 0; padding-left: 20px; }
.plan li { margin: 6px 0; font-size: 15px; }

/* Two columns */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 800px) { .two { grid-template-columns: 1fr; } }
.two h2 { font-size: 22px; }
.two ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); }
.two li { margin: 5px 0; }

/* Document pages (support, privacy) */
.doc { padding: 32px 28px; }
@media (max-width: 600px) { .doc { padding: 24px 18px; } }
.doc h1 { margin: 0 0 6px; font-size: 32px; letter-spacing: -0.6px; }
.doc h2 { margin: 28px 0 8px; font-size: 20px; letter-spacing: -0.2px; }
.doc p, .doc li { color: var(--muted); }
.doc p strong, .doc li strong { color: var(--text); }
.doc ul { padding-left: 20px; }
.doc a { color: var(--brand); }
details {
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 10px 0;
  background: var(--surface-2);
}
details summary { cursor: pointer; font-weight: 650; }
details p, details ol, details ul { margin: 10px 0 0; }
.callout {
  margin-top: 20px; padding: 18px; border-radius: 16px; background: var(--brand-soft);
  border: 1px solid var(--line);
}
.callout p { margin: 6px 0 0; }

/* Footer */
.site-footer {
  margin-top: 28px; padding: 18px 2px 0; display: flex; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; color: var(--muted); font-size: 13px;
}
.site-footer nav { display: flex; gap: 14px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
