/* Infinity Soft · Toast POS support page · "Apple light" theme
   Colors, type and spacing live in the variables below. Change them here to restyle the whole page. */

:root {
  --bg: #FFFFFF;
  --bg-alt: #F5F5F7;
  --card: #FFFFFF;
  --ink: #1D1D1F;
  --muted: #6E6E73;
  --line: #E5E5EA;
  --line-strong: #8E8E93;

  --accent: #0071E3;          /* buttons */
  --accent-hover: #0077ED;
  --accent-text: #0066CC;     /* links, labels, checked controls */
  --accent-soft: #EAF3FD;
  --brand-blue: #27AAE1;      /* logo blue, never recolored */

  --dark: #1D1D1F;            /* footer, call card, dark buttons */
  --dark-raised: #2C2C2E;
  --dark-ink: #F5F5F7;
  --dark-muted: #A1A1A6;
  --dark-line: #3A3A3C;
  --dark-accent: #2997FF;

  --success: #248A3D;
  --success-soft: #E8F5EC;
  --danger: #D70015;

  --font-display: "Inter Tight", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  --font-text: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;

  --radius: 22px;
  --radius-sm: 12px;
  --pill: 999px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.16);

  --container: 1200px;
  --gutter: 24px;
  --section: 120px;
  --header-h: 72px;
  --bar-h: 0px;
}

@media (max-width: 860px) {
  :root { --gutter: 20px; --section: 72px; --bar-h: 76px; }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding-bottom: var(--bar-h);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; text-wrap: balance; }
p { margin: 0; }
strong { font-weight: 600; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 6px; }
section[id], #top { scroll-margin-top: calc(var(--header-h) + 8px); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.icon { width: 20px; height: 20px; flex: none; }

.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 10px 16px; border-radius: var(--pill); background: var(--ink); color: #fff; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px;
  border: 1.5px solid transparent; border-radius: var(--pill);
  font-family: var(--font-text); font-size: 15px; font-weight: 500; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn .icon { width: 18px; height: 18px; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 16px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #3A3A3C; }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); background: var(--bg-alt); }
.btn-round {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
}
.btn-round.btn-dark { color: #fff; }
.btn-round.btn-primary { color: #fff; }
.btn-round .icon { width: 18px; height: 18px; }
.mono-link { font-weight: 600; color: var(--ink); white-space: nowrap; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.header-inner { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; }
.header-brand { display: flex; align-items: center; gap: 20px; min-width: 0; }
.logo-link { display: flex; }
.logo-link img { height: 40px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 8px; }

@media (max-width: 860px) {
  .header-actions { display: none; }
  .logo-link img { height: 36px; }
}

/* Hero */
.hero {
  padding-top: 104px;
  background:
    radial-gradient(1000px 600px at 80% -10%, rgba(0, 113, 227, 0.11), rgba(0, 113, 227, 0) 60%),
    radial-gradient(800px 500px at -5% 105%, rgba(175, 82, 222, 0.08), rgba(175, 82, 222, 0) 60%),
    linear-gradient(180deg, #FBFBFD 0%, #F5F5F7 100%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 48px; }
.hero-kicker { font-size: 16px; font-weight: 500; color: var(--muted); }
.hero h1 { margin-top: 14px; font-size: 56px; line-height: 1.07; letter-spacing: -0.035em; }
.lead { margin-top: 20px; max-width: 560px; font-size: 20px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.emergency-label { margin-top: 32px; display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.dot-red { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); }
.button-row { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 12px; }
.assurance { margin-top: 20px; max-width: 560px; display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 22px; color: var(--muted); }
.assurance strong { color: var(--ink); }
.assurance .icon { margin-top: 2px; color: var(--success); }
.fineprint { margin-top: 16px; font-size: 13px; color: var(--muted); }

.ai-box {
  margin-top: 24px; max-width: 480px; height: 56px;
  display: flex; align-items: center; gap: 10px; padding: 0 8px 0 18px;
  border: 1px solid var(--line-strong); border-radius: var(--pill); background: var(--card);
}
.ai-box:focus-within { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.ai-spark { display: flex; color: var(--accent-text); }
.ai-spark .icon { width: 22px; height: 22px; }
.ai-box input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; color: var(--ink); font: inherit; font-size: 16px; }
.ai-box input::placeholder { color: var(--muted); }

.hero-media { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.hero-photo { position: relative; width: 100%; max-width: 520px; margin: 0 auto; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: var(--bg-alt); box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12); }
.hero-photo img { width: 100%; height: 100% !important; object-fit: cover; }
.status-chip {
  position: absolute; left: 16px; bottom: 16px;
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: var(--pill); background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: var(--shadow); font-size: 14px; font-weight: 600;
}
.status-icon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--success-soft); color: var(--success); }
.status-icon .icon { width: 14px; height: 14px; }
.hero-media figcaption { width: 100%; max-width: 520px; margin: 0 auto; font-size: 13px; color: var(--muted); }

.trust-strip {
  list-style: none; margin: 64px 0 0; padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 24px 32px;
}
.trust-strip li { display: flex; align-items: flex-start; gap: 12px; }
.trust-strip strong { display: block; font-family: var(--font-display); font-size: 16px; line-height: 22px; }
.trust-strip span { font-size: 14px; line-height: 20px; color: var(--muted); }
.badge-check { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); }
.badge-check .icon { width: 18px; height: 18px; }

@media (max-width: 860px) {
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 34px; line-height: 1.12; }
  .lead { font-size: 17px; }
  .button-row .btn { width: 100%; }
  .trust-strip { margin-top: 40px; }
}

/* Sections */
.section { padding: var(--section) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 780px; margin-bottom: 48px; }
.kicker { font-size: 14px; font-weight: 600; color: var(--accent-text); }
.kicker-on-dark { color: var(--dark-accent); }
.section h2 { margin-top: 10px; font-size: 44px; line-height: 1.1; letter-spacing: -0.028em; }
.section h2.h2-small { font-size: 34px; }
.section-lead { margin-top: 16px; font-size: 19px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
@media (max-width: 860px) {
  .section-head { margin-bottom: 32px; }
  .section h2 { font-size: 30px; }
  .section h2.h2-small { font-size: 28px; }
  .section-lead { font-size: 16px; }
}

.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 24px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.icon-disc { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--ink); }
.icon-disc .icon { width: 26px; height: 26px; }
.icon-disc-sm { width: 40px; height: 40px; }
.icon-disc-sm .icon { width: 20px; height: 20px; }

.fix-card { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 20px; padding: 28px; }
.fix-card > div { flex: 1 1 240px; min-width: 0; }
.fix-card h3 { font-size: 20px; line-height: 26px; }
.fix-card p { margin-top: 8px; font-size: 15px; line-height: 22px; color: var(--muted); text-wrap: pretty; }

/* Disclosures (services + FAQ) */
.disclosure summary { display: flex; align-items: center; gap: 16px; padding: 20px 28px; cursor: pointer; list-style: none; }
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary:focus-visible { border-radius: var(--radius); }
.summary-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.num { font-size: 13px; font-weight: 600; color: var(--accent-text); }
.summary-title { font-family: var(--font-display); font-size: 20px; line-height: 26px; font-weight: 600; }
.faq .summary-title { flex: 1 1 auto; font-size: 18px; line-height: 24px; }
.chev { display: flex; flex: none; color: var(--muted); transition: transform .2s ease; }
.chev .icon { width: 24px; height: 24px; }
.disclosure[open] .chev { transform: rotate(180deg); }
.disclosure-body { padding: 0 28px 28px; font-size: 15px; line-height: 22px; text-wrap: pretty; }
.service-body { display: flex; flex-wrap: wrap; gap: 16px 40px; padding-left: 96px; }
.service-body > div:first-child { flex: 2 1 360px; min-width: 0; }
.service-body > div:last-child { flex: 1 1 200px; min-width: 0; }
.label { margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.faq { max-width: 880px; }
@media (max-width: 860px) {
  .disclosure summary { padding: 20px; }
  .disclosure-body { padding: 0 20px 24px; }
  .service-body { padding-left: 20px; }
  .fix-card { padding: 24px; }
}

/* Comparison table */
.table-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.compare { width: 100%; border-collapse: collapse; text-align: left; }
.compare th, .compare td { padding: 20px 24px; vertical-align: top; font-size: 15px; line-height: 22px; }
.compare thead th { padding: 14px 24px; background: var(--bg-alt); font-size: 13px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
.compare thead th.ours { background: var(--accent-soft); color: var(--accent-text); }
.compare tbody tr + tr > * { border-top: 1px solid var(--line); }
.compare tbody th { width: 24%; font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.compare td { color: var(--muted); }
.compare td > .icon { float: left; width: 18px; height: 18px; margin: 2px 10px 0 0; color: var(--line-strong); }
.compare td span { display: block; overflow: hidden; }
.compare td.ours { background: var(--accent-soft); color: var(--ink); font-weight: 500; }
.compare td.ours > .icon { color: var(--accent-text); }
@media (max-width: 860px) {
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tbody th { width: 100%; padding: 16px 20px 8px; }
  .compare tbody tr + tr > * { border-top: 0; }
  .compare tbody tr + tr { border-top: 1px solid var(--line); }
  .compare td { padding: 12px 20px; }
  .compare td::before { content: attr(data-label); display: block; margin: 0 0 4px 28px; font-size: 12px; font-weight: 600; color: var(--muted); }
  .compare td.ours::before { color: var(--accent-text); }
}

/* Real work */
.work-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; }
.section .work-head h2, .videos-copy h3 { margin-top: 0; font-size: 26px; line-height: 32px; letter-spacing: -0.015em; }
.work-head p { font-size: 14px; }
.photo-strip { margin-top: 24px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.photo-strip figure { flex: 0 0 calc((100% - 32px) / 3); min-width: 0; margin: 0; scroll-snap-align: start; }
.photo-strip img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); background: var(--card); }
figcaption .tag { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 600; color: var(--accent-text); }
.photo-strip figcaption, .videos figcaption { margin-top: 10px; font-size: 14px; line-height: 20px; }
.videos-row { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px 48px; }
.videos-copy { flex: 1 1 300px; min-width: 0; }
.videos-copy p { margin-top: 12px; }
.videos { flex: 1.4 1 340px; min-width: 0; max-width: 560px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.videos figure { margin: 0; min-width: 0; }
.videos video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius); background: #000; }
@media (max-width: 860px) {
  .photo-strip figure { flex-basis: 78%; }
}

/* Booking */
.book-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px 48px; }
.book-side { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.book-side > h3 { margin-bottom: 4px; font-size: 24px; line-height: 30px; }
.call-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 28px; border-radius: var(--radius); background: var(--dark); color: var(--dark-ink); }
.call-number { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.01em; color: var(--dark-ink); text-decoration: none; }
.call-card > p { font-size: 15px; line-height: 22px; color: var(--dark-muted); }
.assurance-dark { margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--dark-muted); }
.assurance-dark .icon { color: #30D158; width: 18px; height: 18px; }
.call-card .btn { margin-top: 12px; }
.photo-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 28px; }
.photo-card-head { display: flex; align-items: center; gap: 12px; }
.photo-card h4 { margin-top: 4px; font-size: 20px; line-height: 26px; }
.photo-card > p { font-size: 15px; line-height: 22px; }
.photo-card .btn { margin-top: 12px; }

.book-form { flex: 1.3 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; padding: 32px; }
.book-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.book-form legend, .field label { padding: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--ink); }
.book-form [data-panel] { display: flex; flex-direction: column; gap: 20px; }
.mode-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.mode-tab {
  flex: 1 1 200px; min-width: 0; min-height: 48px;
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--card); color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer;
}
.radio-dot { flex: none; width: 18px; height: 18px; border: 1.5px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; }
.mode-tab[aria-pressed="true"] { border-color: var(--accent-text); background: var(--accent-soft); }
.mode-tab[aria-pressed="true"] .radio-dot { border-color: var(--accent-text); }
.mode-tab[aria-pressed="true"] .radio-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-text); }

.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field input, .field select {
  width: 100%; height: 48px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--card); color: var(--ink); font: inherit; font-size: 16px;
}
.field input::placeholder { color: var(--muted); }
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 0; border-color: var(--accent-text); }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select-wrap .icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px;
  border: 1.5px solid var(--line-strong); border-radius: var(--pill); background: var(--card);
  color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.pill .icon { width: 16px; height: 16px; color: var(--line-strong); }
.pill[aria-pressed="true"] { border-color: var(--accent-text); background: var(--accent-soft); }
.pill[aria-pressed="true"] .icon { color: var(--accent-text); }

.checks { display: flex; flex-direction: column; gap: 12px; }
.check { position: relative; display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 24px; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 2px 0 0; }
.check .box { flex: none; width: 20px; height: 20px; margin-top: 2px; display: grid; place-items: center; border: 1.5px solid var(--line-strong); border-radius: 6px; color: transparent; }
.check .box .icon { width: 14px; height: 14px; }
.check input:checked + .box { background: var(--accent-text); border-color: var(--accent-text); color: #fff; }
.check input:focus-visible + .box { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.radios { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.radios label { display: flex; align-items: center; gap: 8px; min-height: 32px; font-size: 15px; cursor: pointer; }
.radios input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent-text); }
.btn-block .icon { width: 18px; height: 18px; }
.form-note { margin-top: -10px; font-size: 13px; color: var(--muted); text-align: center; }
.form-status { font-size: 14px; font-weight: 500; text-align: center; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--danger); }
.form-status.is-ok { color: var(--success); }
@media (max-width: 860px) {
  .book-form, .call-card, .photo-card { padding: 24px; }
}

/* Areas */
.areas-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 48px; }
.areas-grid > div:first-child { flex: 1 1 360px; min-width: 0; }
.area-intro { margin-top: 16px; }
.area-intro strong { color: var(--ink); }
.area-cards { flex: 1.5 1 480px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.area-card { padding: 24px; }
.area-card h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; line-height: 24px; }
.area-card h3 .icon { color: var(--accent-text); }
.area-card p { margin-top: 10px; font-size: 15px; line-height: 22px; color: var(--muted); }

/* Footer */
.site-footer { padding: 64px 0 40px; background: var(--dark); color: var(--dark-ink); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 48px; }
.footer-grid > * { flex: 1 1 260px; min-width: 0; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer-brand img { height: 44px; width: auto; }
.site-footer address { display: flex; flex-direction: column; gap: 12px; font-style: normal; }
.site-footer address p { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 24px; }
.site-footer address .icon { margin-top: 2px; color: var(--dark-muted); }
.site-footer address a { color: var(--dark-ink); text-decoration: none; overflow-wrap: anywhere; }
.site-footer .mono-link { color: var(--dark-ink); }
.site-footer .kicker + p { margin-top: 8px; font-size: 15px; }
.disclaimer { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--dark-line); max-width: 960px; font-size: 12px; line-height: 18px; color: var(--dark-muted); }

/* Mobile quick-action bar */
.mobile-bar { display: none; }
@media (max-width: 860px) {
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
  }
  .mobile-bar .btn { flex: 1 1 0; min-width: 0; height: 52px; padding: 0 6px; font-size: 13px; }
  .mobile-bar .btn-call { flex: 1.6 1 0; gap: 8px; }
  .call-stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
  .call-stack span { font-size: 15px; font-weight: 600; }
  .call-stack small { font-size: 12px; font-weight: 500; }
}

/* AI chat */
.chat-fab {
  position: fixed; z-index: 41; right: 24px; bottom: 24px;
  width: 56px; height: 56px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--dark); color: #fff;
  box-shadow: var(--shadow-lg); cursor: pointer;
}
.chat-fab .fab-open { display: flex; color: var(--dark-accent); }
.chat-fab .fab-open .icon { width: 26px; height: 26px; }
.chat-fab .fab-close { display: none; }
.chat-fab .fab-close .icon { width: 22px; height: 22px; }
.chat-fab[aria-expanded="true"] .fab-open { display: none; }
.chat-fab[aria-expanded="true"] .fab-close { display: flex; }

.chat-panel {
  position: fixed; z-index: 40; right: 24px; bottom: 96px;
  width: 384px; height: min(560px, calc(100vh - 140px));
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: 22px; background: var(--card);
  box-shadow: var(--shadow-lg);
}
.chat-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; background: var(--dark); color: var(--dark-ink); }
.chat-head .icon-disc { background: rgba(41, 151, 255, 0.16); color: var(--dark-accent); }
.chat-head > div { flex: 1 1 auto; min-width: 0; }
.chat-title { font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.chat-sub { margin-top: 2px; font-size: 12px; color: var(--dark-muted); }
.chat-close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--dark-ink); cursor: pointer; }
.chat-log { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.msg { max-width: 88%; padding: 12px 14px; font-size: 14px; line-height: 20px; white-space: pre-line; }
.msg.bot { align-self: flex-start; border-radius: 18px 18px 18px 4px; background: var(--bg-alt); }
.msg.user { align-self: flex-end; border-radius: 18px 18px 4px 18px; background: var(--accent-soft); }
.handoff { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-form { flex: none; display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--pill); font: inherit; font-size: 16px; }
.chat-form .btn-round { width: 44px; height: 44px; }
.chat-foot { flex: none; padding: 0 16px 12px; font-size: 11px; line-height: 15px; color: var(--muted); }

@media (max-width: 860px) {
  .chat-fab { right: 16px; bottom: calc(88px + env(safe-area-inset-bottom)); }
  .chat-fab[aria-expanded="true"] { display: none; }
  .chat-panel { left: 8px; right: 8px; bottom: calc(84px + env(safe-area-inset-bottom)); width: auto; height: min(560px, calc(100vh - 160px)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
