:root {
  --burgundy: #660e1f;
  --burgundy-dark: #470914;
  --cream: #f5efe7;
  --paper: #fffdf9;
  --charcoal: #1b1715;
  --muted: #766d68;
  --soft-gold: #c6a785;
  --line: #ded4ca;
  --shadow: 0 24px 70px rgba(63, 34, 30, .11);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--charcoal);
  background:
    radial-gradient(circle at 15% 10%, rgba(198, 167, 133, .16), transparent 30rem),
    var(--cream);
  font-family: "DM Sans", system-ui, sans-serif;
  transition: background-color .45s ease, color .45s ease;
}

body.here-again-stage {
  --burgundy: #ad783e;
  --burgundy-dark: #82562c;
  --soft-gold: #cfb08b;
  --cream: #f8f3ec;
  --paper: #fffefa;
  --line: #e3d5c5;
}

body.companion-stage {
  --burgundy: #660e1f;
  --burgundy-dark: #470914;
  --soft-gold: #c6a785;
  --cream: #f5efe7;
  --paper: #fffdf9;
  --line: #ded4ca;
}

button, textarea { font: inherit; }
button { font: inherit; }

.shell { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }

.brand {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--charcoal);
  text-decoration: none;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
}

.mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--burgundy);
  border-radius: 50%;
  font-family: "Libre Franklin", sans-serif;
  letter-spacing: -.08em;
}

.quiet-button {
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.card {
  min-height: 660px;
  margin: 18px 0 24px;
  padding: clamp(34px, 7vw, 86px);
  background: rgba(255, 253, 249, .94);
  border: 1px solid rgba(198, 167, 133, .45);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--burgundy);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
}

h1, h2 {
  max-width: 780px;
  margin: 0;
  font-family: "Libre Franklin", sans-serif;
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.04;
}

h1 { font-size: clamp(2.4rem, 6vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.5vw, 4rem); }

.lead {
  max-width: 690px;
  margin: 28px 0 0;
  color: #4f4743;
  font-size: clamp(1.05rem, 2vw, 1.26rem);
  line-height: 1.7;
}

.lead p { margin: 0 0 13px; }
.helper { max-width: 650px; margin: 18px 0 0; color: var(--muted); line-height: 1.55; }

.progress-wrap { margin: 0 0 42px; }
.progress-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; }
.track { height: 3px; margin-top: 12px; overflow: hidden; background: #e9e0d7; border-radius: 4px; }
.track span { display: block; height: 100%; background: var(--burgundy); transition: width .35s ease; }

textarea {
  width: 100%;
  min-height: 190px;
  margin-top: 30px;
  padding: 22px;
  resize: vertical;
  color: var(--charcoal);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  line-height: 1.6;
  transition: border-color .2s, box-shadow .2s;
}

textarea:focus { border-color: var(--soft-gold); box-shadow: 0 0 0 4px rgba(198,167,133,.15); }
textarea[readonly] { color: #5f5652; background: #f7f2ec; }

.saved { min-height: 20px; margin-top: 8px; color: var(--muted); font-size: .78rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }

.primary, .secondary {
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}
.primary { color: #fff; background: var(--burgundy); border: 1px solid var(--burgundy); }
.primary:hover { background: var(--burgundy-dark); }
.primary:disabled { opacity: .38; cursor: not-allowed; }
.secondary { color: var(--burgundy); background: transparent; border: 1px solid var(--soft-gold); }

.holding-note {
  display: flex;
  gap: 13px;
  max-width: 650px;
  margin-top: 34px;
  padding: 18px 20px;
  color: #514844;
  background: #f6efe8;
  border-radius: 14px;
  line-height: 1.5;
}
.holding-note::before { content: "✓"; color: var(--burgundy); font-weight: 700; }

.format-tabs { display: inline-flex; gap: 5px; margin-top: 34px; padding: 5px; background: #eee5dc; border-radius: 999px; }
.format-tabs button { padding: 10px 22px; color: var(--muted); background: transparent; border: 0; border-radius: 999px; cursor: pointer; font-weight: 600; }
.format-tabs button.active { color: var(--burgundy); background: var(--paper); box-shadow: 0 2px 12px rgba(50,30,25,.08); }
.lesson-copy { max-width: 710px; margin-top: 32px; color: #4f4743; font-size: 1.08rem; line-height: 1.75; }
.lesson-copy p { margin: 0 0 17px; }
.lesson-copy h3 { margin: 40px 0 16px; color: var(--burgundy); font-family: "Libre Franklin", sans-serif; font-size: 1.45rem; letter-spacing: -.025em; }
.lesson-copy ul, .lesson-copy ol { margin: 0 0 24px; padding-left: 24px; }
.lesson-copy li { margin-bottom: 9px; }
.lesson-copy blockquote { margin: 24px 0; padding: 18px 22px; color: #3f3834; background: #f6efe8; border-left: 3px solid var(--soft-gold); border-radius: 0 12px 12px 0; }
.cover-card { text-align: center; }
.cover-card h1 { max-width: 900px; margin-inline: auto; text-transform: uppercase; font-size: clamp(2.5rem, 6.5vw, 5.8rem); line-height: 1.02; }
.cover-card .eyebrow { text-align: center; }
.cover-subtitle { margin: 28px 0 0; color: var(--burgundy); font-family: "Libre Franklin", sans-serif; font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 600; line-height: 1.8; }
.cover-subtitle span { color: #b99a78; }
.cover-lines { display: grid; gap: 18px; max-width: 760px; margin: 34px auto; font-family: Georgia, serif; font-size: clamp(1.1rem, 2.2vw, 1.42rem); line-height: 1.65; }
.cover-lines strong { color: var(--burgundy); }
.cover-image { display: block; width: min(690px, 100%); margin: 36px auto 0; border-radius: 4px; }
.cover-card .actions { justify-content: center; }
.before-copy { margin-top: 28px; }
.field-label { display: block; margin: 26px 0 9px; color: var(--burgundy); font-weight: 600; }
.text-input { width: 100%; min-height: 50px; padding: 13px 15px; color: var(--charcoal); background: #fff; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.text-input:focus { outline: 2px solid rgba(102, 14, 31, .18); border-color: var(--burgundy); }
.area-list { columns: 2; column-gap: 42px; }
.question-guide { max-width: 700px; margin-top: 22px; padding: 18px 20px; color: #5f554f; background: #faf5ee; border-left: 3px solid var(--soft-gold); border-radius: 0 12px 12px 0; line-height: 1.65; }
.question-guide p { margin: 0; }
.bringing-together .lead strong { color: var(--burgundy); }
.commitment-section { max-width: 760px; margin-top: 38px; padding: 32px; background: #f6efe8; border-radius: 18px; }
.commitment-section h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
.commitment-section > p:not(.eyebrow):not(.commitment-line) { line-height: 1.7; }
.commitment-section label { display: block; margin-top: 26px; color: var(--burgundy); }
.commitment-line { margin: 20px 0 0; color: var(--burgundy); font-weight: 600; }
.commitment-pledge { margin: 24px 0; padding: 22px; color: var(--burgundy); background: #fff; border-left: 3px solid var(--soft-gold); border-radius: 0 12px 12px 0; line-height: 1.65; }
.commitment-pledge p { margin: 0; }
.commitment-pledge p + p { margin-top: 14px; }
.signature-grid { display: grid; grid-template-columns: 1fr 180px; gap: 18px; margin-top: 20px; }
.signature-grid label { margin-top: 0; }
.signature-grid .text-input { margin-top: 8px; }
.commitment-confirmation { min-height: 24px; color: var(--burgundy); font-weight: 600; }
.keepsake-actions { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.keepsake-actions .secondary:disabled { opacity: .4; cursor: not-allowed; }
.keepsake-actions p { margin: 10px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.print-keepsake { display: none; }
.final-card { overflow: hidden; }
.final-lead strong { color: var(--burgundy); }
.final-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 900px; margin-top: 42px; }
.final-summary > div { min-height: 180px; padding: 24px; background: #f6efe8; border-top: 3px solid var(--soft-gold); border-radius: 0 0 14px 14px; }
.final-summary span { color: var(--soft-gold); font-family: "Libre Franklin", sans-serif; font-size: 1.45rem; font-weight: 600; }
.final-summary p { margin: 24px 0 0; line-height: 1.65; }
.final-message { max-width: 780px; margin-top: 44px; padding: 34px; color: #2d211a; background: #c9a16f; border: 1px solid rgba(130, 86, 44, .28); border-radius: 20px; }
.final-message h2 { color: #2d211a; font-size: clamp(1.7rem, 3.5vw, 2.8rem); }
.final-message p { margin: 18px 0 0; color: #3f3026; line-height: 1.7; }
.final-reminder { max-width: 700px; margin-top: 30px; padding-left: 20px; border-left: 3px solid var(--soft-gold); }
.final-reminder p { margin: 0; color: #514844; font-family: Georgia, serif; font-size: 1.08rem; font-style: italic; line-height: 1.65; }
.final-actions { margin-top: 38px; }
.audio-card { display: flex; align-items: center; gap: 18px; max-width: 680px; margin-top: 32px; padding: 24px; background: #f6efe8; border: 1px solid var(--line); border-radius: 16px; }
.audio-card p { margin: 5px 0 0; color: var(--muted); }
.audio-card .audio-status { margin-top: 18px; font-size: .9rem; }
.audio-details { width: 100%; }
.audio-card audio { width: 100%; margin-top: 18px; accent-color: var(--burgundy); }
.audio-icon { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; color: white; background: var(--burgundy); border-radius: 50%; padding-left: 3px; }

.mirror { max-width: 760px; }
.mirror-section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.mirror-section h3 { margin: 0 0 11px; color: var(--burgundy); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.mirror-section p { margin: 0; font-size: 1.08rem; line-height: 1.65; }
.bridge { margin-top: 38px; padding: 28px; background: var(--burgundy); color: white; border-radius: 18px; }
.bridge p { margin: 0; line-height: 1.6; }
.bridge p + p { margin-top: 12px; }
.completion { max-width: 760px; margin-top: 38px; padding: 30px; color: var(--charcoal); background: #f6efe8; border-left: 4px solid var(--soft-gold); border-radius: 0 18px 18px 0; }
.completion h3 { margin: 0 0 14px; color: var(--burgundy); font-family: "Libre Franklin", sans-serif; font-size: 1.5rem; }
.completion p { margin: 0; line-height: 1.7; }
.completion p + p { margin-top: 12px; font-weight: 500; }

.privacy-note, .error-message {
  max-width: 700px;
  margin-top: 30px;
  padding: 20px 22px;
  color: #514844;
  background: #f6efe8;
  border: 1px solid var(--line);
  border-radius: 16px;
  line-height: 1.55;
}
.privacy-note p { margin: 7px 0 0; }
.companion-invitation { max-width: 700px; margin-top: 34px; padding: 26px; color: white; background: var(--burgundy); border-radius: 18px; }
.companion-invitation h2 { margin: 0 0 10px; color: white; font-size: clamp(1.5rem, 3vw, 2.25rem); }
.companion-invitation p { margin: 0; color: #f1dfd5; line-height: 1.6; }
.privacy-details { max-width: 700px; margin-top: 22px; color: var(--muted); font-size: .92rem; }
.privacy-details summary { cursor: pointer; color: var(--burgundy); font-weight: 600; }
.privacy-details p { margin: 12px 0 0; line-height: 1.6; }
.error-message { color: var(--burgundy-dark); border-color: rgba(102, 14, 31, .35); }

.centered-card { display: grid; align-content: center; justify-items: center; text-align: center; }
.centered-card .helper { text-align: center; }
.mirror-loader {
  width: 52px;
  height: 52px;
  margin-bottom: 28px;
  border: 3px solid #eadfd5;
  border-top-color: var(--burgundy);
  border-radius: 50%;
  animation: mirror-spin .9s linear infinite;
}
@keyframes mirror-spin { to { transform: rotate(360deg); } }

.thread-card {
  max-width: 760px;
  margin-top: 38px;
  padding: 30px;
  color: white;
  background: var(--burgundy);
  border-radius: 18px;
}
.thread-card .eyebrow { color: #e7cfb7; }
.thread-card > p:last-child { margin: 0; font-size: 1.18rem; line-height: 1.7; }

.accuracy-check {
  max-width: 760px;
  margin-top: 38px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.accuracy-check.confirmed { background: #f6efe8; }
.accuracy-check.confirmed h3 { margin: 0 0 8px; color: var(--burgundy); }
.accuracy-check.confirmed p { margin: 0; line-height: 1.6; }
.accuracy-actions { display: grid; gap: 10px; }
.accuracy-actions .secondary { min-height: 48px; text-align: left; }
.correction-box { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.correction-box label { display: block; font-weight: 600; }
.correction-box textarea { min-height: 130px; margin: 12px 0 16px; }

@media (prefers-reduced-motion: reduce) {
  .mirror-loader { animation: none; }
}

@media print {
  @page { size: letter; margin: .65in; }
  * { box-shadow: none !important; }
  body, body.here-again-stage, body.companion-stage { color: #211a18; background: #fff; }
  .shell { width: 100%; margin: 0; }
  .brand, footer, #app > .card > :not(.print-keepsake) { display: none !important; }
  #app, #app > .card { display: block; min-height: 0; margin: 0; padding: 0; background: #fff; border: 0; }
  .print-keepsake { display: block !important; color: #211a18; font-family: Georgia, serif; }
  .print-title { margin-bottom: 32px; padding-bottom: 22px; text-align: center; border-bottom: 2px solid #660e1f; }
  .print-title > p:first-child { margin: 0 0 8px; color: #96724f; font-family: "DM Sans", sans-serif; font-size: 9pt; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
  .print-title h1 { margin: 0; color: #660e1f; font-size: 28pt; letter-spacing: -.02em; }
  .print-title > p:last-child { margin: 10px 0 0; font-size: 11pt; }
  .print-section, .print-thread { break-inside: avoid; margin: 0 0 18px; }
  .print-section h2, .print-thread h2, .print-personal h2 { margin: 0 0 6px; color: #660e1f; font-family: "DM Sans", sans-serif; font-size: 9pt; font-weight: 600; letter-spacing: .08em; line-height: 1.35; text-transform: uppercase; }
  .print-section p, .print-thread p, .print-personal p { margin: 0; font-size: 11pt; line-height: 1.55; }
  .print-thread { padding: 18px 20px; color: #fff; background: #660e1f !important; border-radius: 8px; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .print-thread h2 { color: #e8cfb5; }
  .print-commitment { break-inside: avoid; margin-top: 28px; padding: 22px; background: #f6efe8 !important; border-left: 4px solid #c6a785; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .print-commitment > p { margin: 0 0 12px; font-size: 11pt; line-height: 1.55; }
  .print-label { color: #660e1f; font-family: "DM Sans", sans-serif; font-size: 9pt !important; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
  .print-personal { margin: 20px 0; padding-top: 16px; border-top: 1px solid #d8c9bb; }
  .print-signature { display: flex; justify-content: space-between; gap: 30px; margin-top: 24px; font-size: 10pt; }
  .print-signature span { min-width: 42%; padding-bottom: 5px; border-bottom: 1px solid #7b6e66; }
  .print-footnote { margin: 24px 0 0; color: #71665f; font-size: 8.5pt; line-height: 1.5; text-align: center; }
}

.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 0 6px 32px; color: var(--muted); font-size: .75rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px; }
.footer-links button, .footer-links a, .legal-small button, .legal-consent button { padding: 0; color: var(--muted); background: transparent; border: 0; cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-links button:hover, .footer-links a:hover, .legal-small button:hover, .legal-consent button:hover { color: var(--burgundy); }
.legal-gate { min-height: 600px; }
.legal-consent { display: flex; align-items: flex-start; gap: 13px; max-width: 720px; margin-top: 34px; padding: 20px; background: #f6efe8; border: 1px solid var(--line); border-radius: 14px; line-height: 1.55; }
.legal-consent input { width: 19px; height: 19px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--burgundy); }
.legal-consent button, .legal-small button { color: var(--burgundy); font-weight: 600; }
.legal-small { max-width: 700px; margin: 16px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.legal-dialog { width: min(820px, calc(100% - 28px)); max-height: min(88vh, 900px); padding: 0; color: var(--charcoal); background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 28px 90px rgba(32, 18, 16, .28); }
.legal-dialog::backdrop { background: rgba(27, 23, 21, .56); backdrop-filter: blur(3px); }
.legal-dialog-inner { position: relative; padding: clamp(30px, 6vw, 64px); }
.legal-close { position: sticky; top: 0; z-index: 2; float: right; width: 42px; height: 42px; display: grid; place-items: center; margin: -12px -12px 8px 18px; color: var(--charcoal); background: var(--cream); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; font-size: 1.6rem; line-height: 1; }
.legal-dialog article { max-width: 690px; }
.legal-dialog h1 { font-size: clamp(2.1rem, 6vw, 4rem); }
.legal-dialog h2 { margin: 34px 0 10px; color: var(--burgundy); font-size: 1.15rem; letter-spacing: -.015em; line-height: 1.3; }
.legal-dialog p { margin: 12px 0 0; line-height: 1.7; }
.legal-dialog a { color: var(--burgundy); }
.crisis-emergency { margin: 28px 0; padding: 20px 22px; color: var(--burgundy-dark); background: #f6efe8; border-left: 4px solid var(--burgundy); border-radius: 0 12px 12px 0; line-height: 1.55; }

@media (max-width: 640px) {
  .shell { width: min(100% - 20px, 1080px); }
  .brand { min-height: 72px; }
  .wordmark span:last-child { display: none; }
  .card { min-height: calc(100vh - 145px); margin-top: 8px; border-radius: 20px; }
  .site-footer { align-items: flex-start; padding: 4px 4px 24px; }
  .site-footer > span { display: none; }
  .footer-links { justify-content: center; width: 100%; gap: 10px 16px; }
  .area-list { columns: 1; }
  .cover-card { padding-inline: 24px; }
  .commitment-section { padding: 24px; }
  .signature-grid { grid-template-columns: 1fr; }
  .final-summary { grid-template-columns: 1fr; }
  .final-summary > div { min-height: 0; }
  .final-message { padding: 26px; }
}


/* Companion account home */
body.companion-home{
  background:#f3eee6;
}
.companion-dashboard{margin:18px 0 44px}
.dashboard-hero{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(340px,.98fr);min-height:520px;overflow:hidden;background:#f8f3eb;border:1px solid rgba(174,133,86,.28);box-shadow:0 28px 90px rgba(42,31,24,.10)}
.dashboard-hero-copy{display:flex;flex-direction:column;justify-content:center;padding:clamp(44px,7vw,84px)}
.dashboard-kicker,.dashboard-label{margin:0 0 18px;color:#9b744c;font-size:.72rem;font-weight:700;letter-spacing:.18em}
.dashboard-hero h1{max-width:620px;font-family:"Cormorant Garamond",Georgia,serif;font-size:clamp(3.1rem,6vw,5.8rem);font-weight:500;letter-spacing:-.035em;line-height:.96}
.dashboard-lead{max-width:540px;margin:24px 0 0;color:#625c56;font-size:1.08rem;line-height:1.7}
.dashboard-primary{align-self:flex-start;margin-top:34px;padding:16px 24px;border:1px solid #8f653e;background:#9d744d;color:#fff;font:700 .78rem "Manrope",sans-serif;letter-spacing:.10em;cursor:pointer}
.dashboard-primary span{margin-left:16px}
.dashboard-hero-image{min-height:420px;background:linear-gradient(90deg,rgba(248,243,235,.10),rgba(248,243,235,0)),url("/assets/cover.jpg") center/cover no-repeat}
.dashboard-progress{display:flex;align-items:end;justify-content:space-between;gap:28px;padding:36px 4px 28px;border-bottom:1px solid rgba(97,82,68,.16)}
.dashboard-progress h2{font-family:"Cormorant Garamond",Georgia,serif;font-size:clamp(2rem,4vw,3.4rem);font-weight:500;letter-spacing:-.025em}
.dashboard-days{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.dashboard-days span{padding:8px 12px;border:1px solid rgba(72,65,59,.15);color:#877f78;font-size:.76rem}
.dashboard-days span.done{background:#31565f;border-color:#31565f;color:#fff}
.dashboard-days span.current{border-color:#ae8556;color:#76502f}
.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}
.dashboard-tile{display:grid;grid-template-columns:44px 1fr 24px;align-items:start;gap:16px;min-height:180px;padding:28px;text-align:left;background:#fffaf3;border:1px solid rgba(174,133,86,.24);cursor:pointer}
.dashboard-tile:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 15px 35px rgba(51,39,29,.07)}
.dashboard-tile:disabled{cursor:default}
.dashboard-tile-soft{background:#eee8df;opacity:.72}
.tile-index{color:#b08a62;font-family:"Cormorant Garamond",serif;font-size:1.25rem}
.tile-copy{display:grid;gap:8px}
.tile-copy small{color:#9b744c;font-size:.68rem;font-weight:700;letter-spacing:.14em}
.tile-copy strong{font-family:"Cormorant Garamond",Georgia,serif;font-size:1.75rem;font-weight:500;line-height:1.05}
.tile-copy em{color:#756e68;font-size:.9rem;font-style:normal;line-height:1.55}
.tile-arrow{color:#9d744d;font-size:1.35rem}
.dashboard-account-note{max-width:680px;margin:24px auto 0;color:#7b746e;font-size:.84rem;line-height:1.55;text-align:center}
@media(max-width:820px){
  .dashboard-hero{grid-template-columns:1fr}
  .dashboard-hero-image{order:-1;min-height:270px}
  .dashboard-hero-copy{padding:36px 28px 44px}
  .dashboard-progress{align-items:flex-start;flex-direction:column;padding-inline:4px}
  .dashboard-days{justify-content:flex-start}
  .dashboard-grid{grid-template-columns:1fr}
}
@media(max-width:520px){
  .shell{width:min(100% - 20px,1080px)}
  .dashboard-hero h1{font-size:3.25rem}
  .dashboard-tile{grid-template-columns:36px 1fr 20px;padding:22px}
}


/* Ongoing membership Companion */
.companion-chat-shell{max-width:900px;margin:18px auto 44px}
.chat-back{margin:0 0 24px;padding:0;border:0;background:transparent;color:#7a6e63;cursor:pointer;font:600 .86rem "Manrope",sans-serif}
.chat-heading{padding:42px 0 28px;border-bottom:1px solid rgba(97,82,68,.16)}
.chat-heading h1{font-family:"Cormorant Garamond",Georgia,serif;font-size:clamp(3rem,6vw,5rem);font-weight:500;line-height:.98;letter-spacing:-.035em}
.chat-heading p:last-child{max-width:680px;margin:20px 0 0;color:#6d665f;line-height:1.7}
.chat-history{display:grid;gap:22px;max-height:58vh;overflow:auto;padding:34px 0}
.chat-message{display:grid;gap:7px}
.chat-message-user{justify-items:end}
.chat-role{color:#9b744c;font-size:.66rem;font-weight:700;letter-spacing:.16em}
.chat-bubble{max-width:min(700px,88%);padding:18px 20px;background:#fffaf3;border:1px solid rgba(174,133,86,.22);line-height:1.65}
.chat-message-user .chat-bubble{background:#31565f;color:#fff;border-color:#31565f}
.chat-error .chat-bubble{border-color:rgba(102,14,31,.25);color:#660e1f}
.chat-empty,.chat-loading{padding:36px;text-align:center;color:#746d66;border:1px solid rgba(174,133,86,.20);background:rgba(255,250,243,.65)}
.chat-empty{display:grid;gap:8px}
.chat-empty strong{font-family:"Cormorant Garamond",Georgia,serif;font-size:2rem;font-weight:500;color:#2b2927}
.chat-composer{position:sticky;bottom:12px;padding:16px;background:rgba(248,243,235,.96);border:1px solid rgba(174,133,86,.30);box-shadow:0 18px 50px rgba(48,38,28,.10);backdrop-filter:blur(10px)}
.chat-composer textarea{min-height:94px;margin:0;padding:14px 16px;border-radius:0;background:#fffdf9}
.chat-composer-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:10px}
.chat-composer-footer span{color:#837a72;font-size:.75rem}
.chat-composer-footer .dashboard-primary{margin-top:0}
.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:640px){
  .companion-chat-shell{margin-top:8px}
  .chat-heading{padding-top:24px}
  .chat-bubble{max-width:94%}
  .chat-composer-footer{align-items:stretch;flex-direction:column}
  .chat-composer-footer span{order:2}
  .chat-composer-footer .dashboard-primary{width:100%}
}


/* ===== HERE AGAIN / INTEGRATION COMPANION — LOCKED VISUAL SYSTEM ===== */
:root{
  --ha-gold:#A7743E;
  --ha-gold-deep:#7E542C;
  --ha-gold-soft:#C6A47B;
  --ha-charcoal:#262421;
  --ha-charcoal-soft:#5E5953;
  --ha-cream:#F7F2EB;
  --ha-paper:#FFFDF9;
  --ha-stone:#D8D0C6;
  --ha-burgundy:#6D1F2B;
}

body.companion-home{
  color:var(--ha-charcoal);
  background:
    radial-gradient(circle at 82% 8%, rgba(198,164,123,.16), transparent 28rem),
    linear-gradient(180deg,#f8f4ee 0%,#f4efe8 48%,#efe8df 100%);
}

body.companion-home .brand{
  border-bottom:1px solid rgba(126,84,44,.13);
}

body.companion-home .wordmark{
  color:var(--ha-charcoal);
}

body.companion-home .mark{
  color:var(--ha-gold);
  background:transparent;
  border:1px solid rgba(167,116,62,.45);
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:1rem;
  letter-spacing:.08em;
}

.companion-dashboard{margin:18px 0 48px}

.dashboard-hero{
  grid-template-columns:minmax(0,1.03fr) minmax(360px,.97fr);
  min-height:545px;
  background:rgba(255,253,249,.90);
  border:1px solid rgba(167,116,62,.22);
  box-shadow:0 30px 90px rgba(61,43,28,.09);
}

.dashboard-hero-copy{padding:clamp(48px,7vw,88px)}

.dashboard-kicker{
  margin:0 0 9px;
  color:var(--ha-gold);
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:clamp(1.55rem,2.4vw,2.15rem);
  font-weight:500;
  letter-spacing:.20em;
}

.dashboard-product{
  margin:0 0 28px;
  color:var(--ha-charcoal-soft);
  font-family:"Manrope",sans-serif;
  font-size:.70rem;
  font-weight:600;
  letter-spacing:.18em;
}

.dashboard-hero h1,
.chat-heading h1{
  color:var(--ha-charcoal);
  font-family:"Cormorant Garamond",Georgia,serif;
  font-weight:500;
}

.dashboard-lead,
.chat-heading p:last-child{
  color:var(--ha-charcoal-soft);
}

.dashboard-primary{
  border:1px solid var(--ha-burgundy);
  background:var(--ha-burgundy);
  color:#fff;
  box-shadow:none;
}

.dashboard-primary:hover{
  background:#571822;
  border-color:#571822;
}

.dashboard-hero-image{
  position:relative;
  min-height:440px;
  background:
    linear-gradient(90deg,rgba(255,253,249,.14),rgba(255,253,249,0)),
    linear-gradient(180deg,rgba(78,44,25,.02),rgba(78,44,25,.16)),
    url("/assets/cover.jpg") center/cover no-repeat;
}

.dashboard-hero-image::after{
  content:"";
  position:absolute;
  inset:auto 22px 22px auto;
  width:74px;
  height:1px;
  background:rgba(255,248,239,.8);
}

.dashboard-label,
.tile-copy small{
  color:var(--ha-gold);
}

.dashboard-progress{
  border-bottom:1px solid rgba(64,57,50,.14);
}

.dashboard-progress h2,
.tile-copy strong{
  color:var(--ha-charcoal);
}

.dashboard-days span{
  border-color:rgba(64,57,50,.16);
  color:#777069;
  background:rgba(255,253,249,.45);
}

.dashboard-days span.done{
  background:var(--ha-gold);
  border-color:var(--ha-gold);
  color:#fff;
}

.dashboard-days span.current{
  border-color:var(--ha-gold);
  color:var(--ha-gold-deep);
}

.dashboard-grid{gap:16px;margin-top:20px}

.dashboard-tile{
  background:rgba(255,253,249,.88);
  border:1px solid rgba(167,116,62,.20);
  box-shadow:0 10px 28px rgba(49,39,30,.035);
}

.dashboard-tile:hover:not(:disabled){
  border-color:rgba(167,116,62,.38);
  box-shadow:0 16px 38px rgba(49,39,30,.075);
}

.dashboard-tile-soft{
  background:rgba(232,225,216,.72);
  opacity:.82;
}

.tile-index,
.tile-arrow{
  color:var(--ha-gold);
}

.tile-copy em,
.dashboard-account-note{
  color:#746d66;
}

.companion-chat-shell{
  color:var(--ha-charcoal);
}

.chat-back{
  color:#7A7168;
}

.chat-heading{
  border-bottom:1px solid rgba(64,57,50,.14);
}

.chat-role{
  color:var(--ha-gold);
}

.chat-bubble{
  background:var(--ha-paper);
  border:1px solid rgba(167,116,62,.18);
  color:var(--ha-charcoal);
}

.chat-message-user .chat-bubble{
  background:var(--ha-burgundy);
  border-color:var(--ha-burgundy);
  color:#fff;
}

.chat-empty,.chat-loading{
  color:#746d66;
  border-color:rgba(167,116,62,.18);
  background:rgba(255,253,249,.72);
}

.chat-empty strong{
  color:var(--ha-charcoal);
}

.chat-composer{
  background:rgba(247,242,235,.96);
  border-color:rgba(167,116,62,.25);
  box-shadow:0 18px 50px rgba(48,38,28,.08);
}

.chat-composer textarea{
  color:var(--ha-charcoal);
  background:var(--ha-paper);
  border-color:rgba(90,76,62,.18);
}

/* Footer ownership: present, elegant, never competing with the experience */
.site-footer{
  margin-top:auto;
  padding:30px 6px 32px;
  border-top:1px solid rgba(86,75,65,.11);
}

.footer-brand{
  display:grid;
  gap:3px;
  line-height:1.45;
}

.footer-brand strong{
  color:#4D4944;
  font-weight:600;
}

.footer-brand a{
  color:inherit;
  text-decoration:none;
}

.footer-brand a:hover{
  color:var(--ha-gold-deep);
}

@media(max-width:820px){
  .dashboard-hero{
    grid-template-columns:1fr;
  }
  .dashboard-hero-image{
    order:-1;
    min-height:290px;
  }
  .dashboard-hero-copy{
    padding:38px 28px 46px;
  }
}

@media(max-width:640px){
  .dashboard-kicker{
    font-size:1.45rem;
  }
  .dashboard-product{
    margin-bottom:22px;
  }
  .site-footer{
    align-items:center;
    flex-direction:column;
    gap:14px;
    padding:24px 4px 28px;
    text-align:center;
  }
  .footer-brand{
    justify-items:center;
  }
}


/* ===== YOUR INTEGRATION SPACE — SANCTUARY HOME ===== */
:root{
  --is-burgundy:#671E2A;
  --is-burgundy-deep:#4F151E;
  --is-ink:#2E2925;
  --is-muted:#6D645D;
  --is-cream:#F7F1EA;
  --is-paper:#FFFCF7;
  --is-champagne:#CBB69E;
  --is-bronze:#9B7756;
  --is-line:rgba(83,65,52,.15);
}

body.companion-home{
  color:var(--is-ink);
  background:
    radial-gradient(circle at 14% 0%,rgba(166,127,92,.10),transparent 30rem),
    linear-gradient(180deg,#F8F3ED 0%,#F3ECE4 58%,#EFE6DC 100%);
}

body.companion-home .brand{
  min-height:78px;
  border-bottom:1px solid rgba(80,62,49,.10);
}

body.companion-home .wordmark{
  color:var(--is-ink);
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:.92rem;
  font-weight:500;
  letter-spacing:.18em;
}

.companion-dashboard{margin:10px 0 52px}

.dashboard-hero{
  grid-template-columns:minmax(0,.92fr) minmax(390px,1.08fr);
  min-height:535px;
  background:var(--is-paper);
  border:1px solid rgba(108,81,60,.15);
  box-shadow:0 28px 78px rgba(53,38,27,.08);
}

.dashboard-hero-copy{
  position:relative;
  z-index:2;
  padding:clamp(44px,6.5vw,82px);
  background:
    radial-gradient(circle at 10% 5%,rgba(204,182,157,.18),transparent 20rem),
    linear-gradient(120deg,rgba(255,252,247,.99),rgba(255,252,247,.93));
}

.dashboard-kicker{
  margin:0 0 9px;
  color:var(--is-burgundy);
  font-family:"Manrope",sans-serif;
  font-size:.69rem;
  font-weight:700;
  letter-spacing:.19em;
}

.dashboard-product{
  margin:0 0 30px;
  color:var(--is-bronze);
  font-size:.66rem;
  letter-spacing:.17em;
}

.dashboard-hero h1{
  max-width:560px;
  color:var(--is-ink);
  font-size:clamp(3.2rem,5.6vw,5.55rem);
  line-height:.94;
}

.dashboard-lead{
  max-width:500px;
  margin-top:22px;
  color:var(--is-muted);
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:clamp(1.2rem,2vw,1.46rem);
  line-height:1.55;
}

.dashboard-primary{
  margin-top:30px;
  padding:15px 22px;
  border:1px solid var(--is-burgundy);
  border-radius:999px;
  background:var(--is-burgundy);
  color:#fff;
  font-size:.69rem;
  letter-spacing:.11em;
}

.dashboard-primary:hover{
  background:var(--is-burgundy-deep);
  border-color:var(--is-burgundy-deep);
}

.dashboard-hero-image{
  min-height:535px;
  background:
    linear-gradient(90deg,rgba(255,252,247,.18),rgba(255,252,247,0) 24%),
    linear-gradient(180deg,rgba(58,36,22,.01),rgba(58,36,22,.10)),
    url("/Golden-Hour%20Coastal%20Retreat.png") 47% center/cover no-repeat;
}

.dashboard-hero-image::after{
  width:90px;
  right:28px;
  bottom:28px;
  background:rgba(255,250,242,.76);
}

.dashboard-section-heading{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:32px;
  padding:38px 4px 22px;
  border-bottom:1px solid var(--is-line);
}

.dashboard-section-heading h2{
  margin:0;
  color:var(--is-ink);
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:clamp(2rem,3.5vw,3rem);
  font-weight:500;
  letter-spacing:-.02em;
}

.dashboard-section-heading>div>.dashboard-label{margin-bottom:7px}

.dashboard-section-heading>p{
  max-width:410px;
  margin:0;
  color:var(--is-muted);
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:1.05rem;
  line-height:1.5;
}

.dashboard-label,
.tile-copy small{
  color:var(--is-burgundy);
}

.dashboard-home-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-top:16px;
}

.dashboard-tile{
  grid-template-columns:34px minmax(0,1fr);
  grid-template-rows:auto 1fr auto;
  gap:14px 12px;
  min-height:235px;
  padding:24px 22px;
  overflow:hidden;
  background:rgba(255,252,247,.91);
  border:1px solid rgba(94,74,59,.14);
  box-shadow:none;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}

.dashboard-tile .tile-copy{grid-column:1/-1}
.dashboard-tile .tile-arrow{grid-column:2;grid-row:1;justify-self:end}
.dashboard-tile .tile-index{grid-column:1;grid-row:1}

.dashboard-tile:hover:not(:disabled){
  transform:translateY(-2px);
  border-color:rgba(103,30,42,.26);
  box-shadow:0 15px 32px rgba(53,39,29,.06);
}

.dashboard-tile-current{
  background:
    linear-gradient(180deg,rgba(255,252,247,.92),rgba(255,252,247,.97)),
    url("/Golden-Hour%20Coastal%20Retreat.png") center/cover no-repeat;
}

.dashboard-tile-locked{
  background:rgba(237,230,221,.62);
  opacity:.82;
}

.tile-index{
  color:var(--is-champagne);
  font-size:1rem;
}

.tile-copy strong{
  color:var(--is-ink);
  font-size:1.6rem;
  line-height:1.08;
}

.tile-copy em{
  color:var(--is-muted);
  font-size:.86rem;
  line-height:1.52;
}

.tile-arrow{
  color:var(--is-burgundy);
  font-family:"Manrope",sans-serif;
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.08em;
}

.dashboard-feature-row{
  display:grid;
  grid-template-columns:minmax(0,.92fr) minmax(0,1.38fr);
  gap:14px;
  margin-top:18px;
}

.membership-feature,
.here-again-feature{
  min-width:0;
  border:1px solid rgba(94,74,59,.15);
  background:rgba(255,252,247,.92);
}

.membership-feature{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:300px;
  padding:34px;
  background:
    radial-gradient(circle at 92% 8%,rgba(168,132,98,.12),transparent 15rem),
    linear-gradient(145deg,#FCF8F2,#F4ECE3);
}

.membership-feature h2,
.here-again-feature h2{
  margin:0;
  color:var(--is-ink);
  font-family:"Cormorant Garamond",Georgia,serif;
  font-weight:500;
  letter-spacing:-.02em;
}

.membership-feature h2{
  max-width:480px;
  font-size:clamp(2rem,3.4vw,3rem);
  line-height:1.02;
}

.membership-feature>p:not(.dashboard-label){
  max-width:520px;
  margin:16px 0 0;
  color:var(--is-muted);
  line-height:1.65;
}

.feature-note{
  display:inline-block;
  align-self:flex-start;
  margin-top:22px;
  padding-top:14px;
  color:var(--is-burgundy);
  border-top:1px solid rgba(103,30,42,.16);
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.here-again-feature{
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(240px,.92fr);
  overflow:hidden;
  min-height:300px;
}

.here-again-feature-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:34px;
  background:
    radial-gradient(circle at 15% 15%,rgba(204,174,136,.18),transparent 18rem),
    #FBF6EE;
}

.here-again-feature .dashboard-label{
  color:#A7743E;
}

.here-again-feature h2{
  font-size:clamp(1.8rem,3vw,2.75rem);
  line-height:1.04;
}

.here-again-feature-copy>p:not(.dashboard-label){
  margin:15px 0 0;
  color:#665C53;
  line-height:1.6;
}

.here-again-feature .feature-note{
  color:#8A6139;
  border-top-color:rgba(167,116,62,.20);
}

.here-again-feature-image{
  min-height:300px;
  background:
    linear-gradient(90deg,rgba(251,246,238,.05),rgba(251,246,238,0)),
    linear-gradient(180deg,rgba(63,39,22,0),rgba(63,39,22,.18)),
    url("/assets/cover.jpg") center/cover no-repeat;
}

.dashboard-account-note{
  margin-top:25px;
  color:#7A7068;
}

.chat-heading .dashboard-kicker{
  color:var(--is-burgundy);
  font-family:"Manrope",sans-serif;
  font-size:.69rem;
  letter-spacing:.19em;
}

.chat-message-user .chat-bubble{
  background:var(--is-burgundy);
  border-color:var(--is-burgundy);
}

.chat-role{color:var(--is-burgundy)}
.profile-nav-initial{background:var(--is-burgundy)}

@media(max-width:1000px){
  .dashboard-home-grid{grid-template-columns:1fr 1fr}
}

@media(max-width:820px){
  .dashboard-hero{
    grid-template-columns:1fr;
    min-height:0;
  }
  .dashboard-hero-image{
    order:-1;
    min-height:320px;
    background-position:52% center;
  }
  .dashboard-hero-copy{
    padding:38px 28px 44px;
  }
  .dashboard-section-heading{
    align-items:flex-start;
    flex-direction:column;
    gap:10px;
  }
  .dashboard-feature-row{grid-template-columns:1fr}
}

@media(max-width:640px){
  body.companion-home .wordmark #brandName{display:inline}
  .dashboard-hero-image{min-height:255px}
  .dashboard-hero h1{font-size:3.25rem}
  .dashboard-home-grid{grid-template-columns:1fr}
  .dashboard-tile{min-height:175px}
  .here-again-feature{grid-template-columns:1fr}
  .here-again-feature-image{min-height:220px}
  .membership-feature,.here-again-feature-copy{padding:28px 24px}
}

@media(max-width:640px){.wordmark #brandName{display:inline}}


/* ===== APPROVED HYBRID MOCKUP — FINAL HOME COMPOSITION ===== */
body.companion-home .shell{
  width:min(1280px,calc(100% - 28px));
}
body.companion-home .brand{
  display:grid;
  grid-template-columns:minmax(180px,.7fr) minmax(0,1.3fr);
  align-items:center;
  gap:24px;
  min-height:86px;
  padding:0 4px;
}
body.companion-home .wordmark{
  justify-self:start;
  max-width:220px;
  color:#4d382e;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:1.04rem;
  line-height:1.05;
  letter-spacing:.18em;
}
body.companion-home .quiet-button#resetButton[hidden]{display:none!important}

.space-toolbar-header{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:4px;
  margin:0;
  padding:0;
}
.space-toolbar-header .space-nav{
  min-height:38px;
  padding:8px 12px;
  border:0;
  border-bottom:1px solid transparent;
  background:transparent;
  color:#6d625a;
  font:600 .68rem "Manrope",sans-serif;
  letter-spacing:.05em;
}
.space-toolbar-header .space-nav:hover,
.space-toolbar-header .space-nav.active{
  color:#671E2A;
  border-bottom-color:rgba(103,30,42,.45);
  background:transparent;
}
.space-toolbar-header .profile-nav{
  margin-left:8px;
  padding-left:15px;
  border-left:1px solid rgba(78,61,49,.12);
}
.space-toolbar-header .profile-nav img,
.space-toolbar-header .profile-nav-initial{
  width:28px;
  height:28px;
}

.sanctuary-dashboard{
  margin:0 0 54px;
}
.sanctuary-hero{
  position:relative;
  min-height:520px;
  overflow:hidden;
  border:1px solid rgba(89,69,55,.14);
  background:
    linear-gradient(90deg,rgba(250,245,239,.86) 0%,rgba(250,245,239,.63) 33%,rgba(250,245,239,.06) 62%,rgba(250,245,239,0) 100%),
    linear-gradient(180deg,rgba(51,31,18,.02),rgba(51,31,18,.11)),
    url("/Golden-Hour%20Coastal%20Retreat.png") center/cover no-repeat;
  box-shadow:0 28px 78px rgba(47,34,25,.09);
}
.sanctuary-hero-overlay{
  display:flex;
  align-items:center;
  min-height:520px;
  padding:clamp(46px,7vw,88px);
}
.sanctuary-hero-copy{
  position:relative;
  z-index:2;
  width:min(540px,58%);
}
.sanctuary-eyebrow{
  margin:0 0 14px;
  color:#7b4e3c;
  font:700 .68rem "Manrope",sans-serif;
  letter-spacing:.20em;
}
.sanctuary-hero h1{
  margin:0;
  max-width:520px;
  color:#4b3025;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:clamp(3.35rem,6.1vw,5.8rem);
  font-weight:500;
  line-height:.93;
  letter-spacing:-.035em;
}
.sanctuary-hero-copy>p:not(.sanctuary-eyebrow){
  max-width:470px;
  margin:24px 0 0;
  color:#5f534b;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:clamp(1.22rem,2vw,1.5rem);
  line-height:1.55;
}
.sanctuary-button{
  min-height:48px;
  margin-top:29px;
  padding:0 25px;
  border:1px solid #6d2330;
  border-radius:999px;
  background:#6d2330;
  color:#fff;
  cursor:pointer;
  font:700 .68rem "Manrope",sans-serif;
  letter-spacing:.09em;
}
.sanctuary-button:hover{background:#561923;border-color:#561923}
.sanctuary-button span{margin-left:16px}

.sanctuary-current{padding-top:31px}
.sanctuary-section-intro{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:30px;
  padding:0 4px 20px;
}
.sanctuary-section-intro h2{
  margin:0;
  color:#352c27;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:clamp(2rem,3.4vw,2.9rem);
  font-weight:500;
  letter-spacing:-.02em;
}
.sanctuary-section-intro .sanctuary-eyebrow{margin-bottom:7px}
.sanctuary-section-intro>p{
  max-width:410px;
  margin:0;
  color:#766d65;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:1.02rem;
  line-height:1.5;
}

.sanctuary-card-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.sanctuary-card{
  display:grid;
  grid-template-columns:36px minmax(0,1fr);
  grid-template-rows:auto 1fr 112px;
  min-width:0;
  min-height:330px;
  padding:22px 18px 0;
  overflow:hidden;
  text-align:left;
  border:1px solid rgba(91,71,57,.15);
  background:#fffaf4;
  color:#352d28;
  cursor:pointer;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.sanctuary-card:hover:not(:disabled){
  transform:translateY(-2px);
  border-color:rgba(103,30,42,.26);
  box-shadow:0 16px 36px rgba(50,36,27,.07);
}
.sanctuary-card:disabled{cursor:default}
.sanctuary-card-icon{
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  color:#8f684c;
  border:1px solid rgba(143,104,76,.28);
  border-radius:50%;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:1.2rem;
}
.sanctuary-card-copy{
  display:flex;
  flex-direction:column;
  min-width:0;
  padding:1px 0 18px 10px;
}
.sanctuary-card-copy small{
  color:#8b5a48;
  font:700 .62rem "Manrope",sans-serif;
  letter-spacing:.17em;
}
.sanctuary-card-copy strong{
  margin-top:8px;
  color:#403028;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:1.48rem;
  font-weight:500;
  line-height:1.06;
}
.sanctuary-card-copy em{
  margin-top:10px;
  color:#756d66;
  font-size:.83rem;
  font-style:normal;
  line-height:1.47;
}
.sanctuary-card-copy b{
  margin-top:auto;
  padding-top:16px;
  color:#7b4e3c;
  font:700 .61rem "Manrope",sans-serif;
  letter-spacing:.12em;
}
.sanctuary-card-image{
  grid-column:1/-1;
  width:calc(100% + 36px);
  height:112px;
  margin-left:-18px;
  align-self:end;
  background-size:cover;
  background-position:center;
  border-top:1px solid rgba(88,67,52,.08);
}
.sanctuary-image-current{
  background:
    linear-gradient(180deg,rgba(255,248,239,.04),rgba(76,48,29,.08)),
    url("/Golden-Hour%20Coastal%20Retreat.png") 37% 62%/cover no-repeat;
}
.sanctuary-image-companion{
  background:
    linear-gradient(180deg,rgba(255,248,239,.06),rgba(77,49,31,.08)),
    url("/Golden-Hour%20Coastal%20Retreat.png") 78% 74%/cover no-repeat;
}
.sanctuary-image-journey{
  background:
    linear-gradient(180deg,rgba(255,248,239,.03),rgba(75,45,28,.08)),
    url("/assets/cover.jpg") 55% center/cover no-repeat;
}
.sanctuary-image-mirrors{
  background:
    linear-gradient(180deg,rgba(255,248,239,.04),rgba(75,45,28,.10)),
    url("/assets/cover.jpg") 18% 68%/cover no-repeat;
}
.sanctuary-card.is-locked{
  background:#f1ebe4;
  opacity:.83;
}
.sanctuary-card.is-locked .sanctuary-card-image{filter:saturate(.55);opacity:.7}

.sanctuary-lower-grid{
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(280px,.55fr);
  gap:12px;
  margin-top:14px;
}
.integration-membership-card{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(270px,.8fr);
  min-height:315px;
  overflow:hidden;
  border:1px solid rgba(91,71,57,.15);
  background:#f9f2e9;
}
.integration-membership-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:36px;
  background:
    radial-gradient(circle at 10% 15%,rgba(183,147,113,.13),transparent 17rem),
    linear-gradient(145deg,#fbf6ef,#f4eade);
}
.integration-membership-copy h2,
.alexandra-library-card h2{
  margin:0;
  color:#3d3029;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-weight:500;
  letter-spacing:-.02em;
}
.integration-membership-copy h2{
  max-width:520px;
  font-size:clamp(2.2rem,3.6vw,3.35rem);
  line-height:1.02;
}
.integration-membership-copy>p:not(.sanctuary-eyebrow){
  max-width:560px;
  margin:15px 0 0;
  color:#6d625a;
  line-height:1.62;
}
.membership-benefits{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px 22px;
  margin-top:23px;
  padding-top:18px;
  border-top:1px solid rgba(104,79,60,.15);
}
.membership-benefits span{
  position:relative;
  padding-left:15px;
  color:#6f5b4d;
  font-size:.78rem;
  line-height:1.4;
}
.membership-benefits span::before{
  content:"";
  position:absolute;
  left:0;
  top:.55em;
  width:5px;
  height:5px;
  border-radius:50%;
  background:#9f7454;
}
.integration-membership-visual{
  min-height:315px;
  background:
    linear-gradient(180deg,rgba(250,243,235,.03),rgba(62,39,24,.10)),
    url("/Golden-Hour%20Coastal%20Retreat.png") 78% center/cover no-repeat;
}
.alexandra-library-card{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:315px;
  padding:34px;
  border:1px solid rgba(91,71,57,.15);
  background:
    radial-gradient(circle at 85% 15%,rgba(157,118,83,.10),transparent 13rem),
    #fffaf4;
}
.alexandra-library-card h2{
  font-size:2.25rem;
  line-height:1.04;
}
.alexandra-library-card>p:not(.sanctuary-eyebrow){
  margin:14px 0 0;
  color:#70675f;
  line-height:1.58;
}
.coming-soon-note{
  margin-top:24px;
  color:#8a5e48;
  font:700 .62rem "Manrope",sans-serif;
  letter-spacing:.13em;
  line-height:1.6;
}

.here-again-showcase{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(420px,.95fr);
  min-height:355px;
  margin-top:14px;
  overflow:hidden;
  border:1px solid rgba(167,116,62,.22);
  background:#f6eadb;
  box-shadow:0 18px 46px rgba(72,48,29,.06);
}
.here-again-showcase-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:clamp(34px,5vw,56px);
  background:
    radial-gradient(circle at 15% 10%,rgba(208,174,130,.18),transparent 18rem),
    linear-gradient(145deg,#fbf2e6,#f2dfc7);
}
.here-again-wordmark{
  margin:0;
  color:#9e6c36;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:clamp(2.4rem,4.4vw,4rem);
  font-weight:500;
  letter-spacing:.17em;
  line-height:1;
}
.here-again-rule{
  width:54px;
  height:1px;
  margin:18px 0 16px;
  background:#a7743e;
}
.here-again-subtitle{
  margin:0;
  color:#8d6846;
  font:700 .64rem "Manrope",sans-serif;
  letter-spacing:.16em;
}
.here-again-showcase h2{
  margin:24px 0 0;
  color:#4c3526;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:clamp(2rem,3.4vw,3.1rem);
  font-weight:500;
  line-height:1.02;
  letter-spacing:-.02em;
}
.here-again-showcase-copy>p:not(.here-again-wordmark):not(.here-again-subtitle){
  max-width:620px;
  margin:15px 0 0;
  color:#6b584a;
  line-height:1.62;
}
.here-again-status{
  margin-top:24px;
  color:#8e6239;
  font:700 .64rem "Manrope",sans-serif;
  letter-spacing:.13em;
}
.here-again-showcase-visual{
  min-height:355px;
  background:
    linear-gradient(90deg,rgba(244,225,200,.06),rgba(244,225,200,0)),
    linear-gradient(180deg,rgba(74,42,21,.01),rgba(74,42,21,.17)),
    url("/assets/cover.jpg") center/cover no-repeat;
}

@media(max-width:1050px){
  .sanctuary-card-grid{grid-template-columns:1fr 1fr}
  .sanctuary-lower-grid{grid-template-columns:1fr}
}
@media(max-width:900px){
  body.companion-home .brand{
    grid-template-columns:1fr;
    gap:8px;
    padding:14px 4px 12px;
  }
  .space-toolbar-header{justify-content:flex-start}
  .space-toolbar-header .profile-nav{margin-left:0}
  .sanctuary-hero{
    min-height:500px;
    background-position:56% center;
  }
  .sanctuary-hero-overlay{min-height:500px;padding:40px 30px}
  .sanctuary-hero-copy{width:min(520px,72%)}
  .integration-membership-card,
  .here-again-showcase{grid-template-columns:1fr}
  .integration-membership-visual{min-height:230px}
  .here-again-showcase-visual{min-height:260px}
}
@media(max-width:640px){
  body.companion-home .shell{width:min(100% - 18px,1280px)}
  .space-toolbar-header{
    display:grid;
    grid-template-columns:1fr 1fr;
    width:100%;
  }
  .space-toolbar-header .space-nav{
    justify-content:flex-start;
    min-height:42px;
    padding:7px 8px;
    border:1px solid rgba(103,30,42,.10);
  }
  .space-toolbar-header .profile-nav{border-left:1px solid rgba(103,30,42,.10)}
  .sanctuary-hero{
    min-height:530px;
    background-position:60% center;
  }
  .sanctuary-hero-overlay{
    min-height:530px;
    align-items:flex-end;
    padding:34px 24px;
    background:linear-gradient(180deg,rgba(248,241,232,.08) 18%,rgba(248,241,232,.86) 72%,rgba(248,241,232,.97) 100%);
  }
  .sanctuary-hero-copy{width:100%}
  .sanctuary-hero h1{font-size:3.3rem}
  .sanctuary-section-intro{
    align-items:flex-start;
    flex-direction:column;
    gap:8px;
  }
  .sanctuary-card-grid{grid-template-columns:1fr}
  .sanctuary-card{min-height:320px}
  .sanctuary-lower-grid{grid-template-columns:1fr}
  .integration-membership-card{grid-template-columns:1fr}
  .membership-benefits{grid-template-columns:1fr}
  .integration-membership-copy,
  .alexandra-library-card,
  .here-again-showcase-copy{padding:28px 24px}
}


/* ===== APPROVED OPTION 1 + OPTION 2 HYBRID — VISUAL LOCK ===== */
:root{
  --is-bg:#F2E8DF;
  --is-surface:#F6ECE1;
  --is-paper:#FBF4EC;
  --is-paper-2:#F8EFE6;
  --is-text:#4F3428;
  --is-text-soft:#735F52;
  --is-accent:#A36E3D;
  --is-accent-deep:#7D4E27;
  --is-accent-soft:#C99E79;
  --is-line:rgba(112,79,54,.16);
}
body.companion-home{
  color:var(--is-text);
  background:
    radial-gradient(circle at 12% 0%,rgba(201,158,121,.14),transparent 28rem),
    linear-gradient(180deg,#F5ECE4 0%,var(--is-bg) 58%,#EEE2D7 100%);
}
body.companion-home .brand{
  background:rgba(251,244,236,.82);
  border-bottom:1px solid rgba(125,78,39,.13);
}
body.companion-home .wordmark{
  color:var(--is-accent-deep);
}
.space-toolbar-header .space-nav{
  color:#6F5B4D;
}
.space-toolbar-header .space-nav:hover,
.space-toolbar-header .space-nav.active{
  color:var(--is-accent-deep);
  border-bottom-color:var(--is-accent);
}
.space-toolbar-header .profile-nav-initial{
  background:var(--is-accent);
  color:#fff;
}

/* Hero mirrors the selected sanctuary mockup: calm copy panel + exact coastal image */
.sanctuary-hero{
  display:grid;
  grid-template-columns:minmax(390px,.88fr) minmax(0,1.32fr);
  min-height:430px;
  overflow:hidden;
  background:var(--is-paper);
  border:1px solid rgba(125,78,39,.15);
  box-shadow:0 24px 65px rgba(77,49,34,.08);
}
.sanctuary-hero-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  width:auto;
  max-width:none;
  padding:clamp(46px,6vw,78px);
  background:
    radial-gradient(circle at 20% 12%,rgba(214,180,150,.15),transparent 20rem),
    linear-gradient(145deg,#F9F0E7 0%,#F5E7DA 100%);
}
.sanctuary-eyebrow{
  color:#9A6942;
}
.sanctuary-hero h1{
  max-width:520px;
  color:#523426;
  font-size:clamp(3.5rem,5.8vw,5.9rem);
}
.sanctuary-hero-copy>p:not(.sanctuary-eyebrow){
  color:#68574B;
}
.sanctuary-button{
  align-self:flex-start;
  border-color:var(--is-accent-deep);
  background:var(--is-accent-deep);
}
.sanctuary-button:hover{
  background:#653B1E;
  border-color:#653B1E;
}
.sanctuary-hero-visual{
  min-height:430px;
  background:
    linear-gradient(90deg,rgba(248,239,230,.10),rgba(248,239,230,0) 22%),
    url("/assets/integration-hero.webp") center/cover no-repeat;
}

/* Current Space carries the coffee + journal visual selected from the reflective mockup */
.sanctuary-current{
  padding-top:28px;
}
.sanctuary-section-intro{
  border-bottom:1px solid var(--is-line);
}
.sanctuary-section-intro h2,
.sanctuary-card-copy strong,
.integration-membership-copy h2,
.alexandra-library-card h2{
  color:var(--is-text);
}
.sanctuary-section-intro>p,
.sanctuary-card-copy em,
.integration-membership-copy>p:not(.sanctuary-eyebrow),
.alexandra-library-card>p:not(.sanctuary-eyebrow){
  color:var(--is-text-soft);
}
.sanctuary-card{
  border-color:rgba(125,78,39,.14);
  background:rgba(251,244,236,.94);
}
.sanctuary-card:hover:not(:disabled){
  border-color:rgba(163,110,61,.38);
  box-shadow:0 14px 32px rgba(98,65,42,.07);
}
.sanctuary-card-icon{
  color:var(--is-accent);
  border-color:rgba(163,110,61,.28);
}
.sanctuary-card-copy small,
.sanctuary-card-copy b{
  color:#916043;
}
.sanctuary-image-current{
  background:
    linear-gradient(180deg,rgba(255,248,239,.02),rgba(79,50,31,.07)),
    url("/assets/integration-current.webp") center/cover no-repeat;
}
.sanctuary-image-companion{
  background:
    linear-gradient(180deg,rgba(255,248,239,.04),rgba(79,50,31,.10)),
    url("/assets/integration-current.webp") 70% center/cover no-repeat;
}
.sanctuary-image-journey{
  background:
    linear-gradient(180deg,rgba(255,248,239,.02),rgba(74,46,29,.11)),
    url("/assets/cover.jpg") 55% center/cover no-repeat;
}
.sanctuary-image-mirrors{
  background:
    linear-gradient(180deg,rgba(255,248,239,.08),rgba(74,46,29,.13)),
    url("/assets/cover.jpg") 18% 68%/cover no-repeat;
}
.sanctuary-card.is-locked{
  background:#EEE3D8;
  opacity:.82;
}

/* Membership follows the readable, inviting reflective-workspace treatment */
.integration-membership-card{
  border-color:rgba(125,78,39,.16);
  background:#F5E5D7;
}
.integration-membership-copy{
  background:
    radial-gradient(circle at 12% 12%,rgba(195,148,105,.14),transparent 18rem),
    linear-gradient(145deg,#F7E9DD 0%,#EFDDCE 100%);
}
.integration-membership-visual{
  background:
    linear-gradient(180deg,rgba(249,238,227,.02),rgba(77,49,30,.09)),
    url("/assets/integration-current.webp") center/cover no-repeat;
}
.membership-benefits{
  border-top-color:rgba(125,78,39,.16);
}
.membership-benefits span{
  color:#745C4B;
}
.membership-benefits span::before{
  background:var(--is-accent);
}
.alexandra-library-card{
  border-color:rgba(125,78,39,.15);
  background:
    radial-gradient(circle at 88% 12%,rgba(187,145,108,.10),transparent 14rem),
    #FBF3EA;
}
.coming-soon-note{
  color:#95623E;
}

/* Here Again remains the stronger gold flagship, clearly separate from membership */
.here-again-showcase{
  border-color:rgba(167,116,62,.24);
  background:#F3DFC5;
  box-shadow:0 18px 45px rgba(88,56,31,.07);
}
.here-again-showcase-copy{
  background:
    radial-gradient(circle at 16% 12%,rgba(213,175,126,.20),transparent 18rem),
    linear-gradient(145deg,#FAEEDC 0%,#EFD8BC 100%);
}
.here-again-wordmark,
.here-again-showcase .sanctuary-eyebrow{
  color:#9C692F;
}
.here-again-showcase h2{
  color:#513525;
}
.here-again-showcase-copy>p:not(.here-again-wordmark):not(.here-again-subtitle){
  color:#6B5849;
}
.here-again-showcase-visual{
  background:
    linear-gradient(90deg,rgba(243,223,197,.04),rgba(243,223,197,0)),
    linear-gradient(180deg,rgba(74,42,21,.01),rgba(74,42,21,.12)),
    url("/assets/cover.jpg") center/cover no-repeat;
}
.dashboard-account-note{
  color:#786B61;
}

@media(max-width:900px){
  .sanctuary-hero{
    grid-template-columns:1fr;
    min-height:0;
  }
  .sanctuary-hero-visual{
    order:-1;
    min-height:300px;
  }
  .sanctuary-hero-copy{
    padding:38px 28px 44px;
  }
}
@media(max-width:640px){
  .sanctuary-hero-visual{
    min-height:245px;
  }
  .sanctuary-hero h1{
    font-size:3.25rem;
  }
}


/* The Moment Before — course identity matched to the Systeme.io Version B page.
   Deliberately scoped to the three-day experience, not the companion or dashboard. */
body.here-again-stage {
  --burgundy: #6F8C99;
  --burgundy-dark: #395663;
  --soft-gold: #AE8556;
  --cream: #F3EEE5;
  --paper: #FAF7F1;
  --charcoal: #2B2927;
  --muted: #6B6863;
  --line: #d8cfc3;
  background: #F3EEE5;
  color: #2B2927;
  font-family: "Manrope", Arial, sans-serif;
}
body.here-again-stage .card {
  background: #FAF7F1;
  border: 1px solid rgba(174,133,86,.28);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(57,86,99,.08);
}
body.here-again-stage .card h1,
body.here-again-stage .card h2,
body.here-again-stage .lesson-copy h3,
body.here-again-stage .cover-lines {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: -.025em;
}
body.here-again-stage .card h1 {
  color: #395663;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.02;
}
body.here-again-stage .cover-card h1 {
  text-transform: none;
  letter-spacing: -.035em;
}
body.here-again-stage .cover-subtitle,
body.here-again-stage .lesson-copy,
body.here-again-stage .helper,
body.here-again-stage .card label,
body.here-again-stage .card input,
body.here-again-stage .card textarea,
body.here-again-stage .card button,
body.here-again-stage .card .button-link {
  font-family: "Manrope", Arial, sans-serif;
}
body.here-again-stage .cover-subtitle { color: #395663; font-weight: 500; }
body.here-again-stage .cover-subtitle span { color: #AE8556; }
body.here-again-stage .eyebrow { color: #6F8C99; }
body.here-again-stage .lesson-copy { color: #3d474b; line-height: 1.78; }
body.here-again-stage .lesson-copy h3 { color: #395663; font-size: clamp(1.65rem, 3vw, 2.15rem); }
body.here-again-stage .lesson-copy blockquote,
body.here-again-stage .question-guide { background: #F1EBE2; border-left-color: #AE8556; color: #395663; }
body.here-again-stage .primary { background: #395663; border-color: #395663; color: #fff; }
body.here-again-stage .primary:hover { background: #2d4752; }
body.here-again-stage .secondary { color: #395663; border-color: #AE8556; }
body.here-again-stage .track span { background: #AE8556; }
body.here-again-stage .text-input:focus { outline-color: rgba(111,140,153,.22); border-color: #6F8C99; }
body.here-again-stage textarea:focus { border-color: #6F8C99; box-shadow: 0 0 0 4px rgba(111,140,153,.13); }
body.here-again-stage .cover-lines strong { color: #AE8556; }
body.here-again-stage .cover-image { border-radius: 2px; }
body.here-again-stage .moment-opening {
  max-width: 760px;
  margin: 34px 0 36px;
  padding: clamp(25px, 4vw, 42px);
  background: linear-gradient(145deg, rgba(111,140,153,.11), rgba(250,247,241,.8));
  border-left: 2px solid #AE8556;
  border-top: 1px solid rgba(111,140,153,.18);
  border-right: 1px solid rgba(111,140,153,.18);
  border-bottom: 1px solid rgba(111,140,153,.18);
}
body.here-again-stage .moment-opening-kicker {
  margin: 0 0 10px;
  color: #AE8556;
  font: 600 .72rem "Manrope", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .17em;
}
body.here-again-stage .moment-opening-lead {
  margin: 0 0 20px;
  color: #395663;
  font: 500 clamp(2rem, 4vw, 3rem)/1.1 "Cormorant Garamond", Georgia, serif;
}
body.here-again-stage .moment-opening p:not(.moment-opening-kicker):not(.moment-opening-lead) {
  max-width: 650px;
  margin: 0 0 15px;
  color: #395663;
  font-size: 1rem;
  line-height: 1.8;
}
body.here-again-stage .moment-opening p:last-child { margin-bottom: 0!important; }
@media (max-width: 640px) {
  body.here-again-stage .card { border-radius: 12px; }
  body.here-again-stage .card h1 { font-size: clamp(2.8rem, 13vw, 4rem); }
  body.here-again-stage .moment-opening { margin: 25px 0; padding: 24px 20px; }
}

/* Post-purchase introduction: shown only when Here Again access is verified. */
.moment-buyer-gift{
  margin:22px 0;
  padding:clamp(26px,4vw,40px);
  border:1px solid rgba(174,133,86,.35);
  background:linear-gradient(135deg,#FAF7F1,#E9F0F0);
}
.moment-buyer-gift .sanctuary-eyebrow{color:#AE8556}
.moment-buyer-gift h2{margin:8px 0 12px;color:#395663;font:500 clamp(1.8rem,3.5vw,2.6rem)/1.08 "Cormorant Garamond",Georgia,serif}
.moment-buyer-gift>p:not(.sanctuary-eyebrow){max-width:720px;color:#395663;font:400 .96rem/1.75 "Manrope",Arial,sans-serif}
.moment-buyer-gift button{margin-top:18px;border:1px solid #395663;color:#395663;background:transparent;padding:13px 23px;cursor:pointer}

/* Distinct post-foundation completion for existing Here Again owners. */
.owned-here-again-finish{border-left:3px solid #a97945;background:#fbf3e6;padding:clamp(24px,4vw,40px);margin-top:32px}
.owned-here-again-finish .eyebrow{color:#a97945}
.owned-here-again-finish h2{font-family:"Cormorant Garamond",Georgia,serif;color:#7f582d}
.owned-here-again-finish p{max-width:660px;line-height:1.75}

/* Personal Integration Book — coherent editorial reading surfaces, Nov 2026.
   Scope narrowly to the three-day Moment Before experience. */
body.here-again-stage .moment-book-page {
  position: relative;
  font-family: "Manrope", Arial, sans-serif;
  border-top: 3px solid #AE8556;
  padding-top: clamp(32px, 5vw, 62px);
}
body.here-again-stage .moment-book-page > .eyebrow {
  font: 700 .7rem/1.5 "Manrope", Arial, sans-serif;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: #A4794D;
}
body.here-again-stage .moment-book-page > h2,
body.here-again-stage .moment-book-page > h1 {
  max-width: 790px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: -.025em;
  color: #395663;
}
body.here-again-stage .moment-book-page > h2 {
  font-size: clamp(2.3rem, 4.8vw, 4.05rem);
  line-height: 1.12;
}
body.here-again-stage .moment-book-page .question-guide {
  max-width: 790px;
  background: #F1EBE2;
  border-left: 3px solid #AE8556;
  border-radius: 0 7px 7px 0;
  color: #395663;
  line-height: 1.8;
}
body.here-again-stage .moment-book-reflection textarea {
  background: #FFFDF9;
  color: #2B3940;
  border-color: #CFC4B5;
  min-height: 180px;
  line-height: 1.75;
}
body.here-again-stage .moment-book-page .progress-labels,
body.here-again-stage .moment-book-page .saved,
body.here-again-stage .moment-book-page .holding-note {
  font-family: "Manrope", Arial, sans-serif;
}
@media(max-width:640px) {
  body.here-again-stage .moment-book-page { padding-top: 30px; }
  body.here-again-stage .moment-book-page > h2 { font-size: clamp(2.25rem, 10vw, 3.2rem); }
  body.here-again-stage .moment-book-reflection textarea { min-height: 165px; }
}

/* Mobile dashboard navigation follows the approved warm sanctuary palette, not The Moment Before's blue lesson palette. */
.integration-mobile-nav{display:none}
.moment-cover-return-note{margin:18px auto 0;max-width:580px;text-align:center;color:#395663;font:500 .9rem/1.6 "Manrope",Arial,sans-serif}
@media screen and (max-width:700px){
  body.has-mobile-quick-nav{padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))}
  body.has-mobile-quick-nav .site-footer{margin-bottom:15px}
  .integration-mobile-nav:not([hidden]){
    position:fixed;z-index:1100;bottom:0;left:0;right:0;
    display:grid;grid-template-columns:repeat(5,minmax(0,1fr));
    align-items:stretch;gap:0;
    padding:7px 6px calc(8px + env(safe-area-inset-bottom,0px));
    background:rgba(251,244,235,.98);
    border-top:1px solid rgba(157,113,77,.25);
    box-shadow:0 -7px 24px rgba(86,51,33,.10);
    backdrop-filter:blur(16px);
  }
  .integration-mobile-nav button{
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    gap:4px;min-height:58px;padding:5px 2px;
    border:0;border-radius:11px;background:transparent;color:#765744;
    cursor:pointer;touch-action:manipulation;
    font:600 clamp(.57rem,2.35vw,.71rem)/1.15 "Manrope",Arial,sans-serif;
    letter-spacing:0;
  }
  .integration-mobile-nav button svg{flex:0 0 23px}
  .integration-mobile-nav .quick-symbol{
    display:block;width:23px;height:23px;
    font:normal 26px/23px "Cormorant Garamond",Georgia,serif;
    text-align:center;color:#9d6a45;
  }
  .integration-mobile-nav button.active{background:#F1E4D3;color:#603E2D}
  .integration-mobile-nav button.active svg,
  .integration-mobile-nav button.active .quick-symbol{color:#A36E3D}
  .integration-mobile-nav button:focus-visible{outline:2px solid #A36E3D;outline-offset:-2px}
  .integration-mobile-nav button span{white-space:normal;text-align:center}
}
@media print{.integration-mobile-nav{display:none!important}}

/* Mobile quick actions appear on the dashboard only, not within a focused experience. */
.stories-library-page{max-width:980px;margin:0 auto;padding:clamp(24px,5vw,56px)}
.stories-library-page .space-page-head h1{font:500 clamp(2.8rem,6vw,4.2rem)/1.06 "Cormorant Garamond",Georgia,serif;color:#66452f}
.stories-library-page .space-page-head p{max-width:660px;line-height:1.7}
.stories-library-intro{max-width:680px;padding:clamp(23px,4vw,42px);margin:28px 0;border:1px solid #d8c5ad;border-left:3px solid #AE8556;background:#fffaf3;border-radius:11px}
.stories-library-intro h2{font:500 clamp(2rem,4vw,2.9rem)/1.1 "Cormorant Garamond",Georgia,serif;color:#395663;margin:0 0 16px}
.stories-library-intro p{font:400 1rem/1.75 "Manrope",Arial,sans-serif;color:#4c5960}
.stories-library-intro a{display:inline-block;margin-top:8px;color:#815831;font:700 .85rem "Manrope",Arial,sans-serif;text-underline-offset:4px}

/* Shared icon vocabulary: the same strokes in dashboard cards and mobile navigation. */
.integration-dashboard-symbol{display:inline-flex;align-items:center;justify-content:center}
.integration-dashboard-symbol svg{display:block;width:25px;height:25px}
.integration-mobile-nav .integration-nav-symbol{display:block;width:23px;height:23px;color:#9d6a45;flex:none}
.integration-mobile-nav button.active .integration-nav-symbol{color:#A36E3D}

/* My Journey: a paired, gently winding path that echoes the card landscape. */
.sanctuary-card-head .journey-path-symbol{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle}
.sanctuary-card-head .journey-path-symbol svg{width:25px;height:25px;display:block;stroke:currentColor}


/* Foundation closing pages: coastal blue, soft ivory and restrained gold. */
.final-card, .companion-book-details { font-family: "Manrope", sans-serif; }
.final-card h1, .final-card h2, .companion-book-details h2 { font-family: "Cormorant Garamond", serif; color: #395663; }
.final-card .final-message { background: #f3eee5; border: 1px solid #d8c6ad; border-left: 3px solid #ae8556; color: #293e48; }
.final-card .final-message h2 { color: #395663; }
.final-card .final-message p { color: #293e48; }
.final-card .owned-here-again-finish { background: #faf7f1; border: 1px solid #d8c6ad; color: #293e48; }
.final-card .owned-here-again-finish p { color: #293e48; }
.final-card .owned-here-again-finish h2 { color: #395663; }
.final-card .owned-here-again-finish .eyebrow { color: #785a35; }
.saved-personal-commitment { margin: 1.5rem 0; padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid #d8c6ad; border-radius: 16px; background: #faf7f1; color: #293e48; }
.saved-personal-commitment .commitment-words { white-space: pre-wrap; overflow-wrap: anywhere; }
.saved-personal-commitment .commitment-signed { margin-bottom: 0; font-size: .95rem; color: #56646a; }
.here-again-program-space { font-family: "Manrope", sans-serif; }
.here-again-program-space h1, .here-again-program-space h2 { font-family: "Cormorant Garamond", serif; }
.here-again-program-space h1, .here-again-program-space h2 { color: #82562c; }
.here-again-program-space .thread-card { background: #82562c; color: #fffdf9; }
.here-again-program-space .thread-card p, .here-again-program-space .thread-card .eyebrow { color: #fffdf9; }
.here-again-phases { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin: 2rem 0; }
.here-again-phases > section { padding: 1.3rem; border: 1px solid #d8c6ad; border-radius: 16px; background: #faf7f1; color: #293e48; }
.here-again-phases h2 { font-size: 1.8rem; }
@media (max-width: 700px) { .here-again-phases { grid-template-columns: 1fr; } }

/* Here Again mirrors its Systeme.io editorial page, not the blue foundation. */
body.here-again-program-stage .here-again-program-space { --ha-ink:#2c251f; --ha-muted:#6f645b; --ha-gold:#a97945; --ha-line:#e9dfd1; padding:0; border-radius:0; box-shadow:none; border:0; background:#faf7f1; color:var(--ha-ink); overflow:hidden; }
.here-again-program-space .here-again-program-intro, .here-again-program-space .here-again-starting-point, .here-again-program-space .here-again-keepsake { padding:clamp(30px,5vw,68px); }
.here-again-program-space .here-again-program-intro { padding-bottom:30px; }
.here-again-program-space .eyebrow { color:#a97945; letter-spacing:.2em; }
.here-again-program-space h1, .here-again-program-space h2, .here-again-program-space h3 { font-family:"Cormorant Garamond",Georgia,serif; font-weight:400; color:#2c251f; }
.here-again-program-space h1 { font-size:clamp(62px,7vw,100px); line-height:1; letter-spacing:-.045em; margin:0; }
.here-again-program-space h1 em { color:#a97945; font-weight:400; }
.here-again-program-space .lead { font:400 clamp(27px,3vw,38px)/1.2 "Cormorant Garamond",Georgia,serif; color:#2c251f; margin:28px 0; }
.here-again-program-space .here-again-opening { max-width:660px; color:#6f645b; line-height:1.8; }
.here-again-program-space .here-again-starting-point { padding-top:24px; }
.here-again-program-space .thread-card { margin:0; border:1px solid #e9dfd1; border-left:2px solid #a97945; border-radius:0; background:transparent; color:#2c251f; padding:26px; }
.here-again-program-space .thread-card p { color:#2c251f; }
.here-again-program-space .thread-card .eyebrow { color:#6f645b; font-size:11px; }
.here-again-program-space .thread-card p:last-child { font:400 clamp(25px,3vw,34px)/1.35 "Cormorant Garamond",Georgia,serif; margin-bottom:0; }
.here-again-program-space .here-again-journey-band { background:#171513; padding:clamp(32px,5vw,68px); color:#faf7f1; }
.here-again-program-space .here-again-journey-band > h2 { color:#faf7f1; font-size:clamp(37px,5vw,60px); line-height:1.1; margin:18px 0 40px; }
.here-again-program-space .here-again-journey-band h2 em { color:#d1b48f; }
.here-again-program-space .here-again-phases { gap:0; margin:0; border-left:1px solid #544638; border-top:1px solid #544638; }
.here-again-program-space .here-again-phases > section { background:transparent; padding:28px 22px; border:0; border-right:1px solid #544638; border-bottom:1px solid #544638; border-radius:0; color:#faf7f1; }
.here-again-program-space .here-again-phase-number { display:block; height:4px; background:#c6a785; width:75%; overflow:hidden; color:transparent; margin-bottom:26px; }
.here-again-program-space .here-again-phases .eyebrow { color:#d1b48f; font-size:10px; }
.here-again-program-space .here-again-phases h3 { color:#faf7f1; font-size:29px; line-height:1.05; margin:24px 0 16px; }
.here-again-program-space .here-again-phases p:last-child { color:#d9cec2; font-size:15px; line-height:1.75; }
.here-again-program-space .saved-personal-commitment { border-radius:0; background:transparent; border-color:#e9dfd1; }
.here-again-program-space .secondary { color:#660e1f; border-color:#a97945; background:transparent; border-radius:0; }
.companion-book-details { color:#2c251f; background:#faf7f1; border-color:#d1b48f; }
.companion-book-details h2 { color:#2c251f; }
.companion-book-details .eyebrow { color:#a97945; }
@media(max-width:700px) { .here-again-program-space .here-again-phases { grid-template-columns:1fr; } .here-again-program-space .here-again-program-intro, .here-again-program-space .here-again-starting-point, .here-again-program-space .here-again-keepsake, .here-again-program-space .here-again-journey-band { padding-left:24px; padding-right:24px; } }

/* Purchase choices: explicit contrast overrides the general legal-dialog link color. */
.companion-book-details .book-purchase-options { display:grid; gap:18px; margin-top:26px; }
.companion-book-details .book-purchase-option { padding:22px; border:1px solid #d8c6ad; border-radius:14px; background:#fffdf9; }
.companion-book-details .book-purchase-option h3 { margin:0; color:#2C251F; font-family:"Cormorant Garamond",Georgia,serif; font-size:1.8rem; font-weight:500; line-height:1.15; }
.companion-book-details .book-purchase-option p { margin:10px 0 18px; color:#514844; }
.companion-book-details .companion-upgrade-option { background:#f3e8d8; border:2px solid #a97945; }
.companion-book-details .companion-upgrade-option .eyebrow { margin:0 0 10px; color:#785a35; }
.companion-book-details .book-purchase-options a.button-link { display:flex; align-items:center; justify-content:center; min-height:52px; height:auto; padding:14px 20px; box-sizing:border-box; font-family:Manrope,Arial,sans-serif; font-size:1rem; line-height:1.45; text-align:center; text-decoration:none; white-space:normal; }
.companion-book-details .book-purchase-options a.primary { color:#fff; background:#660E1F; border-color:#660E1F; }
.companion-book-details .book-purchase-options a.primary:hover { color:#fff; background:#4D0A17; border-color:#4D0A17; }
.companion-book-details .book-purchase-options a.secondary { color:#660E1F; background:#fffdf9; border-color:#a97945; }
.companion-book-details .book-purchase-options a.secondary:hover { color:#4D0A17; background:#f7f0e5; }
.companion-book-details .book-purchase-options a:focus-visible { outline:3px solid #A97945; outline-offset:3px; }
@media(max-width:560px){ .companion-book-details .book-purchase-option { padding:18px; } .companion-book-details .book-purchase-options a.button-link { padding:14px 16px; } }

.companion-book-details h2 { margin:18px 0; color:#2C251F; font-size:clamp(1.9rem,4.5vw,2.7rem); line-height:1.12; }

/* Here Again invitations keep the program's cream, gold and charcoal palette. */
.card.final-card .here-again-next-step { background:#FAF7F1; color:#2C251F; border:1px solid #D8C6AD; border-left:3px solid #A97945; }
.card.final-card .here-again-next-step h2 { color:#A97945; }
.card.final-card .here-again-next-step p { color:#2C251F; }
.card.final-card .here-again-next-step .eyebrow { color:#785A35; margin-bottom:12px; }
.card.final-card .here-again-next-step a.primary { display:inline-flex; align-items:center; justify-content:center; margin-top:24px; padding:14px 24px; min-height:52px; height:auto; color:#FFF; background:#660E1F; border-color:#660E1F; text-decoration:none; text-align:center; line-height:1.5; white-space:normal; }
.card.final-card .here-again-next-step a.primary:hover { color:#FFF; background:#4D0A17; border-color:#4D0A17; }
