/* Sally24 landing v2. Static page, no build step. */

/* Onest, SIL Open Font License 1.1 (fonts/OFL.txt). Variable weight 400–700. */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/onest-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --paper: #f6f3ee;
  --paper-2: #efebe4;
  --surface: #ffffff;
  --ink: #1c1e22;
  --ink-2: #464a52;
  --muted: #666a72;
  --line: #e4ded4;
  --line-2: #d3ccc0;

  --brand: #2162d8;
  --brand-hover: #1a53bb;
  --brand-ink: #1b4fae;
  --brand-tint: #e8effb;
  --spark: #2bb3e4;
  --spark-light: #6edcff;

  --ok: #22703f;
  --ok-tint: #e2f1e7;
  --wait: #845600;
  --wait-tint: #fbefd9;

  --bubble-in: #f0ece5;
  --bubble-out: #e6eefb;

  --radius: 16px;
  --header-h: 64px;
  --shadow: 0 1px 2px rgba(28, 30, 34, .05), 0 12px 32px -16px rgba(28, 30, 34, .22);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* anchors land below the sticky header */
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
a { color: var(--brand-ink); }
b, strong { font-weight: 600; }
button { font: inherit; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.ic {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nowrap { white-space: nowrap; }

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

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-2); background: rgba(255, 255, 255, .6); }
.btn-light { background: #fff; color: var(--brand-ink); }
.btn-light:hover { background: var(--brand-tint); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; border-radius: 10px; }

/* Small rounded secondary button: replay, "show example" */
.pill-btn, .replay, .case-show {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 5px 13px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand-ink);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s;
}
.replay:hover, .case-show:hover { border-color: var(--brand); }
.replay .ic, .case-show .ic { width: 16px; height: 16px; }
.replay[hidden], .case-show[hidden] { display: none; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 238, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  color: var(--ink);
  font-size: 22px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: .02em;
  font-variant-numeric: lining-nums;
  text-decoration: none;
}
.brand img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.brand-num { color: #005bff; }

.nav { display: flex; gap: 2px; margin-left: auto; flex: none; }
.nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: rgba(28, 30, 34, .05); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.header-actions .btn { white-space: nowrap; }

.menu { display: none; flex: none; }
.menu-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.menu-toggle::-webkit-details-marker { display: none; }
.menu-toggle .ic { width: 22px; height: 22px; grid-area: 1 / 1; }
.menu .ic-close, .menu[open] .ic-open { display: none; }
.menu[open] .ic-close { display: block; }

.menu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  padding: 4px 16px 20px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 24px -16px rgba(28, 30, 34, .25);
}
.menu[open] .menu-panel { display: flex; }
.menu-panel a:not(.btn) {
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
}
.menu-panel .btn { margin-top: 16px; }
.menu-panel .btn + .btn { margin-top: 8px; }

@media (max-width: 1200px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; }
  .menu { display: block; }
}
@media (max-width: 480px) {
  .header-actions { display: none; }
  .menu { margin-left: auto; }
}

/* ---------- Hero: first screen ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(calc(100vh - var(--header-h)), 920px);
  min-height: min(calc(100svh - var(--header-h)), 920px);
  padding: 56px 0 64px;
  overflow: hidden;
  text-align: center;
}

/* Background: soft brand-coloured glows over a fine grid that fades out to the edges */
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  background: linear-gradient(rgba(246, 243, 238, 0), var(--paper));
}
.hero-glow { position: absolute; left: 50%; border-radius: 50%; }
.hero-glow-1 {
  top: -260px;
  width: 900px;
  height: 680px;
  margin-left: -820px;
  background: radial-gradient(closest-side, rgba(43, 179, 228, .34), rgba(43, 179, 228, 0));
}
.hero-glow-2 {
  top: -300px;
  width: 980px;
  height: 760px;
  margin-left: -120px;
  background: radial-gradient(closest-side, rgba(33, 98, 216, .26), rgba(33, 98, 216, 0));
}
.hero-glow-3 {
  bottom: -300px;
  width: 1100px;
  height: 560px;
  margin-left: -550px;
  background: radial-gradient(closest-side, rgba(244, 177, 120, .30), rgba(244, 177, 120, 0));
}
.hero-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(33, 98, 216, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 98, 216, .075) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center -1px;
  -webkit-mask-image: radial-gradient(ellipse 72% 68% at 50% 42%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 72% 68% at 50% 42%, #000 25%, transparent 75%);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-glow-1 { animation: drift-a 22s ease-in-out infinite alternate; }
  .hero-glow-2 { animation: drift-b 26s ease-in-out infinite alternate; }
  .hero-glow-3 { animation: drift-a 30s ease-in-out infinite alternate-reverse; }
}
@keyframes drift-a {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(90px, 40px) scale(1.08); }
}
@keyframes drift-b {
  from { transform: translate(0, 0) scale(1.05); }
  to { transform: translate(-110px, 50px) scale(.95); }
}

.hero-inner { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  padding: 7px 16px 7px 12px;
  border: 1px solid rgba(33, 98, 216, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  color: var(--brand-ink);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.ic-spark { width: 16px; height: 16px; color: var(--spark); }

h1 {
  max-width: 12em; /* keeps the headline clear of the side cards */
  margin: 0 auto 22px;
  font-size: clamp(34px, 3.4vw + 20px, 60px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.h1-accent {
  display: block; /* the promise gets its own line */
  background: linear-gradient(95deg, var(--brand) 10%, #1785b8 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 38em;
  margin: 0 auto 32px;
  color: var(--ink-2);
  font-size: 19px;
  line-height: 1.5;
  text-wrap: pretty;
}

.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn-lg { min-height: 56px; padding: 12px 28px; font-size: 17px; border-radius: 14px; }
.btn-lg .ic { width: 16px; height: 16px; }
.hero .btn-primary { box-shadow: 0 10px 28px -10px rgba(33, 98, 216, .65); }
.hero .btn-ghost { background: rgba(255, 255, 255, .65); }
.hero .btn-ghost:hover { background: #fff; }
.hero .btn-ghost .ic { color: var(--brand); }

.cta-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 15px;
}
.cta-note li { display: flex; align-items: center; gap: 6px; }
.cta-note .ic { width: 18px; height: 18px; color: var(--ok); stroke-width: 2.2; }

/* Channels and systems under the buttons */
.hero-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 48px;
}
.hl-row { display: flex; align-items: center; justify-content: center; gap: 10px 14px; flex-wrap: wrap; }
.hl-label {
  min-width: 64px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}
.hl-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hl-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}
.hl-list img { width: 18px; height: 18px; border-radius: 5px; object-fit: contain; }
.hl-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--brand-tint);
  color: var(--brand);
}
.hl-icon .ic { width: 12px; height: 12px; stroke-width: 2.1; }

/* Decorative cards on both sides of the headline. They are background, not content:
   dimmed and desaturated, so the headline is what reads first.
   Near row: inner edge at least 372px from the centre (the headline is at most ~690px wide).
   Far row: further out, smaller, dimmer and slightly blurred; partly off screen on narrower windows. */
.hero-float { display: none; }
@media (min-width: 1280px) {
  .hero-float { position: absolute; inset: 0; display: block; overflow: hidden; pointer-events: none; }
}
.fl {
  position: absolute;
  width: 236px;
  padding: 11px 13px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 14px 30px -24px rgba(28, 30, 34, .3);
  text-align: left;
  font-size: 13.5px;
  line-height: 1.4;
  opacity: .5;
  filter: saturate(.5);
}
.fl-far {
  z-index: -1;
  width: 214px;
  opacity: .28;
  scale: .9;
  filter: saturate(.35) blur(.6px);
  box-shadow: none;
}
.fl-far { display: none; }
@media (min-width: 1440px) {
  .fl-far { display: block; }
}

.fl-l1 { top: 9%; left: calc(50% - 610px); transform: rotate(-2.5deg); }
.fl-l2 { top: 39%; left: calc(50% - 626px); transform: rotate(1.5deg); }
.fl-l3 { top: 67%; left: calc(50% - 608px); transform: rotate(-1.5deg); }
.fl-r1 { top: 12%; right: calc(50% - 610px); transform: rotate(2.5deg); }
.fl-r2 { top: 37%; right: calc(50% - 626px); transform: rotate(-1.5deg); }
.fl-r3 { top: 69%; right: calc(50% - 608px); transform: rotate(1.5deg); }
/* far row never leaves the window: on narrower screens it tucks in behind the near row */
.fl-fl1 { top: 23%; left: max(4px, calc(50% - 800px)); transform: rotate(2deg); }
.fl-fl2 { top: 52%; left: max(0px, calc(50% - 820px)); transform: rotate(-2deg); }
.fl-fl3 { top: 81%; left: max(6px, calc(50% - 790px)); transform: rotate(1.5deg); }
.fl-fr1 { top: 25%; right: max(4px, calc(50% - 800px)); transform: rotate(-2deg); }
.fl-fr2 { top: 54%; right: max(0px, calc(50% - 820px)); transform: rotate(2deg); }
.fl-fr3 { top: 83%; right: max(6px, calc(50% - 790px)); transform: rotate(-1.5deg); }

.fl-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}
.fl-head img { width: 14px; height: 14px; border-radius: 3px; }
.fl-head .ic { width: 13px; height: 13px; color: var(--spark); }
.fl-bubble { padding: 7px 11px; border-radius: 13px; }
.fl-in { background: var(--bubble-in); border-bottom-left-radius: 5px; }
.fl-out { background: var(--bubble-out); border-bottom-right-radius: 5px; }
.fl .act-title { font-size: 13.5px; }
.fl-voice {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 5px 11px 5px 5px;
  border-radius: 13px;
  border-bottom-left-radius: 5px;
  background: var(--bubble-in);
}
.fl-voice .voice-play { width: 26px; height: 26px; }
.fl-voice .voice-play .ic { width: 12px; height: 12px; }
.fl-voice .wave { width: 96px; height: 18px; }
.fl-heard { margin-top: 6px; color: var(--ink-2); font-size: 12.5px; }

@media (prefers-reduced-motion: no-preference) {
  .fl { animation: float 8s ease-in-out infinite alternate; }
  .fl-l2, .fl-fr2 { animation-duration: 9s; animation-delay: -3s; }
  .fl-l3, .fl-fl1 { animation-duration: 10s; animation-delay: -6s; }
  .fl-r1, .fl-fr3 { animation-duration: 8.5s; animation-delay: -5s; }
  .fl-r2, .fl-fl3 { animation-duration: 11s; animation-delay: -2s; }
  .fl-r3, .fl-fl2 { animation-duration: 9.5s; animation-delay: -7s; }
  .fl-far { animation-duration: 12s; }
}
@keyframes float {
  from { translate: 0 -5px; }
  to { translate: 0 7px; }
}

/* ---------- Demo: second screen ---------- */

.section-demo { padding-top: 40px; }
.section-head-center { max-width: 820px; margin-right: auto; margin-left: auto; text-align: center; }

.demo {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(ellipse 60% 50% at 0% 0%, rgba(43, 179, 228, .10), transparent 70%),
    radial-gradient(ellipse 50% 50% at 100% 100%, rgba(33, 98, 216, .08), transparent 70%),
    var(--paper-2);
  box-shadow: 0 30px 60px -40px rgba(28, 30, 34, .35);
}

/* Scene cards exist only with JS; without it the salon scene is shown in full. */
.demo-bar { display: none; margin-bottom: 20px; }
.js .demo-bar { display: block; }

.scene-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.scene-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
  padding: 13px 14px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .6);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.scene-tab:hover { background: var(--surface); border-color: var(--line-2); }
.scene-tab[aria-selected="true"] {
  background: var(--surface);
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), 0 12px 28px -18px rgba(33, 98, 216, .6);
}
.st-head { display: flex; align-items: center; gap: 10px; margin-bottom: 3px; font-size: 16px; font-weight: 650; line-height: 1.25; }
.st-avatar { width: 30px; height: 30px; font-size: 13px; }
.st-line { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 13.5px; font-weight: 500; line-height: 1.35; }
.st-line img, .st-line .ic { width: 16px; height: 16px; flex: none; border-radius: 4px; }
.st-line .ic { color: var(--brand); }
.st-sys { color: var(--muted); font-size: 12.5px; line-height: 1.35; }

/* Time left before the next example starts by itself */
.st-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }
.st-progress::after {
  content: "";
  display: block;
  height: 100%;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
}
.scene-tab.is-timing .st-progress::after { animation: st-progress var(--dur, 12s) linear forwards; }
@keyframes st-progress { to { transform: scaleX(1); } }

/* All scenes share one grid cell, so the stage keeps the height of the tallest one. */
.demo-stage { display: grid; }
.scene { grid-area: 1 / 1; min-width: 0; }
.js .scene:not(.is-active) { visibility: hidden; }

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.demo-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 18px;
}
.replay .ic-stop, .replay[data-mode="stop"] .ic-replay { display: none; }
.replay[data-mode="stop"] .ic-stop { display: block; }
.replay .ic-stop { width: 14px; height: 14px; }

.chat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.chat-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: #f1e2d1;
  color: #7a4b2c;
  font-size: 15px;
  font-weight: 700;
}
.chat-avatar-clinic { background: #dcefe7; color: #22604a; }
.chat-avatar-shop { background: #e4e7ef; color: #3c475f; }
.chat-avatar-service { background: #dfeafa; color: #1d4c86; }
.chat-who { min-width: 0; }
.chat-name, .chat-status { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.chat-name { font-size: 15px; font-weight: 600; line-height: 1.25; }
.chat-status { color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.chat-channel {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  margin-left: auto;
  padding: 3px 9px 3px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.chat-channel img, .chat-channel .ic { width: 14px; height: 14px; border-radius: 3px; }
.chat-channel .ic { color: var(--brand); }

.chat-body { padding: 12px 16px 18px; background: #fbfaf7; }

.chat-day {
  margin: 0 auto 10px;
  width: fit-content;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 15px;
  line-height: 1.45;
}

.msg { position: relative; display: flex; flex-direction: column; max-width: 88%; }
.msg-in { align-self: flex-start; align-items: flex-start; }
.msg-out { align-self: flex-end; align-items: flex-end; }

.bubble { padding: 8px 12px; border-radius: 15px; }
.msg-in .bubble { background: var(--bubble-in); border-bottom-left-radius: 5px; }
.msg-out .bubble { background: var(--bubble-out); border-bottom-right-radius: 5px; }

.bubble-photo { padding: 4px; }
.bubble-photo p { padding: 4px 7px 2px; }
.photo { width: 152px; height: auto; border-radius: 10px; }

.bubble-voice { display: flex; align-items: center; gap: 9px; padding: 7px 12px 7px 7px; }
.voice-play {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink-2);
  color: #fff;
}
.voice-play .ic { width: 14px; height: 14px; margin-left: 2px; }
.wave { width: 112px; height: 20px; fill: #8a8378; }
.voice-time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }

.heard {
  display: flex;
  gap: 6px;
  margin-top: 5px;
  padding: 6px 9px;
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.4;
}
.heard .ic { width: 14px; height: 14px; margin-top: 2px; color: var(--brand); }
.heard b { color: var(--ink); }

.pay-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 7px;
  padding: 5px 11px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.pay-chip .ic { width: 15px; height: 15px; }

.typing {
  position: absolute;
  top: 0;
  right: 0;
  display: none;
  gap: 4px;
  padding: 11px 13px;
  border-radius: 14px;
  border-bottom-right-radius: 5px;
  background: var(--bubble-out);
}
.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  opacity: .35;
  animation: typing 1s infinite ease-in-out;
}
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing {
  0%, 60%, 100% { opacity: .3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}

.msg.is-typing .typing { display: flex; }
.msg.is-typing .bubble { background: transparent; }
.msg.is-typing .bubble > * { visibility: hidden; }

/* Actions column */

.actions { display: flex; flex-direction: column; gap: 10px; }
.actions-title {
  padding: 2px 2px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}
.act-list { display: flex; flex-direction: column; gap: 10px; }

.act {
  padding: 11px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(28, 30, 34, .04);
  font-size: 13.5px;
  line-height: 1.42;
}
.act-sys {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.act-logo { width: 18px; height: 18px; flex: none; border-radius: 4px; object-fit: contain; }
.act-kb {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 4px;
  background: var(--brand-tint);
  color: var(--brand);
}
.act-kb .ic { width: 13px; height: 13px; stroke-width: 2.1; }
.badge {
  margin-left: auto;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--ok-tint);
  color: var(--ok);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-wait { background: var(--wait-tint); color: var(--wait); }
.act-title { color: var(--ink); font-size: 14.5px; font-weight: 600; }
.act-meta { margin-top: 1px; color: var(--ink-2); }

.slots { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.slot {
  padding: 1px 8px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  color: var(--ink-2);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  transition: background-color .3s, color .3s, border-color .3s;
}
.slot.is-picked { background: var(--brand); border-color: var(--brand); color: #fff; }

.act-dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 8px;
  margin-top: 2px;
}
.act-dl dt { color: var(--muted); }
.act-dl dd { color: var(--ink); }

.act-result {
  display: flex;
  gap: 9px;
  padding: 11px 14px;
  border-radius: 14px;
  background: var(--ok-tint);
  color: #1d4a2e;
  font-size: 14px;
  line-height: 1.45;
}
.act-result .ic { width: 18px; height: 18px; margin-top: 1px; color: var(--ok); stroke-width: 2.3; }
.act-result b { color: var(--ok); }

.demo-note { color: var(--muted); font-size: 13px; line-height: 1.4; }

/* Step-by-step reveal. Only with JS and only when motion is allowed:
   without JS or with reduced motion the whole conversation is visible. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-demo] [data-step] { transition: opacity .4s ease, transform .4s ease; }
  .js [data-demo] [data-step]:not(.is-shown) { opacity: 0; transform: translateY(6px); }
}

@media (max-width: 980px) {
  .scene-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .demo { padding: 14px; border-radius: 22px; }
  .demo-bar { margin-bottom: 14px; }
  .demo-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .msg { max-width: 90%; }
  .chat-log { font-size: 14.5px; }
  .chat-body { padding: 10px 12px 14px; }
}
@media (max-width: 480px) {
  .scene-tabs { gap: 8px; }
  .scene-tab { gap: 3px; padding: 10px 11px 12px; border-radius: 14px; }
  .st-head { gap: 8px; font-size: 14.5px; }
  .st-avatar { display: none; }
  .st-line { font-size: 12.5px; }
  .st-sys { display: none; }
}

/* ---------- Sections ---------- */

.section { padding: 88px 0; }
.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head { max-width: 680px; margin-bottom: 40px; }
h2 {
  margin-bottom: 12px;
  font-size: clamp(26px, 1.4vw + 18px, 36px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.section-head p { color: var(--ink-2); font-size: 18px; }
h3 { font-size: 18px; font-weight: 650; line-height: 1.3; letter-spacing: -.005em; }

/* Features: bento. Wide cards carry a scene beside the text, narrow ones pin it to the bottom. */

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.feature {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.feature-wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(248px, .95fr);
  align-items: center;
  gap: 18px 22px;
}
.feature h3 { margin-bottom: 6px; }
.feature-copy p { color: var(--ink-2); font-size: 15.5px; }
.feature-scene {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding: 12px;
  border-radius: 14px;
  background: var(--paper);
  font-size: 13.5px;
}
.feature-wide .feature-scene { margin-top: 0; }
.feature-chat .mini { max-width: 100%; font-size: 13.5px; }
.feature-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.feature-meta img { width: 14px; height: 14px; border-radius: 3px; }
.feature-meta .badge { margin-left: auto; }
.feature-heard { color: var(--ink-2); font-size: 13px; }
.feature-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 13px;
  white-space: nowrap;
}
.feature-line b { color: var(--ink); font-variant-numeric: tabular-nums; }
.feature .slots { margin-top: 0; }
.feature-note { color: var(--ink-2); font-size: 13.5px; line-height: 1.4; }
.feature .act-title { font-size: 14.5px; }
.feature .fl-voice { max-width: 100%; }
.feature .fl-voice .wave { width: 72px; }

/* Message bubbles in small examples (playground, facts, integration previews) */

.mini { max-width: 88%; padding: 8px 12px; border-radius: 14px; }
.mini-in { align-self: flex-start; background: var(--bubble-in); border-bottom-left-radius: 5px; }
.mini-out { align-self: flex-end; background: var(--bubble-out); border-bottom-right-radius: 5px; }

/* Facts: answers come from the knowledge base; radio toggle + :has(), no JS */

.section-tint {
  background:
    radial-gradient(ellipse 50% 60% at 100% 0%, rgba(43, 179, 228, .12), transparent 70%),
    linear-gradient(180deg, #eaf0fb, #f1f4fa);
  border-top: 1px solid #dde5f3;
  border-bottom: 1px solid #dde5f3;
}
.facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.facts .section-head { margin-bottom: 28px; }
.facts-points { display: flex; flex-direction: column; gap: 18px; }
.facts-points li { display: flex; gap: 14px; color: var(--ink-2); font-size: 16px; }
.facts-points b { display: block; color: var(--ink); font-size: 17px; }
.facts-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 11px;
  background: var(--surface);
  color: var(--brand);
  box-shadow: 0 1px 2px rgba(28, 30, 34, .06);
}
.facts-icon .ic { width: 20px; height: 20px; }

.facts-demo {
  padding: 24px;
  border: 1px solid #dde5f3;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 30px 60px -40px rgba(33, 98, 216, .45);
}
.facts-demo .facts-seg { display: flex; margin-bottom: 20px; background: var(--paper); }
.facts-seg label { flex: 1 1 0; }
.facts-seg span { text-align: center; }

/* both states share one cell, so switching does not move the page */
.fx-states { display: grid; }
.fx { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.45; }
.fx-no { visibility: hidden; }
.facts-demo:has(#fx-no:checked) .fx-yes { visibility: hidden; }
.facts-demo:has(#fx-no:checked) .fx-no { visibility: visible; }
@media (prefers-reduced-motion: no-preference) {
  .facts-demo:has(#fx-no:checked) .fx-no > *,
  .facts-demo:has(#fx-yes:checked) .fx-yes > * { animation: panel-in .35s ease-out backwards; }
  .fx > :nth-child(2) { animation-delay: .08s !important; }
  .fx > :nth-child(3) { animation-delay: .16s !important; }
  .fx > :nth-child(4) { animation-delay: .24s !important; }
  .fx > :nth-child(5) { animation-delay: .32s !important; }
}

.fx .mini { max-width: 86%; }
.fx-kb, .fx-notify {
  align-self: center;
  width: min(100%, 340px);
  padding: 10px 14px 12px;
  border: 1px dashed var(--line-2);
  border-radius: 14px;
  background: var(--paper);
  font-size: 14px;
}
.fx-kb .act-sys { margin-bottom: 6px; }
.fx-line { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border-top: 1px solid var(--line); }
.fx-line b { color: var(--ink); font-variant-numeric: tabular-nums; }
.fx-kb-empty { padding-bottom: 10px; }
.fx-kb-empty .act-sys { margin-bottom: 0; }
.fx-notify { border-style: solid; border-color: #cfe3f7; background: #eef6fd; color: var(--ink-2); }
.fx-verdict { display: flex; align-items: center; gap: 7px; align-self: center; margin-top: 4px; font-size: 13.5px; font-weight: 600; }
.fx-verdict .ic { width: 17px; height: 17px; stroke-width: 2.3; }
.fx-ok { color: var(--ok); }
.fx-bad { display: block; color: var(--muted); font-weight: 500; text-align: center; }
.fx-bad s { color: #9b3b32; text-decoration-thickness: 1.5px; white-space: nowrap; }
.fx-note { margin-top: 14px; color: var(--muted); font-size: 12.5px; text-align: center; }

@media (max-width: 960px) {
  .facts { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 480px) {
  .facts-demo { padding: 16px; border-radius: 20px; }
  .facts-seg span { padding: 6px 8px; font-size: 14px; white-space: normal; }
  .fx .mini { max-width: 92%; }
}

/* Steps */

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.step { display: flex; flex-direction: column; }
.step-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.step h3 { margin-bottom: 6px; }
.step-text { color: var(--ink-2); font-size: 16px; }
.step-key .step-num { background: var(--brand); box-shadow: 0 0 0 5px var(--brand-tint); }
.step-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: 14px;
  padding: 4px 11px 4px 8px;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand-ink);
  font-size: 13.5px;
  font-weight: 600;
}
.step-tag .ic { width: 16px; height: 16px; }

.step-visual {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  font-size: 14.5px;
  line-height: 1.5;
}
.note-label { margin-bottom: 8px; color: var(--muted); font-size: 12.5px; font-weight: 600; }

.files { display: flex; flex-direction: column; gap: 8px; }
.files li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.files .ic { color: var(--brand); }

.toggles { display: flex; flex-direction: column; gap: 8px; }
.toggles li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-weight: 500;
}
.toggle-name { display: flex; align-items: center; gap: 10px; }
.toggle-name img { width: 20px; height: 20px; border-radius: 5px; object-fit: contain; }
.toggles .on {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--ok-tint);
  color: var(--ok);
  font-size: 12.5px;
  font-weight: 600;
}

/* Instruction playground: radio inputs + :has(), no JS needed */

.playground {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 32px;
  margin-top: 48px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.pg-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.pg-fields { display: flex; flex-wrap: wrap; gap: 14px 20px; }
.pg-side .note {
  padding: 16px;
  border: 1px dashed var(--line-2);
  border-radius: 14px;
  background: var(--paper);
  font-size: 15px;
  line-height: 1.55;
}
.pg-field legend { margin-bottom: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }

.seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.seg label { position: relative; }
.seg input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.seg span {
  display: block;
  padding: 6px 14px;
  border-radius: 9px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.seg label:hover span { color: var(--ink); }
.seg input:checked + span { background: var(--brand); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

.pg-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* Test chat window, drawn after the one in the cabinet */
.tc { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fbfaf7; }
.tc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.tc-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--brand-tint); color: var(--brand); }
.tc-icon .ic { width: 18px; height: 18px; }
.tc-who { min-width: 0; }
.tc-title { font-size: 15px; font-weight: 600; line-height: 1.25; }
.tc-sub { color: var(--muted); font-size: 12.5px; }
.tc-restart {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 4px 11px 4px 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--brand-ink);
  font-size: 13px;
  font-weight: 600;
}
.tc-restart .ic { width: 14px; height: 14px; }
.pg-chat { display: flex; flex-direction: column; gap: 9px; padding: 14px 14px 16px; font-size: 15px; line-height: 1.45; }
.tc-tool {
  display: flex;
  align-items: center;
  gap: 6px;
  align-self: center;
  max-width: 100%;
  padding: 3px 11px 3px 6px;
  border-radius: 12px; /* still neat when the line wraps on a phone */
  background: var(--paper-2);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}
.tc-tool img { width: 14px; height: 14px; flex: none; border-radius: 3px; }
.tc-input {
  margin: 0 12px 12px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}

/* What testing gives */
.test-perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.test-perks li { display: flex; flex-direction: column; gap: 4px; color: var(--ink-2); font-size: 15px; }
.test-perks b { color: var(--ink); font-size: 16.5px; }
.tp-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 8px; border-radius: 11px; background: var(--surface); color: var(--brand); box-shadow: 0 1px 2px rgba(28, 30, 34, .06); }
.tp-icon .ic { width: 20px; height: 20px; }
.test-note { max-width: 760px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.pg-caption { color: var(--muted); font-size: 13px; }

.v-ty, .v-disc, .v-long { display: none; }
.playground:has(#pg-ty:checked) .v-ty,
.playground:has(#pg-disc:checked) .v-disc,
.playground:has(#pg-long:checked) .v-long { display: inline; }
.playground:has(#pg-ty:checked) .v-vy,
.playground:has(#pg-disc:checked) .v-nodisc,
.playground:has(#pg-long:checked) .v-short { display: none; }

@media (prefers-reduced-motion: no-preference) {
  /* a variant that has just appeared lights up briefly */
  .playground .v {
    border-radius: 4px;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    animation: v-flash 1.3s ease-out;
  }
}
@keyframes v-flash {
  0%, 20% { background-color: rgba(110, 220, 255, .45); }
  100% { background-color: transparent; }
}

/* Cases */

.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.role {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
}
.role-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.role-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 13px;
  background: var(--brand);
  color: #fff;
}
.role-icon .ic { width: 23px; height: 23px; }
.role h3 { font-size: 20px; }
.role-who { color: var(--muted); font-size: 14.5px; }
.role-tasks { display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; color: var(--ink-2); font-size: 16px; }
.role-tasks li { display: flex; gap: 10px; }
.role-tasks .ic { width: 18px; height: 18px; margin-top: 3px; color: var(--ok); stroke-width: 2.2; }
.role-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.role-sys { display: flex; flex-wrap: wrap; gap: 6px; }
.role-sys li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.role-sys img { width: 16px; height: 16px; border-radius: 4px; object-fit: contain; }
.role-sys-icon { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; background: var(--brand-tint); color: var(--brand); }
.role-sys-icon .ic { width: 11px; height: 11px; stroke-width: 2.2; }

/* Channels */

.channels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.channel {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.channel-logo { width: 32px; height: 32px; margin-bottom: 12px; border-radius: 8px; }
.channel-logo-plain { display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); }
.channel-logo-plain .ic { width: 19px; height: 19px; }
.channel-name { font-size: 18px; font-weight: 650; }
.channel-desc { color: var(--muted); font-size: 14.5px; }
.fn-ref { color: inherit; text-decoration: none; }

.inbox {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--brand-tint);
  color: var(--ink);
  font-size: 16px;
}
.inbox .ic { width: 24px; height: 24px; color: var(--brand); }

/* Integrations explorer: tabs with previews; without JS all previews are listed */

.int-explorer {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.int-tabs { display: flex; flex-direction: column; gap: 4px; }
.int-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.int-tab:hover { background: rgba(255, 255, 255, .7); }
.int-tab[aria-selected="true"] { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.int-tab img, .int-tab-icon { width: 36px; height: 36px; flex: none; border-radius: 9px; object-fit: contain; }
.int-tab-icon { display: grid; place-items: center; background: #455a64; color: #fff; }
.int-tab-icon .ic { width: 20px; height: 20px; }
.int-tab-text { min-width: 0; }
.int-tab-name { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; }
.int-tab-desc { display: block; color: var(--muted); font-size: 14px; line-height: 1.35; }

.int-panels { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.int-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: start;
  min-height: 320px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.js .int-panel:not(.is-active) { display: none; }
.int-group {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
}
.int-copy h3 { margin-bottom: 8px; font-size: 21px; }
.int-copy > p:not(.int-group):not(.int-partners) { color: var(--ink-2); font-size: 16px; }
.int-partners { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.int-partners span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 500;
}
.int-partners img { width: 20px; height: 20px; border-radius: 5px; object-fit: contain; }

@media (prefers-reduced-motion: no-preference) {
  .js .int-panel.is-active { animation: panel-in .3s ease-out; }
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Mock screens inside integration previews */

.mock {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  font-size: 14px;
  line-height: 1.45;
}
.mock-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}
.mock-head img { width: 18px; height: 18px; border-radius: 4px; object-fit: contain; }
.mock-title { margin-bottom: 8px; font-size: 16px; font-weight: 650; }
.mock-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; }
.mock-dl dt { color: var(--muted); }
.mock-note {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13.5px;
}
.mock-note-label { margin-bottom: 4px; color: var(--muted); font-size: 12px; font-weight: 600; }

.journal li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 5px 0;
  border-top: 1px dashed var(--line-2);
}
.journal li:first-child { border-top: 0; }
.j-time { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.j-slot { padding: 6px 10px; border-radius: 8px; font-size: 13.5px; }
.j-slot.is-free { border: 1px dashed var(--line-2); color: var(--muted); }
.j-slot.is-busy { background: var(--paper-2); color: var(--ink-2); }
.j-slot.is-new { background: var(--brand-tint); box-shadow: inset 3px 0 0 var(--brand); color: var(--ink); }
.j-slot b {
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--ok-tint);
  color: var(--ok);
  font-size: 11px;
}

.cal { display: grid; grid-template-columns: 46px minmax(0, 1fr); margin-top: 16px; }
.cal-hour { color: var(--muted); font-size: 12px; line-height: 1; font-variant-numeric: tabular-nums; transform: translateY(-6px); }
.cal-line { min-height: 40px; padding: 4px 0; border-top: 1px solid var(--line); }
.cal-busy, .cal-event { display: block; padding: 5px 9px; border-radius: 6px; font-size: 12.5px; line-height: 1.35; }
.cal-busy { background: var(--paper-2); color: var(--muted); }
.cal-event { background: #e3ecfd; box-shadow: inset 3px 0 0 #1a73e8; color: var(--ink-2); }
.cal-event b { display: block; color: var(--ink); }

.mock-chat { display: flex; flex-direction: column; gap: 8px; }
.mock-chat .mini { max-width: 92%; font-size: 14px; }
.mock-chat .pay-chip { margin-top: 8px; }
.mock-event {
  display: flex;
  align-items: center;
  gap: 6px;
  align-self: center;
  padding: 3px 10px 3px 5px;
  border-radius: 999px;
  background: var(--ok-tint);
  color: var(--ok);
  font-size: 12.5px;
  font-weight: 600;
}
.mock-event img { width: 14px; height: 14px; border-radius: 3px; }

.mock-code pre {
  overflow-x: auto;
  color: var(--ink);
  font: 12.5px/1.6 var(--mono);
  white-space: pre;
}

/* Price: three tariffs. The middle one is the usual start, so its prices line up with the others. */

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  padding-top: 14px;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.plan-pick {
  border-color: #c5d4f3;
  box-shadow: 0 16px 36px -24px rgba(33, 98, 216, .55);
}
.plan-flag {
  position: absolute;
  top: 0;
  left: 22px;
  transform: translateY(-50%);
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.plan h3 { margin-bottom: 4px; font-size: 22px; }
.plan-for { min-height: 2.7em; margin-bottom: 12px; color: var(--muted); font-size: 14.5px; }
.plan-price { display: flex; flex-direction: column; gap: 2px; margin: 0 0 16px; }
.plan-price b {
  color: var(--ink);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.plan-price span { color: var(--muted); font-size: 14.5px; }
.plan-note {
  max-width: 640px;
  margin: 18px auto 0;
  color: var(--ink-2);
  font-size: 15px;
  text-align: center;
}
.plan-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.plan-list li { display: flex; gap: 8px; color: var(--ink-2); font-size: 15px; }
.plan-list .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--ok); stroke-width: 2.2; }
.plan-list .is-off { color: var(--muted); }
.plan-list .is-off .ic { color: var(--line-2); }
.plan .btn { width: 100%; margin-top: auto; }

/* FAQ: one column of objection cards, so an open answer does not break the row. */

.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 880px;
  margin-inline: auto;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  padding: 2px 22px;
}
.faq details[open] {
  background: var(--surface);
  border-color: #c5d4f3;
  box-shadow: 0 16px 36px -24px rgba(33, 98, 216, .55);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -.011em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker,
.faq summary::marker { display: none; content: ""; }
.faq summary .ic {
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .2s, background-color .2s, color .2s;
}
.faq details[open] summary .ic {
  background: var(--brand);
  color: #fff;
  box-shadow: none;
  transform: rotate(45deg);
}
.faq details p {
  max-width: 68ch;
  margin-top: -2px;
  padding: 0 48px 18px 0;
  color: var(--ink-2);
  font-size: 16px;
}
@media (hover: hover) {
  .faq details:not([open]):hover { border-color: var(--line-2); }
}

/* Offer */

.offer {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  padding: 48px;
  border-radius: 24px;
  background: var(--brand);
  color: #fff;
}
.offer-spark { width: 26px; height: 26px; margin-bottom: 16px; color: var(--spark-light); }
.offer h2 { margin-bottom: 14px; }
.offer-main p { max-width: 30em; margin-bottom: 26px; color: rgba(255, 255, 255, .9); font-size: 18px; }
.offer-side {
  align-self: center;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 16px;
}
.offer-side-title { margin-bottom: 12px; font-weight: 600; }
.checks { display: flex; flex-direction: column; gap: 10px; color: rgba(255, 255, 255, .92); font-size: 16px; }
.checks li { display: flex; gap: 10px; }
.checks .ic { width: 18px; height: 18px; margin-top: 3px; color: var(--spark-light); stroke-width: 2.2; }

/* Footer */

.site-footer {
  padding: 36px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 20px 32px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; }
.footer-brand b {
  color: var(--ink);
  font-weight: 750;
  letter-spacing: .02em;
  line-height: 1;
  font-variant-numeric: lining-nums;
}
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 18px; }
.footer-nav a { color: var(--ink-2); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; }
.footnote { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }
.footnote-brands { margin-top: -14px; padding-top: 0; border-top: 0; }

/* ---------- Legal pages (privacy/) ---------- */

/* The legal header has no section menu, so the buttons stay visible on phones. */
.legal-header .header-actions { margin-left: auto; }

.legal { padding: 56px 0 88px; }
.legal-inner { max-width: 760px; }
.legal h1 {
  max-width: none;
  margin: 0 0 12px;
  font-size: clamp(32px, 2vw + 22px, 46px);
  line-height: 1.1;
}
.legal-meta { margin-bottom: 32px; color: var(--muted); font-size: 15px; }
.legal h2 { margin: 48px 0 14px; font-size: clamp(22px, .8vw + 17px, 28px); }
.legal h3 { margin: 24px 0 8px; }
.legal p, .legal ul { color: var(--ink-2); }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 12px; }
.legal ul { padding-left: 22px; list-style: disc; }
.legal li + li { margin-top: 6px; }
.legal b { color: var(--ink); font-weight: 650; }
.legal-fn { text-decoration: none; }

.legal-toc {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.legal-toc ol { padding-left: 22px; list-style: decimal; columns: 2; column-gap: 40px; }
.legal-toc li { break-inside: avoid; padding: 3px 0; }
.legal-toc li:last-child { list-style: none; }

.legal-table-wrap { margin-top: 16px; overflow-x: auto; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 15.5px;
}
.legal-table th, .legal-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table th { color: var(--ink); font-weight: 650; background: var(--paper-2); }
.legal-table td { color: var(--ink-2); }
.legal-table td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }

.legal-en { margin-top: 56px; padding-top: 8px; border-top: 1px solid var(--line); }

/* Values the owner must fill in before the page goes live. */
.todo { padding: 0 4px; border-radius: 4px; background: var(--wait-tint); color: var(--wait); }

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
  .steps, .test-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .int-explorer { grid-template-columns: 250px minmax(0, 1fr); }
  .int-panel { grid-template-columns: minmax(0, 1fr); gap: 20px; min-height: 0; }
}

@media (max-width: 860px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 28px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps { gap: 32px; }
  .playground { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 40px; padding: 22px; }
  .int-explorer { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .int-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .int-tab { flex-direction: column; gap: 6px; padding: 10px 6px; border-color: var(--line); background: var(--surface); text-align: center; }
  .int-tab[aria-selected="true"] { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
  .int-tab-name { font-size: 14px; }
  .int-tab-desc { display: none; }
  .int-tab img, .int-tab-icon { width: 30px; height: 30px; }
  .offer { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 32px; }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin-inline: auto; }
  .plan-pick { order: -1; }
  .plan-for { min-height: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .hero { min-height: 0; padding: 36px 0 48px; }
  .eyebrow { margin-bottom: 20px; padding: 6px 12px 6px 10px; font-size: 13.5px; }
  .hero-logos { margin-top: 36px; }
  .hl-row { flex-direction: column; gap: 8px; }
  .hl-label { min-width: 0; text-align: center; }
  .hl-list li { font-size: 13.5px; }
  .lead, .section-head p, .offer-main p { font-size: 17px; }
  .section-demo { padding-top: 24px; }
  .cta-row .btn { flex: 1 1 100%; }
  .features { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .feature { padding: 16px; border-radius: 16px; }
  .feature-wide { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
  .roles { grid-template-columns: minmax(0, 1fr); }
  .role { padding: 18px; border-radius: 16px; }
  .role h3 { font-size: 18px; }
  .role-tasks { font-size: 15.5px; }
  .channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel:last-child { grid-column: 1 / -1; }
  .channel { padding: 14px; }
  .channel-logo { margin-bottom: 8px; }
  .channel-name { font-size: 17px; }
  .channel-desc { font-size: 14px; }
  .int-panel { padding: 18px; border-radius: 16px; }
  .pg-side .note { font-size: 14.5px; }
  .test-perks { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .offer { padding: 26px 20px; border-radius: 20px; }
  .offer .btn { width: 100%; }
  .offer-side { padding: 18px; }
  .faq summary { font-size: 16.5px; }
  .faq details { padding: 2px 16px; }
  .faq details p { padding-right: 0; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { justify-content: flex-start; }
  .legal { padding: 32px 0 64px; }
  .legal-toc { padding: 16px 18px; }
  .legal-toc ol { columns: 1; }
  .legal-table td:first-child { white-space: normal; }
}

@media (max-width: 480px) {
  .legal-header .header-actions { display: flex; }
  .legal-header .header-actions .btn-primary { display: none; }
}

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