/*
 * Kaizo storefront: mirrors the native shell's slate surfaces and violet focus
 * color. The large K establishes brand recognition; the quieter surrounding
 * layout keeps purchase and documentation actions easy to find.
 */

:root {
  --kz-page: #15161a;
  --kz-surface: #1b1c20;
  --kz-surface-raised: #202227;
  --kz-surface-hover: #2a2b35;
  --kz-line: #3f4354;
  --kz-text: #e8e7ec;
  --kz-muted: #c4c7ce;
  --kz-muted-strong: #9498a8;
  --kz-accent: #9881ff;
  --kz-accent-hot: #b4a0ff;
  --kz-focus: #f3e3a4;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body,
.flex-wrapper {
  background: var(--kz-page) !important;
  color: var(--kz-text) !important;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
}

body {
  padding-bottom: 0;
}

.flex-wrapper {
  background-image: linear-gradient(
    180deg,
    #1b1c20 0,
    var(--kz-page) 32rem
  ) !important;
}

a,
button,
.btn,
.products .card {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.products .card:focus-visible,
.navbar-toggler:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
  outline: 3px solid var(--kz-focus) !important;
  outline-offset: 3px;
  box-shadow: none !important;
}

/* The compact header uses the same framed-panel language as the desktop app. */
header.sticky-top {
  background: rgba(21, 22, 26, 0.92) !important;
  border-bottom: 1px solid rgba(63, 67, 84, 0.7) !important;
  backdrop-filter: blur(12px);
}

.navbar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem !important;
  background: transparent !important;
}

.navbar .container {
  gap: 0.75rem;
  justify-content: space-between;
}

.navbar .navbar-brand {
  gap: 0.65rem;
  padding: 0;
  border: 0;
  color: var(--kz-text) !important;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}

.navbar .navbar-brand img {
  max-height: 2rem;
  margin: 0;
}

.navbar .navbar-collapse {
  justify-content: flex-end;
}

.navbar .navbar-collapse .navbar-nav {
  align-items: center;
  gap: 0.25rem;
}

.navbar .nav-link,
.navbar .btn,
.navbar .user .btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.625rem 0.8rem !important;
  color: var(--kz-muted) !important;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none !important;
  text-transform: none;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus-visible,
.navbar .btn:hover,
.navbar .btn:focus-visible,
.navbar .user .btn:hover {
  color: var(--kz-text) !important;
  text-decoration: none !important;
}

.navbar .user .btn,
.navbar .cart .btn {
  border: 1px solid var(--kz-line) !important;
  border-radius: 0.5rem !important;
  background: var(--kz-surface) !important;
}

.navbar .user .btn:hover,
.navbar .cart .btn:hover {
  border-color: var(--kz-accent) !important;
  background: var(--kz-surface-hover) !important;
}

.navbar .cart .btn .count {
  top: -0.25rem;
  right: -0.25rem;
  background: var(--kz-accent);
  color: #121216;
}

.navbar .navbar-toggler {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--kz-line) !important;
  border-radius: 0.5rem;
}

/* The hero gives the project mark one clear focal point instead of a stock backdrop. */
.kaizo-hero,
.kaizo-hero.height-short,
.kaizo-hero.height-medium,
.kaizo-hero.height-tall,
.hero.kaizo-hero {
  min-height: auto !important;
  padding: clamp(3.5rem, 8vw, 7.5rem) 1.25rem clamp(3rem, 7vw, 6.5rem) !important;
  background: transparent !important;
}

.kaizo-hero .container,
.hero.kaizo-hero .container {
  display: block !important;
  max-width: 1320px;
  padding: 0 !important;
}

.kaizo-hero-grid {
  display: grid;
  grid-template-columns: minmax(25rem, 1fr) minmax(30rem, 2.1fr);
  align-items: center;
  gap: clamp(2.5rem, 8vw, 8rem);
}

.kaizo-hero .content,
.hero.kaizo-hero .content {
  display: block;
  max-width: 42rem !important;
  margin: 0 !important;
  text-align: left;
}

.kaizo-access-heading > p,
.kaizo-showcase-label {
  margin: 0 0 0.9rem;
  color: var(--kz-accent-hot);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kaizo-brand,
.kaizo-hero .content h1,
.hero.kaizo-hero .content h1 {
  margin: 0 !important;
  color: var(--kz-text) !important;
  font-size: clamp(4rem, 10vw, 8rem) !important;
  font-weight: 750 !important;
  letter-spacing: -0.075em;
  line-height: 0.82 !important;
  text-transform: lowercase;
}

.kaizo-quote,
.kaizo-hero .content p.kaizo-quote {
  max-width: 31rem;
  margin: 1.4rem 0 0 !important;
  color: var(--kz-muted) !important;
  font-size: clamp(1.05rem, 2vw, 1.25rem) !important;
  line-height: 1.65;
}

.kaizo-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

.kaizo-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  min-width: 9rem;
  padding: 0.9rem 1.45rem !important;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  font-size: 1.05rem !important;
  font-weight: 600;
  letter-spacing: 0.015em;
  white-space: nowrap;
  text-decoration: none !important;
}

.kaizo-purchase {
  min-width: 12rem;
  background: #5d4aa8 !important;
  color: #ffffff !important;
  text-shadow: none;
  box-shadow: 0 0.6rem 1.4rem rgba(93, 74, 168, 0.28);
}

.kaizo-purchase:hover {
  background: #6e59c3 !important;
  color: #ffffff !important;
  box-shadow: 0 0.85rem 1.8rem rgba(93, 74, 168, 0.42);
  transform: translateY(-1px);
}

.kaizo-secondary-action {
  border: 1px solid var(--kz-line);
  background: rgba(32, 34, 39, 0.5);
  color: var(--kz-text) !important;
}

.kaizo-secondary-action:hover {
  border-color: var(--kz-accent);
  background: var(--kz-surface-hover);
  color: var(--kz-accent-hot) !important;
}

.kaizo-secondary-action span {
  margin-left: 0.45rem;
  font-size: 1rem;
  line-height: 1;
}

.kaizo-menu-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 589 / 423;
  border-radius: 0.75rem;
  perspective: 900px;
  translate: clamp(0px, 3vw, 3rem) 0;
}

.kaizo-menu-tilt {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-origin: center;
  box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, 0.42);
  transition:
    transform 180ms ease-out,
    box-shadow 180ms ease-out;
  will-change: transform;
}

.kaizo-menu-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 800ms ease-in-out;
}

.kaizo-menu-preview.is-active {
  opacity: 1;
}

/* Product cards retain the live inventory data but present it as the purchase decision. */
#products-1738789430936.component.container.py-20,
section#products-1738789430936 {
  max-width: 1160px;
  padding: clamp(1rem, 5vw, 4rem) 1.25rem clamp(4rem, 8vw, 7rem) !important;
}

.kaizo-access-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 0 clamp(2rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--kz-line);
}

.kaizo-access-intro > div {
  max-width: 43rem;
}

.kaizo-access-intro p {
  margin: 0 0 0.85rem;
  color: var(--kz-accent-hot);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kaizo-access-intro h2 {
  max-width: 37rem;
  margin: 0;
  color: var(--kz-text);
  font-size: clamp(2.15rem, 4.6vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.kaizo-access-intro span {
  display: block;
  max-width: 33rem;
  margin-top: 1.15rem;
  color: var(--kz-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.kaizo-access-intro > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  flex: 0 0 auto;
  gap: 0.45rem;
  padding: 0.7rem 0;
  color: var(--kz-text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.kaizo-access-intro > a:hover {
  color: var(--kz-accent-hot);
}

.kaizo-access-intro > a span {
  display: inline;
  margin: 0;
  color: currentColor;
  font-size: 1rem;
}

#products-1738789430936 .row.products {
  justify-content: center;
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

#products-1738789430936 .row.products > [class*="col-"] {
  width: min(100%, 58rem);
  flex: 0 0 auto;
}

#products-1738789430936 .products .card {
  display: grid;
  grid-template-columns: minmax(24rem, 1.35fr) minmax(18rem, 0.65fr);
  min-height: 26rem;
}

#products-1738789430936 .products .card .card-img-top {
  aspect-ratio: auto !important;
  min-height: 100%;
}

#products-1738789430936 .products .card .card-img-top img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
}

#products-1738789430936 .products .card .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.75rem, 4vw, 3rem) !important;
}

#products-1738789430936 .products .card .card-title {
  order: -1;
  margin-bottom: 1.25rem;
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
}

#products-1738789430936 .products .card .info {
  padding-top: 1rem;
  border-top: 1px solid var(--kz-line);
}

.kaizo-video-gallery {
  margin-top: clamp(4.5rem, 9vw, 8rem);
  padding-top: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--kz-line);
}

.kaizo-video-gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.kaizo-video-gallery-heading p {
  margin: 0 0 0.7rem;
  color: var(--kz-accent-hot);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kaizo-video-gallery-heading h3 {
  margin: 0;
  color: var(--kz-text);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
}

.kaizo-video-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.5rem);
}

.kaizo-video {
  grid-column: span 3;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--kz-line);
  border-radius: 0.75rem;
  background: #0c0d0f;
}

.kaizo-video-featured {
  grid-column: 1 / -1;
}

.kaizo-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.products .card {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--kz-line) !important;
  border-radius: 0.85rem !important;
  background: var(--kz-surface) !important;
  color: var(--kz-text) !important;
  box-shadow: none !important;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.products .card:hover,
.products .card:focus-visible {
  border-color: var(--kz-accent) !important;
  background: var(--kz-surface-raised) !important;
  transform: translateY(-4px);
}

.products .card .card-img-top {
  min-height: 12rem;
  background: #121316 !important;
}

.products .card .card-img-top img {
  opacity: 0.84;
  transition:
    transform 350ms ease,
    opacity 180ms ease;
}

.products .card:hover .card-img-top img,
.products .card:focus-visible .card-img-top img {
  opacity: 1;
  transform: scale(1.035);
}

.products .card .card-img-top::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 45%, rgba(21, 22, 26, 0.88));
  pointer-events: none;
}

.products .card .card-img-top .overlay {
  z-index: 1;
  bottom: 0;
  padding: 1rem;
  opacity: 1;
  transform: none;
}

.products .card .card-img-top .overlay .btn,
.products .card .btn-primary,
.btn-primary {
  border: 0 !important;
  border-radius: 0.45rem !important;
  background: var(--kz-accent) !important;
  color: #17151f !important;
  font-weight: 750;
}

.products .card .card-img-top .overlay .btn {
  width: auto;
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
}

.products .card .card-body {
  padding: 1.25rem !important;
}

.products .card .info {
  margin-bottom: 0.85rem;
  color: var(--kz-muted);
  font-size: 0.84rem;
}

.products .card .info .price {
  color: var(--kz-text) !important;
  font-size: 1rem;
  font-weight: 700;
}

.products .card .text-primary,
.products .card .stock-unlimited {
  color: var(--kz-accent-hot) !important;
}

.products .card .card-title {
  color: var(--kz-text) !important;
  font-size: 1.2rem;
  font-weight: 700;
}

/* The video is retained as product evidence, with copy and media given equal weight. */
.text-video-block.component.py-20 {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) 1.25rem !important;
}

.text-video-block .row {
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
}

.text-video-block .row > * {
  flex: 1 1 20rem;
}

.text-video-block .section-title h2 {
  color: var(--kz-text);
  font-size: clamp(1.9rem, 3vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.text-video-block .whitespace-pre-line {
  max-width: 34rem;
  color: var(--kz-muted) !important;
  font-size: 1rem;
  line-height: 1.72;
}

.text-video-block .btn-primary {
  min-height: 44px;
  padding: 0.7rem 1rem !important;
  text-decoration: none !important;
}

.text-video-block .video-wrapper {
  overflow: hidden;
  border: 1px solid var(--kz-line) !important;
  border-radius: 0.85rem;
  background: #0c0d0f !important;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.28);
}

/* Keep every transactional screen in the same shell, not only the shop page. */
.product-wrapper,
.product-page,
.product-page .card,
.modal-content,
.accordion-item,
.accordion-button,
.accordion-body,
.form-control,
.form-select,
.choices__inner {
  background: var(--kz-surface) !important;
  border-color: var(--kz-line) !important;
  color: var(--kz-text) !important;
}

.product-wrapper .display-6,
.product-wrapper h1,
.product-wrapper h2,
.section-title h1,
.section-title h2 {
  color: var(--kz-text) !important;
}

.product-wrapper .text-muted,
.editor,
.accordion-body,
.footer .nav-link,
.footer p {
  color: var(--kz-muted) !important;
}

.product-wrapper .btn-outline-primary,
.btn-outline-primary {
  border-color: var(--kz-line) !important;
  color: var(--kz-text) !important;
  background: transparent !important;
}

.product-wrapper .btn-outline-primary:hover,
.btn-outline-primary:hover {
  border-color: var(--kz-accent) !important;
  background: var(--kz-surface-hover) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--kz-accent) !important;
  box-shadow: 0 0 0 0.2rem rgba(152, 129, 255, 0.2) !important;
}

.footer {
  max-width: 1160px;
  width: calc(100% - 2.5rem);
  margin: 0 auto !important;
  border-top-color: var(--kz-line) !important;
}

.footer h5 {
  color: var(--kz-text) !important;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer .nav-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
}

.footer .nav-link:hover {
  color: var(--kz-accent-hot) !important;
}

.kaizo-stripe {
  height: 4px !important;
  background: var(--kz-accent) !important;
}

.kaizo-tux {
  display: none;
}

@media (max-width: 991.98px) {
  .navbar .navbar-collapse {
    padding: 0.75rem 0 0;
  }

  .navbar .navbar-collapse .navbar-nav {
    align-items: stretch;
    gap: 0.15rem;
  }

  .navbar .nav-link,
  .navbar .btn,
  .navbar .user .btn {
    width: 100%;
  }

  .kaizo-hero-grid {
    grid-template-columns: 1fr;
  }

  .kaizo-menu-stage {
    max-width: 36rem;
    translate: none;
  }
}

@media (max-width: 575.98px) {
  .navbar {
    padding: 0.6rem 1rem !important;
  }

  .navbar .navbar-brand {
    font-size: 0.95rem;
  }

  .kaizo-hero,
  .kaizo-hero.height-short,
  .kaizo-hero.height-medium,
  .kaizo-hero.height-tall,
  .hero.kaizo-hero {
    padding: 3.5rem 1.25rem 3.75rem !important;
  }

  .kaizo-hero-grid {
    gap: 2.75rem;
  }

  .kaizo-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  #products-1738789430936.component.container.py-20,
  section#products-1738789430936,
  .text-video-block.component.py-20 {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  #products-1738789430936 .row.products > [class*="col-"] {
    width: 100%;
  }

  .kaizo-access-intro {
    align-items: start;
    flex-direction: column;
    gap: 1rem;
  }

  .kaizo-video-grid {
    grid-template-columns: 1fr;
  }

  .kaizo-video,
  .kaizo-video-featured {
    grid-column: auto;
  }

  #products-1738789430936 .products .card {
    display: block;
    min-height: 0;
  }

  #products-1738789430936 .products .card .card-img-top {
    min-height: 13rem;
    aspect-ratio: var(--product-card-image-aspect-ratio) !important;
  }

  .footer {
    width: calc(100% - 2.5rem);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .kaizo-hero .content {
    animation: kz-enter-left 520ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .kaizo-menu-stage {
    animation: kz-enter-right 650ms 90ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
}

@keyframes kz-enter-left {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes kz-enter-right {
  from {
    opacity: 0;
    transform: translateX(1.5rem) rotate(1deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotate(0);
  }
}

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

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

  .kaizo-menu-preview:not(.is-active) {
    display: none;
  }

  .kaizo-menu-preview.is-active {
    opacity: 1;
  }
}

@media (hover: none), (pointer: coarse) {
  .kaizo-menu-tilt {
    transform: none !important;
  }
}