*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #18263a;
  --navy-mid:  #233249;
  --amber:     #c47d20;
  --amber-dark:#9c5e12;
  --amber-lt:  #e09235;
  --amber-pale:#fef3e2;
  --off-white: #f6f7f9;
  --border:    #e2e5ea;
  --text:      #0f1923;
  --mid:       #4a5568;
  --muted:     #64748b;
  --white:     #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* ── Utilities ─────────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 32px; }
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 18px;
}
.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  transition: all .2s ease;
  cursor: pointer;
  letter-spacing: .02em;
}
.btn-primary {
  background: var(--amber);
  color: var(--navy);
  border: 2px solid var(--amber);
}
.btn-primary:hover {
  background: var(--amber-lt);
  border-color: var(--amber-lt);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(196,125,32,.3);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.35);
}
.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.08);
}

/* ── Focus rings ───────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}
nav :focus-visible,
.hero :focus-visible,
.differentiators :focus-visible,
.process :focus-visible {
  outline-color: var(--white);
}
.btn-primary:focus-visible,
.cta-btn:focus-visible {
  outline-color: var(--navy);
}

/* ── Nav ───────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 32px;
  max-width: 1140px;
  margin: 0 auto;
}
.logo { text-decoration: none; display: flex; align-items: center; }
.logo img { display: block; height: 76px; width: auto; }

/* ── Hero shield decoration ────────────────────────── */
.hero-shield-bg {
  position: absolute;
  right: max(-60px, calc(50% - 620px));
  top: 50%;
  transform: translateY(-50%);
  width: 460px;
  height: auto;
  opacity: 0.07;
  pointer-events: none;
}

.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,.65);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}
.nav-links .nav-cta a {
  color: var(--amber);
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1.5px solid transparent;
  transition: color .2s, border-color .3s, background .3s;
}
.nav-links .nav-cta a.cta-active {
  border-color: var(--amber);
  background: rgba(196,125,32,.12);
}
.nav-links .nav-cta a:hover { color: var(--amber-lt); }

/* ── Hero ──────────────────────────────────────────── */
.hero {
  background: var(--navy);
  padding: 120px 0 110px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,125,32,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.03) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 820px;
  position: relative;
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 28px;
}
.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 28px;
  letter-spacing: -.02em;
}
.hero h1 em {
  font-style: normal;
  color: var(--amber);
}
.hero-sub {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255,255,255,.70);
  max-width: 640px;
  margin-bottom: 44px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-proof {
  margin-top: 70px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.proof-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 6px;
}
.proof-value {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,.8);
}

/* ── Problem Section ───────────────────────────────── */
.problem {
  background: var(--off-white);
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}
.problem-inner { max-width: 960px; }
.problem h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: -.02em;
}
.problem-lede {
  font-size: 19px;
  line-height: 1.7;
  color: var(--mid);
  margin-bottom: 40px;
  max-width: 740px;
}
.problem-body { font-size: 16px; color: var(--mid); line-height: 1.75; max-width: 780px; }
.problem-body + .problem-body { margin-top: 16px; }
.problem-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 56px;
}
.problem-col h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.problem-col.bad h3 { color: #94001a; }
.problem-col.good h3 { color: #1a6b1f; }
.problem-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.problem-col li {
  font-size: 15px;
  color: var(--mid);
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}
.problem-col li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
}
.problem-col.bad li::before { background: #c0001e; }
.problem-col.good li::before { background: #1a6b1f; }

.callout-block {
  margin-top: 56px;
  padding: 32px 40px;
  background: var(--navy);
  border-radius: 6px;
  border-left: 4px solid var(--amber);
}
.callout-block p {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.65;
  color: rgba(255,255,255,.85);
}
.callout-block p strong { color: var(--amber-lt); font-weight: 700; }

/* ── Section Layout ────────────────────────────────── */
.section-header { margin-bottom: 64px; }
.section-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -.02em;
  max-width: 680px;
}
.section-header p {
  font-size: 18px;
  color: var(--mid);
  max-width: 620px;
  line-height: 1.65;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.pillar {
  background: var(--white);
  padding: 44px 36px;
  position: relative;
}
.pillar-num {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--amber);
  margin-bottom: 20px;
  display: block;
}
.pillar h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.pillar p {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.7;
}
.pillar-detail {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.6;
}

.pillars-dark {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.08);
  margin-bottom: 48px;
}
.pillars-dark .pillar { background: var(--navy-mid); }
.pillars-dark .pillar h3 { color: var(--white); }
.pillars-dark .pillar p { color: rgba(255,255,255,.58); }
.pillars-dark .pillar-detail { color: rgba(255,255,255,.4); border-top-color: rgba(255,255,255,.1); }

/* ── Differentiators ───────────────────────────────── */
.differentiators {
  background: var(--navy);
  padding: 48px 0;
}
.differentiators .section-header { margin-bottom: 40px; }
.differentiators .section-header h2 { color: var(--white); }
.differentiators .section-header p { color: rgba(255,255,255,.6); }
.differentiators .tag,
.outcomes .tag { color: var(--amber); }
.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  overflow: hidden;
}
.diff-item {
  background: var(--navy-mid);
  padding: 40px 36px;
}
.diff-item h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.diff-item p {
  font-size: 15px;
  color: rgba(255,255,255,.58);
  line-height: 1.7;
}
.diff-icon {
  width: 36px; height: 36px;
  border-radius: 6px;
  background: rgba(196,125,32,.22);
  color: var(--amber-lt);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 18px;
}

/* ── Services ──────────────────────────────────────── */
.services {
  background: var(--off-white);
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}
.pillars-2x2 { grid-template-columns: repeat(2, 1fr); }

/* ── Outcomes ──────────────────────────────────────── */
.outcomes {
  background: var(--navy);
  padding: 72px 0;
}
.outcomes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.outcomes-left h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -.02em;
}
.outcomes-left p {
  font-size: 17px;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  margin-bottom: 36px;
}
.outcome-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.outcome-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 5px;
}
.outcome-check {
  width: 22px; height: 22px;
  background: var(--amber);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 12px;
  color: var(--white);
  font-weight: 700;
}
.outcome-text strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 3px;
}
.outcome-text span {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  line-height: 1.5;
}

/* ── Process ───────────────────────────────────────── */
.process {
  background: var(--off-white);
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}
.process-steps {
  display: flex;
  flex-direction: column;
  margin-top: 56px;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  left: 23px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--amber) 0%, var(--border) 100%);
}
.process-step {
  display: flex;
  gap: 32px;
  padding-bottom: 48px;
  position: relative;
}
.step-dot {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--amber);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: var(--amber);
  flex-shrink: 0;
  z-index: 1;
}
.step-body { padding-top: 10px; }
.step-body h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -.01em;
}
.step-body p {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.7;
  max-width: 600px;
}

/* ── Manifesto + CTA ───────────────────────────────── */
.manifesto {
  background: var(--amber-pale);
  padding: 60px 0 72px;
  border-top: 1px solid rgba(196,125,32,.2);
}
.manifesto-inner { max-width: 820px; }
.manifesto blockquote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  letter-spacing: -.01em;
  margin-bottom: 40px;
  position: relative;
  padding-left: 36px;
}
.manifesto blockquote::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 4px;
  background: var(--amber);
  border-radius: 2px;
}
.manifesto blockquote em { font-style: normal; color: var(--amber); }
.manifesto p {
  font-size: 17px;
  color: var(--mid);
  line-height: 1.75;
  max-width: 680px;
}
.manifesto p a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.manifesto p a:hover { text-decoration-color: var(--amber); }
.closing-h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-top: 48px;
  margin-bottom: 16px;
}
.closing-p {
  font-size: 17px;
  color: var(--mid);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 28px;
}

/* ── Pricing note ───────────────────────────────────── */
.pricing-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}
.pricing-sep {
  color: var(--muted);
  font-weight: 400;
}
.pricing-retainer {
  font-weight: 400;
  color: var(--mid);
}

/* ── CTA Button ─────────────────────────────────────── */
.cta-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--mid);
}
.cta-btn {
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--navy);
  font-size: 16px;
  padding: 18px 40px;
}
.cta-btn:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(24,38,58,.25);
}

/* ── Footer ────────────────────────────────────────── */
footer {
  background: var(--text);
  padding: 48px 32px;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.footer-brand span { color: var(--amber); }
.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,.35);
}
.footer-legal {
  font-size: 12px;
  color: rgba(255,255,255,.35);
}

/* ── Scroll offset for sticky nav ─────────────────── */
html { scroll-padding-top: 96px; }
@media (max-width: 840px) { html { scroll-padding-top: 80px; } }
@media (max-width: 560px) { html { scroll-padding-top: 72px; } }

/* ── Hamburger button (hidden on desktop) ──────────── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Desktop nav: never wrap */
.nav-links { flex-wrap: nowrap; }
.nav-links a { white-space: nowrap; }

/* ── Nav collapse ≤1260px ──────────────────────────── */
@media (max-width: 1260px) {
  .nav-toggle { display: flex; }
  .nav-inner { position: relative; }
  .nav-links {
    display: none;
    flex-direction: column;
    flex-wrap: wrap;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 8px 24px 20px;
    gap: 0;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { white-space: normal; display: block; padding: 13px 0; font-size: 15px; color: rgba(255,255,255,.8); }
  .nav-links .nav-cta { border-bottom: none; }
  .nav-links .nav-cta a { color: var(--amber); padding-top: 16px; }
}

/* ── Layout changes ≤840px ─────────────────────────── */
@media (max-width: 840px) {
  .hero { padding: 72px 0 60px; }
  .hero-shield-bg { display: none; }
  .logo img { height: 60px; }

  .problem, .differentiators, .services, .outcomes, .process, .manifesto { padding: 56px 0; }

  .pillars { grid-template-columns: 1fr; }
  .pillars-2x2 { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .problem-cols { grid-template-columns: 1fr; }
  .hero-proof { gap: 24px; }
  .section-header { margin-bottom: 44px; }
}

/* ── Mobile ≤560px ─────────────────────────────────── */
@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 10px 20px; }
  .logo img { height: 52px; }

  .hero { padding: 52px 0 48px; }
  .hero-sub { font-size: 17px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }
  .hero-proof { flex-direction: column; gap: 16px; }

  .problem, .differentiators, .services, .outcomes, .process, .manifesto { padding: 44px 0; }
  .callout-block { padding: 24px 20px; }

  .pillar { padding: 28px 20px; }
  .diff-item { padding: 28px 20px; }
  .outcome-list li { padding: 16px 14px; }

  .process-steps::before { left: 19px; }
  .step-dot { width: 40px; height: 40px; font-size: 13px; flex-shrink: 0; }
  .process-step { gap: 20px; }

  .manifesto blockquote { padding-left: 20px; }
  .manifesto blockquote::before { width: 3px; }

  .footer-inner { flex-direction: column; gap: 10px; }
  .nav-links { padding: 8px 20px 16px; }
}

/* ── Reduced motion ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .aihw-popup,
  .aihw-pill,
  .aihw-send { transition: none; }
  .aihw-question,
  .aihw-reply,
  .aihw-pill { animation: none; }
  .aihw-loading span { animation: none; opacity: 0.6; }
}

/* ── AI Help Widget keyframes ───────────────────────── */
@keyframes aihw-bubble-in {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes aihw-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes aihw-dot {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40%           { opacity: 1;    transform: translateY(-3px); }
}
@keyframes aihw-pill-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── AI Help Widget ─────────────────────────────────── */
#ai-help-btn {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Playfair Display', Georgia, serif;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  z-index: 9000;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  border: 2px solid rgba(255,255,255,.15);
  line-height: 1;
}
#ai-help-btn:hover { box-shadow: 0 6px 24px rgba(0,0,0,.45); }
#ai-help-btn.dragging { cursor: grabbing; box-shadow: 0 8px 32px rgba(0,0,0,.5); }

.aihw-popup {
  position: fixed;
  width: min(380px, calc(100vw - 48px));
  background: #fdf6f6;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.08);
  z-index: 8999;
  display: none;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .18s ease-out, transform .18s ease-out;
}
.aihw-inner { padding: 22px 20px 16px; display: flex; flex-direction: column; }
.aihw-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 4px;
}
.aihw-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}
.aihw-sparkle { color: #7c3aed; }
.aihw-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-left: 8px;
}
.aihw-close,
.aihw-expand {
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  padding: 2px 5px;
  line-height: 1;
  border-radius: 4px;
  transition: color .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aihw-close { font-size: 1rem; }
.aihw-close:hover, .aihw-expand:hover { color: var(--text); }
.aihw-popup.expanded .aihw-inner { flex: 1; overflow: hidden; min-height: 0; }
.aihw-popup.expanded .aihw-replies { flex: 1; min-height: 0; max-height: unset; overflow-y: auto; }
.aihw-popup.expanded .aihw-header,
.aihw-popup.expanded .aihw-subtitle,
.aihw-popup.expanded .aihw-pills,
.aihw-popup.expanded .aihw-input-wrap,
.aihw-popup.expanded .aihw-footer { flex-shrink: 0; }
.aihw-subtitle { font-size: 13px; color: var(--muted); margin-bottom: 16px; line-height: 1.4; }
.aihw-pills { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.aihw-pill {
  background: #fff8f8;
  border: 2px dashed #c0392b;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-family: 'Inter', system-ui, sans-serif;
  transition: background .15s;
  line-height: 1.35;
  animation: aihw-pill-in 220ms ease-out both;
}
.aihw-pill:nth-child(2) { animation-delay:  60ms; }
.aihw-pill:nth-child(3) { animation-delay: 120ms; }
.aihw-pill:nth-child(4) { animation-delay: 180ms; }
.aihw-pill:hover { background: #ffeaea; }
.aihw-input-wrap { position: relative; display: flex; align-items: flex-end; }
.aihw-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 11px 50px 11px 18px;
  font-size: 14px;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color .15s;
  resize: none;
  min-height: 44px;
  max-height: 120px;
  overflow-y: hidden;
  line-height: 1.5;
}
.aihw-input:focus { border-color: #c0392b; }
.aihw-input::placeholder { color: #bbb; }
.aihw-send {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #c0392b;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s, background .15s;
}
.aihw-send.visible { opacity: 1; pointer-events: auto; }
.aihw-send:hover { background: #a93226; }
.aihw-replies {
  display: none;
  flex-direction: column;
  gap: 12px;
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: 12px;
  background: var(--white);
  padding: 10px 12px;
}
.aihw-replies.has-replies { display: flex; }
.aihw-question {
  align-self: flex-end;
  background: var(--amber-pale);
  border: 1.5px dashed var(--amber);
  border-radius: 16px;
  padding: 6px 12px;
  max-width: 85%;
  white-space: pre-wrap;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.4;
  flex-shrink: 0;
  animation: aihw-bubble-in 150ms ease-out both;
}
.aihw-loading {
  display: flex;
  gap: 3px;
  align-items: center;
  height: 20px;
  flex-shrink: 0;
}
.aihw-loading span {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--muted);
  border-radius: 50%;
  animation: aihw-dot 1.2s ease-in-out infinite;
}
.aihw-loading span:nth-child(2) { animation-delay: 0.2s; }
.aihw-loading span:nth-child(3) { animation-delay: 0.4s; }
.aihw-reply {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.5;
  flex-shrink: 0;
  animation: aihw-fade-in 200ms ease-out both;
}
.aihw-feedback {
  display: none;
  justify-content: flex-end;
  gap: 4px;
  padding: 0 12px 6px;
}
.aihw-replies.has-replies ~ .aihw-feedback { display: flex; }
.aihw-thumb {
  background: none;
  border: none;
  cursor: pointer;
  padding: 3px;
  color: var(--muted);
  line-height: 0;
  transition: color 0.15s, opacity 0.15s;
}
.aihw-thumb:hover:not(:disabled) { color: var(--text); }
.aihw-thumb.voted { color: var(--amber); }
.aihw-thumb.voted svg path { fill: currentColor; }
.aihw-thumb:disabled { opacity: 0.35; cursor: default; }
@keyframes aihw-thumb-bounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.45); }
  70%  { transform: scale(0.88); }
  100% { transform: scale(1); }
}
.aihw-thumb.bouncing { animation: aihw-thumb-bounce 0.28s ease-out; }
.aihw-footer {
  text-align: center;
  font-size: 12px;
  color: #bbb;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}
  
