/* GreatChurchTech.com — self-contained CSS, no framework.
   Palette: deep navy + warm gold + cream. Type: Inter (body) + Fraunces (display).
   Designed to feel ministry-friendly: warm, plainspoken, modern, never corporate. */

:root {
  --navy: #0f1e3d;
  --navy-2: #1a2c54;
  --gold: #d4a248;
  --gold-2: #b58736;
  --gold-soft: #f6e7c4;
  --cream: #faf7f0;
  --cream-2: #f3eddc;
  --paper: #ffffff;
  --ink: #1f2937;
  --ink-soft: #4b5871;
  --line: #e6e2d6;
  --line-2: #d8d1bc;
  --ok: #1f7a3e;
  --ok-bg: #e8f5ee;
  --warn: #7a5410;
  --warn-bg: #fdf3e0;
  --err: #8a1c1c;
  --err-bg: #fce8e6;
  --max: 1100px;
  --max-narrow: 760px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15,30,61,.06), 0 8px 24px rgba(15,30,61,.06);
  --shadow-lg: 0 4px 12px rgba(15,30,61,.08), 0 16px 48px rgba(15,30,61,.10);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.012em;
  margin: 0 0 .55em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.07; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.18; }
h3 { font-size: 1.3rem; line-height: 1.3; }
h4 { font-size: 1.05rem; line-height: 1.3; font-family: 'Inter', sans-serif; font-weight: 700; letter-spacing: 0; }

p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-2); }

img { max-width: 100%; height: auto; display: block; }
hr.soft { border: 0; border-top: 1px solid var(--line); margin: 0; }

.container { width: 100%; max-width: var(--max); padding: 0 24px; margin: 0 auto; }
.narrow    { max-width: var(--max-narrow); }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-2); margin-bottom: 14px;
}
.lead {
  font-size: 1.18rem; color: var(--ink-soft); max-width: 680px;
}

/* ---------- Header ---------- */
.site-header {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Fraunces', serif; font-weight: 800; font-size: 1.18rem;
  color: var(--navy); text-decoration: none; white-space: nowrap;
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--gold) 100%);
  display: inline-grid; place-items: center; color: var(--paper);
  font-weight: 800; font-size: .95rem; font-family: 'Inter', sans-serif;
}

.site-header nav { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.site-header nav a {
  text-decoration: none; color: var(--navy); font-weight: 500; font-size: .95rem;
}
.site-header nav a:hover { color: var(--gold-2); }
.site-header .header-cta { display: inline-flex; align-items: center; }

@media (max-width: 880px) {
  .site-header nav { gap: 14px; font-size: .88rem; }
  .site-header .header-cta { display: none; }
}
@media (max-width: 560px) {
  .site-header nav a:nth-child(n+4) { display: none; }
}

/* ---------- Section frame ---------- */
section { padding: 84px 0; }
section.tight { padding: 48px 0; }
section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.cream-2 { background: var(--cream-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.dark { background: var(--navy); color: #d2dbe9; border-top: 0; }
section.dark h1, section.dark h2, section.dark h3, section.dark h4 { color: var(--paper); }
section.dark p { color: #c4cee0; }
section.dark .eyebrow { color: var(--gold-soft); }

@media (max-width: 720px) { section { padding: 64px 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600;
  text-decoration: none; font-size: .98rem;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--navy); color: var(--paper); }
.btn-primary:hover { background: var(--navy-2); color: var(--paper); transform: translateY(-1px); }
.btn-secondary { background: var(--paper); color: var(--navy); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--navy); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--paper); border-color: rgba(255,255,255,.3); }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: var(--paper); border-color: rgba(255,255,255,.6); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-2); color: var(--paper); transform: translateY(-1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 76px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -120px -120px auto auto; width: 520px; height: 520px;
  background: radial-gradient(closest-side, rgba(212,162,72,.18), rgba(212,162,72,0));
  z-index: 0; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 span { color: var(--gold-2); }
.hero p.lead { font-size: 1.22rem; margin-bottom: 28px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { margin-top: 28px; color: var(--ink-soft); font-size: .92rem; display: flex; align-items: center; gap: 10px; }
.hero-meta .dot { width: 8px; height: 8px; border-radius: 99px; background: var(--ok); }

/* ---------- Problem section ---------- */
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 760px) { .problem-grid { grid-template-columns: 1fr; gap: 24px; } }
.problem-points { list-style: none; padding: 0; margin: 0; }
.problem-points li {
  display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line);
}
.problem-points li:first-child { border-top: 0; padding-top: 0; }
.problem-points .num {
  flex: 0 0 auto; font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.2rem;
  color: var(--gold-2); width: 28px;
}
.problem-points .body strong { color: var(--navy); display: block; margin-bottom: 2px; }
.problem-points .body span { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Product cards (the two short cards) ---------- */
.product-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 36px;
}
@media (max-width: 800px) { .product-cards { grid-template-columns: 1fr; } }

.product-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px;
}
.product-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.product-card .pill {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.pill-live    { background: var(--ok-bg);   color: var(--ok); }
.pill-private { background: var(--warn-bg); color: var(--warn); }
.product-card h3 { margin: 0; }
.product-card .subtitle { font-family: 'Fraunces', serif; color: var(--gold-2); font-style: italic; margin-bottom: 6px; font-size: 1rem; }
.product-card p { color: var(--ink-soft); margin: 0 0 18px; }
.product-card .product-cta { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Deep product sections ---------- */
.deep-product .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.deep-product.flip .container { grid-template-columns: 1fr 1.1fr; }
.deep-product.flip .deep-content { order: 2; }
@media (max-width: 880px) {
  .deep-product .container,
  .deep-product.flip .container { grid-template-columns: 1fr; gap: 32px; }
  .deep-product.flip .deep-content { order: 0; }
}

.deep-features { list-style: none; padding: 0; margin: 18px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
@media (max-width: 600px) { .deep-features { grid-template-columns: 1fr; } }
.deep-features li { display: flex; gap: 10px; padding: 6px 0; color: var(--ink); font-size: .96rem; }
.deep-features li::before {
  content: ""; flex: 0 0 auto; width: 18px; height: 18px; margin-top: 4px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b58736' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M5 13l4 4L19 7'/></svg>") no-repeat center / 18px;
}

/* "screenshot" panels for deep sections — we use stylized cards instead of image stock */
.deep-visual {
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream-2) 100%);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-lg);
}
.dv-header { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; font-size: .82rem; color: var(--ink-soft); letter-spacing: .04em; text-transform: uppercase; font-weight: 600;}
.dv-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dv-row:last-child { border-bottom: 0; }
.dv-icon {
  width: 34px; height: 34px; border-radius: 8px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--navy), var(--gold));
  display: grid; place-items: center; color: var(--paper); font-weight: 700; font-size: .92rem;
}
.dv-meta { flex: 1; font-size: .94rem; }
.dv-meta strong { display: block; color: var(--navy); }
.dv-meta span { color: var(--ink-soft); font-size: .85rem; }
.dv-tag {
  font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-2);
}

.dv-tag.live { background: var(--ok-bg); color: var(--ok); }

/* ---------- Bundle/why both ---------- */
.bundle-why {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px;
}
@media (max-width: 800px) { .bundle-why { grid-template-columns: 1fr; } }
.why-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 22px;
}
.why-card h4 { color: var(--paper); margin-bottom: 6px; font-family: 'Fraunces', serif; font-weight: 700; }
.why-card p { color: #c4cee0; font-size: .94rem; margin: 0; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px;
}
@media (max-width: 880px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.price-card.featured { border: 2px solid var(--gold); transform: translateY(-4px); position: relative; }
.price-card.featured::before {
  content: "Best value"; position: absolute; top: -12px; right: 20px;
  background: var(--gold); color: var(--navy); font-size: .72rem; font-weight: 700;
  padding: 4px 10px; border-radius: 99px; letter-spacing: .08em; text-transform: uppercase;
}
.price-card h3 { margin: 0 0 4px; }
.price-card .price { font-family: 'Fraunces', serif; font-weight: 700; font-size: 2.2rem; color: var(--navy); margin: 12px 0 4px; }
.price-card .price small { font-family: 'Inter', sans-serif; font-weight: 500; font-size: .95rem; color: var(--ink-soft); }
.price-card .price-sub { font-size: .92rem; color: var(--ink-soft); margin-bottom: 18px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.price-card ul li { padding: 6px 0; font-size: .94rem; color: var(--ink); display: flex; gap: 8px; }
.price-card ul li::before { content: "•"; color: var(--gold-2); font-weight: 700; }
.price-disclaimer { color: var(--ink-soft); font-size: .85rem; margin-top: 24px; text-align: center; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; margin-top: 24px; max-width: 840px; }
.faq-item {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.faq-item summary {
  padding: 18px 22px; cursor: pointer; font-weight: 600; color: var(--navy);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.4rem; color: var(--gold-2); font-weight: 600; transition: transform .15s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--ink-soft); }
.faq-item .faq-body p { margin: 0 0 .5em; }

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 24px; } }

.contact-info .meta {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 22px; margin-top: 18px;
}
.contact-info .meta-row { display: flex; gap: 14px; align-items: baseline; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .95rem; }
.contact-info .meta-row:first-child { border-top: 0; padding-top: 0; }
.contact-info .meta-label { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: #9aa9c4; flex: 0 0 64px; }
.contact-info .meta a { color: var(--gold-soft); }

.contact-form {
  background: var(--paper); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-lg); color: var(--ink);
}
.field { display: block; margin-bottom: 14px; }
.field label { display: block; font-size: .84rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input,
.field select,
.field textarea {
  width: 100%; padding: 11px 13px; font: inherit;
  border: 1px solid var(--line-2); border-radius: 9px; background: #fff; color: var(--ink);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(15,30,61,.10); }
.field textarea { min-height: 110px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }
.required-mark { color: var(--gold-2); margin-left: 2px; }

.flash { padding: 12px 16px; border-radius: 9px; margin-bottom: 14px; font-size: .94rem; }
.flash-ok    { background: var(--ok-bg);   color: var(--ok);   border: 1px solid #c5e3d2; }
.flash-error { background: var(--err-bg);  color: var(--err);  border: 1px solid #f1c1bb; }
.contact-form .privacy-note { font-size: .82rem; color: var(--ink-soft); margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy); color: #cdd6e3; padding: 60px 0 32px;
  font-size: .94rem;
}
.site-footer h4 { color: var(--paper); font-family: 'Inter', sans-serif; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; font-weight: 700; }
.site-footer .container { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer a { color: #cdd6e3; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer p { color: #cdd6e3; }
.site-footer .footer-tag { color: #cdd6e3; max-width: 360px; }
.site-footer .legal {
  grid-column: 1/-1; padding-top: 24px; margin-top: 24px;
  border-top: 1px solid #243561; color: #8a99b5; font-size: .82rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
@media (max-width: 720px) {
  .site-footer .container { grid-template-columns: 1fr 1fr; }
  .site-footer .footer-tag-block { grid-column: 1/-1; }
}
@media (max-width: 480px) {
  .site-footer .container { grid-template-columns: 1fr; }
}

/* ---------- Article pages (legacy /about /privacy /terms) ---------- */
article.page { background: var(--paper); padding: 56px 0; border-top: 1px solid var(--line); }
article.page .container { max-width: var(--max-narrow); }
article.page h1 { margin-bottom: 24px; }
article.page h2 { margin-top: 36px; }
article.page p, article.page li { color: var(--ink); }

/* ---------- Misc ---------- */
.contact-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); max-width: 560px;
}
.contact-card .row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.contact-card .row:first-of-type { border-top: 0; }
.contact-card .row .label { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); width: 80px; }

/* Visual-only: announce a screen reader skip link */
.skip-link {
  position: absolute; left: -9999px; top: -9999px;
}
.skip-link:focus { left: 16px; top: 16px; background: var(--navy); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100; }
