/* ==========================================================================
   WhatsApp lead-groups landing — mobile-first prototype styles
   Issue 5 of EPIC_T_IMPLEMENT_LANDING_WA_GROUP. No build step, no framework.
   ========================================================================== */

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-alt: #f0f2f5;
  --text: #1a1f2c;
  --text-muted: #5a6473;
  --border: #e0e4ea;
  --accent: #25d366;          /* WhatsApp green */
  --accent-dark: #128c7e;
  --accent-fg: #ffffff;
  --warning-bg: #fff4e5;
  --warning-text: #7a4a00;
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 720px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1419;
    --surface: #1a2029;
    --surface-alt: #232a36;
    --text: #e6e9ef;
    --text-muted: #9ba3b1;
    --border: #2f3744;
    --warning-bg: #3a2a14;
    --warning-text: #ffd28a;
  }
}

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

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.25; }
p { margin: 0 0 var(--space-3); }
a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

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

/* ---------- Header ---------- */
.site-header {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.site-header__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

/* ---------- Hero ---------- */
.hero { padding: var(--space-5) 0 var(--space-4); }
.hero h1 {
  font-size: 1.75rem;
  margin: 0 0 var(--space-3);
}
.hero__sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin: 0 0 var(--space-3);
}
.hero__note {
  font-size: 0.9375rem;
  margin: 0 0 var(--space-4);
  padding: var(--space-3);
  background: var(--warning-bg);
  color: var(--warning-text);
  border-radius: var(--radius-sm);
}
.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* ---------- Generic section ---------- */
.section {
  padding: var(--space-5) 0;
  border-top: 1px solid var(--border);
}
.section h2 {
  font-size: 1.375rem;
  margin: 0 0 var(--space-3);
}

/* ---------- Steps ---------- */
.steps {
  margin: 0 0 var(--space-3);
  padding-left: var(--space-4);
}
.steps li { margin-bottom: var(--space-2); }

/* ---------- Service cards ---------- */
.cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
}
.card h3 {
  margin: 0 0 var(--space-2);
  font-size: 1.1875rem;
}
.card h4 {
  margin: var(--space-3) 0 var(--space-1);
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.card__desc {
  color: var(--text-muted);
  margin: 0 0 var(--space-2);
}
.card__list {
  margin: 0 0 var(--space-2);
  padding-left: var(--space-4);
}
.card__list--neg li { color: var(--text-muted); }

.card details {
  margin: var(--space-3) 0;
  padding: var(--space-2) var(--space-3);
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
}
.card details summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.card details summary::-webkit-details-marker { display: none; }
.card details summary::after {
  content: "+";
  float: right;
  color: var(--text-muted);
}
.card details[open] summary::after { content: "−"; }
.card details ul { margin: var(--space-2) 0 0; padding-left: var(--space-4); }
.card details li { margin-bottom: var(--space-1); color: var(--text-muted); }

/* ---------- Consent + CTA ---------- */
.consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin: var(--space-3) 0;
  font-size: 0.9375rem;
  color: var(--text);
  cursor: pointer;
}
.consent input[type="checkbox"] {
  margin-top: 4px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--accent-dark);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-fg);
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  min-height: 48px;            /* touch target */
}
.cta:hover { background: var(--accent-dark); color: var(--accent-fg); }
.cta:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 2px;
}
.cta[disabled],
.cta[aria-disabled="true"] {
  background: var(--surface-alt);
  color: var(--text-muted);
  cursor: not-allowed;
}
.cta__helper {
  display: block;
  margin-top: var(--space-2);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ---------- Rules ---------- */
.rules-block { margin-bottom: var(--space-3); }
.rules-block h4 {
  font-size: 1rem;
  margin: 0 0 var(--space-1);
}
.rules-block p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  margin-bottom: var(--space-2);
  background: var(--surface);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  font-weight: 400;
  color: var(--text-muted);
}
.faq details[open] summary::after { content: "−"; }
.faq details > p { margin: var(--space-2) 0 0; color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: var(--space-6);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.875rem;
}
.site-footer p { margin: 0 0 var(--space-2); }
.site-footer__links a {
  color: var(--text);
  text-decoration: underline;
  margin-right: var(--space-3);
}

/* ---------- Legal pages ---------- */
.legal h1 { font-size: 1.5rem; margin-bottom: var(--space-3); }
.legal h2 { font-size: 1.0625rem; margin-top: var(--space-4); margin-bottom: var(--space-2); }
.legal p { color: var(--text-muted); }
.legal .back { display: inline-block; margin-top: var(--space-4); }

/* ---------- Transient notice (prototype CTA feedback) ---------- */
.notice {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  max-width: calc(100% - 32px);
  text-align: center;
  z-index: 10;
}
.notice.is-visible { opacity: 1; }

/* ---------- Tablet / desktop enhancement ---------- */
@media (min-width: 720px) {
  :root { --max-width: 880px; }
  .hero h1 { font-size: 2.25rem; }
  .hero__actions { flex-direction: row; }
  .hero__actions .cta { width: auto; min-width: 220px; }
  .cards { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .notice { transition: none; }
}
