/* DreamWalker — cream, forest green, and decorative gold. */
:root {
  --bg: #F7F3EB;
  --surface: #FFFFFF;
  --surface-2: #E6ECE4;
  --primary: #2F6558;
  --primary-hover: #244F45;
  --on-primary: #FFFFFF;
  --gold: #B69049;
  --text: #223B35;
  --muted: #52635B;
  --line: #D7DCD4;
  --input-border: #78867E;
  --error: #A12E2E;
  --radius: 14px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.2;
  font-weight: 600;
}

a { color: var(--primary-hover); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Nav */
nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.brand { font-family: "Playfair Display", Georgia, serif; font-size: 1.35rem; color: var(--text); letter-spacing: 0.5px; }
.brand span { color: var(--primary); }
.nav-links { display: flex; gap: 26px; font-size: 0.95rem; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--primary-hover); text-decoration: none; }

/* Hero */
.hero { padding: 90px 0 70px; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--primary); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 20px; }
.hero h1 em { color: var(--primary-hover); font-style: normal; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin: 0 auto 34px; }

.btn {
  display: inline-block; padding: 14px 34px; border-radius: 10px;
  background: var(--primary); color: var(--on-primary); font-weight: 600; font-size: 1rem;
  border: none; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--primary-hover); text-decoration: none; transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--primary-hover); border: 1px solid var(--primary); margin-left: 12px; }
.btn.ghost:hover { background: rgba(47,101,88,0.08); }

.cta-row { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }

/* Sections */
section { padding: 64px 0; }
section h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 14px; text-align: center; }
section .sub { color: var(--muted); text-align: center; max-width: 620px; margin: 0 auto 44px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--primary); }
.card .tag {
  display: inline-block; font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--primary); margin-bottom: 12px;
}
.card .tag.soon { color: var(--muted); }
.card h3 { font-size: 1.45rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.98rem; margin-bottom: 18px; }
.card a.more { font-weight: 600; font-size: 0.95rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; }
.step .num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: var(--on-primary);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; margin-bottom: 16px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; align-items: stretch; }
.price-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 30px; display: flex; flex-direction: column; position: relative;
}
.price-card.featured { border: 2px solid var(--primary); background: var(--surface-2); }
.price-card .flag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: var(--on-primary); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; padding: 5px 16px; border-radius: 999px;
}
.price-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.price-card .price { font-size: 2.2rem; font-family: "Playfair Display", Georgia, serif; color: var(--primary-hover); margin: 10px 0 4px; }
.price-card .per { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
.price-card ul { list-style: none; margin-bottom: 26px; flex-grow: 1; }
.price-card ul li { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.price-card ul li:last-child { border-bottom: none; }
.price-card ul li::before { content: "✓ "; color: var(--primary); font-weight: 700; }

/* Note / callout */
.callout {
  background: var(--surface-2); border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 26px 30px; margin: 40px 0;
}
.callout h3 { font-size: 1.15rem; margin-bottom: 8px; }
.callout p { color: var(--muted); font-size: 0.98rem; }

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.02rem; }
.faq summary::marker { color: var(--primary); }
.faq details p { color: var(--muted); margin-top: 10px; font-size: 0.96rem; }

/* About */
.about { display: grid; grid-template-columns: 1fr; gap: 30px; max-width: 760px; margin: 0 auto; }
.about p { color: var(--muted); margin-bottom: 16px; }
.about strong { color: var(--text); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 40px; text-align: center; color: var(--muted); font-size: 0.9rem; }
footer .brand { font-size: 1.1rem; }

/* Manifesto */
.manifesto { text-align: center; max-width: 720px; margin: 0 auto; }
.manifesto blockquote { font-family: "Playfair Display", Georgia, serif; font-size: clamp(1.3rem, 3.4vw, 1.9rem); line-height: 1.5; }
.manifesto blockquote em { color: var(--primary-hover); font-style: normal; }

@media (max-width: 640px) {
  .nav-links { gap: 16px; font-size: 0.88rem; }
  .hero { padding: 60px 0 50px; }
  .btn.ghost { margin-left: 0; margin-top: 10px; }
}

/* Story */
.story { display: grid; grid-template-columns: 280px 1fr; gap: 36px; align-items: start; max-width: 920px; margin: 0 auto; }
.story-photo { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); display: block; }
.story-text p { color: var(--muted); margin-bottom: 16px; }
.story-text strong { color: var(--text); }
@media (max-width: 700px) {
  .story { grid-template-columns: 1fr; }
  .story-photo { max-width: 280px; margin: 0 auto; }
}

/* Make Your First Move quiz */
.quiz { max-width: 680px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 32px; }
.quiz .q { margin-bottom: 26px; text-align: left; }
.quiz label { display: block; font-family: "Playfair Display", Georgia, serif; font-size: 1.15rem; margin-bottom: 10px; }
.qnum { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-family: "Inter", sans-serif; font-size: 0.9rem; font-weight: 700; margin-right: 10px; vertical-align: 2px; }
.quiz textarea, .quiz input[type="text"], .quiz input[type="email"] {
  width: 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); font-family: "Inter", sans-serif; font-size: 1rem; padding: 14px 16px;
}
.quiz textarea { resize: vertical; min-height: 84px; }
.quiz textarea:focus, .quiz input:focus { outline: none; border-color: var(--primary); }
.quiz .gate { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 8px; text-align: center; }
.quiz .gate h3 { font-size: 1.25rem; margin-bottom: 18px; }
.quiz .gate .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.quiz .btn { width: 100%; font-size: 1.05rem; padding: 16px; }
.quiz .fine { color: var(--muted); font-size: 0.85rem; margin-top: 14px; }
.form-msg { text-align: center; margin-top: 18px; font-weight: 600; min-height: 1.5em; }
.form-msg.ok { color: var(--primary-hover); }
.form-msg.err { color: var(--error); }
@media (max-width: 600px) {
  .quiz { padding: 28px 20px; }
  .quiz .gate .row { grid-template-columns: 1fr; }
}

/* Choose Your Path */
.card .tagline { font-family: "Playfair Display", Georgia, serif; font-size: 1.05rem; color: var(--primary-hover); margin-bottom: 10px; }
.card .boundary { font-size: 0.82rem; color: var(--muted); font-style: italic; margin: 14px 0 18px; }
.card .path-btn { margin: 0; }
#path-quiz { margin-top: 40px; }
#path-quiz[hidden] { display: none; }
#pq-questions .q { margin-bottom: 20px; }
#pq-deadline { max-width: 260px; }
.plan-line { text-align: center; font-size: 1.2rem; font-family: "Playfair Display", Georgia, serif; margin: 22px 0 8px; }
#pq-plan .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
#pq-plan .row input { width: 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-family: "Inter", sans-serif; font-size: 1rem; padding: 14px 16px; }
#pq-plan .row input:focus { outline: none; border-color: var(--primary); }
#pq-crisis { text-align: center; margin: 6px 0 16px; }
@media (max-width: 600px) { #pq-plan .row { grid-template-columns: 1fr; } }

/* First-move quiz plan + optional email */
#quiz-plan[hidden] { display: none; }
#quiz-plan .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
#quiz-plan .row input { width: 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-family: "Inter", sans-serif; font-size: 1rem; padding: 14px 16px; }
#quiz-plan .row input:focus { outline: none; border-color: var(--primary); }
@media (max-width: 600px) { #quiz-plan .row { grid-template-columns: 1fr; } }

/* Value ladder additions */
.offer-tag { color: var(--muted); font-size: 0.95rem; margin: 0 0 16px; }
#why-ninety { max-width: 720px; margin: 0 auto; text-align: center; }
#why-ninety p { color: var(--muted); margin-bottom: 16px; }
.rhythm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.rhythm-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.rhythm-card h3 { font-family: "Playfair Display", Georgia, serif; color: var(--primary); margin: 0 0 12px; font-size: 1.25rem; }
.rhythm-card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
@media (max-width: 860px) { .rhythm-grid { grid-template-columns: 1fr; } }

/* Accessible polish, responsive navigation, and shared form controls. */
html { scroll-behavior: smooth; scroll-padding-top: 24px; color-scheme: light; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--primary-hover); outline-offset: 5px; }
.skip-link { position: absolute; top: 12px; left: 12px; transform: translateY(-180%); background: var(--primary-hover); color: var(--bg); padding: 12px 20px; z-index: 10; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
nav { gap: 24px; flex-wrap: wrap; }
.nav-links { flex-wrap: wrap; gap: 8px 22px; }
.nav-links a { display: inline-block; padding: 8px 0; }
.hero { position: relative; background: radial-gradient(ellipse at 50% 15%, rgba(47,101,88,.07), transparent 65%); }
.hero-note, .fine { color: var(--muted); font-size: .9rem; line-height: 1.7; margin-top: 18px; }
.hero .eyebrow { max-width: 100%; letter-spacing: 2px; }
.text-link { display: inline-block; margin-top: 16px; font-weight: 600; }
.card { display: flex; flex-direction: column; min-width: 0; }
.card .more, .card .path-btn { margin-top: auto; align-self: flex-start; }
.btn { text-align: center; line-height: 1.45; font-family: inherit; max-width: 100%; overflow-wrap: anywhere; }
.btn.ghost { margin-left: 0; }
.cta-row { gap: 12px; }
.cards, .pricing { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.quiz textarea, .quiz input[type="date"] { width: 100%; background: var(--surface-2); border: 1px solid var(--input-border); border-radius: 10px; color: var(--text); font: inherit; padding: 14px 16px; }
.quiz input[type="date"] { max-width: 260px; }
.quiz textarea::placeholder { color: var(--muted); opacity: 1; }
.quiz textarea:focus, .quiz input:focus { outline: 2px solid var(--primary-hover); outline-offset: 2px; }
.quiz .privacy-note { margin: 0 0 26px; }
.quiz .selected-path { color: var(--primary-hover); margin-bottom: 22px; font-weight: 600; }
.plan-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.plan-actions .btn { flex: 1 1 200px; }
.plan-line { overflow-wrap: anywhere; }
#quiz-plan { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 12px; border-radius: 6px; }
.story-photo { height: auto; }
@media (max-width: 900px) {
  .cards, .pricing { grid-template-columns: 1fr; max-width: 680px; margin-inline: auto; }
  .price-card .flag { white-space: nowrap; }
  nav { justify-content: center; }
  .nav-links { justify-content: center; }
}
@media (max-width: 480px) {
  .wrap { padding-inline: 18px; }
  .hero { padding: 54px 0 40px; }
  .hero h1 { font-size: 2.35rem; }
  section { padding-block: 42px; }
  .hero .eyebrow { font-size: .7rem; }
  .card, .price-card { padding: 28px 22px; }
  .btn { padding: 14px 22px; }
  .cta-row .btn { width: 100%; }
  .btn.ghost { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .card:hover { transform: none; }
}

/* Client welcome and orientation. */
.coach-intro { display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: center; max-width: 800px; margin: auto; }
.coach-avatar { display: block; width: 120px; height: 120px; object-fit: cover; border-radius: 50%; border: 2px solid var(--gold); }
.coach-intro h2 { text-align: left; font-size: clamp(1.55rem, 3.5vw, 2rem); }
.coach-intro .eyebrow { margin-bottom: 10px; }
.coach-intro p:not(.eyebrow) { color: var(--muted); margin-bottom: 12px; }
.comfort-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-top: 38px; border-top: 1px solid var(--line); padding-top: 30px; }
.comfort-grid h3 { font-size: 1.2rem; margin-bottom: 10px; }
.comfort-grid p { color: var(--muted); font-size: .95rem; }
.intro-list { max-width: 680px; margin: 0 auto; padding-left: 24px; color: var(--muted); }
.intro-list li { padding: 0 0 18px 8px; }
.intro-list strong, .sample-plan strong { color: var(--text); }
.centered { text-align: center; }
.sample-plan { max-width: 680px; margin: auto; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 28px; }
.sample-plan p { margin-bottom: 14px; color: var(--muted); }
.sample-plan p:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
 .coach-intro { grid-template-columns: 1fr; }
 .coach-avatar { width: 96px; height: 96px; }
 .comfort-grid { grid-template-columns: 1fr; }
}

/* Light-theme detail and readable links. */
main p a, footer p a, .text-link, .more, .coach-intro > div > a {
  text-decoration: underline; text-underline-offset: 3px;
}
main p a.btn { text-decoration: none; }
.btn.ghost:hover { color: var(--primary-hover); }
.price-card.featured { border-color: var(--primary); }
.price-card .flag { background: var(--primary); color: var(--on-primary); }
.quiz textarea, .quiz input[type="date"] { background: var(--surface); }
.quiz textarea:hover, .quiz input[type="date"]:hover { border-color: var(--primary); }
.hero h1 { max-width: 900px; margin-inline: auto; }

/* Quiet paper texture: local CSS only, no texture image or network request. */
body {
  background-image:
    radial-gradient(ellipse at 25% 20%, rgba(182,144,73,.025), transparent 65%),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(34,59,53,.018) 3px 4px);
}
.journey-scene { max-width: 720px; margin: 36px auto 0; text-align: left; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.journey-art { width: 100%; height: auto; display: block; }
.journey-caption { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; padding: 14px 20px; color: var(--text); font-size: .9rem; }
.motion-toggle { background: transparent; color: var(--primary-hover); border: 1px solid var(--primary); border-radius: 8px; font: inherit; padding: 9px 13px; min-height: 44px; cursor: pointer; }
.journey-sun { transform-box: fill-box; transform-origin: center; animation: morning-light 12s ease-in-out infinite; animation-play-state: paused; }
.journey-glow { animation: gentle-light 12s ease-in-out infinite; animation-play-state: paused; }
.journey-progress { stroke-dasharray: 100; stroke-dashoffset: 0; animation: steady-path 12s ease-in-out infinite; animation-play-state: paused; }
.journey-scene[data-motion="running"] .journey-sun,
.journey-scene[data-motion="running"] .journey-glow,
.journey-scene[data-motion="running"] .journey-progress { animation-play-state: running; }
@keyframes morning-light { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes gentle-light { 0%,100% { opacity: .65; } 50% { opacity: 1; } }
@keyframes steady-path { 0%,100% { stroke-dashoffset: 0; } 50% { stroke-dashoffset: 20; } }
.welcome-video { display: block; width: 100%; max-width: 760px; max-height: 480px; margin: auto; background: var(--text); border-radius: var(--radius); object-fit: contain; }
.video-transcript { max-width: 760px; margin: 18px auto 0; color: var(--text); }
.video-transcript summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 10px 0; }
.video-transcript p { white-space: pre-line; color: var(--muted); padding-top: 12px; }
@media (max-width: 480px) { .journey-caption { padding: 12px 15px; } }
@media (prefers-reduced-motion: reduce) {
  .journey-scene .journey-sun, .journey-scene .journey-glow, .journey-scene .journey-progress { animation: none !important; }
}

/* ---- Dreamlike grain + glow (CSS/SVG only, near-zero performance cost) ---- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* ---- Quiz progress bar ---- */
.quiz-progress {
  height: 6px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
  margin: 14px 0 6px;
}
.quiz-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
  border-radius: 99px;
  transition: width 0.35s ease;
}

/* ---- Quiz optional-email follow-up ---- */
#quiz-followup[hidden] { display: none; }
#quiz-followup { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); }
.followup-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
@media (max-width: 600px) { .followup-row { grid-template-columns: 1fr; } }

/* ---- Grounding ritual callout ---- */
.ritual {
  margin-top: 14px;
  padding: 12px 16px;
  border-left: 3px solid var(--gold);
  background: rgba(182, 144, 73, 0.08);
  border-radius: 0 10px 10px 0;
  font-size: 0.95rem;
}
.ritual strong { display: block; margin-bottom: 4px; }
