/* The New Wave — Financial Wellbeing Check v0.1.1 (minimalist B&W) */

#nww-chat-root {
  --nww-black:     #0a0a0a;
  --nww-charcoal:  #1a1a1a;
  --nww-ink:       #212121;
  --nww-grey-90:   #2e2e2e;
  --nww-grey-60:   #6b6b6b;
  --nww-grey-30:   #d4d4d4;
  --nww-grey-15:   #ececec;
  --nww-grey-05:   #f6f6f6;
  --nww-white:     #ffffff;
  --nww-radius:    12px;
  --nww-font:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --nww-font-size: 15px;
  --nww-max-width: 680px;
}

.nww-chat-root { font-family: var(--nww-font); font-size: var(--nww-font-size); line-height: 1.6; color: var(--nww-ink); max-width: var(--nww-max-width); margin: 0 auto; box-sizing: border-box; }
.nww-chat-root *, .nww-chat-root *::before, .nww-chat-root *::after { box-sizing: inherit; }

.nww-chat-inner {
  border: 1px solid var(--nww-grey-15); border-radius: var(--nww-radius);
  overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  display: flex; flex-direction: column; background: var(--nww-white);
  min-height: 540px; max-height: 82vh;
}

/* Header — flat black, no gradient. Confident, minimal. */
.nww-chat-header {
  background: var(--nww-black);
  color: var(--nww-white);
  padding: 18px 22px;
  flex-shrink: 0;
}
.nww-header-brand { display: flex; flex-direction: column; gap: 2px; }
.nww-header-title { font-weight: 600; font-size: 17px; letter-spacing: 0.2px; }
.nww-header-sub   { font-size: 11px; opacity: 0.7; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 400; }

/* Disclaimer bar — subtle, lives in the off-white band */
.nww-disclaimer-bar {
  background: var(--nww-grey-05);
  color: var(--nww-grey-60);
  padding: 9px 22px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.4px;
  text-align: center;
  border-bottom: 1px solid var(--nww-grey-15);
  flex-shrink: 0;
}

/* Messages */
.nww-chat-messages {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 22px 20px 12px; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; background: var(--nww-white);
}

.nww-msg { display: flex; margin-bottom: 14px; animation: nwwFadeIn 0.25s ease; }
@keyframes nwwFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.nww-msg-bot  { justify-content: flex-start; }
.nww-msg-user { justify-content: flex-end; }

.nww-bubble { max-width: 78%; padding: 12px 16px; border-radius: var(--nww-radius); font-size: 14.5px; line-height: 1.6; word-break: break-word; }
.nww-msg-bot  .nww-bubble { background: var(--nww-grey-05); color: var(--nww-ink); border-radius: 4px 14px 14px 14px; }
.nww-msg-user .nww-bubble { background: var(--nww-black);    color: var(--nww-white); border-radius: 14px 4px 14px 14px; }

.nww-typing { display: flex; align-items: center; gap: 4px; padding: 12px 14px; }
.nww-typing .nww-bubble { padding: 14px 16px; }
.nww-typing span { width: 7px; height: 7px; background: var(--nww-grey-60); border-radius: 50%; opacity: 0.5; animation: nwwBounce 1.2s infinite; display: inline-block; margin-right: 3px; }
.nww-typing span:nth-child(2) { animation-delay: 0.2s; }
.nww-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes nwwBounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-6px); opacity: 1; } }

/* Input area */
.nww-chat-input-area { padding: 14px 18px 16px; border-top: 1px solid var(--nww-grey-15); flex-shrink: 0; background: var(--nww-white); }

.nww-text-input-wrap { display: flex; gap: 10px; width: 100%; align-items: flex-end; }
.nww-text-input {
  flex: 1; border: 1.5px solid var(--nww-grey-15); border-radius: 10px;
  padding: 11px 14px; font-size: 15px; font-family: var(--nww-font);
  outline: none; transition: border-color 0.15s; resize: none;
  line-height: 1.5; min-height: 44px; max-height: 120px; color: var(--nww-ink);
}
.nww-text-input:focus { border-color: var(--nww-black); }

.nww-send-btn {
  background: var(--nww-black); color: var(--nww-white); border: none;
  width: 44px; height: 44px; border-radius: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.15s, opacity 0.15s;
}
.nww-send-btn:hover:not(:disabled)   { background: var(--nww-grey-90); }
.nww-send-btn:disabled { opacity: 0.4; cursor: default; }

.nww-input-error { color: #c0392b; font-size: 12.5px; margin-top: 6px; display: none; }

/* Consent */
.nww-consent-wrap  { margin-bottom: 12px; }
.nww-consent-label { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; color: var(--nww-grey-60); cursor: pointer; line-height: 1.5; }
.nww-consent-cb    { margin-top: 3px; flex-shrink: 0; cursor: pointer; accent-color: var(--nww-black); width: 16px; height: 16px; }
.nww-consent-link  { color: var(--nww-black); text-decoration: underline; }
.nww-consent-btn   { margin-top: 12px; }

.nww-confirm-btn {
  background: var(--nww-black); color: var(--nww-white); border: none;
  padding: 12px 22px; border-radius: 10px; font-size: 14.5px;
  font-family: var(--nww-font); font-weight: 600; cursor: pointer;
  transition: background 0.15s, opacity 0.15s; width: 100%;
}
.nww-confirm-btn:hover:not(:disabled) { background: var(--nww-grey-90); }
.nww-confirm-btn:disabled { opacity: 0.45; cursor: default; }

/* ── Report ────────────────────────────────────────────────────────────────── */
.nww-report-container { padding: 28px 22px 32px; background: var(--nww-grey-05); border-top: 1px solid var(--nww-grey-15); }

.nww-report-header { margin-bottom: 24px; }
.nww-report-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--nww-grey-60); margin-bottom: 8px; }
.nww-report-title { font-size: 24px; line-height: 1.25; font-weight: 600; color: var(--nww-black); margin: 0; }

/* Band card — minimalist with a thin top accent in black, no colour shifts.
   The band name is the hero, not the colour. */
.nww-band-card {
  background: var(--nww-white);
  border: 1px solid var(--nww-grey-15);
  border-top: 3px solid var(--nww-black);
  border-radius: 6px; padding: 24px 26px; margin-bottom: 24px;
}
.nww-band-label { font-size: 26px; font-weight: 600; color: var(--nww-black); margin-bottom: 8px; letter-spacing: -0.3px; }
.nww-band-desc  { font-size: 14.5px; color: var(--nww-grey-60); line-height: 1.6; }

/* Sections */
.nww-report-section { margin-bottom: 22px; }
.nww-section-title { font-size: 11.5px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--nww-grey-60); margin: 0 0 12px; }
.nww-section-body  { margin: 0; font-size: 15px; line-height: 1.7; color: var(--nww-ink); }

.nww-questions-list { margin: 0; padding-left: 0; list-style: none; }
.nww-questions-list li {
  position: relative; padding: 12px 0 12px 22px;
  font-size: 15px; line-height: 1.6; color: var(--nww-ink);
  border-bottom: 1px solid var(--nww-grey-15);
}
.nww-questions-list li:last-child { border-bottom: none; }
.nww-questions-list li::before {
  content: ""; position: absolute; left: 0; top: 21px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--nww-black);
}

/* CTA block */
.nww-cta-block {
  margin-top: 28px; padding: 26px;
  background: var(--nww-black); color: var(--nww-white);
  border-radius: 6px;
}
.nww-cta-lead  { margin: 0 0 18px; font-size: 15.5px; line-height: 1.6; color: var(--nww-white); opacity: 0.92; }
.nww-cta-btn   {
  display: block; width: 100%;
  background: var(--nww-white); color: var(--nww-black); border: none;
  padding: 14px 22px; border-radius: 8px;
  font-size: 15px; font-family: var(--nww-font); font-weight: 600;
  cursor: pointer; transition: background 0.15s, color 0.15s;
}
.nww-cta-btn:hover:not(:disabled)   { background: var(--nww-grey-15); }
.nww-cta-btn:disabled { opacity: 0.6; cursor: default; }

.nww-cta-secondary {
  display: block; width: 100%; margin-top: 10px;
  background: transparent; color: var(--nww-white); border: none;
  padding: 10px 22px; font-size: 13px; font-family: var(--nww-font);
  cursor: pointer; text-decoration: underline; opacity: 0.75;
}
.nww-cta-secondary:hover { opacity: 1; }

.nww-cta-confirmation {
  padding: 8px 0; font-size: 15px; line-height: 1.6; color: var(--nww-white);
}

/* Disclaimer at the foot of the report */
.nww-report-disclaimer {
  margin-top: 24px; padding: 16px;
  background: var(--nww-white); border: 1px solid var(--nww-grey-15);
  border-radius: 6px; font-size: 12px; line-height: 1.6; color: var(--nww-grey-60);
}

/* Footer */
.nww-footer-note {
  text-align: center; font-size: 11px; color: var(--nww-grey-60);
  padding: 11px 18px 13px; border-top: 1px solid var(--nww-grey-15);
  flex-shrink: 0; background: var(--nww-white);
  letter-spacing: 0.2px;
}

/* ── Reflection block ────────────────────────────────────────────────────────
   The first thing in the report. Must feel personal, considered, hand-written.
   Big opening quote mark, generous spacing, slightly italic to differentiate
   from the rest of the report copy. */
.nww-reflection {
  background: var(--nww-white);
  border: 1px solid var(--nww-grey-15);
  border-radius: 6px;
  padding: 28px 32px 30px;
  margin-bottom: 24px;
  position: relative;
}
.nww-reflection-mark {
  position: absolute;
  top: 4px; left: 24px;
  font-size: 64px; line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--nww-black);
  opacity: 0.12;
  font-weight: 700;
  user-select: none;
}
.nww-reflection-body {
  margin: 0;
  padding-top: 8px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--nww-ink);
  font-style: italic;
  font-weight: 400;
}

/* Band card eyebrow (small uppercase label above the band name) */
.nww-band-eyebrow {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--nww-grey-60);
  margin-bottom: 6px;
}

/* Section intro line (used inside partner prompts) */
.nww-section-intro {
  margin: -4px 0 12px;
  font-size: 13.5px;
  color: var(--nww-grey-60);
  line-height: 1.55;
}

/* Three things worth doing — numbered, action-oriented */
.nww-section-action { /* no extra container styling — section handles spacing */ }
.nww-action-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: nww-action;
}
.nww-action-list li {
  counter-increment: nww-action;
  position: relative;
  padding: 14px 0 14px 44px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--nww-ink);
  border-bottom: 1px solid var(--nww-grey-15);
}
.nww-action-list li:last-child { border-bottom: none; }
.nww-action-list li::before {
  content: counter(nww-action);
  position: absolute;
  left: 0; top: 14px;
  width: 28px; height: 28px;
  background: var(--nww-black);
  color: var(--nww-white);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}

/* Partner prompts — visually distinct so it feels like a separate thought.
   Slight off-white card with a thin top border — same family as the band
   card but lighter, to signal "this is bonus/optional". */
.nww-section-partner {
  background: var(--nww-white);
  border: 1px solid var(--nww-grey-15);
  border-top: 3px solid var(--nww-grey-60);
  border-radius: 6px;
  padding: 22px 24px 18px;
  margin-top: 8px;
}
.nww-section-partner .nww-section-title {
  margin-top: 0;
}

/* Mobile tightening for the new sections */
@media (max-width: 600px) {
  .nww-reflection { padding: 22px 22px 24px; }
  .nww-reflection-mark { font-size: 52px; left: 18px; }
  .nww-reflection-body { font-size: 15px; }
  .nww-section-partner { padding: 18px 20px 16px; }
  .nww-action-list li { padding-left: 40px; }
  .nww-action-list li::before { width: 26px; height: 26px; font-size: 12px; }
}

/* ── Mobile ─────────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .nww-chat-root  { margin: 0; max-width: 100%; }
  .nww-chat-inner { min-height: 100vh; max-height: none; border-radius: 0; border: none; box-shadow: none; }
  .nww-bubble     { max-width: 86%; }
  .nww-text-input { font-size: 16px; }  /* prevents iOS auto-zoom */
  .nww-report-title { font-size: 20px; }
  .nww-band-card { padding: 20px 22px; }
  .nww-band-label { font-size: 22px; }
  .nww-cta-block { padding: 22px; }
  .nww-report-container { padding: 22px 18px 28px; }
}
