/* =========================================================
   Root tokens (design variables)
   ========================================================= */
:root {
  --bg: #f7f7f7; /* page background */
  --paper: #ffffff; /* surface background */
  --ink: #0a0a0a; /* primary text color */
  --ink-2: #1c1c1c; /* darker variant for headings */
  --muted: #696b70; /* subdued text tone */
  --muted-2: #9aa0a6; /* lighter muted tone */
  --border: #e7e7e7; /* default border color */
  --accent: #ff770f; /* brand accent color */
  --accent-ink: #0a0a0a; /* text on accent background */
  --radius: 10px; /* default border radius */
  --radius-l: 22px; /* large corner radius */

  --shadow-1: 0 1px 0 rgba(0, 0, 0, 0.06); /* light elevation */
  --shadow-2: 0 6px 16px rgba(0, 0, 0, 0.08); /* heavier elevation */

  --container: 1380px; /* max layout width */

  --display: "Space Grotesk", system-ui, sans-serif; /* display font */
  --sans: "Inter", system-ui, sans-serif; /* body font */
  --mono: ui-monospace, monospace; /* code font */

  --err-flag-size: 28px; /* error icon size */
  --err-flag-gap: 10px; /* spacing beside error flag */
  --err-color: #dc2626; /* standard error red */
}

/* =========================================================
   Reset and base elements
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box; /* include padding/border in size */
}

html,
body {
  height: 100%; /* full-height layout baseline */
}

body {
  margin: 0;
  color: var(--ink);
  background: transparent;
  padding-top: 88px; /* header offset */
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
  max-width: 100%; /* prevent overflow */
  display: block; /* remove inline gaps */
}

a {
  color: inherit; /* inherit text color */
  text-decoration: none; /* remove underline */
}

button {
  font: inherit; /* match body font */
  color: inherit; /* match text color */
}

html {
  background: var(--bg); /* dotted grid background pattern */
  background-image: radial-gradient(#dcdfe6 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: -11px -11px;
}

/* =========================================================
   Utilities
   ========================================================= */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px; /* standard horizontal gutter */
}

/* vertical spacing utilities */
.stack-xxl > * + * {
  margin-top: 80px;
}
.stack-xl > * + * {
  margin-top: 56px;
}
.stack-lg > * + * {
  margin-top: 40px;
}
.stack-md > * + * {
  margin-top: 24px;
}
.stack-sm > * + * {
  margin-top: 2px;
}
.stack-tight > * + * {
  margin-top: 8px;
}

.section {
  padding-block: clamp(56px, 5vw, 120px); /* section padding */
}

.section:last-of-type {
  padding-bottom: 10vw; /* extra space at end of page */
}

.section--tight-bottom {
  padding-bottom: 1.5rem;
} /* reduced bottom spacing */
.section--tight-top {
  padding-top: 1.5rem;
} /* reduced top spacing */
.section--tighter-top {
  padding-top: 0;
} /* no top padding */
.section--loose {
  padding-block: clamp(80px, 8vw, 160px);
} /* wide section spacing */

.grid {
  display: grid;
  gap: 24px; /* base grid gap */
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
} /* 2-column grid */

/* Larger, well-spaced titles only for Platform cards */
.grid.grid-2 .card-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 650;
  line-height: 1.25;
  margin-bottom: -8px; /* compact spacing */
}

/* 3- and 4-column layouts */
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.center {
  display: grid;
  place-items: center;
} /* perfect centering */

.muted {
  color: var(--muted);
} /* subdued text tone */

/* adjust eyebrow and muted spacing in grid-2 cards */
.grid.grid-2 .choose.card.pad .eyebrow-quote {
  margin-top: 20px;
}
.grid.grid-2 .choose.card.pad .muted {
  margin-top: -10px;
}
.grid.grid-2 .choose.card.pad h3 {
  margin-bottom: 6px;
}

/* Stats grid layout */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  text-align: center;
  align-items: center;
  justify-items: center;
  width: 100%;
}

/* Headings within stats grid */
.stats-grid h2,
.stats-grid h3 {
  color: var(--paper);
  font-weight: 500; /* lighter weight for clean look */
  margin: 0;
}

/* variant for 3-column stat layout */
.stats-grid.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: -25px;
}

/* reapply dotted pattern for dark sections */
.band-dark.bg-dots-dark {
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.05) 1px,
    transparent 1px
  );
  background-size: 22px 22px;
  background-position: -11px -11px;
}

/* shared title style across band-dark / stats-grid / icon-grid */
.band-dark .title,
.stats-grid .title,
.icon-grid .title {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 600;
  color: var(--paper);
  margin: 0;
  line-height: 1.25;
  text-align: center;
}

/* special larger h2 variant for stats sections */
.stats-grid .stats-title {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: inherit;
  margin-top: -0.5em;
  margin-bottom: 0.3em;
  line-height: 1.1;
}

/* =========================================================
   Backgrounds
   ========================================================= */

.bg-dots {
  position: relative; /* base container for dotted background pattern */
}

.bg-dots::before {
  content: none; /* disable pseudo-element content */
}

.bg-dots-dark {
  background-image: radial-gradient(#2a2a2a 1px, transparent 1px); /* small dark dots */
  background-size: 22px 22px; /* grid spacing for pattern */
  background-position: -11px -11px; /* center the pattern visually */
}

/* =========================================================
   Typography
   ========================================================= */

h1,
h2,
h3,
h4 {
  font-family: var(--display); /* use display font for all headings */
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 12px 0;
  color: var(--ink-2);
}

h1 {
  font-weight: 700;
  font-size: clamp(38px, 6.5vw, 76px);
}

h2 {
  font-weight: 700;
  font-size: clamp(28px, 3.8vw, 44px);
}

h3 {
  font-weight: 650;
  font-size: clamp(20px, 2.4vw, 28px);
}

.lead {
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--muted);
  margin: 0.25rem 0 0;
}

/* Eyebrow headings (small uppercase labels) */
.eyebrow,
.eyebrow-dark,
.eyebrow-large {
  font: 700 12px var(--sans);
  text-transform: uppercase;
  display: inline-block; /* ensures proper spacing inline */
  position: relative; /* allows pseudo underline positioning */
}

.eyebrow {
  letter-spacing: 0.12em;
  color: #cfd3da;
  margin-top: 1.1em;
}

.eyebrow-dark {
  letter-spacing: 0.12em;
  color: var(--ink);
  margin-top: 1.1em;
  font-size: 0.9em;
}

.eyebrow-large {
  font-size: 1.8rem;
  color: var(--muted);
}

.eyebrow-title {
  font: 700 12px var(--sans);
  display: inline-block;
  position: relative;
  color: var(--muted);
  font-size: 1.6rem;
  margin-top: 10px;
  margin-bottom: 15px;
}

.eyebrow-quote {
  font: 700 12px var(--display);
  display: inline-block;
  position: relative;
  color: var(--muted);
  font-size: 1.2rem;
  margin-top: 8px !important;
}

/* underline hover animation for eyebrow variants */
.eyebrow::after,
.eyebrow-dark::after {
  content: ""; /* creates a pseudo underline element */
  position: absolute; /* positions underline relative to text */
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  display: none; /* hidden until hover */
}

.eyebrow:hover::after,
.eyebrow-dark:hover::after {
  display: block; /* reveal underline on hover */
}

/* decorative kicker (short line + text) */
.kicker {
  display: inline-grid; /* allows horizontal flow of line + text */
  grid-auto-flow: column; /* aligns line and text side by side */
  gap: 10px;
  align-items: center; /* vertically center line and text */
  color: #50555c;
  font: 600 13px var(--sans);
}

.kicker .line {
  width: 38px;
  height: 1px;
  background: var(--border);
}

/* large hero or callout text */
.h-display {
  font-weight: 700;
  font-size: clamp(30px, 4.9vw, 56px);
  line-height: 1.08;
  color: var(--accent); /* brand accent color for emphasis */
}

/* =========================================================
   Buttons, Tags, Cards, Code
   ========================================================= */

/* Base button styling */
.btn {
  --btn-bg: var(--paper);  /* default background color */
  --btn-fg: var(--ink);    /* default text color */
  --btn-bd: var(--border); /* default border color */
  display: inline-grid;     /* centers content horizontally/vertically */
  grid-auto-flow: column;   /* lay out text + icon horizontally */
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: var(--shadow-1);
  transition: transform 0.06s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;       /* required for potential pseudo states */
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px); /* subtle lift on hover */
  box-shadow: var(--shadow-2); /* deeper shadow for depth */
}

.btn:active {
  transform: translateY(0); /* reset lift when pressed */
}

/* primary (accent) button variant */
.btn-primary {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  --btn-bd: var(--accent);
}

/* outlined button on white */
.btn-ghost {
  --btn-bg: var(--paper);
  --btn-bd: var(--border);
  color: var(--ink);
  padding: 14px 18px;
}

/* dark button variant */
.btn-dark {
  --btn-bg: #0f0f10;
  --btn-fg: var(--bg);
  --btn-bd: var(--ink);
}

/* enhanced hover for primary button */
.btn-primary:hover {
  box-shadow: 0 6px 12px rgba(170, 170, 169, 0.25), 0 3px 8px rgba(0, 0, 0, 0.08);
}

/* stronger hover for dark button */
.btn-dark:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.158), var(--shadow-2);
}

/* general card structure */
.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  overflow: clip; /* ensures child elements stay within rounded corners */
}

/* card with padding */
.card.pad {
  padding: 22px;
}

/* card title heading */
.card-title {
  font: 600 18px var(--display);
  margin: 0 0 6px 0;
}

/* subdued subtext under title */
.card-sub {
  color: var(--muted);
  font-size: 14px;
}

/* consistent light shadow on padded cards */
.card.pad {
  box-shadow: var(--shadow-1);
  border: 1px solid var(--border);
}

.card.pad:hover {
  box-shadow: var(--shadow-2); /* lift on hover for subtle depth */
}

/* =========================================================
   Header / Navigation
   ========================================================= */

/* fixed header bar anchored at the top of the viewport */
.site-header {
  position: fixed;  /* stays visible during scroll */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;    /* keeps it above other layers */
  background: transparent;
}

/* translucent nav container with backdrop blur */
.site-header .bar {
  margin: 12px auto;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: saturate(120%) blur(8px); /* frosted glass effect */
  -webkit-backdrop-filter: saturate(120%) blur(8px);
  background-clip: padding-box;
  border-radius: var(--radius);
  display: grid; /* allows flexible logo/nav/cta layout */
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  column-gap: 50px; /* space between logo and nav */
}

/* logo area on the left */
.site-header .logo {
  display: flex;
  align-items: center;
  min-width: 74px;
  max-width: 74px;
  padding-left: 22px;
}

.site-header .logo img {
  flex-shrink: 0; /* prevent image from scaling down */
}

/* small square logo mark (icon block) */
.logo .mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--ink);
  position: relative;
}

.logo .mark::after {
  content: ""; /* creates inner accent square */
  position: absolute;
  inset: 5px; /* inset defines padding from all sides */
  border-radius: 3px;
  background: var(--accent);
}

/* navigation group positioning */
.main-nav {
  justify-self: start;
}

/* base nav list structure */
.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;           /* horizontal flow of items */
  grid-auto-flow: column;  /* ensures row-like layout */
  gap: 18px;
  align-items: center;
}

.nav-item {
  position: relative; /* anchor point for dropdowns */
}

/* main navigation link */
.nav-link {
  display: inline-flex; /* allows icon + text alignment */
  align-items: center;
  gap: 6px;
  padding: 15px 12px;
  border-radius: 10px;
  color: #333;
  text-transform: uppercase;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* right-aligned call-to-action button area */
.nav-cta {
  justify-self: end;
  display: grid;
  grid-auto-flow: column;
  gap: 10px;
}

.nav-cta .btn {
  padding: 10px 14px;
}

/* dropdown container for submenus */
.dropdown {
  position: absolute; /* anchored to parent nav item */
  top: 100%;          /* directly below parent */
  left: 0;
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-2);
  opacity: 0;          /* hidden by default */
  visibility: hidden;  /* invisible to clicks */
  transform: translateY(-4px); /* subtle lift when hidden */
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none; /* disable mouse interaction when hidden */
  margin-left: -15px;
}

/* show dropdown on hover */
.nav-item > .nav-link:hover + .dropdown,
.nav-item > .fake-link:hover + .dropdown,
.nav-item > .dropdown:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* show dropdown when .open is toggled (mobile JS control) */
.nav-item.has-dropdown.open > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* link styling inside dropdown */
.dropdown a {
  display: grid;  /* stack title and description */
  gap: 4px;
  padding: 10px;
  border-radius: var(--radius);
}

.dropdown a:hover {
  background: #f7f7f9; /* light hover tint */
}

/* title + description in dropdowns */
.drop-title {
  font: 600 14px var(--sans);
}

.drop-desc {
  font: 13px var(--sans);
  color: var(--muted);
}

/* hamburger button for mobile nav */
.burger {
  display: none; /* hidden on desktop */
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
}

/* add chevron icon after dropdown links */
.nav-item.has-dropdown > .nav-link::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.3em;
  width: 0.8em;
  height: 0.8em;
  background-color: currentColor;
  transform: translateY(1px);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6.5 6 6.5-6' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6.5 6 6.5-6' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

/* =========================================================
   Dropdown Layout and Product Menu
   ========================================================= */

/* inner dropdown layout: overview (left) + content (right) */
.dropdown-content {
  display: grid; /* two-column flexible structure */
  grid-template-columns: minmax(250px, max-content) 1fr; /* left fixed, right flexible */
  gap: 24px;
}

.dropdown.open {
  display: block;
}

/* Overview column on the left side of the dropdown */
.dropdown-overview {
  max-width: 250px;
  padding-left: 15px;
}

.dropdown-overview h4 {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 10px;
  margin-bottom: 15px;
  padding-left: 1px;
}

.dropdown-overview ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-overview li a {
  display: block; /* clickable area spans full width */
  padding: 8px 10px;
  margin-left: -13px;
  padding-left: 15px !important;
  border-radius: var(--radius);
  font-weight: 500;
  color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-overview li a:hover {
  background: #f6f6f6;
  color: #000;
}

/* main layout for the Products dropdown */
#products-menu {
  min-width: 760px; /* consistent size for large menu */
}

#products-menu .dropdown-content {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 14px;
  align-items: start;
}

/* image preview containers inside dropdown product cards */
#products-menu .product-card .ph {
  width: 320px;
  height: 180px;
  overflow: hidden; /* crops any overflowed image */
}

#products-menu .product-card .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fills area with cropping */
  display: block;
}

/* grid of product cards in right column */
.dropdown-cards {
  display: grid;
  grid-template-columns: repeat(2, 340px);
  gap: 14px;
}

/* individual product card inside dropdown */
.product-card {
  width: 340px;
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 16px;
  background: var(--paper);
  display: flex;
  flex-direction: column; /* stack image + text vertically */
  text-decoration: none;
  transition: box-shadow 0.2s ease;
  overflow: hidden;
}

/* container for product thumbnail inside card */
.product-card .ph {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.product-card .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card:hover {
  background: var(--paper) !important;
  box-shadow: var(--shadow-1);
}

/* product card heading */
.product-card h5 {
  font-size: 20px;
  margin: 12px 0 6px;
  font-weight: 600;
  color: var(--ink);
}

/* description text below heading */
.product-card p {
  font-size: 14px;
  color: #555;
  margin: 0 0 12px;
}

/* "Learn More" link at bottom of product card */
.learn-more {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  padding-top: 10px;
  padding-bottom: 10px;
  margin-top: auto; /* pushes link to bottom */
  display: inline-flex; /* aligns arrow and text */
  align-items: center;
  gap: 8px;
  line-height: 1;
  text-transform: uppercase;
}

.learn-more .icon-arrow {
  width: 12px;
  height: 14px;
  fill: currentColor;
  flex: 0 0 auto;
}

/* general non-card dropdown link hover */
.dropdown a:not(.product-card) {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: var(--radius);
}

.dropdown a:not(.product-card):hover {
  background: #f7f7f9;
}

/* subtle hover lift for product cards */
.dropdown .product-card:hover {
  background: var(--paper);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* shared style for tech-split image containers */
.tech-split .ph {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* ensure contained images retain proper proportions */
.tech-split .ph img {
  width: 100%;
  height: 100%;
  object-fit: fill; /* scales to fit without cropping */
  display: block;
}

/* =========================================================
   Image Placeholders and Diagram Handling
   ========================================================= */

/* generic placeholder wrapper for images or mock panels */
.ph {
  width: 100%;
  overflow: hidden; /* ensures rounded corners crop content */
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
}

/* dark variant used on black/dark surfaces */
.ph.dark {
  background: radial-gradient(40% 40% at 70% 25%, rgba(255, 255, 255, 0.06), transparent 60%), #121214;
  border: 1px solid #1b1b1d;
}

/* inset-style placeholder (used in framed diagrams or UI mockups) */
.ph.ph--inset {
  padding: clamp(8px, 2vw, 16px);
  display: grid;        /* centers image both ways */
  place-items: center;  /* perfect centering for children */
  max-width: 100%;
  aspect-ratio: 4/3;    /* fixed proportion for UI components */
}

/* contained image within inset placeholder */
.ph.ph--inset img {
  width: 100%;
  height: auto;
  object-fit: contain;  /* ensures no cropping occurs */
  display: block;
}

/* high-level visual emphasis or drop shadow container */
.elevate {
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.06);
}

/* hover-lift animation utility */
.hover-lift {
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  will-change: transform, box-shadow; /* hints browser to optimize these props */
}

/* raise element visually on hover */
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
}

/* subtle border tint for lifted cards */
.card.hover-lift:hover {
  border-color: #eaeaea;
}

/* fixed 16:9 media aspect ratio */
.ph-16x9 {
  aspect-ratio: 16 / 9;
  height: var(--ph-h, 360px); /* default height overrideable by variable */
  max-width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}

/* ensure image covers area proportionally */
.ph-16x9 img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fill container without stretching */
}

/* 6:5 container: fixed height desktop, fluid mobile */
.ph-6x5 {
  width: 100%;
  height: 510px;                /* desktop default */
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  position: relative;
}

.ph-6x5 img {
  width: 100%;
  height: 100%;
  object-fit: cover;            /* fills the area without distortion */
  display: block;
}

/* layout tweaks specific to .section.diagram blocks */
.section.diagram .ph {
  display: flex;           /* allows flexible scaling */
  justify-content: center; /* center horizontally */
  align-items: flex-start; /* align top to allow tall diagrams */
  height: auto;            /* expands based on image height */
  border: none;            /* removes outer frame for diagrams */
}

/* image handling rules inside diagram sections */
.section.diagram .ph img {
  width: auto !important;  /* removes forced width from global img */
  height: auto !important; /* allows natural sizing */
  max-width: 100%;         /* prevents overflow */
  max-height: none;        /* permits tall diagrams */
  object-fit: contain !important; /* preserve full content */
  margin: 0 auto;          /* centers horizontally */
  display: block;
}

/* =========================================================
   Policy Lists
   ========================================================= */

/* adds spacing between list items except the first one */
ol.policy > li:not(:first-child) {
  margin-top: 20px;
}

/* =========================================================
   Sections (hero, features, testimonials, etc.)
   ========================================================= */

/* general hero section wrapper */
.hero {
  padding-block: clamp(60px, 8vw, 140px); /* responsive vertical padding */
}

/* hero action button group */
.hero .actions {
  display: grid;              /* aligns multiple CTAs horizontally */
  grid-auto-flow: column;     /* maintains row flow */
  gap: 12px;
  width: max-content;         /* keeps buttons tight around content */
}

/* subtext under hero heading */
.hero .sub {
  color: var(--muted);
  max-width: 38ch; /* comfortable line length for readability */
}

/* two-column feature row with image and text */
.feature-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr; /* slightly weighted toward text */
  gap: 36px;
  align-items: center; /* aligns content vertically */
}

/* stacked list of features */
.feature-list {
  display: grid;
  gap: 18px;
}

/* simple horizontal divider */
.hr {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

/* quote + image split band (used for testimonials or feature callouts) */
.quote-band {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  display: grid;                       /* text + image side by side */
  grid-template-columns: 1fr 0.96fr;   /* slightly uneven for visual balance */
  gap: 0;
  overflow: clip;                      /* maintain rounded corners */
}

/* symmetrical version */
.quote-band.right {
  grid-template-columns: 1fr 1fr;
}

/* text area inside quote-band */
.quote-band .copy {
  padding: clamp(22px, 3vw, 22px);
}

/* media area (image/video) */
.quote-band .media {
  aspect-ratio: 16/9; /* keeps embedded content proportional */
  background: #e9e9ec;
}

/* tighten paragraph spacing under quote-band eyebrow */
.quote-band .copy p.muted {
  margin-top: -10px;
}

/* two-column layout for technical sections with illustration */
.tech-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
}

/* reversed version for alternating layout flow */
.tech-split-right {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
}

/* testimonial card: fixed-width photo + quote */
.testimonial {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: center;
}

/* feature cards arranged in grid */
.feature-grid .card {
  min-height: 240px;
  display: grid;
  align-content: start; /* keep headings pinned to top */
}

/* core features grid (4-up style layout) */
.core-grid .card {
  display: grid;
  gap: 10px;
}

/* circular icon container inside core features */
.core-grid .icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: #f6f8ff;
  border: 1px solid var(--border);
  display: grid;
  place-items: center; /* centers icon inside */
  font-weight: 700;
}

/* smaller core feature layout variant */
.core-grid--compact h3 {
  margin-top: 20px;
  margin-bottom: 0;
}

/* adjusted image size for compact layout */
.core-grid--compact .panel-illu {
  width: 228px;
  height: 128px;
  object-fit: cover;
  margin: 0 auto;
  display: block;
}

/* dark section band with rounded edges and contained content */
.band-dark {
  color: var(--bg);          /* light text on dark bg */
  background: #0f0f10;     /* solid near-black fill */
  border-radius: var(--radius-l);
  border: 1px solid #1b1b1d;
  padding: clamp(28px, 6vw, 60px);  /* flexible padding for all viewports */
  position: relative;
  overflow: clip;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  color: #e6e7ea;
  background: #0f0f10;
  padding-top: 36px;
}

.site-footer .cta {
  padding: 544px 0;
}

.footer-grid {
  display: grid; /* multi-column footer layout */
  grid-template-columns: max-content repeat(5, max-content);
  justify-content: space-between; /* push columns edge-to-edge */
  align-items: start;
  margin-bottom: 1em;
  row-gap: 40px;
}

.footer-grid > div:first-child {
  grid-column: span 2; /* widen logo/intro column */
}

.site-footer h4 {
  color: #a1a1a1;
  font-size: 15px;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.site-footer a {
  color: var(--paper);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.site-footer a:hover {
  color: #cfd3da;
}

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid #1b1b1d;
  opacity: 0.8;
  font-size: 14px;
}

.footer-bottom .container {
  display: grid; /* split legal vs. social */
  grid-template-columns: 1fr 1fr; /* two equal columns */
  align-items: center;
}

/* Footer logo: shrink-wrap clickable area */
.site-footer .logo {
  display: inline-block; /* hug image size */
  line-height: 0;
  padding: 0;
  margin: 0;
}

.site-footer .logo .mark {
  display: none;
}

.site-footer .logo img {
  display: block; /* remove inline gap */
}

.footer-links {
  display: flex; /* horizontal list that wraps */
  flex-wrap: wrap; /* move to next line as needed */
  gap: 12px; /* space between items */
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  white-space: nowrap; /* keep link text unbroken */
}

.footer-links li::after {
  content: "|"; /* visual separator */
  margin-left: 12px;
  color: #303033;
}

.footer-links li:last-child::after {
  content: ""; /* remove separator at end */
}

/* =========================================================
   Forms
   ========================================================= */
.form {
  display: grid; /* vertical field stack */
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 8px;
}

label {
  font: 600 14px var(--sans);
  color: #2b2f36;
}

.input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-1);
  font: 500 14px var(--sans);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease; /* interactive focus feedback */
}

textarea {
  min-height: 140px;
  resize: vertical; /* allow vertical resize only */
}

.input:focus,
textarea:focus,
select:focus {
  outline: none; /* rely on custom focus styles */
  border-color: var(--accent);
  background: #fff;
}

.form-help {
  font-size: 12px;
  color: var(--muted);
}

/* Error states */
.input.is-error,
textarea.is-error,
select.is-error {
  border-color: var(--err-color);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
  padding-right: calc(14px + var(--err-flag-size) + var(--err-flag-gap));
  background-repeat: no-repeat;
  background-size: var(--err-flag-size) var(--err-flag-size);
  background-position: right var(--err-flag-gap) center; /* reserve space for error badge */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='8' fill='%23dc2626'/%3E%3Crect x='14' y='8' width='4' height='10' rx='2' fill='white'/%3E%3Crect x='14' y='21' width='4' height='4' rx='2' fill='white'/%3E%3C/svg%3E"); /* inline error icon */
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.success-box {
  margin-top: 5px;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.4);
  text-align: center; /* center success message */
  font-weight: 300;
  color: #28ad5f;
  box-shadow: var(--shadow-1);
}

select.is-error {
  background-position: right calc(var(--err-flag-gap) + 18px) center; /* adjust for chevron */
}

/* =========================================================
   Misc Components (panels, FAQ, tables, etc.)
   ========================================================= */
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-1);
  transition: transform 0.06s ease, box-shadow 0.2s ease; /* subtle hover motion */
}

.panel-wide {
  border-radius: var(--radius-l);
  padding: clamp(24px, 4vw, 36px);
  display: grid; /* content + visual split */
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.panel-dark {
  background: var(--ink);
  border: 1px solid #1b1b1d;
  color: #f6f6f6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.panel-dark .card-title {
  color: var(--paper);
  margin-bottom: 0.375rem;
}

.panel-dark .muted {
  color: #a1a1a1;
}

.panel-dark h3 {
  color: var(--paper);
}

.panel,
.panel-dark {
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.18s ease, border-color 0.18s ease; /* smoother motion curve */
}

.panel:hover,
.panel-dark:hover {
  transform: translateY(-1px); /* slight lift */
  box-shadow: var(--shadow-2);
}

.service-split {
  display: grid; /* two equal service columns */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.service-list {
  display: grid; /* stacked rows */
}

.service-list .row {
  padding: 14px 0 20px 0;
  border-bottom: 1px solid var(--border);
  display: grid; /* text blocks inside each row */
  gap: 10px;
}

.service-list .row:last-child {
  border-bottom: 0;
}

/* Make the entire card a flex container */
.panel.vdc-card {
  display: flex; /* image + text split */
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 22px;
}

/* 2) Nudge the image down to align with the first line of body text */
.panel.vdc-card .panel-illu {
  align-self: flex-start;      /* ensure it honors the offset at the top */
  /* h3 size is clamp(20px, 2.4vw, 28px), line-height ~1.08, plus the 12px gap */
  margin-top: calc(clamp(20px, 2.4vw, 28px) * 1.08 + 16px);
  width: 128px;
}

/* The text stack grows to fill remaining width */
.panel.vdc-card .service-list.vdc {
  flex: 1; /* occupy remaining space */
}

/* Retain your existing row and border behavior */
.service-list.vdc .row {
  display: block; /* reset grid for compact rows */
  padding: 6px 0 0 0;
  border: 0;
}

.image-box {
  width: 228px;             /* fixed box size */
  height: 128px;
  overflow: hidden;         /* hide overflowed zoomed areas */
  display: flex;
  justify-content: center;
  align-items: center;
}

.zoom-img {
  object-fit: cover;        /* ensures the image fills the box */
  object-position: center;  /* crop stays centered */
  transition: transform 0.3s ease; /* optional smooth zoom */
}

.duo-panels {
  display: grid; /* two-panel layout */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.duo-panels .panel {
  min-height: 150px;
}

.faq-items {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden; /* clip rounded corners */
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-q {
  width: 100%;
  display: flex; /* text + icon row */
  align-items: center;
  justify-content: space-between; /* push caret to the right */
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 0;
  text-align: left;
  font: 600 18px var(--display);
  cursor: pointer; /* indicate interactivity */
  transition: background 0.18s ease;
}

.faq-q:hover,
.faq-item.open .faq-q {
  background: #fafafa;
}

.faq-a {
  display: none; /* collapsed by default */
  padding: 0.75rem 1.25rem 1.125rem;
  color: var(--muted);
}

.faq-item.open .faq-a {
  display: block; /* expand on open */
}

.faq-q .pix {
  width: 18px;
  height: 18px;
  display: grid; /* center caret */
  place-items: center;
}

.faq-q .pix::before {
  content: ""; /* caret shape */
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg); /* chevron-right */
  transition: transform 0.2s ease;
}

.faq-item.open .faq-q .pix::before {
  transform: rotate(-135deg); /* chevron-up */
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.table th,
.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.table thead th {
  font: 600 13px var(--sans);
  color: #555;
  background: #fafafa;
}

.table tr:last-child td {
  border-bottom: 0;
}

.table .tick {
  display: inline-grid; /* center tick dot */
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: radial-gradient(circle at 50% 50%, var(--accent) 0 6px, transparent 7px);
}

/* Pricing */
.price-tabs {
  display: flex; /* inline tab buttons */
  gap: 10px;
  align-items: center;
  flex-wrap: wrap; /* wrap on small screens */
}

.pricing-grid {
  display: grid; /* 3-up pricing cards */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.plan.card.pad {
  display: grid; /* vertical content stack */
  gap: 8px;
  align-content: start;
}

.plan .price {
  font: 700 32px/1 var(--display);
}

.plan .sub {
  color: var(--muted);
  font-size: 16px;
}

.plan.highlight {
  border-color: #dfe66a;
  box-shadow: 0 0 0 1px #e6ef8a inset, var(--shadow-2);
}

/* Choose Grid */
.choose-grid {
  display: grid; /* 3-up choose cards */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.choose.card.pad {
  display: grid; /* stacked contents */
  gap: 8px; /* spacing between title and title */
  align-content: start;
  box-shadow: var(--shadow-1);
  transition: transform 0.06s ease, box-shadow 0.2s ease; /* hover lift */
  padding: 12px;
}

.choose.card.pad .ph {
  width: 100%;
  margin: 0 0 20px 0;
  overflow: hidden; /* crop overflow */
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.choose.card.pad .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fill image area */
  display: block;
}

.choose.card.pad:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}

/* Make "Learn More" link only as wide as its contents */
.choose.card.pad > .learn-more {
  display: inline-flex; /* text + arrow inline */
  align-items: center;
  gap: 8px;
  padding: 0;
  width: auto; /* shrink to content */
  justify-self: start; /* avoid stretching full width */
}

.choose .price {
  font: 700 32px/1 var(--display);
}

.choose .sub {
  color: var(--muted);
  font-size: 16px;
}

.choose.highlight {
  border-color: color-mix(in srgb, var(--accent) 30%, transparent); /* subtle accent ring */
}

.choose .card-title {
  font: 600 clamp(20px, 2.8vw, 28px) var(--display);
  margin: 0 0 6px 0;
  display: inline-flex; /* icon + text on one line */
  align-items: center; /* vertically align icon/text */
  gap: 0.5em; /* space between icon and label */
}

/* Modifier: center all content inside the card */
.choose.card.pad.center {
  text-align: center;
  justify-items: center; /* center grid children */
}

/* Only h3 inside centered card: larger and stacked */
.choose.card.pad.center h3.card-title {
  font-size: clamp(24px, 3.2vw, 34px);
  display: flex; /* stack icon over text */
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: -10px;
}

/* Ensure SVG scales nicely */
.choose.card.pad.center h3.card-title svg {
  display: block;
  margin: 0 auto;
}

/* =========================================================
   Helpers / Misc
   ========================================================= */
.sep {
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}

ul.clean,
ul.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.checklist li {
  display: grid; /* dot + text grid */
  grid-template-columns: 22px 1fr;
  gap: 3px;
  align-items: start;
  margin: 8px 0;
}

.check {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  margin-top: 6px;
}

ul.checklist li span:nth-child(2) {
  margin-top: -2px;
}

.fake-link {
  cursor: pointer;
  display: inline-flex; /* align icon and text */
  align-items: center;
  gap: 6px;
  user-select: none;
}

.with-icon {
  display: flex; /* icon + label row */
  align-items: center;
  gap: 10px;
}

.ph {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.ph.dark {
  background: radial-gradient(40% 40% at 70% 25%, rgba(255, 255, 255, 0.06), transparent 60%), #121214;
  border: 1px solid #1b1b1d;
}

.ph.ph--inset {
  padding: clamp(8px, 2vw, 16px);
  display: grid; /* center inner image/content */
  place-items: center;
  max-width: 100%;
  aspect-ratio: 4/3; /* stable frame ratio */
}

.ph.ph--inset img {
  width: 100%;
  height: auto;
  object-fit: contain; /* no cropping inside inset */
  display: block;
}

.elevate {
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.06);
}

.hover-lift {
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  will-change: transform, box-shadow; /* performance hint */
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
}

.card.hover-lift:hover {
  border-color: #eaeaea;
}

.hero-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: clamp(24px, 3.8vw, 48px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.07);
}

/* Hero two-column with intrinsic-width image on the right */
.hero-grid {
  display: grid; /* text + media */
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  align-items: start; /* keep text pinned to top */
}

.hero-copy {
  align-self: start;
}

/* Make the hero image responsive and centered */
.hero-image { 
  display: flex; 
  justify-content: center; 
  align-items: center; 
}

.hero-image img {
  width: 100%;
  max-width: 600px;   /* keeps it from growing past desktop design */
  height: auto;       /* preserves aspect ratio */
  object-fit: contain;
}

/* Add top buffer when scrolling to anchored elements */
[id] {
  scroll-margin-top: 120px; /* account for fixed header height */
}

.icon-grid {
  align-items: start;
}

.icon-item {
  display: grid; /* stacked icon + label */
  justify-items: center; /* center horizontally */
  gap: 25px;
  text-align: center;
}

.icon-128 {
  width: 128px;
  height: 128px;
}

.icon-item h3 {
  margin: 6px 0 0;
  font-weight: 500;
}

.form-row-group {
  display: flex; /* rows side-by-side */
  gap: 50px;
  flex-wrap: wrap; /* stack on small screens */
}

.form-row {
  flex: 0 0 auto;
  min-width: 240px; /* prevent over-shrinking */
}

.input-with-unit {
  display: flex; /* input + unit select */
  gap: 8px;
  align-items: center;
}

.actions-row {
  display: flex; /* button left, cost right */
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.actions-row .muted {
  font-size: 14px;
  color: #666;
}

.calc-actions .btn {
  margin-top: 15px;
}

/* Grid layout for the form */
.form-grid {
  display: grid; /* two-column form */
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Each row container fills its cell */
.form-row {
  display: flex; /* label + control stack */
  flex-direction: column;
  gap: 6px;
}

/* Input + dropdown: split evenly */
.input-with-unit {
  display: flex;
  gap: 8px;
}

.input-with-unit .input {
  flex: 1; /* share space with unit select */
}

/* Plain inputs stretch full width */
.form-row > .input {
  width: 100%;
}

.actions {
  display: flex; /* button + captcha row */
  align-items: center;
  gap: 25px;
  margin-top: -10px;
}

/* space between button and captcha */
.turnstile-inline {
  margin-left: 10px;
  transform: scale(0.65); /* visually shrink captcha */
  transform-origin: left center; /* scale from the left */
  margin-top: 4px;
}

.muted.small {
  font-size: 14px;
  line-height: 1.4;
  margin-top: 4px;
  margin-left: 2px;
}

.actions-row .estimated-cost {
  text-align: right;
  font-size: 18px;
  line-height: 1.3;
}

.actions-row .estimated-cost .label {
  display: block; /* label on its own line */
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 2px;
}

.actions-row .estimated-cost strong {
  font-size: 24px;
  color: var(--accent);
  font-weight: 700;
}

/* Estimate container */
.estimate-box {
  text-align: center;
  background: linear-gradient(135deg, #fafafa, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 4px 2px rgba(0, 0, 0, 0.04);
  margin-top: 25px;
}

.estimate-label {
  font-size: 16px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  font-weight: 600;
}

.estimate-value {
  font-size: 32px;
  font-weight: 600;
  color: var(--accent);
}

.estimate-value strong {
  font-size: 40px;
  font-weight: 700;
}

.tooltip {
  position: relative; /* anchor for bubble */
  cursor: help;
  border-bottom: 1px dotted #888;
}

.tooltip .tooltip-text {
  visibility: hidden; /* hide by default */
  width: 220px;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 8px;
  position: absolute; /* position relative to trigger */
  z-index: 1; /* above surrounding content */
  bottom: 125%; /* place above trigger */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0; /* fade-in on hover */
  transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* =========================================================
   Animation
   ========================================================= */
.fade-in {
  animation: f-in 0.5s ease both; /* enter animation */
}

@keyframes f-in {
  from {
    opacity: 0;
    transform: translateY(6px); /* slide up + fade */
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   Image Popup
   ========================================================= */
.image-zoom-container {
  position: relative;
  cursor: pointer;
}

.image-zoom-container img {
  transition: transform 0.3s ease;
}

/* remove hover opacity or shading */
.image-zoom-container img:hover {
  opacity: 1;
  transform: none;
}

/* remove any hover text indicator */
.image-zoom-container::after {
  position: absolute;
  bottom: 10px;
  right: 15px;
  font-size: 14px;
  color: white;
  opacity: 0.7;
  content: "";
}

/* fullscreen popup */
.fullscreen-viewer {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
}

.fullscreen-viewer img {
  max-width: 90%;
  max-height: 90%;
}

.fullscreen-viewer.active {
  display: flex;
  cursor: zoom-out;
}


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

@media (max-width: 1200px) {
  .nav-portal {
    display: none !important;
  }

  /* Collapse the Products mega-menu to a single column on mobile */
  #products-menu {
    min-width: 0; /* allow smaller menu */
  }

  #products-menu .dropdown-content {
    display: block; /* stack content vertically */
  }
}

@media (max-width: 1100px) {
  .ph-6x5 {
    height: auto;               /* let it scale naturally */
    aspect-ratio: 6 / 5;        /* maintain 6:5 proportion */
  }

  .ph-6x5 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #contactForm .grid-2 {
    grid-template-columns: 1fr !important; /* single-column form */
  }

  .nav-demo {
    display: none !important;
  }

  .feature-row,
  .tech-split,
  .testimonial {
    grid-template-columns: 1fr; /* stack sections */
  }

  .quote-band {
    grid-template-columns: 1fr; /* stack text/media */
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr); /* simplify footer columns */
  }

  .footer-grid > div:first-child {
    order: 99; /* move branding to bottom */
  }

  .panel-wide {
    grid-template-columns: 1fr; /* single column panel */
  }

  .faq-grid {
    grid-template-columns: 2fr; /* widen FAQ content */
  }

  .duo-panels {
    grid-template-columns: 1fr;
  }

  .service-split {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

.hero-image {
  justify-content: center;
  align-items: center;
  margin-top: 24px;
  width: 100%;
}

.hero-image img {
  width: 100%;
  max-width: 480px;
  height: auto;
  object-fit: contain;
}

}

@media (max-width: 900px) {
  form .actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  form .actions .cf-turnstile {
    order: -1;
    width: 100%;
    transform: scale(0.6);
    transform-origin: center;
  }

  form .actions button {
    width: 100%;
  }

  .hide-mobile {
    display: none !important;
  }

  .choose.card.pad.center h3.card-title img {
    display: none;
  }

  .hero-image img {
    object-fit: cover;
  }
  .panel.vdc-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel.vdc-card .panel-illu {
    display: none;
  }

  .stats-grid {
    grid-template-columns: 1fr; /* single column stats */
    row-gap: 60px;
    column-gap: 0;
  }

  .stats-grid.three-col {
    grid-template-columns: 1fr; /* collapse 3-col variant */
    row-gap: 32px;
  }

  .choose-grid {
    grid-template-columns: repeat(2, 1fr); /* 2-up cards */
  }

  .site-header .bar {
    grid-template-columns: auto auto;
    grid-template-areas: "logo ctas" "nav nav"; /* responsive header layout */
    row-gap: 10px;
  }

  .logo {
    grid-area: logo;
    justify-self: start;
  }

  .nav-cta {
    grid-area: ctas;
    justify-self: end;
  }

  .main-nav {
    grid-area: nav;
    justify-self: start;
  }

  .nav-list {
    grid-auto-flow: row; /* stack nav items */
    grid-template-columns: 1fr;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    display: none; /* closed by default */
  }

  .nav-list.open {
    display: grid; /* open state via JS */
  }

  .burger {
    display: inline-grid; /* show hamburger */
    place-items: center;
  }

  .dropdown {
    position: relative; /* detach from absolute */
    inset: auto;
    margin-top: 0;
    display: none; /* closed by default in mobile flow */
    opacity: 1;
    visibility: visible; /* visible when displayed */
    transform: none;
    pointer-events: auto;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-left: 0;
  }

  .nav-item.open .dropdown {
    display: block; /* open via JS toggle */
    margin-top: 8px;
    padding: 10px 0;
  }

  .nav-link:hover + .dropdown,
  .fake-link:hover + .dropdown,
  .dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr); /* fewer footer columns */
  }

  .footer-grid > div:first-child {
    order: 99;
  }

  .pricing-grid {
    grid-template-columns: 1fr; /* stack pricing cards */
  }

  .table thead {
    display: none; /* card-style table on mobile */
  }

  .table,
  .table tbody,
  .table tr,
  .table td {
    display: block; /* transform rows to blocks */
    width: 100%;
  }

  .table tr {
    border-bottom: 1px solid var(--border);
  }

  .table td {
    border: none;
    padding: 10px 16px;
  }

  #products-menu .product-card .ph {
    display: none; /* hide thumbnails in menu on mobile */
  }

  .dropdown-overview {
    max-width: none;
    padding-left: 0;
  }

  .dropdown-cards {
    grid-template-columns: 1fr; /* one card per row */
  }

  .product-card {
    width: 100%; /* fit container width */
  }
}

.sla-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: var(--ink);
  margin-top: 15px;
  margin-bottom: 15px;
  table-layout: fixed;
}

.sla-table th {
  font-weight: 600;
  text-align: left;
  padding: 10px 8px;
  border-bottom: 2px solid #ccc;
}

.sla-table td {
  padding: 10px 8px;
}

.sla-table tr:not(:last-child) td {
  border-bottom: 1px solid var(--border);
}

@media (max-width: 700px) {
  .choose-grid {
    grid-template-columns: 1fr; /* single column cards */
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr; /* collapse all grids */
  }

  .logo-strip {
    grid-auto-flow: row; /* stack logos */
    justify-content: start;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr); /* minimal footer grid */
  }

  .footer-grid > div:first-child {
    order: 99;
  }

  .form-grid {
    grid-template-columns: 1fr; /* single column form */
  }
}

/* =========================================================
   Print
   ========================================================= */
@media print {
  .site-header,
  .site-footer,
  .nav-cta,
  .nav-list,
  .burger,
  .btn,
  .dropdown {
    display: none !important; /* hide non-essential chrome */
  }

  html,
  body {
    background: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact; /* preserve intended colors */
  }

  .bg-dots,
  .bg-dots-dark {
    background: #fff !important; /* remove textures for print */
  }

  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  .card {
    border: none !important;
    box-shadow: none !important;
  }

  body {
    font-size: 12pt !important;
    line-height: 1.4 !important;
    color: #000 !important;
    padding: 0 !important;
  }

  h1,
  h2,
  h3,
  h4 {
    color: #000 !important;
    page-break-after: avoid; /* avoid breaking headings */
  }

  table {
    border-collapse: collapse !important;
    width: 100% !important;
  }

  table td,
  table th {
    border: 1px solid #000 !important; /* force visible borders */
    padding: 4px !important;
  }

  .section,
  div[id] {
    page-break-inside: avoid; /* keep blocks intact */
  }
}
