:root {
  --paper: #f5f0e6;
  --paper-deep: #ede5cf;
  --paper-card: #fbf7ed;
  --ink: #1d1a14;
  --ink-muted: #6a6258;
  --ink-dim: #9d9685;
  --rule: #d4ccba;
  --rule-soft: #e5dec8;
  --accent: #7a2424;
  --accent-soft: rgba(122, 36, 36, 0.07);
  --display: 'Fraunces', Georgia, serif;
  --body: 'Newsreader', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'kern', 'liga';
}

body {
  min-height: 100vh;
  padding: 56px 32px 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 600px) {
  body { padding: 40px 22px 80px; font-size: 17px; }
}

.container {
  max-width: 620px;
  width: 100%;
}

/* Header */
.header {
  margin-bottom: 56px;
  text-align: center;
  animation: gentleIn 0.9s ease both;
}

.header .meta {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 18px;
  font-family: var(--body);
}

.header h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 6.5vw, 50px);
  letter-spacing: -0.025em;
  line-height: 1.02;
  font-variation-settings: 'opsz' 144;
}

.header .sub {
  font-family: var(--display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--ink-muted);
  margin-top: 14px;
  font-variation-settings: 'opsz' 60;
  letter-spacing: 0.005em;
}

/* Progress */
.progress {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 56px;
  transition: opacity 0.4s ease;
}

.progress .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rule);
  transition: all 0.4s ease;
}

.progress .dot.active {
  background: var(--ink);
  transform: scale(1.6);
}

.progress .dot.done {
  background: var(--ink-muted);
}

/* Step */
.step {
  display: none;
  animation: stepIn 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.step.active {
  display: block;
}

@keyframes stepIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes gentleIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.question-num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  margin-bottom: 22px;
  font-variation-settings: 'opsz' 14;
  text-transform: lowercase;
}

.question-num em {
  font-style: italic;
  color: var(--ink-muted);
}

.question-num .sep {
  margin: 0 8px;
  opacity: 0.5;
}

.question {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(25px, 4.4vw, 32px);
  line-height: 1.22;
  letter-spacing: -0.018em;
  margin-bottom: 18px;
  font-variation-settings: 'opsz' 96;
}

.help {
  font-family: var(--body);
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.55;
  margin-bottom: 36px;
  font-variation-settings: 'opsz' 14;
}

textarea {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  resize: none;
  min-height: 120px;
  outline: none;
  transition: border-color 0.3s ease;
}

textarea:focus {
  border-bottom-color: var(--ink);
}

textarea::placeholder {
  color: var(--ink-dim);
  font-style: italic;
}

/* Navigation */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
}

button {
  font-family: var(--body);
  font-size: 15px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 0;
}

.btn-back {
  color: var(--ink-muted);
  transition: color 0.2s;
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 15px;
}

.btn-back:hover {
  color: var(--ink);
}

.btn-continue {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  padding: 10px 0;
  border-bottom: 1px solid var(--ink);
  transition: all 0.3s;
  letter-spacing: 0.005em;
  font-variation-settings: 'opsz' 36;
}

.btn-continue:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.btn-continue::after {
  content: '  →';
  display: inline-block;
  transition: transform 0.3s;
}

.btn-continue:hover::after {
  transform: translateX(4px);
}

.btn-continue:disabled {
  color: var(--ink-dim);
  border-bottom-color: var(--rule);
  cursor: not-allowed;
}

.btn-continue:disabled:hover {
  color: var(--ink-dim);
  border-bottom-color: var(--rule);
}

.btn-continue:disabled::after {
  transform: none;
}

/* Offer step */
#step-offer .offer-body {
  margin-bottom: 36px;
}

#step-offer .offer-body p {
  margin-bottom: 20px;
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  font-variation-settings: 'opsz' 16;
}

#step-offer .offer-body em {
  font-style: italic;
}

#step-offer .nav {
  margin-top: 40px;
  justify-content: center;
}

#step-offer .offer-footer {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--body);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.6;
  font-variation-settings: 'opsz' 14;
}

#step-offer .offer-footer .sig {
  display: block;
  margin-top: 8px;
}

/* Intro step */
#step-intro .lead {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(20px, 3vw, 24px);
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 24px;
  font-variation-settings: 'opsz' 60;
  letter-spacing: -0.01em;
}

#step-intro p {
  margin-bottom: 20px;
  color: var(--ink-muted);
  font-family: var(--body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: 'opsz' 16;
}

#step-intro em {
  color: var(--ink);
  font-style: italic;
}

#step-intro .nav {
  margin-top: 48px;
}

/* Q7 — ceremonial */
#step-q7 {
  text-align: center;
  padding: 16px 0;
}

#step-q7 .question-num {
  text-align: center;
}

#step-q7 .question {
  font-size: clamp(26px, 4.8vw, 36px);
  margin-bottom: 28px;
  font-weight: 400;
}

#step-q7 .question-frame {
  font-family: var(--body);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  color: var(--ink-muted);
  max-width: 440px;
  margin: 0 auto 44px;
  line-height: 1.55;
  font-variation-settings: 'opsz' 16;
}

.choices {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 520px;
  margin: 0 auto 36px;
  text-align: left;
}

.choice {
  display: block;
  padding: 22px 26px;
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.choice:hover {
  border-color: var(--ink-muted);
  background: #fdf9ee;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent);
}

.choice-label {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 6px;
  font-variation-settings: 'opsz' 24;
}

.choice-sub {
  font-family: var(--body);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.55;
  font-variation-settings: 'opsz' 14;
}

.q7-footer {
  font-family: var(--body);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--ink-muted);
  max-width: 420px;
  margin: 0 auto 36px;
  line-height: 1.6;
  font-variation-settings: 'opsz' 14;
}

/* Calendly inline embed */
#calendly-inline {
  min-width: 320px;
  height: 700px;
  margin-top: 12px;
}

@media (max-width: 600px) {
  #calendly-inline { height: 1080px; }
}

/* Stripe Payment Element */
.amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.amt-btn {
  padding: 16px 8px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper);
  cursor: pointer;
  font-family: var(--display);
  font-size: 18px;
  transition: all 0.2s;
  font-variation-settings: 'opsz' 36;
  color: var(--ink);
}

.amt-btn:hover {
  border-color: var(--ink-muted);
}

.amt-btn.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent);
  color: var(--accent);
}

.amt-custom {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 28px;
}

.amt-custom .amt-btn {
  flex: 0 0 110px;
}

.amt-custom-input {
  display: none;
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper);
  font-family: var(--display);
  font-size: 17px;
  outline: none;
  color: var(--ink);
  font-variation-settings: 'opsz' 24;
}

.amt-custom-input.show {
  display: block;
}

.amt-custom-input:focus {
  border-color: var(--ink);
}

#payment-element {
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper);
  min-height: 56px;
}

.payment-status {
  display: none;
  font-family: var(--body);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--accent);
  margin-top: 14px;
  line-height: 1.55;
  font-variation-settings: 'opsz' 14;
}

.payment-status.show {
  display: block;
}

.btn-primary {
  width: 100%;
  padding: 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 3px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.25s;
  font-variation-settings: 'opsz' 24;
  letter-spacing: 0.005em;
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-primary:disabled {
  background: var(--ink-dim);
  cursor: not-allowed;
}

/* Form error (intake POST failures) */
.form-error {
  display: none;
  margin-top: 18px;
  font-family: var(--body);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--accent);
  line-height: 1.55;
  font-variation-settings: 'opsz' 14;
}

.form-error.show {
  display: block;
}

/* Thank-you */
#step-done {
  text-align: center;
  padding: 40px 0;
}

#step-done h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(30px, 5.5vw, 40px);
  margin-bottom: 28px;
  font-variation-settings: 'opsz' 96;
  letter-spacing: -0.015em;
}

#step-done p {
  font-family: var(--body);
  font-weight: 400;
  font-size: 17px;
  color: var(--ink-muted);
  line-height: 1.6;
  max-width: 460px;
  margin: 0 auto 20px;
  font-variation-settings: 'opsz' 16;
}

#step-done em {
  font-style: italic;
  color: var(--ink);
}

.sky-sig {
  margin-top: 44px;
  font-family: var(--display);
  font-style: italic;
  color: var(--ink-muted);
  font-size: 16px;
  font-variation-settings: 'opsz' 24;
}

/* Focus ring */
:focus-visible {
  outline: 1.5px solid var(--accent);
  outline-offset: 4px;
}

textarea:focus-visible {
  outline: none;
}

/* Selection */
::selection {
  background: var(--accent);
  color: var(--paper);
}
