:root {
  --ink: #171819;
  --muted: #686d70;
  --line: #e6e7e8;
  --up: #087f68;
  --down: #c9484d;
  --serif: "New York", ui-serif, "Iowan Old Style", Georgia, "Times New Roman", serif;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  font-size: 14px;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: #fff;
}

/* Left: the brand, a fan of price paths, and one line about the app. */
.story {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 48px 44px;
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.brand {
  position: relative;
  z-index: 1;
  display: block;
  width: 136px;
  height: auto;
}
.paths {
  position: absolute;
  left: 0;
  top: 62%;
  width: 100%;
  height: 30%;
  clip-path: inset(0 100% 0 0);
  mask-image: linear-gradient(to right, #000 70%, transparent 98%);
  animation: draw 2.6s cubic-bezier(0.35, 0.5, 0.2, 1) 0.15s forwards;
}
.paths path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.paths path.lead {
  stroke: var(--up);
  stroke-width: 1.75;
}
@keyframes draw {
  to {
    clip-path: inset(0 0 0 0);
  }
}
.quote {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: min(520px, 100% - 96px);
  margin: 0;
  text-align: center;
  transform: translate(-50%, -58%);
}
blockquote {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
blockquote em {
  color: var(--up);
}
figcaption {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
figcaption span {
  margin: 0 8px;
  color: #c3c6c7;
}

/* Right: the form on a soft light pool. */
main {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px 88px;
  background: radial-gradient(ellipse 75% 60% at 55% 45%, #f3f4f4 0%, #f8f9f9 45%, #fff 75%);
}
.panel {
  width: min(400px, 100%);
}
h1 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.note,
.hint {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.note.small {
  margin: -8px 0 18px;
  font-size: 13px;
}
.hint {
  margin: -10px 0 20px;
  font-size: 12px;
}
form {
  display: grid;
}
label {
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 550;
}
.row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
input {
  width: 100%;
  height: 46px;
  margin-bottom: 18px;
  padding: 0 14px;
  border: 1px solid #d7d9da;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  box-shadow: 0 1px 2px #1718190a;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:hover {
  border-color: #b9bdbe;
}
input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px #1718191a;
}
input[readonly] {
  border-color: var(--line);
  background: #f3f4f4;
  color: var(--muted);
  box-shadow: none;
}
.field {
  position: relative;
}
.field input {
  padding-right: 48px;
}
.reveal {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.reveal:hover {
  background: #f1f2f2;
  color: var(--ink);
}
.reveal svg {
  width: 18px;
  height: 18px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
button.primary {
  height: 48px;
  margin-top: 6px;
  border: 0;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 550;
  cursor: pointer;
  box-shadow: 0 1px 2px #17181933, inset 0 1px 0 #ffffff1f;
  transition: background 0.15s;
}
button.primary:hover {
  background: #313435;
}
button.primary:disabled {
  opacity: 0.55;
  cursor: default;
}
button.link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
button.link:hover {
  color: var(--ink);
  text-decoration: underline;
}
.error {
  margin: -6px 0 16px;
  color: var(--down);
  font-size: 13px;
  line-height: 1.4;
}
a {
  color: var(--ink);
  text-underline-offset: 2px;
}
.footnote {
  position: absolute;
  bottom: 28px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 860px) {
  body {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .story {
    height: 148px;
    padding: 18px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    width: 112px;
  }
  .paths {
    top: 38%;
    height: 70%;
  }
  .quote {
    display: none;
  }
  main {
    justify-content: flex-start;
    padding: 32px 20px 72px;
    background: #fff;
  }
  h1 {
    font-size: 40px;
  }
  .note {
    margin-bottom: 24px;
  }
  input {
    font-size: 16px;
  }
  .footnote {
    position: static;
    margin-top: auto;
    padding-top: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .paths {
    animation: none;
    clip-path: none;
  }
}
