/* =========================================================================
   Alterra — Combined stylesheet
   Part 1: Color & Type System (from colors_and_type.css)
   Part 2: Marketing site styles (from ui_kits/marketing/styles.css)
   Part 3: Mobile-nav additions
   ========================================================================= */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700&family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap');

:root {
  /* ============== RAW PALETTE ============== */

  /* Clay — primary. Terracotta. Warm and confident. */
  --clay-50:  #FBEFE6;
  --clay-100: #F6DCC9;
  --clay-200: #EFC2A4;
  --clay-300: #E5A07A;
  --clay-400: #D77C53;
  --clay-500: #C9542B;   /* core brand */
  --clay-600: #B0421D;
  --clay-700: #8C3417;
  --clay-800: #682712;
  --clay-900: #44190C;

  /* Ink — warm neutrals (slightly brown-shifted, never cold gray). */
  --ink-50:   #F7F2E9;   /* paper */
  --ink-100:  #ECE4D3;   /* stone — surfaces, chips */
  --ink-200:  #E0D6BF;   /* hairline */
  --ink-300:  #C7B99B;   /* dim border */
  --ink-400:  #9C8E76;   /* muted text */
  --ink-500:  #6B6055;   /* secondary text */
  --ink-600:  #4D443B;
  --ink-700:  #3A322A;   /* heading on light */
  --ink-800:  #2A241E;
  --ink-900:  #1F1A14;   /* body text */

  /* Sage — success / verified / online. */
  --sage-100: #DFEBE0;
  --sage-300: #9CBAA4;
  --sage-500: #5E8770;
  --sage-700: #3F5F4F;

  /* Sun — highlight, founding-rate, "limited slot" emphasis. */
  --sun-100:  #FBEBC2;
  --sun-300:  #F2CE74;
  --sun-500:  #E0A53C;
  --sun-700:  #A87622;

  /* Brick — error, refund, hard warning. (different hue from clay.) */
  --brick-100: #F7D9D3;
  --brick-500: #B83A2E;
  --brick-700: #821F17;

  /* ============== SEMANTIC ROLES ============== */

  /* Surfaces */
  --bg:           var(--ink-50);     /* page background — warm cream */
  --surface:      #FFFCF6;           /* cards on cream pop slightly lighter */
  --surface-2:    var(--ink-100);    /* sunken / chip background */
  --surface-inv:  var(--ink-900);    /* dark surface for hero panels */

  /* Foreground */
  --fg:           var(--ink-900);
  --fg-muted:     var(--ink-500);
  --fg-faint:     var(--ink-400);
  --fg-on-dark:   var(--ink-50);
  --fg-on-primary:#FFFCF6;

  /* Brand */
  --primary:      var(--clay-500);
  --primary-hover:var(--clay-600);
  --primary-press:var(--clay-700);
  --primary-soft: var(--clay-50);

  /* Status */
  --success:      var(--sage-500);
  --success-soft: var(--sage-100);
  --warning:      var(--sun-500);
  --warning-soft: var(--sun-100);
  --danger:       var(--brick-500);
  --danger-soft:  var(--brick-100);

  /* Lines */
  --border:       var(--ink-200);
  --border-soft:  #EADFC8;
  --border-strong:var(--ink-300);

  /* Focus ring */
  --focus-ring:   color-mix(in oklab, var(--clay-500) 45%, transparent);

  /* ============== TYPE ============== */

  --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --font-sans:    'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Scale */
  --fs-12: 0.75rem;
  --fs-13: 0.8125rem;
  --fs-14: 0.875rem;
  --fs-15: 0.9375rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-20: 1.25rem;
  --fs-24: 1.5rem;
  --fs-30: 1.875rem;
  --fs-38: 2.375rem;
  --fs-48: 3rem;
  --fs-64: 4rem;
  --fs-80: 5rem;

  --lh-tight:  1.05;
  --lh-snug:   1.2;
  --lh-normal: 1.45;
  --lh-loose:  1.6;

  --tracking-tight: -0.022em;
  --tracking-snug:  -0.012em;
  --tracking-base:  -0.003em;
  --tracking-wide:   0.06em;

  /* ============== SPACING ============== */
  --s-0: 0;
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;

  /* ============== RADII ============== */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-2xl:32px;
  --r-pill: 999px;

  /* ============== ELEVATION ============== */
  --shadow-1: 0 1px 2px rgba(56, 36, 18, 0.06), 0 1px 1px rgba(56, 36, 18, 0.04);
  --shadow-2: 0 2px 4px rgba(56, 36, 18, 0.06), 0 4px 12px rgba(56, 36, 18, 0.06);
  --shadow-3: 0 4px 8px rgba(56, 36, 18, 0.07), 0 12px 28px rgba(56, 36, 18, 0.10);
  --shadow-4: 0 8px 16px rgba(56, 36, 18, 0.08), 0 24px 56px rgba(56, 36, 18, 0.14);
  --shadow-inset: inset 0 1px 0 rgba(255,255,255,0.6), inset 0 -1px 0 rgba(56,36,18,0.04);
}

/* =========================================================================
   Element base styles
   ========================================================================= */

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--fs-15);
  line-height: var(--lh-normal);
  letter-spacing: var(--tracking-base);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink-900);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: var(--fs-48); font-weight: 600; }
h2 { font-size: var(--fs-38); font-weight: 600; letter-spacing: var(--tracking-snug); }
h3 { font-size: var(--fs-30); font-weight: 600; letter-spacing: var(--tracking-snug); }
h4 { font-size: var(--fs-24); font-weight: 600; letter-spacing: var(--tracking-snug); }
h5 { font-size: var(--fs-20); font-weight: 600; letter-spacing: var(--tracking-snug); }

p  { margin: 0; max-width: 62ch; text-wrap: pretty; }
small { font-size: var(--fs-13); color: var(--fg-muted); }

code, pre, kbd { font-family: var(--font-mono); font-size: 0.92em; }
code { background: var(--surface-2); padding: 1px 6px; border-radius: var(--r-xs); }
pre  { background: var(--surface-2); padding: var(--s-4); border-radius: var(--r-md); overflow:auto; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--clay-700);
}

.lead {
  font-size: var(--fs-18);
  line-height: var(--lh-loose);
  color: var(--ink-700);
  max-width: 58ch;
}

a { color: var(--clay-600); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--clay-700); }

::selection { background: var(--clay-100); color: var(--clay-800); }

/* =========================================================================
   Marketing site styles (from ui_kits/marketing/styles.css)
   ========================================================================= */

* { box-sizing: border-box; }

body { margin: 0; }

/* Layout */
.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.col-narrow { max-width: 720px; margin: 0 auto; padding: 0 28px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 242, 233, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.site-header nav { display:flex; gap: 22px; margin-left: auto; }
.site-header nav a { color: var(--ink-700); text-decoration: none; font-size: 14px; font-weight: 500; }
.site-header nav a:hover { color: var(--clay-600); }
.site-header img.mark { height: 26px; }

/* Buttons */
.btn {
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 500; letter-spacing: -0.005em;
  border: 0; cursor: pointer; padding: 10px 18px;
  border-radius: 12px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
  transition: background 180ms cubic-bezier(.2,.6,.2,1), color 180ms;
}
.btn-primary { background: var(--clay-500); color: #FFFCF6; }
.btn-primary:hover { background: var(--clay-600); color: #FFFCF6; }
.btn-primary:active { background: var(--clay-700); transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink-900); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--border-strong); }
.btn-lg { padding: 14px 22px; font-size: 15px; border-radius: 14px; }
.btn-quiet { background: transparent; color: var(--clay-600); padding: 10px 0; }

/* Hero */
.hero { padding: 88px 0 64px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -120px -120px auto auto;
  width: 520px; height: 520px;
  background: radial-gradient(closest-side, rgba(224,165,60,0.22), rgba(224,165,60,0));
  pointer-events: none; z-index: 0;
}
.hero .col-narrow { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.02; letter-spacing: -0.026em; font-weight: 600;
  margin: 14px 0 18px; max-width: 14ch;
}
.hero h1 em { font-style: normal; color: var(--clay-500); }
.hero .lead {
  font-size: 18px; line-height: 1.55; color: var(--ink-700);
  max-width: 56ch; margin: 0 0 30px;
}
.hero .cta-row { display:flex; gap: 12px; align-items: center; }
.hero .footnote { color: var(--fg-muted); font-size: 13px; margin-top: 18px; display:flex; align-items: center; gap: 6px; }
.hero .footnote .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--sage-500); }

/* Sections */
.section { padding: 80px 0; }
.section.tight { padding: 56px 0; }
.section-eyebrow { color: var(--clay-700); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.section-title { font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.02em; font-weight: 600; max-width: 22ch; margin: 0 0 16px; line-height: 1.1; }
.section-lead { font-size: 17px; line-height: 1.55; color: var(--ink-700); max-width: 58ch; margin: 0; }

/* Card */
.card { background: #FFFCF6; border: 1px solid var(--border); border-radius: 18px; padding: 24px; }
.card.featured { border-color: var(--clay-400); box-shadow: 0 0 0 3px var(--clay-100); }

/* Phases */
.phases { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 36px; }
.phase { padding: 26px 28px 28px; }
.phase .tag {
  display: inline-block; font-size: 11px; font-weight: 600; padding: 4px 10px;
  border-radius: 999px; letter-spacing: 0.04em; margin-bottom: 14px;
}
.phase.p1 .tag { background: var(--clay-100); color: var(--clay-700); }
.phase.p2 .tag { background: var(--ink-100); color: var(--ink-700); }
.phase h3 { font-size: 22px; letter-spacing: -0.018em; margin-bottom: 10px; }
.phase .when { font-family: var(--font-mono); font-size: 12px; color: var(--fg-muted); margin-bottom: 14px; }
.phase ul { margin: 0; padding: 0; list-style: none; display:flex; flex-direction: column; gap: 8px; }
.phase ul li { font-size: 14px; color: var(--ink-700); padding-left: 22px; position: relative; line-height: 1.45; }
.phase ul li::before { content: ''; position: absolute; left: 0; top: 8px; width: 12px; height: 2px; background: var(--clay-500); border-radius: 2px; }
.phase.p2 ul li::before { background: var(--ink-400); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.tier { padding: 24px 22px; display: flex; flex-direction: column; min-height: 380px; position: relative; }
.tier .label { font-size: 11px; letter-spacing: 0.06em; color: var(--fg-muted); text-transform: uppercase; font-weight: 600; margin-bottom: 10px; }
.tier h3 { font-size: 22px; letter-spacing: -0.018em; font-weight: 600; }
.tier .price { font-family: var(--font-display); font-size: 36px; font-weight: 600; line-height: 1; letter-spacing: -0.025em; margin: 14px 0 4px; }
.tier .strike { font-family: var(--font-mono); font-size: 13px; color: var(--fg-faint); text-decoration: line-through; margin-left: 6px; }
.tier .blurb { font-size: 13px; color: var(--fg-muted); line-height: 1.45; min-height: 60px; }
.tier ul { margin: 16px 0 0; padding: 0; list-style: none; display:flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--ink-700); }
.tier ul li { padding-left: 22px; position: relative; line-height: 1.4; }
.tier ul li::before { content: '✓'; position:absolute; left:0; top: 0; color: var(--sage-500); font-weight: 700; }
.tier .pay { margin-top: 18px; font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); padding-top: 14px; border-top: 1px dashed var(--border); }
.tier .pin {
  position:absolute; top: -10px; left: 22px;
  background: var(--sun-500); color: var(--ink-900);
  font-size: 10px; font-weight: 600; letter-spacing: 0.06em;
  padding: 4px 10px; border-radius: 999px;
}

/* Timeline */
.timeline { display: grid; grid-template-columns: 140px 1fr; gap: 0; margin-top: 32px; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 140px; top: 24px; bottom: 24px; width: 2px;
  background: var(--border); transform: translateX(-1px);
}
.t-row { display: contents; }
.t-day { padding: 18px 24px 18px 0; text-align: right; font-family: var(--font-mono); font-size: 12px; color: var(--clay-600); position: relative; }
.t-body { padding: 18px 0 18px 28px; position: relative; }
.t-body::before {
  content:''; position: absolute; left: -7px; top: 26px; width: 14px; height: 14px; border-radius: 999px;
  background: #FFFCF6; border: 2px solid var(--clay-500);
}
.t-body.dim::before { border-color: var(--ink-300); }
.t-body h4 { font-size: 16px; font-weight: 600; letter-spacing: -0.012em; }
.t-body p { font-size: 14px; color: var(--ink-700); margin-top: 4px; line-height: 1.5; }

/* FAQ / objections */
.faq { display: flex; flex-direction: column; gap: 0; margin-top: 28px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 17px; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.012em; color: var(--ink-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-mono); color: var(--clay-500); font-size: 22px; font-weight: 400; transition: transform 200ms; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--ink-700); max-width: 64ch; }

/* Founder */
.founder { background: var(--ink-900); color: var(--ink-50); border-radius: 28px; padding: 56px 48px; margin-top: 0; display: grid; grid-template-columns: 96px 1fr; gap: 28px; align-items: start; }
.founder .avatar { width: 96px; height: 96px; border-radius: 999px; background: var(--clay-500); display:flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 56px; color: #FFFCF6; letter-spacing: -0.04em; }
.founder h3 { color: var(--ink-50); font-size: 28px; letter-spacing: -0.02em; margin-bottom: 12px; }
.founder p { font-size: 16px; line-height: 1.6; color: var(--ink-100); max-width: 56ch; }
.founder p + p { margin-top: 14px; }
.founder .sign { margin-top: 22px; font-family: var(--font-display); font-size: 22px; color: var(--clay-300); font-weight: 500; letter-spacing: -0.018em; }

/* Footer */
.site-footer { padding: 48px 0 56px; color: var(--fg-muted); font-size: 13px; border-top: 1px solid var(--border-soft); margin-top: 80px; }
.site-footer .inner { display:flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.site-footer .inner img { height: 22px; }
.site-footer a { color: var(--ink-700); text-decoration: none; }
.site-footer a:hover { color: var(--clay-600); }
.site-footer .spacer { flex: 1; }

/* Existing responsive breakpoint from the design */
@media (max-width: 880px) {
  .phases, .pricing-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 100px 1fr; }
  .timeline::before { left: 100px; }
  .founder { grid-template-columns: 1fr; padding: 36px 28px; }
}

/* =========================================================================
   Mobile nav — hamburger + vertical drawer at ≤768px
   ========================================================================= */

/* Hamburger button — hidden by default on desktop */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-700);
  padding: 6px;
  border-radius: var(--r-sm);
  margin-left: auto;
  transition: color 180ms;
}
.nav-toggle:hover { color: var(--clay-600); }
.nav-toggle:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.nav-toggle svg { width: 22px; height: 22px; }

/* Book button always visible — push it after the hamburger on mobile */
.site-header .btn-header-cta {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  /* Show hamburger */
  .nav-toggle { display: inline-flex; }

  /* Hide desktop inline nav links */
  .site-header nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: rgba(247, 242, 233, 0.97);
    border-bottom: 1px solid var(--border-soft);
    padding: 16px 28px 20px;
    gap: 16px;
    flex-direction: column;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 49;
  }

  /* Nav open state */
  .site-header nav.open {
    display: flex;
  }

  .site-header nav a {
    font-size: 16px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-soft);
  }
  .site-header nav a:last-of-type { border-bottom: none; }

  /* Header inner — wordmark | hamburger | CTA */
  .site-header .inner {
    gap: 12px;
  }

  /* Shrink hero padding slightly on mobile */
  .hero { padding: 56px 0 48px; }

  /* Section padding */
  .section { padding: 56px 0; }

  /* Pricing CTA row */
  .pricing-cta-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero .cta-row { flex-direction: column; align-items: flex-start; }
  .hero .cta-row .btn { width: 100%; justify-content: center; }
}

/* =========================================================================
   Chat widget
   ========================================================================= */

.chat-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--clay-500);
  color: var(--fg-on-primary);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.chat-toggle:hover { background: var(--clay-600); }
.chat-toggle:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }

.chat-panel {
  position: fixed;
  bottom: 96px;
  right: 24px;
  z-index: 1001;
  width: 360px;
  height: 520px;
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-4);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-soft);
}
.chat-panel.open { display: flex; }

.chat-header {
  background: var(--clay-500);
  color: var(--fg-on-primary);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.chat-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-15);
}
.chat-close {
  background: transparent;
  border: none;
  color: var(--fg-on-primary);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  border-radius: var(--r-xs);
}
.chat-close:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg);
}

.chat-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: var(--fs-14);
  line-height: var(--lh-normal);
}
.chat-bubble.user {
  align-self: flex-end;
  background: var(--clay-100);
  color: var(--ink-900);
}
.chat-bubble.bot {
  align-self: flex-start;
  background: var(--surface-2);
  color: var(--ink-900);
}
.chat-bubble.bot a.btn-inline {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  background: var(--clay-500);
  color: var(--fg-on-primary);
  border-radius: var(--r-md);
  text-decoration: none;
  font-size: var(--fs-13);
  font-weight: 500;
}
.chat-bubble.bot a.btn-inline:hover { background: var(--clay-600); }

.chat-typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-radius: 14px;
}
.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-500);
  animation: chat-dot 1.2s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.30s; }
@keyframes chat-dot {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.85); }
  40% { opacity: 1; transform: scale(1); }
}

.chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border-soft);
  background: var(--surface);
  flex-shrink: 0;
}
.chat-form input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  font: inherit;
  font-size: var(--fs-14);
  background: var(--bg);
  color: var(--ink-900);
}
.chat-form input:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.chat-form input::placeholder { color: var(--ink-400); }
.chat-send {
  padding: 10px 14px;
  background: var(--clay-500);
  color: var(--fg-on-primary);
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.chat-send:hover { background: var(--clay-600); }
.chat-send:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

@media (max-width: 480px) {
  .chat-panel {
    bottom: 0;
    right: 0;
    left: 0;
    top: 24px;
    width: 100%;
    height: calc(100dvh - 24px);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
  }
  .chat-toggle {
    bottom: 16px;
    right: 16px;
  }
}
