.ahoy-layout {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4.2vw, 110px);
  padding-block: clamp(8px, 2dvh, 48px);
}

.ahoy-layout .ahoy-copy { padding-block: 0; }
.ahoy-layout .ahoy-copy > .ahoy-tagline {
  max-width: 25em;
  margin-top: .65em;
  color: #e0ece8;
  font-size: clamp(.89rem, 1.08vw, 1.68rem);
  line-height: 1.35;
}
.ahoy-layout .ahoy-copy > .product-status { margin-top: 1.2em; }
.openahoy-page .hero-art img { object-position: 69% 50%; }
.ahoy-scene-motion { position: absolute; pointer-events: none; }
.openahoy-page .hero-art::after {
  background: linear-gradient(90deg, #06100f9c, #08121151 40%, transparent 62%),
    linear-gradient(0deg, #050c10b8, transparent 27%, transparent 81%, #020a0a60);
}

.ahoy-demo {
  --demo-accent: rgb(var(--demo-rgb));
  --demo-rgb: 167 213 193;
  min-width: 0;
  min-height: clamp(340px, 66dvh, 920px);
  display: flex;
  flex-direction: column;
  padding: 0 clamp(3px, 1vw, 22px);
}
.ahoy-demo-header { display: flex; justify-content: flex-end; }
.ahoy-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ahoy-play:not([hidden]) { display: grid; place-items: center; width: 34px; height: 34px; cursor: pointer; color: var(--demo-accent); background: #0614119c; }
.ahoy-play-icon { width: 0; height: 0; border-block: 5px solid transparent; border-inline-start: 8px solid currentColor; margin-inline-start: 2px; }
.ahoy-play[aria-pressed="true"] .ahoy-play-icon { width: 8px; height: 10px; border: 0; border-inline: 2px solid currentColor; margin: 0; }

.ahoy-diagram { position: relative; flex: 1; min-height: 140px; isolation: isolate; }
.ahoy-traces { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
.ahoy-origin,
.ahoy-terminal {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  color: rgb(var(--demo-rgb) / calc(.48 + var(--signal, 0) * .52));
  background: currentColor;
  box-shadow: 0 0 9px rgb(var(--demo-rgb) / calc(.12 + var(--signal, 0) * .32));
}
.ahoy-origin { top: 65%; left: 55%; }

.ahoy-destinations {
  position: absolute;
  inset: 46% 0 auto auto;
  display: grid;
  gap: clamp(11px, 2.3dvh, 31px);
  width: clamp(116px, 26%, 220px);
  margin: 0;
  padding: 0 0 0 14px;
  transform: translateY(-50%);
  list-style: none;
  pointer-events: none;
}
.ahoy-destinations::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -30% -12% -30% -20%;
  background: radial-gradient(ellipse at 52% 50%, #061714e6 10%, #06171488 47%, transparent 74%);
}
.ahoy-destinations li {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(8px, .78vw, 16px);
  min-height: clamp(32px, 4.8dvh, 68px);
}
.ahoy-terminal { top: 50%; left: -14px; transform: translateY(-50%); }
.ahoy-destinations img { flex-shrink: 0; width: clamp(21px, 1.65vw, 34px); height: auto; aspect-ratio: 1; object-fit: contain; }
.ahoy-x { padding: 2px; }
.ahoy-platform-copy { min-width: 0; }
.ahoy-destinations strong {
  display: block;
  color: #eef4ee;
  font-size: clamp(.72rem, .77vw, 1.2rem);
  font-weight: 580;
  line-height: 1.2;
  text-shadow: 0 1px 12px #061411;
}
.ahoy-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.ahoy-status small {
  grid-area: 1 / 1;
  visibility: hidden;
  margin-top: .32em;
  color: rgb(var(--demo-rgb) / calc(.72 + var(--signal, 0) * .28));
  font-size: clamp(.64rem, .62vw, .98rem);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  letter-spacing: .045em;
}
.ahoy-demo[data-step="channels"] .ahoy-status [data-value="channels"],
.ahoy-demo[data-step="schedule"] .ahoy-status [data-value="schedule"],
.ahoy-demo[data-step="receipts"] .ahoy-status [data-value="receipts"] {
  visibility: visible;
  --status-enter: ahoy-state;
}

.ahoy-steps:not([hidden]) {
  display: flex;
  justify-content: flex-end;
  gap: clamp(5px, 1vw, 23px);
}
.ahoy-steps button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 37px;
  padding: 0 5px;
  border: 0;
  background: transparent;
  color: #b0c2b8;
  font: inherit;
  font-size: clamp(.69rem, .66vw, 1rem);
  font-weight: 550;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  text-shadow: 0 1px 8px #061411;
}
.ahoy-steps button::before {
  content: "";
  width: 5px;
  height: 5px;
  border: 1px solid #9bb1a392;
  border-radius: 50%;
}
.ahoy-steps button:hover,
.ahoy-steps button[aria-pressed="true"] { color: #f3f8f1; }
.ahoy-steps button[aria-pressed="true"]::before {
  border-color: var(--demo-accent);
  background: var(--demo-accent);
}
.ahoy-play:focus-visible, .ahoy-steps button:focus-visible { outline-offset: 2px; }

@media (prefers-reduced-motion: no-preference) {
  @keyframes ahoy-state { from { opacity: .7; } to { opacity: 1; } }
  .ahoy-status small { animation: var(--status-enter, none) .24s var(--reveal-ease) both; }
}

@media (min-aspect-ratio: 21/9) {
  .openahoy-page .hero-art { background: #071311; }
  .openahoy-page .hero-art img { width: min(100%, 255dvh); mask-image: linear-gradient(90deg, transparent, #000 31%); }
}
@media (max-aspect-ratio: 1/1) {
  .openahoy-page .hero { align-items: center; }
  .openahoy-page .hero-art img { object-position: 48% center; }
  .openahoy-page .hero-art::after { background: linear-gradient(180deg, #020b0af0, #041210b8 39%, #04121080 49%, #04121005 65%, #050d11d9); }
  .ahoy-layout { grid-template-columns: 1fr; gap: clamp(10px, 2.5dvh, 30px); }
  .ahoy-demo { min-height: clamp(260px, 46dvh, 460px); }
  .ahoy-destinations { top: 53%; }
  .ahoy-origin { left: 51%; }
  .ahoy-steps:not([hidden]) { justify-content: center; }
}
@media (max-aspect-ratio: 4/5) and (min-height: 540px) {
  .openahoy-page .hero-art { background: #041210; }
  .openahoy-page .hero-art img {
    width: 160%;
    height: auto;
    margin-inline-start: -55%;
    margin-block-start: 34dvh;
    object-position: center;
    mask-image: linear-gradient(180deg, transparent, #000 12%, #000 87%, transparent);
  }
}
@media (max-height: 540px) {
  .ahoy-layout { padding-block: 4px; gap: 10px; }
  .ahoy-layout .ahoy-copy > .product-status { margin-top: 6px; }
  .ahoy-copy .hero-actions { margin-top: 7px; gap: 5px; }
  .ahoy-copy .hero-actions .button { min-height: 34px; padding-inline: .78em; }
  .ahoy-demo { min-height: 190px; }
  .ahoy-steps button { min-height: 31px; }
}
@media (max-height: 520px) and (max-aspect-ratio: 1/1) {
  .ahoy-layout { gap: 7px; padding-block: 3px; }
  .ahoy-layout .ahoy-copy > .ahoy-tagline { margin-top: .35em; }
  .ahoy-copy .platform-list { margin-top: 4px; }
  .ahoy-play:not([hidden]) { width: 27px; height: 27px; }
  .ahoy-diagram { min-height: 115px; }
}

.ahoy-screen-video {
  position: absolute;
  left: 0;
  top: 0;
  width: 1000px;
  height: 520px;
  transform-origin: 0 0;
  pointer-events: none;
  z-index: 2;
  object-fit: cover;
}
.ahoy-scene-motion { z-index: 1; }
.openahoy-page .hero-art::after { z-index: 3; }
.ahoy-origin { top: 46%; left: 48%; }
.ahoy-destinations { inset-block-start: 46%; inset-inline-end: -3vw; }
@media (max-aspect-ratio: 1/1) {
  .ahoy-origin { left: 63%; top: 55%; }
  .ahoy-destinations { inset-block-start: 62%; inset-inline-end: 0; }
}
