/* Hero layout and the SVG network fallback. */
.pricing-hero h1,
.security-hero h1,
.comparison-hero h1 {
  margin-bottom: 0;
}

.hero {
  padding: 64px 0 88px;
}

.hero.hero-dark {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--color-brand);
  color: var(--color-white);
  margin-bottom: 64px;
  padding: var(--hero-padding-block) 0;
}

.hero-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  opacity: .07;
  mix-blend-mode: luminosity;
  z-index: -2;
}

.hero-dark:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,var(--color-brand) 0%,#0a5bd622 70%,var(--color-brand) 100%);
}

.hero-dark .hero-layout {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: calc(100vh - var(--header-fallback-height) - var(--hero-padding-block) * 2);
  min-height: calc(100svh - var(--header-fallback-height) - var(--hero-padding-block) * 2);
}

.hero-dark .hero-copy {
  width: 100%;
  text-align: center;
  flex-shrink: 0;
}

.hero-dark .hero-copy h1,
.hero-dark .hero-copy h1 span {
  color: var(--color-white);
}

.hero-dark .hero-copy h1 {
  font-size: clamp(2.6rem,4.5vw,4.25rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -.055em;
}

.hero-dark h1 br {
  display: block;
}

.hero-dark h1 span {
  margin-left: 0;
}

.hero-dark .share-network {
  width: 100%;
  max-width: none;
  min-height: 440px;
  aspect-ratio: auto;
  flex: 1 0 440px;
  margin-top: 8px;
}

.hero-login {
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 4px;
  font-size: 16px;
  color: var(--color-white);
}

.hero-login:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.hero-dark .hero-link,
.hero-dark .hero-link span {
  color: var(--color-text-on-dark-muted);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
  min-height: 490px;
}

.hero-copy {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: var(--font-size-hero-heading);
  font-weight: 500;
  line-height: 1.21;
  letter-spacing: -.065em;
}

.hero h1 span {
  color: var(--color-brand);
}

.hero-link {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--color-text-muted);
  font-size: 16px;
}

.hero-link span {
  color: var(--color-brand);
  transition: transform .25s;
}

.hero-link:hover span {
  transform: translateY(4px);
}

.share-network {
  position: relative;
  min-width: 0;
  min-height: 560px;
  aspect-ratio: 1;
  isolation: isolate;
}

.network-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
}

.network-art:before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle,#ffffff30 .7px,transparent .9px) center/32px 32px;
  mask-image: radial-gradient(ellipse at center,#000 15%,transparent 69%);
  opacity: .35;
}

.network-plane {
  position: absolute;
  inset: 8%;
  border: 1px solid #ffffff0d;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,#0a5bd626,transparent 68%);
}

.network-plane:before {
  content: '';
  position: absolute;
  inset: 22%;
  border: 1px solid #ffffff0d;
  border-radius: 50%;
}

.network-far {
  transform: translate3d(var(--network-back-offset-x,0px),var(--network-back-offset-y,0px),0);
  transition: transform .65s var(--motion-ease);
}

.network-front {
  position: absolute;
  inset: 0;
  transform: translate3d(var(--network-front-offset-x,0px),var(--network-front-offset-y,0px),0);
  transition: transform .45s var(--motion-ease);
}

.network-wires {
  width: 100%;
  height: 100%;
  overflow: visible;
  position: absolute;
  inset: 0;
  fill: none;
  stroke: var(--color-surface-tinted);
  stroke-width: 1.25;
}

.network-wire,
.network-branch {
  vector-effect: non-scaling-stroke;
  opacity: .52;
  transition: opacity .25s,stroke-width .25s;
}

.network-branch[data-depth="2"] {
  opacity: .36;
  stroke-width: 1;
}

.network-branch[data-depth="3"] {
  opacity: .25;
  stroke-width: .85;
}

.network-wire.is-nearby {
  opacity: 1;
  stroke-width: 2;
}

.network-branch.is-nearby {
  opacity: .8;
  stroke-width: 1.25;
}

.network-draw .network-wire,
.network-draw .network-branch {
  animation: connect-once 1.1s var(--motion-ease) both;
}

@keyframes connect-once {
  from {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }

  to {
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
  }
}

.network-file {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 96px;
  height: 114px;
  transform: translate(-50%,-50%);
  display: grid;
  place-items: center;
  background: var(--color-white);
  border: 1px solid #ffffffaa;
  border-radius: 16px;
  box-shadow: 0 0 0 9px #ffffff08,0 14px 44px #0c1c3266;
}

.network-file-icon {
  width: 50px;
  height: 64px;
  fill: none;
  stroke: var(--color-brand);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.network-recipient,
.network-satellite {
  --person-size: 48px;
  position: absolute;
  left: var(--node-x);
  top: var(--node-y);
  width: max-content;
  max-width: 144px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  transform: translate(-50%,calc(var(--person-size) / -2));
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-white);
}

.network-recipient[data-recipient="0"],
.network-recipient[data-recipient="1"] {
  flex-direction: column-reverse;
  transform: translate(-50%,calc(-100% + var(--person-size) / 2));
}

.network-label {
  text-align: center;
  white-space: nowrap;
  padding: 1px 5px;
  background: #0c1c32e8;
  border-radius: 3px;
}

.network-person {
  display: grid;
  place-items: center;
  width: var(--person-size);
  height: var(--person-size);
  flex-shrink: 0;
  border: 1px solid #ffffff88;
  border-radius: 50%;
  background: #0c1c32eb;
  color: var(--color-surface-tinted);
  transition: border-color .25s,box-shadow .25s,background .25s;
}

.network-person svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.network-satellite[data-depth="2"] {
  --person-size: 32px;
}

.network-satellite[data-depth="2"] .network-person {
  border-color: #ffffff66;
  color: #eff5ffcc;
}

.network-satellite[data-depth="2"] svg {
  width: 17px;
  height: 17px;
}

.network-satellite[data-depth="3"] {
  --person-size: 21px;
}

.network-satellite[data-depth="3"] .network-person {
  border-color: #ffffff44;
  color: #eff5ff99;
  background: #0c1c32c9;
}

.network-satellite[data-depth="3"] svg {
  width: 12px;
  height: 12px;
}

.network-recipient.is-nearby .network-person,
.network-satellite.is-nearby .network-person {
  border-color: var(--color-white);
  background: var(--color-brand);
  box-shadow: 0 0 0 4px #ffffff0d;
}

.hero-dark .hero-copy h1 {
  text-wrap: balance;
}

@media (max-width:1100px) {
  .hero {
    padding-top: 55px;
  }

  .hero-layout {
    gap: 24px;
    grid-template-columns: 1fr 1.1fr;
  }

  .network-file {
    width: 82px;
    height: 100px;
  }

  .network-file-icon {
    width: 44px;
    height: 56px;
  }

  .network-recipient {
    --person-size: 42px;
    gap: 7px;
    font-size: 14px;
  }
}

@media (max-width:800px) {
  .hero {
    padding: 48px 0 64px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 0;
  }

  .hero-dark {
    padding: 38px 0 28px;
  }

  .hero-dark .share-network {
    aspect-ratio: 1.35;
    min-height: 470px;
  }

  .share-network {
    width: 100%;
    max-width: 590px;
    justify-self: center;
    min-height: 560px;
  }

  .network-art {
    inset: 0;
  }

  .network-recipient {
    font-size: 16px;
  }

  .hero h1 {
    font-size: clamp(3.2rem,10.5vw,5.1rem);
    line-height: 1.25;
  }
}

@media (max-width:480px) {
  .hero.hero-dark {
    padding: 32px 0 28px;
  }

  .hero-dark .hero-copy h1 {
    font-size: clamp(2.35rem,10vw,3rem);
    line-height: 1.35;
  }

  .hero-dark h1 br {
    display: block;
  }

  .hero-dark h1 span {
    margin-left: 0;
  }

  .hero-dark .share-network {
    aspect-ratio: auto;
    min-height: 500px;
    margin-top: 18px;
  }

  .hero-background {
    object-position: center bottom;
  }

  .hero {
    padding: 40px 0 64px;
  }

  .hero h1 {
    font-size: clamp(2.95rem,12.4vw,3.75rem);
    letter-spacing: -.055em;
    line-height: 1.25;
  }

  .hero-layout {
    gap: 25px;
  }

  .hero-dark {
    margin-bottom: 40px;
  }

  .share-network {
    margin-top: 16px;
    min-height: 500px;
  }

  .network-file {
    width: 64px;
    height: 78px;
    border-radius: 11px;
    box-shadow: 0 0 0 6px #ffffff08,0 10px 26px #0c1c3244;
  }

  .network-file-icon {
    width: 34px;
    height: 46px;
  }

  .network-recipient {
    --person-size: 32px;
    max-width: 116px;
    gap: 5px;
    font-size: 14px;
  }

  .network-person svg {
    width: 18px;
    height: 18px;
  }

  .network-satellite[data-depth="2"] {
    --person-size: 23px;
  }

  .network-satellite[data-depth="2"] svg {
    width: 13px;
    height: 13px;
  }

  .network-satellite[data-depth="3"] {
    --person-size: 16px;
  }

  .network-satellite[data-depth="3"] svg {
    width: 9px;
    height: 9px;
  }

  .network-label {
    padding: 1px 3px;
  }

  .hero-link {
    font-size: 14px;
    gap: 12px;
  }
}

@media (prefers-reduced-motion:reduce) {
  .network-front,
  .network-far {
    transform: none!important;
    transition: none!important;
  }

  .network-wire,
  .network-branch {
    animation: none!important;
    transition: none!important;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }

  .network-person {
    transition: none!important;
  }
}

@media (hover:none),(pointer:coarse) {
  .network-front,
  .network-far {
    transform: none;
    transition: none;
  }

  .network-wire,
  .network-branch {
    animation: none;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
}
