:root {
  --ink: #16131f;
  --text: #3d3a48;
  --brand: #00a7e6;
  --brand-soft: #d6f1fb;
  --pen: #2a55c9;
  --red-pen: #b02d26;
  --rule: #f3c3bf;
  --edge: #e6e4ec;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ruled-44: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2710%27 height=%2744%27%3E%3Crect y=%2743%27 width=%2710%27 height=%271%27 fill=%27%23bfe9fb%27/%3E%3C/svg%3E");
  --ruled-40: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2710%27 height=%2740%27%3E%3Crect y=%2739%27 width=%2710%27 height=%271%27 fill=%27%23bfe9fb%27/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: Figtree, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 17px;
  line-height: 1.35;
  overflow-x: clip;
}

h1,
h2,
p {
  margin: 0;
}

img {
  display: block;
}

.headline {
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  text-decoration: none;
}

.mark {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 0 34px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-size: 19px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

/* Until the app is in the store: same size as the button, but plain, so it does not look tappable. */
.cta.soon {
  margin: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--edge);
  cursor: default;
}

.sub {
  color: var(--text);
  font-size: 15px;
}

.phone {
  flex: none;
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(22, 19, 31, 0.14));
}

/* Top */
.top {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 1030px;
  padding: 28px 64px 0;
  overflow: hidden;
  background: var(--brand);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.bar-note {
  font-weight: 600;
}

.top .headline {
  margin-top: 20px;
  font-size: clamp(64px, 6.1vw, 88px);
  text-align: center;
}

.top .cta {
  margin-top: 26px;
}

.top-sub {
  display: none;
}

.top .phone {
  width: 440px;
  margin-top: 52px;
}

/* The three questions */
.rows {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1312px;
  height: 920px;
  margin: 0 auto;
  padding: 88px 32px 0;
  overflow: hidden;
}

.row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.row .headline {
  font-size: clamp(34px, 3.05vw, 44px);
  text-align: center;
}

.row .phone {
  width: min(340px, 100%);
}

.note {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 20px 14px 20px 52px;
  border: 1px solid var(--edge);
  border-radius: 20px;
  background-color: #ffffff;
  background-image: var(--ruled-44);
  background-position: 0 20px;
  color: var(--pen);
  font-family: Caveat, "Segoe Print", cursive;
  font-size: clamp(27px, 2.5vw, 36px);
  font-weight: 500;
  line-height: 44px;
}

.note::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 36px;
  width: 2px;
  background: var(--rule);
}

.note p {
  width: fit-content;
}

.red {
  color: var(--red-pen);
}

.ring {
  display: inline-block;
  padding: 0 12px;
  border: 2px solid var(--red-pen);
  border-radius: 50%;
  line-height: 36px;
  transform: rotate(-2deg);
}

@keyframes write {
  from {
    clip-path: inset(-12px 100% -12px -8px);
  }
  to {
    clip-path: inset(-12px -48px -12px -8px);
  }
}

.wait p {
  clip-path: inset(-12px 100% -12px -8px);
}

.go p {
  animation: write 250ms var(--ease) both;
}

.go p:nth-child(2) {
  animation-delay: 140ms;
}

.go p:nth-child(3) {
  animation-delay: 280ms;
}

/* End */
.end {
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding: 72px 64px 40px;
  background: var(--brand-soft);
}

.end-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.end-title {
  display: flex;
  align-items: center;
  gap: 24px;
}

.end-title .headline {
  font-size: 72px;
}

.end-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 40px;
  color: var(--text);
  font-size: 15px;
}

.foot a {
  color: var(--ink);
  text-underline-offset: 3px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

/* Columns stop fitting: one question after another. */
@media (max-width: 1149px) {
  .top {
    align-items: stretch;
    height: 760px;
    padding: 12px 16px 0;
  }

  .bar-note {
    display: none;
  }

  .top .headline {
    margin-top: 28px;
    font-size: min(52px, 13.3vw);
  }

  .top .cta {
    margin-top: 24px;
    width: 100%;
    max-width: 420px;
    align-self: center;
  }

  .top-sub {
    display: block;
    margin-top: 10px;
    color: var(--ink);
    text-align: center;
  }

  .top .phone {
    width: min(310px, 80vw);
    margin: 24px auto 0;
  }

  .rows {
    display: block;
    height: auto;
    padding: 0;
  }

  .row {
    gap: 0;
    height: 788px;
    padding: 56px 16px 0;
    overflow: hidden;
  }

  .row .headline {
    margin-bottom: 20px;
    font-size: min(40px, 10.2vw);
  }

  .row .phone {
    width: min(300px, 78vw);
    margin-top: 24px;
  }

  .note {
    max-width: 480px;
    padding: 20px 12px 20px 44px;
    background-image: var(--ruled-40);
    font-size: min(30px, 7.6vw);
    line-height: 40px;
  }

  .note::before {
    left: 30px;
  }

  .ring {
    padding: 0 10px;
    line-height: 32px;
  }

  .end {
    gap: 40px;
    padding: 48px 16px 28px;
    text-align: center;
  }

  .end-line {
    flex-direction: column;
    gap: 24px;
  }

  .end-title {
    flex-direction: column;
    gap: 8px;
  }

  .end-title .headline {
    font-size: min(44px, 11.2vw);
  }

  .end-cta,
  .end .cta {
    width: 100%;
    max-width: 420px;
  }

  .foot {
    flex-direction: column;
    text-align: left;
  }
}

@media (max-width: 359px) {
  .note {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wait p,
  .go p {
    animation: none;
    clip-path: none;
  }
}
