/* ===================================================================
   HEPTAGRAM — Automation Systems. Shared stylesheet.
   =================================================================== */

:root {
  --bg: #faf9f5;
  --bg-1: #f3f1ea;
  --bg-2: #ece8dd;
  --line: rgba(18,58,94,0.14);
  --line-strong: rgba(18,58,94,0.28);
  --ink: #17324f;
  --ink-dim: #5c6b7a;
  --ink-faint: #8b93a0;
  --navy: #123a5e;
  --navy-deep: #0b2740;
  --gold: #c89b3c;
  --teal: #1c7a7a;
  --lime: var(--gold);
  --cyan: var(--teal);
  --danger: #c94f4f;
  --mono: 'IBM Plex Mono', 'Space Mono', monospace;
  --head: 'Space Grotesk', sans-serif;
  --body: 'Inter', sans-serif;
  --maxw: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }

h1, h2, h3 { font-family: var(--head); letter-spacing: -0.01em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

/* ---------- Live background canvas ---------- */
#bgCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.5;
}
main, header, footer { position: relative; z-index: 1; }

/* ---------- Meta / mono labels ---------- */
.tag {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.tag::before { content: ''; width: 6px; height: 6px; background: var(--lime); border-radius: 50%; box-shadow: 0 0 8px var(--lime); }
.tag--center { justify-content: center; width: 100%; }
.idx { font-family: var(--mono); color: var(--ink-faint); font-size: 0.8rem; }

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 600;
  max-width: 760px;
  letter-spacing: -0.015em;
  line-height: 1.18;
}
.section-title--center { margin: 0 auto; text-align: center; }
.lede { color: var(--ink-dim); font-size: 1.02rem; max-width: 560px; margin-top: 16px; }
.lede--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 14px 24px;
  border-radius: 3px;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, color 0.2s ease;
  background: transparent;
  color: var(--ink);
}
.btn::after { content: '→'; transition: transform 0.2s ease; }
.btn:hover::after { transform: translateX(3px); }
.btn--solid { background: var(--navy); border-color: var(--navy); color: #fdfcf9; }
.btn--solid:hover { box-shadow: 0 0 0 3px rgba(200,155,60,0.32); border-color: var(--gold); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); background: rgba(18,58,94,0.05); }
.btn--sm { padding: 10px 16px; font-size: 0.78rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(250,249,245,0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 36px; height: 72px; }
.nav__logo { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 1.08rem; letter-spacing: 0.01em; margin-right: auto; }
.nav__logo svg { width: 26px; height: 26px; }
.nav__logo .ai { color: var(--gold); }
.nav__links { display: flex; gap: 30px; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.02em; color: var(--ink-dim); text-transform: uppercase; }
.nav__links a { position: relative; }
.nav__links a:hover, .nav__links a.active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -22px; height: 2px; background: var(--lime);
}
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav__burger span { width: 22px; height: 2px; background: var(--ink); }
.nav__mobile { display: none; flex-direction: column; gap: 16px; padding: 20px 28px 26px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.85rem; }
.nav__mobile.open { display: flex; }
.nav__mobile a { color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.03em; }

/* ---------- Hero (home) ---------- */
.hero { padding: 110px 0 90px; }
.hero__grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; border-bottom: 1px solid var(--line); padding-bottom: 48px; }
.hero h1 {
  font-size: clamp(2.2rem, 5.6vw, 4.1rem);
  font-weight: 600;
  line-height: 1.06;
  max-width: 820px;
}
.hero h1 em { font-style: normal; color: var(--lime); }
.hero__sub { color: var(--ink-dim); font-size: 1.08rem; max-width: 520px; margin-top: 24px; }
.hero__cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero__meta { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-faint); text-align: right; display: flex; flex-direction: column; gap: 6px; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.stat-row div { padding: 26px 0; border-left: 1px solid var(--line); padding-left: 24px; }
.stat-row div:first-child { border-left: none; padding-left: 0; }
.stat-row strong { display: block; font-family: var(--head); font-size: 1.8rem; color: var(--lime); }
.stat-row span { font-family: var(--mono); font-size: 0.74rem; color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- Problem strip ---------- */
.problem { padding: 90px 0; border-bottom: 1px solid var(--line); }
.problem__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-bottom: 50px; }
.problem__list { display: flex; flex-direction: column; }
.problem__list li {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  color: var(--ink);
  align-items: baseline;
}
.problem__list li:last-child { border-bottom: 1px solid var(--line); }
.problem__list .idx { font-size: 0.85rem; }
.callout {
  margin-top: 44px;
  padding: 28px 30px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--lime);
  font-size: 1.05rem;
  color: var(--ink);
  font-style: italic;
}
.callout strong { color: var(--lime); font-style: normal; }

/* ---------- Products grid ---------- */
.products { padding: 90px 0; border-bottom: 1px solid var(--line); }
.products__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 50px; flex-wrap: wrap; }
.products__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pcard {
  background: var(--bg);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.25s ease;
  min-height: 300px;
}
.pcard:hover { background: var(--bg-2); }
.pcard__icon { width: 100%; height: 64px; display: flex; align-items: center; }
.pcard__num { font-family: var(--mono); font-size: 0.76rem; color: var(--ink-faint); }
.pcard h3 { font-size: 1.18rem; font-weight: 600; margin-top: auto; }
.pcard p { color: var(--ink-dim); font-size: 0.9rem; }
.pcard__link { font-family: var(--mono); font-size: 0.76rem; color: var(--lime); display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.pcard__link::after { content: '→'; transition: transform 0.2s ease; }
.pcard:hover .pcard__link::after { transform: translateX(4px); }

/* mini animated icons (CSS-driven, product cards) */
.mi { position: relative; width: 100%; height: 100%; }
/* faceswap */
.mi-face { display: flex; gap: 10px; align-items: center; }
.mi-face .f { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink-dim); position: relative; overflow: hidden; }
.mi-face .f::before, .mi-face .f::after { content: ''; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-dim); top: 16px; }
.mi-face .f::before { left: 11px; } .mi-face .f::after { right: 11px; }
.mi-face .f.swap { border-color: var(--lime); animation: faceSwap 2.4s ease-in-out infinite; }
.mi-face .f.swap::before, .mi-face .f.swap::after { background: var(--lime); }
@keyframes faceSwap { 0%,40% { opacity:1; transform: scale(1);} 50% { opacity:0.15; transform: scale(0.85);} 60%,100% { opacity:1; transform: scale(1);} }
.mi-face .arrow { color: var(--ink-faint); font-family: var(--mono); }
/* voiceflow waveform */
.mi-wave { display: flex; align-items: flex-end; gap: 4px; height: 44px; }
.mi-wave span { width: 5px; background: var(--lime); border-radius: 2px; animation: waveBar 1.2s ease-in-out infinite; opacity: 0.85; }
.mi-wave span:nth-child(1){height:30%;animation-delay:0s}
.mi-wave span:nth-child(2){height:70%;animation-delay:0.1s}
.mi-wave span:nth-child(3){height:100%;animation-delay:0.2s}
.mi-wave span:nth-child(4){height:50%;animation-delay:0.3s}
.mi-wave span:nth-child(5){height:85%;animation-delay:0.4s}
.mi-wave span:nth-child(6){height:40%;animation-delay:0.5s}
.mi-wave span:nth-child(7){height:65%;animation-delay:0.6s}
@keyframes waveBar { 0%,100% { transform: scaleY(0.4);} 50% { transform: scaleY(1);} }
/* bd-inbox envelope flow */
.mi-mail { position: relative; height: 44px; }
.mi-mail .track { position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--line-strong); }
.mi-mail .env { position: absolute; top: 50%; width: 14px; height: 10px; margin-top: -5px; border: 1.5px solid var(--lime); background: var(--bg); animation: mailFlow 2.6s linear infinite; }
.mi-mail .env:nth-child(2){animation-delay:-0.9s}
.mi-mail .env:nth-child(3){animation-delay:-1.8s}
@keyframes mailFlow { 0% { left:0; opacity:0;} 10%{opacity:1;} 90%{opacity:1;} 100% { left:calc(100% - 14px); opacity:0;} }
/* bd-automation pipeline dots */
.mi-pipe { position: relative; height: 44px; display: flex; align-items: center; justify-content: space-between; }
.mi-pipe .node { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ink-dim); background: var(--bg); z-index: 1; }
.mi-pipe .line { position: absolute; left: 4px; right: 4px; top: 50%; height: 1px; background: var(--line-strong); }
.mi-pipe .dot { position: absolute; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); animation: pipeMove 2.2s linear infinite; }
@keyframes pipeMove { 0% { left: 0; } 100% { left: calc(100% - 6px); } }
/* interview typing */
.mi-type { font-family: var(--mono); font-size: 0.82rem; color: var(--lime); display: flex; align-items: center; height: 44px; }
.mi-type .dots span { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); margin-left: 3px; animation: typeDot 1.3s infinite; }
.mi-type .dots span:nth-child(2){animation-delay:0.15s}
.mi-type .dots span:nth-child(3){animation-delay:0.3s}

.mi-orbit { position: relative; width: 44px; height: 44px; }
.mi-orbit .core { position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: var(--navy); }
.mi-orbit .ring { position: absolute; inset: 0; border: 1px dashed var(--line-strong); border-radius: 50%; animation: orbitSpin 5s linear infinite; }
.mi-orbit .sat { position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 6px var(--lime); }
@keyframes orbitSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes typeDot { 0%,60%,100%{opacity:0.2; transform: translateY(0);} 30%{opacity:1; transform: translateY(-3px);} }

/* ---------- Pilot ---------- */
.pilot { padding: 90px 0; border-bottom: 1px solid var(--line); }
.pilot__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.pilot__steps { display: flex; flex-direction: column; }
.pilot__step { display: grid; grid-template-columns: 50px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.pilot__step:last-child { border-bottom: 1px solid var(--line); }
.pilot__step p { color: var(--ink-dim); font-size: 0.96rem; }
.pilot__side { display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.callout--accent { border: none; background: var(--navy); color: #fdfcf9; font-style: normal; font-weight: 600; text-align: center; }

/* ---------- Proof ---------- */
.proof { padding: 90px 0; border-bottom: 1px solid var(--line); }
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 46px; }
.t-card { background: var(--bg); padding: 30px 26px; }
.t-card__quote { font-size: 0.95rem; color: var(--ink); margin-bottom: 22px; }
.t-card__author { font-weight: 600; font-size: 0.92rem; }
.t-card__role { font-family: var(--mono); font-size: 0.74rem; color: var(--ink-dim); margin-top: 4px; }
.badges { margin-top: 40px; font-family: var(--mono); font-size: 0.78rem; color: var(--ink-faint); text-align: center; text-transform: uppercase; letter-spacing: 0.04em; }
.badges span.d { color: var(--lime); margin: 0 12px; }

/* ---------- Final CTA ---------- */
.final-cta { padding: 120px 0; text-align: center; border-bottom: 1px solid var(--line); }
.final-cta h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); max-width: 720px; margin: 0 auto 20px; }
.final-cta p { color: var(--ink-dim); max-width: 560px; margin: 0 auto 8px; }
.final-cta__risk { color: var(--lime) !important; font-weight: 600; font-family: var(--mono); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.05em; margin-bottom: 30px !important; }
.final-cta__note { margin-top: 26px; font-style: italic; font-size: 0.9rem; color: var(--ink-faint); max-width: 480px; }

/* ---------- Footer ---------- */
.footer { padding: 50px 0 36px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer__brand { display: flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 700; }
.footer__brand svg { width: 18px; height: 18px; }
.footer__tag { font-family: var(--mono); font-size: 0.76rem; color: var(--ink-faint); }
.footer__links { display: flex; gap: 18px; font-family: var(--mono); font-size: 0.78rem; color: var(--ink-dim); flex-wrap: wrap; }
.footer__links a:hover { color: var(--lime); }
.footer__copy { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-faint); margin-top: 16px; text-align: center; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; width: 52px; height: 52px;
  border-radius: 50%; background: #1fbf5a; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(31,191,90,0.4); z-index: 190; transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 26px; height: 26px; }

/* ---------- Product page layout ---------- */
.pg-hero { padding: 70px 0 60px; border-bottom: 1px solid var(--line); }
.pg-hero__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; font-family: var(--mono); font-size: 0.8rem; color: var(--ink-dim); }
.pg-hero__top a:hover { color: var(--lime); }
.pg-hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); max-width: 760px; }
.pg-hero__sub { color: var(--ink-dim); font-size: 1.05rem; max-width: 560px; margin-top: 20px; }
.pg-hero__cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.demo-stage {
  margin-top: 56px;
  border: 1px solid var(--line-strong);
  background: var(--bg-1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.demo-stage__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 0.72rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.05em; }
.demo-stage__bar span.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-faint); }
.demo-stage__bar span.dot.live { background: var(--lime); box-shadow: 0 0 8px var(--lime); animation: livePulse 1.6s infinite; }
@keyframes livePulse { 0%,100%{opacity:1;} 50%{opacity:0.35;} }
.demo-stage canvas { display: block; width: 100%; height: 420px; }

.pg-features { padding: 80px 0; border-bottom: 1px solid var(--line); }
.pg-features__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 46px; }
.feat { background: var(--bg); padding: 30px 28px; }
.feat h4 { font-size: 1.02rem; margin-bottom: 10px; }
.feat p { color: var(--ink-dim); font-size: 0.9rem; }

.pg-how { padding: 80px 0; border-bottom: 1px solid var(--line); }
.pg-how__steps { display: flex; flex-direction: column; margin-top: 46px; }
.pg-how__step { display: grid; grid-template-columns: 60px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); align-items: baseline; }
.pg-how__step:last-child { border-bottom: 1px solid var(--line); }
.pg-how__step h4 { font-size: 1.02rem; margin-bottom: 6px; }
.pg-how__step p { color: var(--ink-dim); font-size: 0.92rem; }

.pg-cta { padding: 90px 0; text-align: center; }
.pg-cta h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 18px; }
.pg-cta p { color: var(--ink-dim); max-width: 500px; margin: 0 auto 30px; }

.other-products { padding: 60px 0 90px; border-top: 1px solid var(--line); }
.other-products__head { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 30px; }
.other-products__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.op-card { background: var(--bg); padding: 22px 20px; }
.op-card span { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-faint); }
.op-card h5 { font-size: 0.96rem; margin: 8px 0 10px; }
.op-card a { font-family: var(--mono); font-size: 0.74rem; color: var(--lime); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__meta { text-align: left; flex-direction: row; gap: 20px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .problem__head { grid-template-columns: 1fr; }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .pilot__grid { grid-template-columns: 1fr; gap: 30px; }
  .testimonials { grid-template-columns: 1fr; }
  .pg-features__grid { grid-template-columns: 1fr; }
  .other-products__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav .btn { display: none; }
  .nav__burger { display: flex; }
  .products__grid { grid-template-columns: 1fr; }
  .other-products__grid { grid-template-columns: 1fr; }
  .demo-stage canvas { height: 320px; }
  .hero { padding: 40px 0 60px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
}

/* ---------- Chat widget ---------- */
.chat-toggle {
  position: fixed; bottom: 90px; right: 24px; width: 52px; height: 52px;
  border-radius: 50%; background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(18,58,94,0.4); z-index: 191; transition: transform 0.2s ease;
  border: none; cursor: pointer;
}
.chat-toggle:hover { transform: scale(1.08); }
.chat-toggle svg { width: 24px; height: 24px; }

.chat-panel {
  position: fixed; bottom: 152px; right: 24px; width: 360px; max-width: calc(100vw - 32px);
  height: 480px; max-height: calc(100vh - 180px);
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 20px 60px rgba(18,58,94,0.24);
  display: none; flex-direction: column; overflow: hidden; z-index: 192;
}
.chat-panel.is-open { display: flex; }

.chat-header {
  padding: 16px 18px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--navy); color: #fdfcf9;
}
.chat-header__title { font-family: var(--head); font-weight: 600; font-size: 0.98rem; }
.chat-header__sub { font-family: var(--mono); font-size: 0.68rem; color: rgba(253,252,249,0.7); margin-top: 2px; }
.chat-header__close { background: none; border: none; color: #fdfcf9; cursor: pointer; font-size: 1.2rem; line-height: 1; padding: 4px; }

.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { max-width: 85%; padding: 10px 14px; border-radius: 12px; font-size: 0.88rem; line-height: 1.5; }
.chat-msg.bot { background: var(--bg-1); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.user { background: var(--navy); color: #fdfcf9; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-msg.typing { background: var(--bg-1); color: var(--ink-faint); align-self: flex-start; font-family: var(--mono); font-size: 0.78rem; }

.chat-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.chat-suggestion {
  font-family: var(--mono); font-size: 0.7rem; padding: 6px 10px; border-radius: 999px;
  background: var(--bg-1); border: 1px solid var(--line); color: var(--ink-dim); cursor: pointer;
}
.chat-suggestion:hover { border-color: var(--navy); color: var(--ink); }

.chat-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--bg-1); }
.chat-input-row textarea {
  flex: 1; resize: none; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px;
  font-family: var(--body); font-size: 0.88rem; color: var(--ink); background: var(--bg); max-height: 80px;
}
.chat-input-row textarea:focus { outline: none; border-color: var(--navy); }
.chat-send {
  background: var(--navy); color: #fdfcf9; border: none; border-radius: 10px; padding: 0 16px;
  font-family: var(--head); font-weight: 600; font-size: 0.84rem; cursor: pointer;
}
.chat-send:hover { background: var(--navy-deep); }
.chat-send:disabled { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 480px) {
  .chat-panel { right: 16px; bottom: 148px; width: calc(100vw - 32px); }
  .chat-toggle { right: 16px; }
}

@media (max-width: 600px) {
  .footer { padding-bottom: 150px; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer__links { gap: 14px; }
}
