:root {
  --ink: #25233b;
  --muted: #77758c;
  --purple: #7658e8;
  --purple-dark: #5c40cb;
  --lav: #f0edff;
  --line: #e8e5f2;
  --mint: #e5f7ef;
  --peach: #fff0e5;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fbfaff;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  line-height: 1.5;
}

button, input { font: inherit; }

button { cursor: pointer; }

.page-shell {
  max-width: 1120px;
  margin: auto;
  padding: 0 34px;
}

.topbar {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eeebf5;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  font-family: Manrope, sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.8px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: var(--purple);
  color: #fff;
  font-size: 19px;
}

.open-badge {
  font-size: 12px;
  color: #5f5b77;
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 30px;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35b77c;
  margin-right: 7px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 36px;
  padding: 62px 0 68px;
}

.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--purple);
  margin: 0 0 11px;
}

.hero h1 {
  font-family: Manrope, sans-serif;
  font-size: clamp(42px, 5.5vw, 66px);
  letter-spacing: -3.7px;
  line-height: 1.08;
  margin: 0 0 19px;
  font-weight: 800;
}

.hero h1 span { color: var(--purple); }

.hero-text {
  max-width: 475px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  font-size: 12px;
  color: #56536d;
}

.hero-points span:first-child { color: #398867; }

.hero-art {
  height: 300px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #f1edff, #f9f1ff 58%, #fff5e8);
  border-radius: 28px;
}

.sun {
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: #ffdda8;
  right: 47px;
  top: 24px;
  opacity: 0.75;
}

.orbit {
  position: absolute;
  border: 1px solid #c9bafc;
  border-radius: 50%;
  transform: rotate(-23deg);
}

.orbit-one { width: 300px; height: 130px; }
.orbit-two { width: 350px; height: 190px; transform: rotate(43deg); }

.note-card {
  position: absolute;
  box-shadow: 0 20px 55px #6551a522;
  border: 1px solid #ffffffaa;
  border-radius: 17px;
  background: #ffffffed;
}

.card-back {
  width: 180px;
  height: 150px;
  left: 35px;
  top: 56px;
  transform: rotate(-9deg);
  padding: 22px 17px;
  color: #8982a8;
  font-size: 9px;
  letter-spacing: 1px;
}

.mini-lines {
  height: 8px;
  width: 120px;
  background: #e8e3ff;
  border-radius: 6px;
  margin-top: 19px;
  box-shadow: 0 18px 0 #f0edff, 0 36px 0 #f0edff;
}

.card-front {
  width: 218px;
  padding: 20px 21px;
  right: 31px;
  bottom: 31px;
  transform: rotate(5deg);
}

.sparkle {
  color: var(--purple);
  font-size: 22px;
}

.card-front strong {
  display: block;
  font-family: Manrope, sans-serif;
  font-size: 19px;
  margin-top: 6px;
}

.card-front p {
  font-size: 12px;
  color: var(--muted);
  margin: 7px 0 15px;
}

.progress {
  height: 6px;
  border-radius: 9px;
  background: #eeeafa;
  overflow: hidden;
}

.progress i {
  display: block;
  width: 68%;
  height: 100%;
  background: var(--purple);
  border-radius: 9px;
}

.card-front small {
  display: block;
  margin-top: 8px;
  font-size: 8px;
  letter-spacing: 1px;
  color: #77718e;
}

.floating {
  position: absolute;
  font-size: 26px;
  color: var(--purple);
}

.f1 { top: 34px; left: 45%; }
.f2 { bottom: 25px; left: 17%; }
.f3 { top: 51px; right: 18%; }

.workspace {
  max-width: 850px;
  margin: 0 auto 74px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.section-heading h2 {
  font: 800 29px/1.2 Manrope, sans-serif;
  letter-spacing: -1px;
  margin: 0;
}

.step-count {
  font-size: 12px;
  color: var(--purple);
  font-weight: 700;
}

.step-count span { color: #b5afcb; }

.planner-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 23px;
  padding: 30px;
  box-shadow: 0 12px 40px #35215a08;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 23px 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}

.field > span {
  font-size: 12px;
  font-weight: 700;
  color: #4a4763;
}

.field b { color: #e46d82; }

.field-wide { grid-column: 1 / -1; }

input:not([type="range"]) {
  width: 100%;
  height: 46px;
  border: 1px solid #e6e3f0;
  border-radius: 10px;
  padding: 0 13px;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  background: #fdfcff;
}

input:focus {
  border-color: #a899f4;
  box-shadow: 0 0 0 3px #f1edff;
}

input::placeholder { color: #aaa6ba; }

.range-row {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.range-row input { width: 100%; accent-color: var(--purple); }

.range-row strong {
  white-space: nowrap;
  font-size: 12px;
  background: var(--lav);
  color: var(--purple-dark);
  padding: 8px 11px;
  border-radius: 8px;
}

.choice-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.choice {
  border: 1px solid #e7e3f1;
  border-radius: 9px;
  background: #fff;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #6b6782;
  transition: 0.15s;
}

.choice:hover { border-color: #b7aaf8; }

.choice.selected {
  background: var(--lav);
  border-color: #c6bafa;
  color: var(--purple-dark);
}

.primary-button {
  margin-top: 29px;
  width: 100%;
  height: 51px;
  border: 0;
  border-radius: 11px;
  background: var(--purple);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: 0.2s;
}

.primary-button:hover {
  background: var(--purple-dark);
  transform: translateY(-1px);
}

.primary-button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.privacy-note {
  text-align: center;
  color: #9894a9;
  font-size: 10px;
  margin: 13px 0 0;
}

.hidden { display: none !important; }

.results {
  max-width: 850px;
  margin: -30px auto 80px;
  animation: appear 0.35s ease;
}

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

.result-heading { align-items: flex-start; }

.result-heading h2 { font-size: 32px; }

.result-greeting {
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0 0;
}

.result-spark {
  font-size: 28px;
  color: var(--purple);
}

.plan-list {
  display: grid;
  gap: 11px;
}

.plan-step {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
}

.plan-time {
  align-self: start;
  text-align: center;
  background: var(--lav);
  color: var(--purple-dark);
  border-radius: 8px;
  padding: 8px 5px;
  font-size: 11px;
  font-weight: 700;
}

.plan-step h3 {
  font: 700 14px Manrope, sans-serif;
  margin: 1px 0 5px;
}

.plan-step p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}

.win-card,
.friend-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 15px;
  padding: 18px 20px;
  margin-top: 14px;
  background: var(--mint);
}

.win-icon,
.friend-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.win-card .eyebrow,
.friend-card .eyebrow {
  margin-bottom: 4px;
  color: #348568;
}

.win-card p:last-child,
.friend-card p:last-child {
  font-size: 13px;
  margin: 0;
  color: #375c51;
}

.quiz-section { margin-top: 32px; }

.quiz-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 13px;
}

.quiz-title h3 {
  font: 800 22px Manrope, sans-serif;
  margin: 0;
  letter-spacing: -0.5px;
}

.quiz-title > span {
  font-size: 11px;
  color: var(--muted);
}

.quiz-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 9px;
  overflow: hidden;
}

.quiz-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  border: 0;
  background: #fff;
  padding: 15px 17px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.quiz-question span:last-child {
  color: var(--purple);
  font-size: 17px;
}

.quiz-answer {
  display: none;
  padding: 0 17px 16px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.quiz-item.open .quiz-answer { display: block; }

.quiz-item.open .quiz-question span:last-child {
  transform: rotate(45deg);
}

.friend-card { background: var(--peach); }

.friend-card .eyebrow { color: #b46d37; }

.friend-card p:last-child { color: #76553e; }

.friend-icon { color: #c57d48; }

.copy-button {
  margin-left: auto;
  white-space: nowrap;
  background: #fff;
  border: 1px solid #f0d9c5;
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 10px;
  font-weight: 600;
  color: #8c5a31;
}

.mode-note {
  font-size: 10px;
  color: #9994aa;
  margin: 14px 0;
}

.secondary-button {
  background: transparent;
  border: 1px solid var(--line);
  padding: 11px 15px;
  border-radius: 9px;
  color: #6e6885;
  font-size: 12px;
  font-weight: 600;
}

.error-box {
  max-width: 850px;
  margin: -50px auto 70px;
  padding: 14px 17px;
  border-radius: 10px;
  background: #fff0f0;
  border: 1px solid #f4cece;
  color: #a13e3e;
  font-size: 12px;
}

footer {
  border-top: 1px solid #eeebf5;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 22px 0 27px;
  color: #9a96ad;
  font-size: 10px;
}

@media (max-width: 720px) {
  .page-shell { padding: 0 18px; }
  .topbar { height: 70px; }
  .hero {
    grid-template-columns: 1fr;
    padding: 42px 0 44px;
  }
  .hero h1 { font-size: 49px; }
  .hero-art { height: 270px; }
  .workspace { margin-bottom: 60px; }
  .planner-card { padding: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .section-heading h2 { font-size: 25px; }
  .results { margin-top: -20px; }
  .plan-step { grid-template-columns: 66px 1fr; padding: 15px 13px; gap: 12px; }
  .friend-card { flex-wrap: wrap; }
  .copy-button { margin-left: 38px; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
