:root {
  --ink: #20312d;
  --muted: #80938d;
  --forest: #243b36;
  --green: #50796d;
  --mint: #dcebe4;
  --cream: #f8f5ed;
  --paper: rgba(255,255,255,.78);
  --yellow: #f4c95d;
  --peach: #efaa87;
  --line: rgba(32,49,45,.13);
  --shadow: 0 24px 70px rgba(36,59,54,.12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
button, input, textarea { font: inherit; }
button { color: inherit; }

.ambient { position: fixed; border-radius: 999px; filter: blur(4px); opacity: .55; pointer-events: none; z-index: -1; }
.ambient-one { width: 370px; height: 370px; background: #cfe7df; top: -150px; right: -90px; }
.ambient-two { width: 300px; height: 300px; background: #f7ddb0; bottom: -150px; left: -100px; }

.site-header {
  width: min(1160px, calc(100% - 32px));
  margin: 20px auto 0;
  min-height: 68px;
  padding: 10px 12px 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 22px;
  box-shadow: 0 12px 45px rgba(36,59,54,.07);
  backdrop-filter: blur(18px);
  position: relative;
  z-index: 5;
}
.brand { border: 0; background: none; display: flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; font-size: 1.03rem; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--forest); color: var(--yellow); font-family: "Fraunces", serif; font-size: 1.25rem; }
nav { display: flex; align-items: center; gap: 4px; }
.nav-link, .text-button { border: 0; background: transparent; cursor: pointer; color: var(--muted); font-weight: 600; }
.nav-link { padding: 10px 13px; border-radius: 12px; }
.nav-link:hover, .nav-link.active { color: var(--forest); background: var(--mint); }

#app { width: min(1100px, calc(100% - 32px)); margin: 0 auto; min-height: calc(100vh - 180px); }
.screen { animation: enter .45s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(12px); } }

.hero { min-height: 660px; display: grid; grid-template-columns: 1.16fr .84fr; gap: 70px; align-items: center; padding: 70px 30px 70px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--green); text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 700; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--peach); }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(3rem, 6.2vw, 4.7rem); letter-spacing: -.010em; max-width: 760px; }
h2 { font-size: clamp(2.1rem, 4vw, 3.5rem); letter-spacing: -.035em; }
h3 { font-size: 1.45rem; }
.hero-copy { font-size: 1.12rem; color: var(--muted); max-width: 620px; margin: 24px 0 32px; }
.primary-button, .secondary-button {
  min-height: 52px; padding: 0 22px; border-radius: 15px; font-weight: 700; cursor: pointer; border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s;
}
.primary-button { color: white; background: var(--forest); box-shadow: 0 12px 24px rgba(36,59,54,.2); }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(36,59,54,.26); }
.secondary-button { background: white; border-color: var(--line); }
.secondary-button:hover { background: var(--mint); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.reassurance { color: var(--muted); font-size: .9rem; margin-top: 18px; }

.orbit { position: relative; aspect-ratio: 1; max-width: 420px; margin: auto; display: grid; place-items: center; }
.orbit::before, .orbit::after { content: ""; position: absolute; border: 1px solid rgba(80,121,109,.45); border-radius: 50%; }

.orbit::before { inset: 8%;}
.orbit::after { inset: 22%; border-style: dashed;}
.orbit-core { width: 420px; height: 420px; border-radius: 50%; display: grid; place-items: center; text-align: center; padding: 20px; color: white; font-family: "Fraunces", serif;  font-size: 1.35rem; color: var(--forest); }
.orbit-word { position: absolute; padding: 10px 15px; background: rgba(255,255,255,.88); border: 1px solid white; border-radius: 999px; box-shadow: 0 10px 30px rgba(36,59,54,.1); font-size: .87rem; font-weight: 700; }
.ow1 { top: 5%; left: 40%; }.ow2 { top: 30%; right: -1%; }.ow3 { bottom: 16%; right: 8%; }.ow4 { bottom: 9%; left: 13%; }.ow5 { top: 31%; left: -3%; }

.journey-layout { display: grid; grid-template-columns: 230px 1fr; gap: 30px; padding: 48px 0 70px; }
.step-panel { position: sticky; top: 20px; align-self: start; padding: 24px; background: var(--forest); color: white; border-radius: var(--radius); box-shadow: var(--shadow); }
.step-number { font-family: "Fraunces", serif; font-size: 3.5rem; color: var(--yellow); line-height: 1; }
.step-panel p { color: rgba(255,255,255,.67); margin: 8px 0 24px; }
.progress-track { height: 7px; background: rgba(255,255,255,.15); border-radius: 10px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--yellow); border-radius: inherit; transition: width .35s; }
.step-dots { display: flex; gap: 7px; margin-top: 15px; }
.step-dot { height: 8px; flex: 1; border-radius: 10px; background: rgba(255,255,255,.16); }
.step-dot.done { background: var(--yellow); }

.content-card { background: var(--paper); border: 1px solid rgba(255,255,255,.9); border-radius: 30px; padding: clamp(24px, 5vw, 52px); box-shadow: var(--shadow); backdrop-filter: blur(15px); }
.lead { color: var(--muted); font-size: 1.08rem; margin: 14px 0 30px; max-width: 670px; }
.question { margin-top: 30px; }
.question > label, .question-title { display: block; margin-bottom: 13px; font-weight: 700; }
.option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.option-grid.three { grid-template-columns: repeat(3, 1fr); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { min-height: 50px; padding: 12px 15px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.72); cursor: pointer; transition: .18s; }
.choice span::before { content: ""; width: 18px; height: 18px; margin-right: 10px; flex: 0 0 auto; border: 2px solid #9daba7; border-radius: 6px; }
.choice input[type="radio"] + span::before { border-radius: 50%; }
.choice input:checked + span { border-color: var(--green); background: var(--mint); box-shadow: inset 0 0 0 1px var(--green); }
.choice input:checked + span::before { background: var(--green); border-color: var(--green); box-shadow: inset 0 0 0 4px var(--mint); }
.choice input:focus-visible + span { outline: 3px solid rgba(244,201,93,.7); outline-offset: 2px; }
.helper { color: var(--muted); font-size: .88rem; margin: -5px 0 12px; }
.input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.8); color: var(--ink); padding: 15px 16px; outline: none; }
.input:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(80,121,109,.13); }
textarea { min-height: 105px; resize: vertical; }

.insight { margin-top: 28px; padding: 22px; border-radius: 18px; background: #fff6db; border-left: 4px solid var(--yellow); }
.insight strong { display: block; margin-bottom: 5px; }
.goal-result { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.result-card { padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: white; }
.result-card.selected { background: var(--mint); border-color: var(--green); }
.result-card b { display: block; margin-bottom: 6px; }

.rating-list { display: grid; gap: 16px; }
.rating-row { padding: 18px; border-radius: 17px; border: 1px solid var(--line); background: rgba(255,255,255,.65); }
.rating-row p { margin: 0 0 12px; }
.rating-controls { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.rating-controls label { text-align: center; }
.rating-controls input { position: absolute; opacity: 0; }
.rating-controls span { display: grid; place-items: center; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: white; cursor: pointer; }
.rating-controls input:checked + span { color: white; background: var(--green); border-color: var(--green); }
.rating-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; margin-top: 5px; }

.identity-grid, .profile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; }
.identity-block { min-height: 145px; padding: 22px; border-radius: 20px; background: white; border: 1px solid var(--line); }
.identity-block.wide { grid-column: 1 / -1; background: var(--forest); color: white; }
.identity-label { display: block; color: var(--green); text-transform: uppercase; letter-spacing: .11em; font-size: .72rem; font-weight: 700; margin-bottom: 10px; }
.identity-block.wide .identity-label { color: var(--yellow); }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { padding: 7px 10px; border-radius: 999px; background: var(--mint); font-size: .86rem; font-weight: 600; }
.identity-block.wide .tag { color: var(--forest); background: var(--yellow); }
.empty-text { color: var(--muted); font-style: italic; }

.future-grid { display: grid; gap: 16px; }
.future-card { padding: 20px; border-radius: 20px; background: rgba(255,255,255,.7); border: 1px solid var(--line); }
.future-letter { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; margin-bottom: 12px; background: var(--forest); color: var(--yellow); font-family: "Fraunces", serif; font-weight: 700; }
.future-card .input { margin-bottom: 10px; }
.common-values { margin-top: 20px; padding: 20px; border-radius: 18px; background: var(--mint); }

.profile-hero { padding: 56px 0 20px; text-align: center; }
.profile-hero .lead { margin-left: auto; margin-right: auto; }
.profile-shell { padding-bottom: 70px; }
.profile-grid .identity-block:nth-child(1) { background: #fff4d3; }
.profile-grid .identity-block:nth-child(4) { background: var(--mint); }
.profile-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.detox-shell { max-width: 790px; margin: 50px auto 70px; }
.detox-steps { counter-reset: detox; display: grid; gap: 16px; }
.detox-item { position: relative; padding-left: 48px; }
.detox-item::before { counter-increment: detox; content: counter(detox); position: absolute; left: 0; top: 4px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--forest); font-weight: 700; }

footer { width: min(1100px, calc(100% - 32px)); margin: 0 auto; padding: 22px 0 34px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .88rem; }
footer p { margin: 0; }
.text-button { text-decoration: underline; text-underline-offset: 3px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; color: white; background: var(--forest); padding: 11px 17px; border-radius: 12px; box-shadow: var(--shadow); transition: .25s; z-index: 20; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; gap: 25px; padding: 70px 10px; text-align: center; }
  .hero-copy { margin-left: auto; margin-right: auto; }
  .hero .button-row { justify-content: center; }
  .eyebrow { justify-content: center; }
  .orbit { max-width: 330px; width: 100%; }
  .journey-layout { grid-template-columns: 1fr; }
  .step-panel { position: static; padding: 18px 22px; }
  .step-number { font-size: 2.5rem; }
  .step-panel p { margin: 3px 0 13px; }
  .option-grid.three { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .site-header { width: calc(100% - 20px); margin-top: 10px; align-items: flex-start; padding: 11px; }
  .brand > span:last-child { display: none; }
  nav { width: calc(100% - 48px); justify-content: flex-end; }
  .nav-link { font-size: .78rem; padding: 10px 8px; }
  #app { width: calc(100% - 20px); }
  .hero { min-height: 610px; padding-top: 45px; }
  h1 { font-size: clamp(2.75rem, 15vw, 4.3rem); }
  .orbit-core { width: 140px; height: 140px; font-size: 1.1rem; }
  .orbit-word { font-size: .73rem; padding: 8px 10px; }
  .journey-layout { padding-top: 25px; gap: 16px; }
  .content-card { border-radius: 23px; }
  .option-grid, .option-grid.three, .goal-result, .identity-grid, .profile-grid { grid-template-columns: 1fr; }
  .identity-block.wide { grid-column: auto; }
  .rating-row { padding: 14px; }
  footer { flex-direction: column; align-items: flex-start; }
}

@media print {
  .site-header, footer, .profile-actions, .ambient { display: none !important; }
  body { background: white; }
  #app { width: 100%; }
  .profile-shell { padding: 0; }
  .profile-grid { break-inside: avoid; }
  .identity-block { box-shadow: none; }
}
