/* WhatAreMyGifts styles (ported from the Rejoice app).
   --brand and --accent are set per church in the page <head>. */
:root {
  --brand: #203a5f;
  --accent: #e9a23b;
  --accent-ink: #203a5f; /* accent as text on white (set per page) */
  --on-accent: #203a5f;  /* text on a filled accent (set per page) */
  --accent-soft: color-mix(in srgb, var(--accent) 12%, white);
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #1f2933;
  --muted: #6b7280;
  --line: #dde3ea;
  --error: #b42318;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 var(--font); }
a { color: var(--accent-ink); }
h1 { font-size: 1.6rem; line-height: 1.25; margin: .2em 0 .5em; color: var(--brand); }
h2 { font-size: 1.15rem; margin: 1.2em 0 .5em; color: var(--brand); }
.hidden { display: none !important; }
.center { text-align: center; }
.muted { color: var(--muted); }
.error { color: var(--error); font-weight: 600; }

.site-header { background: var(--brand); padding: 12px 16px; text-align: center; }
.logo { height: 52px; width: auto; display: inline-block; }
.site-footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 28px 16px 40px; }

.wrap { max-width: 720px; margin: 0 auto; padding: 20px 16px; }
.card { background: var(--card); border-radius: var(--radius); padding: 22px 20px; box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08); margin-bottom: 16px; border: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--accent-ink); margin: 0; }

.facts { list-style: none; padding: 0; margin: 18px 0; display: flex; gap: 10px; flex-wrap: wrap; }
.facts li { background: var(--accent-soft); border-radius: 999px; padding: 6px 14px; font-size: .92rem; }
.tips { background: var(--bg); border-radius: 10px; padding: 4px 16px 8px; margin: 16px 0 20px; }
.tips ul { padding-left: 20px; margin-top: 0; }

.btn { appearance: none; border: 0; border-radius: 10px; padding: 14px 22px; font: 600 1rem var(--font); cursor: pointer; text-decoration: none; display: inline-block; text-align: center; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(.95); }
.btn-ghost { background: transparent; color: var(--brand); border: 1px solid var(--line); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: default; }
.actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.actions .btn-primary { flex: 1; max-width: 320px; margin-left: auto; }
.sticky-actions { position: sticky; bottom: 0; background: linear-gradient(to top, var(--bg) 70%, rgba(244,246,248,0)); padding: 16px 0 calc(12px + env(safe-area-inset-bottom)); margin: 0; }

/* Forms */
label { display: block; font-weight: 600; margin: 0 0 14px; }
input[type=text], input:not([type]), input[type=email], input[type=tel], input[type=url], input[type=password], input[type=search], select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: 400 16px var(--font);
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; margin-top: 4px; }
.optional { font-weight: 400; color: var(--muted); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .row { grid-template-columns: 1fr; gap: 0; } }
fieldset.choice { border: 0; padding: 0; margin: 0 0 14px; }
fieldset.choice legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.pill { display: inline-block; margin: 0 8px 8px 0; font-weight: 500; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-block; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; }
.pill input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Progress */
.progress-wrap { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 8px 0 12px; }
.progress-label { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
#progress-bar { height: 100%; width: 0; background: var(--accent); transition: width .25s; }
.scale-key { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .9rem; padding: 14px 18px; }
.scale-key strong { width: 100%; color: var(--brand); }
.scale-key span { color: var(--muted); }

/* Question cards */
.question { padding: 18px 16px 16px; transition: box-shadow .2s; }
.question.missing { box-shadow: 0 0 0 2px var(--error); }
.question legend { float: left; width: 100%; font-weight: 600; margin-bottom: 14px; display: flex; gap: 10px; }
.question legend + * { clear: both; }
.qnum { flex: 0 0 auto; min-width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.opt { margin: 0; text-align: center; cursor: pointer; font-weight: 400; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-num { display: flex; align-items: center; justify-content: center; height: 48px; border: 1px solid var(--line); border-radius: 10px; font-weight: 700; font-size: 1.1rem; background: #fff; transition: all .12s; }
.opt-label { display: block; font-size: .72rem; line-height: 1.2; color: var(--muted); margin-top: 6px; }
.opt input:checked + .opt-num { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: scale(1.04); }
.opt input:focus-visible + .opt-num { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt:hover .opt-num { border-color: var(--accent); }
@media (max-width: 520px) {
  .opt:nth-child(2) .opt-label, .opt:nth-child(3) .opt-label, .opt:nth-child(4) .opt-label { visibility: hidden; }
}

/* Spinner */
.spinner { width: 44px; height: 44px; border: 4px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; margin: 10px auto 16px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Results */
.hero { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 26px 22px; margin-bottom: 16px; }
.hero h1 { color: #fff; }
.hero p { margin: 0; opacity: .9; }
.top-gift { border-left: 5px solid var(--accent); }
.top-gift .rank { font-size: .8rem; font-weight: 700; color: var(--accent-ink); text-transform: uppercase; letter-spacing: .06em; }
.top-gift h2 { margin: 2px 0 6px; font-size: 1.35rem; }
.top-gift .summary { font-weight: 600; }
.top-gift .ref { color: var(--muted); font-size: .9rem; margin: 6px 0 0; }
.bars { margin: 6px 0 0; }
.bar-row { display: grid; grid-template-columns: 9.5em 1fr 2.2em; gap: 10px; align-items: center; margin: 7px 0; font-size: .92rem; }
.bar-row.is-top { font-weight: 700; }
.bar { background: #eef2f6; border-radius: 6px; height: 14px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: #b8c4d0; border-radius: 6px; }
.bar-row.is-top .bar > span { background: var(--accent); }
.bar-row .val { text-align: right; color: var(--muted); }
@media (max-width: 420px) { .bar-row { grid-template-columns: 7.8em 1fr 2em; font-size: .85rem; } }
.team { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 12px 0; }
.team h3 { margin: 0 0 2px; color: var(--brand); font-size: 1.1rem; }
.team .because { font-size: .82rem; color: var(--accent-ink); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.team p { margin: 6px 0 10px; }
.team textarea { min-height: 70px; margin-bottom: 10px; }
.team .sent { color: #067647; font-weight: 600; }
.reflect li { margin-bottom: 8px; }
.notice { background: var(--accent-soft); border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }

@media print {
  .site-header, .site-footer, .main-footer, .team form, .no-print { display: none !important; }
  body { background: #fff; }
  .card, .hero { box-shadow: none; border: 1px solid #ddd; }
  .hero { color: var(--brand); background: #fff; }
  .hero h1 { color: var(--brand); }
}

.btn-dark { background: #000; color: #fff; }
.btn-row-give { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.btn-row-give .btn { flex: 1 1 200px; }

/* Interests checklist */
.interest-list { margin: 8px 0 18px; }
.interest { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.interest:last-child { border-bottom: 0; }
.interest-label { flex: 1 1 240px; font-weight: 500; }
.interest-opts { display: flex; flex-wrap: wrap; gap: 8px; flex: 0 0 auto; }
.chip { margin: 0; font-weight: 500; font-size: .9rem; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; white-space: nowrap; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip input:checked + span::before { content: "✓ "; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Other ways God equips */
.equip { padding: 12px 0; border-top: 1px solid var(--line); }
.equip h3 { margin: 0 0 4px; font-size: 1.02rem; }
.equip p { margin: 4px 0; }
.equip .team-line { font-size: .92rem; }
.because.interest-because { color: var(--brand); }
.chip.avail { display: inline-block; margin: 0 8px 8px 0; }
.keep { padding: 10px 0; border-top: 1px solid var(--line); }
.keep h3 { margin: 0 0 4px; font-size: 1.02rem; }
.keep p { margin: 4px 0; }
.traits { background: var(--bg); border-radius: 10px; padding: 10px 14px; margin-top: 12px; font-size: .95rem; }
.traits p { margin: 4px 0; }

/* WhatAreMyGifts additions */
.wordmark { color: #fff; font-weight: 700; font-size: 1.25rem; text-decoration: none; letter-spacing: .01em; }
.logo-link { text-decoration: none; }
.site-logo { height: 30px; width: auto; display: block; }
.main-header { text-align: left; padding: 0 16px; }
.main-header-inner { max-width: 1040px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; min-height: 60px; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-btn { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; margin-right: -8px; cursor: pointer; align-items: center; }
.nav-toggle-btn span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle:checked + .nav-toggle-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked + .nav-toggle-btn span:nth-child(2) { opacity: 0; }
.nav-toggle:checked + .nav-toggle-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.main-nav { display: none; width: 100%; flex-direction: column; padding: 4px 0 16px; }
.nav-toggle:checked ~ .main-nav { display: flex; }
.nav-toggle:focus-visible + .nav-toggle-btn { outline: 2px solid #e9a23b; outline-offset: 2px; border-radius: 6px; }
.main-nav a { color: #fff; text-decoration: none; font-weight: 600; padding: 12px 2px; border-top: 1px solid rgba(255,255,255,.12); }
.main-nav a:hover { color: #e9a23b; }
.main-nav a.btn-signup { background: #e9a23b; color: #203a5f; border-radius: 8px; text-align: center; border: 0; margin-top: 10px; padding: 12px 18px; }
.main-nav a.btn-signup:hover { background: #F2B65A; color: #203a5f; }
@media (min-width: 760px) {
  .site-logo { height: 36px; }
  .main-header-inner { flex-wrap: nowrap; min-height: 72px; }
  .nav-toggle-btn { display: none; }
  .main-nav, .nav-toggle:checked ~ .main-nav { display: flex; flex-direction: row; align-items: center; width: auto; padding: 0; gap: 26px; }
  .main-nav a { border: 0; padding: 6px 0; }
  .main-nav a.btn-signup { margin: 0 0 0 4px; padding: 9px 20px; }
}
.site-footer p { margin: 4px 0; }
.site-footer .disclaimer { font-size: .78rem; max-width: 560px; margin: 8px auto 0; }
.hero .eyebrow { color: var(--accent); opacity: 1; }
.hero .btn-primary { color: var(--on-accent); }
.flush { margin-top: 0; }
.flush-bottom { margin-bottom: 0; }
.small { font-size: .9rem; }
.note { background: var(--accent-soft); border-radius: 10px; padding: 10px 14px; font-size: .92rem; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
label.check input { margin-top: 5px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--accent); }
.video { position: relative; padding-top: 56.25%; margin: 12px 0 4px; border-radius: 10px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.share { border-left: 5px solid var(--brand); }

/* Home page and church sign-up */
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-cta .btn { flex: 1 1 220px; }
.btn-white { background: #fff; color: var(--brand); }
.btn-outline-white { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); }
.btn-big { font-size: 1.1rem; padding: 16px 24px; }
.top-nav { display: flex; justify-content: flex-end; gap: 16px; font-size: .9rem; margin: -8px 0 10px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 14px 42px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.slug-field { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; margin-top: 6px; }
.slug-field input { border: 0 !important; border-radius: 0 !important; margin: 0 !important; min-width: 0; flex: 1; outline-offset: -2px; }
.slug-pre, .slug-post { display: flex; align-items: center; padding: 0 10px; background: #f4f6f8; color: var(--muted); font-weight: 400; font-size: .95rem; white-space: nowrap; }
@media (max-width: 420px) { .slug-pre { display: none; } }
.slug-ok { color: #1d6b35; }
.slug-bad { color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.small { font-size: .85rem; }
.narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
.cta-card { border: 2px solid var(--accent); }

/* Sales page */
.wrap.wide { max-width: 760px; }
.hero-note { margin: 14px 0 0; font-size: .95rem; opacity: .9; }
.features { padding-left: 1.2em; }
.features li { margin-bottom: 8px; }
.pco-card { border-left: 5px solid var(--accent); }
.pricing { margin: 28px 0; }
.pricing h2 { font-size: 1.5rem; margin-bottom: .2em; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; text-align: center; margin: 0; }
.plan h3 { margin: 0 0 4px; color: var(--brand); }
.plan .price { margin: 6px 0 2px; color: var(--brand); }
.plan .amount { font-size: 2.6rem; font-weight: 800; }
.plan .per { font-size: 1rem; color: var(--muted); }
.plan-best { border: 2px solid var(--accent); }
.badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--on-accent); font-size: .8rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.pricing > .card { margin-top: 14px; }
.checks { list-style: none; padding: 0; margin: 8px 0 14px; }
.checks li { position: relative; padding-left: 28px; margin-bottom: 6px; }
.checks li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent-ink); font-weight: 800; }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq details:last-child { padding-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.faq details p { margin: 8px 0 0; }
.checks li.opt { color: var(--brand); font-weight: 600; }
.addon { display: inline-block; margin-left: 6px; background: var(--accent-soft); color: var(--accent-ink); font-size: .78rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.domain-callout { background: var(--accent-soft); border-radius: 10px; padding: 12px 14px; }
.domain-callout p { margin: 4px 0 0; font-size: .95rem; }
.faq details ul { margin: 8px 0 0; padding-left: 1.2em; }
.faq details li { margin-bottom: 4px; }

/* Privacy and Terms */
.legal h2 { margin-top: 1.6em; }
.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: 6px; }
.legal li ul { margin-top: 6px; }
.legal-links { margin: 4px 0; font-size: .85rem; }

/* WhatAreMyGifts.com footer */
.main-footer { background: #203a5f; color: rgba(255,255,255,.78); font-size: .92rem; margin-top: 40px; padding: 44px 16px 0; }
.main-footer-inner { max-width: 1040px; margin: 0 auto; display: grid; gap: 32px 20px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand .footer-support { margin-top: 10px; }
.footer-support a { color: #e9a23b; font-weight: 600; }
.footer-logo { height: 30px; width: auto; display: block; }
.footer-brand p { margin: 14px 0 0; max-width: 340px; line-height: 1.55; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h2 { color: #e9a23b; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 4px; }
.main-footer a { color: #fff; text-decoration: none; }
.main-footer a:hover { color: #e9a23b; }
.footer-bottom { max-width: 1040px; margin: 36px auto 0; padding: 20px 0 32px; border-top: 1px solid rgba(255,255,255,.14); font-size: .8rem; color: rgba(255,255,255,.62); }
.footer-bottom p { margin: 4px 0; }
@media (min-width: 760px) {
  .main-footer-inner { grid-template-columns: 2fr 1fr 1.3fr; gap: 40px; }
  .footer-brand { grid-column: auto; }
  .footer-logo { height: 34px; }
}

/* Public demo bar (demo test, results and dashboard) */
.demo-banner { background: #fdf3e2; color: #203a5f; border-bottom: 1px solid #f3d29c; padding: 10px 16px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: center; text-align: center; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 8px rgba(15, 23, 42, .08); }
.demo-banner p { margin: 0; max-width: 640px; font-size: .93rem; line-height: 1.45; }
.demo-banner-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.demo-banner .btn { padding: 8px 14px; font-size: .9rem; border-radius: 8px; }
.btn-demo-home { background: #fff; color: #203a5f; border: 1px solid #203a5f; }
.btn-demo-home:hover { background: #203a5f; color: #fff; }
.btn-demo-signup { background: #e9a23b; color: #203a5f; }
.btn-demo-signup:hover { background: #f2b65a; }
@media (max-width: 640px) {
  .demo-banner { padding: 8px 12px; gap: 6px; }
  .demo-banner p { font-size: .82rem; }
  .demo-banner-actions { flex-wrap: nowrap; }
  .demo-banner .btn { padding: 6px 10px; font-size: .82rem; white-space: nowrap; }
  .demo-banner .wide-only { display: none; }
}
@media print { .demo-banner { display: none !important; } }

/* Church header: logo, name, or both (logo left of the name) */
.church-brand { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; }
.church-brand .wordmark { line-height: 1.2; }
@media (max-width: 480px) { .church-brand .logo { height: 42px; } .church-brand .wordmark { font-size: 1.1rem; } }
/* Serving interests: three choices per row, Not Interested is the quiet default. */
.chip input[value="none"]:checked + span { background: #eef0f3; border-color: #c9ced6; color: inherit; }
.chip input[value="none"]:checked + span::before { content: ""; }
@media (max-width: 560px) {
  .interest-opts { flex: 1 1 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .interest-opts .chip span { display: block; padding: 10px 4px; text-align: center; white-space: normal; font-size: .85rem; }
}

/* Free test: optional sign gifts checkbox on the intro card. */
.optional-gifts { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font-weight: 400; }
.optional-gifts input { margin-top: 4px; flex: 0 0 auto; width: 20px; height: 20px; }
.optional-gifts > span { display: flex; flex-direction: column; gap: 4px; }
