.launch {
  --canvas: #0b1017;
  --ink: #f8f8fb;
  --slate: #b9c0cb;
  --line: #ffffff20;
  --accent: #ff7779;
  background: var(--canvas);
  color: var(--ink);
}

.launch .wrap {
  width: min(100% - 5rem, 75rem);
  margin-inline: auto;
}

.launch a {
  color: inherit;
}

.launch :is(a, input, button):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 5;
  top: .6rem;
  left: .6rem;
  padding: .75rem 1rem;
  transform: translateY(-150%);
  border-radius: .5rem;
  background: #221219;
}

.skip-link:focus {
  transform: none;
}

.launch-header {
  position: relative;
  z-index: 2;
  min-height: 5.3rem;
}

.launch-header nav,
.launch-header .brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.launch-header nav {
  gap: clamp(1rem, 3vw, 2.25rem);
  color: var(--slate);
  font-size: .875rem;
}

.launch-header nav a {
  text-decoration: none;
}

.launch-header nav a:hover {
  color: var(--ink);
}

.launch-header .header-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: .9rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  color: var(--ink);
}

.launch main {
  display: block;
  padding: 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 43rem;
  padding-block: 2.75rem 3.75rem;
}

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

.audience {
  margin-bottom: 1.15rem;
  color: var(--accent);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 100%;
  margin-bottom: 1.5rem;
  font-size: clamp(2.75rem, 5vw, 4.375rem);
  line-height: 1.01;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.hero h1 em {
  display: block;
  color: var(--accent);
}

.hero-description {
  max-width: 35ch;
  color: var(--slate);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.65;
}

.launch .action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 3.25rem;
  margin-top: 1.9rem;
  padding: .75rem 1.15rem;
  border: 1px solid #ea5559;
  border-radius: .7rem;
  background: var(--coral);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}

.launch .action:hover:not(:disabled) {
  background: #ba3438;
}

.action span {
  font-size: 1.1rem;
}

.hero-product {
  min-width: 0;
}

.device-stage {
  position: relative;
  isolation: isolate;
  min-height: 34.5rem;
}

.device-stage::before {
  position: absolute;
  z-index: -2;
  inset: -1rem -2rem;
  background:
    radial-gradient(ellipse at 74% 66%, #f250573f, transparent 56%),
    radial-gradient(ellipse at 32% 21%, #fa66662b, transparent 46%);
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 73%);
  content: "";
}

.stage-orbit {
  position: absolute;
  z-index: -1;
  inset: 10% 10% 11% 8%;
  transform: rotate(-18deg);
  pointer-events: none;
}

.stage-orbit span {
  position: absolute;
  inset: var(--wave-inset, 0);
  border: 1px solid #ff8283;
  border-radius: 48% 50% 47% 47%;
  opacity: var(--wave-opacity, .32);
}

.stage-orbit span:nth-child(2) {
  --wave-inset: 6%;
  --wave-opacity: .24;
  --wave-delay: -2.4s;
}

.stage-orbit span:nth-child(3) {
  --wave-inset: 12%;
  --wave-opacity: .17;
  --wave-delay: -4.8s;
}

.phone {
  position: absolute;
  overflow: hidden;
  padding: .48rem;
  border: 1px solid #58616d;
  border-radius: 2rem;
  background: linear-gradient(155deg, #343b47, #10131b 38%, #11141b 80%, #444957);
  box-shadow: 0 1.75rem 4rem #0009, 0 0 0 1px #ffffff16 inset;
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.55rem;
  background: #f7f8fb;
}

.phone-behind {
  top: 11%;
  left: 7%;
  width: 34%;
  transform: rotate(-13deg);
  border-color: #394653;
}

.phone-front {
  top: 3%;
  left: 36%;
  width: 42%;
  transform: rotate(9deg);
}

.stage-mark {
  position: absolute;
  right: 0;
  bottom: 15%;
  width: clamp(5rem, 10vw, 7.75rem);
  height: auto;
  transform: rotate(-9deg);
  border: 1px solid #ffb0af;
  border-radius: 27%;
  box-shadow: 0 1rem 2.8rem #f649514f;
}

.workflow {
  position: relative;
  z-index: 1;
  overflow: clip;
  scroll-margin-top: 1rem;
}

.workflow-panel {
  padding-block: clamp(3.25rem, 7vw, 6.25rem);
  background: #f7f8fb;
  color: #141824;
}

.section-heading {
  margin-bottom: 2.25rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4.4vw, 3.55rem);
  line-height: 1.1;
  letter-spacing: -.045em;
}

.workflow-copy p {
  color: #505b6e;
  line-height: 1.6;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  gap: .8rem;
  min-width: 0;
  overflow: hidden;
  padding: 1.3rem 1.3rem 0;
  border: 1px solid #e1e4ec;
  border-radius: 1.15rem;
  background: #fff;
}

.workflow-copy h3 {
  margin: 0 0 .4rem;
  font-size: 1.25rem;
  letter-spacing: -.02em;
}

.workflow-screen {
  width: min(100%, 15rem);
  aspect-ratio: 390 / 428;
  align-self: end;
  overflow: hidden;
  margin: .6rem auto 0;
  padding: .35rem .35rem 0;
  border: 1px solid #48515e;
  border-bottom: 0;
  border-radius: 1.25rem 1.25rem 0 0;
  background: #202733;
}

.workflow-screen img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: .9rem .9rem 0 0;
  background: #f7f8fb;
}

@media (prefers-reduced-motion: no-preference) {
  .launch-page {
    scroll-behavior: smooth;
  }

  .hero {
    transform: translateY(calc(var(--hero-depth, 0) * clamp(2rem, 5vw, 4.5rem)));
  }

  .phone-behind {
    transform:
      translateY(calc(var(--hero-depth, 0) * clamp(1rem, 3vw, 2.25rem)))
      rotate(calc(-13deg + var(--hero-depth, 0) * 3deg));
  }

  .phone-front {
    transform:
      translateY(calc(var(--hero-depth, 0) * clamp(-6.5rem, -9vw, -3.5rem)))
      rotate(calc(9deg - var(--hero-depth, 0) * 4deg));
  }

  .workflow-panel {
    transform: translateY(calc(var(--workflow-entry, 0) * clamp(3.5rem, 8vw, 7rem)));
  }

  .stage-orbit span {
    animation: stage-wave 7.2s ease-in-out var(--wave-delay, 0s) infinite;
  }

  @keyframes stage-wave {
    0%, 100% {
      transform: scale(.985, 1.02) skewX(1deg);
      opacity: calc(var(--wave-opacity, .32) * .72);
    }

    38% {
      transform: scale(1.055, .985) skewX(-2.5deg) rotate(2deg);
      opacity: var(--wave-opacity, .32);
    }

    72% {
      transform: scale(1.025, 1.065) skewX(2deg) rotate(-1deg);
      opacity: calc(var(--wave-opacity, .32) * .56);
    }
  }

  .launch .action {
    transition: background-color 180ms ease;
  }

  .action span {
    transition: transform 180ms ease;
  }

  .action:is(:hover, :focus-visible) span {
    transform: translateY(.15em);
  }
}

.newsletter {
  scroll-margin-top: 1rem;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 10% 90%, #39202b, transparent 55%), #141924;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1.1rem clamp(1.5rem, 5vw, 4rem);
  padding-block: clamp(2.75rem, 7vw, 5.25rem);
}

.newsletter-mark {
  grid-column: 1 / -1;
}

.newsletter-copy h2 {
  max-width: 23ch;
  margin-bottom: .7rem;
  font-size: clamp(1.85rem, 3.7vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -.04em;
}

.newsletter-copy p {
  color: var(--slate);
  line-height: 1.6;
}

.newsletter-form {
  display: grid;
  gap: .65rem;
}

.newsletter-form label {
  font-size: .935rem;
  font-weight: 500;
}

.newsletter-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .65rem;
}

.newsletter-fields input {
  min-width: 0;
  min-height: 3.25rem;
  padding: .75rem .9rem;
  border: 1px solid #717988;
  border-radius: .7rem;
  background: #0d131d;
  color: var(--ink);
  font: inherit;
}

.newsletter-fields input::placeholder {
  color: var(--slate);
}

.launch .newsletter-submit {
  justify-content: center;
  margin: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: .95rem;
}

.newsletter-form .newsletter-consent {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 2.75rem;
  font-size: .9rem;
  font-weight: 400;
  cursor: pointer;
}

.newsletter-consent input {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  accent-color: var(--coral);
}

.newsletter-unsubscribe {
  color: var(--slate);
  font-size: .8rem;
}

.newsletter-status:empty {
  margin: 0;
}

.newsletter-status:not(:empty) {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  align-items: start;
  gap: .6rem;
  margin: .3rem 0 0;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
  color: var(--slate);
  font-size: .875rem;
  line-height: 1.5;
}

.newsletter-status:not(:empty)::before {
  content: "…";
  color: var(--coral-original);
  font-weight: 500;
}

.newsletter-status[data-state="success"] {
  color: var(--ink);
}

.newsletter-status[data-state="success"]::before {
  content: "✓";
}

.newsletter-status[data-state="error"] {
  color: #ffc4bb;
}

.newsletter-status[data-state="error"]::before {
  content: "!";
}

.launch .newsletter-submit:disabled {
  cursor: wait;
  opacity: .7;
}

.launch-footer {
  border: 0;
  font-size: .875rem;
}

.launch-footer a {
  color: var(--accent);
  text-underline-offset: .25em;
}

@media (max-width: 64rem) {
  .device-stage {
    min-height: clamp(26rem, 52vw, 34rem);
  }
}

@media (max-width: 50rem) {
  .launch .wrap {
    width: min(100% - 2.5rem, 37rem);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding-block: 2.35rem 2.75rem;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 8.5vw, 4.4rem);
  }

  .hero-product {
    width: min(100%, 29rem);
    margin-inline: auto;
  }

  .device-stage {
    min-height: 0;
    aspect-ratio: 1.08;
  }

  .device-stage::before {
    inset: -1rem;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .workflow-card {
    grid-template-rows: auto auto;
    grid-row: auto;
  }

  .workflow-screen {
    width: min(80%, 16rem);
  }

  .newsletter-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 34rem) {
  .newsletter-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 27rem) {
  .launch-header .brand {
    font-size: 1.2rem;
  }

  .launch-header .brand img {
    width: 2rem;
    height: 2rem;
  }

  .launch-header nav > :first-child {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 10.2vw, 3rem);
  }

  .stage-mark {
    right: 2%;
    bottom: 12%;
    width: 19%;
  }

  .phone {
    padding: .3rem;
    border-radius: 1.2rem;
  }

  .phone img {
    border-radius: .9rem;
  }
}
