/* CarbCam Website — Shared Styles */

:root {
  --teal: #2aa198;
  --teal-dark: #1e7a73;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --border: #d2d2d7;
  --max-width: 680px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1c1e;
    --bg-alt: #2c2c2e;
    --text: #f5f5f7;
    --text-secondary: #a1a1a6;
    --border: #3a3a3c;
  }
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Layout ---------- */

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

header {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.logo span {
  font-weight: 600;
  font-size: 18px;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  margin-left: 20px;
  transition: color 0.15s;
}

nav a:hover, nav a.active {
  color: var(--teal);
}

/* ---------- Hero ---------- */

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

.hero .app-icon {
  width: 120px;
  height: 120px;
  border-radius: 27%;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 12px;
}

.hero .tagline {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0 0 32px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.app-store-badge {
  display: inline-block;
}

.app-store-badge img {
  height: 48px;
}

/* ---------- Features ---------- */

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 0 0 48px;
}

.feature {
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 20px;
}

.feature .icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.feature h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
}

.feature p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

/* ---------- Page content (support, privacy, terms) ---------- */

.page-header {
  text-align: center;
  padding: 48px 0 32px;
}

.page-header h1 {
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 8px;
}

.page-header .subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0;
}

.content-section {
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}

.content-section h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
}

.content-section h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 16px 0 6px;
}

.content-section p, .content-section li {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 0 10px;
}

.content-section ul {
  padding-left: 20px;
  margin: 0 0 10px;
}

.content-section a {
  color: var(--teal);
  text-decoration: none;
}

.content-section a:hover {
  text-decoration: underline;
}

.content-section table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 10px 0;
}

.content-section th, .content-section td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

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

/* ---------- FAQ ---------- */

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

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  padding: 4px 0;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::before {
  content: "+";
  display: inline-block;
  width: 20px;
  color: var(--teal);
  font-weight: 700;
}

.faq-item[open] summary::before {
  content: "\2212";
}

.faq-item p {
  margin: 8px 0 0 20px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ---------- Contact card ---------- */

.contact-card {
  background: var(--teal);
  color: #fff;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin: 32px 0 48px;
}

.contact-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.contact-card p {
  margin: 0 0 16px;
  font-size: 14px;
  opacity: 0.9;
}

.contact-card a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
}

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

footer a:hover {
  color: var(--teal);
}

footer .links {
  margin-top: 8px;
}

footer .links a {
  margin: 0 10px;
}

/* ---------- 404 ---------- */

.not-found {
  text-align: center;
  padding: 80px 0;
}

.not-found h1 {
  font-size: 72px;
  font-weight: 800;
  color: var(--teal);
  margin: 0;
}

.not-found p {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 8px 0 24px;
}

.btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.15s;
}

.btn:hover {
  background: var(--teal-dark);
}

/* ---------- Responsive ---------- */

@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .hero .tagline { font-size: 16px; }
  .features { grid-template-columns: 1fr; }
  .page-header h1 { font-size: 24px; }
  .content-section table { font-size: 12px; }
}
