/* Just Jesus marketing site. Tokens mirror mobile/src/theme.ts so the site and app feel like one product. */
:root {
  --charcoal: #222222;
  --charcoal-2: #2a2a2a;
  --line-dark: #3a3a3a;
  --ink: #1a1a1a;
  --text: #2b2724;
  --muted: #6b6560;
  --gold: #a0782f;
  --gold-text: #82611f; /* gold darkened for AA contrast on light backgrounds */
  --gold-bright: #d4af5f;
  --cream: #f1e9da;
  --paper: #fbf8f2;
  --border: #e4dacb;
  --white: #ffffff;
  --danger: #b3261e;

  --radius: 14px;
  --radius-lg: 20px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(56px, 9vw, 104px);
  --tap: 48px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; max-width: 22ch; }
h3 { font-size: 19px; font-weight: 750; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.center { display: flex; justify-content: center; margin-top: 40px; }
.gold { color: var(--gold-bright); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold-bright); color: var(--charcoal); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* Icons */
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-lg { width: 32px; height: 32px; color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: var(--radius);
  font-weight: 800; font-size: 16px; letter-spacing: 0.02em; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .15s ease, background-color .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: .9; }
.btn-gold { background: var(--gold-bright); color: var(--charcoal); border-color: var(--gold-bright); }
.btn-gold:hover { background: #ddbc72; }
.btn-outline { color: var(--gold-bright); border-color: var(--gold-bright); background: transparent; }
.btn-outline:hover { background: rgba(212, 175, 95, .1); }
.btn-dark { background: var(--charcoal); color: var(--gold-bright); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(34, 34, 34, .96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line-dark);
  padding-top: env(safe-area-inset-top, 0px);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold-bright); font-weight: 800; letter-spacing: .2em; font-size: 15px; }
.logo-mark { width: 22px; height: 22px; stroke: var(--gold-bright); fill: none; stroke-linecap: round; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--cream); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 12px; border-radius: 10px; }
.nav a:hover { color: var(--white); background: rgba(255, 255, 255, .06); }
.header-row .btn { margin-left: 8px; }
@media (max-width: 860px) {
  .nav { display: none; }
  .header-row .btn { margin-left: auto; }
}

/* Hero */
.hero { background: var(--charcoal); color: var(--cream); padding-block: clamp(48px, 8vw, 96px) clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold-bright); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--line-dark); background: var(--charcoal-2); padding: 8px 14px; border-radius: 999px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 0 4px rgba(212, 175, 95, .2); }
.hero h1 { color: var(--white); font-size: clamp(40px, 6.4vw, 72px); font-weight: 850; letter-spacing: -0.02em; margin: 24px 0 20px; line-height: 1.05; }
.lede { font-size: clamp(18px, 2vw, 21px); max-width: 34em; color: var(--cream); }
.lede strong { color: var(--white); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 28px; }
.verse { font-family: var(--serif); font-style: italic; color: #cfc6b6; font-size: 16px; max-width: 34em; }
.verse cite, .footer-verse cite { font-style: normal; color: var(--gold-bright); font-family: var(--font); font-weight: 600; font-size: 14px; margin-left: 4px; }
.hero-art { display: flex; justify-content: center; }
.phone {
  width: min(320px, 78vw);
  border-radius: 44px; padding: 10px;
  background: #111; border: 1px solid #444;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(212, 175, 95, .25), 0 0 120px rgba(212, 175, 95, .12);
}
.phone img { border-radius: 34px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phone { width: min(280px, 72vw); }
}

/* Sections */
.section { padding-block: var(--section); }
.section-cream { background: var(--cream); }
.section-dark { background: var(--charcoal); color: var(--cream); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.kicker { color: var(--gold-text); font-weight: 800; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.kicker-bright { color: var(--gold-bright); }
.section-lede { font-size: 19px; color: var(--muted); max-width: 40em; margin-top: 16px; }

/* Cards */
.cards { display: grid; gap: 16px; margin-top: 40px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards-4, .cards-3 { grid-template-columns: 1fr; } }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
}
.card p { color: var(--muted); }
.card-link { text-decoration: none; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.card-link:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 12px 30px -16px rgba(34, 34, 34, .35); }
.more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; color: var(--gold-text); font-weight: 750; }
.card-dark { background: var(--charcoal-2); border-color: var(--line-dark); }
.card-dark p { color: #cfc6b6; }
.card-dark .i-lg { color: var(--gold-bright); }

/* Needs grid */
.needs { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.needs li {
  display: flex; align-items: center; gap: 12px; min-height: 64px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 16px; font-weight: 700; color: var(--ink);
}
.needs .i { width: 26px; height: 26px; color: var(--gold); }
@media (max-width: 860px) { .needs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .needs { grid-template-columns: 1fr; } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: none; }
.steps li { position: relative; padding: 24px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.steps p { color: var(--muted); }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--charcoal); color: var(--gold-bright); font-weight: 800;
}
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* Ticks */
.ticks { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--muted); }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold); transform: rotate(-45deg);
}
.ticks-bright li { color: var(--cream); }
.ticks-bright li::before { border-color: var(--gold-bright); }

/* Story */
.story { max-width: 820px; }
.story h2 { max-width: none; }
.story-body { display: grid; gap: 18px; margin-top: 28px; font-size: 19px; }
.pull {
  font-family: var(--serif); font-size: clamp(22px, 3vw, 28px); line-height: 1.35; color: var(--ink);
  border-left: 4px solid var(--gold-bright); padding-left: 20px; margin-block: 8px;
}

/* Join */
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.join-lede { margin: 16px 0 24px; font-size: 19px; }
@media (max-width: 860px) { .join-grid { grid-template-columns: 1fr; } }
.join-form {
  background: var(--charcoal-2); border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 32px); display: grid; gap: 20px;
}
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { color: var(--white); font-weight: 700; font-size: 15px; padding: 0; }
.field legend { margin-bottom: 8px; }
.opt { color: #a9a196; font-weight: 500; }
.field input[type="email"], .field input[type="text"] {
  min-height: var(--tap); width: 100%; padding: 0 14px; font: inherit; font-size: 17px;
  color: var(--ink); background: var(--white); border: 1.5px solid var(--border); border-radius: 12px;
}
.field input:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 1px; }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 480px) { .roles { grid-template-columns: 1fr; } }
.role { position: relative; cursor: pointer; }
.role input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.role span {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: var(--tap);
  padding: 8px 10px; border-radius: 12px; border: 1.5px solid var(--line-dark); color: var(--cream); font-weight: 700; font-size: 15px;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.role:hover span { border-color: var(--gold-bright); }
.role input:checked + span { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--charcoal); }
.role input:focus-visible + span { outline: 3px solid var(--gold-bright); outline-offset: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.4em; font-weight: 700; color: var(--gold-bright); }
.form-msg[data-state="error"] { color: #ff9a8f; }
.fine { font-size: 13px; color: #a9a196; }
.join-form.is-done .field, .join-form.is-done button { display: none; }
.join-form.is-done .form-msg { font-size: 20px; color: var(--white); }

/* Footer */
.site-footer { background: #1a1a1a; color: #a9a196; padding-block: 48px 24px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-tag { margin-top: 12px; color: var(--cream); font-weight: 600; }
.footer-verse { margin-top: 12px; font-family: var(--serif); font-style: italic; max-width: 36em; }
.crisis { display: flex; gap: 12px; padding: 16px; border-radius: var(--radius); border: 1px solid #5a2a26; background: #2a1d1c; color: #f3d2ce; }
.crisis .i { color: #ff9a8f; margin-top: 3px; }
.crisis a { color: var(--white); font-weight: 800; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid #2e2e2e; }
.footer-bottom a { color: var(--gold-bright); font-weight: 700; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
