:root {
  --cream: #F6F4F0;
  --ink: #111110;
  --muted: #7A766F;
  --line: #E2DDD3;
  --scribble: #D45F3B;

  --display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 18px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
svg { display: block; }
a { color: inherit; }
p { margin: 0; }
::selection { background: #F9C043; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 92svh;
  display: grid; place-items: center;
  padding: 48px 16px;
  overflow: hidden;
}

.logo {
  position: relative;
  margin: 0;
  font: 800 clamp(1.9rem, 5.6vw, 4.6rem)/1.14 var(--display);
  letter-spacing: -0.055em;
  width: 12.2em;
  max-width: 100%;
}
.logo__line { display: block; white-space: nowrap; }
.logo__my { position: relative; display: inline-block; }
.logo__our { margin-left: 1.25em; }
.logo__beautiful { padding-left: 3.85em; }
.logo__church { padding-left: 6.1em; }
.logo__project { padding-left: 4.9em; }

.scribble {
  position: absolute;
  left: -0.95em; top: -0.8em;
  width: calc(100% + 1.95em);
  height: calc(100% + 2em);
  overflow: visible;
  pointer-events: none;
}
.scribble path {
  fill: none; stroke: var(--scribble); stroke-width: 2.6;
  stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
.js .scribble path { stroke-dashoffset: 1; animation: draw 1.8s .5s cubic-bezier(.6,.1,.3,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.js .logo__line { opacity: 0; transform: translateY(.3em); animation: rise .8s cubic-bezier(.2,.8,.2,1) forwards; }
.js .logo__line:nth-child(2) { animation-delay: .1s; }
.js .logo__line:nth-child(3) { animation-delay: .2s; }
.js .logo__line:nth-child(4) { animation-delay: .3s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.bouquet {
  position: absolute;
  left: 8em; top: 3.75em;
  width: 3.8em; height: auto;
  overflow: visible;
  pointer-events: none;
}
.bouquet__sway { transform-origin: 155px 350px; animation: sway 6s ease-in-out 2.4s infinite; }
@keyframes sway { 0%,100% { transform: rotate(0); } 50% { transform: rotate(2deg); } }
.js .stems path { stroke-dasharray: 400; stroke-dashoffset: 400; animation: grow 1.2s 1.1s ease-out forwards; }
@keyframes grow { to { stroke-dashoffset: 0; } }
.js .leaves path { opacity: 0; animation: fade .6s 1.7s forwards; }
@keyframes fade { to { opacity: 1; } }
.bloom { transform-box: fill-box; transform-origin: center; }
.js .bloom { transform: scale(0) rotate(-90deg); animation: bloom .9s calc(1.9s + var(--d)) cubic-bezier(.3,1.6,.5,1) forwards; }
@keyframes bloom { to { transform: scale(1) rotate(0); } }

.planted {
  position: absolute; pointer-events: none;
  width: var(--s); height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  animation: plant .7s cubic-bezier(.3,1.6,.5,1) forwards;
  transform: scale(0) rotate(var(--r));
}
@keyframes plant { to { transform: scale(1) rotate(calc(var(--r) + 72deg)); } }

/* ---------- content column ---------- */
.col { max-width: 600px; margin: 0 auto; padding: 0 20px; }
.block { padding: 56px 0; }
.block + .block { border-top: 1px solid var(--line); }
.block p + p { margin-top: 1em; }
.block h2 { margin: 0 0 1rem; font: 700 1rem/1.3 var(--body); }
.block s { text-decoration-color: var(--scribble); text-decoration-thickness: 2px; color: var(--muted); }
.block em { font-style: normal; font-weight: 600; }
.muted { color: var(--muted); }

.plans { list-style: none; padding: 0; margin: 1.6rem 0 0; }
.plans li { border-top: 1px solid var(--line); }
.plans li:last-child { border-bottom: 1px solid var(--line); }
.plans a {
  display: grid; grid-template-columns: 7rem 1fr auto; gap: 1rem; align-items: baseline;
  padding: .8rem 0;
  text-decoration: none;
  transition: color .2s;
}
.plans a:hover { color: var(--scribble); }
.plans a > span:first-child { font-weight: 600; }
.plans__desc { color: var(--muted); font-size: .95rem; }
.plans__price { font-weight: 600; font-variant-numeric: tabular-nums; }

.link {
  display: inline-block; margin-top: 1.4rem;
  font-weight: 600; text-decoration: none;
  border-bottom: 1.5px solid var(--ink);
  transition: color .2s, border-color .2s;
}
.link:hover { color: var(--scribble); border-color: var(--scribble); }

/* ---------- modals (studio wizard + school signup) ---------- */
.modal {
  width: min(520px, calc(100% - 24px));
  max-height: calc(100svh - 24px);
  padding: 0; border: 0; border-radius: 18px;
  background: var(--cream); color: var(--ink);
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .4);
}
.modal::backdrop { background: rgba(17, 17, 16, .45); backdrop-filter: blur(3px); }
.modal[open] { animation: pop .25s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } }

.wizard { padding: 22px 28px 28px; }
.wizard fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.wizard h2 { margin: 0 0 .4rem; font: 700 1.5rem/1.2 var(--display); letter-spacing: -0.03em; }
.wizard .muted { font-size: .95rem; }
.small { font-size: .85rem !important; line-height: 1.5; }

.modal__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.modal__step { font-size: .8rem; color: var(--muted); }
.modal__close {
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.modal__close:hover { background: var(--line); color: var(--ink); }

.field { display: grid; gap: 6px; margin-top: 16px; font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea {
  width: 100%;
  font: 400 1rem/1.4 var(--body); color: var(--ink);
  padding: .8em .95em; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field select {
  -webkit-appearance: none; appearance: none;
  padding-right: 2.6em;
  background: #fff 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='%23111110' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 1em center;
  cursor: pointer;
}
.field select:invalid, .field select:has(option[value=""]:checked) { color: var(--muted); }
.field select option { color: var(--ink); }

.options { display: grid; gap: 10px; margin-top: 18px; }
.option {
  position: relative;
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option__name, .option__price { font-weight: 600; }
.option__desc { grid-column: 1 / -1; color: var(--muted); font-size: .9rem; }
.option:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.option:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }

.summary { margin: 16px 0 18px; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .95rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; overflow-wrap: anywhere; }

.wizard__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }
.wizard__nav .btn:last-child { margin-left: auto; }
.wizard__done p { margin: .6rem 0 1.4rem; }
.form-error { margin-top: 14px; color: var(--scribble); font-size: .92rem; }

.btn {
  font: 600 1rem/1 var(--body); color: var(--cream);
  padding: .9em 1.4em; border: 0; border-radius: 10px; background: var(--ink);
  cursor: pointer; transition: opacity .2s;
}
.btn:hover { opacity: .85; }
.btn:disabled { opacity: .5; cursor: default; }
.btn--text { background: transparent; color: var(--muted); padding-left: 0; }
.btn--text:hover { color: var(--ink); opacity: 1; }

/* ---------- /start page ---------- */
.start-top { max-width: 600px; margin: 0 auto; padding: 24px 20px 0; }
.start-top__home { font-size: .9rem; color: var(--muted); text-decoration: none; }
.start-top__home:hover { color: var(--ink); }
.start-top__home s { text-decoration-color: var(--scribble); text-decoration-thickness: 1.5px; }
.start { max-width: 600px; margin: 0 auto; padding: 48px 20px 96px; min-height: 80svh; }
.start .wizard { padding: 0; }
.start h1 { margin: 0 0 .4rem; font: 800 clamp(1.9rem, 5vw, 2.6rem)/1.1 var(--display); letter-spacing: -0.04em; }
.start legend { padding: 0; }
.start__step { font-size: .85rem; color: var(--muted); margin: 14px 0 28px; min-height: 1.4em; }
.progress { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--ink); transition: width .4s ease; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

.multi { position: relative; min-width: 0; }
.multi summary {
  display: block; list-style: none; cursor: pointer;
  font-size: 1rem; line-height: 1.4;
  padding: .8em 2.4em .8em .95em; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font-weight: 400; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.multi summary::-webkit-details-marker { display: none; }
.multi summary::after {
  content: ""; position: absolute; right: 1em; top: 1.55em;
  width: 12px; height: 8px; margin-top: -4px;
  background: 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='%23111110' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat;
  transition: transform .2s;
}
.multi[open] summary { border-color: var(--ink); }
.multi[open] summary::after { transform: rotate(180deg); }
.multi.has-value summary { color: var(--ink); }
.multi__menu {
  position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px);
  display: grid; padding: 6px; max-height: 300px; overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .3);
}
.multi__menu label {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px; font-weight: 400; font-size: .95rem; cursor: pointer;
}
.multi__menu label:hover { background: var(--cream); }
.multi__menu input { width: 17px; height: 17px; accent-color: var(--ink); margin: 0; }

.summary__change {
  border: 0; background: none; padding: 0; margin-left: 4px;
  font: 600 .85rem/1 var(--body); color: var(--muted); text-decoration: underline; cursor: pointer;
}
.summary__change:hover { color: var(--ink); }
.start .wizard__done .btn { display: inline-block; text-decoration: none; }

/* ---------- legal + careers pages ---------- */
.doc { max-width: 600px; margin: 0 auto; padding: 48px 20px 80px; }
.doc h1 { margin: 0 0 .5rem; font: 800 clamp(2rem, 6vw, 2.8rem)/1.1 var(--display); letter-spacing: -0.04em; }
.doc h2 { margin: 2.4rem 0 .6rem; font: 700 1.1rem/1.3 var(--body); }
.doc h3 { margin: 0; font: 700 1.05rem/1.3 var(--body); }
.doc p + p { margin-top: .9em; }
.doc ul { margin: .6em 0 0; padding-left: 1.2em; }
.doc li + li { margin-top: .4em; }
.doc a { text-underline-offset: 2px; }
.doc s { text-decoration-color: var(--scribble); }
.doc__updated { color: var(--muted); font-size: .9rem; margin-bottom: 2rem !important; }
.doc__lede { font-size: 1.15rem; margin-top: .8rem; }

.roles { list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.roles li { margin: 0 !important; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.roles p { margin: .3rem 0 .6rem; color: var(--muted); }
.roles span { font-size: .85rem; font-weight: 600; }
.apply .wizard__nav { margin-top: 20px; }
.apply__done h2 { margin-top: 1rem; }

.footer__links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 18px; font-size: .9rem; }
.footer__links a { color: var(--ink); text-decoration: none; }
.footer__links a:hover { color: var(--scribble); }

/* ---------- footer ---------- */
.footer {
  max-width: 600px; margin: 0 auto; padding: 48px 20px 64px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: .85rem;
}
.footer p + p { margin-top: .4rem; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .wizard { padding: 18px 20px 22px; }
  .field-row { grid-template-columns: 1fr; }
  .logo { font-size: 8.4vw; width: 10.6em; padding: 0 0 3.3em .9em; }
  .bouquet { left: 6.5em; top: 4.25em; width: 3.1em; margin-left: .9em; }
  .plans a { grid-template-columns: 1fr auto; gap: .1rem 1rem; }
  .plans__desc { grid-column: 1 / -1; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
