:root {
  --ink: #071113;
  --ink-soft: #102024;
  --ivory: #f2eee6;
  --paper: #e5d8c6;
  --gold: #d3af69;
  --gold-soft: #f0d89d;
  --teal: #2e7777;
  --taupe: #a28f8b;
  --line: rgba(231, 213, 175, 0.22);
  --serif: "Cinzel", "Iowan Old Style", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--ink); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ivory);
  background:
    radial-gradient(circle at 50% 0%, rgba(40, 107, 105, 0.2), transparent 42%),
    linear-gradient(160deg, #081315 0%, #0b1719 45%, #101414 100%);
  font-family: var(--sans);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(rgba(240, 216, 157, 0.55) 0.65px, transparent 0.65px);
  background-size: 31px 31px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

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

.ambient {
  position: fixed;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  opacity: 0.12;
}
.ambient-one { background: #1ca1a2; top: 12%; left: -250px; }
.ambient-two { background: #b88336; right: -300px; bottom: 4%; }

.site-header {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 5;
}

.brand {
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  cursor: pointer;
  letter-spacing: 0.18em;
  font-size: 11px;
}
.brand img { width: 34px; height: 34px; object-fit: contain; filter: invert(91%) sepia(20%) saturate(622%); }

.progress { display: flex; gap: 8px; }
.progress i { width: 24px; height: 2px; background: rgba(255,255,255,0.18); transition: 0.4s ease; }
.progress i.active { background: var(--gold); }
.header-actions { display:flex; align-items:center; gap:22px; }
.account-button { border:1px solid var(--line); background:rgba(255,255,255,.025); padding:9px 13px; cursor:pointer; font-size:11px; letter-spacing:.08em; }
.account-button.signed-in { border-color:rgba(211,175,105,.6); color:var(--gold-soft); }

.account-dialog {
  width:min(520px,calc(100% - 28px));
  color:var(--ivory);
  background:linear-gradient(150deg,#102024,#091315);
  border:1px solid rgba(211,175,105,.45);
  padding:42px;
  box-shadow:0 30px 90px rgba(0,0,0,.65);
}
.account-dialog::backdrop { background:rgba(1,6,7,.76); backdrop-filter:blur(8px); }
.account-dialog h2 { font-size:34px; margin:0 0 16px; }
.account-dialog h3 { color:var(--gold-soft); margin:24px 0 15px; }
.dialog-close { position:absolute; top:12px; right:15px; border:0; background:none; cursor:pointer; font-size:28px; color:rgba(242,238,230,.58); }
.dialog-copy { color:rgba(242,238,230,.63); line-height:1.6; }
.field-label { display:block; color:rgba(242,238,230,.62); font-size:12px; margin:20px 0 8px; }
.account-input { width:100%; min-height:48px; border:1px solid var(--line); background:rgba(0,0,0,.23); color:var(--ivory); padding:10px 13px; outline:none; }
.account-input:focus { border-color:var(--gold); }
.account-submit { width:100%; align-items:center; margin-top:12px; min-height:58px; }
.account-submit:disabled { opacity:.48; cursor:not-allowed; }
.account-message { min-height:20px; color:var(--gold-soft); font-size:12px; line-height:1.5; }
.account-identity { color:rgba(242,238,230,.62); }
.account-stat { display:flex; align-items:baseline; gap:10px; margin:24px 0; }
.account-stat strong { font-family:var(--serif); font-size:42px; color:var(--gold-soft); }
.account-stat span { color:rgba(242,238,230,.48); }
.account-dialog hr { border:0; border-top:1px solid var(--line); }
.consent-row { display:flex; gap:12px; color:rgba(242,238,230,.68); line-height:1.5; font-size:13px; }
.consent-row input { accent-color:var(--gold); margin-top:4px; }
.account-preferences { margin-top:15px; }
.sign-out-button { margin-top:16px; color:rgba(242,238,230,.52); }

#app { position: relative; z-index: 2; }

.screen {
  width: min(1040px, calc(100% - 36px));
  min-height: calc(100vh - 120px);
  margin: 0 auto;
  padding: 42px 0 90px;
  animation: enter 0.65s cubic-bezier(.2,.7,.2,1) both;
}

@keyframes enter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.welcome-screen { max-width: 720px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.welcome-art { width: 130px; height: 150px; position: relative; display: grid; place-items: center; margin-bottom: 18px; }
.welcome-art img { height: 138px; max-width: 100%; object-fit: contain; filter: sepia(.4) saturate(.8) brightness(1.5); position: relative; z-index: 2; }
.welcome-art .halo { position: absolute; width: 104px; height: 104px; border: 1px solid rgba(211,175,105,.5); border-radius: 50%; box-shadow: 0 0 45px rgba(211,175,105,.24), inset 0 0 28px rgba(211,175,105,.12); animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.09); opacity: .68; } }

.eyebrow { text-transform: uppercase; letter-spacing: .28em; font-size: 11px; color: var(--gold-soft); margin: 0 0 22px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(44px, 7vw, 74px); line-height: 1.04; letter-spacing: -.025em; margin: 0; }
.lede { max-width: 570px; color: rgba(242,238,230,.68); font-size: 17px; line-height: 1.7; margin: 27px 0 38px; }

.choice-stack { width: min(100%, 520px); display: grid; gap: 12px; }
.primary-button, .secondary-button, .path-card, .intention-card {
  border-radius: 4px;
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.primary-button, .secondary-button {
  min-height: 77px;
  padding: 17px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border: 1px solid var(--line);
}
.primary-button { background: linear-gradient(120deg, rgba(181,137,60,.28), rgba(129,91,38,.12)); border-color: rgba(227,190,116,.5); }
.secondary-button { background: rgba(255,255,255,.025); }
.browse-button { border-style: dashed; background: rgba(46,119,119,.055); }
.primary-button:hover, .secondary-button:hover, .intention-card:hover { transform: translateY(-2px); border-color: rgba(240,216,157,.65); }
.primary-button span, .secondary-button span { font-family: var(--serif); font-size: 18px; }
.primary-button b, .secondary-button b { font-weight: 400; font-size: 12px; color: rgba(242,238,230,.5); margin-top: 5px; }

.topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 45px; }
.back-button, .text-button { border: 0; background: none; cursor: pointer; color: var(--gold-soft); padding: 8px 0; font-size: 13px; letter-spacing: .06em; }
.step-label { color: rgba(242,238,230,.45); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.screen-title { max-width: 700px; margin-bottom: 38px; }
.screen-title h2 { font-size: clamp(36px, 5.5vw, 57px); margin: 0 0 14px; line-height: 1.12; }
.screen-title p { color: rgba(242,238,230,.61); max-width: 560px; line-height: 1.65; }

.intention-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.intention-card {
  min-height: 116px;
  border: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  padding: 22px;
  text-align: left;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 15px;
}
.intention-card .glyph { font-family: var(--serif); color: var(--gold); font-size: 22px; }
.intention-card strong { font-family: var(--serif); font-weight: 400; font-size: 18px; }
.intention-card small { display: block; color: rgba(242,238,230,.48); font-size: 12px; margin-top: 6px; }
.intention-card .arrow { color: var(--gold); }

.expression-panel { max-width: 720px; }
.expression-panel textarea {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  border: 1px solid rgba(227,190,116,.35);
  background: rgba(1,8,9,.36);
  color: var(--ivory);
  border-radius: 4px;
  padding: 24px;
  font-size: 18px;
  line-height: 1.65;
  outline: none;
}
.expression-panel textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(211,175,105,.08); }
.expression-panel textarea::placeholder { color: rgba(242,238,230,.3); }
.expression-panel .primary-button { margin-top: 16px; width: 100%; align-items: center; min-height: 60px; }
.privacy-note { color: rgba(242,238,230,.38); font-size: 12px; margin-top: 15px; }

.path-intention { border-left: 1px solid var(--gold); padding-left: 18px; margin: 0 0 30px; color: rgba(242,238,230,.65); }
.path-intention strong { color: var(--gold-soft); font-weight: 500; }
.path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.path-card { height: 510px; padding: 0; overflow: hidden; border: 1px solid var(--line); background: #111; position: relative; text-align: left; }
.path-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.path-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.path-card:hover img { transform: scale(1.025); }
.path-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(1,7,8,.96) 0%, rgba(1,7,8,.2) 62%, rgba(1,7,8,.08)); }
.path-copy { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 26px; }
.path-copy small { color: var(--gold-soft); letter-spacing: .18em; text-transform: uppercase; }
.path-copy h3 { font-size: 30px; margin: 8px 0 6px; }
.path-copy p { font-size: 13px; color: rgba(242,238,230,.62); margin: 0; line-height: 1.5; }

.collection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.oil-card {
  min-height: 350px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.022);
  color: var(--ivory);
  padding: 0;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.oil-card:hover { transform: translateY(-4px); border-color: rgba(240,216,157,.65); }
.oil-card-visual {
  height: 240px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle, rgba(46,119,119,.22), transparent 62%), #091416;
}
.oil-card-visual::after { content:""; position:absolute; inset:0; background:linear-gradient(to top,rgba(6,15,16,.5),transparent 48%); }
.oil-card-visual img { width: 74%; height: 78%; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(0,0,0,.4)); transition:transform .45s ease; }
.oil-card:hover img { transform: scale(1.045); }
.oil-card-copy { display:block; padding: 20px; }
.oil-card-copy small { display:block; color:var(--gold-soft); letter-spacing:.12em; text-transform:uppercase; font-size:10px; margin-bottom:7px; }
.oil-card-copy strong { font-family:var(--serif); font-size:21px; font-weight:400; }
.oil-card-copy em { float:right; color:var(--gold); font-style:normal; }

.result-screen { width: min(1140px, calc(100% - 36px)); }
.result-hero { display: grid; grid-template-columns: minmax(310px, .8fr) 1.2fr; min-height: 590px; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.result-visual { min-height: 520px; position: relative; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 40%, rgba(45,118,116,.28), transparent 56%), #071012; }
.result-visual::before { content:""; position:absolute; width: 310px; height: 310px; border: 1px solid rgba(211,175,105,.24); border-radius:50%; box-shadow: 0 0 90px rgba(211,175,105,.12); }
.result-visual img { position: relative; z-index: 2; max-width: 72%; max-height: 72%; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(0,0,0,.48)); }
.result-visual img.plant { max-width: 78%; max-height: 60%; }
.result-visual.has-video::before { display: none; }
.result-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  background: #071012;
}
.result-visual.has-video::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top, rgba(4, 13, 15, .62), transparent 42%);
}
.motion-button {
  position: absolute;
  z-index: 4;
  right: 20px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(240,216,157,.7);
  background: rgba(5,14,16,.72);
  color: var(--gold-soft);
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.motion-button:hover { background: rgba(211,175,105,.2); }
.result-number { position: absolute; bottom: 25px; left: 25px; font-family: var(--serif); color: rgba(240,216,157,.6); font-size: 13px; letter-spacing: .15em; }
.result-visual.has-video .result-number { z-index: 4; right: 76px; }
.result-copy { padding: clamp(34px, 6vw, 70px); display: flex; flex-direction: column; justify-content: center; }
.result-copy h1 { font-size: clamp(47px, 7vw, 78px); }
.result-subtitle { font-family: var(--serif); color: var(--gold-soft); letter-spacing: .08em; margin: 9px 0 24px; }
.result-message { color: rgba(242,238,230,.68); font-size: 16px; line-height: 1.75; max-width: 600px; }
.why { margin-top: 24px; padding: 15px 17px; border-left: 1px solid var(--gold); background: rgba(211,175,105,.06); color: rgba(242,238,230,.7); font-size: 13px; line-height: 1.55; }
.audio-player { margin-top: 28px; display: flex; gap: 15px; align-items: center; }
.play-button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--gold); background: rgba(211,175,105,.12); cursor:pointer; font-size: 16px; }
.audio-meta strong { display:block; font-family: var(--serif); font-weight:400; }
.audio-meta small { color: rgba(242,238,230,.43); }

.practice-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; margin-top: 18px; }
.practice-card { border: 1px solid var(--line); padding: clamp(24px, 4vw, 40px); background: rgba(255,255,255,.022); }
.practice-card h3 { margin: 0 0 22px; font-size: 23px; color: var(--gold-soft); }
.ritual-list { margin: 0; padding-left: 22px; color: rgba(242,238,230,.68); line-height: 1.7; }
.ritual-list li { margin-bottom: 10px; padding-left: 6px; }
.affirmation { font-family: var(--serif); font-size: 22px; line-height: 1.55; margin: 0; }
.affirmation::before { content: "“"; color: var(--gold); font-size: 48px; display: block; height: 31px; }

.journal-card { grid-column: 1 / -1; }
.journal-question { font-family: var(--serif); font-size: 21px; line-height: 1.5; max-width: 780px; }
.journal-card textarea { width: 100%; min-height: 130px; color: var(--ivory); background: rgba(0,0,0,.2); border: 0; border-bottom: 1px solid var(--line); padding: 16px 0; resize: vertical; outline: none; line-height: 1.6; }
.journal-actions { display:flex; align-items:center; gap:14px; margin-top:18px; }
.save-button { border: 1px solid var(--gold); background: rgba(211,175,105,.12); padding: 12px 18px; cursor:pointer; }
.saved-note { color: var(--gold-soft); font-size: 12px; opacity:0; transition:opacity .3s; }
.saved-note.visible { opacity:1; }
.journey-actions { display: flex; justify-content: space-between; gap: 16px; padding: 28px 0 0; }

@media (max-width: 760px) {
  .site-header { min-height: 72px; }
  .screen { padding-top: 25px; }
  .welcome-art { transform: scale(.84); margin-bottom: 0; }
  .intention-grid, .path-grid, .practice-grid, .collection-grid { grid-template-columns: 1fr; }
  .intention-card { min-height: 98px; }
  .path-card { height: 400px; }
  .result-hero { grid-template-columns: 1fr; }
  .result-visual { min-height: 410px; }
  .result-copy { padding: 34px 25px 40px; }
  .journal-card { grid-column: auto; }
  .journey-actions { flex-direction: column; align-items:flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
