/* The landing page: hero A (the control room), the two products (B), the pillars, the uses and the steps. */

/* Hero A: dark, text left, a stack of real screenshots right */

.hero {
  position: relative;
  overflow: hidden;
  padding: var(--sp7) 0 var(--sp8);
}

.hero-dark {
  background: var(--hero-dark);
  color: var(--on-dark);
}

.hero-grid {
  display: grid;
  gap: var(--sp7);
  align-items: center;
}

@media (min-width: 960px) {
  .hero {
    padding: var(--sp8) 0 var(--sp9);
  }

  .hero-grid {
    grid-template-columns: 5fr 7fr;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp3);
  margin: var(--sp6) 0 var(--sp4);
}

.hero-note {
  margin: 0 0 var(--sp4);
  color: var(--dim-on-dark);
  font-size: var(--fs-sm);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp2) var(--sp5);
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--dim-on-dark);
  font-size: var(--fs-sm);
}

.hero-proof li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: var(--sp2);
  border-radius: 50%;
  background: var(--remote-on-dark);
  vertical-align: middle;
}

/* The stack: the console behind, the control window and the file transfer layered on it. Below 960px it is the
   console alone, without the callouts. */

.stack {
  position: relative;
}

.stack .device {
  margin-bottom: 0;
}

.stack-ft,
.stack-ctl,
.callout {
  display: none;
}

@media (min-width: 960px) {
  .stack {
    aspect-ratio: 16 / 11;
    margin-right: calc(-1 * var(--gutter));
  }

  .stack > * {
    position: absolute;
  }

  .stack-main {
    left: 0;
    top: 4%;
    width: 82%;
    transform: perspective(1800px) rotateY(-7deg) rotateX(3deg);
    transform-origin: left center;
  }

  .stack-ctl {
    display: block;
    right: 0;
    bottom: 0;
    width: 52%;
    transform: perspective(1800px) rotateY(-7deg) rotateX(3deg) translateZ(40px);
  }

  .stack-ft {
    display: block;
    right: 4%;
    top: 0;
    width: 34%;
  }

  .callout {
    display: inline-flex;
  }
}

.callout {
  align-items: center;
  gap: var(--sp2);
  padding: var(--sp1) var(--sp3);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-pill);
  background: var(--ink-800);
  color: var(--on-dark);
  font-size: var(--fs-sm);
  box-shadow: var(--shadow-pop);
  white-space: nowrap;
}

.callout b {
  color: var(--remote-on-dark);
}

.callout b::after {
  content: "\00b7";
  margin-left: var(--sp2);
  color: var(--dim-on-dark);
}

/* The pointer: a thin line from the label down (or up) into the screenshot it describes, ending in a dot. */

.callout::before,
.callout::after {
  content: "";
  position: absolute;
  left: 24px;
}

.callout::before {
  top: 100%;
  width: 1px;
  height: 24px;
  background: var(--remote-on-dark);
}

.callout::after {
  top: calc(100% + 24px);
  width: 7px;
  height: 7px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--remote-on-dark);
}

.stack-c1 {
  left: 6%;
  top: -4%;
}

.stack-c3 {
  right: 6%;
  top: -7%;
}

.stack-c2 {
  right: 8%;
  bottom: -5%;
}

.stack-c2::before,
.stack-c2::after {
  top: auto;
}

.stack-c2::before {
  bottom: 100%;
}

.stack-c2::after {
  bottom: calc(100% + 24px);
}

.stack-cap {
  display: none;
}

@media (min-width: 960px) {
  .stack-cap {
    display: block;
    left: 0;
    bottom: -9%;
    color: var(--dim-on-dark);
    font-size: var(--fs-xs);
  }
}

/* One gentle entrance, never a loop; reduced motion gets the final state. */

@media (min-width: 960px) and (prefers-reduced-motion: no-preference) {
  .callout {
    animation: callout-in 0.6s var(--ease) both;
    animation-delay: 0.5s;
  }

  .stack-c2 { animation-delay: 0.7s; }
  .stack-c3 { animation-delay: 0.9s; }
}

@keyframes callout-in {
  from { opacity: 0; translate: 0 6px; }
  to   { opacity: 1; translate: 0 0; }
}

/* B: two doors */

.doors-section {
  background: var(--hero-bg);
  border-bottom: 1px solid var(--border);
}

.doors-head {
  max-width: 760px;
  margin: 0 auto var(--sp7);
  text-align: center;
}

.doors-head .eyebrow {
  justify-content: center;
}

.doors-head .t-lead {
  margin-inline: auto;
}

.doors {
  display: grid;
  gap: var(--sp5);
}

@media (min-width: 960px) {
  .doors {
    grid-template-columns: 1fr 4px 1fr;
    gap: var(--sp6);
  }
}

.doors-seam {
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--grad-cyan), var(--grad-blue) 50%, var(--grad-violet));
}

@media (max-width: 959.98px) {
  .doors-seam {
    display: none;
  }
}

.door .productCard-body {
  flex: 0 0 auto;
}

.door .productCard-soonBox {
  flex: 1;
}

.door .device-light {
  align-self: stretch;
}

/* Pillars: the bento */

.bento-shot {
  margin: 0 calc(-1 * var(--sp5)) calc(-1 * var(--sp5));
  border-width: 1px 0 0;
  border-radius: 0;
  box-shadow: none;
}

.bento-shot .shotWeb {
  height: 260px;
  object-fit: cover;
  object-position: left top;
}

/* Uses and steps */

.uses {
  display: grid;
  gap: var(--sp4);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 600px) {
  .uses {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .uses {
    grid-template-columns: repeat(4, 1fr);
  }
}

.uses h3,
.steps h3 {
  margin-bottom: var(--sp2);
}

.uses p,
.steps p {
  margin: 0;
  color: var(--text-dim);
}

.steps {
  display: grid;
  gap: var(--sp4);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 960px) {
  .steps {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: var(--sp3);
  border-radius: 50%;
  background: var(--accent-btn);
  color: var(--on-accent);
  font-weight: 700;
}

/* The bento grid. */
.bento {
  display: grid;
  gap: var(--sp4);
  grid-template-columns: repeat(6, 1fr);
}
.bento-cell {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp4);
  grid-column: span 6;
  min-height: 200px;
  padding: var(--sp5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel-bg);
}
@media (min-width: 960px) {
  .bento-w4 { grid-column: span 4; }
  .bento-w3 { grid-column: span 3; }
  .bento-w2 { grid-column: span 2; }
}
.bento-cell h3 {
  margin-bottom: var(--sp2);
  font-size: var(--fs-xl);
}
.bento-cell p {
  margin: 0;
  color: var(--text-dim);
  font-size: var(--fs-sm);
}
.bento-dark {
  border-color: var(--line-on-dark);
  background: var(--ink-800);
  color: var(--on-dark);
}
.bento-dark p {
  color: var(--dim-on-dark);
}
.bento-stat {
  font-size: var(--fs-h1);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--accent);
}
.bento-cell:has(.bento-stat) {
  justify-content: center;
  gap: var(--sp3);
  min-height: 0;
}
.bento-cell .bento-stat {
  margin: 0;
  font-size: var(--fs-h1);
}
.bento-statLabel {
  display: block;
  margin-bottom: var(--sp1);
  color: var(--text-dim);
  font-size: var(--fs-md);
  font-weight: 400;
  letter-spacing: 0;
}
.bento-dark .bento-statLabel {
  color: var(--dim-on-dark);
}
.bento-dark .bento-stat {
  color: var(--remote-on-dark);
}
