.rich-text > :first-child {
  margin-top: 0;
}

.rich-text > :last-child {
  margin-bottom: 0;
}

.responsive-table {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.responsive-table table {
  min-width: 42rem;
}

.field-error,
.errorlist {
  color: #a61b1b;
}

.site-messages {
  position: relative;
  z-index: 20;
  margin-top: var(--header-height);
}

.message {
  margin: 0;
  padding: 0.75rem 1rem;
  text-align: center;
}

.message-success {
  background: #e6f6ed;
  color: #075b2d;
}

.message-error {
  background: #fdecec;
  color: #871414;
}

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

section[id],
[id].anchor-target {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

:is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--brand-primary-dark);
  outline-offset: 3px;
}

.hero,
.hero-carousel {
  min-height: 100svh;
  height: 100svh;
}

.wagtail-image,
.cms-image {
  display: block;
  height: auto;
  max-width: 100%;
}

.breadcrumbs {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 18px var(--page-padding);
  color: var(--text-muted);
  font-size: var(--fs-body-sm);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--neutral-400);
}

.case-library,
.resource-grid,
.card-grid,
.media-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}

.case-library {
  grid-template-columns: 1fr;
}

.case-card,
.resource-card,
.card-grid .card,
.media-gallery figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 10px 30px rgba(27, 50, 38, 0.05);
}

.case-card {
  padding: clamp(18px, 3vw, 32px);
}

.resource-card-body,
.card-grid .card {
  padding: var(--space-lg);
}

.card-grid .card > img {
  width: calc(100% + (var(--space-lg) * 2));
  max-width: none;
  margin: calc(var(--space-lg) * -1) calc(var(--space-lg) * -1) var(--space-lg);
}

.resource-card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

.resource-card dt {
  color: var(--text-muted);
}

.resource-card dd {
  margin: 0;
  font-weight: 600;
}

.media-gallery figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-gallery figcaption {
  padding: 12px 16px;
  color: var(--text-muted);
  font-size: var(--fs-body-sm);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-md);
}

.metric {
  padding: var(--space-md);
  text-align: center;
}

.metric strong,
.metric span,
.metric small {
  display: block;
}

.metric strong {
  color: var(--brand-primary-dark);
  font-size: var(--fs-h3);
}

.metric small {
  margin-top: 6px;
  color: var(--text-muted);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-lg);
  padding: 0;
  counter-reset: process;
  list-style: none;
}

.process-steps li {
  position: relative;
  padding: var(--space-lg);
  border-top: 3px solid var(--brand-primary);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: var(--bg-secondary);
}

.process-steps .step-number {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: var(--space-md);
  border-radius: 50%;
  background: var(--brand-primary-dark);
  color: #fff;
  font-weight: 700;
}

.image-text.image-right > .cms-image {
  order: 2;
}

.image-text.image-left > .cms-image {
  order: 0;
}

.news-empty {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 64px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: #fff;
  text-align: center;
}

@media (max-width: 960px) {
  .case-library,
  .resource-grid,
  .card-grid,
  .media-gallery,
  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 600px) {
  .case-library,
  .resource-grid,
  .card-grid,
  .media-gallery,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .image-text.image-right > .cms-image {
    order: 0;
  }
}

.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group select,
.form-group textarea {
  box-sizing: border-box;
  max-width: 100%;
  width: 100%;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

/* Product-led homepage hero: separate crops keep the real device legible. */
.home-page .hero-slide {
  background-image: var(--hero-desktop-image);
  background-position: center;
}

.home-page .hero-slide::before {
  background:
    linear-gradient(90deg, rgba(1, 18, 24, 0.74) 0%, rgba(1, 18, 24, 0.54) 35%, rgba(1, 18, 24, 0.08) 60%, transparent 76%),
    linear-gradient(0deg, rgba(1, 14, 20, 0.34) 0%, transparent 42%);
}

.home-page .hero-slide-content {
  bottom: clamp(120px, 15vh, 170px);
}

@media (min-width: 601px) and (max-width: 1100px) {
  .home-page .hero-slide-content {
    bottom: clamp(92px, 12vh, 124px);
  }

  .home-page .hero-slide-content .hero-title {
    max-width: 52vw;
    font-size: clamp(38px, 5vw, 50px);
  }

  .home-page .hero-slide-content .hero-subtitle {
    max-width: 49vw;
    font-size: 17px;
  }
}

@media (max-width: 600px) {
  .home-page .hero-slide {
    background-image: var(--hero-mobile-image);
    background-position: center;
  }

  .home-page .hero-slide::before {
    background:
      linear-gradient(0deg, rgba(1, 16, 22, 0.94) 0%, rgba(1, 16, 22, 0.78) 34%, rgba(1, 16, 22, 0.12) 61%, transparent 76%),
      linear-gradient(90deg, rgba(1, 16, 22, 0.18), transparent 60%);
  }

  .home-page .hero-slide-content {
    bottom: 84px;
  }

  .home-page .hero-slide-content .hero-badge {
    margin-bottom: 14px;
    padding: 6px 13px;
    font-size: 10px;
  }

  .home-page .hero-slide-content .hero-title {
    margin-bottom: 14px;
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1.08;
  }

  .home-page .hero-slide-content .hero-subtitle {
    display: -webkit-box;
    margin-bottom: 22px;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .home-page .hero-slide-content .btn-group {
    gap: 10px;
  }

  .home-page .hero-slide-content .btn {
    min-height: 44px;
    padding: 10px 15px;
    font-size: 13px;
  }
}

.skip-link:focus {
  clip-path: none;
  width: auto;
  height: auto;
  overflow: visible;
  padding: 10px 16px;
  border-radius: 4px;
  background: #fff;
  color: #111827;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

@media (max-width: 960px) {
  .header-transparent .nav.open .nav-link {
    color: var(--neutral-700);
    text-shadow: none;
  }

  .header-transparent .nav.open .nav-link:hover,
  .header-transparent .nav.open .nav-link.active {
    color: var(--brand-primary);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-slide {
    transition: none !important;
  }
}

@media print {
  .header,
  .footer,
  .site-messages,
  .cta-section,
  .product-gallery-thumbs,
  .btn,
  .skip-link {
    display: none !important;
  }

  body,
  main,
  .section,
  .container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #000 !important;
    background: #fff !important;
  }

  table {
    break-inside: avoid;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}

.product-key-metrics {
  margin-top: var(--space-2xl);
}

.product-key-metrics small {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 12px;
}

.product-highlight-list li {
  align-items: flex-start;
  line-height: 1.6;
}

.product-highlight-list strong {
  color: var(--text-heading);
  font-weight: 700;
}

.product-highlight-list span {
  color: var(--text-body);
}

/* Product source files use a white studio background. Blend that white into the
   neutral media frame without erasing the device's white body or redrawing it. */
.product-card-image,
.product-device-media,
.product-gallery-main,
.product-gallery-thumb {
  isolation: isolate;
}

.product-card-image img,
.product-device-media img,
.product-gallery-main img,
.product-gallery-thumb img {
  mix-blend-mode: multiply;
}

.product-card-image img {
  width: 125%;
  height: 125%;
  max-width: none;
  flex: 0 0 auto;
}

.related-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
}

.related-card {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.2fr);
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: #fff;
  color: inherit;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.related-card:hover {
  border-color: var(--brand-primary-100);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.related-card-media {
  min-height: 250px;
  background: var(--bg-secondary);
}

.related-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.related-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-lg);
}

.related-card-body h3 {
  margin-bottom: 8px;
  font-size: var(--fs-h4);
}

.related-card-body p {
  margin-bottom: 18px;
  color: var(--text-muted);
}

@media (max-width: 760px) {
  .related-products,
  .related-card {
    grid-template-columns: 1fr;
  }

  .related-card-media {
    min-height: 220px;
  }
}

.article-navigation-section {
  border-top: 1px solid var(--border-light);
}

.article-navigation .icon-card {
  box-shadow: none;
  border-color: var(--border-light);
  background: #fff;
}

.article-navigation .icon-card:hover {
  border-color: var(--brand-primary-100);
  background: var(--brand-primary-50);
  transform: translateY(-2px);
}

.article-navigation .icon-card h4 {
  margin-top: 10px;
  font-size: var(--fs-h5);
  font-weight: 500;
  line-height: 1.45;
}

.article-next {
  text-align: right;
}

.related-articles .news-card {
  height: 100%;
}

.related-articles .news-card-body {
  display: flex;
  min-height: 210px;
  flex-direction: column;
}

@media (max-width: 960px) {
  .article-meta {
    flex-wrap: wrap;
    gap: 8px 10px;
  }

  .article-navigation {
    grid-template-columns: 1fr;
  }

  .article-next {
    text-align: left;
  }

  .related-articles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .related-articles {
    grid-template-columns: 1fr;
  }

  .related-articles .news-card-body {
    min-height: 0;
  }
}

.footer-disclosure-trigger {
  all: unset;
  color: inherit;
  font: inherit;
}

.footer-disclosure-panel[hidden] {
  display: none;
}

@media (min-width: 961px) {
  .footer-disclosure-trigger {
    pointer-events: none;
  }

  .footer-disclosure-icon {
    display: none;
  }

  .footer-disclosure-panel {
    display: block !important;
  }
}

@media (max-width: 960px) {
  .footer-grid {
    gap: 0;
  }

  .footer-brand,
  .footer-newsletter {
    margin-bottom: 28px;
  }

  .footer-disclosure {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .footer-disclosure + .footer-disclosure {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .footer-disclosure h4 {
    margin: 0;
  }

  .footer-disclosure-trigger {
    box-sizing: border-box;
    display: flex;
    min-height: 48px;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
  }

  .footer-disclosure-trigger:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 3px;
  }

  .footer-disclosure-icon {
    position: relative;
    width: 18px;
    height: 18px;
  }

  .footer-disclosure-icon::before,
  .footer-disclosure-icon::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 2px;
    width: 14px;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 180ms ease;
  }

  .footer-disclosure-icon::after {
    transform: rotate(90deg);
  }

  .footer-disclosure.is-open .footer-disclosure-icon::after {
    transform: rotate(0deg);
  }

  .footer-disclosure-panel {
    padding: 0 0 18px;
  }

  .footer-disclosure-panel ul {
    display: grid;
    gap: 4px;
  }

  .footer-disclosure-panel a {
    display: block;
    min-height: 40px;
    padding: 9px 0;
  }

  .footer-newsletter {
    margin-top: 28px;
  }

  .footer-bottom {
    gap: 12px;
    padding-top: 20px;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    gap: 10px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-disclosure-icon::before,
  .footer-disclosure-icon::after {
    transition: none;
  }
}

.inquiry-form-card {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.08);
}

.inquiry-form-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), #72d9ad);
}

.inquiry-form-header {
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-light);
}

.inquiry-form-header h3 {
  margin: 7px 0 8px;
}

.inquiry-form-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--fs-body-sm);
  line-height: 1.65;
}

.inquiry-form-sla {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 7px 11px;
  border-radius: var(--radius-full);
  background: var(--brand-primary-50);
  color: var(--brand-primary-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.inquiry-form-sla::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.12);
}

.inquiry-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}

.inquiry-form-field {
  min-width: 0;
  margin: 0;
}

.inquiry-form-field--wide,
.inquiry-form-field--message,
.inquiry-form-field--attachment,
.inquiry-form-field--consent,
.inquiry-form-actions,
.inquiry-form-errors {
  grid-column: 1 / -1;
}

.inquiry-form-field .form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-heading);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.required-mark {
  color: #b42318;
}

.inquiry-form-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.inquiry-form-field select,
.inquiry-form-field textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #d5d9de;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-heading);
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.inquiry-form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.inquiry-form-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):hover,
.inquiry-form-field select:hover,
.inquiry-form-field textarea:hover {
  border-color: #aeb5bd;
}

.inquiry-form-field input:focus,
.inquiry-form-field select:focus,
.inquiry-form-field textarea:focus {
  border-color: var(--brand-primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 166, 81, 0.12);
}

.inquiry-form-field input:disabled,
.inquiry-form-field select:disabled,
.inquiry-form-field textarea:disabled {
  cursor: not-allowed;
  background: var(--neutral-100);
  color: var(--text-muted);
}

.inquiry-form-field small {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.inquiry-form-field.has-error input:not([type="checkbox"]):not([type="radio"]),
.inquiry-form-field.has-error select,
.inquiry-form-field.has-error textarea {
  border-color: #d92d20;
  background: #fffafa;
}

.inquiry-form-field.has-error input:focus,
.inquiry-form-field.has-error select:focus,
.inquiry-form-field.has-error textarea:focus {
  box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.1);
}

.inquiry-form-field--consent {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
}

.inquiry-form-field--consent .form-label {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  line-height: 1.55;
  cursor: pointer;
}

.inquiry-form-field--consent input[type="checkbox"] {
  grid-column: 1;
  grid-row: 1;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--brand-primary);
}

.inquiry-form-field--consent .field-error,
.inquiry-form-field--consent small {
  grid-column: 1 / -1;
}

.inquiry-form-field--attachment {
  padding: 16px;
  border: 1px dashed #b8c0c8;
  border-radius: var(--radius-sm);
  background: #fafbfb;
}

.inquiry-form-field--attachment input[type="file"] {
  box-sizing: border-box;
  width: 100%;
  color: var(--text-muted);
  font-size: 13px;
}

.inquiry-form-field--attachment input[type="file"]::file-selector-button {
  min-height: 40px;
  margin-right: 12px;
  padding: 8px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-heading);
  font-weight: 650;
  cursor: pointer;
}

.inquiry-form-errors,
.field-error {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #fff1f0;
  color: #8f1d18;
  font-size: 13px;
  line-height: 1.5;
}

.field-error {
  margin-top: 7px;
}

.field-error .errorlist,
.inquiry-form-errors .errorlist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.inquiry-form-actions {
  padding-top: 4px;
}

.inquiry-form-actions .btn {
  width: 100%;
  min-height: 50px;
}

.form-privacy,
.inquiry-form-response-note {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.inquiry-form-response-note {
  margin: 10px 0 0;
}

.inquiry-form-success {
  padding: 34px 20px;
  border: 1px solid #b7e4cb;
  border-radius: var(--radius-md);
  background: #f2fbf6;
  text-align: center;
}

.inquiry-form-success-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}

.inquiry-form-success h2 {
  margin-bottom: 8px;
}

.inquiry-form-success p {
  margin: 0;
  color: var(--text-muted);
}

.feature-image--device {
  background: #fff;
}

.feature-image--device img {
  object-fit: contain;
}

@media (max-width: 960px) {
  .inquiry-form-grid {
    grid-template-columns: 1fr;
  }

  .inquiry-form-field,
  .inquiry-form-actions,
  .inquiry-form-errors {
    grid-column: 1;
  }
}
