/* ═══════════════════════════════════════════════════════════════
   WANDERLUST SITE — THE HANDOFF (intake experience)
   Five screens, mostly taps. The brief builds itself beside you
   and gets stamped "handled" at the end. Loads pages.css first.
   ═══════════════════════════════════════════════════════════════ */

body { overflow: hidden; }
body.ho-done-scroll { overflow: auto; }

.ho-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 92px clamp(20px, 4vw, 56px) 30px;
  background:
    radial-gradient(1100px 540px at 82% -12%, rgba(165, 135, 75, 0.13), transparent 62%),
    radial-gradient(950px 500px at -10% 32%, rgba(140, 167, 155, 0.12), transparent 60%),
    var(--paper);
}

/* progress dots */
.ho-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: clamp(20px, 4vh, 40px);
}
.hp-dot {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--line);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.hp-dot.on { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(165, 135, 75, 0.18); }
.hp-link { width: clamp(26px, 4vw, 54px); height: 2px; background: var(--line); }
.hp-link.on { background: var(--gold); }

/* layout: steps + live brief */
.ho-grid {
  flex: 1;
  width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(24px, 4vw, 70px);
  align-items: center;
  min-height: 0;
}
.ho-steps { position: relative; min-height: 460px; }

.hstep { position: absolute; inset: 0; display: none; flex-direction: column; justify-content: center; }
.hstep.active { display: flex; }
.hs-eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 14px; }
.hs-q { font-size: clamp(30px, 3.8vw, 54px); line-height: 1.08; margin-bottom: 10px; }
.hs-hint { color: var(--ink-soft); font-size: 15px; margin-bottom: 26px; }

/* answer chips */
.hs-opts { display: flex; flex-wrap: wrap; gap: 12px; }
.opt {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.25s;
  text-align: left;
}
.opt:hover { border-color: var(--gold); transform: translateY(-2px); }
.opt.picked { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.opt.picked::after { content: " ✓"; color: var(--gold-soft); }

/* step 1: the guilt notes */
.opt.note-opt {
  position: relative;
  background: linear-gradient(180deg, #fdf6d8, #fbf1c9);
  border: none;
  color: #4c4023;
  box-shadow: 0 10px 22px -10px rgba(60, 50, 20, 0.3);
  border-radius: 4px;
  padding: 18px 22px 16px;
}
.opt.note-opt::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 44px; height: 15px;
  background: rgba(200, 190, 160, 0.55);
}
.opt.note-opt:nth-child(odd) { transform: rotate(-1.2deg); }
.opt.note-opt:nth-child(even) { transform: rotate(1.2deg); }
.opt.note-opt:hover { transform: translateY(-3px) rotate(0deg); }
.opt.note-opt.picked { background: var(--ink); color: var(--paper); box-shadow: 0 14px 30px -12px rgba(23, 35, 32, 0.45); }
.opt.note-opt.picked::before { background: rgba(201, 171, 110, 0.5); }

/* text inputs (final step) */
.hs-fields { display: grid; gap: 14px; max-width: 460px; }
.hfield label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 7px; }
.hfield input {
  width: 100%;
  font-family: inherit;
  font-size: 17px;
  padding: 15px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.hfield input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(165, 135, 75, 0.14); }
.hfield input.bad { border-color: var(--alert); }

/* step controls */
.hs-nav { display: flex; align-items: center; gap: 18px; margin-top: 34px; }
.hs-back {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 10px 0;
}
.hs-back:hover { color: var(--ink); }
.hs-skip { font-size: 13px; color: var(--ink-soft); }

/* the live brief */
.brief {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 26px 24px;
  box-shadow: 0 30px 70px -34px rgba(23, 35, 32, 0.35);
  position: relative;
}
.brief-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 14px; display: flex; justify-content: space-between; }
.brief-label .b-live { color: var(--alert); display: flex; align-items: center; gap: 6px; }
.b-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--alert); animation: blip 1.6s ease-in-out infinite; }
@keyframes blip { 50% { opacity: 0.25; } }
.brief-rows { display: grid; gap: 12px; min-height: 200px; }
.brow { display: grid; grid-template-columns: 96px 1fr; gap: 12px; font-size: 14px; opacity: 0.35; transition: opacity 0.4s; }
.brow.filled { opacity: 1; }
.brow .bk { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); padding-top: 2px; }
.brow .bv { font-weight: 600; color: var(--ink); }
.brow .bv .empty { color: var(--line); font-weight: 400; }
.brief-foot { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--ink-soft); }

/* the handled stamp */
.stamp {
  position: absolute;
  top: 14px;
  right: 18px;
  padding: 8px 16px;
  border: 2.5px solid var(--gold-deep);
  border-radius: 8px;
  color: var(--gold-deep);
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 21px;
  transform: rotate(8deg) scale(2.2);
  opacity: 0;
  pointer-events: none;
}
.stamp.on { animation: stampin 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) forwards; }
@keyframes stampin { to { transform: rotate(-6deg) scale(1); opacity: 1; } }

/* final screen */
.ho-final { text-align: left; }
.ho-final .hs-q em { color: var(--gold); }
.final-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.final-note { margin-top: 20px; font-size: 14px; color: var(--ink-soft); max-width: 48ch; }
.copy-ok { color: var(--gold-deep); font-weight: 700; }

/* mobile */
@media (max-width: 980px) {
  body { overflow: auto; }
  .ho-app { padding-top: 84px; min-height: 100dvh; }
  .ho-grid { grid-template-columns: 1fr; align-items: start; gap: 26px; }
  .ho-steps { min-height: 420px; }
  .brief { display: none; }
  .brief.show-final { display: block; }
  .hs-q { font-size: clamp(26px, 7vw, 34px); }
}
