/* Synapse Digital — light theme, one accent. */

:root {
  --bg: #FFFFFF;
  --surface: #F5F6F4;
  --ink: #11161C;
  --muted: #5A636E;
  --border: #E3E6E3;
  --accent: #0F6B5C;
  --accent-hover: #0B5246;
  --placeholder: #E9ECE9;

  /* 8px spacing scale */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 40px;
  --s6: 48px;
  --s8: 64px;
  --s10: 80px;
  --s12: 96px;
  --s14: 112px;

  --radius: 12px;
  --max: 1200px;
  --gutter: 24px;
  --header-h: 64px;

  --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s2));
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 1rem + .2vw, 1.125rem);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.375rem, 1.5rem + 3.4vw, 4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.03em;
}

h2 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 800; }
h3 { font-size: clamp(1.25rem, 1.15rem + .4vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin: 0; max-width: 65ch; }

ul, ol { margin: 0; padding: 0; list-style: none; }

img { display: block; max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: none; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

.accent { color: var(--accent); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

main:focus { outline: none; }

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

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

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: var(--s2);
  top: var(--s2);
  z-index: 200;
  padding: 12px var(--s2);
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; color: #fff; }

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:hover,
.btn:focus,
.btn:active,
.btn:visited { text-decoration: none; }
.btn .icon { width: 20px; height: 20px; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }

.btn-secondary { background: var(--bg); color: var(--accent); border-color: var(--accent); }
.btn-secondary:hover { color: var(--accent-hover); border-color: var(--accent-hover); }

.btn-white { background: #fff; color: var(--accent); }
.btn-white:hover { color: var(--accent-hover); }

.btn-sm { min-height: 44px; padding: 10px 16px; font-size: .9375rem; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 500;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }
.text-link .icon { width: 18px; height: 18px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.logo:hover { color: var(--ink); }
.logo,
.logo:hover,
.logo:focus,
.logo:active,
.logo * { text-decoration: none; border-bottom: 0; }
.logo-mark { display: block; width: 40px; height: 40px; flex: none; }
.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  font-family: "Plus Jakarta Sans", var(--font-head);
  line-height: 1;
}
.logo-name,
.logo-sub { display: block; margin: 0; padding: 0; line-height: 1; }
.logo-name { font-weight: 800; font-size: 24px; letter-spacing: -.035em; color: #11161C; }
/* Negative right margin cancels the trailing letter-spacing after the last letter */
.logo-sub { margin-right: -.4em; font-weight: 700; font-size: 9px; letter-spacing: .4em; color: #0F6B5C; }
/* For use on dark backgrounds */
.logo-on-dark .logo-name { color: #fff; }
.logo-on-dark .logo-sub { color: #3FB8A0; }

.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: var(--s1); }
.nav-desktop a,
.mobile-menu a,
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.nav-desktop a { padding-inline: 12px; font-size: .9875rem; }
.nav-desktop a:hover,
.mobile-menu a:hover { color: var(--accent); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); text-decoration: underline; }

/* Header nav: accent colour on focus/active, no underline (it lingered after click while scrolling) */
.nav-desktop a:focus,
.nav-desktop a:active,
.nav-desktop a:visited,
.mobile-menu a:focus,
.mobile-menu a:active,
.mobile-menu a:visited { text-decoration: none; }
.nav-desktop a:focus,
.nav-desktop a:active,
.mobile-menu a:focus,
.mobile-menu a:active {
  outline: none;
  color: var(--accent);
}
/* Keyboard users still get a visible focus ring */
.nav-desktop a:focus-visible,
.mobile-menu a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Footer nav keeps its thin accent underline on focus/active */
.footer-nav a:focus,
.footer-nav a:active {
  outline: none;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.header-actions { display: flex; align-items: center; gap: var(--s1); }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
}
.mobile-menu ul { padding-block: var(--s1) var(--s2); }
.mobile-menu li + li { border-top: 1px solid var(--border); }
.mobile-menu a { display: flex; min-height: 56px; font-size: 1.125rem; }

/* Without JS the toggle can't work, so hide it. */
.no-js .menu-toggle { display: none; }

@media (max-width: 444px) {
  .hide-xs { display: none; }
  .header-inner { gap: var(--s1); }
  .logo-mark { width: 34px; height: 34px; }
  .logo-name { font-size: 20px; }
  .header-actions .btn-sm { gap: 8px; padding-inline: 12px; }
}

@media (min-width: 390px) and (max-width: 444px) {
  .header-actions .btn-sm .icon { display: none; }
}

/* Narrow phones: icon-only header button (label stays for screen readers) */
@media (max-width: 389px) {
  .header-actions { gap: 6px; }
  .header-actions .btn-sm { width: 44px; padding: 0; }
  .header-actions .btn-sm > span {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
}

@media (min-width: 960px) {
  .nav-desktop { display: block; }
  .menu-toggle,
  .mobile-menu { display: none !important; }
}
/* Eight nav links: tighter spacing until there is room for the full padding */
@media (min-width: 960px) and (max-width: 1179px) {
  .nav-desktop ul { gap: 4px; }
  .nav-desktop a { padding-inline: 7px; }
}

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

.section { padding-block: clamp(var(--s8), 8vw, var(--s14)); }
.section-surface { background: var(--surface); }

.section-head { margin-bottom: clamp(var(--s4), 4vw, var(--s6)); }
.section-head p { margin-top: var(--s2); color: var(--muted); font-size: 1.125rem; }

.eyebrow {
  margin-bottom: var(--s2);
  color: var(--muted);
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .02em;
}

.lead { margin-top: var(--s3); color: var(--muted); font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem); }

.grid { display: grid; gap: var(--s3); }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Cards ---------- */

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .25s var(--ease);
}
.section-surface .card { background: var(--bg); }
.card:hover { transform: translateY(-2px); }

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

.hero {
  --hero-fade: linear-gradient(90deg, rgba(255, 255, 255, .4) 0%, rgba(255, 255, 255, 0) 55%);
  padding-block: clamp(var(--s5), 6vw, var(--s12)) clamp(var(--s6), 6vw, var(--s10));
  background-color: var(--bg);
  background-image: var(--hero-fade), url("hero-bg.jpg");
  background-image: var(--hero-fade), image-set(url("hero-bg.webp") type("image/webp"), url("hero-bg.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  position: relative;
  isolation: isolate;
}

/* Slow "flowing threads" drawn by main.js: above the background image, below the content, never clickable */
.hero-threads {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; }

/* Stacked tablet layout: the tall hero scales the wave up behind the copy */
@media (min-width: 481px) and (max-width: 959px) {
  .hero { --hero-fade: linear-gradient(180deg, rgba(255, 255, 255, .6) 0%, rgba(255, 255, 255, .45) 40%, rgba(255, 255, 255, 0) 60%); }
}

/* Small phones: the wave sits further behind the copy, so fade a little more */
@media (max-width: 480px) {
  .hero {
    --hero-fade: linear-gradient(90deg, rgba(255, 255, 255, .6) 0%, rgba(255, 255, 255, .2) 100%);
    background-position: 70% center;
  }
}

.hero-grid {
  display: grid;
  gap: var(--s6);
  align-items: center;
}

.hero-badge {
  display: inline-block;
  margin-bottom: var(--s3);
  padding: 6px 14px;
  border: 1px solid rgba(15, 107, 92, .2);
  border-radius: 999px;
  background: rgba(15, 107, 92, .08);
  color: #0F6B5C;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .02em;
}

.hero h1 {
  max-width: 14ch;
  font-family: "Plus Jakarta Sans", var(--font-head);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.035em;
  color: #11161C;
  text-wrap: balance;
}
.hero h1 .accent { color: #0F6B5C; background: none; text-decoration: none; }

.hero .lead {
  max-width: 34ch;
  color: #4A5560;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.6;
}

.hero-copy .btn-row { margin-top: var(--s4); }
.hero .btn { padding: 14px 26px; border-radius: 12px; font-weight: 600; }
.hero .btn-secondary { background: #fff; }

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    grid-template-areas: "copy visual" "live live";
    gap: var(--s8);
    row-gap: var(--s6);
  }
  .hero-copy { grid-area: copy; }
  .hero-visual { grid-area: visual; }
  .try-live { grid-area: live; }
}

/* "Try it live" row: glass cards that stay readable over the hero image */
.try-live { scroll-margin-top: calc(var(--header-h) + var(--s3)); }
.try-live-title {
  margin-bottom: var(--s2);
  color: #0F6B5C;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.try-live-grid {
  display: grid;
  gap: var(--s2);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 720px) {
  .try-live-grid { grid-template-columns: repeat(3, 1fr); }
}
.try-card {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 16px 18px;
  border: 1px solid #D3E2DD;
  border-radius: 14px;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px -16px rgba(17, 22, 28, .25);
  color: #11161C;
  text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
/* No underline in any state, including the global a:hover rule */
.try-card,
.try-card:link,
.try-card:visited,
.try-card:hover,
.try-card:focus,
.try-card:focus-visible,
.try-card:active,
.try-card *,
.try-card:hover * { text-decoration: none; }
.try-card:hover,
.try-card:focus-visible {
  transform: translateY(-3px);
  border-color: #0F6B5C;
  box-shadow: 0 16px 32px -14px rgba(15, 107, 92, .35);
  color: #11161C;
}
.try-card-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(15, 107, 92, .1);
  color: #0F6B5C;
}
.try-card-icon .icon { width: 20px; height: 20px; }
.try-card-text { display: grid; flex: 1; min-width: 0; gap: 2px; line-height: 1.3; }
.try-card-text strong { font-size: 1rem; font-weight: 700; }
.try-card-text span { color: #4A5560; font-size: .875rem; }
.try-card-arrow { flex: none; width: 18px; height: 18px; color: #0F6B5C; transition: transform .2s var(--ease); }
.try-card:hover .try-card-arrow { transform: translateX(3px); }
/* Tablet: three narrow columns, so stack icon above text and pin the arrow top-right */
@media (min-width: 720px) and (max-width: 1023px) {
  .try-card { position: relative; flex-direction: column; align-items: flex-start; gap: 12px; padding-right: 40px; }
  .try-card-arrow { position: absolute; top: 18px; right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .try-card, .try-card-arrow { transition: none; }
  .try-card:hover, .try-card:focus-visible, .try-card:hover .try-card-arrow { transform: none; }
}

.hero-visual {
  position: relative;
  padding-right: 18%;
  padding-bottom: 12%;
}

/* Browser-window frame */
.browser {
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -16px rgba(17, 22, 28, .22);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding-inline: 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.browser-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #D3D8D4;
}
.browser-url {
  flex: 1;
  max-width: 60%;
  height: 18px;
  margin-left: 12px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
}

/* Phone frame */
.phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 28%;
  padding: 7px;
  background: var(--ink);
  border-radius: 26px;
  box-shadow: 0 18px 36px -12px rgba(17, 22, 28, .3);
}
/* Speaker slit sits in the bezel so it never covers the screenshot */
.phone-notch {
  position: absolute;
  top: 2px;
  left: 50%;
  width: 22%;
  height: 3px;
  border-radius: 3px;
  background: #3A424C;
  transform: translateX(-50%);
  z-index: 1;
}
.phone .shot { border-radius: 20px; }

/* Screenshot placeholders (grey boxes at the final aspect ratio) */
.shot {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--placeholder);
}
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot-wide { aspect-ratio: 2 / 1; }
.shot-tall { aspect-ratio: 720 / 1412; }
.shot-portrait { aspect-ratio: 4 / 5; border-radius: var(--radius); border: 1px solid var(--border); }
.shot-label {
  padding: var(--s1);
  color: var(--muted);
  font-size: .875rem;
  text-align: center;
}
.phone .shot-label { font-size: .75rem; }

/* ---------- Recent-work strip ---------- */

.strip { border-block: 1px solid var(--border); }
.strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s1) var(--s3);
  padding-block: var(--s3);
}
.strip-label { color: var(--muted); font-size: .9375rem; }
.strip-names { display: flex; flex-wrap: wrap; gap: 4px 12px; font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; max-width: none; }
.strip-names .sep { color: var(--muted); }
@media (max-width: 599px) {
  .strip-names { flex-direction: column; }
  .strip-names .sep { display: none; }
}

/* ---------- Services ---------- */

.service {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: var(--s4);
}
.service h3 { margin-top: var(--s1); }
.service p { color: var(--muted); }
.service .text-link { margin-top: auto; padding-top: var(--s1); align-self: flex-start; }

/* 2 columns on tablets, one row of 4 on desktop. Subgrid lines up icon, title,
   text and link across cards so every bottom link sits on the same line. */
@media (min-width: 720px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .service { padding: var(--s3); }
  .service h3 { font-size: 1.25rem; }
}
@supports (grid-template-rows: subgrid) {
  @media (min-width: 720px) {
    .services-grid { row-gap: var(--s3); }
    .service {
      display: grid;
      grid-row: span 4;
      grid-template-rows: subgrid;
      row-gap: 12px;
    }
    .service .text-link { margin-top: 0; align-self: end; }
  }
}

.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #E6F0EE;
  color: #0F6B5C;
}
.icon-tile .icon { width: 44px; height: 44px; }

.service-thumb {
  width: 100%;
  height: 120px;
  border: 1px solid var(--border);
  border-radius: 8px;
  object-fit: cover;
  object-position: top;
}

.sub-head {
  margin-top: clamp(var(--s8), 6vw, var(--s10));
  margin-bottom: var(--s3);
  font-size: clamp(1.375rem, 1.2rem + .6vw, 1.75rem);
}

.tiles { gap: var(--s2); }
.tile {
  display: flex;
  gap: var(--s2);
  padding: var(--s3);
  background: var(--surface);
}
.tile > .icon-tile { flex: none; }
.tile > div { display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.tile h4 { margin-bottom: 4px; }
.tile p { color: var(--muted); font-size: 1rem; }
.tile .text-link { margin-top: auto; padding-top: 4px; font-size: 1rem; }

/* ---------- Work ---------- */

.cases { display: grid; gap: var(--s4); }

.case {
  display: grid;
  gap: var(--s4);
  padding: clamp(var(--s2), 3vw, var(--s5));
  align-items: center;
}
.case-body h3 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.case-body .eyebrow { margin-bottom: var(--s1); }

.case-facts { margin: var(--s3) 0 var(--s2); display: grid; gap: var(--s2); }
.case-facts div { padding-top: var(--s2); border-top: 1px solid var(--border); }
.case-facts dt { font-weight: 500; color: var(--ink); }
.case-facts dd { margin: 4px 0 0; color: var(--muted); max-width: 65ch; }

@media (min-width: 900px) {
  .case { grid-template-columns: 7fr 5fr; gap: var(--s6); }
  .case-flip { grid-template-columns: 5fr 7fr; }
  .case-flip .case-media { order: 2; }
}

/* ---------- Demo ---------- */

.chatbot {
  display: grid;
  justify-items: center;
  gap: 12px;
}
.chatbot-frame {
  display: block;
  width: 100%;
  max-width: 420px;
  height: 560px;
  border: 1px solid #E3E6E3;
  border-radius: var(--radius);
  background: var(--bg);
}
@media (min-width: 600px) {
  .chatbot-frame { height: 640px; }
}
.chatbot-caption { max-width: 420px; color: var(--muted); font-size: .9375rem; text-align: center; }
.chatbot-caption a { display: flex; align-items: center; justify-content: center; min-height: 44px; font-weight: 500; }
.nowrap { white-space: nowrap; }

.demo-grid {
  display: grid;
  gap: var(--s4);
  align-items: start;
}
@media (min-width: 900px) {
  .demo-grid { grid-template-columns: 1fr 1fr; }
}
.voice-card {
  width: 100%;
  max-width: 420px;
  justify-self: center;
  padding: var(--s3);
  border: 1px solid #E3E6E3;
  border-top: 4px solid #0F6B5C;
  border-radius: var(--radius);
  background: var(--bg);
  text-align: center;
  display: flex;
  flex-direction: column;
  min-height: 520px;
}
/* Fade-in only: GSAP's reveal transform would briefly become the widget's containing block */
.voice-card[data-reveal] { transform: none !important; }
.voice-card h3 { color: #0F6B5C; }
.voice-card p { margin-top: var(--s1); color: var(--muted); font-size: .9375rem; }
/* The ElevenLabs widget is position: fixed; the transform makes this box its
   containing block so it sits inside the card instead of floating on the page.
   The expanded chat panel sizes itself to this box, so it fills the card's remaining height. */
.voice-widget {
  position: relative;
  flex: 1;
  min-height: 200px;
  margin: var(--s2) calc(-1 * var(--s3)) calc(-1 * var(--s3));
  transform: translateZ(0);
}
/* The widget needs ~296px including its own right offset; shrink it on the narrowest phones */
@media (max-width: 359px) {
  .voice-widget { transform: scale(.88); transform-origin: right bottom; }
}

/* ---------- Sample dashboard ---------- */

.dash-section { background: #F4F8F6; }
.dash-head { display: grid; gap: var(--s3); }
@media (min-width: 900px) {
  .dash-head { grid-template-columns: 1fr auto; align-items: end; }
}
.dash-eyebrow { color: #0F6B5C; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .8125rem; }
.dash-head p:not(.eyebrow) { max-width: 60ch; }
.dash-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.dash-pill {
  padding: 4px 10px;
  border: 1px solid #D3E2DD;
  border-radius: 999px;
  background: #fff;
  color: #0F6B5C;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.4;
}
.dash-toggle {
  display: inline-flex;
  padding: 4px;
  border: 1px solid #D3E2DD;
  border-radius: 999px;
  background: #fff;
}
.dash-toggle button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: .9375rem;
  font-weight: 500;
  cursor: pointer;
}
.dash-toggle button[aria-pressed="true"] { background: #0F6B5C; color: #fff; }
.dash-toggle button:focus-visible { outline: 2px solid #0F6B5C; outline-offset: 2px; }

.dash { display: grid; gap: var(--s2); }
@media (min-width: 768px) {
  .dash { grid-template-columns: 1fr 1fr; }
  .dash-wide, .dash-kpis { grid-column: 1 / -1; }
}
.dash-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid #D3E2DD;
  border-radius: 14px;
  background: #fff;
}
.dash-card h3 { font-family: "Plus Jakarta Sans", var(--font-head); font-size: 1rem; font-weight: 700; margin-bottom: var(--s2); }

.dash-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2); }
@media (min-width: 1024px) {
  .dash-kpis { grid-template-columns: repeat(4, 1fr); }
}
.dash-kpi { border-top: 3px solid #0F6B5C; }
.dash-kpi-label { color: var(--muted); font-size: .875rem; font-weight: 500; }
.dash-kpi-value {
  margin-top: 6px;
  font-family: "Plus Jakarta Sans", var(--font-head);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.dash-trend { margin-top: 6px; color: var(--muted); font-size: .8125rem; }
.dash-trend.is-up { color: #0F6B5C; font-weight: 600; }

.dash-plot { position: relative; min-height: 220px; }
.dash-plot svg { display: block; overflow: visible; }
.dash-grid { stroke: #E8EFEC; stroke-width: 1; }
.dash-axis { fill: var(--muted); font-family: var(--font-body); font-size: 11px; }
.dash-line { fill: none; stroke: #0F6B5C; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.dash-area { fill: rgba(15, 107, 92, .08); }
.dash-dot { fill: #fff; stroke: #0F6B5C; stroke-width: 2.5; }
.dash-bar { fill: #B9D6CE; }
.dash-bar.is-top { fill: #0F6B5C; }
.dash-top-label { fill: #0F6B5C; font-weight: 600; }
.dash-tip {
  position: absolute;
  display: none;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: .8125rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
}

.dash-hbars { display: grid; gap: 12px; }
.dash-hbar { display: grid; grid-template-columns: 7.5em 1fr 2.5em; align-items: center; gap: 10px; font-size: .9375rem; }
.dash-hbar-track { height: 10px; border-radius: 999px; background: #EDF3F1; overflow: hidden; }
.dash-hbar-fill { display: block; height: 100%; border-radius: inherit; background: #0F6B5C; transition: width .4s var(--ease); }
.dash-hbar-value { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

.dash-table-wrap { overflow-x: auto; }
.dash-table-wrap:focus-visible { outline: 2px solid #0F6B5C; outline-offset: 2px; }
.dash-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .9375rem; }
.dash-table th { color: var(--muted); font-size: .8125rem; font-weight: 500; text-align: left; }
.dash-table th,
.dash-table td { padding: 10px 12px 10px 0; border-bottom: 1px solid #E8EFEC; white-space: nowrap; }
.dash-table tbody tr:last-child td { border-bottom: 0; }
.dash-outcome { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 600; }
.dash-outcome.is-booked { background: rgba(15, 107, 92, .1); color: #0F6B5C; }
.dash-outcome.is-info { background: #EEF0F2; color: #3D4651; }
.dash-outcome.is-callback { background: #FDF1DD; color: #8A5300; }

.dash-footnote { margin-top: var(--s3); color: var(--muted); font-size: .875rem; }

@media (prefers-reduced-motion: reduce) {
  .dash-hbar-fill { transition: none; }
}

/* ---------- Packages ---------- */

/* Wide screens get the comparison table; phones and tablets get one card per package. */
.compare { display: none; padding: 0; overflow: hidden; }
.packages { display: grid; gap: var(--s3); align-items: start; }
@media (min-width: 600px) {
  .packages { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .compare { display: block; }
  .packages { display: none; }
}

.compare-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.compare-table thead td:first-child { width: 20%; }
.compare-table th,
.compare-table td {
  padding: var(--s3) var(--s2);
  border-top: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  font-weight: 400;
}
.compare-table thead th,
.compare-table thead td { border-top: 0; vertical-align: bottom; }
.compare-table tbody th { color: var(--muted); font-weight: 500; }
.compare-table .is-featured { background: #F2F7F6; }
.compare-table thead .is-featured { box-shadow: inset 0 3px 0 var(--ink); }
.compare-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.2;
}
.compare .package-note { display: block; }
.compare-table .checklist { margin: 0; padding: 0; border: 0; }
@media (min-width: 1024px) {
  .compare-table th,
  .compare-table td { padding: var(--s3); }
}

.packages-note { margin-top: var(--s3); color: var(--muted); }

.package {
  display: flex;
  flex-direction: column;
  padding: var(--s4);
}
.package h3 { font-size: 1.5rem; }
.package-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s1); }
.package-note { margin-top: 4px; color: var(--muted); font-size: 1rem; }
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.plan-pill {
  display: inline-block;
  margin-top: var(--s1);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.plan-pill-yes {
  border-color: rgba(15, 107, 92, .2);
  background: rgba(15, 107, 92, .08);
  color: #0F6B5C;
}
.package-price { margin-top: var(--s2); font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; }
.compare-table .package-price { margin: 0 0 var(--s2); font-size: 1rem; }
.package-fineprint { margin: calc(-1 * var(--s2)) 0 var(--s3); color: var(--muted); font-size: .875rem; }
.compare-table .package-fineprint { margin: var(--s2) 0 0; }

.checklist {
  align-content: start;
  display: grid;
  gap: 10px;
  margin: var(--s3) 0 var(--s4);
  padding-top: var(--s3);
  border-top: 1px solid var(--border);
}
.checklist li { display: flex; align-items: flex-start; gap: 10px; }
.checklist .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--ink); }

.package .btn { margin-top: auto; align-self: end; }

.package-featured {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

/* Large containers don't lift on hover */
.compare.card:hover,
.quote.card:hover { transform: none; }

/* ---------- Quote form ---------- */

.quote {
  display: grid;
  gap: var(--s4);
  margin-top: clamp(var(--s8), 6vw, var(--s10));
  padding: clamp(var(--s3), 4vw, var(--s6));
}
.quote-intro h3 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); }
.quote-intro p { margin-top: var(--s1); color: var(--muted); }
@media (min-width: 960px) {
  .quote { grid-template-columns: 1fr 2fr; gap: var(--s6); align-items: start; }
  .quote-intro { grid-row: span 2; }
}

.quote-form { display: grid; gap: var(--s3); }
@media (min-width: 600px) {
  .quote-form { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }
}
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 500; }
.field-hint { color: var(--muted); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #848D96;
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}
.field textarea { min-height: 128px; resize: vertical; }
.field select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2311161C' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline-offset: 1px; border-color: var(--accent); }
.quote-form .btn { width: 100%; }
@media (min-width: 600px) {
  .quote-form .btn { width: auto; }
}

/* Netlify honeypot: hidden from people, left for bots */
.hp-field { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Shown after Netlify returns to /#quote-sent; the form hides */
.quote-success {
  display: none;
  align-items: flex-start;
  gap: 12px;
  padding: var(--s3);
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: #F2F7F6;
}
.quote-success:target { display: flex; }
.quote-success:focus { outline: none; }
.quote-success:target ~ .quote-form { display: none; }
.quote-success .icon { color: var(--accent); }
.quote-success-title { font-weight: 500; }
.quote-success p + p { margin-top: 4px; color: var(--muted); }

/* ---------- Process ---------- */

.step { padding: var(--s4); }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: var(--s3);
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 700;
}
.step h3 { margin-bottom: var(--s1); font-size: 1.25rem; text-wrap: pretty; }
.step p { color: var(--muted); }

/* ---------- About ---------- */

.about { display: grid; gap: var(--s5); align-items: center; }
.about-photo { max-width: 240px; width: 100%; }
.about-photo img { border-radius: var(--radius); object-fit: cover; }
.about-copy h2 { margin-bottom: var(--s3); }
.about-copy p + p { margin-top: var(--s2); }
.about-copy p:last-child { color: var(--muted); }

@media (min-width: 800px) {
  .about { grid-template-columns: minmax(240px, 360px) 1fr; gap: var(--s10); }
  .about-photo { max-width: 360px; }
}

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

.faq-wrap { max-width: 840px; }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  min-height: 64px;
  padding-block: var(--s2);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.125rem, 1.05rem + .3vw, 1.25rem);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary .icon { transition: transform .2s var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding-bottom: var(--s3); color: var(--muted); }

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

.cta-band { background: var(--accent); color: #fff; }
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding-block: clamp(var(--s8), 7vw, var(--s12));
}
.cta-band h2 { color: #fff; }
.cta-band :focus-visible { outline-color: #fff; }

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

.site-footer { padding-top: var(--s8); border-top: 1px solid var(--border); }
.footer-grid {
  display: grid;
  gap: var(--s4);
  padding-bottom: var(--s5);
}
.footer-place { margin-top: var(--s1); color: var(--muted); }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 0 var(--s3); }
.footer-contact { display: grid; gap: 0; }
.footer-contact li { display: flex; align-items: center; gap: var(--s1); min-height: 44px; }
.footer-contact a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-key { min-width: 88px; color: var(--muted); }
.footer-base { padding-block: var(--s3) calc(var(--s3) + 72px); border-top: 1px solid var(--border); }
.footer-base p { color: var(--muted); font-size: .9375rem; }

@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; }
  .footer-nav ul { flex-direction: column; }
  .footer-base { padding-bottom: var(--s3); }
}

/* ---------- Floating WhatsApp button ---------- */

.wa-fab {
  position: fixed;
  right: calc(var(--s2) + env(safe-area-inset-right, 0px));
  bottom: calc(var(--s2) + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(17, 22, 28, .14);
  transition: transform .2s var(--ease);
}
.wa-fab:hover { background: var(--accent-hover); color: #fff; transform: translateY(-2px); }
.wa-fab .icon { width: 28px; height: 28px; }

@media (min-width: 960px) {
  .wa-fab { right: calc(var(--s3) + env(safe-area-inset-right, 0px)); bottom: calc(var(--s3) + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Lenis (subset of lenis.css; iframe rule left out so the chatbot embed stays clickable) ---------- */

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .btn:hover,
  .card:hover,
  .wa-fab:hover { transform: none; }
}

/* ---------- Demos page ---------- */

.nav-desktop a[aria-current="page"],
.mobile-menu a[aria-current="page"],
.footer-nav a[aria-current="page"] { color: var(--accent); }

.page-hero { padding-block: clamp(var(--s6), 6vw, var(--s10)) 0; }
.page-hero h1 {
  max-width: 18ch;
  margin-top: var(--s2);
  font-family: "Plus Jakarta Sans", var(--font-head);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.page-hero .lead { max-width: 46ch; }
.page-hero .dash-pill { display: inline-block; }

.wa-section { padding-top: clamp(var(--s5), 5vw, var(--s8)); }
.wa-compare { display: grid; gap: var(--s6); }
@media (min-width: 768px) {
  .wa-compare { grid-template-columns: 1fr 1fr; gap: var(--s4); align-items: start; }
}
.wa-col { display: grid; justify-items: center; gap: var(--s2); }
.wa-title { font-family: "Plus Jakarta Sans", var(--font-head); font-size: 1.25rem; font-weight: 700; }

.wa-phone {
  width: 100%;
  max-width: 380px;
  overflow: hidden;
  border: 8px solid var(--ink);
  border-radius: 32px;
  background: #ECE5DD;
  box-shadow: 0 18px 40px -16px rgba(17, 22, 28, .3);
}
.wa-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #0F6B5C;
  color: #fff;
}
.wa-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: #0F6B5C;
  font-weight: 700;
}
.wa-name { display: block; font-weight: 600; line-height: 1.2; }
.wa-status { display: block; font-size: .75rem; opacity: .8; }

.wa-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 12px 18px; }
.wa-body [hidden] { display: none; }
.wa-day {
  align-self: center;
  margin: 4px 0;
  padding: 3px 10px;
  border-radius: 8px;
  background: #E1F0EC;
  color: #3D4651;
  font-size: .75rem;
  font-weight: 500;
}
.wa-msg {
  max-width: 82%;
  padding: 7px 10px 6px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 1px rgba(17, 22, 28, .08);
  font-size: .9375rem;
  line-height: 1.4;
  animation: wa-in .25s var(--ease);
}
.wa-msg.is-in { align-self: flex-start; border-top-left-radius: 2px; }
.wa-msg.is-out { align-self: flex-end; border-top-right-radius: 2px; background: #D9FDD3; }
.wa-time { display: block; margin-top: 2px; color: #667781; font-size: .6875rem; text-align: right; }
.wa-buttons { display: grid; gap: 6px; margin-top: 8px; }
.wa-btn {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  background: #fff;
  color: #0F6B5C;
  font-size: .875rem;
  font-weight: 600;
  text-align: center;
}
.wa-btn.is-picked { box-shadow: inset 0 0 0 1.5px #0F6B5C; }

.wa-typing {
  display: inline-flex;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
}
.wa-typing.is-in { align-self: flex-start; }
.wa-typing.is-out { align-self: flex-end; background: #D9FDD3; }
.wa-typing i { width: 6px; height: 6px; border-radius: 50%; background: #8696A0; animation: wa-dot 1s infinite; }
.wa-typing i:nth-child(2) { animation-delay: .15s; }
.wa-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes wa-dot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes wa-in { from { opacity: 0; transform: translateY(6px); } }

.wa-result {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 600;
  text-align: center;
  transition: opacity .3s;
}
.wa-result.is-bad { background: #FDECEC; color: #B42318; }
.wa-result.is-good { background: rgba(15, 107, 92, .1); color: #0F6B5C; }
.wa-result.is-waiting { opacity: 0; }
.wa-actions { display: flex; justify-content: center; margin-top: var(--s5); }

.demo-link { display: flex; flex-direction: column; height: 100%; padding: var(--s4); color: var(--ink); text-decoration: none; }
.demo-link > .icon { width: 32px; height: 32px; color: #0F6B5C; }
.demo-link h3 { margin-top: var(--s2); font-size: 1.25rem; }
.demo-link p { margin-top: var(--s1); color: var(--muted); }
.demo-link .text-link { margin-top: auto; padding-top: var(--s3); }
.demo-link:hover h3 { color: var(--accent); }
.demos-cta { display: flex; justify-content: center; margin-top: var(--s6); }
.demos-note { margin: var(--s3) auto 0; color: var(--muted); font-size: .875rem; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .wa-msg, .wa-typing i { animation: none; }
}
