/* ============================================================
   MemberMe – Compliance Site Styles
   Effective: February 24, 2026
   ============================================================ */

/* ── Reset & base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --brand:        #2563eb;   /* primary blue */
  --brand-dark:   #1d4ed8;
  --brand-light:  #eff6ff;
  --text:         #1e293b;
  --text-muted:   #64748b;
  --border:       #e2e8f0;
  --bg:           #ffffff;
  --bg-alt:       #f8fafc;
  --radius:       0.5rem;
  --max-w:        760px;
  --nav-h:        60px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* ── Top bar ── */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
}
.site-logo:hover { text-decoration: none; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--brand);
  text-decoration: none;
}

/* ── Hero (index only) ── */
.hero {
  background: var(--brand-light);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 1.25rem 3rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 1rem;
}

.hero p {
  max-width: 560px;
  margin: 0 auto 0.75rem;
  color: var(--text);
  font-size: 1.05rem;
}

.sms-notice {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.5rem 1rem;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ── Main content ── */
main {
  flex: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

/* ── Page header (inner pages) ── */
.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--brand);
}

.page-header h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--brand);
}

.page-header .effective-date {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ── Card links (index) ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.card:hover {
  border-color: var(--brand);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
  text-decoration: none;
}
.card-icon { font-size: 1.5rem; }
.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand);
}
.card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Prose content ── */
.prose h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 0.5rem;
  padding-top: 0.25rem;
}

.prose h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.25rem 0 0.35rem;
}

.prose p {
  margin-bottom: 0.75rem;
}

.prose ul, .prose ol {
  margin: 0.5rem 0 0.75rem 1.5rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose strong {
  font-weight: 600;
}

.prose a {
  color: var(--brand);
}

/* ── Highlight box ── */
.highlight-box {
  background: var(--brand-light);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

.highlight-box p { margin: 0; }
.highlight-box + .highlight-box { margin-top: -0.25rem; }

/* ── Info table ── */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0 1.5rem;
}
.info-table th, .info-table td {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.info-table th {
  background: var(--bg-alt);
  font-weight: 600;
  width: 35%;
}

/* ── Opt-in demo (optin.html) ── */
.optin-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  max-width: 540px;
  background: var(--bg-alt);
  margin: 1.5rem 0;
}

.optin-card label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.6;
}

.optin-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 0.15rem;
  accent-color: var(--brand);
  cursor: pointer;
}

.optin-card .consent-text {
  color: var(--text);
}

.optin-card .consent-links {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  margin-left: 1.65rem;
}

.btn-demo {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.6rem 1.4rem;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0.6;
}

.screenshot-note {
  background: #fefce8;
  border: 1px solid #fde047;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #713f12;
  margin-bottom: 1.5rem;
}

/* ── Footer ── */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-muted);
}
.site-footer a:hover {
  color: var(--brand);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.5rem;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .site-nav { gap: 0.75rem; }
  .site-nav a { font-size: 0.8rem; }
  .card-grid { grid-template-columns: 1fr; }
  .info-table th { width: 45%; }
}
