/* ── Variables ───────────────────────────────────────────────────────────── */
:root {
  --bg:           #FAF9F7;
  --bg-card:      #FFFFFF;
  --bg-subtle:    #F4F1ED;
  --fg:           #1C1814;
  --fg-muted:     #6B5D57;
  --fg-faint:     #A0948E;
  --accent:       #8B6255;
  --accent-hover: #6E4D42;
  --accent-light: #F2EAE6;
  --border:       #E5DED9;
  --shadow:       0 1px 2px rgba(28,24,20,0.04), 0 4px 16px rgba(28,24,20,0.06);
  --shadow-sm:    0 1px 3px rgba(28,24,20,0.05);
  --radius:       12px;
  --radius-sm:    8px;
  --max-w:        740px;
  --font-serif:   'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:    'DM Sans', system-ui, -apple-system, sans-serif;
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 60% at 50% -20%, rgba(139, 98, 85, 0.07), transparent),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(139, 98, 85, 0.04), transparent);
  color: var(--fg);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection {
  background: var(--accent-light);
  color: var(--fg);
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-hover); }

/* ── Typography ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.25;
  color: var(--fg);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; font-family: var(--font-sans); font-weight: 500; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.serif { font-family: var(--font-serif); }
.muted { color: var(--fg-muted); }
.faint { color: var(--fg-faint); }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--wide { max-width: 1100px; }

.section { padding: 5rem 0; }
.section--sm { padding: 3rem 0; }
.section--form { padding: 1.5rem 0 3rem; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--border);
  background: rgba(250, 249, 247, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  transition: color 0.15s;
}

.nav__logo:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
}

.nav__actions a {
  text-decoration: none;
}

.nav__actions a:hover {
  text-decoration: none;
  color: var(--accent);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.125rem, 2.5vw, 1.35rem);
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 36ch;
  margin: 0 auto;
}

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.card--ritual {
  border-left: 3px solid var(--accent);
  padding: 2rem 2rem 2.25rem;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.8125rem 1.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
  font-family: var(--font-sans);
  letter-spacing: 0.01em;
}

.btn--primary {
  background: var(--fg);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--fg);
  border: 1.5px solid var(--border);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.btn--accent {
  background: var(--accent);
  color: #fff;
}
.btn--accent:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.btn--sm { padding: 0.5rem 1.1rem; font-size: 0.875rem; }
.btn--full { width: 100%; text-align: center; display: block; }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 2rem;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  font-size: 0.9375rem;
}

.help-text {
  font-size: 0.825rem;
  color: var(--fg-muted);
  margin-top: 0.3rem;
  margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  transition: border-color 0.15s;
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
}

textarea { resize: vertical; min-height: 90px; }

select {
  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 1l5 5 5-5' stroke='%236B5D57' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.5rem;
}

.errorlist {
  list-style: none;
  color: #c0392b;
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

/* ── Landing ─────────────────────────────────────────────────────────────── */
.hero {
  padding: 5.5rem 0 4.5rem;
  text-align: center;
}

.hero__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
}

.hero__headline {
  margin-bottom: 1.5rem;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

.hero__sub {
  max-width: 54ch;
  margin: 0 auto 2.5rem;
  color: var(--fg-muted);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.hero__objection {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--fg-muted);
  font-style: italic;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 4rem 0;
}

.threshold-copy {
  max-width: 34ch;
  margin: 0 auto;
  text-align: center;
}

.threshold-copy p {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.85;
  color: var(--fg-muted);
}

.offer-card {
  text-align: center;
  padding: 3rem 2rem;
  border: 1px solid var(--border);
}

.ritual-trio {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.ritual-trio__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s;
}

.ritual-trio__item:hover {
  border-color: rgba(139, 98, 85, 0.25);
}

.ritual-trio__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
}

/* ── Status / Waiting ────────────────────────────────────────────────────── */
.status-pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--accent-light);
  color: var(--accent);
}

.step-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin: 2rem 0;
}

.step-list__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step-list__dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  margin-top: 0.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--fg-muted);
}

.step-list__dot--done {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* ── Results ─────────────────────────────────────────────────────────────── */
.blueprint-header {
  padding: 2rem 0 2.5rem;
  text-align: center;
}

.blueprint-header__title {
  max-width: 22ch;
  margin: 0 auto 1rem;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
}

.blueprint-header__intro {
  max-width: 50ch;
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--fg-muted);
}

.section-heading {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.archetype-tag {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-light);
  border-radius: 20px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 1.25rem;
}

.couple-map__title {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.couple-map__summary {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.couple-map__label {
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.625rem;
}

.couple-map__callout {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.couple-map__callout .couple-map__label {
  color: var(--accent);
}

.couple-map__callout-text {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--fg);
}

.couple-map__block {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--fg-muted);
}

.couple-map__section {
  margin-top: 1.75rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.couple-map__notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.couple-map__note {
  background: var(--bg-subtle);
  border-radius: 8px;
  padding: 1.125rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--fg);
}

.couple-map__dynamic {
  margin-top: 1.25rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fg-muted);
}

.couple-map__start {
  margin-top: 1.5rem;
  padding: 0.875rem 1.125rem;
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  display: inline-block;
  font-size: 0.9375rem;
}

.couple-map__start-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.ritual-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.ritual-tab {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.25rem;
  cursor: pointer;
  border: 1.5px solid var(--border);
  text-align: center;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow-sm);
}

.ritual-tab:hover {
  border-color: rgba(139, 98, 85, 0.35);
}

.ritual-tab--active {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: none;
}

.ritual-tab__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin-bottom: 0.35rem;
}

.ritual-tab__name {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  color: var(--fg);
}

.ritual-content {
  display: none;
}

.ritual-content--visible {
  display: block;
}

.ritual-body {
  line-height: 1.75;
  color: var(--fg);
  font-size: 1rem;
}

.ritual-body h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.ritual-body h2 {
  font-size: 1.125rem;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 2.25rem 0 1rem;
}

.ritual-body h3 {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.625rem;
  color: var(--fg);
}

.ritual-phase {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-wrap: wrap;
  margin: 1.75rem 0 0.625rem;
}

.ritual-body .ritual-phase__name {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1;
}

.ritual-phase__duration {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-style: normal;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid rgba(139, 98, 85, 0.22);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.ritual-phase__duration-icon {
  width: 0.9375rem;
  height: 0.9375rem;
  flex-shrink: 0;
}

.ritual-body p  { margin-bottom: 1rem; }
.ritual-body ul, .ritual-body ol { padding-left: 1.25rem; margin-bottom: 1.25rem; }
.ritual-body li { margin-bottom: 0.5rem; line-height: 1.65; }

.ritual-body blockquote {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  background: var(--bg-subtle);
  border-left: none;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-style: normal;
}

.ritual-body em { color: var(--fg-muted); font-style: italic; }
.ritual-body strong { font-weight: 600; }

/* Inline pause-and-reflect prompts (within ritual phases) */
.ritual-reflection {
  margin: 1.5rem 0;
  padding: 1.125rem 1.25rem;
  background: var(--bg-subtle);
  border: 1px dashed rgba(139, 98, 85, 0.35);
  border-radius: var(--radius-sm);
}

.ritual-reflection__label {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.ritual-reflection__text {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--fg);
  font-family: var(--font-serif);
  margin: 0;
}

/* Closing prompts — visually separate from the ritual flow */
.ritual-closing {
  margin-top: 2.5rem;
  padding: 1.75rem 1.875rem;
  background: var(--accent-light);
  border-radius: var(--radius);
  border: 1px solid rgba(139, 98, 85, 0.15);
}

.ritual-closing__label {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--fg);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.ritual-closing__prompts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.ritual-closing__prompts li {
  padding-left: 1.125rem;
  position: relative;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fg);
}

.ritual-closing__prompts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* Feedback CTA — distinct from content cards */
.feedback-cta {
  margin-top: 3rem;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: transparent;
}

.feedback-cta__label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 0.625rem;
}

.feedback-cta__title {
  font-size: 1.35rem;
  margin-bottom: 0.625rem;
}

.feedback-cta__text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 40ch;
  margin: 0 auto 1.5rem;
}

/* ── Intake / Preference forms ───────────────────────────────────────────── */
.form-header {
  padding: 0 0 1.25rem;
}

.form-header__eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
}

.form-header__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.2;
  margin-bottom: 0.625rem;
}

.form-header__intro {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 44ch;
}

.form-page label {
  font-size: 1rem;
  line-height: 1.45;
}

.form-page .help-text {
  font-size: 0.875rem;
  line-height: 1.55;
}

.form-page textarea {
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100px;
}

.question-number {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 0.25rem;
}

.intake-progress {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.intake-progress__bar {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* ── Messages ────────────────────────────────────────────────────────────── */
.messages {
  list-style: none;
  margin: 1rem 0;
}

.messages li {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.messages .success { background: #f0faf4; color: #1a6640; border: 1px solid #b7e6cc; }
.messages .error   { background: #fdf2f2; color: #8b1c1c; border: 1px solid #f5b7b7; }
.messages .info    { background: var(--accent-light); color: var(--accent); border: 1px solid #dbc8c0; }

/* ── Audio upload ────────────────────────────────────────────────────────── */
.audio-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: border-color 0.15s;
}

.audio-upload-area:hover { border-color: var(--accent); }

.upload-list { margin-top: 1.25rem; }

.upload-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.upload-status {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  background: var(--bg-subtle);
  color: var(--fg-muted);
}

.upload-status--transcribed { background: #f0faf4; color: #1a6640; }
.upload-status--failed { background: #fdf2f2; color: #8b1c1c; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .ritual-trio { grid-template-columns: 1fr; }
  .ritual-tabs { grid-template-columns: 1fr; }
  .hero { padding: 4rem 0 3rem; }
  .section { padding: 3rem 0; }
  .section--form { padding: 1.25rem 0 2.5rem; }
  .card { padding: 1.25rem; }
  .couple-map__notes { grid-template-columns: 1fr; }
}
