/* =========================================================
   Cobalto AI — Stylesheet
   ========================================================= */

:root {
  /* Colors — aligned with Cobalto piloto UI */
  --blue: #0047AB;
  --blue-dark: #00306E;
  --blue-light: #134EB8;
  --blue-soft: #EDF2FC;
  --ink: #1D2530;
  --white: #FFFFFF;
  --muted: #627084;
  --line-on-blue: rgba(255, 255, 255, 0.18);
  --line-on-white: #DAE0E7;
  --bg-soft: #F9FAFB;
  --bg-book: #F9FAFB;
  --bg-partners: #EAEDF0;
  --surface-gray: #EDEDED;
  --surface-gray-hover: #E4E4E4;

  --gradient-header: linear-gradient(135deg, hsl(215 100% 34%) 0%, hsl(215 74% 40%) 100%);
  --shadow-sm: 0 1px 2px 0 hsl(215 25% 15% / 0.05);
  --shadow-md: 0 4px 6px -1px hsl(215 25% 15% / 0.08), 0 2px 4px -2px hsl(215 25% 15% / 0.06);
  --shadow-lg: 0 10px 15px -3px hsl(215 25% 15% / 0.1), 0 4px 6px -4px hsl(215 25% 15% / 0.08);
  --shadow-card: 0 1px 3px 0 hsl(215 25% 15% / 0.06), 0 1px 2px -1px hsl(215 25% 15% / 0.06);
  --shadow-elevated: 0 16px 16px rgba(11, 37, 84, 0.14);

  /* Type */
  --font-display: "Stack Sans Headline", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Figtree", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container-w: 1280px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --header-h: 64px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --fade-page: 0.7s;
  --fade-modal: 0.4s;
}

/* ---------- Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Scroll lock (modals / mobile nav): keep layout width when the scrollbar is removed */
html.scroll-lock {
  overflow: hidden;
}

html.scroll-lock body {
  margin-right: var(--scrollbar-compensation, 0px);
  overflow: hidden;
}

html.scroll-lock .site-header,
html.scroll-lock .home-grid-stage,
html.scroll-lock .modal-overlay,
html.scroll-lock .booking-modal-overlay,
html.scroll-lock .video-modal-overlay {
  right: var(--scrollbar-compensation, 0px);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* Keep the footer at the bottom of the viewport on short pages. */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body > main {
  flex: 1 0 auto;
}

/* Page fade-ins: `.js` is set in <head> so first paint is already hidden,
   then IntersectionObserver (or a load fallback) adds `.is-visible`. */
@media (prefers-reduced-motion: no-preference) {
  .js .site-header:not(.is-visible) {
    opacity: 0;
  }

  .js .site-header {
    transition:
      opacity 0.5s var(--ease-out),
      background-color 0.25s ease,
      backdrop-filter 0.25s ease,
      border-color 0.25s ease;
  }

  .js main > section:not(.is-visible),
  .js main > article:not(.is-visible) {
    opacity: 0;
    transform: translateY(18px);
  }

  .js main > section,
  .js main > article {
    transition:
      opacity var(--fade-page) var(--ease-out) var(--reveal-delay, 0s),
      transform var(--fade-page) var(--ease-out) var(--reveal-delay, 0s);
  }

  .js .site-header.is-visible,
  .js main > section.is-visible,
  .js main > article.is-visible {
    opacity: 1;
    transform: none;
  }
}

.js-fallback .site-header,
.js-fallback main > section,
.js-fallback main > article {
  opacity: 1 !important;
  transform: none !important;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

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

@media (min-width: 640px) {
  .container {
    padding: 0 24px;
  }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  background: var(--white);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 999;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px hsl(215 70% 35%);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--blue) 90%, #000);
}

.btn-light {
  background: var(--white);
  color: var(--blue);
}
.btn-light:hover {
  background: var(--blue-soft);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 999px;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-ghost {
  background: transparent;
  color: var(--blue);
  padding: 10px 4px;
  font-size: 0.875rem;
  font-weight: 500;
}

.btn-ghost:hover {
  color: var(--blue-dark);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  height: var(--header-h);
  transition: background-color 0.25s ease, backdrop-filter 0.25s ease, border-color 0.25s ease;
}

/* Once the hero has scrolled past, give the header its own surface so it
   reads clearly over whatever section content is underneath it. */
.site-header--scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--line-on-white);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand__logo {
  display: block;
  height: 28px;
  width: auto;
  color: var(--white);
  transition: color 0.25s ease;
}

@media (min-width: 640px) {
  .brand__logo {
    height: 28px;
  }
}

.site-header--scrolled .brand__logo {
  color: var(--blue);
}

.site-header__right {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 32px;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.page-home .nav-toggle {
  color: var(--white);
}

.page-home .site-header--scrolled .nav-toggle,
.page-inner .nav-toggle {
  color: var(--ink);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.page-home .site-header--scrolled .nav-toggle:hover,
.page-inner .nav-toggle:hover {
  background: var(--bg-soft);
}

body.nav-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* "Marcar Demo" reads as a white pill over the transparent/blue hero, then
   flips to the standard blue pill once the header picks up its own
   (white/blurred) surface after scrolling. */
.site-header .btn-primary {
  background: var(--white);
  color: var(--blue);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.site-header__cta {
  height: 40px;
  padding: 0 18px;
  font-size: 0.9375rem;
  font-weight: 700;
}
.site-header .btn-primary:hover {
  background: var(--blue-soft);
}

.site-header--scrolled .btn-primary {
  background: var(--blue);
  color: var(--white);
}
.site-header--scrolled .btn-primary:hover {
  background: color-mix(in srgb, var(--blue) 90%, #000);
}

.site-nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 32px;
  font-weight: 500;
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.25s ease;
}

.site-header--scrolled .site-nav {
  color: var(--ink);
}

.site-nav a {
  position: relative;
  display: flex;
  align-items: center;
}

.site-nav a:hover {
  color: var(--white);
}

.site-header--scrolled .site-nav a:hover {
  color: var(--blue);
}

/* ---------- Hero ---------- */
.hero {
  padding: 0;
}

.hero-panel {
  position: relative;
  background: var(--blue);
  color: var(--white);
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Reuses the shared .container (max-width + left/right padding) so the
   hero's title/CTAs line up with the header logo and every other section
   on the page — only vertical spacing and the grid layout are added here. */
.hero-panel__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  padding-top: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(24px, 4vw, 56px);
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "brand art"
    "content art"
    "meta art";
  gap: 0 40px;
  /* This transparent wrapper otherwise sits on top of the ambient grid
     (z-index above it) and would swallow hover everywhere within its
     box — including the blank space around/under the title and copy —
     blocking the grid-square hover effect. Let events fall through to
     the grid by default, then re-enable them just on the CTAs below so
     those stay clickable/hoverable themselves. */
  pointer-events: none;
}

/* Ambient background: each grid square gets its own <span> (generated in
   main.js) whose background-color opacity pulses on an independent,
   randomized, infinite loop — a subtle "live data" flicker across the grid. */
.hero-panel__grid-cells {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, 64px);
  grid-auto-rows: 64px;
}

.hero-panel__grid-cells span {
  display: block;
  background-color: var(--white);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hero-panel__grid-cells span.is-active {
  animation-name: heroGridCellPulse;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

/* Hovering a square brightens it immediately, on top of whatever the
   ambient pulse animation is doing at that moment. !important is needed
   because CSS animations otherwise take priority over normal author
   rules for the same property — this way the animation keeps running
   underneath (and resumes seamlessly once the mouse leaves) instead of
   being paused or reset. */
.hero-panel__grid-cells span:hover {
  opacity: 0.5 !important;
}

@keyframes heroGridCellPulse {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 0.16;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-panel__grid-cells span {
    animation: none;
    opacity: 0;
  }
}

.hero-panel__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line-on-blue) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-on-blue) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.hero-panel__brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
  z-index: 1;
  padding-bottom: 24px;
}

.hero-panel__mark {
  display: inline-flex;
}

.hero-panel__content {
  grid-area: content;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0;
}

.eyebrow {
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 16px;
}

.eyebrow--dark {
  color: var(--blue);
}

.hero-panel__title {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  margin-bottom: 24px;
}

.hero-panel__subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
}

@media (min-width: 640px) {
  .hero-panel__subtitle {
    font-size: 1.25rem;
  }
}

.hero-panel__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  /* Re-enable interactivity here since the parent .hero-panel__inner
     is set to pointer-events: none so hover can reach the ambient grid. */
  pointer-events: auto;
}

.hero-panel__art {
  grid-area: art;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--line-on-blue);
}

.blueprint-art {
  width: 100%;
  max-width: clamp(280px, 26vw, 460px);
  color: rgba(255, 255, 255, 0.9);
}

.hero-panel__meta {
  grid-area: meta;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line-on-blue);
  padding-top: 20px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

.hero-panel__mini-mark {
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
}

/* ---------- Section shared ---------- */
.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  margin-bottom: 16px;
  color: var(--ink);
}

.section-head h1 {
  font-size: clamp(2.2rem, 4vw, 2.5rem);
  margin-bottom: 16px;
  color: var(--ink);
}

.section-head__lead {
  font-size: 1.125rem;
  color: var(--muted);
}

.section-head--light h2 {
  color: var(--white);
}
.section-head--light .section-head__lead {
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- Why it works ---------- */
.why {
  padding: 96px 0;
  background: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line-on-white);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.why-card {
  padding: 40px;
  border-right: 1px solid var(--line-on-white);
  border-bottom: 1px solid var(--line-on-white);
}

.why-card:nth-child(2n) {
  border-right: none;
}

.why-card:nth-last-child(-n+2) {
  border-bottom: none;
}

.why-card__num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--blue);
  margin-bottom: 16px;
}

.why-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--ink);
}

.why-card p {
  color: var(--muted);
  font-size: 1.03rem;
}

/* ---------- Features ---------- */
.features {
  padding: 96px 0;
  background: var(--bg-soft);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-on-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feature-card:hover,
.feature-card:focus-visible {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--blue) 30%, transparent);
  box-shadow: var(--shadow-lg);
}

.feature-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.feature-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: linear-gradient(135deg, var(--blue-soft) 0%, #DCE6F8 100%);
  overflow: hidden;
}

.feature-card__image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 71, 171, 0.18) 1px, transparent 1px);
  background-size: 18px 18px;
}

.feature-card__image svg {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 96px;
  height: auto;
  color: var(--blue);
}

.feature-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 76px 28px 24px;
  flex: 1;
}

.feature-card__num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue);
  font-size: 0.85rem;
}

.feature-card__kicker {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: var(--muted);
}

.feature-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.feature-card__plus {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line-on-white);
  background: var(--white);
  color: var(--blue);
  pointer-events: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.feature-card__plus span {
  display: none;
}

.feature-card__plus::before,
.feature-card__plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  border-radius: 1px;
  transform: translate(-50%, -50%);
}

.feature-card__plus::before {
  width: 2px;
  height: 14px;
}

.feature-card__plus::after {
  width: 14px;
  height: 2px;
}

.feature-card:hover .feature-card__plus,
.feature-card:focus-visible .feature-card__plus {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  transform: rotate(90deg);
}

.feature-card--static {
  cursor: default;
}

.feature-card--static .feature-card__plus {
  display: none;
}

.feature-card--static .feature-card__body {
  padding-right: 24px;
}

.feature-card--static .feature-card__desc {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

.feature-card--static:hover {
  transform: none;
  box-shadow: none;
}

.feature-card--static:hover .feature-card__image {
  transform: none;
}

.feature-card--sm {
  flex: 0 0 236px;
  width: 236px;
}

.feature-card--sm:hover,
.feature-card--sm:focus-visible {
  transform: translateY(-3px);
}

.feature-card--sm .feature-card__image {
  aspect-ratio: 16 / 8;
  padding: 16px;
}

.feature-card--sm .feature-card__image svg {
  max-width: 56px;
}

.feature-card--sm .feature-card__body {
  padding: 14px 44px 16px 14px;
  gap: 6px;
}

.feature-card--sm .feature-card__kicker {
  font-size: 0.68rem;
}

.feature-card--sm .feature-card__title {
  font-size: 0.95rem;
}

.feature-card--sm .feature-card__plus {
  width: 32px;
  height: 32px;
  right: 12px;
  bottom: 12px;
}

.feature-card--sm .feature-card__plus::before {
  height: 10px;
}

.feature-card--sm .feature-card__plus::after {
  width: 10px;
}

/* ---------- Book demo ---------- */
.book {
  padding: 96px 0 104px;
  background: var(--bg-book);
  color: var(--ink);
}

.book .eyebrow {
  color: var(--blue);
}

.book-embed {
  overflow: hidden;
}

.book-fallback {
  text-align: center;
  margin-top: 28px;
  color: var(--muted);
  font-size: 1rem;
}

.book-fallback a {
  color: var(--blue);
  text-decoration: underline;
  font-weight: 600;
}

.book-flow {
  --demo-pad-x: 40px;
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line-on-white);
  border-radius: var(--radius-xl);
  padding: 36px var(--demo-pad-x) 40px;
  box-shadow: var(--shadow-card);
}

.book-flow.demo-flow--calendly {
  max-width: 920px;
  padding: 0;
  overflow: hidden;
}

/* ---------- Demo booking flow ---------- */
.demo-flow__question {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 8px;
}

.demo-flow__hint {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 24px;
}

.demo-flow__choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.demo-flow__choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 22px 24px;
  border: 1px solid var(--line-on-white);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--ink);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.demo-flow__choice:hover,
.demo-flow__choice[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--blue) 40%, transparent);
  background: var(--blue-soft);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(11, 11, 15, 0.06);
}

.demo-flow__choice-label {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--blue);
}

.demo-flow__choice-copy {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.45;
  white-space: normal;
}

.demo-flow__checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-flow__check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-on-white);
  border-radius: var(--radius-md);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.demo-flow__check:hover,
.demo-flow__check:has(input:checked) {
  border-color: rgba(0, 71, 171, 0.4);
  background: var(--blue-soft);
}

.demo-flow__check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--blue);
}

.demo-flow__check span {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.demo-flow__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.demo-flow__toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-on-white);
}

.demo-flow__calendly {
  overflow: hidden;
  height: 100%;
}

.demo-flow__calendly .calendly-inline-widget {
  min-width: 0;
  width: 100%;
  height: 700px;
}

.book-flow.demo-flow--calendly .demo-flow__main,
.book-flow.demo-flow--calendly .demo-flow__calendly,
.book-flow.demo-flow--calendly .calendly-inline-widget {
  height: 700px;
}

.demo-flow__contact {
  margin-top: 32px;
  margin-inline: calc(-1 * var(--demo-pad-x, 0px));
  padding: 28px var(--demo-pad-x, 32px) 0;
  border-top: 1px solid var(--line-on-white);
}

.demo-flow__contact-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.demo-flow__contact-lead {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 16px;
}

.demo-flow__contact-form {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.demo-flow__email {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line-on-white);
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
}

.demo-flow__email:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.12);
}

.demo-flow__contact-form .btn {
  flex-shrink: 0;
  height: 48px;
}

.demo-flow__status {
  margin-top: 12px;
  font-size: 0.95rem;
  font-weight: 600;
}

.demo-flow__status.is-success {
  color: var(--blue);
}

.demo-flow__status.is-error {
  color: #9b1c1c;
}

/* ---------- Booking modal (Marcar Demo) ---------- */
.booking-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 11, 15, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--fade-modal) var(--ease-out), visibility var(--fade-modal) var(--ease-out);
}

.booking-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.booking-modal-overlay[hidden] {
  display: none;
}

.booking-modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: min(720px, 100%);
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity var(--fade-modal) var(--ease-out), transform var(--fade-modal) var(--ease-out);
}

.booking-modal-overlay.is-open .booking-modal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.booking-modal__close {
  position: static;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink);
  background: var(--bg-soft);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.booking-modal__close:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

.booking-modal__close:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.booking-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 16px 16px 32px;
  border-bottom: 1px solid var(--line-on-white);
  flex-shrink: 0;
}

.booking-modal__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.booking-modal__header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.booking-modal__change {
  padding: 10px 12px;
}

.booking-modal__body {
  --demo-pad-x: 32px;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 24px var(--demo-pad-x) 32px;
  -webkit-overflow-scrolling: touch;
}

.booking-modal--wide {
  width: min(920px, 100%);
}

.booking-modal--calendly {
  width: min(920px, 100%);
  height: calc(100dvh - 32px);
  max-height: calc(100dvh - 32px);
}

.booking-modal--calendly .booking-modal__body {
  padding: 0;
  overflow: hidden;
}

.booking-modal--calendly .demo-flow {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.booking-modal--calendly .demo-flow__main,
.booking-modal--calendly .demo-flow__calendly,
.booking-modal--calendly .calendly-inline-widget {
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100% !important;
}

.booking-modal--calendly .calendly-inline-widget iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

@media (max-width: 640px) {
  .booking-modal-overlay {
    padding: 12px;
  }

  .booking-modal {
    max-height: calc(100dvh - 24px);
  }

  .booking-modal--calendly {
    height: calc(100dvh - 24px);
    max-height: calc(100dvh - 24px);
  }

  .booking-modal__header {
    padding: 12px 12px 12px 20px;
  }

  .booking-modal__body {
    --demo-pad-x: 20px;
    padding: 20px var(--demo-pad-x) 28px;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.8);
  padding: 40px 0;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.brand--footer .brand__logo {
  height: 20px;
  color: var(--white);
}

.site-footer__nav {
  display: flex;
  gap: 24px;
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.site-footer__nav a:hover {
  color: var(--white);
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.site-footer__social a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.site-footer__social a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.site-footer__social svg {
  display: block;
  width: 20px;
  height: 20px;
}

.site-footer__copy {
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.55);
  width: 100%;
  text-align: center;
  order: 3;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 11, 15, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--fade-modal) var(--ease-out), visibility var(--fade-modal) var(--ease-out);
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  background: var(--white);
  border-radius: 28px;
  flex: 0 1 560px;
  min-width: 0;
  padding: 0;
  position: relative;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity var(--fade-modal) var(--ease-out), transform var(--fade-modal) var(--ease-out);
  max-height: 85vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.modal-overlay.is-open .modal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Sits on top of the full-width mockup image (see stacking note below)
   at the same top-right spot it always occupied. Given an opaque
   background so it stays legible over whatever image is behind it. */
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(11, 11, 15, 0.18);
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.modal__close:hover {
  background: var(--white);
  color: var(--blue);
  transform: scale(1.05);
}

.modal__close:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.modal__content {
  padding: 32px 40px 40px;
}

.modal__mockup {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-soft) 0%, #DCE6F8 100%);
}

.modal__mockup::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 71, 171, 0.18) 1px, transparent 1px);
  background-size: 18px 18px;
}

.modal__mockup-image {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal__mockup-placeholder {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--blue);
}

.modal__mockup-placeholder svg {
  width: 40px;
  height: 40px;
  opacity: 0.55;
}

.modal__mockup-placeholder span {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.modal__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.modal__kicker {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue);
}

.modal__title {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.modal__description {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.modal__body {
  transition: opacity 0.22s var(--ease-out);
}

.modal__body.is-swapping {
  opacity: 0;
}

.modal__count {
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

/* Prev/next controls sit outside the modal box itself, flanking it
   inside the overlay (lightbox-style), rather than inside the dialog. */
.modal__side-nav {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    opacity var(--fade-modal) var(--ease-out) 0.08s,
    transform var(--fade-modal) var(--ease-out) 0.08s;
}

.modal-overlay.is-open .modal__side-nav {
  opacity: 1;
  transform: none;
}

.modal__side-nav:hover {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
  transform: scale(1.06);
}

.modal__side-nav:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

/* ---------- Inner pages (product / blog) ---------- */
.page-inner main {
  padding-top: var(--header-h);
}

.page-hero {
  padding: 56px 0 48px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line-on-white);
}

.page-hero--compact {
  padding-bottom: 40px;
}

.page-hero__inner {
  max-width: none;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 2.5rem);
  margin-bottom: 16px;
  color: var(--ink);
}

.page-hero__lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 640px;
}

/* ---------- Homepage mission & partners ---------- */
.mission {
  padding: 96px 0;
  background: var(--white);
}

.home-features + .home-features {
  margin-top: 64px;
}

.home-features__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 24px;
}

.home-features__copy {
  max-width: 640px;
}

.home-features__copy h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
  color: var(--ink);
}

.home-features__copy p {
  color: var(--muted);
  font-size: 1rem;
}

.home-features__more {
  flex-shrink: 0;
  margin-top: 6px;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
}

.home-features__more:hover {
  color: var(--blue-light);
}

.home-features__scroller {
  position: relative;
  overflow: hidden;
  padding: 8px 0 0;
}

.home-features__scroller::before,
.home-features__scroller::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 96px;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.home-features__scroller::before {
  left: 0;
  background: linear-gradient(90deg, var(--white) 0%, rgba(255, 255, 255, 0) 100%);
}

.home-features__scroller::after {
  right: 0;
  background: linear-gradient(270deg, var(--white) 0%, rgba(255, 255, 255, 0) 100%);
}

.home-features__scroller:not(.is-at-start)::before,
.home-features__scroller:not(.is-at-end)::after {
  opacity: 1;
}

.home-features__track {
  display: flex;
  gap: 16px;
  overflow: visible;
  touch-action: pan-y;
  will-change: transform;
  transition: transform 0.4s ease;
}

.home-features__nav {
  position: absolute;
  top: 8px;
  bottom: 48px;
  z-index: 2;
  width: 52px;
  height: 52px;
  margin-top: auto;
  margin-bottom: auto;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--line-on-white);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(11, 11, 15, 0.1);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, opacity 0.15s ease, visibility 0.15s ease;
}

.home-features__nav--prev {
  left: 0;
}

.home-features__nav--next {
  right: 0;
}

.home-features__nav:hover:not(:disabled) {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  transform: scale(1.06);
}

.home-features__nav:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.home-features__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.home-features__nav--prev:disabled {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.partners {
  padding: 96px 0;
  background: var(--bg-partners);
}

.partners__inner {
  text-align: center;
}

.partners__title {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  margin-bottom: 48px;
  color: var(--ink);
}

.partners__row + .partners__row {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--line-on-white);
}

.partners__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 24px;
}

.logo-strip--center {
  justify-content: center;
}

.section-head--left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: 640px;
}

.section-head--left h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
}

.why--top {
  padding-top: 56px;
  padding-bottom: 48px;
}

/* ---------- Light product-page grid ---------- */
.why--grid {
  position: relative;
}

.page-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.page-grid__cells {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, 32px);
  grid-auto-rows: 32px;
}

.page-grid__cells span {
  display: block;
  background-color: #C5D0DC;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.page-grid__cells span.is-active {
  animation-name: pageGridCellPulse;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.page-grid__cells span:hover {
  opacity: 0.5 !important;
}

@keyframes pageGridCellPulse {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 0.32;
  }
}

.page-grid__lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(197, 208, 220, 0.55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(197, 208, 220, 0.55) 1px, transparent 1px);
  background-size: 32px 32px;
}

.why--grid > .container {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.why--grid .section-head,
.why--grid .video-peek {
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .page-grid__cells span {
    animation: none;
    opacity: 0;
  }
}

/* ---------- Product video peek (inner pages) ---------- */
.page-inner .why:has(.video-peek) {
  padding-bottom: 0;
  overflow: hidden;
}

.page-inner .why:has(.video-peek) .section-head {
  margin-bottom: 64px;
}

.page-inner .why:has(.video-peek) .section-head h1 {
  font-size: clamp(2.2rem, 4vw, 2.5rem);
}

.video-peek {
  display: block;
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  aspect-ratio: 1600 / 380;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: var(--bg-soft);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-elevated);
  cursor: pointer;
  transition: box-shadow 0.22s ease;
}

.video-peek:hover,
.video-peek:focus-visible {
  box-shadow: 0 16px 24px rgba(11, 37, 84, 0.2);
}

.video-peek:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.video-peek__frame {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.video-peek__media {
  width: 100%;
  height: auto;
  display: block;
}

.video-peek::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 11, 15, 0.04) 0%, rgba(11, 11, 15, 0.18) 100%);
  z-index: 1;
  pointer-events: none;
  transition: background-color 0.2s ease;
}

.video-peek:hover::before,
.video-peek:focus-visible::before {
  background: linear-gradient(180deg, rgba(11, 11, 15, 0.1) 0%, rgba(11, 11, 15, 0.28) 100%);
}

.video-peek__play {
  position: absolute;
  top: 54%;
  left: 50%;
  z-index: 2;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 12px 32px rgba(11, 11, 15, 0.22);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  pointer-events: none;
}

.video-peek__play svg {
  margin-left: 3px;
}

.video-peek:hover .video-peek__play,
.video-peek:focus-visible .video-peek__play {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--blue);
  color: var(--white);
}

.video-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 11, 15, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--fade-modal) var(--ease-out), visibility var(--fade-modal) var(--ease-out);
}

.video-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.video-modal-overlay[hidden] {
  display: none;
}

.video-modal {
  position: relative;
  width: min(1100px, 100%);
  background: var(--ink);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity var(--fade-modal) var(--ease-out), transform var(--fade-modal) var(--ease-out);
}

.video-modal-overlay.is-open .video-modal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.video-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(11, 11, 15, 0.18);
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.video-modal__close:hover {
  background: var(--white);
  color: var(--blue);
  transform: scale(1.05);
}

.video-modal__close:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.video-modal__player {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(82vh, 100dvh - 48px);
  background: #0b0b0f;
}


.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 32px;
}

.logo-placeholder {
  width: 140px;
  height: 72px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(0, 71, 171, 0.35);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.logo-placeholder--studio {
  width: 120px;
}

.hero-panel__inner--single {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  grid-template-areas: "content";
  align-content: end;
  padding-top: var(--header-h);
  padding-bottom: clamp(48px, 8vh, 96px);
}

.hero-panel__inner--single .hero-panel__content {
  justify-content: flex-end;
  align-self: end;
  padding: 0;
  width: 100%;
}

.site-nav a[aria-current="page"] {
  color: var(--white);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: currentColor;
  pointer-events: none;
}

.site-header--scrolled .site-nav a[aria-current="page"] {
  color: var(--blue);
}

/* ---------- Municipal features ---------- */
.muni-features {
  padding: 96px 0;
  background: var(--white);
}

.muni-feature-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.muni-feature {
  border: 1px solid var(--line-on-white);
  border-radius: var(--radius-md);
  padding: 32px 36px;
  background: var(--bg-soft);
}

.muni-feature__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
}

.muni-feature__num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue);
  font-size: 0.9rem;
}

.muni-feature__head h3 {
  font-size: 1.35rem;
  color: var(--ink);
}

.muni-feature__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.muni-feature__items li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px 16px;
  align-items: start;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-on-white);
}

.muni-feature__item-id {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--blue);
}

.muni-feature__items p {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
}

.status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.status-badge--active {
  background: rgba(0, 71, 171, 0.12);
  color: var(--blue);
}

.status-badge--testing {
  background: rgba(11, 11, 15, 0.08);
  color: var(--muted);
}

.muni-feature__note {
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
}

/* ---------- Blog listing ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-on-white);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.blog-card:hover,
.blog-card:focus-visible {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--blue) 28%, transparent);
  box-shadow: var(--shadow-lg);
}

.blog-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.blog-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--blue-soft);
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.blog-card:hover .blog-card__media img {
  transform: scale(1.03);
}

.blog-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  flex: 1;
}

.blog-card__kicker {
  font-size: 0.8125rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--blue);
}

.blog-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: var(--ink);
}

.blog-card__excerpt {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
  flex: 1;
}

.blog-card__meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.blog-card__cta {
  font-weight: 700;
  color: var(--blue);
  font-size: 0.95rem;
  margin-top: 6px;
}

/* ---------- Article ---------- */
.article {
  padding: 48px 0 96px;
}

.article__header {
  max-width: 720px;
  margin: 0 auto 32px;
}

.article__header .eyebrow {
  margin-bottom: 12px;
}

.article__header h1 {
  font-size: clamp(2.2rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--ink);
}

.article__lead {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.65;
}

.article__meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 16px;
}

.article__hero {
  max-width: 960px;
  margin: 0 auto 48px;
}

.article__hero img,
.article__figure img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.article__hero img {
  aspect-ratio: 16 / 9;
}

.article__hero figcaption,
.article__figure figcaption {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--muted);
}

.article__body {
  max-width: 720px;
  margin: 0 auto;
}

.article__body h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 36px 0 14px;
  color: var(--ink);
}

.article__body p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

.article__body a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article__body ul {
  list-style: disc;
  padding-left: 1.25em;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.article__body li + li {
  margin-top: 8px;
}

.article__figure {
  margin: 32px 0;
}

.article__figure img {
  aspect-ratio: 4 / 3;
}

.article__nav {
  max-width: 720px;
  margin: 48px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line-on-white);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.article__nav a {
  color: var(--blue);
  font-weight: 700;
}

.article__nav a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Sobre (team) ---------- */
.why--top .section-head {
  margin-bottom: 40px;
}

.sobre-intro__text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.sobre-intro__text p {
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.65;
}

.sobre-team {
  padding: 80px 0 96px;
  background: var(--bg-soft);
}

.sobre-team .section-head {
  max-width: 720px;
  margin: 0 auto 20px;
}

.house-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 32px 88px;
}

.house {
  position: relative;
  width: min(280px, 52%);
  aspect-ratio: 220 / 260;
  margin: 0 auto;
}

.house__outline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--blue);
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.house__outline path {
  fill: var(--white);
  stroke: currentColor;
  stroke-width: 8;
  stroke-linejoin: miter;
  stroke-miterlimit: 12;
  stroke-linecap: square;
}

.house__logo {
  position: absolute;
  left: 24%;
  right: 24%;
  top: 48%;
  bottom: 18%;
  width: auto;
  height: auto;
  transform: none;
  background: var(--blue);
  -webkit-mask: url("../assets/logo.svg") center / contain no-repeat;
  mask: url("../assets/logo.svg") center / contain no-repeat;
  pointer-events: none;
  z-index: 0;
}

.house__piece {
  position: absolute;
  inset: 0;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  text-align: center;
  z-index: 1;
  pointer-events: none;
}

.house__piece:hover,
.house__piece:focus-visible,
.house__piece.is-open {
  color: var(--blue-dark);
  z-index: 2;
}

.house__piece:focus-visible .house__line {
  stroke-width: 12;
}

.house__stroke {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.house__hit,
.house__line {
  fill: none;
  stroke-linecap: butt;
  stroke-linejoin: miter;
}

.house__hit {
  stroke: transparent;
  stroke-width: 28;
  pointer-events: stroke;
}

.house__line {
  stroke: currentColor;
  stroke-width: 8;
  pointer-events: none;
  opacity: 0;
}

.house__piece:hover .house__line,
.house__piece:focus-visible .house__line,
.house__piece.is-open .house__line {
  opacity: 1;
}

.house__role {
  position: absolute;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.15;
  color: inherit;
  pointer-events: auto;
  cursor: pointer;
  white-space: nowrap;
  padding: 8px 10px;
}

.house__piece--roof-left .house__role,
.house__piece--roof-right .house__role {
  top: 10%;
  width: auto;
  white-space: nowrap;
  text-align: center;
}

.house__piece--roof-left .house__role {
  left: 19%;
  transform: translate(-50%, -50%) rotate(-43deg);
}

.house__piece--roof-right .house__role {
  left: 80%;
  right: auto;
  transform: translate(-50%, -50%) rotate(43deg);
}

.house__piece--wall-left .house__role {
  right: 108%;
  top: 62%;
  transform: translateY(-50%);
  width: 118px;
  white-space: normal;
}

.house__piece--wall-right .house__role {
  left: 108%;
  top: 62%;
  transform: translateY(-50%);
}

.house__piece--floor .house__role {
  left: 50%;
  top: calc(100% + 18px);
  transform: translateX(-50%);
}

.house__bubble {
  position: absolute;
  z-index: 4;
  width: max-content;
  max-width: min(250px, 68vw);
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--blue);
  box-shadow: 0 14px 36px rgba(0, 71, 171, 0.18);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.house__bubble::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--white);
  border-right: 1.5px solid var(--blue);
  border-bottom: 1.5px solid var(--blue);
}

.house__piece:hover .house__bubble,
.house__piece:focus-visible .house__bubble,
.house__piece.is-open .house__bubble {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.house__piece--roof-left .house__bubble {
  left: 4%;
  bottom: 78%;
  transform: translate(0, 4px);
}

.house__piece--roof-left:hover .house__bubble,
.house__piece--roof-left:focus-visible .house__bubble,
.house__piece--roof-left.is-open .house__bubble {
  transform: none;
}

.house__piece--roof-left .house__bubble::after {
  top: 100%;
  left: 36px;
  margin-top: -5px;
  transform: rotate(45deg);
}

.house__piece--roof-right .house__bubble {
  right: 4%;
  left: auto;
  bottom: 78%;
  transform: translate(0, 4px);
}

.house__piece--roof-right:hover .house__bubble,
.house__piece--roof-right:focus-visible .house__bubble,
.house__piece--roof-right.is-open .house__bubble {
  transform: none;
}

.house__piece--roof-right .house__bubble::after {
  top: 100%;
  right: 36px;
  left: auto;
  margin-top: -5px;
  transform: rotate(45deg);
}

.house__piece--wall-left .house__bubble {
  right: calc(100% + 8px);
  left: auto;
  top: 48%;
  transform: translate(4px, 0);
}

.house__piece--wall-left:hover .house__bubble,
.house__piece--wall-left:focus-visible .house__bubble,
.house__piece--wall-left.is-open .house__bubble {
  transform: none;
}

.house__piece--wall-left .house__bubble::after {
  left: 100%;
  top: 22px;
  margin-left: -5px;
  transform: rotate(-45deg);
}

.house__piece--wall-right .house__bubble {
  left: calc(100% + 8px);
  right: auto;
  top: 48%;
  transform: translate(-4px, 0);
}

.house__piece--wall-right:hover .house__bubble,
.house__piece--wall-right:focus-visible .house__bubble,
.house__piece--wall-right.is-open .house__bubble {
  transform: none;
}

.house__piece--wall-right .house__bubble::after {
  right: 100%;
  top: 22px;
  margin-right: -5px;
  transform: rotate(135deg);
}

.house__piece--floor .house__bubble {
  left: 50%;
  top: calc(100% + 42px);
  transform: translate(-50%, -4px);
}

.house__piece--floor:hover .house__bubble,
.house__piece--floor:focus-visible .house__bubble,
.house__piece--floor.is-open .house__bubble {
  transform: translate(-50%, 0);
}

.house__piece--floor .house__bubble::after {
  bottom: 100%;
  left: 50%;
  margin-bottom: -5px;
  transform: translateX(-50%) rotate(-135deg);
}

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

  .home-features__track {
    transition: none;
  }

  .modal-overlay,
  .booking-modal-overlay,
  .video-modal-overlay,
  .modal,
  .booking-modal,
  .video-modal,
  .modal__side-nav,
  .modal__body {
    transition: none;
  }

  .modal,
  .booking-modal,
  .video-modal,
  .modal__side-nav {
    opacity: 1;
    transform: none;
  }
}

.sobre-mission {
  padding: 96px 0;
}

.sobre-mission .section-head {
  max-width: 900px;
}

.sobre-mission__body {
  max-width: 900px;
}

.sobre-mission__body p {
  color: var(--muted);
  font-size: clamp(1.12rem, 1.8vw, 1.35rem);
  line-height: 1.7;
  margin-bottom: 22px;
}

.sobre-mission__body p:last-child {
  margin-bottom: 0;
}

/* ---------- Pricing ---------- */
/* Extra room in the hero so the cards can be pulled up over its grid
   without crowding the lead paragraph. */
.why--pricing {
  padding-bottom: 104px;
}

.pricing {
  position: relative;
  z-index: 2;
  margin-top: -56px;
  padding: 0 0 96px;
  background: transparent;
}

.pricing-toggle {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* The hero container is click-through so hover reaches the grid behind it. */
.why--grid .pricing-toggle {
  pointer-events: auto;
}

.pricing-chip {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line-on-white);
  background: var(--white);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pricing-chip:hover {
  border-color: color-mix(in srgb, var(--blue) 45%, transparent);
  color: var(--blue);
}

.pricing-chip[aria-selected="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.pricing-chip:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 380px));
  justify-content: center;
  gap: 28px;
  align-items: stretch;
}

.pricing-grid[hidden] {
  display: none;
}

.plan-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line-on-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
}

.plan-card--featured {
  border: 1.5px solid var(--blue);
  box-shadow: 0 24px 28px rgba(11, 37, 84, 0.18);
}

.plan-card__kicker {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--blue);
  margin-bottom: 16px;
}

.plan-card__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.plan-card__period {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--muted);
  margin-left: 4px;
}

.plan-card__desc {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.plan-card__list {
  margin: 24px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line-on-white);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.plan-card__list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink);
}

.plan-card__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.plan-card__cta {
  margin-top: 32px;
  width: 100%;
}

.plan-card__note {
  margin-top: 14px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}

.pricing-band {
  margin-top: 28px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--bg-soft);
  border: 1px solid var(--line-on-white);
  border-radius: var(--radius-md);
}

.pricing-band__text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}

.pricing-band__link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--blue);
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.pricing-band__link:hover {
  color: var(--blue-dark);
  border-bottom-color: currentColor;
}

.pricing-band__link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
  .why-card {
    border-right: none !important;
  }
  .why-card:not(:last-child) {
    border-bottom: 1px solid var(--line-on-white) !important;
  }

  .hero-panel__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto auto;
    grid-template-areas:
      "brand"
      "content"
      "art"
      "meta";
    gap: 0;
  }

  .hero-panel__inner--single {
    grid-template-rows: 1fr;
    grid-template-areas: "content";
    align-content: end;
  }

  .hero-panel__art {
    border-left: none;
    border-top: 1px solid var(--line-on-blue);
    padding: 32px 0;
  }

  .blueprint-art {
    max-width: 260px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

  .pricing-band {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  .home-features__head {
    flex-direction: column;
    gap: 12px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto;
  }

  .house-wrap {
    padding: 48px 12px 80px;
  }

  .house {
    width: min(200px, 46vw);
  }

  .house__role {
    font-size: 0.88rem;
  }

  .house__piece--wall-left .house__role {
    width: 96px;
  }

  .house__bubble,
  .house__piece--roof-left .house__bubble,
  .house__piece--roof-right .house__bubble,
  .house__piece--wall-left .house__bubble,
  .house__piece--wall-right .house__bubble,
  .house__piece--floor .house__bubble {
    left: 50%;
    right: auto;
    top: 58%;
    bottom: auto;
    width: min(200px, 62%);
    max-width: none;
    transform: translate(-50%, 8px);
  }

  .house__piece--floor .house__bubble {
    top: calc(100% + 42px);
    bottom: auto;
  }

  .house__piece:hover .house__bubble,
  .house__piece:focus-visible .house__bubble,
  .house__piece.is-open .house__bubble,
  .house__piece--roof-left:hover .house__bubble,
  .house__piece--roof-left:focus-visible .house__bubble,
  .house__piece--roof-left.is-open .house__bubble,
  .house__piece--roof-right:hover .house__bubble,
  .house__piece--roof-right:focus-visible .house__bubble,
  .house__piece--roof-right.is-open .house__bubble,
  .house__piece--wall-left:hover .house__bubble,
  .house__piece--wall-left:focus-visible .house__bubble,
  .house__piece--wall-left.is-open .house__bubble,
  .house__piece--wall-right:hover .house__bubble,
  .house__piece--wall-right:focus-visible .house__bubble,
  .house__piece--wall-right.is-open .house__bubble {
    transform: translate(-50%, 0);
  }

  .house__piece--floor:hover .house__bubble,
  .house__piece--floor:focus-visible .house__bubble,
  .house__piece--floor.is-open .house__bubble {
    transform: translate(-50%, 0);
  }

  .house__bubble::after,
  .house__piece--roof-left .house__bubble::after,
  .house__piece--roof-right .house__bubble::after,
  .house__piece--wall-left .house__bubble::after,
  .house__piece--wall-right .house__bubble::after,
  .house__piece--floor .house__bubble::after {
    display: none;
  }

  .muni-feature__items li {
    grid-template-columns: 1fr;
  }

  .status-badge {
    justify-self: start;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 56px;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open::before {
    content: "";
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(11, 11, 15, 0.45);
    z-index: 99;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header__right {
    gap: 12px;
  }

  .site-header__actions {
    gap: 8px;
  }

  .site-header__cta {
    height: 36px;
    padding: 0 16px;
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 101;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ink);
    background: var(--white);
    border-bottom: 1px solid var(--line-on-white);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  }

  body.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-on-white);
    color: var(--ink);
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .site-nav a:hover {
    color: var(--blue);
  }

  .site-nav a[aria-current="page"] {
    color: var(--blue);
  }

  .site-nav a[aria-current="page"]::after {
    display: none;
  }

  .page-home .site-nav {
    color: var(--ink);
  }

  .hero-panel__grid {
    background-size: 40px 40px;
  }

  .hero-panel__grid-cells {
    grid-template-columns: repeat(auto-fill, 40px);
    grid-auto-rows: 40px;
  }

  .page-grid__cells {
    grid-template-columns: repeat(auto-fill, 24px);
    grid-auto-rows: 24px;
  }

  .page-grid__lines {
    background-size: 24px 24px;
  }

  .hero-panel__title {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .why,
  .features,
  .book {
    padding: 64px 0;
  }

  .why--pricing {
    padding-bottom: 80px;
  }

  .pricing {
    margin-top: -40px;
    padding: 0 0 64px;
  }

  .plan-card {
    padding: 24px;
  }

  .pricing-band {
    padding: 20px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .page-inner .why:has(.video-peek) {
    padding-bottom: 0;
  }

  .video-peek {
    aspect-ratio: 1600 / 760;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  .video-peek__play {
    width: 60px;
    height: 60px;
  }

  .video-modal-overlay {
    padding: 12px;
  }

  .video-modal__player {
    max-height: min(78vh, 100dvh - 24px);
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card__body {
    padding: 20px 68px 24px 20px;
  }

  .feature-card__title {
    font-size: 1.05rem;
  }

  .feature-card--sm .feature-card__body {
    padding: 14px 44px 16px 14px;
  }

  .feature-card--sm .feature-card__title {
    font-size: 0.95rem;
  }

  .home-features + .home-features {
    margin-top: 48px;
  }

  .home-features__nav {
    width: 44px;
    height: 44px;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__nav {
    flex-direction: column;
    gap: 10px;
  }

  .site-footer__copy {
    text-align: left;
  }

  .modal__content {
    padding: 24px 24px 32px;
  }

  /* Not enough horizontal room to flank the modal — hide the side
     buttons and rely on keyboard arrows / tapping another card instead. */
  .modal-overlay {
    gap: 0;
  }

  .modal__side-nav {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-panel__ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-panel__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .book-embed {
    padding: 4px;
  }

  .book-flow {
    --demo-pad-x: 20px;
    padding: 24px var(--demo-pad-x) 28px;
  }

  .book-flow.demo-flow--calendly {
    padding: 0;
  }

  .demo-flow__choices {
    grid-template-columns: 1fr;
  }

  .demo-flow__contact-form {
    flex-direction: column;
  }

  .demo-flow__contact-form .btn {
    width: 100%;
  }

  .demo-flow__actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
}
