.heger-hypocras-intro {
  position: fixed;
  inset: 0;
  z-index: 9990;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
  pointer-events: none;
  isolation: isolate;
}

.heger-hypocras-intro[hidden] {
  display: none !important;
}

.heger-hypocras-intro__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  pointer-events: none;
}

.heger-hypocras-intro__decoder {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(50%);
}

.heger-hypocras-intro__close {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top, 0px));
  right: calc(14px + env(safe-area-inset-right, 0px));
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 50%;
  background: #321c22;
  color: #fff;
  box-shadow: 0 2px 14px rgb(0 0 0 / 20%);
  font: 32px/1 system-ui, sans-serif;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

.heger-hypocras-intro__close:hover {
  background: #542b35;
}

.heger-hypocras-intro__close:focus-visible {
  outline: 3px solid #e9bd65;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .heger-hypocras-intro {
    display: none !important;
  }
}

/* The following prefixed rules apply only to the local preview page. */
.heger-preview {
  margin: 0;
  color: #34272b;
  background: #f5f0e7;
  font-family: system-ui, sans-serif;
  line-height: 1.6;
}

.heger-preview * { box-sizing: border-box; }
.heger-preview button, .heger-preview input { font: inherit; }
.heger-preview button { cursor: pointer; }
.heger-preview button:focus-visible, .heger-preview input:focus-visible,
.heger-preview a:focus-visible { outline: 3px solid #a64d60; outline-offset: 3px; }

.heger-preview__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px clamp(20px, 5vw, 80px);
  border-bottom: 1px solid #dbd2c6;
}

.heger-preview__brand { font: 600 30px/1 Georgia, serif; letter-spacing: .1em; }
.heger-preview__tag { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.heger-preview__main { max-width: 920px; margin: 0 auto; padding: 48px 22px 180px; }
.heger-preview__eyebrow { color: #7d3044; letter-spacing: .12em; font-size: 12px; text-transform: uppercase; }
.heger-preview h1 { max-width: 680px; margin: 16px 0; font: 500 clamp(38px, 6vw, 74px)/1.08 Georgia, serif; }
.heger-preview__lead { max-width: 620px; font-size: 18px; }
.heger-preview__panel { margin-top: 32px; padding: 24px; border: 1px solid #d8cab8; border-radius: 14px; background: rgb(255 255 255 / 80%); }
.heger-preview__panel h2 { margin: 0 0 16px; font-size: 18px; }
.heger-preview__field { display: grid; gap: 6px; font-size: 14px; }
.heger-preview__input { width: 100%; border: 1px solid #bcb1a4; border-radius: 6px; padding: 10px 12px; color: #34272b; background: #fff; }
.heger-preview__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.heger-preview__button { padding: 11px 16px; border: 1px solid #703046; border-radius: 6px; color: #fff; background: #703046; }
.heger-preview__button--secondary { color: #703046; background: #fff; }
.heger-preview__button:disabled { cursor: default; opacity: .55; }
.heger-preview__status { min-height: 26px; margin: 16px 0 0; font-size: 14px; }
.heger-preview__help { margin-bottom: 0; font-size: 13px; color: #695b59; }
.heger-preview__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.heger-preview__card { padding: 22px; min-height: 150px; border: 1px solid #d8cab8; border-radius: 10px; background: #fff8; }
.heger-preview__card h2 { margin: 0; font: 500 25px Georgia, serif; }
.heger-preview--checker { background-color: #e9e9e9; background-image: linear-gradient(45deg, #ccc 25%, transparent 25%), linear-gradient(-45deg, #ccc 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #ccc 75%), linear-gradient(-45deg, transparent 75%, #ccc 75%); background-size: 32px 32px; background-position: 0 0, 0 16px, 16px -16px, -16px 0; }

@media (max-width: 600px) {
  .heger-preview__header { padding: 20px; }
  .heger-preview__tag { max-width: 120px; text-align: right; }
  .heger-preview__main { padding-top: 32px; }
  .heger-preview__panel { padding: 18px; }
  .heger-preview__cards { grid-template-columns: 1fr; }
}
