@font-face {
  font-family: 'FK Grotesk Neue';
  src: url('/ai/assets/fonts/fk-grotesk-neue-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.chat-studio {
  --ink: #000;
  --muted: #717171;
  --chat-margin: 16px;
  --chat-gap: 24px;
  height: 100svh;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  font-family: 'FK Grotesk Neue','Helvetica Neue','PingFang SC','Microsoft YaHei',sans-serif;
  font-weight: 400;
  color: #000;
  background: #fff;
}
.chat-header,.chat-main,.chat-studio .site-footer {
  width: calc(100% - var(--chat-margin)*2);
  max-width: none;
  margin-inline: auto;
}
.chat-header {
  display: grid;
  grid-template-columns: repeat(12,minmax(0,1fr));
  gap: var(--chat-gap);
  align-items: center;
  padding-top: 8px;
  font-size: 12px;
  line-height: 1.4;
}
.chat-header a,.chat-header button { min-height: 40px; display: inline-flex; align-items: center; padding: 0; gap: 10px; width: fit-content; white-space: nowrap; }
.chat-brand { grid-column: 1/3; gap: 5px!important; letter-spacing: .025em; }
.chat-brand svg { width: 16px; height: 16px; }
.chat-back { grid-column: 3/6; color: #717171; }
.chat-contact { grid-column: 11/-1; justify-self: end; font-size: inherit; }
.chat-main { min-height: 0; padding-block: 28px 12px; }
.chat-stage { height: 100%; min-height: 0; display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: var(--chat-gap); align-items: center; }
.chat-copy { grid-column: 1/5; min-width: 0; max-height: 100%; overflow: auto; padding-right: clamp(12px,3vw,48px); }
.chat-copy h1 { font-size: clamp(30px,2.6vw,40px); letter-spacing: -.04em; line-height: 1.2; }
.chat-copy-desktop { margin-top: 28px; max-width: 29em; }
.chat-copy-desktop p { font-size: 14px; line-height: 1.8; color: #717171; text-wrap: wrap; overflow-wrap: anywhere; }
.chat-copy-desktop p+p { margin-top: 20px; }
.chat-copy-desktop .chat-lead { color: #000; font-size: clamp(20px,1.65vw,26px); line-height: 1.45; letter-spacing: -.025em; margin-bottom: 28px; }
.chat-copy-mobile { display: none; }
.chat-copy-actions { margin-top: 26px; }
.chat-copy-actions p { color: #717171; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.chat-consult { display: inline-flex; align-items: center; gap: 32px; min-height: 44px; padding: 4px 0; margin-top: 24px; border-bottom: 1px solid #000; font-size: 14px; }
.chat-consult:hover { color: #717171; border-bottom-color: #717171; }
.chat-studio .messaging-demo { grid-column: 5/-1; min-width: 0; min-height: 0; height: 100%; display: grid; grid-template-rows: auto minmax(0,1fr) auto; gap: 10px; }
.chat-studio .messaging-channels { display: flex; gap: 26px; width: 100%; max-width: none; min-height: 40px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.chat-studio .messaging-channels button { gap: 7px; min-height: 40px; padding: 0 0 7px; font-size: 12px; font-weight: 400; border: 0; border-bottom: 1px solid transparent; border-radius: 0; background: transparent; box-shadow: none; color: #717171; }
.chat-studio .messaging-channels button[aria-pressed=true] { color: #000; border-bottom-color: #000; }
.chat-studio .channel-brand { width: 18px; height: 18px; }
.chat-studio .channel-brand-line { border-radius: 5px; font-size: 5px; }
.chat-studio .channel-brand-line::after { width: 12px; height: 10px; top: 3px; left: 2px; }
.chat-studio .channel-brand-whatsapp svg { width: 17px; height: 17px; }
.chat-studio .channel-demo-panel { min-height: 0; height: 100%; border: 1px solid #dedede; border-radius: 2px; background: #fff; }
.chat-studio .channel-demo-panel iframe { width: 100%; height: 100%; min-height: 0; }
.chat-studio .messaging-demo-label { margin: 0; font-size: 11px; line-height: 1.5; color: #717171; }
.chat-studio .site-footer { min-height: 0; height: auto; padding: 0 0 calc(8px + env(safe-area-inset-bottom)); margin-block: 0; border: 0; font-size: 12px; }
.chat-studio .site-footer a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; color: #717171; }
.chat-studio .site-footer .icon { width: 14px; height: 14px; }
.chat-studio .chat-header a:focus-visible,.chat-studio .chat-header button:focus-visible,.chat-studio .chat-consult:focus-visible,.chat-studio .messaging-channels button:focus-visible { outline: 1px solid #000; outline-offset: 4px; }

@media (max-width: 800px) {
  .chat-studio { --chat-margin: 14px; --chat-gap: 14px; }
  .chat-header { grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; padding-top: 4px; font-size: 11px; }
  .chat-header a,.chat-header button { min-height: 40px; gap: 5px; }
  .chat-brand { grid-column: 1; }
  .chat-back { grid-column: 2; justify-self: center; }
  .chat-contact { grid-column: 3; color: #717171; }
  .chat-main { padding-block: 16px 8px; }
  .chat-stage { grid-template-columns: minmax(0,1fr); grid-template-rows: auto minmax(0,1fr); gap: 18px; align-items: stretch; }
  .chat-copy { grid-column: 1; padding: 0; max-height: min(240px,35svh); }
  .chat-copy h1 { font-size: 28px; }
  .chat-copy-desktop { display: none; }
  .chat-copy-mobile { display: block; margin-top: 10px; color: #717171; font-size: 12px; line-height: 1.65; text-wrap: wrap; overflow-wrap: anywhere; }
  .chat-copy-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
  .chat-copy-actions p { font-size: 10px; }
  .chat-consult { flex: none; min-height: 34px; margin: 0; padding: 2px 0; gap: 13px; font-size: 12px; }
  .chat-studio .messaging-demo { grid-column: 1; grid-row: 2; gap: 7px; }
  .chat-studio .messaging-channels { min-height: 32px; gap: 24px; }
  .chat-studio .messaging-channels button { min-height: 32px; padding-bottom: 5px; font-size: 11px; }
  .chat-studio .messaging-demo-label { font-size: 10px; }
  .chat-studio .site-footer { min-height: 60px; padding-bottom: calc(6px + env(safe-area-inset-bottom)); font-size: 11px; }
  .chat-studio .site-footer a { min-height: 30px; }
  .chat-studio .companion-launch { width: 44px; height: 44px; }
  .chat-studio .companion-orb-art { width: 38px; height: 38px; }
}

@media (max-width: 800px) and (max-height: 700px) {
  .chat-main { padding-block: 10px 4px; }
  .chat-stage { gap: 10px; }
  .chat-copy h1 { font-size: 25px; }
  .chat-copy-mobile { margin-top: 6px; font-size: 11.5px; line-height: 1.55; }
  .chat-copy-actions { margin-top: 4px; }
  .chat-consult { min-height: 30px; font-size: 11px; }
  .chat-studio .messaging-demo { gap: 5px; }
  .chat-studio .messaging-channels,.chat-studio .messaging-channels button { min-height: 30px; }
}

@media (min-width: 801px) and (max-height: 700px) {
  .chat-main { padding-top: 12px; }
  .chat-copy-desktop { margin-top: 20px; }
  .chat-copy-desktop .chat-lead { margin-bottom: 16px; }
  .chat-copy-desktop p+p { margin-top: 14px; }
  .chat-copy-actions { margin-top: 18px; }
  .chat-consult { margin-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .chat-studio a,.chat-studio button { transition: none; }
}

/* v88: screenshot-led SCRM frame; site typography and surrounding copy stay intact. */
.chat-studio .messaging-demo { grid-template-rows: minmax(0,1fr) auto; gap: 9px; }
.chat-studio .channel-demo-panel { border: 1px solid #e5e5e7; border-radius: 23px; overflow: hidden; }
@media (min-width: 801px) {
  .chat-copy { grid-column: 1/4; padding-right: 10px; }
  .chat-copy h1 { font-size: clamp(28px,2.4vw,38px); }
  .chat-copy-desktop p { font-size: 12px; }
  .chat-copy-desktop .chat-lead { font-size: clamp(18px,1.6vw,24px); }
  .chat-studio .messaging-demo { grid-column: 4/-1; height: auto; max-height: 100%; align-self: center; }
  .chat-studio .channel-demo-panel { aspect-ratio: 1030 / 579; height: auto; position: relative; }
  .chat-studio .channel-demo-panel iframe { position: absolute; inset: 0; }
}
@media (max-width: 800px) {
  .chat-studio .channel-demo-panel { border-radius: 16px; }
  .chat-studio .messaging-demo { gap: 5px; }
}
