/* ============================================================
   CommonGround landing page
   Palette derived from the logo: deep navy + teal + leaf green.
   Teal family matches the prototype (#0f766e / #115e59).
   ============================================================ */

:root {
  --navy: #1e3a5f;
  --navy-deep: #16304f;
  --teal: #0f766e;
  --teal-dark: #115e59;
  --teal-tint: #ccfbf1;
  --green: #65a73c;
  --ink: #1e293b;
  --muted: #51606f;
  --line: #e2e8f0;
  --bg-soft: #f4f7f9;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: 2.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem;   letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 0.5em;
}

.eyebrow-light { color: #7dd3c8; }

.section-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 2em;
}

.section-sub-light { color: #cfe3e0; }

section { padding: 72px 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}

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

.btn-outline {
  background: var(--white);
  color: var(--teal);
  border-color: var(--teal);
}
.btn-outline:hover { background: var(--teal-tint); }

.btn-light {
  background: var(--white);
  color: var(--teal-dark);
}
.btn-light:hover { background: var(--teal-tint); }

.btn-sm { padding: 9px 18px; font-size: 0.95rem; }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img { display: block; }

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}

.brand-accent { color: var(--teal); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

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

.site-nav .btn { color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--navy);
}

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

.hero {
  padding: 56px 0 80px;
  background: linear-gradient(180deg, var(--white) 0%, var(--bg-soft) 100%);
  text-align: center;
}

.hero-inner {
  max-width: 780px;
}

.hero-logo {
  width: 260px;
  height: auto;
  margin: 0 auto 8px;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0 auto 1.8em;
  max-width: 660px;
}

/* ---------- Email capture form ---------- */

.capture-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  max-width: 560px;
  margin: 0 auto;
}

.capture-form input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 16px;
  font-size: 1.05rem;
  font-family: inherit;
  border: 2px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
}

.capture-form input[type="email"]:focus {
  outline: none;
  border-color: var(--teal);
}

.capture-form .btn { flex-shrink: 0; }

.form-note {
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--muted);
}

.form-note-light { color: #cfe3e0; }

.mailto-link { font-weight: 600; }
.mailto-link-light { color: var(--white); }

/* ---------- Law hook ---------- */

.law {
  background: var(--navy-deep);
  color: #e6edf5;
}

.law h2 { color: var(--white); }
.law h3 { color: var(--white); font-size: 1.25rem; }

.law-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.law-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 28px;
}

.law-card p { color: #cdd9e6; }
.law-card strong { color: var(--white); }

.law-tagline {
  font-size: 1.15rem;
  font-weight: 700;
  color: #7dd3c8 !important;
  margin-bottom: 0;
}

.law-footnote {
  margin: 32px auto 0;
  max-width: 760px;
  color: #9fb3c8;
  font-size: 1rem;
}

/* ---------- How it works ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}

.step {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 28px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.step p { color: var(--muted); margin-bottom: 0; }

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

.features { background: var(--bg-soft); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
}

.feature h3 { color: var(--teal-dark); }
.feature p { color: var(--muted); margin-bottom: 0; font-size: 0.98rem; }

/* ---------- Pricing ---------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.price-featured {
  border: 2px solid var(--teal);
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.12);
}

.badge {
  display: inline-block;
  align-self: center;
  background: var(--teal-tint);
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
  padding: 4px 14px;
  margin: 0 0 12px;
}

.price {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.price .amount {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--navy);
}

.price-detail {
  font-weight: 600;
  color: var(--ink);
  margin: 4px 0 16px;
}

.price-card ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  color: var(--muted);
  flex-grow: 1;
}

.price-card li { padding: 5px 0; }

.pricing-note {
  margin-top: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.faq { background: var(--bg-soft); }

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
  padding: 0 22px;
  max-width: 820px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  padding: 18px 0;
  font-size: 1.05rem;
}

.faq summary:hover { color: var(--teal); }

.faq details p {
  color: var(--muted);
  padding-bottom: 18px;
  margin: 0;
}

/* ---------- Final CTA ---------- */

.cta-final {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  text-align: center;
}

.cta-final h2 { color: var(--white); }
.cta-final .section-sub { margin-left: auto; margin-right: auto; }

.cta-final .capture-form input[type="email"] {
  border-color: transparent;
}

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

.site-footer {
  background: var(--navy-deep);
  color: #9fb3c8;
  padding: 40px 0;
  font-size: 0.95rem;
}

.footer-inner { text-align: center; }

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #e6edf5;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-brand img {
  border-radius: 6px;
  background: var(--white);
}

.footer-disclaimer {
  max-width: 640px;
  margin: 0 auto 16px;
  color: #cdd9e6;
}

.footer-meta { margin: 0; }
.footer-meta a { color: #7dd3c8; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .price-featured { order: -1; }
}

@media (max-width: 700px) {
  body { font-size: 17px; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.55rem; }
  section { padding: 56px 0; }

  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    padding: 8px 0 16px;
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    display: block;
    width: 100%;
    padding: 10px 4px;
  }

  .site-nav .btn { text-align: center; margin-top: 6px; }

  .hero { padding: 40px 0 64px; }
  .hero-logo { width: 200px; }
  .hero-sub { font-size: 1.08rem; }

  .capture-form { flex-direction: column; }
  .capture-form .btn { width: 100%; }

  .law-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
}
