/* ================================================================
DON'T FREAK OUT — a page inside Our Community Tech
Inherits all brand tokens from /style.css (fonts, gradient, colors).
This file only adds classes specific to this page.
================================================================ */

/* ---------- Subsite eyebrow in header ---------- */
.dfo-header__crumb {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
  margin-left: var(--space-3);
  padding-left: var(--space-3);
  border-left: 1px solid var(--color-divider);
}

/* ---------- Hero ---------- */
.dfo-hero {
  position: relative;
  padding: clamp(var(--space-16), 8vw, var(--space-24)) 0 clamp(var(--space-12), 6vw, var(--space-20));
  overflow: hidden;
  background: var(--color-bg);
}

.dfo-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 30%, rgba(255, 191, 0, 0.10) 0%, transparent 65%),
    radial-gradient(ellipse 50% 45% at 85% 25%, rgba(111, 0, 215, 0.08) 0%, transparent 65%),
    radial-gradient(ellipse 70% 40% at 50% 95%, rgba(255, 55, 61, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.dfo-hero__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.dfo-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.dfo-hero__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-gradient);
  animation: dfoPulse 2.5s ease-in-out infinite;
}

@keyframes dfoPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.dfo-hero__title {
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-bottom: var(--space-6);
}

.dfo-hero__accent {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dfo-hero__sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.dfo-hero__ctas {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

/* ---------- Stat strip ---------- */
.dfo-statstrip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-10);
  max-width: 880px;
}

.dfo-stat {
  padding: var(--space-5) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.dfo-stat__value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: var(--space-2);
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dfo-stat__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.45;
}

.dfo-statstrip__source {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  max-width: 880px;
}

.dfo-statstrip__source a { color: var(--color-text-muted); text-decoration: underline; text-underline-offset: 3px; }
.dfo-statstrip__source a:hover { color: var(--color-text); }

@media (max-width: 900px) { .dfo-statstrip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .dfo-statstrip { grid-template-columns: 1fr 1fr; gap: var(--space-3); } .dfo-stat { padding: var(--space-4); } }

/* ---------- How it works strip ---------- */
.dfo-how {
  padding: clamp(var(--space-12), 6vw, var(--space-20)) 0;
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

.dfo-how__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.dfo-how__step {
  position: relative;
}

.dfo-how__num {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-3);
}

.dfo-how__title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}

.dfo-how__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

@media (max-width: 768px) { .dfo-how__grid { grid-template-columns: 1fr; gap: var(--space-6); } }

/* ---------- Fears grid ---------- */
.dfo-fears {
  padding: clamp(var(--space-16), 8vw, var(--space-24)) 0;
}

.dfo-fears__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-12));
}

.dfo-fears__head h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}

.dfo-fears__head p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 520px;
}

.dfo-fears__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

@media (max-width: 900px) { .dfo-fears__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .dfo-fears__grid { grid-template-columns: 1fr; } }

.dfo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: all 0.3s ease;
}

.dfo-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--card-accent, var(--brand-gradient));
  opacity: 0.09;
  filter: blur(20px);
  transition: opacity 0.3s ease;
}

.dfo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.dfo-card:hover::before { opacity: 0.22; }

.dfo-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--brand-gradient-soft);
  font-size: 26px;
  margin-bottom: var(--space-5);
  position: relative;
  z-index: 1;
}

.dfo-card__hook {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-2);
  position: relative;
  z-index: 1;
}

.dfo-card__title {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
  position: relative;
  z-index: 1;
}

.dfo-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
  flex: 1;
}

.dfo-card__cta {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  position: relative;
  z-index: 1;
}

.dfo-card__cta svg { transition: transform 0.2s ease; }
.dfo-card:hover .dfo-card__cta svg { transform: translate(3px, -3px); }

/* ---------- CTA band ---------- */
.dfo-ctaband {
  padding: clamp(var(--space-12), 6vw, var(--space-16)) 0 clamp(var(--space-16), 8vw, var(--space-24));
}

.dfo-ctaband__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  padding: clamp(var(--space-8), 4vw, var(--space-12));
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  flex-wrap: wrap;
}

.dfo-ctaband__left {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex: 1;
  min-width: 280px;
}

.dfo-ctaband__icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.dfo-ctaband__title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-1);
  letter-spacing: -0.01em;
}

.dfo-ctaband__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ---------- Detail page ---------- */
.dfo-detail {
  padding: clamp(var(--space-10), 6vw, var(--space-16)) 0 clamp(var(--space-12), 6vw, var(--space-20));
  max-width: 760px;
  margin: 0 auto;
}

.dfo-detail__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  margin-bottom: var(--space-8);
}

.dfo-detail__back:hover { color: var(--color-text); }

.dfo-detail__kicker {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.dfo-detail__icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-xl);
  background: var(--brand-gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.dfo-detail__hook {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  font-style: italic;
}

.dfo-detail__title {
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-4);
}

.dfo-detail__sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-12);
  max-width: 640px;
}

.dfo-section {
  margin-block: var(--space-10);
}

.dfo-section__label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-bottom: var(--space-3);
}

.dfo-section--validate .dfo-section__label { color: var(--brand-purple); }
.dfo-section--nuance .dfo-section__label { color: var(--brand-magenta); }
.dfo-section--reframe .dfo-section__label { color: var(--brand-coral); }
.dfo-section--try .dfo-section__label { color: #CC9200; }

.dfo-section__body {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-text);
}

.dfo-section__body p { margin-bottom: var(--space-4); max-width: 68ch; }

/* Stat card */
.dfo-statcard {
  margin-block: var(--space-10);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.dfo-statcard::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: var(--brand-gradient);
  opacity: 0.08;
  border-radius: 50%;
  filter: blur(30px);
}

.dfo-statcard__row {
  display: flex;
  align-items: baseline;
  gap: var(--space-6);
  flex-wrap: wrap;
  position: relative;
}

.dfo-statcard__value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dfo-statcard__caption {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 420px;
  line-height: 1.55;
}

.dfo-statcard__source {
  margin-top: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-decoration: none;
}

.dfo-statcard__source:hover { color: var(--color-text-muted); }

/* Myth vs Reality */
.dfo-mvr {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-block: var(--space-10);
}

.dfo-mvr__card {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.dfo-mvr__card--reality {
  border-color: transparent;
  background:
    linear-gradient(var(--color-surface), var(--color-surface)) padding-box,
    var(--brand-gradient) border-box;
  border: 1.5px solid transparent;
}

.dfo-mvr__label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-bottom: var(--space-2);
  color: var(--color-text-faint);
}

.dfo-mvr__card--reality .dfo-mvr__label {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dfo-mvr__text {
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--color-text);
}

@media (max-width: 600px) { .dfo-mvr { grid-template-columns: 1fr; } }

/* Try this list */
.dfo-try__list {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.dfo-try__item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  font-size: var(--text-base);
  line-height: 1.65;
}

.dfo-try__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* Sources */
.dfo-sources {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
}

.dfo-sources__label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-3);
}

.dfo-sources__list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }

.dfo-sources__list a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  display: inline-flex;
  gap: var(--space-2);
  align-items: flex-start;
  line-height: 1.5;
}

.dfo-sources__list a:hover { color: var(--color-primary); }

/* Pagination */
.dfo-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-top: var(--space-12);
}

.dfo-pagination a {
  display: block;
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.dfo-pagination a:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.dfo-pagination__dir {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.dfo-pagination__title { font-size: var(--text-sm); font-weight: 500; }

.dfo-pagination a:nth-child(2) { text-align: right; }
.dfo-pagination a:nth-child(2) .dfo-pagination__dir { justify-content: flex-end; }

@media (max-width: 500px) { .dfo-pagination { grid-template-columns: 1fr; } .dfo-pagination a:nth-child(2) { text-align: left; } .dfo-pagination a:nth-child(2) .dfo-pagination__dir { justify-content: flex-start; } }

/* ---------- Myths page ---------- */
.dfo-mythstable {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.dfo-mythsrow {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 230px 1fr 1fr;
}

.dfo-mythsrow__label {
  padding: var(--space-6);
  background: var(--color-surface-2);
  border-right: 1px solid var(--color-divider);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 600;
  font-size: var(--text-sm);
}

.dfo-mythsrow__label-emoji { font-size: 26px; }

.dfo-mythsrow__myth,
.dfo-mythsrow__reality {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.dfo-mythsrow__reality {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--brand-magenta) 4%, var(--color-surface)),
    color-mix(in srgb, var(--brand-purple) 4%, var(--color-surface)));
  border-left: 1px solid var(--color-divider);
}

.dfo-mythsrow__tag {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--color-text-faint);
}

.dfo-mythsrow__tag--reality {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 800px) {
  .dfo-mythsrow { grid-template-columns: 1fr; }
  .dfo-mythsrow__label { border-right: none; border-bottom: 1px solid var(--color-divider); }
  .dfo-mythsrow__reality { border-left: none; border-top: 1px solid var(--color-divider); }
}

/* ================================================================
CHAT DRAWER — Otis
================================================================ */

/* Floating launcher button */
.dfo-chatlauncher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--brand-gradient);
  color: #fff;
  border-radius: var(--radius-full);
  border: none;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(194, 55, 122, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dfo-chatlauncher:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(194, 55, 122, 0.45);
}

.dfo-chatlauncher:active { transform: translateY(0); }

@media (max-width: 480px) {
  .dfo-chatlauncher { bottom: 16px; right: 16px; padding: var(--space-3) var(--space-4); }
  .dfo-chatlauncher__label { display: none; }
}

.dfo-chatlauncher__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: dfoPulse 2s ease-in-out infinite;
}

/* Drawer backdrop + panel */
.dfo-chat-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 26, 0.4);
  backdrop-filter: blur(4px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.dfo-chat-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.dfo-chat {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  background: var(--color-surface);
  border-left: 1px solid var(--color-divider);
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.12);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dfo-chat.is-open { transform: translateX(0); }

.dfo-chat__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5);
  border-bottom: 1px solid var(--color-divider);
}

.dfo-chat__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.dfo-chat__who { flex: 1; }
.dfo-chat__name { font-family: var(--font-display); font-weight: 700; font-size: var(--text-base); letter-spacing: -0.01em; }
.dfo-chat__role { font-size: var(--text-xs); color: var(--color-text-muted); }

.dfo-chat__reset,
.dfo-chat__close {
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
  color: var(--color-text-muted);
  border-radius: var(--radius-md);
}

.dfo-chat__reset:hover,
.dfo-chat__close:hover { background: var(--color-surface-2); color: var(--color-text); }

.dfo-chat__reset { font-size: var(--text-xs); padding: var(--space-2) var(--space-3); }

.dfo-chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.dfo-msg {
  display: flex;
  gap: var(--space-2);
  max-width: 88%;
}

.dfo-msg--user {
  align-self: flex-end;
  justify-content: flex-end;
}

.dfo-msg__bubble {
  padding: var(--space-3) var(--space-4);
  border-radius: 18px;
  font-size: var(--text-sm);
  line-height: 1.55;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.dfo-msg--user .dfo-msg__bubble {
  background: var(--brand-gradient);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.dfo-msg--bot .dfo-msg__bubble {
  background: var(--color-surface-2);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-top-left-radius: 6px;
}

.dfo-msg__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  margin-top: 2px;
}

.dfo-starters {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.dfo-starters__label {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--space-1);
}

.dfo-starters__btn {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.4;
}

.dfo-starters__btn:hover {
  border-color: var(--color-primary);
  background: var(--color-surface-2);
}

.dfo-chat__thinking {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding-left: var(--space-2);
}

.dfo-chat__thinking-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-magenta);
  animation: dfoPulse 1.2s ease-in-out infinite;
}

.dfo-chat__form {
  padding: var(--space-4);
  border-top: 1px solid var(--color-divider);
  background: var(--color-bg);
}

.dfo-chat__inputrow {
  display: flex;
  gap: var(--space-2);
  align-items: flex-end;
}

.dfo-chat__input {
  flex: 1;
  resize: none;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: inherit;
  font-size: var(--text-sm);
  line-height: 1.5;
  min-height: 44px;
  max-height: 140px;
}

.dfo-chat__input:focus {
  outline: none;
  border-color: var(--brand-magenta);
  box-shadow: 0 0 0 3px rgba(194, 55, 122, 0.15);
}

.dfo-chat__send {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  border: none;
  background: var(--brand-gradient);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.dfo-chat__send:hover:not(:disabled) { transform: translateY(-1px); }
.dfo-chat__send:disabled { opacity: 0.4; cursor: not-allowed; }

.dfo-chat__disclaimer {
  font-size: 11px;
  color: var(--color-text-faint);
  margin-top: var(--space-2);
  line-height: 1.45;
}

/* Dark mode tweaks for chat */
[data-theme="dark"] .dfo-msg--bot .dfo-msg__bubble { background: var(--color-surface-2); }

/* Prevent body scroll while chat drawer is open */
body.dfo-chat-locked { overflow: hidden; }

/* Bubble paragraph + link styling — our formatText wraps content in <p> */
.dfo-msg__bubble p { margin: 0; }
.dfo-msg__bubble p + p { margin-top: var(--space-2); }
.dfo-msg__bubble a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.dfo-msg--bot .dfo-msg__bubble a { color: var(--color-primary); }

/* Typing indicator dots should sit on a bar, not stacked */
.dfo-msg--typing .dfo-chat__thinking { padding: var(--space-3) var(--space-4); }
.dfo-chat__thinking-dot:nth-child(1) { animation-delay: 0s; }
.dfo-chat__thinking-dot:nth-child(2) { animation-delay: 0.15s; }
.dfo-chat__thinking-dot:nth-child(3) { animation-delay: 0.3s; }

