/* Front door: one screen that never scrolls. One field, one button, and a
   block of 32 key cells that answers your typing and seals when the link
   is sent. */

.lp {
  display: flex;
  height: 100vh;
  height: 100dvh;
  flex-direction: column;
  overflow: hidden;
  padding: max(14px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right))
    max(18px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}

.lp-top {
  display: flex;
  height: 44px;
  flex: none;
  align-items: center;
  gap: 10px;
}

.lp-top .brand-word {
  font-size: 17px;
}

.lp-stage {
  display: flex;
  width: 100%;
  max-width: 440px;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  margin: 0 auto;
  padding-bottom: 4vh;
}

.lp-title {
  font-size: clamp(38px, 11.4vw, 50px);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 0.98;
}

.lp-title > span {
  display: inline-block;
}

.lp-title-seal {
  color: var(--muted);
}

.lp-sub {
  max-width: 34ch;
  margin-top: 14px;
  color: var(--muted);
  font-size: var(--text-md);
  line-height: 1.45;
}

.lp-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 20px 20px;
  border-radius: 32px;
}

.lp-key {
  display: grid;
  width: max-content;
  grid-template-columns: repeat(8, 9px);
  gap: 3px;
}

.lp-cell {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--surface-tint);
  box-shadow: inset 0 0 0 0.5px var(--line);
  transition: background-color 220ms ease;
}

.lp-cell.l1 {
  background: color-mix(in srgb, var(--ink) 14%, transparent);
}

.lp-cell.l2 {
  background: color-mix(in srgb, var(--ink) 28%, transparent);
}

.lp-cell.l3 {
  background: color-mix(in srgb, var(--ink) 46%, transparent);
}

.lp-cell.l4 {
  background: color-mix(in srgb, var(--ink) 70%, transparent);
}

.lp-cell.is-sealed {
  background: var(--ink);
  transition-duration: 320ms;
}

.lp-cell.is-sealed:nth-child(n + 17) {
  transition-delay: 0ms;
}

.lp-cell.is-sealed:nth-child(-n + 24) {
  transition-delay: 90ms;
}

.lp-cell.is-sealed:nth-child(-n + 16) {
  transition-delay: 180ms;
}

.lp-cell.is-sealed:nth-child(-n + 8) {
  transition-delay: 270ms;
}

.lp-head h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.15;
}

.lp-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.lp-flow {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lp-form .label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.lp-form .input {
  height: 54px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 17px;
}

.lp-msg {
  min-height: 18px;
  padding: 0 6px;
  color: var(--red-ink);
  font-size: var(--text-xs);
  font-weight: 550;
  line-height: 18px;
}

.lp-go {
  height: 54px;
}

.lp-opening {
  display: flex;
  height: 54px;
  align-items: center;
  justify-content: center;
}

.lp-card[data-state="sent"] .lp-head h2::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--switch-on);
  box-shadow: 0 0 0 4px var(--green-soft);
  vertical-align: 0.12em;
}

@media (prefers-color-scheme: dark) {
  .lp-title-seal {
    color: var(--muted);
  }
}

@media (prefers-contrast: more) {
  .lp-title-seal {
    background: none;
    color: var(--ink);
  }
}

@media (min-width: 960px) {
  .lp {
    padding: 28px 44px;
  }

  .lp-stage {
    max-width: 1120px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
    padding-bottom: 6vh;
  }

  .lp-pitch {
    max-width: 600px;
  }

  .lp-title {
    font-size: clamp(64px, 6.6vw, 96px);
  }

  .lp-sub {
    margin-top: 22px;
    font-size: 19px;
  }

  .lp-card {
    width: 400px;
    flex: none;
    padding: 28px;
  }
}

@media (max-height: 640px) {
  .lp-stage {
    gap: 16px;
    padding-bottom: 0;
  }

  .lp-title {
    font-size: 36px;
  }

  .lp-sub {
    display: none;
  }

  .lp-card {
    gap: 12px;
    padding: 18px 16px 16px;
  }

  .lp-head h2 {
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-cell,
  .lp-cell.is-sealed {
    transition: none;
  }
}

.lp-code {
  font-variant-numeric: tabular-nums;
  font-size: 1.5rem;
  letter-spacing: 0.3em;
  text-align: center;
}

.lp-key {
  display: none;
}

.lp-title {
  font-size: 34px;
  line-height: 1.12;
}
