:root {
  --ink: #061d22;
  --ink-deep: #031419;
  --teal: #174c59;
  --teal-light: #2e7182;
  --blue: #80cbdc;
  --gold: #fcc541;
  --gold-deep: #eead1e;
  --paper: #f2f1ed;
  --paper-deep: #e4e5e6;
  --copy: #34494e;
  --white: #fff;
  --muted: #bad0d5;
  --heading: "Encode Sans Semi Expanded", "Trebuchet MS", sans-serif;
  --body: "Cairo", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: var(--heading); }
.shell { width: min(1160px, 100%); margin-inline: auto; padding-inline: 42px; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 69px;
  border-bottom: 1px solid rgba(128, 203, 220, .13);
  background: rgba(3, 20, 25, .96);
  backdrop-filter: blur(12px);
}
.header-inner { display: flex; height: 69px; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 60px; }
.brand span { display: flex; flex-direction: column; color: var(--blue); font-family: var(--heading); font-size: 15px; font-weight: 300; line-height: 16px; }
.brand b { color: var(--white); font-size: 17px; line-height: 18px; }
.header-link { padding: 10px 18px; border: 1px solid rgba(128, 203, 220, .36); border-radius: 12px; color: var(--blue); font-family: var(--heading); font-size: 13px; font-weight: 700; text-decoration: none; }

.hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 26%, rgba(46, 113, 130, .5), transparent 34%),
    linear-gradient(135deg, #0d3d48, var(--ink-deep) 68%);
}
.hero::after {
  position: absolute;
  inset: 0;
  background: url("../assets/diamond-texture.webp") center / 550px repeat;
  content: "";
  opacity: .035;
}
.hero-inner { position: relative; z-index: 3; display: grid; min-height: 660px; grid-template-columns: 1.35fr .65fr; align-items: center; gap: 70px; padding-block: 90px; }
.hero-copy { max-width: 700px; }
.eyebrow, .section-kicker { margin-bottom: 15px; color: var(--gold); font-family: var(--heading); font-size: 13px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; }
.hero h1 { margin-bottom: 26px; font-size: clamp(48px, 6vw, 78px); font-weight: 800; letter-spacing: -2.8px; line-height: .98; }
.hero h1 span { display: block; color: var(--blue); font-weight: 300; }
.hero-lead { max-width: 650px; margin-bottom: 34px; color: #d3e2e5; font-size: 20px; font-weight: 300; line-height: 1.5; }
.button { display: inline-flex; min-height: 56px; align-items: center; justify-content: center; padding: 0 34px; border: 2px solid transparent; border-radius: 14px; font-family: var(--heading); font-weight: 700; text-decoration: none; }
.button-gold { background: linear-gradient(var(--gold), var(--gold-deep)); color: var(--ink); box-shadow: 0 12px 30px rgba(238, 173, 30, .2); }
.need-card { padding: 38px 30px; border: 1px solid rgba(128, 203, 220, .2); border-radius: 22px; background: rgba(3, 20, 25, .64); text-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, .24); backdrop-filter: blur(10px); }
.need-card p { margin-bottom: 2px; color: var(--muted); font-size: 16px; }
.need-card strong { display: block; color: var(--gold); font-family: var(--heading); font-size: 20px; }
.need-card span { display: block; margin-top: 18px; font-family: var(--heading); font-size: 24px; font-weight: 700; line-height: 1.25; }

.hero-band { position: absolute; z-index: 2; right: -12%; bottom: -36%; width: 70%; height: 92%; border: 2px solid rgba(128, 203, 220, .5); border-radius: 180px 0 0 0; transform: rotate(-38deg); transform-origin: center; }
.hero-band-one { background: var(--teal); }
.hero-band-two { right: -18%; bottom: -43%; background: var(--ink-deep); }

.purpose { padding: 100px 0; background: var(--paper); color: var(--copy); }
.purpose-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; }
.purpose h2, .signup h2 { margin-bottom: 0; color: var(--ink); font-size: clamp(34px, 4vw, 54px); line-height: 1.08; }
.purpose-copy p { margin-bottom: 20px; font-size: 18px; }
.purpose-highlight { padding-left: 22px; border-left: 5px solid var(--gold); font-family: var(--heading); font-size: 22px !important; font-weight: 600; line-height: 1.4; }
.purpose-highlight strong { color: #b77b00; }

.signup { padding: 105px 0; background: var(--paper-deep); color: var(--copy); }
.signup-grid { display: grid; grid-template-columns: .72fr 1.28fr; align-items: start; gap: 62px; }
.signup-intro { position: sticky; top: 115px; }
.signup-intro > p:not(.section-kicker) { margin: 24px 0; }
.event-card { display: grid; gap: 3px; padding: 24px; border-radius: 16px; background: var(--ink); color: var(--muted); }
.event-card strong { color: var(--gold); font-family: var(--heading); font-size: 21px; }
.form-card { min-height: 680px; padding: 36px; border-radius: 22px; background: var(--white); box-shadow: 0 20px 55px rgba(6, 29, 34, .14); }
.form-preview { display: grid; gap: 8px; }
.preview-label { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 0; color: var(--ink); font-family: var(--heading); font-size: 16px; font-weight: 700; }
.preview-label span { color: #9a6800; font-family: var(--body); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.preview-label small { color: #728085; font-family: var(--body); font-weight: 400; }
.preview-input { height: 52px; border: 1px solid #ccd4d6; border-radius: 10px; background: #f8f9f9; }
.plan-label { margin-top: 23px; }
.preview-options { display: grid; gap: 13px; margin: 8px 0 0; padding: 0; list-style: none; }
.preview-options li { position: relative; padding-left: 34px; color: #263d42; }
.preview-options li::before { position: absolute; top: 2px; left: 0; width: 22px; height: 22px; border: 2px solid #aab7ba; border-radius: 5px; content: ""; }
.setup-note { margin: 32px -36px -36px; padding: 22px 36px; border-radius: 0 0 22px 22px; background: #fff3cf; color: #6f510b; font-size: 14px; line-height: 1.45; }
.setup-note strong { display: block; color: #4c3602; }
.tally-form { display: none; border: 0; }
.form-card.is-connected .form-placeholder { display: none; }
.form-card.is-connected .tally-form { display: block; }
.noscript-message { padding: 20px; color: var(--copy); }

.scripture { padding: 75px 0; background: var(--gold); color: var(--ink); text-align: center; }
.scripture blockquote { max-width: 860px; margin: 0 auto 12px; font-family: var(--heading); font-size: clamp(22px, 3vw, 33px); font-weight: 600; line-height: 1.35; }
.scripture p { margin: 0; font-weight: 700; }

footer { border-top: 1px solid rgba(128, 203, 220, .12); background: var(--ink-deep); color: rgba(186, 208, 213, .65); }
.footer-inner { display: flex; min-height: 128px; align-items: center; justify-content: space-between; gap: 24px; font-size: 13px; }
.footer-inner p { margin: 0; }
.footer-inner div { display: flex; gap: 24px; }
.footer-inner a { color: var(--muted); text-decoration: none; }

a:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

@media (max-width: 850px) {
  .shell { padding-inline: 22px; }
  .hero-inner, .purpose-grid, .signup-grid { grid-template-columns: 1fr; }
  .hero-inner { gap: 38px; padding-block: 72px; }
  .need-card { max-width: 560px; }
  .purpose-grid, .signup-grid { gap: 38px; }
  .signup-intro { position: static; }
  .hero-band { right: -45%; width: 100%; opacity: .65; }
}

@media (max-width: 520px) {
  .brand span { display: none; }
  .header-link { padding-inline: 13px; }
  .hero h1 { font-size: 45px; letter-spacing: -1.8px; }
  .hero-lead { font-size: 18px; }
  .purpose, .signup { padding-block: 70px; }
  .form-card { min-height: 0; padding: 24px; }
  .setup-note { margin: 26px -24px -24px; padding: 20px 24px; }
  .footer-inner { padding-block: 34px; align-items: flex-start; flex-direction: column; }
  .footer-inner div { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
