:root {
  --stone: #e5e0da;
  --stone-deep: #d9d2c9;
  --paper: #f6f3ef;
  --ink: #393939;
  --ink-soft: #5c5753;
  --clay: #b18e75;
  --clay-deep: #8a6a55;
  --bloom: #e8643a;
  --rain: #8fb3c4;
  --line: #cfc7bd;
  --radius: 14px;
  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px 0;
}
.brand img { display: block; width: 96px; height: auto; }
.back-link {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
}
.back-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.layout > * { min-width: 0; }

/* Intro */
.intro { position: sticky; top: 32px; padding-top: 24px; }
.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clay-deep);
  font-weight: 500;
}
h1 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 20px;
}
.lede { font-size: 17px; max-width: 30em; margin: 0; color: var(--ink-soft); }

.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.facts li { display: flex; gap: 14px; align-items: flex-start; }
.facts strong { display: block; font-weight: 500; font-size: 15px; }
.facts span { font-size: 14px; color: var(--ink-soft); }
.dot {
  flex: none;
  width: 10px; height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--bloom);
}
.facts li:nth-child(2) .dot { background: var(--rain); }
.facts li:nth-child(3) .dot { background: var(--clay); }
.facts li:nth-child(4) .dot { background: var(--ink); }
.expect { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 30em; }
.expect-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clay-deep);
  margin: 0 0 18px;
}

/* Card */
.card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 18px 40px -24px rgba(57,40,30,.35);
}
.form-head h2, .success h2 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -.01em;
  margin: 0 0 6px;
}
.form-head { margin-bottom: 26px; }
.form-head p { margin: 0; color: var(--ink-soft); font-size: 15px; }

fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
legend {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clay-deep);
  margin-bottom: 12px;
  padding: 0;
}
.optional { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink-soft); margin-left: 6px; }

.row { display: grid; gap: 14px; margin-bottom: 14px; }
.row.two { grid-template-columns: 1fr 1fr; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 400; }

input, select, textarea {
  font: inherit;
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 88px; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--clay-deep);
  box-shadow: 0 0 0 3px rgba(177,142,117,.25);
}
.invalid { border-color: #c0492b !important; }
.hint { font-size: 13px; color: var(--ink-soft); margin: 4px 0 0; }

/* Slot picker */
.slot-days-wrap { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; min-width: 0; }
.day-nav {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 20px; line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
  padding: 0 0 2px;
}
.day-nav:disabled { opacity: .35; cursor: default; }
.day-nav:focus-visible { outline: 2px solid var(--clay-deep); outline-offset: 2px; }
.slot-days {
  flex: 1;
  min-width: 0;
  scroll-behavior: smooth;
  display: flex;
  max-width: 100%;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.day-btn {
  flex: none;
  min-width: 72px;
  font: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  text-align: center;
  color: var(--ink);
  line-height: 1.25;
}
.day-btn .dow { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.day-btn .dnum { display: block; font-family: var(--font-head); font-size: 20px; font-weight: 500; }
.day-btn .mon { display: block; font-size: 12px; color: var(--ink-soft); }
.day-btn[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.day-btn[aria-selected="true"] .dow, .day-btn[aria-selected="true"] .mon { color: var(--stone-deep); }

.slot-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.time-btn {
  font: inherit;
  font-weight: 400;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  cursor: pointer;
  color: var(--ink);
}
.time-btn small { display: block; font-size: 11px; color: var(--ink-soft); }
.time-btn[aria-checked="true"] { background: var(--bloom); border-color: var(--bloom); color: #fff; }
.time-btn[aria-checked="true"] small { color: #fff; }
.day-btn:focus-visible, .time-btn:focus-visible, .link-btn:focus-visible, .btn-primary:focus-visible {
  outline: 2px solid var(--clay-deep);
  outline-offset: 2px;
}

/* Buttons */
.btn-primary {
  width: 100%;
  font: inherit;
  font-weight: 500;
  font-size: 16px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 999px;
  padding: 15px 20px;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.btn-primary:hover { background: #222; }
.btn-primary:active { transform: translateY(1px); }
.btn-primary[disabled] { opacity: .6; cursor: progress; }
.btn-secondary {
  display: inline-block;
  margin-top: 8px;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 11px 22px;
  text-decoration: none;
  font-weight: 400;
}
.consent { font-size: 12px; color: var(--ink-soft); text-align: center; margin: 12px 0 0; }

.form-head .mode-switch {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px;
  margin: 14px 0 0;
  padding: 8px 14px;
  background: var(--stone);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-soft);
}
.link-btn {
  font: inherit;
  font-weight: 500;
  background: none;
  border: 0;
  padding: 0 0 0 4px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--clay);
  cursor: pointer;
}

.form-error {
  background: #fbe9e3;
  color: #8a2f17;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  margin: 0 0 14px;
}

/* Success */
.success { text-align: center; padding: 24px 8px; outline: none; }
.sprout { color: var(--clay-deep); margin-bottom: 8px; }
.success p { color: var(--ink-soft); max-width: 28em; margin: 0 auto 20px; }

.site-footer { text-align: center; font-size: 13px; color: var(--ink-soft); padding: 0 24px 40px; }

.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;
}

@media (max-width: 880px) {
  .layout { grid-template-columns: 1fr; gap: 28px; padding-top: 12px; }
  .intro { position: static; padding-top: 0; }
  .facts { grid-template-columns: 1fr 1fr; gap: 14px 18px; }
}
@media (max-width: 560px) {
  .site-header { padding: 16px 16px 0; }
  .brand img { width: 72px; }
  .layout { padding: 12px 16px 48px; }
  .card { padding: 24px 18px; }
  .row.two { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.facts .stage { flex: none; width: 40px; height: 40px; margin-top: -6px; }
.facts li { gap: 16px; }
.slot-days::-webkit-scrollbar { display: none; }
@media (max-width: 560px) { .day-nav { display: none; } .slot-days { scrollbar-width: thin; } }

/* Add to calendar */
.add-cal { margin: -4px auto 26px; font-size: 15px; color: var(--ink-soft); }
.add-cal-label { display: inline; margin: 0 !important; }
.add-cal-btns { display: inline; }
.cal-btn {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--clay);
  white-space: nowrap;
}
.cal-btn:hover { text-decoration-color: var(--ink); }
.cal-btn:focus-visible { outline: 2px solid var(--clay-deep); outline-offset: 2px; border-radius: 2px; }
.cal-sep { margin: 0 8px; color: var(--ink-soft); }

/* ---------- Registration page ---------- */
.reg .intro .facts .dot { margin-top: 9px; }
.private-note { font-size: 13px; color: var(--ink-soft); margin: 22px 0 0; }

.view.message { text-align: center; padding: 24px 8px; outline: none; }
.view.message h2 { font-family: var(--font-head); font-weight: 500; font-size: 26px; margin: 0 0 8px; }
.view.message p { color: var(--ink-soft); max-width: 28em; margin: 0 auto 20px; }

.steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: -6px 0 28px; counter-reset: step; }
.steps li {
  flex: 1; counter-increment: step;
  font-size: 13px; font-weight: 500; color: var(--ink-soft);
  border-top: 3px solid var(--line); padding-top: 8px;
}
.steps li::before { content: counter(step) ". "; }
.steps li.current { color: var(--ink); border-color: var(--bloom); }
.steps li.done { color: var(--ink); border-color: var(--clay); cursor: pointer; }

.sublabel { font-size: 14px; font-weight: 400; margin: 16px 0 8px; }
.hint.top { margin: -4px 0 12px; }
label.check {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 15px; font-weight: 300; margin: 0 0 12px; line-height: 1.45; cursor: pointer;
}
label.check input { width: 18px; height: 18px; flex: none; margin: 2px 0 0; padding: 0; accent-color: var(--ink); }
label.check.spaced { margin-top: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.chips label.check { margin: 0; }
.reveal { margin: 0 0 14px; }
fieldset > label:not(.check) { margin-bottom: 14px; }

.people { display: grid; gap: 10px; margin-bottom: 8px; }
.person {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 28px; gap: 10px; align-items: end;
  padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
}
.person label { font-size: 13px; }
.person input { padding: 9px 11px; font-size: 15px; }
.remove-person {
  width: 28px; height: 38px; border: 0; background: none; color: var(--ink-soft);
  font-size: 20px; cursor: pointer; border-radius: 8px;
}
.remove-person:hover { color: var(--ink); background: var(--stone); }
.link-btn.small { font-size: 13px; }
.add-person { padding-left: 0; font-size: 14px; }

.doc-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.doc { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.doc.has { border-color: #b9cfa9; }
.doc.busy { opacity: .6; pointer-events: none; }
.doc-head { display: flex; gap: 12px; align-items: flex-start; }
.doc-head strong { font-weight: 500; }
.doc-mark {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--line); display: grid; place-items: center;
  font-size: 13px; color: #fff; margin-top: 1px;
}
.doc.has .doc-mark { background: #5e8a4a; border-color: #5e8a4a; }
.doc-help { display: block; font-size: 13px; color: var(--ink-soft); }
.tag {
  display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px;
  background: var(--stone); font-size: 11px; font-weight: 500; letter-spacing: .04em;
  text-transform: uppercase; color: var(--clay-deep); vertical-align: 2px;
}
.doc-files { list-style: none; padding: 0; margin: 10px 0 0 36px; font-size: 14px; }
.doc-files li { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; padding: 4px 0; border-top: 1px dashed var(--line); }
.doc-files li span { overflow-wrap: anywhere; }
.verified { font-size: 12px; font-style: normal; color: #5e8a4a; font-weight: 500; }
.upload-btn {
  display: inline-flex; margin: 12px 0 0 36px; cursor: pointer;
  border: 1px solid var(--ink); border-radius: 999px; padding: 7px 16px;
  font-size: 14px; font-weight: 400;
}
.upload-btn:hover { background: var(--ink); color: var(--paper); }
.upload-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-btn:focus-within { outline: 2px solid var(--clay-deep); outline-offset: 2px; }
.doc-status { font-size: 13px; margin: 8px 0 0 36px; color: var(--ink-soft); }
.doc-status:empty { display: none; }
.doc-status.err { color: #8a2f17; }

.missing { background: #fdf3e1; border-radius: 10px; padding: 12px 16px; font-size: 14px; margin: 0 0 14px; }
.missing p { margin: 0 0 4px; font-weight: 400; }
.missing ul { margin: 0; padding-left: 20px; }

.step-nav { display: flex; gap: 12px; margin-top: 8px; }
.step-nav .btn-primary { flex: 1; }
.btn-ghost {
  font: inherit; font-weight: 400; background: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: 14px 22px; cursor: pointer;
}
.btn-ghost:hover { border-color: var(--ink); }
.saved-note { font-size: 12px; color: var(--ink-soft); text-align: center; margin: 12px 0 0; min-height: 1em; }

@media (max-width: 560px) {
  .person { grid-template-columns: 1fr 1fr; }
  .person label:first-child { grid-column: 1 / -1; }
  .remove-person { position: absolute; }
  .person { position: relative; padding-right: 40px; }
  .remove-person { top: 6px; right: 6px; }
  .doc-files, .upload-btn, .doc-status { margin-left: 0; }
}
label.check .optional { margin-left: 4px; }
@media (max-width: 880px) {
  .reg .intro .expect { display: none; }
  .reg .intro .lede { font-size: 15px; }
}

/* Placeholder pages (until the real site design lands) */
.holding { grid-template-columns: 1fr; max-width: 760px; }
.holding .intro { position: static; }
.holding .lede a { color: var(--ink); text-underline-offset: 4px; text-decoration-color: var(--clay); }
.holding-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
