/* ==========================================================================
   Village Master — site styles
   Built on the Village Master Design System (sky blue + white + light gray,
   derived from the logo). Edit the variables below to retune everything.
   ========================================================================== */

:root {
  /* --- Sky blue scale (brand) --- */
  --vm-sky-50:  #F0F7FC;
  --vm-sky-100: #DCEEF9;   /* soft panel fill, icon chips */
  --vm-sky-200: #BBDCF2;
  --vm-sky-300: #8AC4E8;
  --vm-sky-400: #4FA6DA;
  --vm-sky-500: #1E97D4;   /* bright sky (logo highlight) */
  --vm-sky-600: #1283C4;   /* PRIMARY (logo body) */
  --vm-sky-700: #0E6FA8;   /* hover / pressed */
  --vm-sky-800: #0B5886;
  --vm-sky-900: #0A3D5C;   /* deep navy-blue */

  /* --- Neutral / gray scale --- */
  --vm-white:    #FFFFFF;
  --vm-gray-50:  #F6F7F9;  /* alternating section background */
  --vm-gray-100: #EEEFEF;
  --vm-gray-200: #DFE0E2;  /* hairline / outline */
  --vm-gray-400: #888888;  /* tertiary text */
  --vm-gray-600: #5E6066;
  --vm-gray-700: #444141;  /* body text */
  --vm-gray-900: #111111;  /* title text */
  --vm-ink:      #102A3A;  /* deep slate-navy (footer / dark blocks) */

  /* --- Status --- */
  --vm-gold:    #FBBC04;   /* warning / status accent (available) */
  --vm-red-600: #C0392B;   /* error text, invalid field border */
  --vm-red-100: #F3D7D3;   /* error panel border */
  --vm-red-50:  #FDF4F3;   /* error panel fill */

  /* --- Semantic aliases (use these below) --- */
  --color-primary:        var(--vm-sky-600);
  --color-primary-hover:  var(--vm-sky-700);
  --color-primary-bright: var(--vm-sky-500);
  --color-primary-soft:   var(--vm-sky-100);
  --color-primary-softer: var(--vm-sky-50);
  --color-bg:        var(--vm-white);
  --color-bg-soft:   var(--vm-gray-50);
  --color-bg-dark:   var(--vm-ink);
  --color-surface:   var(--vm-white);
  --color-outline:   var(--vm-gray-200);
  --text-title:      var(--vm-gray-900);
  --text-body:       var(--vm-gray-700);
  --text-tertiary:   var(--vm-gray-400);
  --color-error:        var(--vm-red-600);
  --color-error-soft:   var(--vm-red-100);
  --color-error-softer: var(--vm-red-50);
  --text-on-dark-muted: rgba(255, 255, 255, 0.72);

  /* --- Shadows (ink-tinted, never neutral black) --- */
  --shadow-xs: 0 1px 2px rgba(16,42,58,0.06);
  --shadow-sm: 0 2px 8px rgba(16,42,58,0.06), 0 1px 2px rgba(16,42,58,0.04);
  --shadow-md: 0 8px 24px rgba(16,42,58,0.08);
  --shadow-lg: 0 18px 48px rgba(16,42,58,0.12);
  --shadow-primary: 0 10px 28px rgba(18,131,196,0.30);

  /* --- Fonts --- */
  --font-display: 'Teachers', 'Inter', sans-serif;        /* headings */
  --font-body:    'Inter', sans-serif;                    /* body text */
  --font-ui:      'Plus Jakarta Sans', 'Inter', sans-serif; /* buttons, nav, labels */

  /* --- Shape & rhythm --- */
  --radius-md:    12px;    /* inputs, tags, icon chips */
  --radius-lg:    20px;    /* cards, navbar */
  --radius-xl:    24px;    /* large panels */
  --radius-pill:  240px;   /* buttons, chips */
  --container:    1256px;
  --gutter:       32px;
  --section-y:    96px;    /* vertical breathing room between sections */

  /* --- Motion --- */
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast:  140ms;
  --dur-base:  220ms;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-body);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text-title);
  margin: 0;
}

h1 { font-size: clamp(2.6rem, 5vw, 60px); line-height: 1.07; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 3.4vw, 48px); line-height: 1.17; letter-spacing: -0.02em; }

p { margin: 0; }

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

a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }

::selection { background: var(--color-primary-soft); color: var(--vm-sky-800); }

:where(button, a):focus-visible {
  outline: 2px solid var(--color-primary-bright);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --- Buttons — pill-shaped, Plus Jakarta Sans, sentence case --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

/* primary: solid sky with a soft sky glow */
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover { background: var(--color-primary-hover); }

/* on blue panels: white pill */
.btn-on-dark { background: #fff; color: var(--color-primary); border-color: #fff; }
.btn-on-dark:hover { background: var(--color-primary-soft); border-color: var(--color-primary-soft); }

/* on blue panels: outlined white pill */
.btn-ghost-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost-dark:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ==========================================================================
   Navigation bar — floating white bar (radius 20 per the design system);
   transparent over the blue hero at the top of the homepage
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 28px;
  pointer-events: none;            /* the strip itself lets clicks through… */
}

.nav-inner {
  pointer-events: auto;            /* …but the bar stays clickable */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
  width: calc(100% - 48px);
  max-width: calc(var(--container) - 48px);
  margin: 0 auto;
  padding: 0 14px 0 24px;   /* right gap matches the space above/below the button */
  background: var(--color-surface);
  border: 1px solid var(--color-outline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}

/* Homepage, top of page: the header blends into the blue hero card with
   white text, then the white floating bar fades in on scroll */
.home .navbar:not(.scrolled) .nav-inner {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.home .navbar:not(.scrolled) .logo img { filter: brightness(0) invert(1); }  /* white logo on blue */
.home .navbar:not(.scrolled) .nav-links a { color: rgba(255, 255, 255, 0.92); }
.home .navbar:not(.scrolled) .nav-links a:hover { color: #fff; }
.home .navbar:not(.scrolled) .nav-toggle span { background: #fff; }
.home .navbar:not(.scrolled) .btn-primary {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
  box-shadow: none;
}
.home .navbar:not(.scrolled) .btn-primary:hover { background: var(--color-primary-soft); border-color: var(--color-primary-soft); }

.logo {
  display: inline-flex;
  align-items: center;
}
.logo img {
  height: 32px;
  width: auto;
  display: block;
  transition: filter var(--dur-base) var(--ease-out);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-body);
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-links a:hover { color: var(--color-primary); }

.nav-actions { display: flex; align-items: center; }

/* Mobile menu toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-title);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}

/* The "Book a demo" link that only shows inside the mobile menu */
.mobile-cta { display: none; }

/* ==========================================================================
   Hero — flat sky-blue rounded panel (no gradients per the design system)
   on a white page with equal padding, the floating nav riding on top
   ========================================================================== */
.hero {
  background: var(--color-bg);    /* white showing around the card */
  padding: 24px;                  /* equal white padding on all four sides */
  margin-top: -100px;             /* card slides up under the floating nav */
}
.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 168px 20px 72px;
  /* top clears the 100px floating nav */
  color: #fff;
  /* logo-gradient sweep (light in the top-right) with soft corner glows
     and faint rings rising from the top-right, behind the dashboard image */
  background:
    radial-gradient(55% 50% at 88% 0%, rgba(255, 255, 255, 0.26), transparent 60%),
    radial-gradient(70% 75% at 5% 110%, rgba(255, 255, 255, 0.16), transparent 55%),
    radial-gradient(circle at 88% 12%, transparent 119px, rgba(255,255,255,.12) 120px, rgba(255,255,255,.12) 122px, transparent 123px),
    radial-gradient(circle at 88% 12%, transparent 219px, rgba(255,255,255,.09) 220px, rgba(255,255,255,.09) 222px, transparent 223px),
    radial-gradient(circle at 88% 12%, transparent 319px, rgba(255,255,255,.06) 320px, rgba(255,255,255,.06) 322px, transparent 323px),
    radial-gradient(circle at 88% 12%, transparent 419px, rgba(255,255,255,.04) 420px, rgba(255,255,255,.04) 422px, transparent 423px),
    linear-gradient(210deg, #1E97D4 0%, #0E6FA8 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.hero-text { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }

.hero h1 { color: #fff; font-size: clamp(2.9rem, 5.6vw, 68px); }

.hero .lead {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.92);
  max-width: 46ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* condensed platform row: same idea as the Product page strip, sized for the hero */
.hero-platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 20px;             /* extra breathing room under the buttons */
  color: rgba(255, 255, 255, 0.84);   /* brighter than the muted body text, short of full white */
}
.hero-platforms-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
.hero-platforms ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}
.hero-platforms li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
}
.hero-platforms svg { width: 36px; height: 36px; fill: currentColor; }

.hero-media img {
  width: 100%;
  filter: drop-shadow(0 30px 50px rgba(16, 42, 58, 0.28));
}

/* centered hero variant for subpages (no image) */
.hero-center .hero-inner {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}
.hero-center .hero-text { align-items: center; max-width: 900px; }
.hero-center .hero-card { padding-bottom: 96px; }
.hero-center h1 { font-size: clamp(2rem, 4.4vw, 52px); }
/* opt-in: keeps a short headline on a single line (used on the Product page) */
.hero-oneline h1 { white-space: nowrap; }
/* shorter hero for pages that lead straight into content, like the demo form */
.hero-short .hero-card { padding-bottom: 72px; }
.hero-short .hero-text { max-width: 760px; }

/* ==========================================================================
   Product page — module groups (intro + 3x2 feature grid)
   ========================================================================== */
.module-section { padding: var(--section-y) 0; }
/* boxed divider: the line spans the centered content width, not the full window */
.hairline-top { padding-top: 0; }
.hairline-top > .container { border-top: 1px solid var(--color-outline); padding-top: var(--section-y); }

/* --- Platforms: a quiet one-line strip under the hero, all gray, no cards --- */
.platforms { padding: 48px 0 8px; text-align: center; }
.platforms-title {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 18px;
}
.platform-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 40px;
}
.platform-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  color: var(--vm-gray-600);
}
.platform-list svg { width: 42px; height: 42px; fill: var(--vm-gray-400); }
/* macOS isn't shipped yet, so it says so in a lighter aside */
.platform-soon { font-size: 13px; font-weight: 400; color: var(--text-tertiary); }

.module-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  margin-bottom: 72px;
}
.module-media img {
  width: 100%;
  border-radius: var(--radius-lg);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
}
.module { display: flex; flex-direction: column; gap: 14px; }
.module-head { display: flex; align-items: center; gap: 16px; }
.module h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* Grow your village: wide photo, then heading beside text */
.grow-media { margin-bottom: 64px; }
.grow-media img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.grow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.grow-head { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
#grow .module-grid { margin-top: 104px; }
.grow-body { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.grow-body p { font-size: 18px; line-height: 1.55; }

/* Origins + reviews share one soft-blue panel */
.origins-reviews { padding: var(--section-y) 0; background: var(--color-primary-soft); }
.origins-reviews .container { display: flex; flex-direction: column; gap: clamp(64px, 8vw, 96px); }
.origins-reviews .tagline { background: #fff; }   /* white pill so it reads on the blue */
.origins-reviews .reviews .section-head { margin-bottom: 48px; }

/* ==========================================================================
   Feature split (image + text)
   ========================================================================== */
.feature-split { padding: var(--section-y) 0; }

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}

.split-media img {
  width: 100%;
  border-radius: var(--radius-lg);
}
/* landscape crop, used by the two story sections on the About page, so both
   photos match each other and sit at a sensible height beside the text */
.split-media.media-rect img {
  display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
/* a little taller again, for a section with a longer block of text beside it */
.split-media.media-tall img {
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.split-body { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.split-body p { font-size: 18px; line-height: 1.55; }

.pain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
.pain-list li {
  position: relative;
  padding-left: 36px;
}
/* muted "x" marks — these are the problems Village Master removes */
.pain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--vm-gray-100);
  background-image:
    linear-gradient(45deg, transparent 45%, var(--vm-gray-400) 45%, var(--vm-gray-400) 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, var(--vm-gray-400) 45%, var(--vm-gray-400) 55%, transparent 55%);
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* --- Shared bits: eyebrow label + section heading --- */
.tagline {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vm-sky-800);
  background: var(--color-primary-soft);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head .tagline { margin-bottom: 16px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: 20px; }
.section-head p { font-size: 18px; line-height: 1.55; }

/* ==========================================================================
   Trusted-by logo strip
   ========================================================================== */
.logos { padding: 44px 0 64px; }
.logos-title {
  text-align: center;
  font-weight: 600;
  color: var(--vm-gray-600);
  margin-bottom: 36px;
}
/* auto-scrolling marquee: the track holds two identical logo sets and
   slides left by exactly one set width, so the loop is seamless */
.logo-marquee {
  position: relative;
  overflow: hidden;
}
/* soft white fades at both edges */
.logo-marquee::before,
.logo-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(48px, 8vw, 120px);
  z-index: 1;
  pointer-events: none;
}
.logo-marquee::before { left: 0; background: linear-gradient(90deg, var(--color-bg), transparent); }
.logo-marquee::after { right: 0; background: linear-gradient(270deg, var(--color-bg), transparent); }

.logo-track {
  display: flex;
  width: max-content;
  animation: logo-scroll 48s linear infinite;
}
.logo-set {
  display: flex;
  align-items: center;
  gap: clamp(48px, 6vw, 80px);
  padding-right: clamp(48px, 6vw, 80px);
}
.logo-set img {
  height: 60px;
  width: auto;
  flex-shrink: 0;
}

@keyframes logo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* respect visitors who turn off animations: show each logo once, centred */
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; width: 100%; }
  .logo-set { flex-wrap: wrap; justify-content: center; width: 100%; padding-right: 0; }
  .logo-set[aria-hidden="true"],
  .logo-set img:nth-child(n+8) { display: none; }
}

/* ==========================================================================
   Feature cards — white cards with hairlines on a soft gray section
   ========================================================================== */
.cards-section { padding: var(--section-y) 0; background: var(--color-bg-soft); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-outline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: var(--color-primary-soft);
  color: var(--color-primary);
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.33;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   CTA bands — flat sky-blue panels
   ========================================================================== */
.cta { padding: 0 0 var(--section-y); }
/* extra breathing room above the band when it follows a text section */
.cta.cta-spaced { padding-top: 48px; }
.cta.on-soft { background: var(--color-bg-soft); }  /* carries on the gray from the section above */
.cta-card {
  border-radius: var(--radius-xl);
  padding: clamp(64px, 7vw, 104px) clamp(40px, 5vw, 64px);
  /* smaller-scale version of the hero treatment: glow, rings, sweep */
  background:
    radial-gradient(60% 80% at 10% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
    radial-gradient(circle at 90% 10%, transparent 89px, rgba(255,255,255,.12) 90px, rgba(255,255,255,.12) 92px, transparent 93px),
    radial-gradient(circle at 90% 10%, transparent 164px, rgba(255,255,255,.08) 165px, rgba(255,255,255,.08) 167px, transparent 168px),
    radial-gradient(circle at 90% 10%, transparent 239px, rgba(255,255,255,.05) 240px, rgba(255,255,255,.05) 242px, transparent 243px),
    linear-gradient(150deg, #1E97D4 0%, #0E6FA8 100%);
  color: #fff;
  overflow: hidden;
}
.cta-card.center { text-align: center; }
.cta-card.center .cta-body { margin-inline: auto; }
.cta-body { max-width: 720px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.cta-card.center .cta-body { align-items: center; }
.cta-body h2 { color: #fff; }
.cta-body p { font-size: 18px; line-height: 1.55; color: rgba(255, 255, 255, 0.92); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* split variant: text beside a photo that fills the panel edge-to-edge */
.cta-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  gap: 0;
  padding: 0;
}
.cta-split .cta-body {
  align-self: center;
  padding: clamp(64px, 7vw, 104px) clamp(40px, 5vw, 64px);
}
.cta-split.media-left { grid-template-columns: 0.95fr 1.05fr; }  /* photo on the left */
.cta-media { position: relative; min-height: 400px; }
/* pinned to the cell so the photo always fills it, whatever the panel height */
.cta-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Testimonials — white quote cards on a soft sky tint
   ========================================================================== */
.testimonials { padding: var(--section-y) 0; background: var(--color-primary-soft); }  /* #DCEEF9 */
.quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.quote {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-outline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px;
}
/* rating stars: rounded Lucide-style star icons in brand blue */
.stars { display: inline-flex; gap: 3px; color: var(--color-primary); }
.stars svg { width: 18px; height: 18px; fill: currentColor; display: block; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.quote blockquote {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text-title);
}
/* margin-top:auto pins the name to the bottom of the card, so the two names stay
   on the same line even when one quote runs longer than the other */
.quote-author { display: flex; align-items: center; gap: 16px; margin-top: auto; }
.quote-author strong { display: block; font-weight: 600; color: var(--text-title); }
.quote-author small { color: var(--text-tertiary); }

/* ==========================================================================
   How it works (timeline)
   ========================================================================== */
.how { padding: var(--section-y) 0; }
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.how-intro { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; position: sticky; top: 124px; }
.how-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Stacked variant: intro, then the steps, then the button — all reading
   top to bottom in one column (used on the How it works page) */
.how-stacked .how-grid { grid-template-columns: 1fr; gap: 48px; justify-items: center; }
.how-stacked .how-intro { position: static; align-items: center; text-align: center; max-width: 760px; }
.how-stacked .timeline { width: 100%; max-width: 760px; }
.how-stacked .how-actions { justify-content: center; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  padding-bottom: 40px;
}
.timeline-item:last-child { padding-bottom: 0; }
.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--color-primary-soft);
  color: var(--vm-sky-800);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  z-index: 1;
}
.step-body h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

/* ==========================================================================
   FAQ — soft gray cards with hairlines
   ========================================================================== */
.faq { padding: var(--section-y) 0; }
.accordion {
  max-width: 768px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.acc-item {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-outline);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.acc-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  color: var(--text-title);
}
.acc-icon {
  position: relative;
  flex-shrink: 0;
  width: 22px; height: 22px;
}
.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
.acc-icon::before { top: 10px; left: 0; width: 22px; height: 2px; }      /* horizontal */
.acc-icon::after  { left: 10px; top: 0; width: 2px; height: 22px; }      /* vertical   */
.acc-q[aria-expanded="true"] .acc-icon::after { transform: scaleY(0); opacity: 0; }
/* collapse/expand animates grid rows (smooth without layout thrash);
   the padding lives on the inner paragraph so the closed state is fully 0 */
.acc-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-base) var(--ease-out);
}
.acc-q[aria-expanded="true"] + .acc-a { grid-template-rows: 1fr; }
.acc-inner {
  overflow: hidden;
  min-height: 0;
}
.acc-a p { padding: 0 24px 22px; }

/* ==========================================================================
   Footer — full-width deep slate-navy (ink) band
   ========================================================================== */
.site-footer { background: var(--color-bg-dark); color: #fff; }
.footer-card {
  color: #fff;
  padding: clamp(48px, 5vw, 64px) 0;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-logo { height: 34px; width: auto; }
.footer-brand { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
/* contact rows: icon chip + label/value (design-system ContactRow, on dark) */
/* two columns: phones on the left, emails on the right (row = one contact) */
.footer-contact { display: grid; grid-template-columns: repeat(2, max-content); gap: 20px 48px; }
.contact-row { display: flex; align-items: center; gap: 12px; }
.contact-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: background var(--dur-fast) var(--ease-out);
}
.contact-icon svg { width: 18px; height: 18px; }
.contact-row:hover .contact-icon { background: rgba(255, 255, 255, 0.18); }
.contact-text { display: flex; flex-direction: column; gap: 2px; }
.contact-text small { font-size: 12px; color: var(--text-on-dark-muted); }
.contact-text strong {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 16px;
  color: #fff;
}

.footer-links { display: flex; gap: 48px; justify-content: flex-end; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.footer-links a { color: var(--text-on-dark-muted); font-size: 14px; }
.footer-links a:hover { color: #fff; }

.footer-credits {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  flex-wrap: wrap;
}
.footer-credits p { color: var(--text-on-dark-muted); font-size: 14px; }
.footer-legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-legal a { color: var(--text-on-dark-muted); font-size: 14px; }
.footer-legal a:hover { color: #fff; }

/* ==========================================================================
   Book a demo — form page
   ========================================================================== */
.demo-form-section { padding: var(--section-y) 0; }
.demo-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 56px;
  align-items: start;
}

/* The form sits in a white card with the same thin border as the other cards */
.demo-form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-outline);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 40px;
}
.demo-form { display: flex; flex-direction: column; gap: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-title);
}
.field-optional {
  font-weight: 500;
  color: var(--text-tertiary);
  margin-left: 4px;
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-title);
  background: var(--color-bg);
  border: 1px solid var(--color-outline);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  width: 100%;
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.field textarea { resize: vertical; min-height: 112px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-tertiary); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}
/* Native select arrow replaced with one that matches the site's line icons */
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23444141' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  padding-right: 46px;
}
.demo-form .btn { align-self: flex-start; margin-top: 4px; }

/* Shown after the form is submitted */
.form-status {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-primary);
  background: var(--color-primary-softer);
  border: 1px solid var(--color-primary-soft);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
/* same box, but red, when the enquiry could not be sent */
.form-status-error {
  color: var(--color-error);
  background: var(--color-error-softer);
  border-color: var(--color-error-soft);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--color-error); }
.field-error { font-size: 13px; color: var(--color-error); }

/* Right-hand column: what happens next + phone/email */
.demo-aside { position: sticky; top: 124px; display: flex; flex-direction: column; gap: 28px; }
.demo-aside h2 { font-size: 28px; }
.demo-steps {
  list-style: none;
  margin: 0;
  padding: 0;                 /* line the circles up with the heading above */
  display: flex; flex-direction: column; gap: 24px;
}
/* each step is a heading only, so sit it level with the middle of its circle */
.demo-steps li { display: flex; gap: 16px; align-items: center; }
.demo-steps .step-num {
  flex: 0 0 auto;             /* keep them perfect circles, never squashed */
  width: 40px; height: 40px;
  aspect-ratio: 1;
  font-size: 17px;
}
.demo-steps h3 { font-size: 17px; }
.demo-contact {
  background: var(--color-primary-softer);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;                    /* space between the intro line and each group */
}
/* smaller than the other headings in this column — it labels the box, not the page */
.demo-aside .demo-contact-title {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-title);
}
/* Sales and General enquiries sit in their own labelled group */
.contact-group { display: flex; flex-direction: column; gap: 14px; }
.contact-group + .contact-group {
  padding-top: 24px;
  border-top: 1px solid var(--color-primary-soft);
}
.contact-group-title {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}
/* the shared contact rows are built for the dark footer, so recolour them here */
.demo-contact .contact-icon { background: #fff; color: var(--color-primary); }
.demo-contact .contact-row:hover .contact-icon { background: var(--color-primary); color: #fff; }
.demo-contact .contact-text small { color: var(--vm-gray-600); }
.demo-contact .contact-text strong { color: var(--text-title); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  /* The menu opens as a white rounded card just below the floating bar */
  .nav-links {
    position: absolute;
    top: 108px;
    left: 24px;
    right: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-outline);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 8px 24px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; color: var(--text-body); }

  /* the dropdown card is always white, so its links stay dark even while
     the header itself is transparent over the blue hero */
  .home .navbar:not(.scrolled) .nav-links a { color: var(--text-body); }
  .home .navbar:not(.scrolled) .nav-links a:hover { color: var(--color-primary); }

  /* Show "Book a demo" inside the menu instead of squeezing it into the bar */
  .nav-actions { display: none; }
  .nav-links a.mobile-cta,
  .home .navbar:not(.scrolled) .nav-links a.mobile-cta {
    display: inline-flex;
    width: auto;
    margin-top: 12px;
    padding: 15px 28px;
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
  }
  .nav-links a.mobile-cta:hover,
  .home .navbar:not(.scrolled) .nav-links a.mobile-cta:hover { color: #fff; }
  .nav-toggle { display: flex; }

  .hero-inner,
  .split-grid,
  .module-intro,
  .grow-grid { grid-template-columns: 1fr; }

  /* product page: image above text reads better when stacked */
  .module-intro .module-media { order: -1; }

  .hero-card { padding: 136px 0 48px; }
  .hero-media { max-width: 460px; }
  .hero-oneline h1 { white-space: normal; }

  /* on mobile, show the image above the text for the feature section */
  .split-media { order: -1; }

  .feature-split { padding: 72px 0; }
}

/* Tablet: stack the bigger grids */
@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }

  /* stacked CTA bands: photo sits under the text on both */
  .cta-split,
  .cta-split.media-left { grid-template-columns: 1fr; }
  .cta-media { min-height: 0; height: 260px; order: 1; }
  .quotes { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .how-intro { position: static; }
  .footer-main { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { justify-content: flex-start; gap: 64px; }

  /* demo form: "what happens next" drops below the form */
  .demo-grid { grid-template-columns: 1fr; gap: 40px; }
  .demo-aside { position: static; }
}

@media (max-width: 560px) {
  :root { --section-y: 72px; --gutter: 24px; }
  .module-grid { grid-template-columns: 1fr; }
  .platform-list { gap: 10px 28px; }   /* platforms wrap onto two lines on phones */
  .footer-contact { grid-template-columns: 1fr; }   /* stack contacts on small phones */
  /* keep the padding around the blue hero card equal, just a little tighter */
  .hero { padding: 16px; }
  .nav-inner { width: calc(100% - 32px); }
  .nav-links { left: 16px; right: 16px; }
  .footer-links { gap: 40px; }
  .footer-credits { flex-direction: column; align-items: flex-start; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1; }

  /* demo form: one field per row, and a less bulky card */
  .field-row { grid-template-columns: 1fr; }
  .demo-form-card { padding: 24px; }
  .demo-form .btn { align-self: stretch; }
}


/* ===========================================================================
   Text pages (privacy policy, page-not-found)
   A single readable column of prose. Nothing fancy - just comfortable
   line length, clear headings and enough room to breathe.
   =========================================================================== */

.prose { max-width: 720px; }

.prose > * + * { margin-top: 20px; }

.prose h2 {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.25;
  color: var(--text-title);
  margin-top: 48px;
}

.prose p,
.prose li {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-body);
}

.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose strong { color: var(--text-title); font-weight: 600; }

.prose a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--color-primary-hover); }

/* the small "last updated" line above the policy */
.prose-meta {
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

@media (max-width: 560px) {
  .prose h2 { font-size: 22px; margin-top: 36px; }
  .prose p, .prose li { font-size: 16px; }
}
