:root {
  --violet-950: #321545;
  --violet-800: #563070;
  --violet-700: #694087;
  --lavender-300: #d9c4e7;
  --lavender-200: #eadff1;
  --lavender-100: #f5eef8;
  --beige-200: #eee2d2;
  --beige-100: #faf5ed;
  --white: #fff;
  --ink: #362b39;
  --muted: #756d77;
  --line: #e9e1ea;
  --shadow: 0 18px 55px rgba(73, 42, 91, .11);
  --radius-lg: 28px;
  --radius-md: 18px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 0%, rgba(225, 208, 236, .62), transparent 30rem),
    linear-gradient(155deg, #fffcf8 0%, #fbf7fc 51%, #f5eff7 100%);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(4px);
  opacity: .38;
}

.ambient-one { width: 190px; height: 190px; background: var(--beige-200); right: -90px; top: 28%; }
.ambient-two { width: 230px; height: 230px; background: var(--lavender-200); left: -145px; bottom: 7%; }

.site-header {
  width: min(100%, 940px);
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
}

.brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 39px; height: 39px; border-radius: 50%;
  color: var(--white); background: var(--violet-800); font-family: var(--serif); font-size: 22px;
  box-shadow: 0 6px 16px rgba(86, 48, 112, .22);
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { color: var(--violet-950); font-family: var(--serif); font-size: 15px; }
.brand-copy span { margin-top: 3px; color: var(--muted); font-size: 9.5px; letter-spacing: .025em; }

.privacy-button {
  display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 10px; color: var(--violet-800); background: rgba(255,255,255,.72); font-size: 12px;
  cursor: pointer;
}
.privacy-button svg { width: 15px; height: 15px; fill: currentColor; }

main { width: min(100% - 28px, 680px); margin: 5px auto 46px; }
.screen { display: none; animation: appear .4s ease; }
.screen.is-active { display: block; }
@keyframes appear { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.welcome-screen, .summary-screen {
  border: 1px solid rgba(105,64,135,.09); border-radius: var(--radius-lg); background: rgba(255,255,255,.82);
  box-shadow: var(--shadow); backdrop-filter: blur(15px); text-align: center; padding: 28px 20px 24px;
}

.eyebrow {
  display: inline-flex; padding: 7px 12px; border-radius: 999px; color: var(--violet-700);
  background: var(--lavender-100); font-weight: 750; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
}

.hero-illustration { position: relative; width: 142px; height: 126px; margin: 18px auto -3px; }
.halo { position: absolute; width: 126px; height: 126px; inset: 0 8px; border-radius: 50%; background: linear-gradient(145deg, var(--lavender-100), var(--beige-100)); }
.bag {
  position: absolute; bottom: 12px; left: 36px; width: 72px; height: 67px; border-radius: 13px 13px 22px 22px;
  background: linear-gradient(145deg, #784c94, #4d2865); box-shadow: 0 13px 26px rgba(73,42,91,.2);
}
.bag::after { content: ""; position: absolute; inset: 13px 0 auto; height: 1px; background: rgba(255,255,255,.23); }
.bag-handle { position: absolute; left: 18px; top: -21px; width: 36px; height: 30px; border: 5px solid #633b7d; border-bottom: 0; border-radius: 20px 20px 0 0; }
.bag-flower { position: absolute; right: -11px; top: 12px; font-size: 27px; transform: rotate(12deg); }

.kicker { margin: 8px 0 5px; color: var(--violet-700); font-size: 14px; font-weight: 700; }
h1, h2 { font-family: var(--serif); color: var(--violet-950); font-weight: 500; }
h1 { margin: 0; font-size: clamp(38px, 11vw, 56px); line-height: 1; letter-spacing: -.035em; }
.lead { max-width: 500px; margin: 18px auto 25px; color: #5f5661; font-size: 15px; line-height: 1.65; }

.journey-preview { margin: 0 auto 23px; display: grid; gap: 8px; text-align: left; }
.journey-preview div { display: flex; align-items: center; gap: 12px; border-radius: 14px; padding: 10px 12px; background: #faf7fb; }
.journey-preview span { flex: 0 0 auto; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: var(--lavender-200); color: var(--violet-800); font-size: 12px; font-weight: 800; }
.journey-preview p { margin: 0; color: #615863; font-size: 13px; }

.button {
  min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 15px;
  padding: 12px 18px; border: 1px solid transparent; font-size: 14px; font-weight: 750; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.button:active { transform: translateY(1px) scale(.995); }
.button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.button-primary { color: var(--white); background: linear-gradient(135deg, var(--violet-700), var(--violet-950)); box-shadow: 0 10px 24px rgba(86,48,112,.2); }
.button-primary:hover { box-shadow: 0 12px 28px rgba(86,48,112,.29); }
.button-secondary { color: var(--violet-800); background: var(--white); border-color: #d9cce0; }
.button-wide { width: 100%; }
.microcopy { margin: 12px 5px 0; color: #8b838d; font-size: 10.5px; line-height: 1.45; }

.tool-screen { max-width: 630px; margin: 0 auto; }
.tool-topline { display: flex; align-items: center; justify-content: space-between; margin: 3px 3px 16px; }
.tool-label, .tool-day-label { margin: 0; }
.tool-label { color: var(--violet-950); font-family: var(--serif); font-size: 18px; }
.tool-day-label { color: var(--muted); font-size: 11px; margin-top: 3px; }
.icon-button { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 50%; border: 1px solid var(--line); color: var(--violet-700); background: rgba(255,255,255,.85); cursor: pointer; }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.stepper { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; margin: 0 2px 19px; }
.stepper i { display: block; height: 1px; background: #dcd1e1; }
.step { display: flex; flex-direction: column; align-items: center; gap: 5px; border: 0; padding: 0; color: #918996; background: transparent; font-size: 9px; cursor: pointer; }
.step span { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: #eee8f0; font-size: 12px; font-weight: 800; transition: .2s ease; }
.step b { font-weight: 650; }
.step.is-active, .step.is-complete { color: var(--violet-700); }
.step.is-active span { color: var(--white); background: var(--violet-700); box-shadow: 0 5px 15px rgba(86,48,112,.25); }
.step.is-complete span { color: var(--violet-700); background: var(--lavender-200); }

.day-card {
  display: none; border: 1px solid rgba(105,64,135,.1); border-radius: var(--radius-lg); padding: 26px 18px 20px;
  background: rgba(255,255,255,.91); box-shadow: var(--shadow); animation: appear .34s ease;
}
.day-card.is-active { display: block; }
.day-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 18px; color: var(--violet-700); background: var(--lavender-100); }
.day-icon svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.day-number { margin: 0 0 7px; color: var(--violet-700); font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.day-card h2, .summary-screen h2 { margin: 0; font-size: clamp(28px, 8.5vw, 39px); line-height: 1.09; letter-spacing: -.025em; }
.prompt-help { margin: 11px 0 23px; color: #6e6570; font-size: 13px; line-height: 1.55; }

fieldset { border: 0; margin: 0 0 20px; padding: 0; }
legend, .text-label { display: block; margin-bottom: 10px; color: #4d424f; font-size: 12px; font-weight: 750; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 8px 12px; border: 1px solid #ded4e3; border-radius: 999px; color: #625568; background: var(--white); font-size: 12px; cursor: pointer; transition: .18s ease; }
.chip:hover { border-color: #b89fc7; background: #fdfafd; }
.chip.is-selected { color: var(--white); border-color: var(--violet-700); background: var(--violet-700); box-shadow: 0 5px 14px rgba(86,48,112,.16); }

.textarea-wrap { position: relative; }
textarea { width: 100%; min-height: 112px; resize: vertical; border: 1px solid #ded5e1; border-radius: var(--radius-md); padding: 14px 14px 28px; outline: none; color: var(--ink); background: #fffdfd; font-size: 14px; line-height: 1.5; transition: border .16s ease, box-shadow .16s ease; }
textarea::placeholder { color: #aba2ad; }
textarea:focus { border-color: #a98abc; box-shadow: 0 0 0 3px rgba(105,64,135,.11); }
.textarea-wrap > span { position: absolute; right: 13px; bottom: 10px; color: #aaa1ab; font-size: 9.5px; }
.textarea-wrap > span b { font-weight: 500; }

.gentle-note { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; border-radius: 15px; padding: 12px; background: var(--lavender-100); }
.gentle-note > span { font-size: 20px; line-height: 1; }
.gentle-note svg { flex: 0 0 auto; width: 19px; height: 19px; fill: none; stroke: var(--violet-700); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gentle-note p { margin: 0; color: #635468; font-size: 11.5px; line-height: 1.5; }
.gentle-note.beige { background: var(--beige-100); }
.prayer-note { background: linear-gradient(135deg, #f4edf7, #faf6ef); }

.carry-back { margin-bottom: 20px; border-left: 3px solid var(--lavender-300); border-radius: 0 14px 14px 0; padding: 11px 13px; background: #faf7fb; }
.carry-back span { color: var(--violet-700); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.carry-back p { margin: 5px 0 0; color: #64596a; font-family: var(--serif); font-size: 15px; line-height: 1.4; }
.button-row { display: grid; grid-template-columns: .72fr 1.28fr; gap: 10px; }

.summary-screen { padding-top: 31px; }
.summary-bloom { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 15px; border-radius: 50%; background: var(--lavender-100); font-size: 27px; }
.summary-intro { margin: 12px auto 22px; max-width: 470px; color: #716773; font-size: 13px; line-height: 1.55; }
.summary-card { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--line); text-align: left; }
.summary-item { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 15px; background: var(--white); }
.summary-index { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; color: var(--violet-700); background: var(--lavender-100); font-size: 12px; font-weight: 800; }
.summary-item small { color: #8b7b91; font-size: 8.5px; font-weight: 800; letter-spacing: .075em; }
.summary-item p { margin: 5px 0 0; color: #514653; font-size: 13px; line-height: 1.48; white-space: pre-wrap; }

blockquote { margin: 22px 0 16px; border-radius: 18px; padding: 18px; color: var(--white); background: linear-gradient(135deg, #6b4384, #3e2054); }
blockquote p { margin: 0; font-family: var(--serif); font-size: 18px; line-height: 1.35; }
blockquote cite { display: block; margin-top: 7px; color: #e7ddec; font-size: 10px; font-style: normal; letter-spacing: .08em; text-transform: uppercase; }

.prayer { display: flex; align-items: flex-start; gap: 12px; border-radius: 18px; padding: 15px; text-align: left; background: var(--beige-100); }
.prayer > span { flex: 0 0 auto; display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; color: var(--violet-700); background: var(--white); }
.prayer svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.prayer strong { color: var(--violet-950); font-family: var(--serif); font-size: 14px; }
.prayer p { margin: 5px 0 0; color: #6b6265; font-size: 11px; line-height: 1.55; }

.summary-actions { display: grid; grid-template-columns: 1.15fr .85fr; gap: 9px; margin-top: 19px; }
.text-button { margin-top: 16px; border: 0; padding: 4px; color: var(--violet-700); background: transparent; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.text-button.muted { display: block; margin: 8px auto 0; color: #99909a; font-size: 10.5px; }
footer { display: flex; flex-direction: column; gap: 4px; margin-top: 27px; padding-top: 18px; border-top: 1px solid var(--line); }
footer strong { color: var(--violet-950); font-family: var(--serif); font-size: 13px; }
footer span { color: #918994; font-size: 9.5px; }

.privacy-dialog { width: min(calc(100% - 30px), 430px); border: 0; border-radius: 24px; padding: 27px 20px 20px; color: var(--ink); box-shadow: 0 25px 80px rgba(43,27,51,.28); }
.privacy-dialog::backdrop { background: rgba(48,30,58,.42); backdrop-filter: blur(4px); }
.privacy-dialog .dialog-close { position: absolute; top: 13px; right: 13px; }
.dialog-icon { display: grid; place-items: center; width: 47px; height: 47px; border-radius: 16px; color: var(--violet-700); background: var(--lavender-100); }
.dialog-icon svg { width: 25px; height: 25px; fill: currentColor; }
.privacy-dialog h2 { margin: 16px 0 9px; font-size: 27px; }
.privacy-dialog p { color: #6b626d; font-size: 12.5px; line-height: 1.6; }
.privacy-dialog .button { margin-top: 7px; }

.toast { position: fixed; z-index: 20; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; border-radius: 999px; padding: 10px 15px; color: var(--white); background: var(--violet-950); box-shadow: 0 8px 24px rgba(50,21,69,.25); font-size: 12px; transition: .22s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

:focus-visible { outline: 3px solid rgba(105,64,135,.35); outline-offset: 3px; }

@media (min-width: 640px) {
  .site-header { padding: 18px 26px; }
  main { margin-top: 17px; }
  .welcome-screen, .summary-screen { padding: 38px 45px 31px; }
  .journey-preview { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .journey-preview div { flex-direction: column; align-items: flex-start; min-height: 96px; padding: 13px; }
  .day-card { padding: 34px 36px 28px; }
  .stepper { margin-inline: 38px; }
  .brand-copy strong { font-size: 17px; }
  .brand-copy span { font-size: 10px; }
}

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