:root {
  color-scheme: light;
  --ink: #1d1b16;
  --muted: #504440;
  --soft: #82746f;
  --surface: #fff9ef;
  --surface-strong: #f3ede3;
  --line: #d4c3bd;
  --brand: #33190f;
  --brand-soft: #4b2e22;
  --leaf: #274f2d;
  --leaf-soft: #c0eec0;
  --gold: #fec87f;
  --link: #7e5718;
  --white: #ffffff;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  color: var(--white);
}

.site-header.static {
  position: static;
  color: var(--ink);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(var(--max), calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 760;
  font-size: 1.02rem;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.93rem;
  font-weight: 650;
}

.nav-links a {
  text-decoration: none;
  opacity: 0.92;
}

.nav-links a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero {
  min-height: min(720px, 86svh);
  position: relative;
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(29, 27, 22, 0.78), rgba(29, 27, 22, 0.42) 48%, rgba(29, 27, 22, 0.1)),
    url("soul-spring-hero.jpg");
  background-position: center;
  background-size: cover;
  color: var(--white);
}

.hero-content {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 112px 0 80px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 0.82rem;
  font-weight: 760;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: 0.96;
  font-weight: 820;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 30px;
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 760;
}

.button.primary {
  background: var(--gold);
  color: var(--brand);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.68);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.button.dark {
  background: var(--brand);
  color: var(--white);
}

.section {
  padding: 76px 0;
}

.section.alt {
  background: var(--surface-strong);
}

.section.leaf {
  background: var(--leaf);
  color: var(--white);
}

.section-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section-kicker {
  margin-bottom: 10px;
  color: var(--secondary, var(--brand-soft));
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section.leaf .section-kicker {
  color: var(--gold);
}

h2 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  font-weight: 810;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1.12rem;
}

.section.leaf .lead {
  color: rgba(255, 255, 255, 0.82);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.panel {
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 249, 239, 0.78);
}

.panel h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.traditions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.traditions span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: center;
  gap: 48px;
}

.phone-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(51, 25, 15, 0.18);
  overflow: hidden;
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--brand);
  font-weight: 800;
}

.phone-body {
  padding: 18px;
}

.prompt {
  padding: 18px;
  border-radius: 8px;
  background: var(--surface-strong);
}

.prompt + .prompt {
  margin-top: 12px;
}

.prompt strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand);
}

.prompt p {
  margin-bottom: 0;
  color: var(--muted);
}

.legal-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.legal-link {
  min-height: 128px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
}

.legal-link strong {
  display: block;
  margin-bottom: 8px;
}

.legal-link span {
  color: var(--muted);
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

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

.content-page {
  width: min(850px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 80px;
}

.content-page h1 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1.02;
}

.content-page h2 {
  margin-top: 40px;
  font-size: 1.55rem;
}

.content-page p,
.content-page li {
  color: var(--muted);
}

.notice {
  margin: 26px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: var(--surface-strong);
}

.notice p:last-child {
  margin-bottom: 0;
}

.checklist {
  padding-left: 22px;
}

.checklist li + li {
  margin-top: 10px;
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    color: var(--ink);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
    gap: 12px;
  }

  .nav-links {
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: auto;
    background-image:
      linear-gradient(180deg, rgba(29, 27, 22, 0.72), rgba(29, 27, 22, 0.56)),
      url("soul-spring-hero.jpg");
  }

  .hero-content {
    padding: 64px 0 56px;
  }

  .grid,
  .split,
  .legal-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px 0;
  }
}

@media (max-width: 520px) {
  .nav-links {
    font-size: 0.88rem;
  }

  h1 {
    font-size: 3rem;
  }

  .button {
    width: 100%;
  }
}

/* ── Legal / long-form prose (privacy, terms) — generated pages ──── */
.legal {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 88px;
}

.legal-banner {
  margin: 0 0 26px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--brand-soft);
  font-size: 0.95rem;
}

.legal h1 {
  margin: 6px 0 10px;
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.04;
}

.legal-meta {
  margin: 0 0 26px;
  color: var(--soft);
  font-size: 0.9rem;
}

.legal-intro {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 1.05rem;
}

.legal-toc {
  margin: 8px 0 44px;
  padding: 18px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-strong);
}

.legal-toc > strong {
  display: block;
  margin-bottom: 10px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-soft);
}

.legal-toc ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.legal-toc li {
  margin: 5px 0;
}

.legal-toc a {
  color: var(--brand-soft);
  text-decoration: none;
  font-weight: 600;
}

.legal-toc a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-body {
  color: var(--muted);
  font-size: 1.02rem;
}

.legal-body h2 {
  max-width: none;
  margin: 46px 0 14px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 800;
  scroll-margin-top: 16px;
}

.legal-body h3 {
  margin: 28px 0 10px;
  color: var(--ink);
  font-size: 1.12rem;
  scroll-margin-top: 16px;
}

.legal-body p {
  margin: 0 0 16px;
}

.legal-body ul,
.legal-body ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

.legal-body li {
  margin: 6px 0;
}

.legal-body strong {
  color: var(--ink);
}

.legal-body a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}

.legal-body code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface-strong);
  font-size: 0.9em;
}

.legal-body hr {
  display: none;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 8px 0 24px;
}

.legal-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.legal-body th,
.legal-body td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-body th {
  background: var(--surface-strong);
  color: var(--ink);
  font-weight: 700;
}

.legal-body td {
  color: var(--muted);
}

@media (max-width: 860px) {
  .legal {
    padding: 32px 0 64px;
  }

  .legal-body table {
    min-width: 560px;
  }
}
