/* ============================================================
   Alyte marketing site: production stylesheet
   Ported from the Alyte Design System (tokens/colors.css,
   typography.css, spacing.css, effects.css, fonts.css, base.css).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@300;400;500;600;700;800&family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;1,6..72,300;1,6..72,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Core palette */
  --alyte-almost-black: #0D0D0D;
  --alyte-sage-grey:    #91AA86;
  --alyte-honest-white: #FFFFFF;
  --alyte-minty-grey:   #D2E0DA;
  --alyte-healthy-blue: #004F53;
  --alyte-clear-blue:   #7DABAC;
  --alyte-techy-green:  #70FF70;

  /* Neutral ramp */
  --neutral-0:   #FFFFFF;
  --neutral-25:  #F7FAF8;
  --neutral-50:  #EEF3F0;
  --neutral-100: #E2EAE5;
  --neutral-150: #D2E0DA;
  --neutral-200: #C2D0C9;
  --neutral-300: #A8B8B0;
  --neutral-400: #8A9A92;
  --neutral-500: #6B7B73;
  --neutral-600: #51605A;
  --neutral-700: #3A4641;
  --neutral-800: #232B28;
  --neutral-900: #141817;
  --neutral-950: #0D0D0D;

  /* Teal ramp */
  --teal-50:  #EAF3F3;
  --teal-100: #D3E6E6;
  --teal-200: #A9CDCE;
  --teal-300: #7DABAC;
  --teal-400: #4C8A8D;
  --teal-500: #1F6B6E;
  --teal-600: #004F53;
  --teal-700: #003E41;
  --teal-800: #002D30;
  --teal-900: #001E20;

  /* Sage ramp */
  --sage-100: #E7EDE4;
  --sage-200: #CBD8C4;
  --sage-300: #AEC2A4;
  --sage-400: #91AA86;
  --sage-500: #74906A;
  --sage-600: #5A7352;

  /* Semantic status */
  --signal-success: #1F8A5B;
  --signal-warning: #B7791F;
  --signal-danger:  #B4322B;
  --signal-info:    #004F53;

  /* Earth accent (eyebrows / secondary labels, from brand summary) */
  --earth: #8A6F4E;
  --green-signal: #2FBF71; /* live-status dot */

  /* Semantic aliases */
  --surface-canvas:      var(--neutral-25);
  --surface-card:        var(--neutral-0);
  --surface-sunken:      var(--neutral-50);
  --surface-muted:       var(--alyte-minty-grey);
  --surface-inverse:     var(--alyte-almost-black);
  --surface-brand:       var(--alyte-healthy-blue);
  --surface-brand-soft:  var(--teal-50);
  --surface-accent-soft: var(--sage-100);
  --surface-ink:         #0B403E; /* the enforcement/agent dark band */

  --text-strong:   var(--alyte-almost-black);
  --text-body:     #232B28;
  --text-muted:    var(--neutral-500);
  --text-subtle:   var(--neutral-400);
  --text-on-brand: var(--alyte-honest-white);
  --text-on-dark:  var(--alyte-honest-white);
  --text-brand:    var(--alyte-healthy-blue);
  --text-link:     var(--alyte-healthy-blue);

  --border-subtle:  var(--neutral-100);
  --border-default: var(--neutral-150);
  --border-strong:  var(--neutral-300);
  --border-brand:    var(--alyte-healthy-blue);
  --border-focus:    var(--alyte-clear-blue);

  --brand:            var(--alyte-healthy-blue);
  --brand-hover:      #003E41;
  --brand-active:     #002D30;
  --brand-contrast:   var(--alyte-honest-white);
  --accent-signal:     var(--alyte-techy-green);
  --accent-signal-ink: var(--alyte-almost-black);

  --ring: 0 0 0 3px rgba(125, 171, 172, 0.45);

  /* Type */
  --font-grotesk: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-serif:   'Newsreader', Georgia, 'Times New Roman', serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --font-display:   var(--font-grotesk);
  --font-editorial: var(--font-serif);
  --font-body:      var(--font-grotesk);
  --font-ui:        var(--font-grotesk);

  --weight-light: 300; --weight-regular: 400; --weight-medium: 500;
  --weight-semibold: 600; --weight-bold: 700; --weight-black: 800;

  --text-2xs: 0.6875rem; --text-xs: 0.75rem; --text-sm: 0.875rem;
  --text-base: 1rem; --text-md: 1.0625rem; --text-lg: 1.1875rem;
  --text-xl: 1.375rem; --text-2xl: 1.75rem; --text-3xl: 2.125rem;
  --text-4xl: 2.75rem; --text-5xl: 3.5rem; --text-6xl: 4.5rem;

  --leading-none: 1; --leading-tight: 1.1; --leading-snug: 1.25;
  --leading-normal: 1.5; --leading-relaxed: 1.65;

  --tracking-tighter: -0.03em; --tracking-tight: -0.015em;
  --tracking-normal: 0; --tracking-wide: 0.04em;
  --tracking-eyebrow: 0.18em; --tracking-caps: 0.2em;

  /* Spacing (4px grid) */
  --space-0: 0; --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
  --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem; --space-7: 2rem;
  --space-8: 2.5rem; --space-9: 3rem; --space-10: 4rem; --space-11: 5rem; --space-12: 6.5rem;
  --section-y: 5.75rem; --gutter: 2rem; --measure: 57.5rem;
  --control-sm: 2rem; --control-md: 2.5rem; --control-lg: 3rem;

  /* Effects */
  --radius-xs: 4px; --radius-sm: 6px; --radius-md: 10px;
  --radius-lg: 16px; --radius-xl: 24px; --radius-pill: 999px;
  --border-width: 1px; --border-width-2: 1.5px; --border-thick: 4px;
  --shadow-xs: 0 1px 2px rgba(13,13,13,0.05);
  --shadow-sm: 0 2px 8px rgba(13,13,13,0.06);
  --shadow-md: 0 6px 20px rgba(13,13,13,0.08);
  --shadow-lg: 0 16px 40px rgba(13,13,13,0.10);
  --shadow-brand: 0 12px 32px rgba(0,79,83,0.18);
  --ease-standard: cubic-bezier(0.22,0.61,0.36,1);
  --ease-emphasis: cubic-bezier(0.34,1.28,0.64,1);
  --dur-fast: 120ms; --dur-normal: 200ms; --dur-slow: 360ms;
  --transition-base: all var(--dur-normal) var(--ease-standard);
  --z-sticky: 100; --z-overlay: 1000; --z-modal: 1100;

  --max-width: 1200px;
}

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--text-body);
  background: var(--surface-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-display); color: var(--text-strong); font-weight: var(--weight-bold); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); }
p { margin: 0; }
a { color: var(--text-link); text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
::selection { background: var(--alyte-techy-green); color: var(--alyte-almost-black); }

@keyframes alyteFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes alyteRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(47,191,113,0.55); } 70% { box-shadow: 0 0 0 7px rgba(47,191,113,0); } 100% { box-shadow: 0 0 0 0 rgba(47,191,113,0); } }

.rise-in { animation: alyteRise 0.5s var(--ease-standard) both; }

/* ---- Layout ---- */
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section-tight { padding: 3.25rem 0; }
.section-bordered { border-top: 1px solid var(--border-subtle); }
.section-bordered-bottom { border-bottom: 1px solid var(--border-subtle); }

.bg-white { background: var(--surface-card); }
.bg-sage { background: var(--sage-100); }
.bg-canvas { background: var(--surface-canvas); }
.bg-brand { background: var(--surface-brand); position: relative; overflow: hidden; }
.bg-ink { background: var(--surface-ink); position: relative; overflow: hidden; }
.bg-black { background: var(--alyte-almost-black); }

.glow-tr { position: absolute; top: -140px; right: -120px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(125,171,172,0.34), transparent 70%); pointer-events: none; }
.glow-bl { position: absolute; bottom: -160px; left: -120px; width: 480px; height: 480px; background: radial-gradient(circle, rgba(125,171,172,0.20), transparent 70%); pointer-events: none; }
.glow-tc { position: absolute; top: -120px; left: 50%; transform: translateX(-50%); width: 620px; height: 420px; background: radial-gradient(circle, rgba(125,171,172,0.28), transparent 70%); pointer-events: none; }

/* ---- Type helpers ---- */
.eyebrow { font-size: var(--text-xs); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; font-weight: var(--weight-bold); color: var(--earth); margin-bottom: var(--space-5); }
.eyebrow-on-dark { color: #B7C9BE; }
.eyebrow-on-ink { color: #8FB0A8; }

.h1 { font-family: var(--font-display); font-weight: var(--weight-black); letter-spacing: -0.02em; line-height: 1.08; font-size: 2.75rem; color: var(--text-strong); text-wrap: balance; }
.h2 { font-family: var(--font-display); font-weight: var(--weight-black); letter-spacing: -0.02em; line-height: 1.12; font-size: 2.125rem; color: var(--text-strong); text-wrap: balance; }
.h3 { font-family: var(--font-display); font-weight: var(--weight-bold); letter-spacing: -0.01em; line-height: 1.2; font-size: 1.5rem; color: var(--text-strong); }
.lead { font-size: 1.1875rem; line-height: 1.6; color: var(--text-body); }
.on-dark { color: #fff; }
.on-dark .lead, .lead-on-dark { color: rgba(255,255,255,0.86); }
.muted { color: var(--text-muted); }

@media (min-width: 720px) {
  .h1 { font-size: 3.25rem; }
  .h2 { font-size: 2.375rem; }
}

/* ---- Header / nav ---- */
.site-header { position: sticky; top: 0; z-index: var(--z-sticky); background: rgba(255,255,255,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border-default); }
.site-header .wrap { height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hdr-brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.hdr-brand img { height: 24px; width: auto; }
.hdr-divider { display: inline-block; height: 22px; width: 1px; background: var(--border-default); }
.hdr-tagline { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; letter-spacing: 0.01em; }
.hdr-nav { display: flex; align-items: center; gap: 26px; }
.nav-link { font-size: 14.5px; font-weight: 600; color: var(--text-body); }
.nav-link:hover { color: var(--brand); text-decoration: none; }
.nav-link.active { color: var(--brand); }
.nav-live { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--text-brand); white-space: nowrap; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-signal); animation: livePulse 2.2s infinite; display: inline-block; flex-shrink: 0; }

.nav-solutions { position: relative; display: inline-flex; align-items: center; }
.solutions-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); min-width: 252px; background: #fff; border: 1px solid var(--border-default); border-radius: 12px; box-shadow: var(--shadow-md); padding: 8px; opacity: 0; visibility: hidden; transition: opacity .18s; z-index: 300; }
.nav-solutions:hover .solutions-menu, .nav-solutions:focus-within .solutions-menu { opacity: 1; visibility: visible; }
.solutions-menu a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 14px; color: var(--text-body); font-weight: 600; transition: background .15s; }
.solutions-menu a:hover { background: var(--surface-muted); text-decoration: none; }
.solutions-menu .sub { display: block; color: var(--text-muted); font-weight: 500; font-size: 12px; margin-top: 2px; }

.mobile-nav-toggle { display: none; }

@media (max-width: 1180px) { .hdr-tagline, .hdr-divider { display: none; } }
@media (max-width: 900px) {
  .hdr-nav { position: fixed; top: 70px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border-default); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; box-shadow: var(--shadow-md); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: var(--transition-base); }
  .hdr-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .hdr-nav .nav-link, .hdr-nav .nav-live, .hdr-nav .btn { padding: 12px var(--gutter); width: 100%; }
  .hdr-nav .btn { width: calc(100% - 2 * var(--gutter)); margin: 8px var(--gutter); }
  .nav-solutions { width: 100%; flex-direction: column; align-items: stretch; }
  .solutions-menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; min-width: 0; display: none; padding-left: 12px; }
  .nav-solutions.is-open .solutions-menu { display: block; }
  .mobile-nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--border-default); background: #fff; border-radius: 8px; cursor: pointer; }
}

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 28px; border-radius: 10px; font-weight: 600; font-size: 16px; font-family: var(--font-ui); border: 1px solid transparent; cursor: pointer; transition: var(--transition-base); white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-sm { height: 40px; padding: 0 22px; font-size: 14px; }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-on-teal { background: #fff; color: var(--brand); }
.btn-on-teal:hover { background: #F0F5F3; }
.btn-outline-on-teal { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn-outline-on-teal:hover { border-color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--border-default); }
.btn-ghost:hover { border-color: var(--border-brand); }
.btn-secondary { background: var(--surface-muted); color: var(--text-brand); }
.btn-block { width: 100%; }

/* ---- Tags / pills ---- */
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: var(--weight-semibold); font-family: var(--font-ui); white-space: nowrap; }
.tag-minty { background: var(--surface-muted); color: var(--text-brand); }
.tag-teal { background: var(--brand); color: #fff; }
.tag-sage { background: var(--sage-100); color: var(--sage-600); }
.tag-sm { padding: 4px 12px; font-size: var(--text-xs); }

.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700; letter-spacing: 0.02em; }
.badge-roadmap { background: var(--sage-100); color: var(--sage-600); }
.badge-built { background: rgba(31,138,91,0.12); color: var(--signal-success); }

/* ---- Cards ---- */
.card { background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 28px; transition: var(--transition-base); }
.card-link:hover { box-shadow: var(--shadow-md); border-color: var(--border-focus); }
.card-muted { background: var(--surface-muted); border-color: transparent; }
.card-ink { background: var(--surface-ink); border-color: rgba(255,255,255,0.12); }
.stat-card { background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 28px; }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: 2.75rem; letter-spacing: -0.02em; color: var(--brand); line-height: 1; }
.stat-label { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--text-muted); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---- Hero ---- */
.hero { padding: 84px 0 92px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding: 56px 0 64px; } }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

/* ---- Gauntlet ---- */
.gauntlet-grid { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 18px; align-items: stretch; }
@media (max-width: 980px) { .gauntlet-grid { grid-template-columns: 1fr; } .gauntlet-arrow { display: none; } }
.gauntlet-box { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 26px; }
.gauntlet-num { width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,0.10); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.gauntlet-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: #8FB0A8; }
.gauntlet-q { font-size: 19px; font-weight: 700; color: #fff; line-height: 1.3; margin-top: 14px; }
.gauntlet-arrow { display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5); font-size: 24px; }
.oversold-strip { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding: 16px 20px; border: 1px dashed rgba(255,255,255,0.28); border-radius: 12px; max-width: 640px; }
.oversold-num { font-family: var(--font-mono); font-size: 24px; font-weight: 700; color: var(--green-signal); line-height: 1; }

/* ---- Proof strip / pill row ---- */
.pill-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pill-row-center { justify-content: center; }
.proof-list { display: flex; flex-wrap: wrap; gap: 14px 32px; }
.proof-item { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: var(--text-strong); }
.proof-item .check { color: var(--signal-success); font-size: 17px; }

/* ---- Diagram block ---- */
.diagram-frame { border: 1px solid var(--border-default); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; }
.diagram-frame img { width: 100%; height: auto; display: block; }
.diagram-caption { margin-top: 14px; font-size: 13px; color: var(--text-subtle); }

/* ---- Comparison rows ---- */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--border-subtle); font-size: 15px; vertical-align: top; }
.compare-table th { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-subtle); font-weight: 700; }
.compare-table .col-alyte { color: var(--text-strong); font-weight: 600; background: var(--surface-accent-soft); }

/* ---- Team grid ---- */
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 980px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .team-grid { grid-template-columns: 1fr; } }
.team-card { background: var(--surface-canvas); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 24px; text-align: center; }
.team-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--surface-muted); color: var(--brand); font-family: var(--font-display); font-weight: 800; font-size: 22px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.team-name { font-weight: 700; color: var(--text-strong); font-size: 16px; }
.team-role { font-size: 13px; color: var(--brand); font-weight: 600; margin: 4px 0 8px; }
.team-bio { font-size: 13px; line-height: 1.5; color: var(--text-muted); margin: 0; }

/* ---- Forms ---- */
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .field-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-strong); margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; border: 1px solid var(--border-default); border-radius: 10px; padding: 0 14px; height: 46px;
  font-family: var(--font-body); font-size: 15px; color: var(--text-body); background: #fff; outline: none; transition: var(--transition-base);
}
.field textarea { height: auto; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--border-focus); box-shadow: var(--ring); }
.field-checkbox { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.field-checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex-shrink: 0; }
.field-checkbox span { font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.form-note { margin: 14px 0 0; font-size: 12.5px; color: var(--text-subtle); text-align: center; }
.form-status { margin-top: 14px; font-size: 14px; text-align: center; display: none; }
.form-status.is-visible { display: block; }
.form-status.is-success { color: var(--signal-success); }
.form-status.is-error { color: var(--signal-danger); }

/* ---- Footer ---- */
.site-footer { background: #0D0D0D; color: rgba(255,255,255,0.7); }
.footer-top { padding: 64px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-brand p { margin: 18px 0 0; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.55); max-width: 280px; }
.foot-col-title { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.foot-links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.foot-links a { color: rgba(255,255,255,0.72); }
.foot-links a:hover { color: #fff; }
.foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,0.45); }

/* ---- CTA band ---- */
.cta-band { text-align: center; max-width: 1000px; margin: 0 auto; position: relative; }

/* ---- Chat widget ---- */
.chat-launcher { position: fixed; right: 24px; bottom: 24px; z-index: var(--z-overlay); width: 60px; height: 60px; border-radius: 50%; border: none; background: var(--surface-brand); box-shadow: var(--shadow-brand); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition-base); }
.chat-launcher img { width: 26px; height: 26px; }
.chat-launcher:hover { transform: scale(1.05); }
.chat-panel { position: fixed; right: 24px; bottom: 96px; z-index: var(--z-overlay); width: 380px; max-width: calc(100vw - 32px); max-height: min(560px, calc(100vh - 140px)); background: #fff; border: 1px solid var(--border-default); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(12px); transition: var(--transition-base); }
.chat-panel.is-open { opacity: 1; visibility: visible; transform: none; }
.chat-panel-head { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--surface-brand); flex-shrink: 0; }
.chat-panel-head .icon { width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-panel-head .icon img { width: 20px; height: 20px; }
.chat-panel-title { font-size: 14.5px; font-weight: 700; color: #fff; line-height: 1.2; }
.chat-panel-status { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: rgba(255,255,255,0.75); margin-top: 3px; }
.chat-panel-close { width: 30px; height: 30px; border: none; background: rgba(255,255,255,0.14); color: #fff; border-radius: 8px; cursor: pointer; font-size: 16px; line-height: 1; flex-shrink: 0; }
.chat-messages { padding: 18px 16px; display: flex; flex-direction: column; gap: 14px; background: var(--surface-canvas); overflow-y: auto; flex: 1; min-height: 220px; }
.chat-bubble { max-width: 86%; border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.chat-bubble-bot { align-self: flex-start; background: #fff; border: 1px solid var(--border-default); border-top-left-radius: 4px; color: var(--text-body); }
.chat-bubble-user { align-self: flex-end; background: var(--surface-muted); border-top-right-radius: 4px; color: var(--text-strong); }
.chat-bubble-typing { display: inline-flex; gap: 4px; align-items: center; }
.chat-bubble-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-subtle); display: inline-block; animation: typingDot 1.1s infinite ease-in-out; }
.chat-bubble-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-bubble-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingDot { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-suggestions { padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--border-subtle); background: #fff; flex-shrink: 0; }
.chat-suggestion { font-size: 12.5px; font-weight: 600; color: var(--brand); background: var(--surface-muted); padding: 7px 12px; border-radius: 999px; cursor: pointer; border: none; }
.chat-suggestion.primary { color: #fff; background: var(--brand); }
.chat-inputrow { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border-subtle); background: #fff; flex-shrink: 0; }
.chat-input { flex: 1; height: 40px; border: 1px solid var(--border-default); border-radius: 10px; padding: 0 14px; font-family: var(--font-body); font-size: 14px; color: var(--text-body); outline: none; }
.chat-input:focus { border-color: var(--border-focus); }
.chat-send { width: 40px; height: 40px; border: none; background: var(--brand); color: #fff; border-radius: 10px; cursor: pointer; font-size: 16px; flex-shrink: 0; }
.chat-send:disabled { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 480px) {
  .chat-panel { right: 16px; left: 16px; width: auto; bottom: 88px; }
  .chat-launcher { right: 16px; bottom: 16px; }
}
