/* =========================================================
   getchrysalis — shared styles for every page
   Change a colour here and it changes across the whole site.
   ========================================================= */

/* ---------- Brand fonts (stored in the fonts folder, free to use under the
   SIL Open Font License; see the licence files in that folder) ---------- */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/fraunces-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/fraunces-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/fraunces-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 600; font-display: swap; src: url('fonts/fraunces-latin-600-italic.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/dm-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/dm-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/dm-sans-latin-700-normal.woff2') format('woff2'); }

:root {
  /* FINAL BRAND COLOURS */
  --blue: #556E97;        /* main colour. Text on vanilla */
  --green: #76A487;       /* accent: the "get", small details */
  --vanilla: #FFF7D6;     /* page background. Text on blue */
  --navy: #0C104A;        /* inside the butterfly only */

  /* Helpers made from the brand colours */
  --paper: #FFFCEE;                       /* cards on vanilla */
  --line: rgba(85, 110, 151, 0.18);       /* thin borders */
  --shadow: 0 1px 0 rgba(85, 110, 151, 0.06), 0 22px 44px -28px rgba(85, 110, 151, 0.55);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

body {
  margin: 0;
  background: var(--vanilla);
  color: var(--blue);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img, svg { display: block; }

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

/* Text only screen readers hear */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;              /* comfortable tap size on phones */
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-primary { background: var(--blue); color: var(--vanilla); }
.btn-primary:hover { background: #47608A; }

/* ---------- Logo (the butterfly is the dot on the i) ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--blue);
  white-space: nowrap;
}
.wordmark i { color: var(--green); }

.idot { position: relative; display: inline-block; }
.idot svg {
  position: absolute;
  width: 0.42em;
  height: auto;
  left: 50%;
  top: -0.12em;
  transform: translateX(-50%);
}

/* ---------- Header ---------- */
.site-header { padding: 12px 0; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* =========================================================
   PART 1: INTRO ANIMATION
   intro.js adds the class "on" to each piece in turn.
   ========================================================= */
.intro { padding: 0 0 32px; }

.stage {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 580px;
  display: flex;
  flex-direction: column;
}

/* Step captions */
.captions {
  position: relative;
  height: 24px;
  margin: 20px 0 24px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cap {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.cap b { color: var(--green); margin-right: 6px; }
.st-lead .cap-1, .st-ai .cap-2, .st-phone .cap-3 { opacity: 1; transform: none; }

/* Scene and end card share the same space */
.viewport {
  flex: 1;
  display: grid;
  align-items: center;
  justify-items: center;
}
.scene, .outro { grid-area: 1 / 1; }

.scene {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.st-outro .scene { opacity: 0; transform: scale(0.97); }

/* Every piece starts hidden and rises in */
.rv {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease), border-color 0.5s, box-shadow 0.5s;
}
.rv.on { opacity: 1; transform: none; }

/* Dotted lines with a travelling dot */
.link {
  flex: 1 1 40px;
  max-width: 96px;
  height: 2px;
  margin: 0 14px;
  position: relative;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
}
.pulse {
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  transform: translate(-50%, -50%);
  opacity: 0;
}
.link.on .pulse { animation: travel 1.1s var(--ease) forwards; }
@keyframes travel {
  0% { left: 0; opacity: 0; }
  20%, 80% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* --- Scene 1: CRM --- */
.crm {
  width: 296px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow);
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.lead-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.4;
}
.lead-card.hl { border-color: var(--green); box-shadow: 0 0 0 3px rgba(118, 164, 135, 0.22); }
.lead-info { display: flex; flex-direction: column; flex: 1; white-space: nowrap; }
.name-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.lead-info b { font-size: 14px; }
.tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--green);
  color: #FFFFFF;
  padding: 3px 7px;
  border-radius: 999px;
}

.avatar {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--vanilla);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
}
.avatar.small { width: 30px; height: 30px; background: var(--green); color: #FFFFFF; }

.ghost { height: 10px; border-radius: 6px; background: var(--line); margin-top: 12px; }
.ghost.short { width: 62%; }

/* --- Scene 2: AI --- */
.ai-col { width: 248px; display: flex; flex-direction: column; align-items: center; gap: 16px; }

.ai-core {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: var(--shadow);
}
.ai-core::after {               /* soft ring that breathes out */
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 2px solid var(--green);
  opacity: 0;
}
.ai-core.on::after { animation: ring 1.6s var(--ease) 0.2s 2; }
@keyframes ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.35); opacity: 0; }
}

.bfly { width: 62px; height: auto; overflow: visible; }
.bfly g { transform-box: view-box; transform-origin: 200px 200px; }
.ai-core.on .wing-l { animation: flapL 1.5s ease-in-out infinite; }
.ai-core.on .wing-r { animation: flapR 1.5s ease-in-out infinite; }
@keyframes flapL { 50% { transform: scaleX(0.72) skewY(3deg); } }
@keyframes flapR { 50% { transform: scaleX(0.72) skewY(-3deg); } }

.matches { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 6px; }
.match {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12.5px;
  white-space: nowrap;
}
.match b, .msg.list b { color: var(--green); }

/* --- Scene 3: phone --- */
.phone {
  width: 256px;
  padding: 9px;
  border-radius: 34px;
  background: var(--blue);
  box-shadow: var(--shadow);
}
.screen {
  height: 420px;
  border-radius: 26px;
  background: var(--paper);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.25;
}
.chat-head b { display: block; }
.chat-head small { font-size: 11px; opacity: 0.8; }

.chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 7px;
  padding: 12px;
  font-size: 12.5px;
  line-height: 1.4;
}
.msg { max-width: 88%; padding: 8px 11px; }
.msg.biz {
  align-self: flex-start;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px;
}
.msg.me {
  align-self: flex-end;
  background: rgba(118, 164, 135, 0.24);
  border-radius: 14px 14px 4px 14px;
}
.msg.list { display: flex; flex-direction: column; gap: 4px; }
.msg.list > span { display: flex; justify-content: space-between; gap: 10px; }
.m4 { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.tick { width: 16px; height: 16px; flex: none; color: var(--green); }

/* hidden messages take no space until they appear */
.chat .rv:not(.on) { display: none; }
.chat .rv.on { animation: pop 0.6s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }

.typing {
  display: none;
  align-self: flex-start;
  gap: 4px;
  padding: 10px 12px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px;
}
.typing.on { display: flex; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); opacity: 0.4; animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 30% { opacity: 1; transform: translateY(-3px); } }

/* --- Opening title --- */
.opener {
  grid-area: 1 / 1;
  margin: 0;
  max-width: 14ch;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  pointer-events: none;
}
.opener em { font-weight: 400; color: var(--green); }
.st-open .opener { opacity: 1; transform: none; }

/* --- End card --- */
.outro {
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  pointer-events: none;
}
.st-outro .outro { opacity: 1; transform: none; }
.wordmark.big { font-size: 46px; }
.outro p {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
}

/* ---------- Phones: one scene at a time, same spot ---------- */
@media (max-width: 759px) {
  .stage { min-height: 560px; }
  .scene { display: grid; justify-items: center; }
  .col { grid-area: 1 / 1; opacity: 0; transition: opacity 0.5s var(--ease); }
  .st-lead .lead-col, .st-ai .ai-col, .st-phone .phone-col { opacity: 1; }
  .link { display: none; }
}

/* ---------- Laptop and larger ---------- */
@media (min-width: 860px) {
  .site-header { padding: 22px 0; }
  .container, .stage { padding: 0 40px; }
  .wordmark { font-size: 26px; }
  .stage { min-height: min(640px, calc(100vh - 100px)); }
  .captions { font-size: 13px; margin: 8px 0 28px; }
  .wordmark.big { font-size: 72px; }
  .opener { font-size: 68px; }
  .scene { zoom: 1.12; }               /* a little larger on laptops */
  .outro p { font-size: 24px; }
}

/* People who turn off motion see the finished picture, no animation */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   SITE-WIDE: navigation, page layout, footer
   ========================================================= */
.site-header { position: relative; z-index: 30; }
.header-right { display: flex; align-items: center; gap: 8px; }

.nav-links {
  display: none;               /* phones: links live in the menu panel */
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: background 0.2s;
}
.nav-links a:hover { background: rgba(85, 110, 151, 0.08); }
.nav-links a[aria-current="page"] { color: var(--navy); text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 6px; }

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--blue);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-open { display: none; }
.nav-open .nav-toggle .i-close { display: block; }

.nav-panel {
  display: none;
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding: 8px 0 4px;
}
.nav-open .nav-panel { display: block; }
.nav-panel a {
  display: flex;
  align-items: center;
  min-height: 52px;
  font-size: 18px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.nav-panel a:last-child { border-bottom: 0; }

.header-cta { padding: 10px 18px; font-size: 14px; }

/* Keep the footer at the bottom on short pages */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { display: block; flex: 1 0 auto; }

.page { padding: 48px 0 88px; }
.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}
.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--blue);
  max-width: 19ch;
}
.page-title em { font-weight: 400; color: var(--green); }
.page-lead { margin: 18px 0 0; font-size: 17px; max-width: 560px; }

.btn-ghost { border: 1px solid rgba(85, 110, 151, 0.4); color: var(--blue); }
.btn-ghost:hover { border-color: var(--blue); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.site-footer { border-top: 1px solid var(--line); padding: 48px 0 28px; font-size: 14px; margin-top: auto; }
.footer-top { display: grid; gap: 32px; }
.footer-brand p { margin: 10px 0 0; font-family: var(--font-display); font-style: italic; font-size: 16px; }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.footer-h { margin: 0 0 8px; font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.footer-cols a { display: flex; align-items: center; min-height: 36px; text-decoration: none; }
.footer-cols a:hover { text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 4px; }
.footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-bottom span { opacity: 0.85; }
.legal-links { display: flex; gap: 18px; }
.legal-links a { text-decoration: none; }
.legal-links a:hover { text-decoration: underline; }

/* Fade-up when a section scrolls into view */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Home: pitch under the intro ---------- */
.pitch { padding: 16px 0 96px; text-align: center; }
.pitch p {
  margin: 0 auto;
  max-width: 30ch;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.25;
  color: var(--blue);
}
.pitch .btn-row { justify-content: center; }

/* =========================================================
   SOLUTIONS PAGE
   ========================================================= */
.solution { padding: 56px 0; border-top: 1px solid var(--line); }
.solution-inner { display: flex; flex-direction: column; gap: 36px; }
.solution h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 18ch;
}
.solution p { margin: 14px 0 0; max-width: 46ch; }
.ticks { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--green); }

/* Shared look for both animated demos */
.demo {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow);
  min-height: 360px;
  overflow: hidden;
  transition: opacity 0.6s var(--ease);
}
.demo.out { opacity: 0; }
.demo .st { opacity: 0; transform: translateY(8px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.demo .st.on { opacity: 1; transform: none; }
.demo-label { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); opacity: 0.8; }

/* --- Demo A: platforms --- */
.demo-a { display: grid; gap: 16px; }
.enq {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.35;
}
.enq b { display: block; font-size: 14px; }
.enq .dot { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: var(--vanilla); display: grid; place-items: center; font-weight: 700; font-size: 12px; }

.grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(85, 110, 151, 0.05);
  overflow: hidden;
}
.tile {
  height: 34px;
  border-radius: 7px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  position: relative;
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s var(--ease), opacity 0.4s;
}
.tile::after { content: ""; position: absolute; left: 6px; right: 40%; bottom: 7px; height: 4px; border-radius: 2px; background: var(--line); }
.grid.dim .tile { opacity: 0.45; }
.grid .tile.match {
  opacity: 1;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(118, 164, 135, 0.22);
  transform: translateY(-2px);
}
.tile.match::before {
  content: "";
  position: absolute;
  top: 5px; right: 5px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--green);
}
.scan {
  position: absolute;
  top: 0; bottom: 0;
  left: -30%;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(118, 164, 135, 0.28), transparent);
  opacity: 0;
}
.scan.on { animation: scan 1.5s var(--ease) forwards; }
@keyframes scan { 0% { left: -30%; opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

.reply {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  font-size: 13px;
}
.channels { display: flex; gap: 6px; margin-bottom: 10px; }
.channels span {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.reply[data-ch="0"] .ch-0, .reply[data-ch="1"] .ch-1, .reply[data-ch="2"] .ch-2 { background: var(--blue); color: var(--vanilla); border-color: var(--blue); }
.reply .line { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px dashed var(--line); }
.reply .line:first-of-type { border-top: 0; }
.reply .line b { color: var(--green); }
.sent { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; font-weight: 500; color: var(--green); }
.sent svg { width: 14px; height: 14px; }

/* --- Demo B: operators --- */
.demo-b { display: grid; grid-template-columns: 78px 1fr; gap: 18px; align-items: stretch; }
.bldg { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; }
.bldg svg { width: 78px; height: auto; overflow: visible; }
.bldg .win { fill: rgba(85, 110, 151, 0.14); transition: fill 0.5s; }
.bldg.on .win { animation: win 3s ease-in-out infinite; }
.bldg .win:nth-child(3n) { animation-delay: 0.4s; }
.bldg .win:nth-child(3n+1) { animation-delay: 1.1s; }
.bldg .win:nth-child(4n) { animation-delay: 1.8s; }
@keyframes win { 50% { fill: rgba(118, 164, 135, 0.75); } }
.bldg-name { font-size: 12px; font-weight: 600; text-align: center; line-height: 1.2; }

.convo { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; font-size: 13px; line-height: 1.4; }
.convo .q, .convo .a { max-width: 92%; padding: 8px 11px; }
.convo .q { align-self: flex-end; background: rgba(118, 164, 135, 0.22); border-radius: 14px 14px 4px 14px; }
.convo .a { align-self: flex-start; background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; }
.convo .st:not(.on) { display: none; }
.convo .st.on { animation: rise 0.5s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.handoff {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--blue);
  color: var(--vanilla);
  font-size: 12.5px;
  font-weight: 500;
}
.handoff svg { width: 16px; height: 16px; flex: none; }
.typing { display: none; align-self: flex-start; gap: 4px; padding: 10px 12px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; }
.typing.on { display: flex; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); opacity: 0.4; animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }

/* Three small points */
.fits { padding: 56px 0; border-top: 1px solid var(--line); }
.fits h2, .cta h2 {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.fits-grid { display: grid; gap: 24px; }
.fits-grid h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.fits-grid p { margin: 0; }
.fits-note { margin: 32px 0 0; padding-top: 20px; border-top: 1px dashed var(--line); }
.fits-note b { color: var(--navy); }

/* Blue call-to-action band */
.cta { background: var(--blue); color: var(--vanilla); border-radius: 28px; padding: 40px 24px; text-align: center; }
.cta h2 { margin-bottom: 10px; color: var(--vanilla); }
.cta p { margin: 0 auto; max-width: 40ch; }
.cta .btn { margin-top: 24px; background: var(--vanilla); color: var(--blue); }
.cta .btn:hover { background: #FFFFFF; }

/* =========================================================
   CONTACT + BOOK A DEMO
   ========================================================= */
.mail-card {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  max-width: 640px;
}
.mail-card .demo-label { margin: 0; }
.mail-link {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
  color: var(--blue);
}
.mail-link:hover { text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 6px; }
.copy-btn { align-self: flex-start; cursor: pointer; font: inherit; font-size: 14px; font-weight: 500; background: transparent; }
.copy-btn.done { border-color: var(--green); color: var(--green); }

.booking {
  margin-top: 36px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.booking iframe { display: block; width: 100%; height: 720px; border: 0; }
.booking-empty { padding: 48px 24px; text-align: center; }
.booking-empty svg { width: 40px; height: 40px; margin: 0 auto 14px; color: var(--green); }
.booking-empty p { margin: 6px auto 0; max-width: 40ch; }
.booking-fallback { margin: 14px 0 0; font-size: 14px; }

/* ---------- Laptop and larger ---------- */
@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-toggle, .nav-panel, .nav-open .nav-panel { display: none; }
  .header-right { gap: 12px; }
  .header-cta { padding: 10px 22px; font-size: 15px; }

  .page { padding: 72px 0 120px; }
  .page-title { font-size: 64px; }
  .page-lead { font-size: 19px; }

  .pitch p { font-size: 34px; }

  .solution { padding: 88px 0; }
  .solution-inner { flex-direction: row; align-items: center; gap: 72px; }
  .solution-inner > .copy { flex: 1 1 0; }
  .solution-inner > .demo { flex: 0 0 520px; }
  .solution.flip .solution-inner { flex-direction: row-reverse; }
  .solution h2 { font-size: 40px; }

  .demo { padding: 24px; min-height: 400px; }
  .demo-a { grid-template-columns: 1fr; }
  .demo-b { grid-template-columns: 120px 1fr; }
  .bldg svg { width: 120px; }

  .fits { padding: 88px 0; }
  .fits h2 { font-size: 36px; }
  .fits-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }

  .cta { padding: 64px 40px; }
  .cta h2 { font-size: 40px; }

  .mail-card { padding: 36px 36px; }
  .mail-link { font-size: 36px; }
}


/* =========================================================
   CONTACT FORM
   ========================================================= */
.contact-grid { display: grid; gap: 28px; margin-top: 40px; }
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 24px;
}
.form-card h2, .side-card h2 { margin: 0 0 4px; font-family: var(--font-display); font-weight: 600; font-size: 24px; }
.form-card > p { margin: 0 0 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 500; font-size: 14px; color: var(--navy); }
.field label span { font-weight: 400; color: var(--blue); }
.field input, .field textarea {
  font: inherit;
  font-size: 16px;            /* 16px stops phones zooming in */
  color: var(--navy);
  background: #FFFFFF;
  border: 1px solid rgba(85, 110, 151, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 48px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(85, 110, 151, 0.18); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }   /* hidden trap for spam bots */
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.form-foot small { font-size: 13px; }
.form-foot .btn { cursor: pointer; border: 0; font: inherit; font-weight: 600; font-size: 15px; }
.form-foot .btn[disabled] { opacity: 0.6; cursor: wait; }
.form-status { margin: 14px 0 0; font-size: 14px; min-height: 1.4em; }
.form-status.error { color: #9B3A3A; }
.form-done { text-align: center; padding: 32px 8px; }
.form-done svg { width: 44px; height: 44px; margin: 0 auto 12px; color: var(--green); }
.form-done h2 { margin-bottom: 8px; }
.side-card { padding: 24px; border: 1px solid var(--line); border-radius: 24px; align-self: start; }
.side-card .mail-link { font-size: 22px; display: inline-block; margin: 8px 0 14px; }
.side-card p { margin: 0 0 6px; }

/* =========================================================
   BOOK A DEMO
   ========================================================= */
.book-card {
  margin-top: 36px;
  max-width: 640px;
  padding: 36px 24px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.book-card svg { width: 44px; height: 44px; margin: 0 auto 14px; color: var(--green); }
.book-card h2 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 600; font-size: 26px; }
.book-card p { margin: 0 auto; max-width: 42ch; }
.book-card .btn { margin-top: 22px; }

/* =========================================================
   LEGAL PAGES (Privacy Policy, Terms of Use)
   ========================================================= */
.container.legal > * { max-width: 720px; }   /* readable line length, aligned with the logo */
.legal .updated { margin: 12px 0 0; font-size: 14px; }
.legal h2 { margin: 40px 0 10px; font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--navy); }
.legal p, .legal li { color: #3E5275; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal .fill { background: rgba(118, 164, 135, 0.22); padding: 0 4px; border-radius: 4px; }

/* 404 page */
.notfound { text-align: center; }
.notfound .page-title { margin: 0 auto; }
.notfound .page-lead { margin-left: auto; margin-right: auto; }
.notfound .btn-row { justify-content: center; }
.fly { width: 72px; margin: 0 auto 24px; animation: fly 3s ease-in-out infinite; }
@keyframes fly { 50% { transform: translateY(-10px) rotate(-4deg); } }

@media (min-width: 860px) {
  .footer-top { grid-template-columns: 1.3fr 2fr; gap: 48px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 36px; }
  .form-card { padding: 36px; }
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .book-card { padding: 48px 40px; }
}

@media (prefers-reduced-motion: reduce) { .fly { animation: none; } }
