/* -------------------------------------------------------------------------- */
/* Design tokens — keep in sync with Figma                                    */
/* -------------------------------------------------------------------------- */
:root {
  /* Body, nav, buttons, card titles, non-accent headings */
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  /* Red / emphasized words in headings (italic) */
  --font-display: "Inter", system-ui, -apple-system, sans-serif;
  --color-red: #c9222f;
  --color-red-dark: #a01d28;
  --color-red-soft: rgba(192, 36, 45, 0.85);
  --color-text: #231f1e;
  --color-text-muted: rgba(35, 31, 30, 0.72);
  --color-text-soft: rgba(35, 31, 30, 0.52);
  --color-border: #e0e0e0;
  --color-bg-muted: #f9f9f9;
  --color-bg-pink: #fcf4f5;
  --color-star: #d4a017;
  --container: 1280px;
  --section-y: clamp(3.5rem, 8vw, 6.25rem);
  --radius-pill: 999px;
  --radius-card: 20px;
  --radius-sm: 10px;
  /* Responsive breakpoints (reference layout) */
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
  /* Headings — max size matches current desktop; fluid on smaller viewports */
  --figma-hero-title: clamp(2rem, 3vw + 1.25rem, 4rem); /* max 64px */
  --figma-hero-sub-lg: clamp(1.25rem, 2.5vw + 0.75rem, 1.875rem); /* max 30px */
  --figma-h2: clamp(1.75rem, 2.5vw + 1.25rem, 3rem); /* max 48px */
  --figma-card-title: clamp(1.125rem, 2vw + 0.75rem, 1.5rem); /* max 24px */
  --figma-wstep-title: clamp(1.125rem, 2vw + 0.75rem, 1.625rem); /* max 26px */
  --figma-wstep-badge: clamp(1.125rem, 2vw + 0.75rem, 1.5rem); /* max 24px */
  --figma-tcard-label: clamp(1rem, 2vw + 0.75rem, 1.125rem); /* max 18px */
}

/* -------------------------------------------------------------------------- */
/* Layout                                                                    */
/* -------------------------------------------------------------------------- */
.site-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-root > main {
  flex: 1 0 auto;
}

.home-page {
  overflow-x: hidden;
  position: relative;
  background-color: #fff;
  padding: var(--home-page-gutter);
}

/* Subtle full-page background (design reference) — sits behind sections */
.home-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/images/figma-home-reference.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

.home-page > * {
  position: relative;
  z-index: 1;
}

/* Inner pages (404, etc.) */
.page-404 {
  padding: var(--section-y) 0;
}

.page-404__title {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--color-text);
}

.page-404__text,
.page-404__hint {
  font-family: var(--font-sans);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0 0 1.25rem;
  max-width: 40rem;
}

.page-404__hint code {
  font-size: 0.9em;
}

/* Content width 1280px; horizontal inset matches --figma-inline */
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--figma-inline);
  padding-right: var(--figma-inline);
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  margin: 0 0 2.5rem;
  color: var(--color-text);
}

/* Red italic words/phrases inside headings */
.accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--color-red);
}

.section-title .accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--color-red);
}

.section-title .accent-strong {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--color-red);
}

.apart-title-em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--color-red);
}

/* -------------------------------------------------------------------------- */
/* Header                                                                    */
/* -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(224, 224, 224, 0.6);
}

.site-header__topbar {
  background: #f2f2f2;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.site-header__topbar-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.site-header__topbar-phone img {
  width: 13px;
  height: 13px;
}

.site-header__social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-header__social a {
  display: flex;
  opacity: 0.85;
}

.site-header__social a:hover {
  opacity: 1;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  flex-wrap: wrap;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: min(100%, 280px);
}

.site-brand__logo {
  display: block;
  width: 100%;
  max-width: 236px;
  height: auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--color-text);
}

.site-logo__mark {
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 1.75rem;
}

.site-nav__link {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.site-nav__link:hover {
  color: var(--color-text);
}

.site-nav__link.is-active {
  color: var(--color-red);
  font-weight: 600;
}

.site-header__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem 1rem;
}

.btn--portal {
  background: #fff;
  color: var(--color-red);
  border: 1px solid var(--color-red);
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn--portal:hover {
  background: rgba(192, 36, 45, 0.06);
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text);
}

.phone-link img {
  width: 14px;
  height: 14px;
}

.btn {
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

/* Header “Get Started” — white fill, red border + text (reference layout) */
.btn--header {
  background: #fff;
  color: var(--color-red);
  border: 1px solid var(--color-red);
}

.btn--header:hover {
  background: rgba(192, 36, 45, 0.06);
  color: var(--color-red-dark);
  border-color: var(--color-red-dark);
}

.btn--primary {
  background: var(--color-red);
  color: #fff;
  border: 1px solid var(--color-red);
}

.btn--primary:hover {
  background: var(--color-red-dark);
  border-color: var(--color-red-dark);
}

.btn--outline {
  background: #fff;
  color: var(--color-text-muted);
  border: 1px solid rgba(0, 0, 0, 0.35);
}

.btn--outline:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
  text-decoration: underline;
  padding: 0.25rem 0;
}

/* Watch Video — red outline (reference hero) */
.btn--video {
  background: transparent;
  color: var(--color-red);
  border: 2px solid var(--color-red);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.btn--video:hover {
  background: rgba(192, 36, 45, 0.08);
  color: var(--color-red-dark);
  border-color: var(--color-red-dark);
}

/* Hero secondary — white surface (Figma home reference) */
.btn--hero-light {
  background: #fff;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  font-weight: 600;
}

.btn--hero-light:hover {
  border-color: rgba(35, 31, 30, 0.45);
  background: #fafafa;
}

.phone-link--header {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.phone-link--header:hover {
  color: var(--color-red);
}

.phone-link__num {
  font-variant-numeric: tabular-nums;
}

/* Header CTA — solid red (mockup) */
.btn--header-cta {
  background: var(--color-red);
  color: #fff;
  border: 1px solid var(--color-red);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.55rem 1.35rem;
}

.btn--header-cta:hover {
  background: var(--color-red-dark);
  border-color: var(--color-red-dark);
  color: #fff;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.5rem;
  }

  .site-header__inner.nav-open .site-nav {
    display: flex;
  }

  .site-header__cta {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
  }

  .phone-link--header {
    white-space: normal;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .phone-link--header {
    font-size: 0.75rem;
  }
}

/* -------------------------------------------------------------------------- */
/* Hero — full-bleed BG → container → 10px frame → plate (R4) + left shadow (R5) */
/* -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, var(--section-y));
  overflow: hidden;
  background: #1a1a1a;
  border: none;
  border-image: none;
}

.hero__section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}

.hero__section-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.hero__outer {
  position: relative;
  z-index: 1;
}

/* Inset from main container edges — matches --home-page-gutter */
.hero__frame {
  padding: var(--home-page-gutter);
}

.hero__plate {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: min(72vh, 560px);
  display: flex;
  align-items: stretch;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
}

/* Rectangle 4 — inner panel background */
.hero__plate-layer--bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Rectangle 5 — left shadow overlay */
.hero__plate-layer--shadow {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: min(52%, 480px);
  height: 100%;
  object-fit: cover;
  object-position: left center;
  pointer-events: none;
}

.hero__plate-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  min-width: 0;
}

/* Two-column banner inside the plate */
.hero__banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  width: 100%;
}

.hero__content {
  min-width: 0;
  max-width: 34rem;
}

.hero__pill {
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem 0.4rem 0.85rem;
  border: 1px solid rgba(192, 36, 45, 0.35);
  border-radius: 43px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 1);
  margin-bottom: 1.25rem;
}

p.hero__pill {
  text-align: center;
}

.hero--reference .hero__pill {
  border-color: rgba(35, 31, 30, 1);
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  justify-content: center;
  letter-spacing: normal;
  text-transform: none;
  box-shadow: none;
  background: unset;
}

.hero__pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  color: rgba(201, 34, 47, 1);
  background: rgba(201, 34, 47, 1);
  flex-shrink: 0;
}

.hero__title {
  font-family: var(--font-sans);
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.08;
  margin: 0 0 1.25rem;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.hero__title-line {
  display: block;
}

/* First line: Inter */
.hero__title--sans {
  font-family: var(--font-sans);
  font-weight: 400;
  color: rgba(35, 31, 30, 1);
}

/* Second line: Playfair italic red */
.hero__title--display {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  color: rgba(35, 31, 30, 1);
}

.hero__lead {
  margin: 0 0 1.75rem;
  max-width: 36rem;
}

.hero__subhead {
  font-family: var(--font-sans);
  margin-top: 0.75rem;
}

.hero__subhead:first-child {
  margin-top: 0;
}

.hero__subhead-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
}

.hero__subhead-title--accent {
  color: var(--color-red-soft);
}

.hero__subhead-meta {
  margin-top: 0.25rem;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.hero__subhead--compact .hero__subhead-meta {
  margin-top: 0.15rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.hero-cta-strip {
  margin-top: 1.75rem;
  padding: 0;
  border-top: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.hero-cta-strip__link {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  text-decoration: underline;
}

.hero-cta-strip__link:hover {
  color: var(--color-red);
}

/* Right column image inside plate */
.hero__media {
  position: relative;
  min-width: 0;
  border-radius: calc(var(--radius-card) - 6px);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  aspect-ratio: 16 / 9;
  max-height: min(48vh, 480px);
}

.hero__media-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  background-color: rgba(255, 255, 255, 1);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.hero__chips {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__chip {
  position: absolute;
  max-width: 220px;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 28px rgba(35, 31, 30, 0.18);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: rgba(35, 31, 30, 0.82);
  backdrop-filter: blur(10px);
}

.hero__chip--top {
  top: 26%;
  left: 12%;
}

.hero__chip--right {
  top: 50%;
  right: 6%;
  transform: translateY(-50%);
}

.hero__chip--bottom {
  bottom: 10%;
  left: 22%;
}

@media (max-width: 1024px) {
  .hero__banner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .hero__content {
    max-width: none;
  }

  .hero__media {
    max-height: none;
    aspect-ratio: 16 / 9;
    order: 2;
  }

  .hero__content {
    order: 1;
  }

  .hero__plate {
    min-height: 0;
  }

  .hero__plate-layer--shadow {
    width: min(65%, 100%);
    opacity: 0.95;
  }
}

@media (max-width: 767px) {
  .hero__frame {
    padding: var(--home-page-gutter);
  }

  .hero__chips {
    display: none;
  }

  .hero__media-img {
    object-position: center;
  }

  .hero__media {
    aspect-ratio: 16 / 10;
    min-height: 200px;
  }

  .hero__plate-content {
    padding: 1rem 1rem 1.25rem;
  }
}

/* -------------------------------------------------------------------------- */
/* Video band                                                                */
/* -------------------------------------------------------------------------- */
.section-video {
  padding: var(--section-y) 0;
  background: var(--color-bg-muted);
}

.video-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.video-band__title {
  flex: 1 1 min(100%, 380px);
  max-width: 520px;
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
  color: var(--color-text);
}

.video-band__title .accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--color-red);
}

.video-frame {
  flex: 1 1 min(100%, 560px);
  max-width: 640px;
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #111;
}

.video-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
}

.video-frame__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.2s;
}

.video-frame__play:hover {
  background: rgba(0, 0, 0, 0.35);
}

.video-frame__play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  color: var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.video-frame__play-btn svg {
  margin-left: 4px;
}

@media (max-width: 900px) {
  .video-band {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .video-band__title {
    max-width: none;
  }

  .video-frame {
    max-width: none;
    width: 100%;
  }
}

/* -------------------------------------------------------------------------- */
/* Apart grid (2x2)                                                          */
/* -------------------------------------------------------------------------- */
.section-apart {
  padding: var(--section-y) 0;
  background: var(--color-bg-muted);
}

.grid-apart {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.card-apart {
  flex: 1 1 calc(50% - 1rem);
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-apart__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(201, 34, 47, 0.13);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-apart__icon img {
  width: 22px;
  height: 22px;
}

.card-apart h3 {
  font-family: var(--font-sans);
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text);
}

.card-apart p {
  font-family: var(--font-sans);
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-text-soft);
}

/* -------------------------------------------------------------------------- */
/* Services row                                                              */
/* -------------------------------------------------------------------------- */
.section-services {
  padding: var(--section-y) 0;
  background: #fff;
}

.services-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.card-service {
  flex: 1 1 160px;
  max-width: 200px;
  min-width: 140px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.25rem 1rem;
  text-align: center;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: center;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.card-service__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(201, 34, 47, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-service__icon img {
  width: 20px;
  height: 20px;
}

.card-service h3 {
  font-family: var(--font-sans);
  margin: 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-text);
}

.card-service__meta {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-text-soft);
  line-height: 1.35;
}

.card-service a {
  font-size: 0.875rem;
  color: var(--color-red);
  font-weight: 500;
}

.card-service a:hover {
  text-decoration: underline;
}

/* -------------------------------------------------------------------------- */
/* Workflow                                                                  */
/* -------------------------------------------------------------------------- */
.section-workflow {
  padding: var(--section-y) 0;
  background: #fff;
}

.section-workflow .section-title {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.workflow-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.workflow-step {
  flex: 1 1 240px;
  max-width: 360px;
  padding: 1rem 0;
}

.workflow-step__visual {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.workflow-step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  background: rgba(201, 34, 47, 0.1);
  color: var(--color-red);
}

.workflow-step__icon svg {
  display: block;
}

.workflow-step__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(201, 34, 47, 0.08);
  color: var(--color-red);
  font-size: 0.9375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.workflow-step h3 {
  font-family: var(--font-sans);
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
}

.workflow-step p {
  font-family: var(--font-sans);
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-soft);
  line-height: 1.55;
}

.check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.check-grid--wrap {
  margin-top: 0.25rem;
  padding: 1.25rem 1.25rem 1.35rem;
  background: var(--color-bg-muted);
  border: 1px solid rgba(224, 224, 224, 0.85);
  border-radius: var(--radius-card);
}

.check-cell {
  flex: 1 1 calc(50% - 0.5rem);
  min-width: min(100%, 260px);
  background: var(--color-bg-muted);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.25rem 1.25rem 3rem;
  position: relative;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

@media (max-width: 640px) {
  .check-cell {
    flex: 1 1 100%;
  }
}

.check-cell::before {
  content: "✓";
  position: absolute;
  left: 0.9rem;
  top: 1.1rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-red);
  line-height: 1;
}

/* -------------------------------------------------------------------------- */
/* ECG feature                                                               */
/* -------------------------------------------------------------------------- */
.section-ecg {
  padding: var(--section-y) 0;
  background: var(--color-bg-muted);
}

.ecg-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5rem 3rem;
}

.ecg-band__visual {
  flex: 1 1 320px;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.ecg-band__copy {
  flex: 1 1 320px;
}

.ecg-band__copy h2 {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  margin: 0 0 1rem;
  line-height: 1.2;
  color: var(--color-text);
}

.ecg-band__copy .accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--color-red);
}

.ecg-band__copy > p {
  font-family: var(--font-sans);
  margin: 0 0 1.25rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.ecg-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ecg-list li {
  font-family: var(--font-sans);
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.ecg-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 8px;
  height: 8px;
  background: var(--color-red);
  border-radius: 2px;
}

.ecg-list--checks li {
  padding-left: 1.65rem;
}

.ecg-list--checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: auto;
  height: auto;
  background: none;
  color: var(--color-red);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

/* -------------------------------------------------------------------------- */
/* Turnkey                                                                   */
/* -------------------------------------------------------------------------- */
.section-turnkey {
  padding: var(--section-y) 0;
  background: var(--color-bg-pink);
}

.grid-turnkey {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.card-turnkey {
  flex: 1 1 280px;
  background: #fff;
  border: 1px solid rgba(224, 224, 224, 0.8);
  border-radius: var(--radius-card);
  padding: 1.5rem;
}

.card-turnkey__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  background: rgba(201, 34, 47, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-turnkey__icon img {
  width: 24px;
  height: 24px;
}

.card-turnkey h3 {
  font-family: var(--font-sans);
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
}

.card-turnkey p {
  font-family: var(--font-sans);
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-soft);
  line-height: 1.55;
}

/* -------------------------------------------------------------------------- */
/* Testimonials                                                              */
/* -------------------------------------------------------------------------- */
.section-testimonials {
  padding: var(--section-y) 0;
  background: #fff;
}

.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}

.card-testimonial {
  flex: 1 1 280px;
  max-width: 380px;
  background: var(--color-bg-muted);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-testimonial__label {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #000;
}

.card-testimonial p {
  font-family: var(--font-sans);
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.stars {
  display: flex;
  gap: 4px;
}

.stars img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.card-testimonial__author {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.testimonial-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
}

.testimonial-dots span.is-active {
  background: var(--color-red);
}

/* -------------------------------------------------------------------------- */
/* AI testimonial                                                            */
/* -------------------------------------------------------------------------- */
.section-ai {
  padding: var(--section-y) 0;
  background: var(--color-bg-muted);
}

.ai-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem 3rem;
}

.ai-band__title {
  flex: 1 1 min(100%, 320px);
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  margin: 0;
  line-height: 1.2;
  color: var(--color-text);
}

.ai-band__title .accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--color-red);
}

.ai-band__title-rest {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 400;
  color: var(--color-text);
}

.ai-band__text {
  min-width: 0;
}

.ai-band__text .ai-band__title {
  margin: 0 0 0.75rem;
}

.ai-band__subtitle {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0;
  max-width: 28rem;
}

.ai-band__media {
  flex: 1 1 320px;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.ai-band__media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
}

.ai-band--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.ai-band--split .ai-band__text {
  flex: none;
  max-width: 36rem;
}

.ai-band--split .ai-band__media {
  flex: none;
}

@media (max-width: 900px) {
  .ai-band--split {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ai-band--split .ai-band__text {
    max-width: none;
  }

  .ai-band--split .ai-band__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .ai-band--split .ai-band__media {
    order: -1;
    max-width: 420px;
    margin: 0 auto;
  }
}

/* -------------------------------------------------------------------------- */
/* CTA                                                                       */
/* -------------------------------------------------------------------------- */
.section-cta {
  padding: calc(var(--section-y) + 1rem) 0;
  background: var(--color-bg-pink);
  text-align: center;
}

.section-cta h2 {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  margin: 0 0 1rem;
  color: var(--color-text);
}

.section-cta h2 .accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--color-red);
}

.section-cta p {
  font-family: var(--font-sans);
  max-width: 720px;
  margin: 0 auto 1.75rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.section-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.btn--cta-outline {
  background: #fff;
  color: var(--color-red);
  border: 2px solid var(--color-red);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
}

.btn--cta-outline:hover {
  background: rgba(192, 36, 45, 0.08);
  border-color: var(--color-red-dark);
  color: var(--color-red-dark);
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                    */
/* -------------------------------------------------------------------------- */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 1.5rem;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 3rem;
  padding-bottom: 2rem;
}

.site-footer__brand {
  flex: 1 1 260px;
}

.site-footer__brand p {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  max-width: 320px;
}

.site-footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  flex: 2 1 400px;
  justify-content: space-between;
}

.site-footer__col h4 {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-footer__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer__col a {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.site-footer__col a:hover {
  color: var(--color-red);
}

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.contact-line img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer__legal a:hover {
  color: var(--color-red);
}

.social-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.social-row a img {
  width: 20px;
  height: 20px;
}

.site-footer__contact-h {
  margin: 1.5rem 0 0.65rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.social-row--footer {
  gap: 0.85rem;
}

.social-icon--ig,
.social-icon--li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.social-icon--ig:hover,
.social-icon--li:hover,
.social-icon--tw:hover {
  color: var(--color-red);
}

.social-icon--tw {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

/* ==========================================================================
   Reference / mockup home — light hero, split layout, tighter responsiveness
   ========================================================================== */

/* Light hero: full-section BG image; copy left; right column is empty layout only (no img) */
.hero--reference {
  position: relative;
  isolation: isolate;
  padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(2.5rem, 6vw, 5rem);
  overflow: hidden;
  border-radius: 20px;
  border: 0 none transparent;
  border-image: none;
  background-color: #f5f5f5;
  background-image:
    url("/images/hero-panel-bg.png"),
    url("/images/hero-banner.jpg");
  background-size: cover, cover;
  background-position: 70% center;
  background-repeat: no-repeat;
}

/* Fade so headline stays readable on the left; photo reads on the right */
.hero--reference::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.97) 32%,
    rgba(255, 255, 255, 0.55) 52%,
    rgba(255, 255, 255, 0.12) 72%,
    transparent 100%
  );
}

.hero--reference__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 48%);
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.75rem);
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--figma-inline);
  padding-right: var(--figma-inline);
}

.hero--reference__copy {
  min-width: 0;
}

.hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-red);
  margin: 0 0 1rem;
}

.hero__kicker {
  font-family: var(--font-sans);
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-text);
  margin: 0 0 0.65rem;
  max-width: 38rem;
}

.hero__micro {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
  max-width: 36rem;
  line-height: 1.5;
}

.hero--reference .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-top: 0.25rem;
}

.hero--reference .hero__title--display {
  color: var(--color-red);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  line-height: 1.05;
}

.hero--reference .hero__title--sans {
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1.05;
  max-width: 14ch;
}

/* Empty column: preserves grid; photo comes from .hero--reference background only */
.hero--reference__visual {
  min-height: min(52vh, 520px);
  max-height: 640px;
  border-radius: var(--radius-card);
  pointer-events: none;
}

@media (max-width: 1024px) {
  .hero--reference__grid {
    grid-template-columns: 1fr;
  }

  .hero--reference__visual {
    order: -1;
    min-height: 200px;
    max-height: min(40vh, 360px);
    max-width: 100%;
  }

  .hero--reference::before {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(255, 255, 255, 0.75) 35%,
      rgba(255, 255, 255, 0.2) 58%,
      transparent 85%
    );
  }

  .hero--reference {
    background-position: center center;
  }

  .hero--reference__copy {
    text-align: center;
  }

  .hero--reference .hero__eyebrow {
    margin-left: auto;
    margin-right: auto;
  }

  .hero--reference .hero__kicker,
  .hero--reference .hero__micro {
    margin-left: auto;
    margin-right: auto;
  }

  .hero--reference .hero__actions {
    justify-content: center;
  }

  .hero--reference .hero__pill {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Workflow: subtle connector between steps (desktop) */
@media (min-width: 901px) {
  .workflow-steps {
    position: relative;
    padding-bottom: 0.5rem;
  }

  .workflow-steps::before {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    top: 1.75rem;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(192, 36, 45, 0.25) 15%,
      rgba(192, 36, 45, 0.25) 85%,
      transparent
    );
    pointer-events: none;
  }

  .workflow-step {
    position: relative;
    z-index: 1;
  }
}

/* Footer — reference multi-column */
.site-footer__top--reference {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) repeat(3, minmax(0, 0.85fr)) minmax(0, 1.05fr);
  gap: 2rem 1.75rem;
  align-items: start;
}

.site-footer__top--reference .site-footer__brand {
  flex: none;
}

.site-footer__address {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .site-footer__top--reference {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__top--reference .site-footer__col--follow {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .site-footer__top--reference {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer__top--reference .site-footer__brand {
    max-width: 100%;
  }

  .site-footer__top--reference .site-footer__brand .site-brand {
    justify-content: center;
  }

  .site-footer__address {
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
  }

  .site-footer__top--reference .site-footer__col ul {
    align-items: center;
  }

  .site-footer__top--reference .contact-line {
    justify-content: center;
  }

  .site-footer__top--reference .social-row {
    justify-content: center;
  }
}

/* Service cards: min width for 6-up row */
@media (max-width: 640px) {
  .card-service {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: calc(50% - 0.5rem);
    max-width: none;
  }
}

@media (max-width: 380px) {
  .card-service {
    flex: 1 1 100%;
    min-width: 100%;
  }
}

/* Apart grid: 2×2 → 1 col */
@media (max-width: 640px) {
  .card-apart {
    flex: 1 1 100%;
  }
}

/* Testimonials: stack on narrow */
@media (max-width: 720px) {
  .card-testimonial {
    max-width: none;
  }
}

/* ==========================================================================
   Figma home frame (1440px) — pixel-aligned desktop; fluid below
   ========================================================================== */

.site-root {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
}

.home-page--figma {
  padding: 0;
  background: #fff;
  overflow-x: hidden;
}

.home-page--figma::before {
  display: none;
}

.figma-container {
  width: 100%;
  max-width: 1440px;
  margin-left: 0;
  margin-right: 0;
  padding-left: var(--figma-inline);
  padding-right: var(--figma-inline);
  box-sizing: border-box;
}

.site-header .figma-container,
.site-footer .figma-container,
main .figma-container {
  margin-left: auto;
  margin-right: auto;
}

/* Header */
.site-header--figma {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(224, 224, 224, 0.6);
}

.site-header--figma .site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem 2rem;
  padding-top: 0.5rem;
  padding-bottom: 0.75rem;
}

.figma-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.figma-brand__mark {
  width: 236px;
  height: auto;
  max-width: 100%;
}

.figma-brand__tag {
  width: 236px;
  height: auto;
  max-width: 100%;
}

.figma-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.75rem;
}

.figma-nav__link {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  line-height: 20px;
  color: rgba(35, 31, 30, 0.7);
}

.figma-nav__link:hover {
  color: var(--color-text);
}

.figma-nav__link.is-active {
  color: var(--color-red);
}

.figma-header__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem 1rem;
}

.figma-header__portal {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.figma-header__portal:hover {
  color: var(--color-red);
}

.figma-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: var(--color-red);
}

.figma-phone__icon {
  flex-shrink: 0;
}

.figma-btn {
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.5rem;
  border-radius: 42px;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.figma-btn--outline-dark {
  background: #fff;
  color: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.7);
  min-width: 201px;
}

.figma-btn--outline-dark:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}

.figma-btn--solid {
  background: var(--color-red);
  color: #fff;
  border: 1px solid var(--color-red);
  min-width: 240px;
  font-weight: 400;
}

.figma-btn--solid:hover {
  background: var(--color-red-dark);
  border-color: var(--color-red-dark);
}

/* Small laptop: compact nav + smaller Request a Demo / header CTAs */
@media (max-width: 1440px) and (min-width: 901px) {
  .site-header--figma .site-header__inner {
    gap: 0.65rem 1rem;
    padding-top: 0.4rem;
    padding-bottom: 0.55rem;
  }

  .site-header--figma .figma-brand__mark {
    width: 200px;
  }

  .site-header--figma .figma-nav {
    gap: 0.35rem 0.9rem;
  }

  .site-header--figma .figma-nav__link {
    font-size: 15px;
    line-height: 1.2;
  }

  .site-header--figma .figma-header__cta {
    gap: 0.45rem 0.65rem;
  }

  .site-header--figma .figma-phone {
    font-size: 13px;
  }

  .site-header--figma .figma-header__portal {
    font-size: 13px;
  }

  .site-header--figma .figma-btn {
    min-height: 44px;
    padding: 0 1.1rem;
    font-size: 14px;
  }

  .site-header--figma .figma-btn--outline-dark {
    min-width: 158px;
  }
}

@media (max-width: 900px) {
  .site-header--figma {
    box-shadow: 0 1px 0 rgba(35, 31, 30, 0.06), 0 8px 32px rgba(35, 31, 30, 0.06);
  }

  .site-header--figma .site-header__inner {
    position: relative;
    grid-template-columns: 1fr auto;
    gap: 0.75rem 0.75rem;
    align-items: center;
    padding-top: 0.65rem;
    padding-bottom: 0.85rem;
  }

  .site-header--figma .nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(17, 14, 14, 0.35);
    backdrop-filter: blur(2px);
    border: 0;
    padding: 0;
    cursor: default;
  }

  .site-header--figma .nav-toggle {
    justify-self: end;
    z-index: 60;
  }

  .site-header--figma .figma-nav {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    margin: 0;
    gap: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
    box-shadow: 0 0 0 rgba(35, 31, 30, 0);
    overflow: hidden;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    z-index: 55;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* Closing: keep opacity + max-height in sync so the block below doesn’t jump */
    transition:
      max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.36s ease,
      padding 0.34s cubic-bezier(0.4, 0, 0.2, 1),
      border-color 0.25s ease,
      box-shadow 0.28s ease,
      visibility 0s linear 0.38s;
  }

  /* Explicitly target the hamburger <nav> element */
  .site-header--figma nav#primary-nav.figma-nav {
    display: flex;
    flex-direction: column;
  }

  .site-header--figma .site-header__inner.nav-open .figma-nav {
    max-height: calc(100vh - 96px);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding: 0.35rem 0;
    border-color: rgba(35, 31, 30, 0.08);
    box-shadow: 0 12px 40px rgba(35, 31, 30, 0.08);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    transition:
      max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.3s ease 0.04s,
      padding 0.34s cubic-bezier(0.4, 0, 0.2, 1),
      border-color 0.25s ease,
      box-shadow 0.28s ease,
      visibility 0s linear 0s;
  }

  .site-header--figma .figma-nav__link {
    order: 1;
    display: block;
    width: 100%;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.35;
    padding: 0.95rem 1.15rem;
    border-bottom: 1px solid rgba(35, 31, 30, 0.07);
    color: rgba(35, 31, 30, 0.88);
    opacity: 0;
    transition:
      background 0.2s ease,
      color 0.2s ease,
      opacity 0.2s ease;
  }

  /* Safety net: ensure all items in the opened panel stack full-width */
  .site-header--figma .figma-nav a.figma-nav__link {
    display: block;
    width: 100%;
  }

  .site-header--figma .figma-nav .figma-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-header--figma .site-header__inner.nav-open .figma-nav__link {
    opacity: 1;
  }

  /* Stagger in only while opening — no delays on close (prevents end-of-close hitch) */
  .site-header--figma .site-header__inner.nav-open .figma-nav__link:nth-child(1) {
    transition-delay: 0.06s;
  }

  .site-header--figma .site-header__inner.nav-open .figma-nav__link:nth-child(2) {
    transition-delay: 0.1s;
  }

  .site-header--figma .site-header__inner.nav-open .figma-nav__link:nth-child(3) {
    transition-delay: 0.14s;
  }

  .site-header--figma .site-header__inner.nav-open .figma-nav__link:nth-child(4) {
    transition-delay: 0.18s;
  }

  .site-header--figma .site-header__inner.nav-open .figma-nav__link:nth-child(5) {
    transition-delay: 0.22s;
  }

  .site-header--figma .figma-nav__link:last-child {
    border-bottom: none;
  }

  .site-header--figma .figma-nav__link:hover {
    background: rgba(201, 34, 47, 0.05);
    color: #231f1e;
  }

  .site-header--figma .figma-nav__link.is-active {
    color: var(--color-red);
    background: rgba(201, 34, 47, 0.06);
    box-shadow: inset 3px 0 0 var(--color-red);
  }

  /* Mobile: keep CTAs inside the hamburger menu only */
  .site-header--figma .figma-header__cta {
    display: none;
  }

  .site-header--figma .figma-brand__mark {
    width: min(200px, 58vw);
  }

  .site-header--figma .nav-toggle {
    display: inline-flex;
  }

  .site-header--figma .nav-toggle--figma {
    border: 1px solid rgba(35, 31, 30, 0.12);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(35, 31, 30, 0.06);
    padding: 0;
    color: #231f1e;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
  }

  .site-header--figma .nav-toggle--figma:hover {
    border-color: rgba(201, 34, 47, 0.35);
    box-shadow: 0 4px 14px rgba(201, 34, 47, 0.12);
  }

  .site-header--figma .site-header__inner.nav-open .nav-toggle--figma {
    border-color: rgba(201, 34, 47, 0.45);
    background: rgba(252, 244, 245, 0.85);
  }

  .site-header--figma .nav-toggle__bars {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 14px;
  }

  .site-header--figma .nav-toggle__bars > span {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 1px;
    background: currentColor;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
  }

  .site-header--figma .site-header__inner.nav-open .nav-toggle__bars > span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .site-header--figma .site-header__inner.nav-open .nav-toggle__bars > span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .site-header--figma .site-header__inner.nav-open .nav-toggle__bars > span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-header--figma .figma-btn {
    min-height: 44px;
    padding: 0 1.1rem;
    font-size: 14px;
  }

  .site-header--figma .figma-btn--outline-dark {
    min-width: min(180px, 42vw);
  }

  .site-header--figma .figma-phone {
    font-size: 13px;
  }

  .site-header--figma .figma-header__portal {
    font-size: 13px;
  }
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .site-header--figma .figma-nav {
    transition-duration: 0.01ms;
  }

  .site-header--figma .site-header__inner.nav-open .figma-nav {
    transition-duration: 0.01ms;
  }

  .site-header--figma .figma-nav__link {
    transition-duration: 0.01ms;
    opacity: 1;
    transform: none;
  }

  .site-header--figma .site-header__inner.nav-open .figma-nav__link {
    transition-delay: 0s !important;
  }
}

@media (max-width: 520px) {
  .figma-btn--outline-dark,
  .figma-btn--solid {
    min-width: 0;
    width: 100%;
  }
}

/* Hero — Figma node 12:11: split column + portrait image + chips */
.figma-hero--split {
  margin-top: 14px;
}

.figma-hero--wide .figma-container {
  max-width: 1600px;
}

.figma-hero--wide .figma-hero__split-inner {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 560px);
  gap: clamp(2rem, 5vw, 4.5rem);
  min-height: min(720px, 88vh);
  align-items: center;
}

.figma-hero--wide .figma-hero__visual .figma-hero__photo {
  object-position: center center;
}

.figma-hero__title--deserve .figma-hero__lc {
  white-space: normal;
}

.figma-hero__split-plate {
  margin: 0;
  background: #fff;
  border-radius: 20px;
  overflow: visible;
  box-sizing: border-box;
}

.figma-hero__split-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 600px);
  align-items: center;
  gap: clamp(24px, 4vw, 20px);
  min-height: 850px;
  padding-top: 48px;
  padding-bottom: 48px;
  box-sizing: border-box;
}

.figma-hero .figma-container.figma-hero__split-inner {
  margin-left: 0;
  margin-right: 0;
  padding-inline: var(--figma-inline);
}

.figma-hero__copy {
  min-width: 0;
  max-width: 650px;
}

.figma-hero__visual {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: min(560px, 100%);
  height: clamp(420px, 70vw, 745px);
  border-radius: 20px;
  background: #f4f4f4;
  overflow: visible;
}

.figma-hero__visual .figma-hero__photo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
  object-position: center center;
}

.figma-hero__chip {
  position: absolute;
  margin: 0;
  height: 53px;
  min-width: min(100%, 60%);
  max-width: 350px;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 45px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  color: rgba(35, 31, 30, 0.7);
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

.figma-hero__chip--tl {
  top: 28%;
  left: clamp(-64px, -4vw, -24px);
}

.figma-hero__chip--bl {
  bottom: 6%;
  left: clamp(-80px, -5vw, -28px);
}

.figma-hero__chip--mr {
  top: 425px;
  right: auto;
  left: 260px;
  transform: none;
}

.figma-hero__chip.figma-hero__chip--mr {
  /* Keep MR chip typography consistent with the other chips */
  font-size: inherit;
  width: 250px;
  padding-left: 10px;
  padding-right: 10px;
}

.figma-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0 12px;
  height: 24px;
  border: 1px solid rgba(35, 31, 30, 0.7);
  border-radius: 43px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 20px;
  color: rgba(35, 31, 30, 0.7);
}

.figma-hero__pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-red);
  flex-shrink: 0;
}

.figma-hero__title {
  margin: 0 0 24px;
  font-family: var(--font-sans);
  font-size: var(--figma-hero-title);
  font-weight: 400;
  line-height: 1.08;
  color: #231f1e;
}

.figma-hero__title-row {
  display: block;
}

.figma-hero__uc {
  font-size: inherit;
  line-height: inherit;
  text-transform: uppercase;
}

.figma-hero__lc {
  font-size: inherit;
  line-height: inherit;
  text-transform: uppercase;
}

.figma-hero__title-accent {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: inherit;
  line-height: inherit;
  color: var(--color-red);
}

.figma-hero__sub {
  margin: 0 0 32px;
  max-width: 630px;
}

.figma-hero__sub-line {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  color: rgba(35, 31, 30, 0.7);
}

.figma-hero__sub-line--lg {
  font-size: var(--figma-hero-sub-lg);
  line-height: 1.2;
  color: rgba(35, 31, 30, 0.7);
  margin-bottom: 4px;
}

.figma-hero__sub-line--spaced {
  margin-top: 40px;
}

.figma-hero__allcaps {
  font-weight: 500;
  color: rgba(201, 34, 47, 0.7);
}

.figma-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}

.figma-hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0 0 18px;
  padding: 0;
}

.figma-hero__proof-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 18px;
  color: rgba(35, 31, 30, 0.78);
}

.figma-hero__proof-item::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #C9222F;
  flex-shrink: 0;
}

.figma-hero__talk {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 20px;
}

.figma-hero__talk a {
  color: rgba(35, 31, 30, 0.7);
  text-decoration: underline;
}

.figma-hero__talk a:hover {
  color: var(--color-red);
}

@media (max-width: 1024px) {
  /* Must match .figma-hero--wide .figma-hero__split-inner specificity or the wide two-column + min-height rules break mobile */
  .figma-hero__split-inner,
  .figma-hero--wide .figma-hero__split-inner {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: clamp(1.25rem, 4vw, 2rem);
    padding-top: 32px;
    padding-bottom: 40px;
  }

  .figma-hero__visual {
    order: -1;
    justify-self: center;
    width: 100%;
    max-width: min(631px, 100%);
    overflow: hidden;
  }

  .figma-hero--wide .figma-hero__visual .figma-hero__photo {
    object-position: center center;
  }

  .figma-hero__chip--tl {
    top: 10%;
    left: 4%;
    right: auto;
  }

  .figma-hero__chip--bl {
    bottom: 4%;
    left: 4%;
    right: auto;
  }

  .figma-hero__chip--mr {
    top: 44%;
    right: 4%;
    left: auto;
  }

  .figma-hero__copy {
    max-width: none;
  }
}

@media (max-width: 767px) {
  .figma-hero--split {
    margin-top: 8px;
  }

  .figma-hero__split-plate {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
  }

  /* On phones: keep the 3 points on-image, small and safely positioned */
  .figma-hero__visual {
    overflow: hidden;
  }

  .figma-hero__chip {
    position: absolute;
    font-size: 12px !important;
    height: auto;
    min-height: 38px;
    max-width: min(240px, calc(100% - 1rem));
    padding: 0.45rem 0.65rem;
    white-space: normal;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.92);
    pointer-events: none;
  }

  .figma-hero__chip--tl {
    top: 240px !important;
    left: 40px;
    right: auto;
    bottom: auto;
    transform: none;
    width: 250px !important;
    max-width: 70% !important;
  }

  .figma-hero__chip.figma-hero__chip--tl {
    padding-top: 5px;
    padding-bottom: 5px;
    width: 209px;
    height: 38px;
  }

  .figma-hero__chip--mr {
    top: 38%;
    right: 6%;
    left: auto;
    bottom: auto;
    transform: none;
  }

  /* Ensure the MR chip doesn't inherit the desktop-only font-size override */
  .figma-hero__chip.figma-hero__chip--mr {
    font-size: 12px !important;
  }

  .figma-hero__chip--bl {
    bottom: 6%;
    left: 6%;
    right: auto;
    top: auto;
    transform: none;
    width: fit-content;
  }

  .figma-hero__sub-line--spaced {
    margin-top: 1.5rem;
  }

  .figma-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .figma-hero__actions .figma-btn {
    width: 100%;
    justify-content: center;
  }

  .figma-hero__talk {
    text-align: center;
  }
}

/* Sections */
.figma-section {
  padding-top: 40px;
  padding-bottom: 40px;
}

.figma-h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--figma-h2);
  font-weight: 400;
  line-height: 1.12;
  color: #231f1e;
}

.figma-h2__accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  color: var(--color-red);
}

.figma-h2__accent--bold {
  font-weight: 700;
}

.figma-h2--center {
  text-align: center;
}

.figma-h2--left {
  text-align: left;
}

.figma-h2--tight {
  max-width: 540px;
}

.figma-h2--narrow {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Video */
.figma-video__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 738px;
  align-items: center;
  gap: 20px 20px;
}

.figma-video__frame {
  position: relative;
  width: 100%;
  max-width: 738px;
  height: 442px;
  border-radius: 20px;
  overflow: hidden;
  background: #111;
  justify-self: end;
}

.figma-video__media {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  background: #111;
}

.figma-video__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  transition: opacity 0.25s ease;
}

.figma-video__frame.is-playing .figma-video__overlay {
  opacity: 0;
  pointer-events: none;
}

.figma-video__shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.51);
  pointer-events: none;
}

.figma-video__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -58%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-red);
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.figma-video__play:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.figma-video__play-circle {
  width: 87px;
  height: 87px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.figma-video__play-circle img {
  display: block;
}

@media (max-width: 900px) {
  .figma-video__play-circle {
    width: 56px;
    height: 56px;
    position: relative;
  }

  .figma-video__play-circle img {
    width: 56px;
    height: 56px;
    position: absolute;
    top: 45px;
    left: auto;
  }
}

.figma-video__caption {
  position: absolute;
  bottom: 130px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  width: min(100% - 32px, 279px);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 19px;
  text-align: center;
  color: #fff;
}

@media (max-width: 1100px) {
  .figma-video__grid {
    grid-template-columns: 1fr;
  }

  .figma-video__frame {
    justify-self: stretch;
    max-width: none;
    height: auto;
    aspect-ratio: 738 / 442;
  }

  .figma-video__copy {
    text-align: center;
  }
}

/* Apart */
.figma-apart .figma-h2 {
  margin-bottom: 48px;
}

.figma-grid-apart {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 630px));
  gap: 20px;
  justify-content: center;
}

.figma-card--apart {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 24px 24px 28px;
  min-height: 252px;
  box-sizing: border-box;
}

.figma-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(201, 34, 47, 0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.figma-card__title {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-size: var(--figma-card-title);
  font-weight: 400;
  line-height: 1.15;
  color: #231f1e;
}

.figma-card__body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 19px;
  color: rgba(35, 31, 30, 0.5);
}

@media (max-width: 900px) {
  .figma-grid-apart {
    grid-template-columns: 1fr;
  }
}

/* Services */
.figma-services .figma-h2 {
  margin-bottom: 8px;
}

.figma-services__eyebrow {
  margin: 0 0 32px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 22px;
  color: rgba(35, 31, 30, 0.5);
}

.figma-services__row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.figma-svc {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 20px 14px 22px;
  text-align: left;
  min-height: 146px;
  box-sizing: border-box;
}

.figma-svc__title {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-size: var(--figma-card-title);
  font-weight: 400;
  line-height: 1.15;
  color: #231f1e;
}

.figma-svc__meta {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 22px;
  color: var(--color-red);
}

@media (max-width: 1100px) {
  .figma-services__row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .figma-services__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Workflow */
.figma-workflow .figma-h2 {
  margin-bottom: 16px;
}

.figma-workflow__intro {
  margin: 0 0 40px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  color: rgba(35, 31, 30, 0.7);
}

.figma-workflow__highlight {
  color: var(--color-red);
  font-weight: 500;
}

.figma-workflow__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.figma-wstep {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 24px 24px 28px;
  min-height: 225px;
  box-sizing: border-box;
}

.figma-wstep__head {
  margin-bottom: 16px;
}

.figma-wstep__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 8px;
  border-radius: 10px;
  background: rgba(201, 34, 47, 0.13);
  font-family: var(--font-sans);
  font-size: var(--figma-wstep-badge);
  font-weight: 500;
  line-height: 1.15;
  color: var(--color-red);
}

.figma-wstep__title {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-size: var(--figma-wstep-title);
  font-weight: 500;
  line-height: 1.15;
  color: #231f1e;
}

.figma-wstep__body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 22px;
  color: rgba(35, 31, 30, 0.5);
}

.figma-workflow__panel {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 28px 32px 32px;
  max-width: 1280px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .figma-workflow__panel {
    padding: 20px;
  }
}

.figma-workflow__panel-lead {
  text-align: center;
  margin: 0 0 24px;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 24px;
  color: #231f1e;
}

.figma-workflow__checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  margin-bottom: 20px;
}

.figma-workflow__check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  color: rgba(35, 31, 30, 0.7);
  box-sizing: border-box;
}

.figma-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-red);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .figma-dot {
    width: 8px;
    height: 8px;
  }
}

@media (max-width: 767px) {
  .figma-dot {
    width: 8px;
    height: 8px;
  }
}

.figma-workflow__footnote {
  margin: 0;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  color: var(--color-red);
}

@media (max-width: 900px) {
  .figma-workflow__steps {
    grid-template-columns: 1fr;
  }

  .figma-workflow__checks {
    grid-template-columns: 1fr;
  }
}

/* ECG */
.figma-ecg__grid {
  display: grid;
  grid-template-columns: 500px minmax(0, 1fr);
  gap: 30px 100px;
  align-items: center;
}

.figma-ecg__visual {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  aspect-ratio: 414 / 746;
  border-radius: 20px;
  overflow: hidden;
  background: #ececec;
}

video.figma-ecg__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: contain;
  background-color: #ececec;
}

.figma-ecg__visual img {
  display: block;
  width: 100%;
  height: auto;
}

.figma-ecg__lead {
  margin: 0 0 20px;
  padding-top: 10px;
  padding-bottom: 10px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  color: rgba(35, 31, 30, 0.7);
  max-width: 551px;
}

.figma-ecg__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.figma-ecg__list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  color: rgba(35, 31, 30, 0.7);
}

.figma-ecg__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-red);
}

@media (max-width: 900px) {
  .figma-ecg__list li::before {
    width: 8px;
    height: 8px;
  }
}

@media (max-width: 767px) {
  .figma-ecg__list li::before {
    width: 8px;
    height: 8px;
  }
}

.figma-ecg__emph {
  font-weight: 500;
  color: #231f1e;
}

@media (max-width: 1000px) {
  .figma-ecg__grid {
    grid-template-columns: 1fr;
  }

  .figma-ecg__visual {
    max-width: 100%;
    margin: 0 auto;
  }
}

/* Turnkey */
.figma-turnkey .figma-h2 {
  margin-bottom: 40px;
}

.figma-turnkey__eyebrow {
  margin: 0 0 12px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  color: rgba(35, 31, 30, 0.7);
}

.figma-grid-turnkey {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 413px));
  gap: 20px;
  justify-content: center;
}

.figma-card--turnkey {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 24px 24px 28px;
  min-height: 257px;
  box-sizing: border-box;
}

@media (max-width: 1000px) {
  .figma-grid-turnkey {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* Testimonials */
.figma-testimonials .figma-h2 {
  margin-bottom: 24px;
}

.figma-deco-line {
  width: 168px;
  height: 1px;
  margin: 0 auto 40px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 34, 47, 0.35),
    transparent
  );
}

.figma-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 414px));
  gap: 20px;
  justify-content: center;
}

.figma-tcard {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 24px 22px 28px;
  min-height: 285px;
  box-sizing: border-box;
}

.figma-tcard__label {
  margin: 0 0 16px;
  font-family: var(--font-sans);
  font-size: var(--figma-tcard-label);
  font-weight: 500;
  line-height: 1.35;
  color: #000;
  letter-spacing: 0.02em;
}

.figma-tcard__quote {
  margin: 0 0 16px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  color: rgba(35, 31, 30, 0.7);
}

.figma-tcard__link {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-red);
}

.figma-tcard__more {
  font-size: 13px;
  color: #231f1e;
  text-decoration: none;
}


.figma-tcard__author {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  color: #231f1e;
}

@media (max-width: 1000px) {
  .figma-testimonial-grid {
    grid-template-columns: 1fr;
  }
}

/* Patient experience video — proof module below testimonials */
.figma-proof-patient-experience {
  display: flex;
  flex-direction: column;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(35, 31, 30, 0.12);
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.figma-proof-patient-experience__title {
  margin-bottom: 12px;
}

.figma-proof-patient-experience__support {
  margin: 0 0 0;
  max-width: 640px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  color: rgba(35, 31, 30, 0.78);
}

.figma-proof-patient-experience--split {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 24px 40px;
}

/* Home: copy vertically centered beside video; text centered in column */
.figma-proof-patient-experience--split.figma-proof-patient-experience--centered {
  align-items: center;
  justify-content: center;
}

.figma-proof-patient-experience--centered .figma-proof-patient-experience__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}

.figma-proof-patient-experience--centered .figma-proof-patient-experience__support {
  margin-left: 0;
  margin-right: auto;
}

/* Clinical Stories: center heading + body copy in the text column */
.figma-proof-patient-experience--copy-center .figma-proof-patient-experience__content {
  text-align: center;
  align-items: center;
}

.figma-proof-patient-experience--copy-center .figma-proof-patient-experience__support {
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  width: min(100%, 640px);
}

.figma-proof-patient-experience--copy-center.figma-proof-patient-experience--centered
  .figma-proof-patient-experience__content {
  text-align: center;
  align-items: center;
}

@media (max-width: 900px) {
  .figma-proof-patient-experience--split {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: clamp(1.25rem, 4vw, 1.75rem);
  }

  .figma-proof-patient-experience--split.figma-proof-patient-experience--centered {
    align-items: stretch;
    justify-content: flex-start;
  }

  .figma-proof-patient-experience--split .figma-proof-patient-experience__media {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
}

.figma-proof-patient-experience__content {
  flex: 1 1 260px;
  min-width: 0;
  text-align: left;
}

.figma-proof-patient-experience__media {
  position: relative;
  width: min(500px, 100%);
  max-width: 500px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  aspect-ratio: 520 / 906;
  height: fit-content;
  max-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ececec;
}

.figma-proof-patient-experience--split .figma-proof-patient-experience__media {
  flex: 1 1 260px;
  margin-left: 0;
  margin-right: 0;
  max-width: min(500px, 100%);
}

.figma-proof-patient-experience__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
}

/* Clinical Stories: preview image + embedded PDF + link */
.figma-proof-patient-experience__media--pdf {
  height: auto;
  aspect-ratio: auto;
  max-height: none;
}

.figma-proof-patient-experience__pdf-preview {
  display: block;
  width: 500px;
  max-width: 100%;
  height: auto;
  max-height: min(450px, 48vh);
  object-fit: contain;
  object-position: center top;
  border-radius: 8px;
  flex-shrink: 0;
  background: #f0f0f0;
}

.figma-proof-patient-experience__media--pdf img.figma-proof-patient-experience__pdf-preview {
  height: auto;
  max-height: min(450px, 48vh);
}

.figma-proof-patient-experience__pdf-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  flex: 1 1 auto;
}

.figma-proof-patient-experience__media--pdf .figma-proof-patient-experience__pdf-wrap {
  min-height: 0;
}

.figma-proof-patient-experience__pdf-open {
  flex-shrink: 0;
  align-self: center;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--color-red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.figma-proof-patient-experience__pdf-open:hover {
  color: var(--color-red-dark);
}

@media (min-width: 901px) {
  .figma-proof-patient-experience__media:not(.figma-proof-patient-experience__media--pdf) {
    height: 600px;
  }

  .figma-proof-patient-experience__media:not(.figma-proof-patient-experience__media--pdf) img {
    height: 100%;
    max-height: 100%;
  }

  .figma-proof-patient-experience__media--pdf {
    height: auto;
  }

  .figma-proof-patient-experience__media--pdf img.figma-proof-patient-experience__pdf-preview {
    height: auto;
    max-height: min(450px, 48vh);
  }
}

.figma-ai__video {
  width: 100%;
  height: 100%;
  display: block;
  background-color: #ececec;
}

.figma-ai__video--proof {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

@media (max-width: 600px) {
  .figma-proof-patient-experience {
    margin-top: clamp(2rem, 6vw, 3rem);
    padding-top: clamp(1.5rem, 5vw, 2.5rem);
  }

  .figma-proof-patient-experience__title {
    font-size: clamp(1.5rem, 5.5vw, var(--figma-h2));
  }

  .figma-proof-patient-experience__media {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
  }

  .figma-proof-patient-experience--split .figma-proof-patient-experience__media {
    width: 100%;
    max-width: 100%;
  }

  .figma-proof-patient-experience__media img {
    height: auto;
    max-height: 100%;
  }
}

/* Thank you — confirmation */
.thanks-page {
  background: linear-gradient(180deg, rgba(252, 244, 245, 0.55) 0%, #fff 42%);
  min-height: min(70vh, 720px);
  display: flex;
  flex-direction: column;
}

.thanks-page__section {
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 64px;
}

.thanks-page__card {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 36px 44px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(35, 31, 30, 0.06);
  text-align: center;
}

.thanks-page__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(201, 34, 47, 0.1);
  color: var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
}

.thanks-page__icon svg {
  display: block;
}

.thanks-page__title {
  margin-bottom: 12px;
}

.thanks-page__lead {
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(35, 31, 30, 0.78);
}

.thanks-page__next {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(35, 31, 30, 0.5);
}

.thanks-page__list {
  margin: 0 auto 32px;
  padding: 0;
  max-width: 420px;
  list-style: none;
  text-align: left;
}

.thanks-page__list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(35, 31, 30, 0.75);
}

.thanks-page__list li:last-child {
  margin-bottom: 0;
}

.thanks-page__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-red);
  opacity: 0.85;
}

.thanks-page__list a {
  color: var(--color-red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.thanks-page__list a:hover {
  color: var(--color-red-dark);
}

.thanks-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
}

@media (max-width: 520px) {
  .thanks-page__section {
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .thanks-page__card {
    padding: 28px 1.25rem 1.75rem;
  }

  .thanks-page__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .thanks-page__actions .figma-btn {
    width: 100%;
    justify-content: center;
  }
}

/* CTA */
.figma-cta__box {
  background: rgba(252, 244, 245, 0.43);
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 32px 24px 40px;
  text-align: center;
  max-width: 1279px;
  margin: 0 auto;
}

.figma-cta .figma-h2 {
  margin-bottom: 20px;
}

.figma-cta__p {
  margin: 0 auto 16px;
  max-width: 1064px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  font-style: normal;
  font-weight: 400;
  color: rgba(35, 31, 30, 0.7);
}

.figma-cta__p--lead {
  font-style: italic;
  font-weight: 500;
}

.figma-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
}

.figma-cta__talk {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 20px;
  color: rgba(35, 31, 30, 0.7);
  text-decoration: underline;
}

.figma-cta__talk:hover {
  color: var(--color-red);
}

/* Footer */
.site-footer--figma {
  padding: 48px 0 32px;
  border-top: none;
}

.figma-footer__hr {
  height: 1px;
  background: #e0e0e0;
  margin-bottom: 15px;
}

.figma-footer__main {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 32px 48px;
  align-items: start;
  margin-bottom: 48px;
  margin-top: 20px;
}

.figma-brand--footer .figma-brand__mark {
  width: min(412px, 100%);
}

.figma-brand--footer .figma-brand__tag--footer {
  width: min(412px, 100%);
}

.figma-footer__tagline {
  margin: 16px 0 0;
  max-width: 522px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  color: rgba(35, 31, 30, 0.7);
}

.figma-footer__nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem;
  justify-content: flex-start;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  line-height: 20px;
  color: rgba(35, 31, 30, 0.7);
  margin-bottom: 48px;
}

.figma-footer__nav a:hover {
  color: var(--color-red);
}

.figma-footer__contact {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
}

.figma-footer__line {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  text-align: left;
}

.figma-footer__line p {
  margin: 0;
}

.figma-footer__muted {
  color: rgba(0, 0, 0, 0.7);
}

.figma-footer__strong {
  color: #000;
  font-weight: 400;
}

.figma-footer__address {
  color: rgba(0, 0, 0, 0.6);
  max-width: 352px;
}

.figma-footer__link.figma-footer__address {
  justify-content: flex-start;
  text-align: left;
}

.figma-footer__triple {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  text-align: center;
  gap: 16px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 20px;
  color: rgba(0, 0, 0, 0.7);
  padding: 8px 0 15px;
}

.figma-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.figma-footer__copy {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  color: rgba(35, 31, 30, 0.7);
}

.figma-footer__social {
  display: flex;
  align-items: center;
  gap: 24px;
}

.figma-footer__fb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  color: #486fba;
  text-decoration: none;
}

.figma-footer__fb-icon {
  flex-shrink: 0;
}

.figma-footer__fb:hover {
  text-decoration: underline;
}

.figma-footer__link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.figma-footer__link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 900px) {
  .site-footer--figma .figma-container {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .site-footer--figma .figma-footer__hr {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .site-footer--figma .figma-footer__main {
    margin-top: 0;
    margin-bottom: 0;
  }

  .site-footer--figma .figma-footer__triple {
    padding-top: 0;
    padding-bottom: 0;
  }
}

@media (max-width: 1000px) {
  .figma-footer__main {
    flex-direction: column;
    text-align: center;
  }

  .figma-footer__nav {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  .figma-brand--footer {
    align-items: center;
    margin: 0 auto;
  }

  .figma-footer__tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .figma-footer__contact {
    text-align: left;
    max-width: 28rem;
    margin: 0 auto;
  }

  .figma-footer__triple {
    flex-direction: row;
  }

  .figma-footer__bottom {
    justify-content: center;
    text-align: center;
  }

  .figma-footer__social {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .site-footer--figma {
    padding: 36px 0 24px;
  }

  .figma-footer__main {
    gap: 24px;
    margin-bottom: 32px;
  }

  .site-footer--figma .figma-footer__main {
    margin-bottom: 0;
  }

  .figma-footer__brand {
    padding-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
  }

  .figma-footer__contact {
    padding-top: 24px;
  }

  .figma-footer__tagline {
    font-size: 0.9375rem;
    line-height: 1.5;
  }

  .figma-footer__nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 0;
    font-size: 0.9375rem;
    line-height: 1.2;
    margin-bottom: 20px;
  }

  .figma-footer__nav a {
    position: relative;
    padding: 0 12px;
    white-space: nowrap;
  }

  .figma-footer__nav a::after {
    content: "|";
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-52%);
    color: rgba(35, 31, 30, 0.35);
    pointer-events: none;
  }

  .figma-footer__nav a:last-child::after {
    content: none;
  }

  .figma-footer__contact {
    max-width: none;
    text-align: center;
    font-size: 0.9375rem;
    line-height: 1.5;
  }

  .figma-footer__line {
    justify-content: flex-start;
    text-align: left;
  }

  .figma-footer__address {
    max-width: none;
  }

  .figma-footer__triple {
    font-size: 0.875rem;
    line-height: 1.35;
    gap: 10px;
  }

  .figma-footer__copy {
    font-size: 0.875rem;
    line-height: 1.4;
  }

  .figma-footer__social {
    gap: 16px;
  }
}

/* Mobile nav extras (phone + buttons inside hamburger) */
.figma-nav__mobile {
  display: none;
}

@media (max-width: 900px) {
  .site-header--figma .figma-nav__mobile {
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.75rem;
    padding: 0.9rem 1.15rem 1.1rem;
    border-top: 1px solid rgba(35, 31, 30, 0.08);
  }

  .site-header--figma .figma-nav__phone {
    display: block;
    width: 100%;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(35, 31, 30, 0.9);
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  .site-header--figma .figma-nav__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.65rem;
  }

  .site-header--figma .figma-nav__actions .figma-btn {
    width: 100%;
    min-width: 0;
  }
}
