/*
  CYVARIX Master responsive layer — 2026-08-21
  Loaded after the compiled application stylesheet.
*/

:root {
  --cy-safe-top: env(safe-area-inset-top, 0px);
  --cy-safe-right: env(safe-area-inset-right, 0px);
  --cy-safe-bottom: env(safe-area-inset-bottom, 0px);
  --cy-safe-left: env(safe-area-inset-left, 0px);
  --cy-mobile-gutter: 20px;
  --cy-radius-sm: 12px;
  --cy-radius-md: 20px;
  --cy-shadow-premium: 0 28px 90px rgba(0, 0, 0, 0.34);
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  scroll-padding-top: 92px;
  background: #080b16;
}

body {
  width: 100%;
  max-width: 100%;
  min-width: 320px;
  overflow-x: clip;
  overscroll-behavior-x: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background: #080b16;
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

#root,
main,
.site-shell,
header,
footer,
section,
article,
nav,
form,
.inquiry-form-shell,
.inquiry-step-panel,
.demo-lab,
.console-shell,
.dashboard-shell {
  min-width: 0;
  max-width: 100%;
}

main {
  isolation: isolate;
  overflow: clip;
}

.site-shell {
  isolation: isolate;
  overflow: clip;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  touch-action: manipulation;
}

:where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid var(--gold-light, #ead3a2);
  outline-offset: 3px;
}

::selection {
  color: #080b16;
  background: #ead3a2;
}

/* Prevent decorative layers from creating a horizontal document canvas. */
.ambient,
.hero,
.ai-stage,
.client-strip,
.system-showcase,
.demo-section,
.process-section,
.final-cta,
.inquiry-overlay,
.legal-overlay {
  overflow: clip;
}

.ambient {
  width: min(46rem, 115vw);
  height: min(46rem, 115vw);
}

.stage-grid {
  inset: -8%;
  pointer-events: none;
}

.cta-glow {
  width: min(620px, 130vw);
  height: min(620px, 130vw);
}

/* Small premium usability refinements on every viewport. */
.button-primary,
.button-ghost,
.header-cta,
.cart-trigger,
.demo-request-button,
.form-next,
.form-back {
  min-height: 44px;
}

.button-primary,
.button-ghost,
.form-next,
.header-cta {
  border-radius: 1px;
}

.hero-copy,
.section-heading-row > *,
.demo-heading > *,
.pricing-title > *,
.process-heading > *,
.faq-section > * {
  min-width: 0;
}

.hero h1,
.section-heading-row h2,
.showcase-copy h2,
.demo-heading h2,
.pricing-title h2,
.process-heading h2,
.faq-intro h2,
.final-cta h2 {
  text-wrap: balance;
}

.hero-lead,
.section-heading-row p,
.showcase-copy p,
.demo-heading > p,
.final-cta > p,
.founder-note blockquote {
  text-wrap: pretty;
}

/* Desktop/tablet overflow containment without changing the visual composition. */
.hero,
.demo-section,
.final-cta {
  contain: paint;
}

.ai-stage {
  overflow: hidden;
  isolation: isolate;
}

.demo-tabs,
.demo-tabs button {
  min-width: 0;
}

/* Full-screen forms should always win over third-party widgets. */
.inquiry-overlay,
.legal-overlay,
.cart-overlay {
  z-index: 2147483000 !important;
}

.inquiry-modal {
  max-height: calc(100dvh - 48px);
}

.inquiry-step-panel {
  overscroll-behavior: contain;
}

.inquiry-form-shell input,
.inquiry-form-shell textarea,
.inquiry-form-shell select {
  caret-color: var(--gold-light, #ead3a2);
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* TABLET */
@media (max-width: 1000px) {
  .hero {
    overflow: hidden;
  }

  .ai-stage {
    width: 100%;
  }

  .footer-main,
  .footer-nav {
    min-width: 0;
  }
}

@media (max-width: 820px) {
  :root {
    --cy-mobile-gutter: 22px;
  }

  html {
    scroll-padding-top: 76px;
  }

  .announcement {
    min-height: 36px;
    padding-left: max(16px, var(--cy-safe-left));
    padding-right: max(12px, var(--cy-safe-right));
  }

  .site-header {
    padding-left: max(18px, var(--cy-safe-left));
    padding-right: max(18px, var(--cy-safe-right));
  }

  .hero {
    gap: 20px;
  }

  .demo-tabs {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow: visible !important;
    padding: 8px !important;
    scrollbar-width: none;
  }

  .demo-tabs::-webkit-scrollbar {
    display: none;
  }

  .demo-tabs button {
    min-width: 0 !important;
    min-height: 82px !important;
    padding: 10px 5px !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px !important;
    text-align: center !important;
    overflow: hidden;
  }

  .demo-tab-number {
    display: none !important;
  }

  .demo-tab-icon {
    width: 31px !important;
    height: 31px !important;
    flex: 0 0 31px;
  }

  .demo-tabs button > span:not(.demo-tab-icon):not(.demo-tab-number) {
    width: 100%;
    min-width: 0;
    display: block;
  }

  .demo-tabs button strong {
    display: block;
    overflow: hidden;
    font-size: 8px !important;
    line-height: 1.25;
    letter-spacing: 0.07em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .demo-tabs button small {
    display: none !important;
  }

  .demo-tab-indicator {
    top: auto !important;
    right: 22% !important;
    bottom: 0 !important;
    left: 22% !important;
    width: auto !important;
    height: 2px !important;
  }

  .demo-lab {
    overflow: hidden;
  }

  .inquiry-overlay {
    padding: 0 !important;
    height: 100dvh;
  }

  .inquiry-modal {
    width: 100% !important;
    height: 100dvh !important;
    min-height: 0 !important;
    max-height: 100dvh !important;
    border: 0 !important;
    border-radius: 0;
  }

  .inquiry-form-shell {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  .inquiry-form-head {
    flex: 0 0 auto;
    padding-top: max(66px, calc(var(--cy-safe-top) + 52px)) !important;
  }

  .inquiry-progress {
    flex: 0 0 auto;
  }

  .inquiry-step-panel {
    min-height: 0;
    padding-bottom: 30px !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .inquiry-footer {
    flex: 0 0 auto;
    padding-bottom: max(18px, calc(var(--cy-safe-bottom) + 10px)) !important;
    background: rgba(11, 14, 27, 0.97);
    box-shadow: 0 -18px 45px rgba(0, 0, 0, 0.24);
  }

  .inquiry-close {
    top: max(14px, calc(var(--cy-safe-top) + 8px)) !important;
    right: max(14px, calc(var(--cy-safe-right) + 10px)) !important;
    width: 44px;
    height: 44px;
  }

  .inquiry-form-shell input,
  .inquiry-form-shell textarea,
  .inquiry-form-shell select {
    font-size: 16px !important;
  }

  .legal-modal {
    height: 100dvh !important;
    max-height: 100dvh !important;
  }

  .legal-bar {
    padding-top: max(12px, var(--cy-safe-top));
  }

  .legal-content {
    padding-bottom: max(60px, calc(var(--cy-safe-bottom) + 44px));
  }
}

/* MOBILE */
@media (max-width: 640px) {
  :root {
    --cy-mobile-gutter: 20px;
  }

  .announcement {
    gap: 8px;
    min-height: 38px;
    padding-top: 7px;
    padding-bottom: 7px;
    line-height: 1.25;
  }

  .announcement > span:not(.announcement-dot) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-header {
    height: 72px;
    background: rgba(8, 11, 22, 0.84);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .header-cta,
  .cart-trigger {
    min-width: 44px;
    min-height: 44px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px;
    min-height: auto;
    padding: 54px var(--cy-mobile-gutter) 28px !important;
  }

  .hero-copy {
    width: 100%;
    max-width: none;
  }

  .eyebrow {
    max-width: 335px;
    margin-bottom: 24px;
    font-size: 9px;
    line-height: 1.55;
    letter-spacing: 0.19em;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(3.05rem, 15.4vw, 4.12rem) !important;
    line-height: 0.92 !important;
    letter-spacing: -0.047em !important;
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero-lead {
    max-width: 36rem;
    margin: 26px 0 27px;
    font-size: 14px;
    line-height: 1.72;
  }

  .hero-actions {
    width: 100%;
    max-width: none !important;
    gap: 10px;
  }

  .hero-actions .button-primary,
  .hero-actions .button-ghost {
    width: 100%;
    min-height: 60px;
    padding: 15px 17px;
  }

  .hero-proof {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 38px;
  }

  .hero-proof div {
    min-width: 0;
    align-items: center;
    text-align: center;
  }

  .hero-proof strong {
    font-size: 16px !important;
    line-height: 1;
    white-space: nowrap;
  }

  .hero-proof span {
    margin-top: 4px;
    font-size: 6.5px !important;
    line-height: 1.25;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  .hero-proof i {
    height: 42px;
  }

  .ai-stage {
    width: 100%;
    min-height: 420px !important;
    margin: -2px 0 0 !important;
    transform: none !important;
    overflow: hidden;
  }

  .stage-grid {
    inset: -12%;
    transform: rotateX(64deg) translateY(130px) scale(1.02) !important;
  }

  .ai-stage::before {
    width: 92%;
  }

  .orbit-one {
    width: 310px !important;
    height: 310px !important;
  }

  .orbit-two {
    width: 360px !important;
    height: 228px !important;
  }

  .orbit-three {
    width: 218px !important;
    height: 365px !important;
  }

  .ai-core {
    width: 210px;
    height: 210px;
  }

  .core-shell {
    width: 172px;
    height: 172px;
  }

  .core-shell span {
    font-size: 41px;
  }

  .metric-card {
    gap: 9px;
    padding: 11px 12px;
  }

  .metric-card small {
    font-size: 6px;
  }

  .metric-leads {
    top: 66px !important;
    right: 2px !important;
  }

  .metric-live {
    top: 238px !important;
    left: 2px !important;
  }

  .metric-roi {
    right: 5px !important;
    bottom: 44px !important;
  }

  .stage-label {
    display: none;
  }

  .client-strip {
    min-height: auto;
    padding: 18px var(--cy-mobile-gutter) !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: center !important;
    gap: 10px 14px !important;
    white-space: normal;
    font-size: 8px;
    line-height: 1;
  }

  .client-strip i {
    width: 3px;
    height: 3px;
  }

  .services-intro,
  .pricing-preview,
  .system-showcase,
  .demo-section,
  .process-section,
  .trust-standard,
  .faq-section {
    width: 100%;
    padding-right: var(--cy-mobile-gutter) !important;
    padding-left: var(--cy-mobile-gutter) !important;
  }

  .services-intro,
  .pricing-preview {
    padding-top: 78px !important;
    padding-bottom: 78px !important;
  }

  .system-showcase,
  .demo-section,
  .process-section,
  .trust-standard,
  .faq-section {
    padding-top: 78px !important;
    padding-bottom: 78px !important;
  }

  .section-kicker {
    margin-bottom: 26px;
  }

  .section-heading-row,
  .pricing-title,
  .demo-heading,
  .process-heading {
    gap: 22px;
  }

  .section-heading-row h2,
  .pricing-title h2,
  .showcase-copy h2,
  .process-heading h2,
  .faq-intro h2 {
    font-size: clamp(2.72rem, 12vw, 3.32rem) !important;
    line-height: 1;
  }

  .demo-heading h2 {
    font-size: clamp(2.82rem, 12.6vw, 3.48rem) !important;
    line-height: 0.98;
  }

  .section-heading-row p,
  .showcase-copy p,
  .demo-heading > p {
    font-size: 13px;
    line-height: 1.76;
  }

  .expertise-grid {
    margin-top: 40px;
  }

  .expertise-grid article {
    min-height: 0 !important;
    padding: 30px 0 !important;
  }

  .expertise-grid h3 {
    margin-top: 34px !important;
    font-size: 29px;
  }

  .dashboard-shell {
    width: 100%;
    min-height: 410px !important;
    margin: 0 !important;
    overflow: hidden;
  }

  .demo-heading {
    margin-bottom: 38px !important;
  }

  .demo-lab {
    width: 100%;
  }

  .console-topbar {
    min-width: 0;
  }

  .console-topbar > span,
  .console-topbar > div {
    min-width: 0;
  }

  .console-body {
    min-height: 510px !important;
  }

  .console-controls {
    gap: 12px;
  }

  .demo-request-panel {
    gap: 20px;
  }

  .package-grid {
    gap: 16px;
  }

  .package-card {
    padding: 28px 22px !important;
  }

  .package-card h3 {
    text-wrap: balance;
  }

  .process-grid article,
  .process-grid article:first-child,
  .process-grid article:last-child {
    padding: 27px 24px !important;
  }

  .trust-grid article {
    min-height: 165px !important;
  }

  .founder-note {
    gap: 29px !important;
    padding: 68px var(--cy-mobile-gutter) !important;
  }

  .founder-note blockquote {
    font-size: clamp(1.75rem, 8.5vw, 2.2rem) !important;
    line-height: 1.18;
  }

  .faq-list button {
    min-height: 76px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .faq-list button strong {
    min-width: 0;
    font-size: 16px !important;
    line-height: 1.25;
  }

  .faq-answer p {
    margin-right: 10px;
    font-size: 12px;
    line-height: 1.72;
  }

  .final-cta {
    min-height: 690px !important;
    padding: 88px var(--cy-mobile-gutter) !important;
  }

  .final-cta h2 {
    font-size: clamp(3.35rem, 15.5vw, 4.25rem) !important;
    line-height: 0.96;
  }

  .final-cta > p {
    margin-top: 24px;
    font-size: 13px;
  }

  .cta-glow {
    width: min(520px, 124vw);
    height: min(520px, 124vw);
  }

  footer {
    padding-right: var(--cy-mobile-gutter) !important;
    padding-bottom: max(22px, calc(var(--cy-safe-bottom) + 14px)) !important;
    padding-left: var(--cy-mobile-gutter) !important;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    row-gap: 34px;
  }

  .footer-bottom {
    flex-wrap: wrap;
  }

  .footer-bottom span:last-child {
    max-width: 180px;
  }

  .inquiry-form-head {
    padding-right: 70px !important;
  }

  .inquiry-form-head h2 {
    max-width: 100%;
    font-size: clamp(2rem, 10.5vw, 2.65rem) !important;
    line-height: 1.03;
    text-wrap: balance;
  }

  .inquiry-form-head > div > span {
    font-size: 7px;
  }

  .inquiry-step-panel {
    padding-top: 22px !important;
  }

  .form-grid {
    gap: 14px !important;
  }

  .form-grid label > span {
    line-height: 1.5;
  }

  .form-grid input,
  .form-grid textarea {
    width: 100%;
    min-height: 54px;
  }

  .form-grid textarea {
    min-height: 124px;
  }

  .modal-system-grid > button,
  .modal-demo-grid > button {
    border-radius: 0;
  }

  .inquiry-footer-actions {
    gap: 9px;
  }

  .form-back {
    min-width: 92px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .form-next {
    min-height: 56px;
  }

  .inquiry-footer > p {
    line-height: 1.45;
  }

  .legal-content {
    padding-right: var(--cy-mobile-gutter) !important;
    padding-left: var(--cy-mobile-gutter) !important;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: clamp(3rem, 15.1vw, 3.95rem) !important;
  }

  .ai-stage {
    min-height: 400px !important;
  }

  .metric-card {
    max-width: 178px;
  }

  .demo-tabs button strong {
    font-size: 7.4px !important;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 360px) {
  :root {
    --cy-mobile-gutter: 16px;
  }

  .announcement {
    font-size: 7px !important;
  }

  .site-header {
    padding-right: 14px !important;
    padding-left: 14px !important;
  }

  .brand-mark {
    width: 39px;
    height: 39px;
  }

  .hero {
    padding-top: 46px !important;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 15.1vw, 3.45rem) !important;
  }

  .eyebrow {
    font-size: 8px;
  }

  .hero-proof strong {
    font-size: 14px !important;
  }

  .hero-proof span {
    font-size: 5.8px !important;
  }

  .ai-stage {
    min-height: 375px !important;
  }

  .orbit-one {
    width: 285px !important;
    height: 285px !important;
  }

  .orbit-two {
    width: 325px !important;
    height: 205px !important;
  }

  .orbit-three {
    width: 205px !important;
    height: 340px !important;
  }

  .ai-core {
    width: 194px;
    height: 194px;
  }

  .core-shell {
    width: 158px;
    height: 158px;
  }

  .metric-card {
    padding: 9px 10px;
    transform: scale(0.92);
  }

  .metric-leads {
    right: -5px !important;
  }

  .metric-live {
    left: -5px !important;
  }

  .metric-roi {
    right: -3px !important;
  }

  .client-strip span:nth-of-type(n + 6),
  .client-strip i:nth-of-type(n + 6),
  .client-strip i:last-of-type {
    display: none;
  }

  .demo-tabs {
    gap: 3px;
    padding: 6px !important;
  }

  .demo-tabs button {
    min-height: 76px !important;
    padding-right: 2px !important;
    padding-left: 2px !important;
  }

  .demo-tabs button strong {
    font-size: 6.8px !important;
  }

  .form-back {
    min-width: 78px;
  }

  .form-next {
    padding-left: 13px !important;
  }

  .form-next > i {
    width: 34px;
    height: 34px;
  }
}

/* Landscape phones: keep the modal usable instead of trapping the CTA below the fold. */
@media (max-height: 540px) and (orientation: landscape) and (max-width: 940px) {
  .inquiry-overlay {
    height: 100dvh;
    padding: 0 !important;
  }

  .inquiry-modal {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    height: 100dvh !important;
    min-height: 0 !important;
    max-height: 100dvh !important;
    border: 0 !important;
  }

  .inquiry-side {
    display: none !important;
  }

  .inquiry-form-shell {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  .inquiry-close {
    top: max(8px, var(--cy-safe-top)) !important;
    right: max(10px, var(--cy-safe-right)) !important;
  }

  .inquiry-form-head {
    padding-top: 52px !important;
    padding-bottom: 12px !important;
  }

  .inquiry-form-head h2 {
    font-size: 1.8rem !important;
  }

  .inquiry-step-panel {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
  }

  .inquiry-footer {
    padding-top: 8px !important;
    padding-bottom: max(8px, var(--cy-safe-bottom)) !important;
  }
}

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

/* Compact first-party launcher: Voiceflow is loaded only after an explicit click. */
.cyvarix-chat-launcher,
.cyvarix-chat-fallback {
  position: fixed;
  right: max(22px, calc(env(safe-area-inset-right, 0px) + 12px));
  bottom: max(22px, calc(env(safe-area-inset-bottom, 0px) + 12px));
  z-index: 2147481900;
  display: grid;
  place-items: center;
  width: 58px;
  min-width: 58px;
  height: 58px;
  min-height: 58px;
  margin: 0;
  padding: 0;
  color: #0b0e1b;
  background: linear-gradient(145deg, #e6cb91, #b58b51);
  border: 1px solid rgba(234, 211, 162, 0.55);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  font-family: Georgia, serif;
  font-size: 19px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.cyvarix-chat-launcher:hover,
.cyvarix-chat-fallback:hover {
  transform: translateY(-3px);
  box-shadow: 0 23px 58px rgba(0, 0, 0, 0.44), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.cyvarix-chat-launcher:focus-visible,
.cyvarix-chat-fallback:focus-visible {
  outline: 2px solid #f2e2bd;
  outline-offset: 4px;
}

.cyvarix-chat-launcher[hidden],
.cyvarix-chat-fallback[hidden] {
  display: none !important;
}

.cyvarix-chat-launcher:disabled {
  cursor: wait;
}

.cyvarix-chat-launcher__mark {
  transition: opacity 180ms ease, transform 180ms ease;
}

.cyvarix-chat-launcher__spinner {
  position: absolute;
  inset: 11px;
  display: none;
  border: 2px solid rgba(8, 11, 22, 0.22);
  border-top-color: #080b16;
  border-radius: 999px;
  animation: cyvarix-chat-spin 700ms linear infinite;
}

.cyvarix-chat-launcher[data-state="loading"] .cyvarix-chat-launcher__mark {
  opacity: 0.18;
  transform: scale(0.82);
}

.cyvarix-chat-launcher[data-state="loading"] .cyvarix-chat-launcher__spinner {
  display: block;
}

.cyvarix-chat-loading {
  position: fixed;
  right: max(92px, calc(env(safe-area-inset-right, 0px) + 82px));
  bottom: max(30px, calc(env(safe-area-inset-bottom, 0px) + 20px));
  z-index: 2147481899;
  margin: 0;
  padding: 10px 13px;
  color: #f7f1e4;
  background: rgba(11, 14, 27, 0.94);
  border: 1px solid rgba(234, 211, 162, 0.36);
  border-radius: 12px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.34);
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
}

@keyframes cyvarix-chat-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 600px) {
  .cyvarix-chat-launcher,
  .cyvarix-chat-fallback {
    right: max(12px, calc(env(safe-area-inset-right, 0px) + 8px));
    bottom: max(12px, calc(env(safe-area-inset-bottom, 0px) + 8px));
    width: 52px;
    min-width: 52px;
    height: 52px;
    min-height: 52px;
    border-radius: 16px;
    font-size: 17px;
  }

  .cyvarix-chat-launcher__spinner {
    inset: 10px;
  }

  .cyvarix-chat-loading {
    right: max(72px, calc(env(safe-area-inset-right, 0px) + 64px));
    bottom: max(20px, calc(env(safe-area-inset-bottom, 0px) + 12px));
    padding: 9px 11px;
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .cyvarix-chat-launcher,
  .cyvarix-chat-fallback {
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    border-radius: 15px;
    font-size: 16px;
  }

  .cyvarix-chat-launcher__spinner {
    inset: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cyvarix-chat-launcher,
  .cyvarix-chat-fallback,
  .cyvarix-chat-launcher__mark,
  .cyvarix-chat-loading {
    transition: none;
  }
}


/* Production polish — 2026-08-26 */
.skip-link {
  position: fixed;
  top: max(10px, env(safe-area-inset-top, 0px));
  left: max(10px, env(safe-area-inset-left, 0px));
  z-index: 2147483647;
  padding: 12px 16px;
  color: #080b16;
  background: #f2e2bd;
  border: 1px solid #d8b76f;
  border-radius: 6px;
  font: 600 14px/1.2 Geist, system-ui, sans-serif;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Keep essential information readable without flattening the premium hierarchy. */
.tax-note,
.footer-main > p,
.process-grid p,
.after-request small,
.inquiry-secure,
.inquiry-card-head p,
.inquiry-reference time,
.inquiry-card dt {
  color: rgba(255, 255, 255, 0.72) !important;
}

.tax-note {
  font-size: 11px !important;
  line-height: 1.65 !important;
}

.footer-main > p {
  font-size: 12px !important;
}

.legal-block p,
.legal-block li {
  font-size: clamp(13px, 1.2vw, 15px) !important;
  line-height: 1.75 !important;
}

.legal-block a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* First-party launcher is the only visible launcher; Voiceflow loads on click. */
.cyvarix-chat-launcher,
.cyvarix-chat-fallback {
  isolation: isolate;
  -webkit-user-select: none;
  user-select: none;
}

.cyvarix-chat-launcher__mark {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #17120a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  letter-spacing: 0.02em;
}

@media (max-width: 600px) {
  .cyvarix-chat-launcher__mark {
    font-size: 17px;
  }
}

@media (max-width: 360px) {
  .cyvarix-chat-launcher__mark {
    font-size: 16px;
  }
}

@media (forced-colors: active) {
  .cyvarix-chat-launcher,
  .cyvarix-chat-fallback {
    border: 2px solid ButtonText;
  }
}

/* Final production hardening — 2026-08-26 */
.inquiry-overlay {
  z-index: 2147483000 !important;
}

.cart-overlay {
  z-index: 2147483010 !important;
}

.legal-overlay {
  z-index: 2147483020 !important;
}

.skip-target {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.cyvarix-live-status {
  position: fixed;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.privacy-check {
  display: flex !important;
}

.privacy-check a {
  color: var(--gold-light, #ead3a2);
  border-bottom: 1px solid rgba(234, 211, 162, 0.45);
  font-size: inherit;
  line-height: inherit;
  text-decoration: none;
}

.inquiry-close:disabled {
  cursor: wait;
  opacity: 0.48;
}

/* Use the VisualViewport value maintained by the master script. */
@media (max-width: 820px),
       (max-width: 940px) and (max-height: 540px) and (orientation: landscape) {
  .inquiry-overlay,
  .legal-overlay,
  .inquiry-modal,
  .inquiry-form-shell,
  .legal-modal {
    height: var(--cy-viewport-height, 100dvh) !important;
    max-height: var(--cy-viewport-height, 100dvh) !important;
  }

  .inquiry-overlay,
  .legal-overlay {
    top: var(--cy-viewport-offset-top, 0px);
    right: auto;
    bottom: auto;
    left: var(--cy-viewport-offset-left, 0px);
    width: var(--cy-viewport-width, 100vw);
  }

  .inquiry-modal,
  .inquiry-form-shell,
  .inquiry-step-panel {
    min-height: 0 !important;
  }
}

/* Preserve the 30px tablet inset without extending the legal dialog below the visual viewport. */
@media (min-width: 641px) and (max-width: 820px),
       (min-width: 821px) and (max-width: 940px)
       and (max-height: 540px) and (orientation: landscape) {
  .legal-modal {
    height: calc(var(--cy-viewport-height, 100dvh) - 60px) !important;
    max-height: calc(var(--cy-viewport-height, 100dvh) - 60px) !important;
  }
}

/* Short desktop windows must never clip the controls below the fold. */
@media (min-width: 821px) and (min-height: 541px) and (max-height: 697px),
       (min-width: 941px) and (max-height: 540px) {
  .inquiry-overlay {
    padding: 12px !important;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .inquiry-modal {
    grid-template-columns: 1fr !important;
    width: min(900px, 100%) !important;
    height: calc(var(--cy-viewport-height, 100dvh) - 24px) !important;
    min-height: 0 !important;
    max-height: calc(var(--cy-viewport-height, 100dvh) - 24px) !important;
  }

  .inquiry-side {
    display: none !important;
  }

  .inquiry-form-shell {
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden;
  }

  .inquiry-close {
    top: max(12px, calc(var(--cy-safe-top) + 8px)) !important;
    right: max(12px, calc(var(--cy-safe-right) + 8px)) !important;
  }
}

/* Keep primary surfaces away from iOS notches and status bars. */
@media (max-width: 820px) {
  .announcement {
    min-height: calc(38px + var(--cy-safe-top));
    padding-top: calc(8px + var(--cy-safe-top));
  }
}

@media (max-width: 640px) {
  .announcement {
    min-height: calc(46px + var(--cy-safe-top));
    padding-top: calc(7px + var(--cy-safe-top));
  }

  .hero,
  .client-strip,
  .services-intro,
  .pricing-preview,
  .system-showcase,
  .demo-section,
  .process-section,
  .trust-standard,
  .faq-section,
  .founder-note,
  .final-cta,
  footer {
    padding-left: max(var(--cy-mobile-gutter), var(--cy-safe-left)) !important;
    padding-right: max(var(--cy-mobile-gutter), var(--cy-safe-right)) !important;
  }
}

@media (min-width: 641px) and (max-width: 940px)
       and (max-height: 540px) and (orientation: landscape) {
  .announcement,
  .site-header,
  .hero,
  .client-strip,
  .services-intro,
  .pricing-preview,
  .system-showcase,
  .demo-section,
  .process-section,
  .trust-standard,
  .faq-section,
  .founder-note,
  .final-cta,
  footer {
    padding-left: max(5vw, var(--cy-safe-left)) !important;
    padding-right: max(5vw, var(--cy-safe-right)) !important;
  }

  .announcement {
    padding-top: calc(8px + var(--cy-safe-top));
  }
}

/* Muted text stays readable while preserving the visual hierarchy. */
.hero-proof span,
.metric-card small,
.client-strip,
.demo-tabs button,
.demo-tabs small,
.modal-system-grid p,
.modal-demo-grid p,
.appointment-note p,
.privacy-check > span,
.package-card > p,
.cta-meta,
.inquiry-footer > p,
.footer-bottom {
  color: rgba(255, 255, 255, 0.72) !important;
}

.process-heading p,
.price-stack span,
.plan-select-copy small,
.brand-copy small {
  color: rgba(255, 255, 255, 0.72) !important;
}

.price-stack span,
.plan-select-copy small,
.brand-copy small {
  font-size: 10px !important;
  line-height: 1.35;
}

.brand-copy small {
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.plan-select:hover .plan-select-copy small,
.package-card.featured .plan-select-copy small,
.package-card.selected .plan-select-copy small {
  color: var(--ink, #080b16) !important;
}

.form-grid input::placeholder,
.form-grid textarea::placeholder {
  color: rgba(255, 255, 255, 0.72);
  opacity: 1;
}

.metric-card small {
  font-size: 8px;
}

.demo-tabs small {
  font-size: 9px;
}

.modal-system-grid small,
.modal-demo-grid small {
  font-size: 8px;
}

.modal-system-grid p,
.modal-demo-grid p,
.privacy-check > span {
  font-size: 10px !important;
}

.inquiry-error {
  font-size: 10px !important;
  line-height: 1.45;
}

.footer-bottom {
  padding-right: max(
    0px,
    calc(max(92px, calc(var(--cy-safe-right) + 82px)) - max(5vw, calc(50vw - 675px)))
  );
  font-size: 9px;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .announcement,
  .eyebrow {
    font-size: 9px !important;
  }

  .hero-proof span {
    font-size: 9px !important;
    white-space: normal;
  }

  .metric-card small {
    font-size: 8px !important;
  }

  .client-strip,
  .demo-tabs button strong {
    font-size: 10px !important;
  }

  .modal-system-grid small,
  .modal-demo-grid small {
    font-size: 9px;
  }

  .form-grid label > span,
  .form-grid legend,
  .privacy-check > span,
  .inquiry-error {
    font-size: 11px !important;
  }

  .choice-pills button,
  .inquiry-footer > p {
    font-size: 10px !important;
  }

  .footer-bottom {
    padding-right: 72px;
  }
}

.privacy-check > input:focus-visible + span > i {
  outline: 2px solid var(--gold-light, #ead3a2);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(234, 211, 162, 0.14);
}

@media (forced-colors: active) {
  .privacy-check > input:focus-visible + span > i {
    outline-color: CanvasText;
  }
}

@media (max-width: 640px) {
  .announcement button {
    display: inline-grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    margin-left: auto;
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .reveal-ready [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .button-primary:hover,
  .button-ghost:hover,
  .header-cta:hover,
  .cart-trigger:hover,
  .demo-tabs button:hover,
  .modal-system-grid > button:hover,
  .modal-demo-grid > button:hover,
  .form-next:hover,
  .cyvarix-chat-launcher:hover,
  .cyvarix-chat-fallback:hover {
    transform: none !important;
  }
}

/* Final V5 mobile reflow, zoom and contrast hardening. */
.form-grid label > span i,
.process-grid small {
  color: rgba(255, 255, 255, 0.72) !important;
}

.section-kicker:not(.light),
.trust-intro > span,
.expertise-grid article > span,
.trust-grid article > span {
  color: #8a6636 !important;
}

.expertise-grid p {
  color: #6f6d74 !important;
}

@media (max-width: 820px) {
  .console-controls input {
    font-size: 16px !important;
  }

  .demo-tabs button {
    height: auto !important;
    overflow: visible;
  }

  .demo-tabs button strong {
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  .console-controls input,
  .inquiry-form-shell input,
  .inquiry-form-shell textarea,
  .inquiry-form-shell select {
    font-size: 16px !important;
  }

  .announcement button {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
  }
}

/* CYVARIX VNext: three-offer pricing grid. */
.package-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: stretch;
}
.package-card { min-height: 0; }
.package-card > p { min-height: 0; }

@media (max-width: 1000px) {
  .package-grid {
    grid-template-columns: 1fr;
  }
}

/* Final production accessibility hardening. */
.services-intro :where(a, button):focus-visible,
.faq-section :where(a, button):focus-visible {
  outline-color: #6f4d1f;
}

.faq-list button > span {
  color: #76552a;
}

.footer-nav a,
.footer-nav button {
  color: rgba(255, 255, 255, 0.62);
}

.inquiry-close {
  width: 44px;
  height: 44px;
}

@media (max-width: 640px) {
  .footer-nav a,
  .footer-nav button,
  .expertise-grid a,
  .text-link,
  .inline-contact {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .console-controls input {
    min-height: 44px;
  }
}
