/* ============================================================
   CHURCH — Design Tokens
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* --- Brand palette --- */
  --ink:        #031C2F;  /* near-black navy */
  --navy:       #062E4F;  /* deep navy */
  --blue:       #055A92;  /* primary brand blue */
  --blue-2:     #0A78B8;  /* hover / lighter blue */
  --sky:        #B6D2E3;  /* light blue */
  --mist:       #D6E2EA;  /* pale icy blue */
  --paper:      #F4F7FA;  /* warm off-white */
  --white:      #FFFFFF;
  --orange:     #FF5800;  /* accent orange */
  --orange-2:   #FF7733;  /* hover orange */

  /* --- Semantic (LIGHT theme defaults) --- */
  --bg:         var(--white);
  --bg-elev:    var(--paper);
  --bg-deep:    var(--ink);
  --surface:    var(--white);
  --surface-2:  var(--paper);
  --hairline:   rgba(3, 28, 47, 0.10);
  --hairline-2: rgba(3, 28, 47, 0.06);
  --text:       var(--ink);
  --text-2:     #3B5167;   /* muted body */
  --text-3:     #6B8197;   /* meta / captions */
  --text-inv:   var(--white);
  --accent:     var(--orange);
  --accent-text:#FFFFFF;
  --brand:      var(--blue);
  --brand-deep: var(--navy);
  --focus:      var(--blue);

  /* --- Type --- */
  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: 'Instrument Serif', 'Geist', ui-serif, Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Sizes (1.25 ratio-ish, editorial) */
  --t-xs:      12px;
  --t-sm:      14px;
  --t-base:    16px;
  --t-md:      18px;
  --t-lg:      20px;
  --t-xl:      24px;
  --t-2xl:     32px;
  --t-3xl:     44px;
  --t-4xl:     60px;
  --t-5xl:     84px;
  --t-6xl:     120px;
  --t-7xl:     180px;

  /* --- Spacing --- */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  24px;
  --s-6:  32px;
  --s-7:  48px;
  --s-8:  64px;
  --s-9:  96px;
  --s-10: 128px;
  --s-11: 160px;

  /* --- Radii --- */
  --r-1: 4px;
  --r-2: 8px;
  --r-3: 12px;
  --r-4: 16px;
  --r-5: 24px;
  --r-full: 999px;

  /* --- Shadow --- */
  --shadow-sm: 0 1px 2px rgba(3, 28, 47, 0.04), 0 1px 3px rgba(3, 28, 47, 0.06);
  --shadow-md: 0 4px 10px rgba(3, 28, 47, 0.04), 0 12px 32px rgba(3, 28, 47, 0.08);
  --shadow-lg: 0 8px 24px rgba(3, 28, 47, 0.06), 0 32px 72px rgba(3, 28, 47, 0.12);
  --shadow-card: 0 1px 0 rgba(3, 28, 47, 0.04), 0 8px 24px rgba(3, 28, 47, 0.06);

  /* --- Container --- */
  --container: 1280px;
  --container-narrow: 980px;
}

/* DARK theme */
[data-theme="dark"] {
  --bg:         var(--ink);
  --bg-elev:    #07263F;
  --bg-deep:    #010F1A;
  --surface:    #082942;
  --surface-2: #0B3553;
  --hairline:   rgba(214, 226, 234, 0.10);
  --hairline-2: rgba(214, 226, 234, 0.06);
  --text:       #F1F6FB;
  --text-2:     #A9C0D2;
  --text-3:     #6E89A0;
  --text-inv:   var(--ink);
  --brand:      #4FA3DF;
  --brand-deep: var(--sky);
}

/* ============================================================
   Base
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: var(--t-base);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--ink); color: var(--white); }

/* ============================================================
   Type utilities
   ============================================================ */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
}
.eyebrow {
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.h-display {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.96;
}
.h-1 { font-size: var(--t-4xl); font-weight: 500; letter-spacing: -0.03em; line-height: 1.02; }
.h-2 { font-size: var(--t-3xl); font-weight: 500; letter-spacing: -0.025em; line-height: 1.06; }
.h-3 { font-size: var(--t-2xl); font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; }
.h-4 { font-size: var(--t-xl); font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; }
.lead { font-size: var(--t-lg); line-height: 1.5; color: var(--text-2); }
.meta { font-size: var(--t-sm); color: var(--text-3); }

/* Container */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--s-5); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--s-5); }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  font-size: var(--t-base);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { background: #0a3050; }

.btn-accent {
  background: var(--accent);
  color: var(--accent-text);
}
.btn-accent:hover { background: var(--orange-2); }

.btn-ghost {
  background: color-mix(in oklab, var(--text) 2%, transparent);
  color: var(--text);
  border-color: var(--hairline);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: color-mix(in oklab, var(--text) 7%, transparent);
  border-color: color-mix(in oklab, var(--text) 18%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Frosted glass shine on solid buttons */
.btn-primary, .btn-accent {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-primary::after, .btn-accent::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(160% 80% at 50% -10%, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.06) 35%, rgba(255,255,255,0) 70%);
  opacity: 0;
  transition: opacity 320ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.btn-primary:hover::after, .btn-accent:hover::after {
  opacity: 1;
}
.btn-primary:hover { box-shadow: 0 8px 24px rgba(3, 28, 47, 0.22); }
.btn-accent:hover { box-shadow: 0 8px 28px rgba(255, 88, 0, 0.35); }

/* Frosted ghost buttons on dark surfaces */
.pay .btn-ghost,
.cta-card .btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.14);
}
.pay .btn-ghost:hover,
.cta-card .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.btn-link {
  background: transparent;
  color: var(--text);
  padding: 0;
  border-radius: 0;
}
.btn-link:hover { color: var(--brand); transform: none; }

.btn-sm { padding: 10px 16px; font-size: var(--t-sm); }
.btn-lg { padding: 18px 28px; font-size: var(--t-md); }

.btn .arrow {
  width: 14px; height: 14px;
  transition: transform 160ms ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   Card primitives
   ============================================================ */

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-4);
  padding: var(--s-6);
}

/* ============================================================
   Helpers
   ============================================================ */

.hairline-t { border-top: 1px solid var(--hairline); }
.hairline-b { border-bottom: 1px solid var(--hairline); }
.text-2 { color: var(--text-2); }
.text-3 { color: var(--text-3); }
.text-accent { color: var(--accent); }
.text-brand { color: var(--brand); }

/* Section spacing */
section { padding: var(--s-10) 0; }
@media (max-width: 900px) { section { padding: var(--s-9) 0; } }
@media (max-width: 600px) { section { padding: var(--s-8) 0; } }
