:root {
  --hap-bg: #f6f2eb;
  --hap-card: #fffdf9;
  --hap-card-2: #f2edf8;
  --hap-ink: #251f2c;
  --hap-muted: #706879;
  --hap-border: rgba(76, 53, 93, 0.13);
  --hap-purple: #68458c;
  --hap-purple-dark: #412a5d;
  --hap-lavender: #aa8fc4;
  --hap-gold: #b9944e;
  --hap-shadow: 0 24px 70px rgba(58, 39, 73, 0.12);
}

#hap-snapshot-app,
#hap-snapshot-app * { box-sizing: border-box; }

#hap-snapshot-app {
  color: var(--hap-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  background:
    radial-gradient(circle at 12% 2%, rgba(171, 143, 196, 0.14), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(185, 148, 78, 0.09), transparent 28%),
    var(--hap-bg);
  border: 1px solid var(--hap-border);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--hap-shadow);
}

.hap-shell { max-width: 1180px; margin: 0 auto; padding: clamp(20px, 4vw, 48px); }

.hap-brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--hap-border);
  margin-bottom: clamp(30px, 5vw, 58px);
}

.hap-brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--hap-purple-dark), var(--hap-lavender));
  box-shadow: 0 10px 24px rgba(84, 55, 111, 0.18);
}

.hap-brand-title { font-weight: 800; letter-spacing: -0.02em; }
.hap-brand-subtitle { color: var(--hap-muted); font-size: 12px; letter-spacing: 0.04em; }

.hap-screen { display: none; }
.hap-screen.is-active { display: block; animation: hapFade .35s ease both; }
@keyframes hapFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hap-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  align-items: center;
  gap: clamp(34px, 6vw, 76px);
}

.hap-kicker,
.hap-section-label {
  display: inline-block;
  color: var(--hap-purple);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hap-intro-grid h1,
.hap-result-hero h2,
.hap-result-section h3,
.hap-offer h3,
.hap-loading-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--hap-ink);
  letter-spacing: -0.035em;
}

.hap-intro-grid h1 {
  margin: 14px 0 18px;
  max-width: 700px;
  font-size: clamp(2.45rem, 5.7vw, 5.1rem);
  line-height: .98;
}

.hap-lead { font-size: clamp(1.06rem, 2vw, 1.28rem); color: #51485a; }

.hap-intro-points,
.hap-offer-features {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 25px;
}

.hap-intro-points span,
.hap-offer-features span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--hap-border);
  background: rgba(255,255,255,.58);
  font-size: 12px;
  font-weight: 750;
  color: #5d5364;
}

.hap-form-card,
.hap-question-card,
.hap-loading-card,
.hap-result-section,
.hap-offer {
  background: rgba(255, 253, 249, 0.93);
  border: 1px solid var(--hap-border);
  border-radius: 24px;
  box-shadow: 0 16px 50px rgba(57, 40, 68, 0.08);
}

.hap-form-card { padding: clamp(24px, 4vw, 36px); }
.hap-form-card h2 { margin: 0 0 6px; font-size: 1.5rem; }
.hap-form-card > p { margin: 0 0 22px; color: var(--hap-muted); }

.hap-field { display: block; margin-bottom: 14px; }
.hap-field > span { display: block; font-size: 12px; font-weight: 800; margin: 0 0 6px; color: #4b4252; }
.hap-field input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(76, 53, 93, 0.18);
  background: #fff;
  color: var(--hap-ink);
  outline: none;
  font: inherit;
}
.hap-field input:focus { border-color: var(--hap-lavender); box-shadow: 0 0 0 4px rgba(137, 102, 167, 0.11); }

.hap-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  color: #fff !important;
  text-decoration: none !important;
  background: linear-gradient(135deg, #4b2e68, #77509b 58%, #9d79b9);
  box-shadow: 0 15px 32px rgba(94, 59, 126, .22);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .06em;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.hap-primary-button:hover { transform: translateY(-1px); box-shadow: 0 18px 36px rgba(94, 59, 126, .27); }
.hap-primary-button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.hap-full-button { width: 100%; margin-top: 8px; }

.hap-privacy-note,
.hap-disclaimer,
.hap-soft-note { color: var(--hap-muted); font-size: 12px; }
.hap-privacy-note { text-align: center; margin: 12px 0 0; }

.hap-error { padding: 10px 12px; margin: 10px 0; border-radius: 10px; color: #8a2c38; background: #fff0f1; border: 1px solid #f0c5ca; font-size: 13px; }

.hap-question-wrap { max-width: 760px; margin: 0 auto; }
.hap-progress-meta { display: flex; justify-content: space-between; gap: 20px; color: var(--hap-muted); font-size: 12px; font-weight: 750; margin-bottom: 8px; }
.hap-progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: rgba(84, 55, 111, 0.1); margin-bottom: 22px; }
.hap-progress-track span { display: block; height: 100%; width: 10%; border-radius: inherit; background: linear-gradient(90deg, var(--hap-purple-dark), var(--hap-lavender)); transition: width .28s ease; }

.hap-question-card { padding: clamp(25px, 5vw, 46px); }
.hap-question-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  margin: 12px 0 10px;
  font-size: clamp(1.72rem, 4vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.hap-question-help { color: var(--hap-muted); margin: 0 0 25px; }
.hap-options { display: grid; gap: 10px; }
.hap-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 58px;
  padding: 12px 14px;
  border-radius: 13px;
  border: 1px solid var(--hap-border);
  background: #fff;
  color: var(--hap-ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: .17s ease;
}
.hap-option:hover { transform: translateY(-1px); border-color: rgba(104, 69, 140, .42); box-shadow: 0 8px 22px rgba(61, 41, 76, .06); }
.hap-option.is-selected { border-color: var(--hap-purple); background: #f5eff9; }
.hap-option:disabled { cursor: default; }
.hap-option-marker { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #f2edf6; color: var(--hap-purple-dark); font-weight: 850; }
.hap-option-text { font-weight: 700; }
.hap-save-line { margin-top: 17px; color: var(--hap-muted); font-size: 11px; text-align: right; }

.hap-loading-card { max-width: 720px; margin: 28px auto; padding: clamp(35px, 6vw, 64px); text-align: center; }
.hap-loading-card h2 { font-size: clamp(2rem, 5vw, 3.5rem); margin: 14px auto 24px; line-height: 1.05; }
.hap-spinner { width: 50px; height: 50px; border-radius: 50%; margin: 0 auto 22px; border: 4px solid rgba(104,69,140,.12); border-top-color: var(--hap-purple); animation: hapSpin .85s linear infinite; }
@keyframes hapSpin { to { transform: rotate(360deg); } }
.hap-loading-lines { display: grid; gap: 7px; color: var(--hap-muted); font-size: 13px; }

.hap-result-shell { max-width: 920px; margin: 0 auto; }
.hap-result-hero { text-align: center; padding: clamp(16px, 4vw, 34px) 0 clamp(34px, 5vw, 58px); }
.hap-result-hero h2 { font-size: clamp(2.5rem, 6vw, 4.8rem); margin: 12px 0 8px; line-height: 1; }
.hap-result-hero > p:not(.hap-soft-note) { max-width: 760px; margin-left: auto; margin-right: auto; }
.hap-soft-note { max-width: 720px; margin: 18px auto 0; }

.hap-result-section { position: relative; padding: clamp(25px, 5vw, 44px); margin: 18px 0; overflow: hidden; }
.hap-result-section h3 { margin: 8px 0 12px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; }
.hap-result-section h4 { margin: 0 0 22px; color: #55485d; font-size: 1.08rem; line-height: 1.55; }
.hap-result-copy p { margin: 0 0 14px; }
.hap-section-number { position: absolute; right: 24px; top: 14px; color: rgba(104,69,140,.11); font-family: Georgia, serif; font-size: 54px; line-height: 1; }
.hap-highlight,
.hap-reflection-question { margin-top: 22px; padding: 17px 18px; border-radius: 14px; font-weight: 760; }
.hap-highlight { background: #f1eaf6; color: #4d3561; }
.hap-reflection-question { border-left: 3px solid var(--hap-gold); background: #f8f3e8; color: #5b4b2e; }
.hap-balanced { background: linear-gradient(145deg, rgba(255,253,249,.96), rgba(239,233,246,.9)); }
.hap-aha { background: linear-gradient(145deg, #30233c, #4e3760); color: #f9f6fb; border-color: rgba(255,255,255,.1); }
.hap-aha h3, .hap-aha .hap-section-label { color: #fff; }
.hap-aha .hap-section-number { color: rgba(255,255,255,.08); }

.hap-curiosity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.hap-curiosity-grid article { padding: 17px; border-radius: 14px; border: 1px solid var(--hap-border); background: #fff; }
.hap-curiosity-grid strong { display: block; margin-bottom: 4px; color: var(--hap-purple-dark); }
.hap-curiosity-grid span { display: block; color: var(--hap-muted); font-size: 13px; }

.hap-offer { text-align: center; padding: clamp(32px, 6vw, 58px); margin: 24px 0; background: radial-gradient(circle at top, rgba(169,143,194,.2), transparent 48%), #fffdf9; }
.hap-offer h3 { margin: 10px auto 14px; font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.02; }
.hap-offer > p { max-width: 700px; margin: 0 auto; color: #51485a; }
.hap-offer-features { justify-content: center; margin: 24px auto; max-width: 720px; }
.hap-offer .hap-primary-button { margin-top: 8px; }
.hap-disclaimer { text-align: center; max-width: 720px; margin: 28px auto 0; }

@media (max-width: 820px) {
  #hap-snapshot-app { border-radius: 20px; }
  .hap-shell { padding: 20px; }
  .hap-brand-header { margin-bottom: 30px; }
  .hap-intro-grid { grid-template-columns: 1fr; }
  .hap-intro-grid h1 { font-size: clamp(2.4rem, 13vw, 4.2rem); }
  .hap-form-card { padding: 22px; }
  .hap-question-card { padding: 24px 20px; }
  .hap-curiosity-grid { grid-template-columns: 1fr; }
  .hap-result-section { padding: 24px 20px; }
  .hap-section-number { right: 14px; font-size: 42px; }
}

@media (max-width: 480px) {
  .hap-shell { padding: 16px; }
  .hap-brand-mark { width: 34px; height: 34px; }
  .hap-brand-title { font-size: 14px; }
  .hap-brand-subtitle { font-size: 10px; }
  .hap-intro-points { gap: 6px; }
  .hap-intro-points span { font-size: 11px; padding: 7px 9px; }
  .hap-question-card h2 { font-size: 1.7rem; }
  .hap-option { min-height: 54px; padding: 10px 11px; }
  .hap-result-hero h2 { font-size: 2.55rem; }
  .hap-result-section h3 { font-size: 2rem; }
}

/* Phase 2: checkout, entitlement, secure access */
.hap-offer-price { margin-top: 12px !important; font-weight: 850; color: var(--hap-purple-dark) !important; font-size: 1.1rem; }
.hap-modal-open { overflow: hidden; }
.hap-checkout-modal { position: fixed; inset: 0; z-index: 999999; display: none; align-items: center; justify-content: center; padding: 18px; }
.hap-checkout-modal.is-open { display: flex; }
.hap-checkout-backdrop { position: absolute; inset: 0; background: rgba(26,18,31,.68); backdrop-filter: blur(4px); }
.hap-checkout-dialog { position: relative; z-index: 2; width: min(100%, 560px); max-height: calc(100vh - 36px); overflow: auto; border-radius: 22px; border: 1px solid rgba(255,255,255,.55); background: #fffdf9; box-shadow: 0 28px 80px rgba(24,13,33,.34); padding: clamp(24px, 5vw, 38px); }
.hap-checkout-dialog h2 { margin: 10px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; }
.hap-checkout-close { position: absolute; right: 14px; top: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(84,55,111,.08); color: var(--hap-purple-dark); font-size: 26px; line-height: 1; cursor: pointer; }
.hap-checkout-product { color: var(--hap-muted); margin: 0 0 20px; }
.hap-checkout-summary { display: grid; grid-template-columns: 95px 1fr; gap: 10px 14px; padding: 18px; border-radius: 14px; background: #f7f2fa; border: 1px solid var(--hap-border); margin: 18px 0; }
.hap-checkout-summary span { color: var(--hap-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 750; }
.hap-checkout-summary strong { overflow-wrap: anywhere; }
.hap-checkout-mode { display: grid; gap: 5px; margin: 14px 0 18px; padding: 13px 15px; border-radius: 12px; border: 1px solid #ead8a8; background: #fff8e9; color: #665026; font-size: 12px; }
.hap-checkout-mode strong { font-size: 11px; letter-spacing: .08em; }

.hap-standalone-access { margin: 32px auto; }
.hap-access-card { max-width: 760px; margin: 0 auto; padding: clamp(28px, 6vw, 56px); text-align: center; background: #fffdf9; border: 1px solid var(--hap-border); border-radius: 22px; box-shadow: 0 22px 60px rgba(64,42,82,.08); }
.hap-access-card h1 { margin: 12px 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.35rem, 6vw, 4.25rem); line-height: 1.02; }
.hap-access-card h2 { margin: 8px 0 12px; font-size: clamp(1.45rem, 3vw, 2rem); }
.hap-access-card > p { max-width: 620px; margin-left: auto; margin-right: auto; color: #554c5c; }
.hap-access-icon { width: 64px; height: 64px; margin: 22px auto 14px; display: grid; place-items: center; border-radius: 50%; background: #f1eaf6; color: var(--hap-purple-dark); font-size: 28px; font-weight: 900; }
.hap-access-unlocked .hap-access-icon { background: #edf7ef; color: #2c7041; }
.hap-access-meta { max-width: 560px; margin: 24px auto; display: grid; grid-template-columns: 120px 1fr; gap: 10px 16px; text-align: left; padding: 18px; border-radius: 14px; background: #f7f2fa; border: 1px solid var(--hap-border); }
.hap-access-meta span { color: var(--hap-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 750; }
.hap-access-meta strong { overflow-wrap: anywhere; }
.hap-success-box { margin: 18px auto; padding: 14px 16px; max-width: 620px; border-radius: 12px; background: #edf7ef; color: #2c7041; border: 1px solid #c9e4cf; }
.hap-recovery-form { max-width: 520px; margin: 24px auto 0; text-align: left; }

@media (max-width: 520px) {
  .hap-checkout-dialog { border-radius: 18px; padding: 24px 18px; }
  .hap-checkout-summary { grid-template-columns: 80px 1fr; }
  .hap-access-card { padding: 26px 18px; }
  .hap-access-meta { grid-template-columns: 1fr; text-align: center; }
}

/* Phase 3: Full 70-question Assessment */
.hap-full-screen { display: none; }
.hap-full-screen.is-active { display: block; }
.hap-full-intro-card,
.hap-full-review-card { max-width: 820px; margin: 0 auto; padding: clamp(28px, 6vw, 56px); border-radius: 22px; background: #fffdf9; border: 1px solid var(--hap-border); box-shadow: 0 22px 60px rgba(64,42,82,.08); }
.hap-full-intro-card h1,
.hap-full-review-card h2 { margin: 12px 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.03; letter-spacing: -.03em; }
.hap-full-lead { max-width: 650px; color: #554c5c; font-size: 1.08rem; }
.hap-full-guidance-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 26px 0; }
.hap-full-guidance-grid article { padding: 17px; border-radius: 14px; border: 1px solid var(--hap-border); background: #faf7fc; }
.hap-full-guidance-grid strong { display: block; margin-bottom: 7px; color: var(--hap-purple-dark); }
.hap-full-guidance-grid span { display: block; color: var(--hap-muted); font-size: 12.5px; line-height: 1.55; }
.hap-full-status-note { margin: 20px 0; padding: 14px 16px; border-radius: 12px; background: #f7f2fa; border: 1px solid var(--hap-border); color: #55465e; }
.hap-full-part-line { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 8px; color: var(--hap-purple-dark); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.hap-full-question-card { min-height: 530px; display: flex; flex-direction: column; }
.hap-full-question-card .hap-options { margin-top: 4px; }
.hap-full-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.hap-secondary-button,
.hap-text-button { border: 1px solid var(--hap-border); border-radius: 999px; background: #fff; color: var(--hap-purple-dark); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; padding: 11px 17px; }
.hap-secondary-button:hover { border-color: rgba(104,69,140,.42); background: #f8f4fa; }
.hap-secondary-button:disabled { opacity: .45; cursor: default; }
.hap-text-button { border-color: transparent; background: transparent; color: var(--hap-muted); }
.hap-text-button:hover { color: var(--hap-purple-dark); }
.hap-full-review-card > p { color: #554c5c; }
.hap-full-review-summary { display: inline-grid; gap: 2px; margin: 14px 0 20px; padding: 14px 18px; border-radius: 14px; background: #f1eaf6; color: var(--hap-purple-dark); }
.hap-full-review-summary strong { font-family: Georgia, "Times New Roman", serif; font-size: 2rem; line-height: 1; }
.hap-full-review-summary span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.hap-full-review-grid { display: grid; grid-template-columns: repeat(10, minmax(0,1fr)); gap: 8px; margin: 20px 0 26px; }
.hap-review-number { aspect-ratio: 1; min-width: 0; border-radius: 10px; border: 1px solid var(--hap-border); background: #fff; color: var(--hap-muted); font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.hap-review-number.is-answered { background: #edf7ef; border-color: #c6dfcc; color: #2c7041; }
.hap-review-number.is-missing { background: #fff4f3; border-color: #efcbc7; color: #a04b42; }
.hap-review-number:hover { transform: translateY(-1px); box-shadow: 0 6px 15px rgba(61,41,76,.08); }
.hap-full-review-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hap-full-review-actions .hap-primary-button,
.hap-full-review-actions .hap-secondary-button { flex: 1 1 220px; text-align: center; justify-content: center; }
.hap-full-review-actions .hap-primary-button:disabled { opacity: .45; cursor: default; }

@media (max-width: 760px) {
  .hap-full-guidance-grid { grid-template-columns: 1fr; }
  .hap-full-review-grid { grid-template-columns: repeat(7, minmax(0,1fr)); }
  .hap-full-question-card { min-height: auto; }
}
@media (max-width: 480px) {
  .hap-full-intro-card,
  .hap-full-review-card { padding: 25px 18px; }
  .hap-full-review-grid { grid-template-columns: repeat(5, minmax(0,1fr)); gap: 7px; }
  .hap-full-part-line { align-items: flex-start; flex-direction: column; gap: 3px; }
  .hap-full-nav { align-items: flex-start; flex-direction: column; }
  .hap-full-nav .hap-secondary-button,
  .hap-full-nav .hap-text-button { width: 100%; text-align: center; }
}

/* Phase 4: Human Angel Engine core result */
.hap-engine-result-card { max-width: 900px; margin: 0 auto; padding: clamp(28px, 6vw, 58px); border-radius: 24px; background: radial-gradient(circle at top right, rgba(169,143,194,.16), transparent 34%), #fffdf9; border: 1px solid var(--hap-border); box-shadow: 0 22px 60px rgba(64,42,82,.08); text-align: center; }
.hap-engine-result-card > h1 { margin: 12px 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 1.01; letter-spacing: -.035em; }
.hap-engine-result-lead { max-width: 690px; margin: 0 auto 28px; color: #554c5c; }
.hap-engine-result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0 16px; text-align: left; }
.hap-engine-result-item { padding: clamp(20px, 4vw, 30px); border-radius: 18px; border: 1px solid var(--hap-border); background: #fff; }
.hap-engine-result-item > span { display: block; margin-bottom: 10px; color: var(--hap-muted); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.hap-engine-result-item h2 { margin: 0 0 9px; font-family: Georgia, "Times New Roman", serif; color: var(--hap-purple-dark); font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.03; }
.hap-engine-result-item p { margin: 0; color: #655b6b; }
.hap-stage-result { background: linear-gradient(145deg, #fbf8fd, #fffdf9); }
.hap-engine-growth-card { margin: 14px 0 22px; padding: clamp(22px, 4vw, 32px); border-radius: 18px; border: 1px solid #eadfcd; background: #fffaf0; text-align: left; }
.hap-engine-growth-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.hap-engine-growth-list strong { display: inline-flex; align-items: center; min-height: 42px; padding: 9px 14px; border-radius: 999px; background: #fff; border: 1px solid #e6d8bf; color: #5e4932; }
.hap-engine-growth-card p { margin: 0; color: #6c5a49; }
.hap-engine-review-notice { display: grid; gap: 5px; margin: 18px 0; padding: 15px 17px; border-radius: 14px; text-align: left; border: 1px solid #efc8c2; background: #fff4f2; color: #7b4039; }
.hap-engine-review-notice[hidden] { display: none !important; }
.hap-engine-review-notice span { font-size: 13px; line-height: 1.55; }
.hap-engine-result-card .hap-access-meta { margin-top: 24px; }
@media (max-width: 700px) {
  .hap-engine-result-grid { grid-template-columns: 1fr; }
  .hap-engine-result-card { padding: 26px 18px; }
}

/* -------------------------------------------------------------------------
 * Phase 5: Full Editorial Human Angel Result
 * ------------------------------------------------------------------------- */
.hap-editorial-result { max-width: 980px; margin: 0 auto; padding-bottom: 10px; }
.hap-editorial-hero { position: relative; overflow: hidden; padding: clamp(34px, 7vw, 74px) clamp(22px, 6vw, 64px); border-radius: 28px; border: 1px solid var(--hap-border); background: radial-gradient(circle at 80% 0%, rgba(165,137,193,.22), transparent 36%), radial-gradient(circle at 10% 80%, rgba(215,184,119,.13), transparent 40%), #fffdf9; text-align: center; box-shadow: 0 28px 70px rgba(61,43,73,.09); }
.hap-editorial-symbol { width: 58px; height: 58px; display: grid; place-items: center; margin: 17px auto; border-radius: 50%; border: 1px solid #ded0e8; background: rgba(255,255,255,.7); color: var(--hap-purple); font-size: 24px; }
.hap-editorial-hero h1 { max-width: 760px; margin: 0 auto 14px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 6.5vw, 5.2rem); line-height: .98; letter-spacing: -.045em; color: var(--hap-purple-dark); }
.hap-editorial-hero > p { max-width: 700px; margin: 0 auto; color: #5e5663; font-size: 1.05rem; }
.hap-editorial-hero-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; max-width: 760px; margin: 34px auto 0; text-align: left; }
.hap-editorial-hero-grid article { padding: 20px; border-radius: 18px; border: 1px solid rgba(118,91,139,.16); background: rgba(255,255,255,.72); backdrop-filter: blur(5px); }
.hap-editorial-hero-grid span { display: block; margin-bottom: 8px; color: var(--hap-muted); font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.hap-editorial-hero-grid strong { display: block; font-family: Georgia, "Times New Roman", serif; color: var(--hap-purple-dark); font-size: clamp(1.75rem,4vw,2.7rem); line-height: 1.02; }
.hap-editorial-hero-grid small { display: block; margin-top: 8px; color: #645b68; line-height: 1.45; }

.hap-result-chapter { margin: clamp(48px,8vw,88px) 0 0; }
.hap-result-chapter[hidden] { display: none !important; }
.hap-result-chapter-head { max-width: 760px; margin: 0 auto 24px; text-align: center; }
.hap-result-chapter-head > span { display: inline-block; color: #9479a9; font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.hap-result-chapter-head h2 { margin: 8px 0 10px; font-family: Georgia, "Times New Roman", serif; color: var(--hap-purple-dark); font-size: clamp(2.4rem,5vw,4.2rem); line-height: 1; letter-spacing: -.035em; }
.hap-result-chapter-head p { max-width: 650px; margin: 0 auto; color: #6a606e; }

.hap-result-panel { padding: clamp(24px,5vw,46px); border-radius: 24px; border: 1px solid var(--hap-border); background: #fffdf9; box-shadow: 0 16px 45px rgba(61,43,73,.055); text-align: left; }
.hap-result-panel + .hap-result-panel { margin-top: 16px; }
.hap-result-panel h3 { margin: 9px 0 10px; font-family: Georgia, "Times New Roman", serif; color: var(--hap-purple-dark); font-size: clamp(2.15rem,5vw,3.7rem); line-height: 1.04; letter-spacing: -.025em; }
.hap-result-stage-panel blockquote { margin: 0 0 24px; padding: 0 0 0 16px; border-left: 2px solid #c8add6; color: #745c83; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.2rem,2.5vw,1.55rem); font-style: italic; }
.hap-result-prose { color: #4f4853; font-size: 1.01rem; line-height: 1.78; }
.hap-result-prose p { margin: 0 0 14px; }
.hap-result-lead-copy { max-width: 780px; margin: 0 0 24px; color: #4f4853; font-size: 1.08rem; line-height: 1.75; }

.hap-result-subsection { margin-top: 32px; padding-top: 26px; border-top: 1px solid #eee5f1; }
.hap-result-eyebrow { display: block; margin-bottom: 16px; color: var(--hap-muted); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.hap-result-check-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.hap-result-check { display: grid; grid-template-columns: 24px 1fr; gap: 8px; align-items: start; padding: 12px 13px; border-radius: 14px; background: #faf7fb; border: 1px solid #eee4f2; }
.hap-result-check > span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #efe4f5; color: #705783; font-size: 11px; font-weight: 900; }
.hap-result-check p { margin: 0; color: #574f5b; font-size: 13px; line-height: 1.52; }
.hap-result-focus-box { margin-top: 28px; padding: 20px; border-radius: 16px; background: linear-gradient(135deg,#f7f0fb,#fffaf0); border: 1px solid #e7d8ec; }
.hap-result-focus-box span { display: block; margin-bottom: 8px; color: #8a6d99; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.hap-result-focus-box strong { color: #493d50; font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; line-height: 1.5; }

.hap-journey-list { position: relative; display: grid; gap: 0; margin: 22px 0 20px; }
.hap-journey-list::before { content: ""; position: absolute; left: 13px; top: 18px; bottom: 18px; width: 1px; background: #ddd1e3; }
.hap-journey-item { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 13px; min-height: 66px; padding: 8px 0; color: #756d79; }
.hap-journey-marker { position: relative; z-index: 1; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #fffdf9; color: #a393ac; font-size: 17px; }
.hap-journey-item strong { display: block; color: #5a515e; font-size: 14px; }
.hap-journey-item small { display: block; margin-top: 3px; color: #8a818d; }
.hap-journey-item.is-current { padding: 12px 14px 12px 0; }
.hap-journey-item.is-current .hap-journey-marker { background: #725488; color: #fff; box-shadow: 0 0 0 6px #f1e7f5; }
.hap-journey-item.is-current strong { color: var(--hap-purple-dark); font-size: 16px; }

.hap-archetype-rich[hidden] { display: none !important; }
.hap-result-feature-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.hap-result-feature { padding: 22px; border-radius: 18px; background: #faf7fb; border: 1px solid #eee4f2; }
.hap-result-feature-major { margin: 28px 0 16px; background: radial-gradient(circle at 100% 0%,rgba(214,181,115,.12),transparent 45%),#f9f3fb; }
.hap-result-feature > span { display: block; margin-bottom: 10px; color: #8a6d99; font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.hap-result-feature p { margin: 0; color: #514956; line-height: 1.72; }
.hap-result-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.hap-result-tags span { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 12px; border-radius: 999px; border: 1px solid #e6dbe9; background: #fff; color: #5f5166; font-size: 12px; font-weight: 750; }

.hap-rich-growth-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.hap-growth-editorial-card { padding: clamp(24px,5vw,40px); border-radius: 22px; border: 1px solid #eadfcd; background: radial-gradient(circle at 100% 0%,rgba(210,177,110,.15),transparent 38%),#fffaf0; text-align: left; }
.hap-growth-editorial-card:only-child { grid-column: 1 / -1; }
.hap-growth-editorial-card h3 { margin: 8px 0 4px; font-family: Georgia,"Times New Roman",serif; color: #554334; font-size: clamp(2rem,4vw,3.1rem); line-height: 1.03; }
.hap-growth-editorial-card h4 { margin: 0 0 16px; color: #80664d; font-size: 1.03rem; }
.hap-growth-editorial-card > p { margin: 0; color: #655647; line-height: 1.72; }
.hap-growth-editorial-card .hap-result-tags span { border-color: #eadbc0; color: #6e573f; }

.hap-reflection-panel { text-align: center; background: radial-gradient(circle at 50% 0%,rgba(164,133,189,.14),transparent 40%),#fffdf9; }
.hap-reflection-panel .hap-result-prose { max-width: 730px; margin: 20px auto 0; }
.hap-result-meta { margin: 26px auto 0; }

@media (max-width: 720px) {
  .hap-editorial-hero-grid,
  .hap-result-feature-grid,
  .hap-rich-growth-list,
  .hap-result-check-grid { grid-template-columns: 1fr; }
  .hap-editorial-hero { border-radius: 22px; }
  .hap-result-panel { border-radius: 20px; padding: 24px 18px; }
  .hap-result-chapter { margin-top: 54px; }
  .hap-editorial-hero-grid article { text-align: center; }
  .hap-growth-editorial-card { padding: 24px 18px; }
}

/* -------------------------------------------------------------------------
 * Phase 7: Growth Combination + Personalized Recommendations
 * ------------------------------------------------------------------------- */
.hap-growth-combination { margin-top: 18px; background: linear-gradient(145deg,#fbf6fd,#fffaf0); }
.hap-growth-combination[hidden] { display: none !important; }
.hap-growth-combination h3 { font-size: clamp(1.8rem,4vw,2.8rem); }
.hap-growth-combination p { margin: 0; color: #5b505f; line-height: 1.75; }
.hap-recommendation-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.hap-recommendation-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 240px; padding: clamp(22px,4vw,32px); border-radius: 22px; border: 1px solid var(--hap-border); background: radial-gradient(circle at 100% 0%,rgba(166,136,190,.11),transparent 40%),#fffdf9; box-shadow: 0 15px 40px rgba(61,43,73,.05); }
.hap-recommendation-card h3 { margin: 8px 0 10px; font-family: Georgia,"Times New Roman",serif; color: var(--hap-purple-dark); font-size: clamp(1.65rem,3vw,2.25rem); line-height: 1.08; }
.hap-recommendation-card > p { margin: 0 0 16px; color: #5d5561; line-height: 1.7; }
.hap-recommendation-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: auto; padding-top: 18px; }
.hap-recommendation-meta span { padding: 6px 10px; border-radius: 999px; background: #f3edf6; color: #705b7d; font-size: 11px; font-weight: 750; }
.hap-recommendation-meta strong { color: #5c4834; font-size: 13px; }
.hap-recommendation-link { display: inline-flex; align-items: center; justify-content: center; margin-top: 16px; min-height: 42px; padding: 10px 16px; border-radius: 999px; background: var(--hap-purple-dark); color: #fff !important; text-decoration: none !important; font-size: 12px; font-weight: 850; letter-spacing: .03em; }
.hap-recommendation-link:hover { opacity: .9; }
@media (max-width:720px){.hap-recommendation-grid{grid-template-columns:1fr}}

/* Phase 8: Client report actions */
.hap-report-chapter{padding-bottom:8px}.hap-report-client-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.hap-report-client-actions .hap-primary-button,.hap-report-client-actions .hap-secondary-button{width:auto;min-width:180px;text-align:center}.hap-report-chapter #hap-report-status{margin-top:12px}.hap-report-chapter .hap-secondary-button{cursor:pointer}

@media (max-width:680px){.hap-report-client-actions{display:grid;grid-template-columns:1fr}.hap-report-client-actions .hap-primary-button,.hap-report-client-actions .hap-secondary-button{width:100%;min-width:0}}

@media print{
  body *{visibility:hidden!important}.hap-app#hap-full-app,.hap-app#hap-full-app *{visibility:visible!important}.hap-app#hap-full-app{position:absolute!important;left:0!important;top:0!important;width:100%!important;background:#fff!important}.hap-brand-header,.hap-report-client-actions,.hap-full-intro-card,.hap-full-status-note,.hap-engine-review-notice{display:none!important}.hap-full-screen{display:none!important}.hap-full-screen#hap-full-complete{display:block!important}.hap-editorial-result{box-shadow:none!important;border:0!important;max-width:none!important}.hap-result-chapter,.hap-result-panel,.hap-editorial-hero{break-inside:avoid;page-break-inside:avoid}.hap-recommendation-link{display:none!important}
}
