/*
Theme Name: Scripture Mapper
Theme URI: https://scripturemapper.com/
Author: Scripture Mapper
Description: A quiet, research-led theme for the Scripture Mapper desktop application.
Version: 0.2.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: scripture-mapper
*/

:root {
  --ink: #201b2f;
  --muted: #666272;
  --paper: #fbfaf6;
  --paper-warm: #f5f0e4;
  --purple: #3c276e;
  --purple-deep: #26184d;
  --teal: #176e70;
  --gold: #ba8b2f;
  --line: rgba(42, 31, 69, 0.14);
  --shadow: 0 24px 65px rgba(39, 26, 75, 0.13);
  --radius: 22px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--purple); }
img { display: block; max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  background: rgba(251, 250, 246, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 13px; color: var(--ink); text-decoration: none; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand-copy { display: grid; line-height: 1.12; }
.brand-name { font-family: var(--serif); font-size: 22px; font-weight: 700; }
.brand-note { margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 25px; }
.site-nav a { color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.site-nav a:hover { color: var(--purple); }
.nav-cta { padding: 10px 16px; border: 1px solid rgba(60,39,110,.28); border-radius: 999px; background: #fff; }

.hero { position: relative; overflow: hidden; padding: 90px 0 80px; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 10% 5%, rgba(186,139,47,.16), transparent 32%), radial-gradient(circle at 92% 16%, rgba(23,110,112,.14), transparent 34%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 66px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 20px; color: var(--teal); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
h1, h2, h3 { margin-top: 0; font-family: var(--serif); line-height: 1.08; }
h1 { max-width: 720px; margin-bottom: 22px; font-size: clamp(48px, 6vw, 78px); letter-spacing: -.035em; }
.lead { max-width: 660px; margin: 0; color: #4f4a59; font-size: clamp(19px, 2vw, 23px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 21px; border: 1px solid transparent; border-radius: 10px; font-size: 15px; font-weight: 800; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--purple); box-shadow: 0 12px 24px rgba(60,39,110,.2); }
.button-primary:hover { color: #fff; background: var(--purple-deep); }
.button-secondary { color: var(--ink); border-color: var(--line); background: #fff; }
.microcopy { margin-top: 16px; color: var(--muted); font-size: 13px; }
.hero-visual { position: relative; padding: 18px; border: 1px solid rgba(60,39,110,.12); border-radius: 28px; background: rgba(255,255,255,.8); box-shadow: var(--shadow); transform: rotate(1deg); }
.hero-visual::after { content: "Private by design"; position: absolute; right: 22px; bottom: 20px; padding: 8px 12px; color: #fff; border-radius: 999px; background: rgba(38,24,77,.9); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.hero-visual img { width: 100%; border-radius: 16px; }

.trust-strip { border-block: 1px solid var(--line); background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 26px 22px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; margin-bottom: 3px; font-family: var(--serif); font-size: 19px; }
.trust-item span { color: var(--muted); font-size: 13px; }

.section { padding: 92px 0; }
.section-tint { background: var(--paper-warm); }
.section-dark { color: #fff; background: var(--purple-deep); }
.section-heading { max-width: 760px; margin-bottom: 46px; }
.section-heading h2 { margin-bottom: 16px; font-size: clamp(36px, 4vw, 54px); letter-spacing: -.025em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 19px; }
.section-dark .section-heading p { color: rgba(255,255,255,.72); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { min-height: 235px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.72); }
.feature-number { color: var(--gold); font-family: var(--serif); font-size: 17px; font-weight: 700; }
.feature-card h3 { margin: 30px 0 10px; font-size: 25px; }
.feature-card p { margin: 0; color: var(--muted); }

.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.principle { padding: 25px 0; border-top: 1px solid rgba(255,255,255,.18); }
.principle:first-child { padding-top: 0; border-top: 0; }
.principle h3 { margin-bottom: 8px; font-size: 25px; }
.principle p { margin: 0; color: rgba(255,255,255,.7); }
.quote { margin: 0; font-family: var(--serif); font-size: clamp(35px, 4.2vw, 58px); line-height: 1.2; letter-spacing: -.02em; }
.quote span { color: #ddc17d; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan { display: flex; flex-direction: column; min-height: 385px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.plan-featured { border-color: rgba(60,39,110,.42); box-shadow: var(--shadow); }
.plan-label { color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.plan h3 { margin: 16px 0 6px; font-size: 29px; }
.price { margin-bottom: 20px; font-family: var(--serif); font-size: 21px; font-weight: 700; }
.plan ul { margin: 0 0 30px; padding: 0; list-style: none; color: var(--muted); }
.plan li { position: relative; margin: 9px 0; padding-left: 22px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 900; }
.plan .button { width: 100%; margin-top: auto; }

.cta-band { padding: 60px 0; color: #fff; background: linear-gradient(115deg, var(--purple), var(--teal)); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.cta-inner h2 { max-width: 760px; margin: 0; font-size: clamp(32px, 4vw, 48px); }
.cta-inner .button { flex: 0 0 auto; }

.page-hero { padding: 78px 0 58px; border-bottom: 1px solid var(--line); background: linear-gradient(145deg, #fbfaf6, #f2ecdf); }
.page-hero h1 { max-width: 900px; font-size: clamp(44px, 6vw, 70px); }
.page-hero p { max-width: 800px; margin: 0; color: var(--muted); font-size: 21px; }
.prose { max-width: 840px; }
.prose h2 { margin: 54px 0 16px; font-size: 36px; }
.prose h3 { margin: 36px 0 10px; font-size: 25px; }
.prose p, .prose li { color: #4f4a59; }
.prose li { margin: 8px 0; }
.notice { margin: 30px 0; padding: 22px 24px; border-left: 4px solid var(--gold); background: #fff8df; }
.status-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.status-card + .status-card { margin-top: 18px; }
.status { display: inline-flex; padding: 6px 10px; border-radius: 999px; color: var(--purple); background: #eee8fa; font-size: 12px; font-weight: 800; text-transform: uppercase; }

.site-footer { padding: 58px 0 28px; color: rgba(255,255,255,.74); background: #171223; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, .7fr); gap: 45px; }
.footer-brand { max-width: 360px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin-top: 18px; font-size: 14px; }
.footer-col strong { display: block; margin-bottom: 14px; color: #fff; font-family: var(--serif); font-size: 18px; }
.footer-col a { display: block; margin: 8px 0; color: rgba(255,255,255,.7); font-size: 14px; text-decoration: none; }
.footer-bottom { margin-top: 45px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; }

@media (max-width: 940px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 65px; }
  .hero-visual { max-width: 720px; transform: none; }
  .feature-grid, .plans { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 26px, 1180px); }
  .brand-note { display: none; }
  .nav-cta { padding: 9px 12px; }
  .hero { padding: 54px 0; }
  h1 { font-size: 45px; }
  .section { padding: 68px 0; }
  .trust-grid, .footer-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .cta-inner { align-items: flex-start; flex-direction: column; }
}

