/* What's Next? reflection tool: page + homepage popup.
   Uses the site tokens from css/wow.css. */

/* ---------- shared card ---------- */
.wn { max-width: 600px; margin: 0 auto; }
.wn h1.wn-title { font-size: clamp(38px, 5vw, 64px); line-height: 1.04; font-weight: 500; margin: 0; }
.wn h2.wn-h { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.12; font-weight: 500; margin: 0; }
.wn p { margin: 0; }
.wn-lead { color: var(--muted); font-size: 17px; }
.wn-stack { display: flex; flex-direction: column; gap: 18px; }
.wn-screen { display: flex; flex-direction: column; gap: 18px; }
.wn-screen[hidden] { display: none; }
.wn-small { font-size: 13px; color: var(--muted); line-height: 1.45; }
.wn-err { font-size: 13px; color: #B3261E; }

/* form */
.wn-field { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--cream-2); border-radius: 16px; }
.wn-field label { font-size: 14px; font-weight: 600; }
.wn-field input[type="email"] {
  height: 50px; width: 100%; border: 1px solid rgba(35,31,32,0.25); border-radius: var(--radius);
  padding: 0 18px; font: inherit; font-size: 16px; background: var(--cream); color: var(--ink);
}
.wn-field input[type="email"]:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.wn-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; cursor: pointer; color: var(--ink); }
.wn-consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--teal); flex: 0 0 auto; }
.wn-privacy { font-size: 13px; color: var(--teal); border-bottom: 1px solid currentColor; align-self: flex-start; }
.wn-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* buttons: full-width variants of the site .btn */
.wn .btn { justify-content: center; }
.wn .btn-block { width: 100%; }
.wn .btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.wn .btn-plain::after { content: none; }

/* progress */
.wn-top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.wn-back { width: 44px; height: 44px; margin-left: -12px; border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center; }
.wn-back:hover { background: var(--cream-2); }
.wn-step { font-size: 13px; font-weight: 500; color: var(--muted); }
.wn-segments { display: flex; gap: 4px; }
.wn-segments span { flex: 1; height: 4px; border-radius: var(--radius); background: var(--line); }
.wn-segments span.on { background: var(--teal); }

/* question */
.wn-qhead { display: flex; align-items: center; gap: 14px; }
.wn-badge { width: 56px; height: 56px; border-radius: 50%; background: var(--yellow); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; font-family: var(--serif); font-size: 24px; font-weight: 700; line-height: 1; }
.wn-q { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.28; min-height: 120px; margin: 0; }
.wn-yn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wn-yn .btn { min-height: 58px; font-size: 17px; }
.wn-yn .btn.on { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* choices (tie + perspective) */
.wn-choices { display: flex; flex-direction: column; gap: 10px; }
.wn-choice {
  min-height: 64px; width: 100%; text-align: left; padding: 14px 18px; border-radius: 16px;
  border: 1px solid rgba(35,31,32,0.25); background: transparent; font-size: 16px; line-height: 1.4; color: var(--ink);
  display: flex; flex-direction: column; gap: 2px; transition: background .15s ease, border-color .15s ease;
}
.wn-choice:hover { background: var(--cream-2); }
.wn-choice.on { background: var(--cream-2); border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.wn-choice .name { font-family: var(--serif); font-size: 20px; font-weight: 500; }
.wn-choice .desc { font-size: 13px; color: var(--muted); }

/* result */
.wn-quote { font-family: var(--serif); font-style: italic; font-size: clamp(21px, 2.4vw, 26px); line-height: 1.4; padding-left: 16px; border-left: 2px solid var(--yellow); margin: 0; }
.wn-stepbox { display: flex; gap: 14px; align-items: flex-start; background: var(--cream-2); border-radius: 16px; padding: 16px; }
.wn-stepbox .dot { width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.wn-stepbox p { font-size: 15px; line-height: 1.5; }
.wn-ctas { display: flex; flex-direction: column; gap: 10px; }
.wn-rule { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.wn-sent { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.wn-sent svg { flex: 0 0 auto; margin-top: 2px; }
.wn-res { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wn-res .btn { min-height: 46px; font-size: 14px; padding: 0; }
.wn-res .btn.on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.wn-link { background: transparent; border: 0; padding: 8px 0; min-height: 44px; text-align: left; font-size: 15px; font-weight: 600; color: var(--teal); cursor: pointer; }
.wn-review { display: flex; flex-direction: column; }
.wn-review .row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.wn-review .row span { flex: 1 1 auto; font-size: 13px; line-height: 1.4; min-width: 0; }
.wn-review .row .btn { min-height: 40px; min-width: 60px; font-size: 13px; padding: 0 14px; }
.wn-review .row .btn.on { background: var(--teal); border-color: var(--teal); color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .wn-screen { animation: wn-fade .25s ease-out; }
  @keyframes wn-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* ---------- homepage popup ---------- */
.wn-pop-backdrop {
  position: fixed; inset: 0; z-index: 90; background: rgba(35,31,32,0.55);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.wn-pop-backdrop[hidden] { display: none; }
.wn-pop {
  position: relative; width: 100%; max-width: 640px; background: var(--cream); border-radius: 24px;
  padding: 56px 56px 40px; box-shadow: 0 30px 80px rgba(35,31,32,0.35);
  display: flex; flex-direction: column; gap: 16px;
}
.wn-pop .wn-pop-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.wn-pop h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4vw, 44px); line-height: 1.04; margin: 0; }
.wn-pop-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.wn-pop-close:hover { background: var(--cream-2); }
.wn-pop-later { align-self: center; font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; padding: 10px; min-height: 44px; }
@media (prefers-reduced-motion: no-preference) {
  .wn-pop { animation: wn-rise .35s ease-out; }
  @keyframes wn-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 640px) {
  .wn-pop-backdrop { padding: 0; align-items: flex-end; }
  .wn-pop { max-width: none; border-radius: 24px 24px 0 0; padding: 28px 24px 28px; max-height: 92vh; overflow-y: auto; }
  .wn-pop::before { content: ""; width: 40px; height: 4px; border-radius: var(--radius); background: rgba(35,31,32,0.2); align-self: center; margin: -8px 0 4px; }
  @media (prefers-reduced-motion: no-preference) {
    .wn-pop { animation: wn-sheet .35s ease-out; }
    @keyframes wn-sheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  }
}
