:root {
  --iiscan-shared-width: min(1500px, calc(100% - clamp(32px, 8vw, 128px)));
  --iiscan-shared-ink: #273137;
}
.iiscan-shared-header {
  background: #f4f2ee;
  color: var(--iiscan-shared-ink);
  border-bottom: 1px solid #27313724;
}
.iiscan-shared-header-inner,
.iiscan-shared-footer-inner {
  width: var(--iiscan-shared-width);
  margin-inline: auto;
  display: grid;
  align-items: center;
  grid-template-columns: auto 1fr auto;
  gap: clamp(10px, 2.5vw, 36px);
}
.iiscan-shared-header-inner { min-height: 72px; }
.iiscan-shared-brand { width: max-content; color: inherit; }
.iiscan-shared-brand .brand-logo-mark { width: 35px; height: 35px; }
.iiscan-shared-nav,
.iiscan-shared-contact,
.iiscan-footer-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 30px);
}
.iiscan-shared-nav a,
.iiscan-footer-contact a { font-size: 13px; line-height: 1.25; }
.iiscan-shared-nav a[aria-current="page"] { font-weight: 700; }
.iiscan-shared-nav a:hover,
.iiscan-footer-contact a:hover { text-decoration: underline; text-underline-offset: .22em; }
.iiscan-shared-contact { gap: 8px; }
.iiscan-shared-phone { font-size: 13px; font-weight: 700; white-space: nowrap; }
.iiscan-shared-social {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  background: #263238;
  border-radius: 50%;
}
.iiscan-shared-social img { width: 16px; height: 16px; object-fit: contain; }

.iiscan-shared-footer {
  background: #263034;
  color: #f5f4ef;
}
.iiscan-shared-footer-inner {
  min-height: 72px;
  padding-block: 10px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}
.iiscan-footer-contact { justify-content: flex-end; margin: 0; font-style: normal; }
.iiscan-footer-phone { font-weight: 700; white-space: nowrap; }
.iiscan-shared-requisites { display: grid; gap: 4px; font-size: 12px; line-height: 1.25; }
.iiscan-shared-requisites span, .iiscan-shared-copyright { color: #d1d8d6; font-size: 11px; }
.iiscan-shared-copyright { justify-self: center; white-space: nowrap; }

.directions-screen {
  min-block-size: 100vh;
  min-block-size: 100svh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background-color: #f4f2ee;
  background-image: linear-gradient(90deg, #56645a0d 1px, transparent 1px),
                    linear-gradient(#56645a0d 1px, transparent 1px);
  background-size: 72px 72px;
}
.directions-screen main.directions-landing {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: var(--iiscan-shared-width);
  margin-inline: auto;
  min-height: 0;
  padding-block: clamp(12px, 3vh, 38px);
  gap: clamp(10px, 3vh, 32px);
  background: transparent;
}
.directions-landing h1 {
  max-width: 29ch;
  margin: 0;
  color: #232927;
  font-size: clamp(1.75rem, min(5.2vw, 8.1vh), 5.5rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -.062em;
  text-wrap: balance;
}
.directions-landing h1 em { color: #606e64; font-style: normal; }
.directions-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 1.6vw, 24px);
  min-height: 0;
}
.direction-card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 0;
  border-radius: 5px;
  overflow: hidden;
  color: #fff;
  background: #293130;
}
.direction-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #101615eb, #10161555 43%, transparent 76%);
}
.direction-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
}
.direction-cosmet img { object-position: center 38%; }
.direction-copy {
  display: grid;
  gap: 4px;
  padding: clamp(12px, 2.5vw, 36px);
  line-height: 1.2;
}
.direction-copy strong {
  font-size: clamp(1.5rem, 3.9vw, 4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.045em;
}
.direction-copy span { font-size: clamp(.8125rem, 1.3vw, 1.1rem); }
.direction-card:focus-visible { outline: 3px solid #495c54; outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .direction-card img { transition: transform .4s ease; }
  .direction-card:focus-visible img { transform: scale(1.035); }
  @media (hover: hover) {
    .direction-card:hover img { transform: scale(1.035); }
  }
}
@media (max-width: 900px) {
  .iiscan-shared-header-inner { grid-template-columns: auto 1fr; gap: 5px 10px; padding-block: 8px; }
  .iiscan-shared-contact { justify-content: flex-end; }
  .iiscan-shared-nav { grid-column: 1 / -1; grid-row: 2; gap: 7px 14px; flex-wrap: wrap; }
  .iiscan-shared-nav a { padding-block: 5px; }
  .iiscan-shared-footer-inner { gap: 7px 13px; }
  .iiscan-footer-contact { flex-wrap: wrap; gap: 6px 14px; }
}
@media (max-width: 640px) {
  .iiscan-shared-footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .iiscan-footer-contact { grid-row: 2; justify-content: center; }
}
@media (max-width: 600px) and (orientation: portrait) {
  .directions-screen { grid-template-rows: auto minmax(215px, 1fr) auto; }
  .directions-screen main.directions-landing { padding-block: clamp(10px, 2vh, 20px); gap: 10px; }
  .directions-landing h1 { max-width: 21ch; font-size: clamp(1.62rem, 7.2vw, 2.6rem); }
  .directions-choices { grid-template-columns: 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .direction-copy { padding: 10px 12px; }
  .iiscan-shared-brand .brand-logo-type small { display: none; }
  .iiscan-shared-brand .brand-logo-type b { font-size: 14px; }
  .iiscan-shared-brand .brand-logo-mark { width: 29px; height: 29px; }
  .iiscan-shared-nav a, .iiscan-footer-contact a { font-size: 12px; }
  .iiscan-shared-nav { gap: 4px 12px; }
  .iiscan-shared-social { width: 25px; height: 25px; }
  .iiscan-shared-social img { width: 14px; height: 14px; }
  .iiscan-shared-phone { font-size: 11px; }
  .iiscan-shared-contact { gap: 5px; }
}
@media (max-height: 440px) and (orientation: landscape) {
  .iiscan-shared-header-inner { min-height: 50px; padding-block: 3px; }
  .iiscan-shared-footer-inner { min-height: 55px; padding-block: 5px; }
  .directions-screen main.directions-landing { padding-block: 8px; gap: 9px; }
  .directions-landing h1 { font-size: clamp(1.4rem, 7vh, 2.25rem); }
  .direction-copy { padding: 9px 12px; }
}

.video-intro-section {row-gap:40px;}
.video-demo-action {grid-column:2;grid-row:2;display:flex;justify-content:center;}
@media(max-width:800px){.video-demo-action{grid-column:1;grid-row:auto;}}
.demo-visualization-button {display:inline-flex;align-items:center;justify-content:space-between;gap:22px;padding:19px 25px;border:1px solid #293338;border-radius:3px;background:#293338;color:#f6f5ef;font:inherit;font-size:14px;font-weight:600;line-height:1.45;text-align:left;text-decoration:none;}
.demo-visualization-button:disabled {opacity:1;cursor:default;-webkit-text-fill-color:currentColor;}
.demo-visualization-button[href]:hover {background:#40555f;border-color:#40555f;}
.demo-visualization-button:focus-visible {outline:2px solid #638c9b;outline-offset:4px;}
#video-demo .demo-video-phone-media { object-fit: contain; }
#video-demo .demo-video-phone-overlay { pointer-events: none; }
#video-demo .demo-video-phone-overlay[hidden],
#video-demo .demo-video-fullscreen[hidden] { display: none; }
#video-demo .demo-video-play { pointer-events: auto; }
#video-demo .has-custom-controls .demo-video-phone-media { cursor: pointer; }
#video-demo .demo-video-phone-hint { inset-inline: 54px; }
#video-demo .is-playing .demo-video-phone-overlay { background: transparent; }
#video-demo .is-playing .demo-video-phone-hint,
#video-demo .is-playing .demo-video-play span { visibility: hidden; }
#video-demo .is-playing .demo-video-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  transform: none;
  transition: none;
}
#video-demo .demo-video-play:focus-visible,
#video-demo .demo-video-fullscreen:focus-visible {
  outline: 2px solid white;
  outline-offset: -4px;
}
#video-demo .demo-video-fullscreen {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 42%);
  border-radius: 7px;
  background: rgb(21 33 35 / 66%);
  color: white;
  cursor: pointer;
}
#video-demo .demo-video-fullscreen:hover { background: rgb(21 33 35 / 90%); }
#video-demo .demo-video-fullscreen svg {
  grid-area: 1 / 1;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#video-demo .demo-video-fullscreen:not(.is-expanded) .demo-video-collapse,
#video-demo .demo-video-fullscreen.is-expanded .demo-video-expand { display: none; }
#video-demo .demo-video-status {
  position: absolute;
  z-index: 3;
  inset: auto 56px 10px 8px;
  margin: 0;
  padding: 7px;
  border-radius: 4px;
  background: #263738;
  color: white;
  font-size: 12px;
  pointer-events: none;
}
#video-demo .demo-video-status:empty { display: none; }
html.demo-video-expanded-in-tab { overflow: hidden; }
#video-demo .demo-video-phone-screen:is(:fullscreen, :-webkit-full-screen, :popover-open) {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #000;
}
#video-demo .demo-video-phone-screen:is(:fullscreen, :-webkit-full-screen, :popover-open) .demo-video-phone-media {
  background: #000;
}
#video-demo .demo-video-phone-screen:is(:fullscreen, :-webkit-full-screen, :popover-open) .demo-video-fullscreen {
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
}
@media (max-width:640px) {
  .video-demo-action .demo-visualization-button{width:100%;max-width:400px;}
}

.case-comparison { width: min(100%, 540px); margin-inline: auto; }
.case-carousel.case-comparison-carousel { min-height: 0; background: #f3f1ed; }
.case-comparison-slide { position: relative; display: none; }
.case-comparison-slide.is-active { display: block; }
.case-comparison-slide::after { content: none; }
.case-comparison-photo { --case-position: 50%; position: relative; aspect-ratio: 4 / 3; background: #dedbd2; }
.case-comparison-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; user-select: none; }
.case-comparison-before { z-index: 1; clip-path: inset(0 calc(100% - var(--case-position)) 0 0); }
.case-comparison-divider {
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 var(--case-position);
  width: 2px;
  background: #fff;
  box-shadow: 0 0 5px #29343866;
  transform: translateX(-50%);
  pointer-events: none;
}
.case-comparison-label {
  position: absolute;
  z-index: 3;
  top: 12px;
  padding: 4px 9px;
  border-radius: 12px;
  background: #202a28cc;
  color: #fff;
  font-size: 12px;
  pointer-events: none;
}
.case-comparison-label-before { left: 12px; }
.case-comparison-label-after { right: 12px; }
.case-comparison-grip {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: clamp(28px, var(--case-position), calc(100% - 28px));
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid #d9e1de;
  border-radius: 50%;
  background: #fff;
  color: #273234;
  font-size: 25px;
  line-height: 1;
  box-shadow: 0 4px 14px #202a2840;
  transform: translate(-50%, -50%);
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
}
.case-comparison-caption {
  display: grid;
  gap: 3px;
  align-content: start;
  min-height: 74px;
  padding: 12px 17px;
  color: #273234;
  line-height: 1.35;
}
.case-comparison-caption span { font-size: 13px; color: #52605f; }
.case-comparison-navigation { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 10px; margin-top: 12px; }
.case-comparison-navigation .case-control {
  position: static;
  width: 44px;
  height: 44px;
  border-color: #b6c3bd;
  background: #f5f4f0;
  color: #273234;
  transform: none;
}
.case-comparison-navigation .case-dots { margin: 0; }
.case-comparison-navigation .case-dot { position: relative; }
.case-comparison-navigation .case-dot::after { position: absolute; inset: -9px -4px; content: ''; }
.case-comparison button:focus-visible,
.case-comparison-grip:focus-visible { outline: 2px solid #527f87; outline-offset: 3px; }
@media (max-width: 640px) {
  .case-comparison-caption { min-height: 94px; padding: 10px 13px; }
}
