/* ── /audit/ AI Interview — Chat UI Styles ─────────────────────────────── */

/* ── DISCLOSURE HERO — MyFood/MyMoney pattern ────────────────────────────── */
.disclosure-modal {
  position: relative;
  min-height: 100vh;
  background-image:
    linear-gradient(to top,
      rgba(6,6,6,0.95) 0%,
      rgba(6,6,6,0.90) 20%,
      rgba(6,6,6,0.78) 42%,
      rgba(6,6,6,0.60) 58%,
      rgba(6,6,6,0.22) 78%,
      rgba(6,6,6,0.04) 100%),
    url('/assets/audit-hero.webp?v=1');
  background-size: cover;
  background-position: center;
  background-color: #080808;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 110px;
}
.disclosure-modal.hidden { display: none; }

/* Content sits at bottom, above CTA bar */
.dh-content {
  position: relative;
  z-index: 2;
  padding: 0 6vw 20px;
  max-width: 860px;
  margin-top: auto;
}

/* Eyebrow — gold line + mono label (MyFood pattern) */
.dh-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.4rem;
}
.dh-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--color-accent);
  display: block;
  flex-shrink: 0;
}

/* Three bullets — large display type, full white */
.dh-flow {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.dh-flow li {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.8rem, 3.6vw, 3.2rem);
  font-weight: 300;
  font-style: italic;
  color: #F5F0E8;
  line-height: 1.08;
}
.dh-flow li:last-child { color: var(--color-accent); }

/* Subtext — full white, light, readable */
.dh-sub {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  font-weight: 300;
  color: #F5F0E8;
  line-height: 1.74;
  max-width: 600px;
}

/* Report preview — bottom right corner */
.dh-report-preview {
  position: absolute;
  bottom: 80px;
  right: 4vw;
  width: clamp(220px, 24vw, 340px);
  z-index: 3;
}
.dh-report-preview__label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  display: block;
  text-align: center;
  margin-bottom: 8px;
}
.dh-report-preview img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 24px 64px rgba(0,0,0,.7);
  display: block;
}
@media (max-width: 768px) { .dh-report-preview { display: none; } }

/* Bottom CTA bar */
.dh-bottom {
  position: relative;
  z-index: 2;
  background: rgba(6,6,6,0.94);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 20px 6vw;
}
.dh-bottom-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 900px;
}
.disclosure-start-btn {
  padding: 15px 32px;
  font-family: 'League Spartan', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #000;
  background: var(--color-accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s, transform .1s;
  white-space: nowrap;
}
.disclosure-start-btn:hover { background: #e8c000; }
.disclosure-start-btn:active { transform: scale(.98); }

.dh-toggle {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color .2s;
}
.dh-toggle:hover { color: rgba(255,255,255,.65); }

/* Expandable disclosure text */
.dh-expand {
  display: none;
  padding-top: 16px;
  max-width: 720px;
}
.dh-expand.open { display: block; }
.dh-expand ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dh-expand ul li {
  font-family: 'League Spartan', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,.4);
  line-height: 1.55;
  padding-left: 16px;
  position: relative;
}
.dh-expand ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 900;
}

@media (max-width: 640px) {
  .dh-content { padding: 40px 24px 120px; }
  .dh-title { font-size: 38px; }
  .dh-bottom { padding: 14px 20px; }
  .disclosure-start-btn { width: 100%; text-align: center; }
}

/* ── CHAT SCREEN ─────────────────────────────────────────────────────────── */
.chat-screen { display: none; flex-direction: column; height: calc(100vh - 88px); max-height: 800px; }
.chat-screen.active { display: flex; }

.chat-shell {
  display: flex;
  flex-direction: column;
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
  min-height: 0;
}

/* Progress bar */
.chat-progress-bar {
  height: 2px;
  background: var(--color-line-1);
  border-radius: 1px;
  margin-bottom: 20px;
  overflow: hidden;
  flex-shrink: 0;
}
.chat-progress-fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: 1px;
  transition: width .4s ease;
  width: 0%;
}
.chat-progress-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--color-text-3);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 8px;
  flex-shrink: 0;
}

/* AI badge */
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  padding: 5px 10px;
  border: 1px solid var(--color-line-1);
  border-radius: 20px;
  margin: 0 auto 16px;
  flex-shrink: 0;
}
.ai-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
  animation: pulse-badge 2s ease-in-out infinite;
}
@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

/* Messages area */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--color-line-2) transparent;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--color-line-2); border-radius: 2px; }

/* Chat bubbles */
.bubble {
  max-width: 78%;
  padding: 13px 16px;
  border-radius: 12px;
  font-family: 'League Spartan', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  animation: bubble-in .22s ease-out;
}
@keyframes bubble-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bubble--ai {
  background: var(--color-bg-2);
  border: 1px solid var(--color-line-1);
  color: var(--color-text-1);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.bubble--user {
  background: var(--color-accent);
  color: #0d0d0d;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  font-weight: 600;
}
.bubble--typing {
  background: var(--color-bg-2);
  border: 1px solid var(--color-line-1);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  padding: 14px 18px;
}
.typing-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}
.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-text-3);
  animation: typing-bounce .9s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: .15s; }
.typing-dots span:nth-child(3) { animation-delay: .30s; }
@keyframes typing-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: .4; }
  40% { transform: translateY(-5px); opacity: 1; }
}

/* Input area */
.chat-input-area {
  padding: 12px 0 20px;
  flex-shrink: 0;
}
.chat-input-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.chat-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--color-bg-2);
  border: 1px solid var(--color-line-2);
  border-radius: 10px;
  color: var(--color-text-0);
  font-family: 'League Spartan', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  resize: none;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  min-height: 46px;
  max-height: 120px;
  overflow-y: auto;
}
.chat-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255,210,0,.08);
}
.chat-input::placeholder { color: var(--color-line-3); }
.chat-send-btn {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--color-accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s, transform .1s;
}
.chat-send-btn:hover { background: #e8c000; }
.chat-send-btn:active { transform: scale(.95); }
.chat-send-btn:disabled { opacity: .4; cursor: not-allowed; }
.chat-send-btn svg { color: #0d0d0d; }

/* Voice button */
.voice-btn {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--color-bg-2);
  border: 1px solid var(--color-line-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s, border-color .2s;
  color: var(--color-text-3);
  position: relative;
}
.voice-btn:hover { border-color: var(--color-line-3); color: var(--color-text-1); }
.voice-btn.active {
  background: rgba(220,38,38,.12);
  border-color: rgba(220,38,38,.4);
  color: #f87171;
}
.voice-btn.active::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 14px;
  border: 2px solid rgba(220,38,38,.4);
  animation: mic-pulse 1.2s ease-out infinite;
}
@keyframes mic-pulse {
  0%   { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.4); opacity: 0; }
}
.voice-hint {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .08em;
  color: rgba(255,255,255,.2);
  text-align: center;
  margin-top: 8px;
}

/* ── RESULTS SCREEN ──────────────────────────────────────────────────────── */
.results-screen { display: none; }
.results-screen.active { display: block; }

.results-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

.results-heading {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 300;
  color: var(--color-text-0);
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: 8px;
}
.results-heading em { font-style: italic; color: var(--color-accent); }
.results-sub {
  font-family: 'League Spartan', sans-serif;
  font-size: 15px;
  color: #d4cfc8;
  margin-bottom: 32px;
  line-height: 1.6;
}

.rec-section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-text-3);
  margin-bottom: 12px;
  display: block;
}

/* Paid solution cards */
.sol-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.sol-card {
  background: var(--color-bg-2);
  border: 1px solid var(--color-line-1);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color .2s;
  text-decoration: none;
}
.sol-card:hover { border-color: rgba(255,210,0,.25); }
.sol-card__body { flex: 1; min-width: 0; }
.sol-card__title {
  font-family: 'League Spartan', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-0);
  margin-bottom: 3px;
}
.sol-card__desc {
  font-family: 'League Spartan', sans-serif;
  font-size: 13px;
  color: #d4cfc8;
  line-height: 1.5;
}
.sol-card__price {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-accent);
  white-space: nowrap;
  flex-shrink: 0;
}
.sol-card__arrow {
  color: var(--color-text-3);
  flex-shrink: 0;
  transition: transform .15s;
}
.sol-card:hover .sol-card__arrow { transform: translateX(3px); }

/* Free tool cards */
.free-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 36px;
}
.free-card {
  background: rgba(74,222,128,.03);
  border: 1px solid rgba(74,222,128,.12);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  transition: border-color .2s;
}
.free-card:hover { border-color: rgba(74,222,128,.25); }
.free-card__body { flex: 1; min-width: 0; }
.free-card__title {
  font-family: 'League Spartan', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-0);
  margin-bottom: 2px;
}
.free-card__desc {
  font-family: 'League Spartan', sans-serif;
  font-size: 12px;
  color: #d4cfc8;
  line-height: 1.5;
}
.free-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(74,222,128,.7);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Calendar section */
.calendar-section {
  margin-bottom: 28px;
}
.calendar-heading {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 300;
  color: var(--color-text-0);
  margin-bottom: 6px;
  letter-spacing: -.01em;
}
.calendar-sub {
  font-family: 'League Spartan', sans-serif;
  font-size: 13px;
  color: #d4cfc8;
  margin-bottom: 16px;
  line-height: 1.55;
}
.calendar-frame {
  width: 100%;
  height: 680px;
  border: none;
  border-radius: 10px;
  background: var(--color-bg-2);
}

/* Send report CTA */
.send-report-wrap {
  margin-top: 20px;
  text-align: center;
}
.send-report-btn {
  display: inline-block;
  padding: 16px 32px;
  font-family: 'League Spartan', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #000;
  background: var(--color-accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s, transform .1s, box-shadow .2s;
  width: 100%;
  max-width: 480px;
}
.send-report-btn:hover { background: #e8c000; box-shadow: 0 4px 24px rgba(255,210,0,.2); }
.send-report-btn:active { transform: scale(.98); }
.send-report-btn:disabled { opacity: .4; cursor: not-allowed; }
.send-report-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: rgba(255,255,255,.25);
  margin-top: 10px;
}
.send-report-confirm {
  display: none;
  padding: 16px 24px;
  background: rgba(74,222,128,.06);
  border: 1px solid rgba(74,222,128,.2);
  border-radius: 8px;
  font-family: 'League Spartan', sans-serif;
  font-size: 14px;
  color: rgba(74,222,128,.8);
  text-align: center;
  line-height: 1.6;
}
.send-report-confirm.visible { display: block; }

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 680px) {
  .chat-shell { padding: 0 16px; }
  .results-shell { padding: 24px 16px 48px; }
  .disclosure-box { padding: 28px 20px; }
  .disclosure-box h2 { font-size: 22px; }
  .chat-screen { height: calc(100vh - 72px); max-height: none; }
  .calendar-frame { height: 560px; }
  .bubble { max-width: 92%; }
  .sol-card { flex-wrap: wrap; gap: 10px; }
  .sol-card__price { order: -1; }
}
