/* Shekinah Nation London — Welcome experience */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

:root {
  --emerald: #141414;   /* primary actions (black, from the logo) */
  --emerald-700: #000000;
  --emerald-50: #FFF6CC; /* selected tint */
  --purple: #141414;
  --purple-50: #FFF0A6;
  --gold: #FFDF2C;   /* logo yellow */
  --ivory: #FAF9F6;
  --forest: #161616;
  --ink: #2E2E2E;
  --muted: #6B6B66;
  --line: #E2DED5;
  --line-strong: #CFCAC0;
  --white: #FFFFFF;
  --err: #B3261E;
  --err-50: #FDF1F0;
  --radius: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 16px/1.55 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--emerald); text-underline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

h1, h2, h3, .serif { font-family: "Fraunces", Georgia, serif; font-optical-sizing: auto; color: var(--forest); font-weight: 500; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 6vw, 2.6rem); line-height: 1.12; margin: 0 0 8px; text-wrap: balance; }
h2 { font-size: 1.5rem; line-height: 1.2; margin: 0; }
h3 { font-size: 1.15rem; line-height: 1.3; margin: 0 0 4px; }

/* ---------- Layout ---------- */
.page { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
.hero { padding: 22px 20px 18px; text-align: center; }
.hero .logo { width: 84px; height: auto; margin: 0 auto 14px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--purple); margin: 0 0 10px; }
.eyebrow::before, .eyebrow::after { content: ""; width: 22px; height: 1.5px; background: var(--gold); border-radius: 2px; }
.lead { color: var(--muted); font-size: .97rem; margin: 0 auto; max-width: 30em; text-wrap: pretty; }
.meta { margin: 10px 0 0; font-size: .82rem; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.meta svg { color: var(--emerald); }

.panel { padding: 0 12px 32px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 22px 18px 20px; box-shadow: 0 1px 2px rgba(23, 43, 41, .04); max-width: 560px; margin: 0 auto; }
footer { text-align: center; font-size: .78rem; color: var(--muted); padding: 0 20px 28px; }

@media (min-width: 560px) {
  .card { padding: 30px 32px 28px; }
  .panel { padding: 0 24px 40px; }
}
@media (min-width: 980px) {
  .page { grid-template-columns: minmax(380px, 0.85fr) minmax(520px, 1fr); align-items: start; }
  .hero { position: sticky; top: 0; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; text-align: left; padding: 56px 56px 56px 72px; border-right: 1px solid var(--line); background: var(--white); }
  .hero .logo { width: 112px; margin: 0 0 32px; }
  .eyebrow::after { display: none; }
  .lead { margin: 0; }
  .hero h1 { font-size: 2.9rem; }
  .trust { display: grid !important; }
  .panel { padding: 56px 48px; }
  .card { margin: 0; max-width: 580px; }
  footer { grid-column: 2; text-align: left; padding: 0 48px 32px; }
}
.trust { display: none; gap: 14px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.trust div { display: flex; gap: 12px; align-items: flex-start; }
.trust svg { flex: 0 0 auto; color: var(--emerald); margin-top: 2px; }
.trust b { color: var(--forest); font-weight: 600; display: block; }

/* ---------- Progress ---------- */
.progress { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.progress li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; color: var(--muted); position: relative; text-align: center; }
.progress li::before { /* connector to previous step */
  content: ""; position: absolute; top: 14px; right: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; transition: background .3s var(--ease);
}
.progress li:first-child::before { display: none; }
.progress .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 1.5px solid var(--line-strong); color: var(--muted); font-size: .82rem; font-weight: 700; position: relative; z-index: 1; transition: all .3s var(--ease); }
.progress .dot svg { display: none; }
.progress li.current { color: var(--purple); }
.progress li.current .dot { background: var(--purple); border-color: var(--purple); color: var(--white); box-shadow: 0 0 0 5px var(--purple-50); }
.progress li.done { color: var(--forest); }
.progress li.done .dot { background: var(--purple-50); border-color: var(--purple); color: var(--purple); }
.progress li.done .dot span { display: none; }
.progress li.done .dot svg { display: block; }
.progress li.done::before, .progress li.current::before { background: var(--purple); }

/* ---------- Steps ---------- */
fieldset.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step-head { margin-bottom: 18px; }
.step-head h2 { outline: none; }
.step-head p { margin: 6px 0 0; color: var(--muted); font-size: .94rem; }
.step-kicker { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--purple); margin: 0 0 6px; }
.step.enter { animation: stepIn .32s var(--ease) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Fields ---------- */
.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 360px) { .row2 { grid-template-columns: 1fr; } }
.label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-weight: 600; font-size: .9rem; color: var(--forest); margin: 0 0 7px; }
.opt { font-weight: 500; font-size: .76rem; color: var(--muted); }
.hint { font-size: .82rem; color: var(--muted); margin: 6px 0 0; }

input[type=text], input[type=email], input[type=tel], textarea, select {
  width: 100%; height: 50px; padding: 0 14px; font: 500 1rem "Plus Jakarta Sans", system-ui, sans-serif; color: var(--forest);
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius); outline: none;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
  -webkit-appearance: none; appearance: none;
}
textarea { height: auto; min-height: 92px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #A0A7A4; font-weight: 400; }
input:hover, textarea:hover, select:hover { border-color: #B5AFA3; }
input:focus, textarea:focus, select:focus { border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(255, 223, 44, .55); }
select {
  padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23677370' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
select:invalid, select.empty { color: #8A928F; font-weight: 400; }
.dob { display: grid; grid-template-columns: 0.9fr 1.6fr 1.15fr; gap: 8px; }
.dob:not(:has(.dob-y)) { grid-template-columns: 0.75fr 1.4fr; }
.dob select { padding-left: 12px; padding-right: 28px; background-position: right 10px center; }

.field.invalid input, .field.invalid select, .field.invalid textarea, .field.invalid .choice-card, .field.invalid .check-box { border-color: var(--err); }
.field.invalid input:focus { box-shadow: 0 0 0 4px rgba(179, 38, 30, .12); }
.ferr { display: none; align-items: center; gap: 6px; color: var(--err); font-size: .82rem; font-weight: 500; margin-top: 7px; }
.field.invalid .ferr { display: flex; }
.ferr::before { content: "!"; width: 16px; height: 16px; border-radius: 50%; background: var(--err); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; flex: 0 0 auto; }

/* Photo */
.photo-pick { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px dashed var(--line-strong); border-radius: 14px; background: #FCFBF8; margin-bottom: 18px; }
.avatar { width: 58px; height: 58px; border-radius: 50%; background: var(--emerald-50); color: var(--emerald); display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.photo-pick .label { margin: 0 0 2px; justify-content: flex-start; }
.photo-pick .hint { margin: 0; }
.photo-actions { display: flex; gap: 14px; margin-top: 6px; }
.linkbtn { background: none; border: 0; padding: 0; font: 600 .86rem "Plus Jakarta Sans", sans-serif; color: var(--emerald); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn.quiet { color: var(--muted); }
.linkbtn:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; border-radius: 4px; }

/* Choice cards (single choice) */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choices input, .chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices, .chips { position: relative; }
.choice-card { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white); cursor: pointer; font-weight: 600; font-size: .93rem; color: var(--forest); transition: border-color .18s var(--ease), background .18s var(--ease), transform .12s var(--ease); line-height: 1.3; }
.choice-card::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex: 0 0 auto; transition: all .18s var(--ease); background: var(--white); }
.choice-card:hover { border-color: #B5AFA3; }
.choice-card:active { transform: scale(.985); }
.choices input:checked + .choice-card { border-color: var(--emerald); background: var(--emerald-50); }
.choices input:checked + .choice-card::before { border-color: var(--emerald); background: var(--emerald); box-shadow: inset 0 0 0 3.5px var(--white); }
.choices input:focus-visible + .choice-card, .chips input:focus-visible + label { outline: 2px solid var(--emerald); outline-offset: 2px; }
.choice-card small { display: block; font-weight: 500; font-size: .8rem; color: var(--muted); }

/* Chips (single choice, many options) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 15px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); font-size: .88rem; font-weight: 500; color: var(--ink); cursor: pointer; transition: all .16s var(--ease); }
.chips label:hover { border-color: #B5AFA3; }
.chips label:active { transform: scale(.97); }
.chips input:checked + label { background: var(--emerald); border-color: var(--emerald); color: var(--white); }
.reveal { animation: stepIn .28s var(--ease) both; }
.note { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--ink); background: var(--purple-50); border-radius: 10px; padding: 10px 12px; margin-top: 12px; }
.note svg { flex: 0 0 auto; color: var(--purple); margin-top: 2px; }

/* Checkboxes */
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .9rem; color: var(--ink); line-height: 1.5; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line-strong); background: var(--white); flex: 0 0 auto; display: grid; place-items: center; margin-top: 1px; transition: all .16s var(--ease); }
.check-box svg { opacity: 0; transform: scale(.6); transition: all .16s var(--ease); color: var(--white); }
.check input:checked + .check-box { background: var(--emerald); border-color: var(--emerald); }
.check input:checked + .check-box svg { opacity: 1; transform: none; }
.check input:focus-visible + .check-box { outline: 2px solid var(--emerald); outline-offset: 2px; }
.consent-group { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 4px; display: grid; gap: 14px; }

.privacy { margin-top: 16px; border-radius: 12px; background: #F6F4EF; font-size: .84rem; color: var(--muted); }
.privacy summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-weight: 600; color: var(--forest); }
.privacy summary::-webkit-details-marker { display: none; }
.privacy summary svg { color: var(--emerald); flex: 0 0 auto; }
.privacy summary .chev { margin-left: auto; transition: transform .2s var(--ease); color: var(--muted); }
.privacy[open] summary .chev { transform: rotate(180deg); }
.privacy .body { padding: 0 14px 14px 40px; }
.privacy p { margin: 0 0 8px; }

/* ---------- Navigation ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 24px; border-radius: var(--radius); border: 0; font: 700 1rem "Plus Jakarta Sans", sans-serif; cursor: pointer; text-decoration: none; transition: background .18s var(--ease), transform .12s var(--ease), box-shadow .18s var(--ease); -webkit-tap-highlight-color: transparent; }
.btn-primary { background: var(--emerald); color: var(--white); flex: 1; max-width: 260px; margin-left: auto; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 6px 16px -8px rgba(0, 0, 0, .35); }
.btn-primary:hover { background: var(--emerald-700); }
.btn-primary:active { transform: scale(.985); }
.btn-primary:focus-visible, .btn-ghost:focus-visible, .btn-wa:focus-visible { outline: 3px solid rgba(255, 223, 44, .9); outline-offset: 2px; }
.btn-primary[disabled] { cursor: progress; opacity: .85; }
.btn-ghost { background: transparent; color: var(--forest); padding: 0 12px 0 6px; }
.btn-ghost:hover { background: #F1EEE7; }
.btn .spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-err { display: flex; gap: 10px; background: var(--err-50); color: var(--err); border-radius: 10px; padding: 12px 14px; font-size: .88rem; font-weight: 500; margin-top: 16px; }

/* ---------- Success ---------- */
.done { text-align: center; }
.done .tick { width: 72px; height: 72px; border-radius: 50%; background: var(--emerald-50); display: grid; place-items: center; margin: 4px auto 18px; }
.done .tick svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .15s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h1 { margin-bottom: 8px; }
.done .lead { margin-bottom: 4px; }
.done-section { text-align: left; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.done-section > p { color: var(--muted); font-size: .9rem; margin: 0 0 14px; }
.wa-steps { display: grid; gap: 10px; }
.wa-step { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; transition: opacity .2s var(--ease); }
.wa-step .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .82rem; font-weight: 700; background: var(--purple-50); color: var(--purple); flex: 0 0 auto; }
.wa-step.done-step .n { background: var(--emerald); color: #fff; }
.wa-step.locked { opacity: .5; }
.wa-step .t { flex: 1; font-weight: 600; font-size: .92rem; color: var(--forest); line-height: 1.35; }
.wa-step .t small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }
.btn-wa { height: 40px; padding: 0 16px; font-size: .88rem; background: var(--emerald); color: #fff; border-radius: 999px; }
.btn-wa:hover { background: var(--emerald-700); }
.wa-step.locked .btn-wa { pointer-events: none; background: var(--line-strong); }
.qr-wrap { display: flex; gap: 18px; align-items: center; }
.qr { width: 132px; height: 132px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; flex: 0 0 auto; }
.qr img { width: 100%; height: 100%; image-rendering: pixelated; }
.code { font: 700 1.05rem ui-monospace, Menlo, monospace; letter-spacing: .18em; color: var(--purple); }
.btn-save { margin-top: 10px; height: 42px; padding: 0 16px; font-size: .88rem; background: var(--white); color: var(--emerald); border: 1.5px solid var(--emerald); }
.btn-save:hover { background: var(--emerald-50); }
@media (max-width: 400px) { .qr-wrap { flex-direction: column; text-align: center; } }
.sendoff { font-family: "Fraunces", Georgia, serif; font-size: 1.15rem; color: var(--forest); margin: 24px 0 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .done .tick svg path { stroke-dashoffset: 0; }
}

/* ---- Yellow & black brand accents ---- */
.progress li.current .dot { box-shadow: 0 0 0 4px var(--gold); }
.progress li.done .dot { background: var(--gold); border-color: var(--forest); color: var(--forest); }
.progress li.done::before, .progress li.current::before { background: var(--forest); }
.choices input:checked + .choice-card { border-color: var(--forest); }
.chips input:checked + label { background: var(--forest); border-color: var(--forest); color: #fff; }
.done .tick { background: var(--gold); }
.wa-step.done-step .n { background: var(--gold); color: var(--forest); }
.note { background: #FFF8D6; }
.photo-pick .avatar { background: var(--gold); color: var(--forest); }

/* ---- My Shekinah Pass ---- */
.pass-wrap { display: grid; justify-items: center; gap: 14px; }
.pass { width: 100%; max-width: 300px; height: auto; border-radius: 22px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.45); aspect-ratio: 1080 / 1560; background: #141414; }
.pass-actions { text-align: center; }
.pass-actions .hint { margin-top: 8px; }
footer b { color: var(--forest); font-weight: 700; }
.check-card { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 14px; background: var(--white); transition: border-color .18s var(--ease), background .18s var(--ease); }
.check-card:has(input:checked) { border-color: var(--forest); background: var(--emerald-50); }
.field.followup { margin-top: 18px; }
