/* ========================================================================
   K-Squared — design tokens (pulled from Kai's reference images)
   ===================================================================== */
:root {
  --bg:        #0A0E1A;   /* deep navy base            */
  --bg-2:      #0C1120;   /* alt section               */
  --surface:   #121626;   /* card surface              */
  --surface-2: #161B2E;   /* raised / hover            */
  --border:    #232A40;   /* thin card borders         */
  --border-2:  #2D3550;
  --text:      #E9EDF7;   /* primary text              */
  --muted:     #9AA4BF;   /* secondary text            */
  --accent:    #4F6BFF;   /* electric indigo           */
  --accent-2:  #7E97FF;   /* lighter indigo (gradient) */
  --good:      #44D7A8;   /* "after" green             */
  --warn:      #E5616B;   /* "before" red              */

  --maxw: 1140px;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 24px 60px -28px rgba(0,0,0,.85);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ========================================================================
   base
   ===================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth; scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }

.container {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-left: max(22px, env(safe-area-inset-left));
  padding-right: max(22px, env(safe-area-inset-right));
}
.accent { color: var(--accent-2); }

/* gradient line icons (recreated from Kai's icon sheet) */
.ico {
  fill: none;
  stroke: url(#iconGrad);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ambient blue glow behind everything */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(680px 420px at 18% 8%, rgba(79,107,255,.18), transparent 60%),
    radial-gradient(720px 520px at 88% 0%, rgba(79,107,255,.10), transparent 55%);
}

/* ========================================================================
   buttons
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; font-size: .98rem;
  padding: .85rem 1.4rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s;
  white-space: nowrap;
}
.btn--sm { padding: .6rem 1.05rem; font-size: .9rem; }
.btn--primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #fff; box-shadow: 0 12px 30px -12px rgba(79,107,255,.7);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -12px rgba(79,107,255,.85); }
.btn--ghost { background: rgba(255,255,255,.03); border-color: var(--border-2); color: var(--text); }
.btn--ghost:hover { background: rgba(255,255,255,.07); transform: translateY(-2px); }

/* keyboard focus — consistent, visible ring (outline follows each radius) */
a:focus-visible,
.btn:focus-visible,
.faq__item summary:focus-visible,
.contact__row:focus-visible,
.chat__input:focus-visible,
.chat__chip:focus-visible,
.chat__close:focus-visible,
.chat__send:focus-visible,
.chat__teaser-open:focus-visible,
.chat__teaser-close:focus-visible,
.nav__toggle:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

/* ========================================================================
   nav
   ===================================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: rgba(10,14,26,.55);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.nav.is-stuck { background: rgba(10,14,26,.88); border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.18rem; }
.brand--sm { font-size: 1.05rem; }
.brand__mark { flex: none; }
.nav__links { display: flex; align-items: center; gap: 1.8rem; }
.nav__links a:not(.btn) { color: var(--muted); font-weight: 500; font-size: .96rem; transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--text); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========================================================================
   sections / shared
   ===================================================================== */
.section { padding: 92px 0; position: relative; }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.section__head { max-width: 760px; margin: 0 auto 54px; text-align: center; }
.section__head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin: .5rem 0 1rem; }
.section__head p { color: var(--muted); font-size: 1.05rem; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .22em;
  font-size: .72rem; font-weight: 700; color: var(--accent-2);
  padding: .35rem .85rem; border: 1px solid var(--border-2); border-radius: 999px;
  background: rgba(79,107,255,.08);
}
.pill {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  color: var(--accent-2); padding: .4rem .9rem; border-radius: 999px;
  border: 1px solid var(--border-2); background: rgba(79,107,255,.08); margin-bottom: 1.3rem;
}

/* ========================================================================
   hero
   ===================================================================== */
.hero { padding-top: 70px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero__title { font-size: clamp(2.05rem, 7.5vw, 4.4rem); margin-bottom: 1.2rem; }
.hero__sub { color: var(--muted); font-size: 1.12rem; max-width: 30em; margin-bottom: 1.9rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.2rem; }
.hero__chips { list-style: none; display: flex; flex-wrap: wrap; gap: .7rem; }
.hero__chips li {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .85rem; color: var(--muted); background: var(--surface);
  border: 1px solid var(--border); padding: .5rem .9rem; border-radius: 999px;
}
.hero__chips .ico { width: 16px; height: 16px; }

/* before / after */
.hero__compare {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.compare { padding: 18px 16px; border-radius: var(--radius-sm); }
.compare--before { background: rgba(229,97,107,.06); border: 1px solid rgba(229,97,107,.22); }
.compare--after  { background: rgba(68,215,168,.06); border: 1px solid rgba(68,215,168,.24); }
.compare__head { font-size: .98rem; margin-bottom: .9rem; }
.compare--before .compare__head { color: var(--warn); }
.compare--after  .compare__head { color: var(--good); }
.compare ul { list-style: none; display: grid; gap: .55rem; }
.compare li { font-size: .85rem; color: var(--text); padding-left: 1.4rem; position: relative; }
.compare--before li::before { content: "✕"; position: absolute; left: 0; color: var(--warn); font-size: .8rem; }
.compare--after  li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-size: .8rem; }
.compare__foot { margin-top: 1rem; font-size: .78rem; color: var(--muted); font-weight: 600; }
.compare__arrow { align-self: center; color: var(--accent-2); font-size: 1.4rem; }

/* ========================================================================
   cards (problem + steps)
   ===================================================================== */
.cards { display: grid; gap: 20px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card, .step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 22px;
  transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.card:hover, .step:hover { transform: translateY(-4px); border-color: var(--border-2); background: var(--surface-2); }
.card__icon { display: inline-flex; margin-bottom: .9rem; }
.card__icon .ico { width: 30px; height: 30px; }
.card h3, .step h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.card p, .step p { color: var(--muted); font-size: .94rem; }
.step__num {
  display: inline-block; font-size: .85rem; font-weight: 800; color: var(--accent-2);
  background: rgba(79,107,255,.1); border: 1px solid var(--border-2);
  width: 42px; height: 42px; line-height: 40px; text-align: center; border-radius: 12px;
  margin-bottom: 1rem;
}

/* behind-the-scenes flow */
.flow {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px;
  margin-top: 30px; padding: 22px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.flow__item { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--text); }
.flow__item span {
  flex: none; width: 26px; height: 26px; line-height: 26px; text-align: center;
  font-size: .8rem; font-weight: 800; color: #fff; border-radius: 50%;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
}
.flow__sep { color: var(--border-2); font-size: 1.1rem; }

/* ========================================================================
   banner CTA
   ===================================================================== */
.banner {
  margin-top: 42px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(79,107,255,.14), rgba(79,107,255,.04));
  border: 1px solid var(--border-2); border-radius: var(--radius); padding: 24px 28px;
}
.banner strong { display: block; font-size: 1.1rem; }
.banner span { color: var(--muted); font-size: .92rem; }

/* ========================================================================
   FAQ
   ===================================================================== */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq__item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 4px 22px; transition: border-color .2s, background .2s;
}
.faq__item[open] { border-color: var(--border-2); background: var(--surface-2); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 18px 0; font-weight: 600; font-size: 1.02rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { position: relative; flex: none; width: 18px; height: 18px; }
.faq__plus::before, .faq__plus::after {
  content: ""; position: absolute; background: var(--accent-2); border-radius: 2px;
  transition: transform .25s var(--ease);
}
.faq__plus::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq__plus::after  { left: 8px; top: 0; width: 2px; height: 18px; }
.faq__item[open] .faq__plus::after { transform: rotate(90deg); opacity: 0; }
.faq__item p { color: var(--muted); font-size: .95rem; padding: 0 0 20px; max-width: 60ch; }

/* ========================================================================
   book / contact
   ===================================================================== */
.book__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: start; }
.book__contact {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px;
}
.book__contact h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.book__contact > p { color: var(--muted); font-size: .95rem; margin-bottom: 1.4rem; }
.contact__row {
  display: flex; align-items: center; gap: .9rem; padding: 14px 16px; margin-bottom: 12px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .2s, transform .2s;
}
.contact__row:hover { border-color: var(--accent); transform: translateX(3px); }
.contact__ico { display: inline-flex; }
.contact__ico .ico { width: 22px; height: 22px; }
.contact__row small { display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.contact__row span:last-child { font-weight: 600; }
.book__note { color: var(--muted); font-size: .88rem; margin-top: 1.2rem; }
.book__cal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px; overflow: hidden;
}

/* ========================================================================
   footer
   ===================================================================== */
.footer { border-top: 1px solid var(--border); padding: 48px 0 30px; background: var(--bg-2); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.footer__tag { color: var(--muted); font-size: .92rem; flex: 1 1 240px; }
.footer__contact { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__contact a { color: var(--muted); font-size: .92rem; transition: color .2s; }
.footer__contact a:hover { color: var(--accent-2); }
.footer__legal { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }
.footer__legal span { color: var(--muted); font-size: .82rem; }

/* ========================================================================
   reveal-on-scroll
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  /* honour users who ask for less motion: no looping/hover animation anywhere */
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ========================================================================
   responsive
   ===================================================================== */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  /* stack the before/after as soon as the hero stacks, so the arrow sits
     cleanly between the two cards (incl. phones in landscape, ~760–980px) */
  .hero__compare { grid-template-columns: 1fr; }
  .compare__arrow { transform: rotate(90deg); justify-self: center; }
}
@media (max-width: 760px) {
  .nav__links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; background: rgba(10,14,26,.97); border-bottom: 1px solid var(--border);
    padding: 14px 22px 24px; transform: translateY(-130%); transition: transform .3s var(--ease);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav__links .btn { margin-top: 14px; justify-content: center; }
  .nav__toggle { display: flex; }
  .book__grid { grid-template-columns: 1fr; }
  .cards--3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .cards--4, .cards--3 { grid-template-columns: 1fr; }
  .banner { flex-direction: column; align-items: flex-start; }
  .flow { flex-direction: column; align-items: stretch; }
  .flow__sep { display: none; }
  .calendly-inline-widget { height: 620px; }
}
@media (max-width: 400px) {
  .container {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .hero { padding-top: 54px; }
  .section { padding: 52px 0; }
  .section__head { margin-bottom: 40px; }
}

/* ========================================================================
   live demo chat widget
   ===================================================================== */
.chat {
  position: fixed; z-index: 80;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
}

/* launcher bubble */
.chat__launch {
  position: relative; width: 60px; height: 60px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14); cursor: pointer;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: 0 16px 36px -12px rgba(79,107,255,.8);
  display: grid; place-items: center;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.chat__launch:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -12px rgba(79,107,255,.9); }
.chat__launch:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

/* teaser callout above the bubble */
.chat__teaser {
  position: absolute; right: 0; bottom: 74px; width: 232px;
  background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: 14px; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(8px) scale(.96); transform-origin: bottom right;
  pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.chat.is-teasing .chat__teaser { opacity: 1; transform: none; pointer-events: auto; }
.chat.is-open .chat__teaser { opacity: 0 !important; pointer-events: none; }
.chat__teaser::after {
  content: ""; position: absolute; right: 22px; bottom: -7px; width: 14px; height: 14px;
  background: var(--surface-2); border-right: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2); transform: rotate(45deg);
}
.chat__teaser-open {
  display: block; width: 100%; text-align: left; cursor: pointer; font: inherit;
  background: none; border: 0; color: var(--text); padding: 13px 36px 13px 15px; border-radius: 14px;
}
.chat__teaser-open strong { display: block; font-size: .92rem; margin-bottom: 2px; }
.chat__teaser-open span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.4; }
.chat__teaser-close {
  position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; padding: 0;
  display: grid; place-items: center; cursor: pointer; color: var(--muted);
  background: none; border: 0; border-radius: 8px; line-height: 0; transition: color .2s, background .2s;
}
.chat__teaser-close:hover { color: var(--text); background: rgba(255,255,255,.07); }
.chat__teaser-close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.chat__launch svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat__launch-ico { position: absolute; display: grid; place-items: center; transition: opacity .2s, transform .2s var(--ease); }
.chat__launch-ico--close { opacity: 0; transform: rotate(-45deg) scale(.6); }
.chat.is-open .chat__launch-ico--open  { opacity: 0; transform: rotate(45deg) scale(.6); }
.chat.is-open .chat__launch-ico--close { opacity: 1; transform: none; }

/* gentle attention pulse (stops once opened) */
.chat__launch::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(79,107,255,.45); animation: ksqPulse 2.6s var(--ease) infinite;
}
.chat.is-open .chat__launch::after { animation: none; }
@keyframes ksqPulse { 70%, 100% { box-shadow: 0 0 0 16px rgba(79,107,255,0); } }
@media (prefers-reduced-motion: reduce) { .chat__launch::after { animation: none; } }

/* panel */
.chat__panel {
  position: absolute; right: 0; bottom: 74px;
  width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--radius); box-shadow: var(--shadow);
  transform-origin: bottom right;
  opacity: 0; transform: translateY(12px) scale(.96); pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.chat.is-open .chat__panel { opacity: 1; transform: none; pointer-events: auto; }

/* header */
.chat__header {
  display: flex; align-items: center; gap: .7rem; padding: 14px 16px;
  background: linear-gradient(120deg, rgba(79,107,255,.16), rgba(79,107,255,.04));
  border-bottom: 1px solid var(--border);
}
.chat__avatar {
  flex: none; width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; background: var(--bg-2);
  border: 1px solid var(--border-2);
}
.chat__id { display: flex; flex-direction: column; line-height: 1.2; }
.chat__id strong { font-size: .98rem; }
.chat__status { font-size: .76rem; color: var(--muted); display: inline-flex; align-items: center; gap: .4rem; }
.chat__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(68,215,168,.5); animation: ksqDot 2s infinite; }
@keyframes ksqDot { 70%, 100% { box-shadow: 0 0 0 5px rgba(68,215,168,0); } }
.chat__close {
  margin-left: auto; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; display: grid; place-items: center;
  color: var(--muted); border-radius: 8px; line-height: 0; transition: color .2s, background .2s;
}
.chat__close:hover { color: var(--text); background: rgba(255,255,255,.06); }
.chat__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* message log */
.chat__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat__log::-webkit-scrollbar { width: 8px; }
.chat__log::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 8px; }
.chat__msg { display: flex; }
.chat__msg--user { justify-content: flex-end; }
.chat__bubble {
  max-width: 84%; padding: 10px 13px; border-radius: 14px; font-size: .9rem; line-height: 1.5;
  white-space: pre-wrap; word-wrap: break-word;
}
.chat__msg--bot  .chat__bubble { background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 5px; color: var(--text); }
.chat__msg--user .chat__bubble { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #fff; border-bottom-right-radius: 5px; }

/* typing dots */
.chat__typing { display: inline-flex; gap: 5px; align-items: center; }
.chat__typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .5; animation: ksqType 1.2s infinite ease-in-out; }
.chat__typing span:nth-child(2) { animation-delay: .18s; }
.chat__typing span:nth-child(3) { animation-delay: .36s; }
@keyframes ksqType { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .chat__typing span { animation: none; } }

/* confirmed-booking card */
.chat__card {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: 14px; padding: 14px 15px;
}
.chat__card-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .7rem; }
.chat__card-head strong { font-size: .98rem; }
.chat__card-head svg {
  flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%;
  background: rgba(68,215,168,.15); fill: none; stroke: var(--good);
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}
.chat__card-row {
  display: flex; justify-content: space-between; gap: 1rem; font-size: .85rem;
  padding: 6px 0; border-top: 1px solid var(--border);
}
.chat__card-row span { color: var(--muted); }
.chat__card-row strong { font-weight: 600; text-align: right; }
.chat__card-note { font-size: .8rem; color: var(--muted); margin-top: .7rem; }

/* quick replies */
.chat__quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.chat__chip {
  font: inherit; font-size: .82rem; cursor: pointer; color: var(--accent-2);
  background: rgba(79,107,255,.08); border: 1px solid var(--border-2);
  padding: .45rem .8rem; border-radius: 999px; transition: background .2s, transform .15s;
}
.chat__chip:hover { background: rgba(79,107,255,.16); transform: translateY(-1px); }

/* composer */
.chat__form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); background: var(--bg-2); }
.chat__input {
  flex: 1; font: inherit; font-size: .9rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: .65rem 1rem; outline: none; transition: border-color .2s;
}
.chat__input::placeholder { color: var(--muted); }
.chat__input:focus { border-color: var(--accent); }
.chat__send {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  display: grid; place-items: center; transition: transform .15s var(--ease);
}
.chat__send:hover { transform: scale(1.06); }
.chat__send svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat__foot { text-align: center; font-size: .72rem; color: var(--muted); padding: 0 0 10px; }

@media (max-width: 560px) {
  .chat {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
  }
  .chat__panel { bottom: 72px; height: min(74vh, calc(100vh - 96px)); }
}
