/* Pactum site. The app's own palette: Vellum (light) and Hearth (dark). */
:root {
  --canvas: #f6f1e7;
  --surface: #fdfaf3;
  --surface-muted: #efe8da;
  --outline: #e6dcc9;
  --text-high: #2a2118;
  --text-muted: #7d715f;
  --text-on-accent: #fffdf8;
  --ember: #b45527;
  --ember-bright: #cf6a35;
  --ember-soft: #f4e2d4;
  --gold: #c99a3f;
  --leaf: #5f8a54;
  --leaf-soft: #e6eedd;
  --serif: 'Cormorant Garamond', Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --sans: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #121110;
    --surface: #1b1a19;
    --surface-muted: #232120;
    --outline: #34322f;
    --text-high: #f0eae0;
    --text-muted: #9c9488;
    --ember: #d98a55;
    --ember-bright: #e89e6a;
    --ember-soft: #33261d;
    --gold: #d9ae57;
    --leaf: #84ab76;
    --leaf-soft: #232b20;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text-high);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}
a { color: var(--ember); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text-high); }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { font-family: var(--serif); font-weight: 700; font-size: 26px; letter-spacing: -0.3px; }
.nav-links { display: flex; gap: 22px; font-weight: 600; font-size: 15px; }
.nav-links a { color: var(--text-muted); }
.nav-links a:hover { color: var(--ember); text-decoration: none; }

/* Hero */
.hero { padding: 64px 0 56px; text-align: center; }
.hero .mark { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 28px; box-shadow: 0 18px 40px rgba(42,33,24,0.22); }
.hero h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(40px, 7vw, 64px); line-height: 1.05; letter-spacing: -0.6px;
  margin: 0 0 20px;
}
.hero p { font-size: 19px; color: var(--text-muted); max-width: 560px; margin: 0 auto 32px; }
.cta { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; }
.badge {
  display: inline-block; padding: 14px 26px; border-radius: 12px;
  background: var(--text-high); color: var(--canvas);
  font-weight: 700; font-size: 16px;
}
@media (prefers-color-scheme: dark) { .badge { background: var(--text-high); color: var(--canvas); } }
.cta small { color: var(--text-muted); font-size: 13px; }

/* Sections */
section { padding: 40px 0; }
.eyebrow {
  font-weight: 800; font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ember); margin: 0 0 10px;
}
h2 { font-family: var(--serif); font-weight: 700; font-size: 36px; line-height: 1.1; margin: 0 0 14px; letter-spacing: -0.3px; }
.lead { color: var(--text-muted); font-size: 18px; max-width: 620px; margin: 0 0 28px; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 720px) { .grid { grid-template-columns: 1fr; } }
.panel {
  background: var(--surface); border: 1px solid var(--outline); border-radius: 20px;
  padding: 24px;
}
.panel .icon { width: 36px; height: 36px; border-radius: 10px; background: var(--ember-soft); display: grid; place-items: center; margin-bottom: 14px; }
.panel .icon svg { width: 20px; height: 20px; }
.panel h3 { font-family: var(--serif); font-size: 24px; font-weight: 700; margin: 0 0 8px; }
.panel p { margin: 0; color: var(--text-muted); font-size: 15px; }

/* Scripture sample */
.verse {
  background: var(--surface); border: 1px solid var(--outline); border-radius: 20px;
  padding: 32px; margin: 8px 0 0;
}
.verse p { font-family: 'Literata', var(--serif); font-size: 21px; line-height: 1.6; margin: 0 0 10px; }
.verse cite { font-style: normal; color: var(--text-muted); font-size: 14px; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--outline); border-radius: 20px; padding: 28px; }
.plan.plus { border-color: var(--ember); }
.plan .eyebrow.free { color: var(--leaf); }
.plan ul { margin: 12px 0 0; padding: 0; list-style: none; }
.plan li { padding: 8px 0; border-top: 1px solid var(--outline); font-size: 15px; }
.plan li:first-child { border-top: 0; }
.prices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.price { padding: 8px 12px; border-radius: 999px; background: var(--surface-muted); font-weight: 700; font-size: 14px; }
.price.primary { background: var(--ember-soft); color: var(--ember); }
.plan .note { color: var(--text-muted); font-size: 13px; margin-top: 14px; }

/* Footer */
footer { border-top: 1px solid var(--outline); margin-top: 40px; padding: 28px 0 48px; color: var(--text-muted); font-size: 14px; }
footer .row { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
footer a { color: var(--text-muted); }

/* Prose pages (privacy, support) */
.prose { max-width: 680px; padding: 24px 0 40px; }
.prose h1 { font-family: var(--serif); font-weight: 700; font-size: 44px; line-height: 1.1; margin: 0 0 8px; }
.prose .updated { color: var(--text-muted); font-size: 14px; margin: 0 0 32px; }
.prose h2 { font-size: 26px; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--text-high); font-size: 16px; }
.prose ul { padding-left: 22px; }
.prose .quiet { color: var(--text-muted); }
