.haven-page {
  --haven-header: 72px;
  --haven-amber: #ffc28c;
  background: var(--base);
  color-scheme: dark;
}
.haven-story { display: grid; position: relative; isolation: isolate; }
.haven-viewport, .haven-chapters, .haven-controls { grid-area: 1 / 1; min-width: 0; }
.haven-viewport {
  position: sticky;
  top: var(--haven-header);
  align-self: start;
  height: calc(100svh - var(--haven-header));
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 72% 45%, #112b37 0, #101b29 32%, transparent 72%),
    radial-gradient(ellipse at 82% 100%, #10262d, transparent 52%),
    #080d17;
}
.haven-visual {
  position: absolute;
  inset: 0 0 0 35%;
  transform: translate3d(0, var(--rack-y, 0px), 0);
  overflow: hidden;
  pointer-events: none;
}
.haven-canvas {
  position: absolute;
  inset: 0;
  visibility: hidden;
  mask-image: radial-gradient(ellipse 66% 62% at 54% 49%, #000 46%, #000c 67%, transparent);
}
.haven-webgl .haven-canvas { visibility: visible; }
.haven-copy { text-shadow: 0 2px 14px #080d17d9; }
.haven-canvas canvas { display: block; width: 100%; height: 100%; }
.haven-visual-caption {
  position: absolute;
  right: max(7%, 36px);
  bottom: 11%;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #abcee1;
  font: 500 .78rem/1.5 "IBM Plex Mono", Consolas, monospace;
}
.haven-caption-line { width: 28px; height: 1px; background: #83f1d4; box-shadow: 0 0 9px #83f1d48f; }
.haven-rack-callout {
  --rack-leader: 32px;
  position: absolute;
  top: 0;
  left: 0;
  padding: 7px 11px;
  border: 1px solid #7ac5b569;
  border-radius: 5px;
  background: #0a1726ed;
  color: #a2f8e3;
  box-shadow: 0 4px 18px #050a13b3;
  font: 500 .78rem/1.35 "IBM Plex Mono", Consolas, monospace;
  white-space: nowrap;
}
.haven-rack-callout::before {
  position: absolute;
  top: 50%;
  right: 100%;
  width: var(--rack-leader);
  height: 1px;
  background: linear-gradient(90deg, #a2f8e3, #a2f8e34d);
  content: "";
}
.haven-rack-callout.is-left::before {
  right: auto;
  left: 100%;
  background: linear-gradient(270deg, #a2f8e3, #a2f8e34d);
}
.haven-rack-callout.is-inside { top: 11%; left: auto; right: 9%; }
.haven-rack-callout.is-inside::before { display: none; }

.haven-chapters { z-index: 1; pointer-events: none; }
.haven-chapter {
  min-height: calc(100svh - var(--haven-header));
  display: grid;
  align-items: center;
  padding-block: 72px 104px;
  scroll-margin-top: 0;
}
.haven-copy { width: min(42%, 490px); pointer-events: auto; position: relative; }
.haven-kicker { margin-bottom: 15px; }
.haven-chapter h1, .haven-chapter h2, .haven-close h2 {
  max-width: 15ch;
  font-size: clamp(2.35rem, 4.65vw, 4.75rem);
  line-height: 1;
  letter-spacing: -.068em;
  text-wrap: balance;
}
.haven-chapter h1 { font-size: clamp(3.05rem, 5.2vw, 4.75rem); }
.haven-chapter h1 em { display: block; color: var(--mint); font-style: normal; }
.haven-lede { margin-top: 22px; color: #c1cde0; font-size: clamp(1rem, 1.42vw, 1.21rem); max-width: 40ch; }
.haven-start { margin-top: 26px; }
.haven-guide { margin-top: 13px; color: var(--muted); font-size: .9rem; }
.haven-result { display: flex; gap: 9px; align-items: baseline; margin-top: 22px; color: var(--mint); font-size: .93rem; }
.haven-result span { flex: 0 0 6px; height: 6px; transform: translateY(-2px); border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
#observe .haven-result { color: var(--haven-amber); }

.haven-controls {
  position: sticky;
  top: calc(100svh - 62px);
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  z-index: 2;
}
.haven-controls { pointer-events: auto; }
.haven-scenes { display: flex; gap: clamp(12px, 2vw, 28px); }
.haven-scenes a {
  color: #a2b7cd;
  text-decoration: none;
  font-size: .91rem;
  position: relative;
  padding: 12px 0 6px;
}
.haven-scenes a::before {
  position: absolute;
  top: 3px; left: 0; right: 0;
  height: 1px;
  background: #547083;
  content: "";
}
.haven-scenes a[aria-current="location"] { color: var(--mint); }
.haven-scenes a[aria-current="location"]::before { height: 2px; background: var(--mint); box-shadow: 0 0 8px #83f1d46b; }
.haven-scenes a:hover { color: var(--text); }
.haven-motion {
  color: #c9dded;
  padding: 7px 11px;
  border: 1px solid #3c5367;
  border-radius: 6px;
  background: #111d2c;
  font-size: .88rem;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.haven-motion span { width: 9px; height: 10px; border-inline: 2px solid currentColor; }
.haven-motion[aria-pressed="true"] span { border: 0; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.haven-compare {
  padding-block: clamp(54px, 9vw, 112px);
  background: radial-gradient(ellipse at 70% 0%, #17302e, transparent 66%), var(--base);
  border-top: 1px solid var(--line);
}
.haven-compare h2 { font-size: clamp(2.05rem, 4.6vw, 3.8rem); letter-spacing: -.055em; line-height: 1.05; }
.haven-compare-intro { max-width: 70ch; margin-top: 18px; color: var(--muted); }
.haven-matrix-region { margin-top: 27px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.haven-matrix { width: 100%; min-width: 770px; border-collapse: collapse; background: #101b26; line-height: 1.5; }
.haven-matrix th, .haven-matrix td { padding: 16px clamp(14px, 2vw, 25px); text-align: left; vertical-align: top; }
.haven-matrix thead { color: var(--text); background: #172331; }
.haven-matrix thead th:first-child { width: 18%; }
.haven-matrix thead th:not(:first-child) { width: 27%; }
.haven-matrix tbody tr { border-top: 1px solid var(--line); }
.haven-matrix tbody th { font-weight: 650; }
.haven-matrix td { color: var(--muted); font-size: .96rem; }
.haven-matrix :is(th, td):nth-child(3) { color: #d4f5e9; background: #16332ca6; border-inline: 1px solid #487e6c66; }
.haven-matrix :is(th, td):last-child { color: #dce6ee; }
.haven-matrix thead th:nth-child(3) { color: var(--mint); }
.haven-team-control { margin-top: 16px; color: var(--text); }
.haven-cloud-sources { display: flex; flex-wrap: wrap; gap: 4px 13px; margin-top: 10px; color: var(--muted); font-size: .84rem; }
.haven-cloud-sources a { text-underline-offset: .19em; }
.haven-matrix-hint { display: none; }
@media (max-width: 850px) {
  .haven-matrix-hint { display: block; margin-top: 20px; color: var(--muted); font-size: .87rem; }
  .haven-matrix-region { margin-top: 8px; }
}

.haven-close {
  position: relative;
  padding: clamp(60px, 10vw, 136px) 0;
  background: radial-gradient(ellipse at 50% 100%, #183946, transparent 75%), #0b1320;
  border-top: 1px solid var(--line);
  text-align: center;
}
.haven-close h2 { margin-inline: auto; max-width: 20ch; font-size: clamp(2rem, 4.7vw, 4rem); }
.haven-close p { max-width: 59ch; margin: 18px auto 0; color: var(--muted); }
.haven-close .button { margin-top: 24px; }

@media (min-width: 851px) {
  .haven-chapter > .shell { width: min(1460px, calc(100% - 96px)); }
}

@media (max-width: 850px) {
  .haven-visual { inset: 0 0 56%; }
  .haven-rack-callout { --rack-leader: 13px; padding: 5px 8px; font-size: .71rem; }
  .haven-visual-caption { display: none; }
  .haven-viewport {
    background: radial-gradient(ellipse 80% 53% at 50% 27%, #142c3d, #0c1524 64%, #080d17 100%);
  }
  .haven-chapter { align-items: end; padding-block: 38svh 84px; }
  .haven-copy { width: min(100%, 560px); }
  .haven-lede { margin-top: 13px; }
  .haven-kicker { margin-bottom: 9px; }
  .haven-result, .haven-start { margin-top: 15px; }
  .haven-chapter h1 { font-size: clamp(2.75rem, 8.5vw, 5rem); }
  .haven-chapter h2 { font-size: clamp(2.3rem, 6.8vw, 4rem); }
  .haven-controls { top: calc(100svh - 54px); }
}
@media (max-height: 700px) and (max-width: 850px) {
  .haven-visual { inset: 0 0 59%; }
  .haven-chapter { padding-block-start: 34svh; }
}
@media (max-width: 480px) {
  .haven-scenes { gap: 9px; }
  .haven-scenes a, .haven-motion { font-size: .78rem; }
  .haven-motion { gap: 5px; padding-inline: 7px; }
  .haven-controls { gap: 8px; }
  .haven-guide { margin-top: 8px; font-size: .82rem; }
}
@media (max-height: 560px) and (min-width: 851px) {
  .haven-chapter { padding-block: 32px 62px; }
  .haven-chapter h1 { font-size: clamp(3rem, 10vh, 4.8rem); }
  .haven-chapter h2 { font-size: clamp(2.2rem, 8vh, 3.6rem); }
}

html:has(.haven-page) { scroll-padding-top: 72px; scroll-behavior: auto; }
.haven-page .site-header { position: sticky; top: 0; z-index: 4; }
@media (max-width: 760px) {
  html:has(.haven-page) { scroll-padding-top: 62px; }
  .haven-page { --haven-header: 62px; }
  .haven-page .header-inner nav { gap: 10px; }
  .haven-page .header-inner .brand { font-size: 1.27rem; }
  .haven-page .header-inner .brand img { width: 29px; height: 29px; }
  .haven-page .header-inner .button { font-size: .77rem; white-space: nowrap; }
}
@media (max-width: 480px) {
  .haven-motion { width: 32px; height: 32px; overflow: hidden; white-space: nowrap; color: transparent; flex-shrink: 0; }
  .haven-motion span { flex: 0 0 8px; color: #c9dded; }
}

#backups-and-recovery .feature-video { text-decoration: none; }
.haven-recovery-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0 0;
}
.haven-recovery-comparison > div { border-top: 1px solid var(--line); padding-top: 12px; }
.haven-recovery-comparison dt { color: var(--text); font-size: .9rem; font-weight: 660; }
.haven-recovery-comparison > div:last-child { border-color: #448d84; }
.haven-recovery-comparison > div:last-child dt { color: var(--mint); }
.haven-recovery-comparison dd { margin: 5px 0 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 500px) {
  .haven-recovery-comparison { grid-template-columns: 1fr; gap: 12px; }
}
