/* Shared styles for the QR Scanner GitHub Pages site.
   Palette mirrors the app's Material 3 teal theme (MainActivity.kt). */

:root {
  color-scheme: light dark;
  --bg: #fbfdfc;
  --surface: #ffffff;
  --border: #d7e4e1;
  --text: #16211f;
  --muted: #55645f;
  --primary: #00695c;
  --primary-soft: #e0f2f1;
  --on-primary: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101615;
    --surface: #182220;
    --border: #2b3a37;
    --text: #e6efec;
    --muted: #9db3ae;
    --primary: #80cbc4;
    --primary-soft: #10302c;
    --on-primary: #003c33;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 1.25rem 4rem;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

main, header, footer { max-width: 46rem; margin: 0 auto; }

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

/* Hero */
.hero { text-align: center; padding: 3.5rem 0 2.5rem; }
.hero img { width: 96px; height: 96px; border-radius: 22%; }
.hero h1 { margin: 1rem 0 .35rem; font-size: 2.1rem; letter-spacing: -.02em; }
.tagline { margin: 0 auto; max-width: 32rem; color: var(--muted); font-size: 1.1rem; }

.badges { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.badge {
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  padding: .25rem .8rem;
  font-size: .85rem;
  font-weight: 600;
}

.cta { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.button {
  display: inline-block;
  padding: .65rem 1.4rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  border: 1px solid var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.button.secondary { background: transparent; color: var(--primary); }

/* Sections */
h2 { margin: 2.75rem 0 1rem; font-size: 1.35rem; letter-spacing: -.01em; }
h3 { margin: 1.75rem 0 .5rem; font-size: 1.05rem; }

.features { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
@media (min-width: 40rem) { .features { grid-template-columns: 1fr 1fr; } }
.features li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}
.features strong { display: block; margin-bottom: .15rem; }
.features span { color: var(--muted); font-size: .95rem; }

table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
th, td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }

.note {
  background: var(--primary-soft);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin: 1.5rem 0;
}
.note p { margin: 0; }

code {
  background: var(--primary-soft);
  border-radius: 6px;
  padding: .1rem .35rem;
  font-size: .9em;
}

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .9rem;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  justify-content: space-between;
}
footer a { color: var(--muted); }
