/* Marketlytics offer page
   Palette: white + dark blue. Ink/CTA #0a2c4d family on near-white; navy bands; light-blue tints only.
   Shape system: buttons/chips pill, panels 16px, inputs 10px
   Z scale: nav 40, launcher 50, assistant panel 60 */

@font-face {
  font-family: 'Satoshi';
  src: url('fonts/satoshi-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('fonts/satoshi-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('fonts/satoshi-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('fonts/satoshi-900.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}

:root {
  --bg: #fbfcfd;
  --bg-tint: #eef3f8;
  --ink: #0a2c4d;
  --ink-hover: #113e6b;
  --ink-soft: #42607d;
  --ink-faint: #b6c9da;
  --navy: #0a2c4d;
  --navy-deep: #071e35;
  --navy-ink: #eef4fa;
  --navy-soft: #a9c0d6;
  --blue-tint: #cfe0ef;
  --line: #dbe4ec;
  --line-navy: #1d4670;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --r-panel: 16px;
  --r-input: 10px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
img { display: block; }

.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Type ---------- */

h1, h2, h3 { margin: 0; text-wrap: balance; }

h1 {
  font-size: clamp(2.4rem, 5.6vw, 3.9rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

p { margin: 0; }

.lede {
  margin-top: 1.1rem;
  max-width: 62ch;
  font-size: 1.125rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--ink);
  color: #ffffff;
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--ink-hover); }
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover { background: rgba(10, 44, 77, 0.06); }
}

.btn-inverse {
  background: #ffffff;
  color: var(--ink);
}
@media (hover: hover) and (pointer: fine) {
  .btn-inverse:hover { background: var(--blue-tint); }
}

.btn-lg { padding: 1rem 2.1rem; font-size: 1.08rem; }

:focus-visible {
  outline: 2.5px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible, .chat-chips button:focus-visible, .assistant-launcher:focus-visible { border-radius: 999px; }
.case :focus-visible, .footer :focus-visible, .assistant-panel-head :focus-visible { outline-color: #ffffff; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.nav.is-stuck { border-bottom-color: var(--line); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 70px;
}

.brand {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.brand-dot { color: #3b82c4; }

.nav-links {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.975rem;
  transition: color 150ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--ink); }
}

.btn-nav { padding: 0.65rem 1.25rem; font-size: 0.95rem; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
}

@media (max-width: 420px) {
  .brand { font-size: 1.15rem; }
  .btn-nav { padding: 0.55rem 0.9rem; font-size: 0.85rem; }
  .nav-inner { height: 62px; gap: 0.75rem; }
}

/* ---------- Hero ---------- */

.hero { padding: clamp(3.5rem, 9vh, 6.5rem) 0 0; }

.hero h1 { max-width: 21ch; }

.hero-sub {
  margin-top: 1.4rem;
  max-width: 46ch;
  font-size: clamp(1.15rem, 2vw, 1.3rem);
  color: var(--ink-soft);
  text-wrap: pretty;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

/* ---------- Flow diagram ---------- */

.flow {
  margin: clamp(3.5rem, 8vh, 5.5rem) 0 0;
  padding-bottom: clamp(3rem, 7vh, 5rem);
}

.flow-track {
  position: relative;
  height: 10px;
  margin-inline: 4px;
}

.flow-line {
  position: absolute;
  inset: 4px 0 auto 0;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
}

.flow-node {
  position: absolute;
  left: var(--x);
  top: 0;
  transform: translateX(-50%);
}
.flow-node i {
  display: block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--ink);
}
.flow-node-end i { background: var(--ink); border-color: var(--ink); }
.flow-node em {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-style: normal;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--ink);
  white-space: nowrap;
  text-align: center;
}
.flow-node em small {
  display: block;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.flow-node:nth-child(2) em { left: 0; transform: none; text-align: left; }
.flow-node-end em { left: auto; right: 0; transform: none; text-align: right; }

.dot {
  position: absolute;
  top: 1px;
  left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0;
}

html.js .dot { animation: flow-run 7.8s linear infinite; animation-delay: var(--d); }
html.js .dot-b { background: var(--ink-faint); animation-name: flow-drop; }

/* --w (track width in px) is set from JS on .flow-track */
@keyframes flow-run {
  0%   { transform: translateX(0); opacity: 0; }
  4%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { transform: translateX(var(--w, 600px)); opacity: 0; }
}

@keyframes flow-drop {
  0%   { transform: translate(0, 0); opacity: 0; }
  4%   { opacity: 1; }
  33%  { transform: translate(calc(var(--w, 600px) * 0.34), 0); opacity: 1; }
  44%  { transform: translate(calc(var(--w, 600px) * 0.375), 28px); opacity: 0; }
  100% { transform: translate(calc(var(--w, 600px) * 0.375), 28px); opacity: 0; }
}

/* static dots when no JS: the diagram still reads via nodes and labels */
html:not(.js) .dot-a[style*="--d:0s"] { opacity: 1; left: 50%; }
html:not(.js) .dot-a[style*="--d:2.6s"] { opacity: 1; left: 84%; }
html:not(.js) .dot-b[style*="--d:1.3s"] { opacity: 0.7; left: 34%; top: 14px; }

@media (prefers-reduced-motion: reduce) {
  html.js .dot { animation: none; opacity: 0; }
  html.js .dot-a[style*="--d:0s"] { opacity: 1; left: 50%; }
  html.js .dot-a[style*="--d:2.6s"] { opacity: 1; left: 84%; }
  html.js .dot-b[style*="--d:1.3s"] { opacity: 0.7; left: 34%; top: 14px; }
}

@media (max-width: 640px) {
  .flow-node em { white-space: normal; width: max-content; max-width: 76px; font-size: 0.75rem; }
  .flow-node em small { display: none; }
  .flow { padding-bottom: 4.5rem; }
}

@media (max-width: 420px) {
  .flow { margin-top: 3rem; }
  .flow-track { margin-top: 2.6rem; }
  .flow-node-end em { top: auto; bottom: 22px; }
}

/* ---------- Section rhythm ---------- */

section { padding: clamp(4rem, 10vh, 6.5rem) 0; scroll-margin-top: 70px; }
.hero { padding-bottom: 0; }

/* ---------- Leaks ---------- */

.leaks { border-top: 1px solid var(--line); }

.leak-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-top: 3rem;
}

.leak-num {
  display: block;
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink-faint);
}

.leak h3 { margin-top: 0.9rem; font-size: 1.4rem; }
.leak p { margin-top: 0.8rem; color: var(--ink-soft); max-width: 44ch; }

.leak-bridge {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 56ch;
}

@media (max-width: 700px) {
  .leak-split { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ---------- Stat band ---------- */

.stat {
  border-block: 1px solid var(--line);
  background: var(--bg-tint);
}

.stat-line {
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  max-width: 30ch;
  text-wrap: balance;
}
.stat-line strong {
  font-weight: 900;
  background: linear-gradient(transparent 64%, var(--blue-tint) 64%);
}

.stat-cite {
  margin-top: 1.6rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ---------- System ---------- */

.system-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-top: 3.5rem;
}
.system-row-flip .system-copy { order: 2; }
.system-row-flip .system-visual { order: 1; }

.system-copy p { margin-top: 0.8rem; color: var(--ink-soft); max-width: 48ch; }

.channel-map {
  margin: 0;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: 0.55rem 1.5rem;
}
.channel-map > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1.05rem 0;
}
.channel-map > div + div { border-top: 1px solid var(--line); }
.channel-map dt { font-weight: 700; }
.channel-map dd { margin: 0; color: var(--ink-soft); text-align: right; }

.stack-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.stack-list li {
  padding: 0.85rem 0;
  font-weight: 700;
}
.stack-list li + li { border-top: 1px solid var(--line); }
.stack-list li span {
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-left: 0.5rem;
}

.guardrails {
  margin-top: 3.5rem;
  padding: 1.8rem 2rem;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
}
.guardrails h3 { font-size: 1.1rem; }
.guardrails ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 0;
  padding: 0;
}
.guardrails li {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}

@media (max-width: 760px) {
  .system-row { grid-template-columns: 1fr; gap: 1.75rem; align-items: start; }
  .system-row-flip .system-copy { order: 1; }
  .system-row-flip .system-visual { order: 2; }
}

/* ---------- Case study (navy band) ---------- */

.case {
  background: var(--navy);
  color: var(--navy-ink);
}
.case .lede { color: var(--navy-soft); }

.ledger {
  margin: 3rem 0 0;
  border-top: 1px solid var(--line-navy);
}
.ledger > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line-navy);
}
.ledger dt {
  font-size: 1.02rem;
  color: var(--navy-soft);
  font-weight: 500;
}
.ledger dd {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.case-notes {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.case-notes p { color: var(--navy-soft); max-width: 52ch; }
.case-notes p:first-child { color: var(--navy-ink); }

.case-cta {
  margin-top: 2.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}
.case-cta span {
  color: var(--navy-soft);
  font-size: 0.98rem;
  max-width: 34ch;
}

@media (max-width: 700px) {
  .case-notes { grid-template-columns: 1fr; }
}

/* ---------- Why / is-isn't ---------- */

.isnt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-top: 3rem;
}

.isnt-col h3 {
  padding-bottom: 0.9rem;
  border-bottom: 2.5px solid var(--ink);
  font-size: 1.1rem;
}
.isnt-col-not h3 { border-bottom-color: var(--ink-faint); color: var(--ink-soft); }

.isnt-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.isnt-col li {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.isnt-col-not li { color: var(--ink-soft); }

@media (max-width: 700px) {
  .isnt { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ---------- Agent / chat ---------- */

.agent { border-top: 1px solid var(--line); }

.chat-home { margin-top: 2.75rem; max-width: 720px; }

.chat {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  overflow: hidden;
  box-shadow: 0 18px 44px -28px rgba(10, 44, 77, 0.28);
}

.chat-placeholder {
  padding: 1.6rem 1.8rem;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  color: var(--ink-soft);
  font-weight: 500;
}

.chat-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
  padding: 1.05rem 1.4rem;
  border-bottom: 1px solid var(--line);
}
.chat-head strong { font-weight: 700; font-size: 1rem; }
.chat-head span { font-size: 0.82rem; color: var(--ink-soft); }

.chat-log {
  padding: 1.4rem;
  min-height: 240px;
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Without JS the assistant cannot run: hide its shell, show the notice */
html:not(.js) .chat-log,
html:not(.js) .chat-chips,
html:not(.js) .chat-input { display: none; }
html:not(.js) .assistant-float,
html:not(.js) .assistant-panel { display: none; }
.chat-noscript {
  padding: 1.4rem;
  color: var(--ink-soft);
}
.chat-noscript a { color: var(--ink); font-weight: 700; }

.msg {
  max-width: 85%;
  padding: 0.8rem 1.05rem;
  border-radius: 12px;
  font-size: 0.98rem;
  line-height: 1.55;
}
html.js .msg {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
html.js .msg.is-in { opacity: 1; transform: translateY(0); }

.msg p + p { margin-top: 0.6rem; }

.msg-bot {
  align-self: flex-start;
  background: var(--bg-tint);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.msg-user {
  align-self: flex-end;
  background: var(--ink);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.typing {
  display: inline-flex;
  gap: 5px;
  padding: 0.95rem 1.05rem;
}
.typing i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink-soft);
  opacity: 0.4;
}
html.js .typing i { animation: typing-bounce 1s ease-in-out infinite; }
html.js .typing i:nth-child(2) { animation-delay: 0.15s; }
html.js .typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1.4rem 1.1rem;
}
.chat-chips button {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, transform 160ms var(--ease-out);
}
.chat-chips button:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) {
  .chat-chips button:hover { border-color: var(--ink); }
}

.chat-input {
  display: flex;
  gap: 0.6rem;
  padding: 1.05rem 1.4rem;
  border-top: 1px solid var(--line);
}
.chat-input input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  padding: 0.7rem 0.95rem;
}
.chat-input input::placeholder { color: var(--ink-soft); opacity: 1; }
.chat-input input:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 1px; }
.chat-input .btn { padding: 0.7rem 1.35rem; }

@media (max-width: 640px) {
  .chat-log { max-height: 340px; }
  .msg { max-width: 92%; }
}

/* ---------- Floating assistant ---------- */

.assistant-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}
.assistant-float.is-hidden { display: none; }

.assistant-launcher {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  box-shadow: 0 14px 34px -12px rgba(7, 30, 53, 0.5);
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.assistant-launcher:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .assistant-launcher:hover { background: var(--ink-hover); }
}
html.js .assistant-launcher {
  animation: launcher-in 500ms var(--ease-out) 1s both;
}
@keyframes launcher-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.assistant-nudge {
  position: relative;
  max-width: 250px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 2.1rem 0.9rem 1.05rem;
  box-shadow: 0 14px 34px -16px rgba(7, 30, 53, 0.35);
}
.assistant-nudge p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink);
}
html.js .assistant-nudge:not([hidden]) {
  animation: launcher-in 400ms var(--ease-out) both;
}
.nudge-close {
  position: absolute;
  top: 0.35rem;
  right: 0.45rem;
  border: 0;
  background: none;
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0.25rem;
}

.assistant-panel {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 60;
  width: min(400px, calc(100vw - 2rem));
  max-height: min(640px, calc(100dvh - 5rem));
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  overflow: hidden;
  box-shadow: 0 30px 70px -24px rgba(7, 30, 53, 0.5);
  transform-origin: bottom right;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.assistant-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.assistant-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.3rem;
  background: var(--navy);
  color: var(--navy-ink);
}
.assistant-panel-head strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
}
.assistant-panel-head span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: var(--navy-soft);
}
.assistant-close {
  border: 0;
  background: none;
  color: var(--navy-ink);
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.3rem;
}

.assistant-panel-slot {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.assistant-panel-slot .chat {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.assistant-panel-slot .chat-head { display: none; }
.assistant-panel-slot .chat-log {
  flex: 1;
  min-height: 200px;
  max-height: none;
}
.assistant-panel-slot .chat-chips { padding-bottom: 0.85rem; }

@media (max-width: 480px) {
  .assistant-panel {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 0.75rem;
    width: auto;
    max-height: calc(100dvh - 4.5rem);
  }
  .assistant-launcher { font-size: 0.9rem; padding: 0.8rem 1.15rem; }
}

/* ---------- Booking ---------- */

.book { border-top: 1px solid var(--line); }

.book-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.expect {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}
.expect li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  font-size: 1.08rem;
}
.expect li:first-child { border-top: 1px solid var(--line); }

.book-phone { margin-top: 1.6rem; color: var(--ink-soft); }
.book-phone a { color: var(--ink); font-weight: 700; text-decoration-color: #3b82c4; text-decoration-thickness: 2px; text-underline-offset: 3px; }

.book-slot {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 18px 44px -28px rgba(10, 44, 77, 0.28);
}

.book-fallback {
  padding: 2.5rem;
  text-align: center;
  max-width: 34ch;
}
.book-fallback-title { font-size: 1.3rem; font-weight: 900; letter-spacing: -0.02em; }
.book-fallback p + p { margin-top: 0.7rem; color: var(--ink-soft); font-size: 0.98rem; }
.book-fallback .btn { margin-top: 1.6rem; }

.book-slot .calendly-inline-widget { width: 100%; min-height: 640px; }

@media (max-width: 820px) {
  .book-grid { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */

.faq { padding-top: 0; padding-bottom: clamp(2.5rem, 6vh, 4rem); }

.faq-list { margin-top: 2.25rem; max-width: 760px; }

.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list details:first-child { border-top: 1px solid var(--line); }

.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font-weight: 700;
  font-size: 1.08rem;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: transform 200ms var(--ease-out);
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq-list details p {
  padding: 0 0 1.3rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- Final CTA ---------- */

.close {
  border-top: 1px solid var(--line);
  text-align: center;
}
.close-inner { max-width: 760px; }
.close h2 { margin-inline: auto; max-width: 22ch; }

.close-ctas {
  margin-top: 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.close-ctas p { color: var(--ink-soft); }
.close-ctas p a { color: var(--ink); font-weight: 700; text-decoration-color: #3b82c4; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- Footer ---------- */

.footer {
  background: var(--navy-deep);
  color: var(--navy-ink);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.brand-footer { color: var(--navy-ink); font-size: 1.3rem; margin: 0; }
.footer-tag { margin-top: 0.4rem; color: var(--navy-soft); font-size: 0.95rem; }

.footer-contact {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.footer-contact a {
  color: var(--navy-ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
}
@media (hover: hover) and (pointer: fine) {
  .footer-contact a:hover { text-decoration: underline; text-decoration-color: var(--navy-soft); text-underline-offset: 3px; }
}
.footer-linkedin { display: inline-flex; border-radius: 4px; }

.footer-fine {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-navy);
}
.footer-fine p { font-size: 0.85rem; color: var(--navy-soft); max-width: 72ch; }

/* ---------- Scroll reveal ---------- */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 550ms var(--ease-out), transform 550ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
html.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html.js .msg { opacity: 1; transform: none; transition: none; }
  html.js .typing i { animation: none; }
  html.js .assistant-launcher { animation: none; }
  html.js .assistant-nudge:not([hidden]) { animation: none; }
  .assistant-panel { transition: none; opacity: 1; transform: none; }
  .btn, .chat-chips button { transition: none; }
  .btn:active, .chat-chips button:active { transform: none; }
}
