/* CardCanner shared stylesheet — style.css
   Used by: index.html, privacy.html, terms.html
   Mobile-first. No web fonts. No JavaScript. WCAG AA.
   ~220 lines
*/

/* ── Reset & base ─────────────────────────────────────────── */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: #5a5f66;
  background: #fafafa;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #9a6a3a;
  text-decoration: underline;
}

a:hover,
a:focus {
  color: #2a2d31;
}

h1,
h2,
h3,
h4 {
  color: #2a2d31;
  line-height: 1.25;
  font-weight: 700;
}

ul,
ol {
  padding-left: 1.4rem;
}

li {
  margin-bottom: 0.35rem;
}

p {
  margin-bottom: 0.9rem;
}

/* ── Layout container ─────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Site header ──────────────────────────────────────────── */

.site-header {
  background: #2a2d31;
  padding: 0.9rem 1.25rem;
}

.brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f5f0eb;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand:hover,
.brand:focus {
  color: #9a6a3a;
}

/* ── Site footer ──────────────────────────────────────────── */

.site-footer {
  margin-top: auto;
  background: #2a2d31;
  color: #a0a5ab;
  padding: 1.5rem 1.25rem;
  text-align: center;
  font-size: 0.875rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.75rem;
}

.site-footer nav a {
  color: #c8bfb4;
  text-decoration: underline;
}

.site-footer nav a:hover,
.site-footer nav a:focus {
  color: #f5f0eb;
}

.copyright {
  color: #7a7f86;
  font-size: 0.8rem;
}

/* ── Hero (landing page) ──────────────────────────────────── */

.hero {
  text-align: center;
  padding: 2.5rem 1.25rem 2rem;
}

.hero h1 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.lede {
  font-size: 1.05rem;
  color: #5a5f66;
  margin-bottom: 1.75rem;
  max-width: 38ch;
  margin-left: auto;
  margin-right: auto;
}

/* ── Phone CTA ────────────────────────────────────────────── */

.phone-cta {
  display: inline-block;
  font-size: 2rem;
  font-weight: 700;
  color: #2a2d31;
  text-decoration: none;
  border: 2px solid #2a2d31;
  border-radius: 6px;
  padding: 0.45rem 1rem;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
  transition: background 0.15s, color 0.15s;
}

.phone-cta:hover,
.phone-cta:focus {
  background: #2a2d31;
  color: #f5f0eb;
}

/* ── Opt-in disclosure ────────────────────────────────────── */

.opt-in-disclosure {
  font-size: 0.82rem;
  color: #7a7f86;
  line-height: 1.55;
  max-width: 46ch;
  margin: 0 auto 2rem;
}

.opt-in-disclosure a {
  color: #7a7f86;
}

.opt-in-disclosure a:hover,
.opt-in-disclosure a:focus {
  color: #2a2d31;
}

/* ── What you get / How it works ──────────────────────────── */

.what-you-get,
.how-it-works {
  padding: 1.5rem 1.25rem;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

.what-you-get h2,
.how-it-works h2 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: #2a2d31;
}

.what-you-get ul {
  list-style: disc;
  color: #5a5f66;
}

.how-it-works ol {
  list-style: decimal;
  color: #5a5f66;
}

/* ── Legal pages (.legal container) ──────────────────────── */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  width: 100%;
  flex: 1;
}

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

.legal h2 {
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: #2a2d31;
}

.legal h3 {
  font-size: 1rem;
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
  color: #3a3f46;
}

.legal p,
.legal li {
  font-size: 0.97rem;
}

.legal section {
  border-top: 1px solid #e2e5e8;
  padding-top: 1.25rem;
  margin-top: 1.25rem;
}

.legal section:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

/* ── Last-updated date ────────────────────────────────────── */

.updated {
  font-size: 0.85rem;
  color: #9a9fa6;
  margin-bottom: 0.5rem;
}

/* ── Entity / brand attribution block ────────────────────── */

.entity-block {
  font-size: 0.9rem;
  color: #7a7f86;
  margin-bottom: 1.25rem;
  font-style: italic;
}

/* ── TL;DR list ───────────────────────────────────────────── */

.tldr {
  background: #f0f2f4;
  border-left: 4px solid #9a6a3a;
  border-radius: 0 4px 4px 0;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  list-style: none;
  padding-left: 1rem;
}

.tldr li {
  font-size: 0.95rem;
  color: #3a3f46;
  margin-bottom: 0.4rem;
}

.tldr li::before {
  content: "✓ ";
  color: #9a6a3a;
  font-weight: 700;
}

/* ── SMS keywords (STOP / HELP / START / DELETE) ─────────── */

.kw {
  font-weight: 700;
  font-size: 1.05em;
  color: #2a2d31;
  background: #eee9e2;
  padding: 0 0.25em;
  border-radius: 3px;
}

/* ── Processor / provider list ───────────────────────────── */

.processor-list {
  list-style: none;
  padding-left: 0;
}

.processor-list li {
  border-bottom: 1px solid #e2e5e8;
  padding: 0.55rem 0;
  font-size: 0.95rem;
}

.processor-list li:last-child {
  border-bottom: none;
}

.processor-list strong {
  color: #2a2d31;
}

/* ── Desktop adjustments ──────────────────────────────────── */

@media (min-width: 720px) {
  .hero {
    padding: 3.5rem 1.5rem 2.5rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .lede {
    font-size: 1.15rem;
  }

  .phone-cta {
    font-size: 3rem;
    padding: 0.5rem 1.25rem;
  }

  .opt-in-disclosure {
    font-size: 0.85rem;
  }

  .what-you-get,
  .how-it-works {
    padding: 1.5rem 2rem;
  }

  .legal {
    padding: 2.5rem 2rem 4rem;
  }

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