@font-face {
  font-family: "Bounded";
  src: url("fonts/Bounded-Black.woff2") format("woff2"), url("fonts/Bounded-Black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --black: #434343;
  --blue: #0f8eff;
  --red: #fe5155;
  --red-arrow: #fc5055;
  --light-gray: #fafafa;
  --stroke: #ccd7e9;
  --blue-gray: #e8f2fa;
  --font-body: Arial, Helvetica, sans-serif;
  --font-display: "Bounded", Arial, sans-serif;
  --card-w: 300px;
  --card-h: 115px;
  --card-gap: 8px;
  --icon: 64px;
  --hero-radius: 20px;
  --intro-radius: 16px;
}

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

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  font: inherit;
}

.page {
  min-height: 100vh;
  background: var(--white);
}

.shell {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 16px;
  background: var(--blue);
  border-radius: 0 0 var(--hero-radius) var(--hero-radius);
}

.hero__rays {
  position: absolute;
  left: -100px;
  top: -100px;
  width: 2932px;
  height: 2982px;
  max-width: none;
  transform: translate(-50%, -50%);
  transform-origin: center;
  pointer-events: none;
  animation: rays-spin 60s linear infinite;
}

@keyframes rays-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__rays {
    animation: none;
  }
}

.hero__col,
.intro {
  position: relative;
  z-index: 1;
}

.hero__col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.hero__logo {
  width: 200px;
  height: 25.414px;
  overflow: clip;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 44px;
  line-height: 44px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--white);
}

.intro {
  position: relative;
  background: var(--white);
  border-radius: 0 var(--intro-radius) var(--intro-radius) var(--intro-radius);
  padding: 16px;
}

.intro p {
  font-size: 16px;
  line-height: 20px;
}

.intro__pointer {
  position: absolute;
  width: 16px;
  height: 16px;
  left: -16px;
  top: 0;
}

.question {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 20px 16px;
}

.question__bubble {
  position: relative;
  background: var(--red);
  color: var(--white);
  border-radius: 20px;
  padding: 12px 16px;
  width: min(300px, 100%);
  text-align: center;
}

.question__bubble p {
  font-weight: 700;
  font-size: 16px;
  line-height: 26px;
}

.question__tail {
  position: absolute;
  left: 50%;
  top: calc(100% - 1px);
  width: 40px;
  height: 20px;
  transform: translateX(-50%);
  pointer-events: none;
}

.carousel {
  position: relative;
  isolation: isolate;
  width: 100%;
  overflow: hidden;
}

.carousel__viewport {
  overflow: hidden;
}

.carousel__track {
  display: flex;
  gap: var(--card-gap);
  padding: 0 calc(50% - var(--card-w) / 2);
  transition: transform 0.35s ease;
  will-change: transform;
  user-select: none;
  touch-action: pan-y;
}

.card {
  position: relative;
  z-index: 1;
  flex: 0 0 var(--card-w);
  width: var(--card-w);
  height: var(--card-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 12px;
  background: var(--light-gray);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  color: var(--black);
  text-align: left;
  cursor: pointer;
  opacity: 0.45;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.card.is-selected {
  border-color: var(--blue);
  opacity: 1;
}

.card:hover,
.card:focus-visible {
  opacity: 1;
}

.card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.card__icon {
  flex: 0 0 var(--icon);
  width: var(--icon);
  height: var(--icon);
  overflow: clip;
}

.card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.card__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  line-height: 20px;
  text-transform: uppercase;
}

.card__desc {
  font-size: 14px;
  line-height: 18px;
}

.carousel__fade {
  position: absolute;
  top: 0;
  height: var(--card-h);
  width: 50px;
  z-index: 7;
  pointer-events: none;
}

.carousel__fade--left {
  left: 0;
  background: linear-gradient(to right, var(--white), rgba(255, 255, 255, 0));
}

.carousel__fade--right {
  right: 0;
  background: linear-gradient(to left, var(--white), rgba(255, 255, 255, 0));
}

.carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 9;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 112.5px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  transform-origin: center;
  transition: transform 100ms ease-in-out;
  background-image: linear-gradient(
      108.95deg,
      rgba(255, 255, 255, 0) 34.737%,
      rgba(255, 255, 255, 0.3) 86.834%
    ),
    linear-gradient(90deg, var(--red-arrow), var(--red-arrow));
}

.carousel__arrow img {
  width: 18px;
  height: 17px;
}

.carousel__arrow--prev {
  left: 2px;
}

.carousel__arrow--prev img {
  transform: rotate(180deg);
}

.carousel__arrow--next {
  right: 2px;
}

.carousel__arrow:hover {
  filter: brightness(1.05);
}

.carousel__arrow:active {
  transform: translateY(-50%) scale(1.05);
}

.carousel__arrow:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.cta {
  width: 100%;
  padding: 20px 16px;
  display: flex;
  justify-content: center;
}

.btn-primary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 30px 0 40px;
  border: 0;
  border-radius: 48px;
  cursor: pointer;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.2px;
  background-image: linear-gradient(
      142.61deg,
      rgba(255, 255, 255, 0) 34.737%,
      rgba(255, 255, 255, 0.3) 86.834%
    ),
    linear-gradient(90deg, var(--blue), var(--blue));
  transform-origin: center;
  transition: transform 100ms ease-in-out;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background-image: linear-gradient(
      142.61deg,
      rgba(255, 255, 255, 0) 34.737%,
      rgba(255, 255, 255, 0.3) 86.834%
    ),
    linear-gradient(90deg, var(--red), var(--red));
  opacity: 0;
  transition: opacity 300ms ease-in-out;
}

.btn-primary > * {
  position: relative;
  z-index: 1;
}

.btn-primary__icon {
  width: 40px;
  height: 40px;
  overflow: clip;
  flex: 0 0 40px;
}

.btn-primary__icon img {
  width: 100%;
  height: 100%;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:active {
  transform: scale(1.05);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

.btn-primary--red {
  background-image: linear-gradient(
      142.61deg,
      rgba(255, 255, 255, 0) 34.737%,
      rgba(255, 255, 255, 0.3) 86.834%
    ),
    linear-gradient(90deg, var(--red), var(--red));
}

.btn-primary--red::before {
  background-image: linear-gradient(
      142.61deg,
      rgba(255, 255, 255, 0) 34.737%,
      rgba(255, 255, 255, 0.3) 86.834%
    ),
    linear-gradient(90deg, var(--blue), var(--blue));
}

.rating {
  width: 100%;
  background: var(--blue-gray);
  border-radius: 20px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rating p {
  font-size: 14px;
  line-height: 18px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 30px;
  border-radius: 100px;
  background: var(--white);
  color: var(--blue);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  width: 100%;
  transition: color 300ms ease-in-out, transform 100ms ease-in-out;
  transform-origin: center;
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--red);
}

.btn-secondary:active {
  transform: scale(1.05);
}

.btn-secondary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.footer {
  width: 100%;
  padding: 20px 16px;
  display: flex;
  justify-content: center;
}

.footer p {
  font-size: 14px;
  line-height: 18px;
  opacity: 0.5;
  text-align: center;
}

.letter {
  border: 0;
  padding: 16px;
  width: min(560px, calc(100% - 32px));
  max-width: calc(100% - 32px);
  margin: auto;
  background: transparent;
}

.letter::backdrop {
  background: rgba(15, 142, 255, 0.28);
}

.letter__card {
  width: min(560px, 100%);
  background: var(--white);
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: 0 16px 40px rgba(15, 142, 255, 0.18);
}

.letter__label {
  font-size: 14px;
  line-height: 18px;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 8px;
}

.letter__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  line-height: 28px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.letter__body {
  font-size: 16px;
  line-height: 22px;
  margin-bottom: 24px;
}

.btn-primary--dialog {
  height: 56px;
  font-size: 16px;
}

@media (min-width: 720px) {
  :root {
    --card-w: 400px;
    --card-h: 150px;
    --card-gap: 16px;
    --icon: 100px;
    --hero-radius: 40px;
    --intro-radius: 24px;
  }

  .hero {
    gap: 20px;
    padding: 40px;
  }

  .hero h1 {
    font-size: 84px;
    line-height: 88px;
  }

  .intro {
    padding: 24px;
  }

  .intro p {
    font-size: 20px;
    line-height: 26px;
  }

  .intro__pointer {
    width: 40px;
    height: 40px;
    left: -40px;
    top: 0;
  }

  .question {
    padding: 40px 0;
  }

  .question__bubble {
    width: 400px;
    border-radius: 24px;
    padding: 24px;
  }

  .question__bubble p {
    font-size: 20px;
    white-space: nowrap;
  }

  .question__tail {
    width: 80px;
    height: 40px;
    top: calc(100% - 1px);
  }

  .card {
    padding: 24px;
    border-radius: 24px;
  }

  .card__desc {
    font-size: 16px;
    line-height: 20px;
  }

  .carousel__fade {
    width: 160px;
  }

  .carousel__arrow {
    width: 48px;
    height: 48px;
  }

  .carousel__arrow img {
    width: 22px;
    height: 21px;
  }

  .carousel__arrow--prev {
    left: 40px;
  }

  .carousel__arrow--next {
    right: 40px;
  }

  .cta {
    padding: 40px;
  }

  .btn-primary {
    height: 90px;
    font-size: 24px;
    letter-spacing: 0.24px;
  }

  .btn-primary__icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .rating {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 30px 40px;
    border-radius: 30px;
  }

  .rating p {
    flex: 1;
    font-size: 16px;
    line-height: 20px;
  }

  .btn-secondary {
    width: auto;
    flex: 0 0 auto;
  }

  .footer {
    padding: 40px 0;
  }

  .footer p {
    font-size: 16px;
    line-height: 20px;
  }
}

@media (min-width: 1200px) {
  .page {
    display: flex;
    flex-direction: column;
    justify-content: safe center;
  }

  .shell {
    max-width: 1200px;
    padding: 40px 0;
  }

  .hero {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    border-radius: var(--hero-radius);
    min-height: 301px;
  }

  .hero__col {
    flex: 1;
    min-width: 0;
    justify-content: flex-end;
    height: 100%;
  }

  .intro {
    width: 400px;
    flex: 0 0 400px;
    align-self: stretch;
    display: flex;
    align-items: flex-start;
  }

  .intro__pointer {
    left: -40px;
    top: 0;
  }

  .carousel__fade {
    width: 400px;
  }

  .carousel__arrow--prev {
    left: 4px;
  }

  .carousel__arrow--next {
    right: 4px;
  }

  .cta {
    padding: 40px 0;
  }

  .btn-primary {
    width: 800px;
  }

  .rating {
    width: 800px;
    padding: 30px;
  }

  .btn-secondary {
    width: 370px;
  }
}

.hero--letter h1 {
  font-size: 32px;
  line-height: 36px;
}

.hero__art {
  display: none;
}

.sheet {
  position: relative;
  z-index: 2;
  width: 100%;
  background: var(--white);
  border-radius: 0 var(--intro-radius) var(--intro-radius) var(--intro-radius);
}

.sheet__pointer {
  position: absolute;
  left: -16px;
  top: 0;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.sheet__mark {
  position: absolute;
  top: 2px;
  right: 20px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 1;
}

.sheet__mark img {
  width: 34px;
  height: 34px;
  max-width: none;
  transform: rotate(63.06deg);
}

.sheet__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}

.sheet__hello {
  width: 127px;
  height: 43px;
  max-width: none;
}

.sheet__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sheet__text p,
.highlight p {
  font-size: 16px;
  line-height: 20px;
}

.sheet__cta {
  font-weight: 700;
}

.highlight {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  background: var(--blue-gray);
  border-radius: var(--intro-radius);
}

@media (min-width: 720px) {
  .hero--letter h1 {
    font-size: 44px;
    line-height: 48px;
  }

  .sheet__pointer {
    left: -40px;
    top: 0;
    width: 40px;
    height: 40px;
  }

  .sheet__mark {
    top: 12px;
    right: 8px;
  }

  .sheet__body {
    gap: 24px;
    padding: 24px;
  }

  .sheet__text {
    gap: 26px;
  }

  .sheet__text p,
  .highlight p {
    font-size: 20px;
    line-height: 26px;
  }

  .highlight {
    gap: 24px;
    padding: 24px;
  }
}

@media (min-width: 1200px) {
  .page--letter .shell {
    padding-bottom: 0;
  }

  .hero--letter {
    align-items: stretch;
    min-height: 0;
  }

  .hero--letter .hero__col {
    flex: 0 0 420px;
    width: 420px;
    justify-content: flex-start;
  }

  .hero--letter h1 {
    font-size: 32px;
    line-height: 36px;
  }

  .hero__art {
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 1;
    width: 460px;
    height: 460px;
    max-width: none;
    object-fit: contain;
    pointer-events: none;
  }

  .sheet {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    align-self: stretch;
  }

  .sheet__mark {
    top: 19px;
    right: 40px;
  }

  .sheet__body {
    padding: 48px;
  }

  .highlight {
    padding: 48px;
  }

  .page--letter .btn-primary {
    width: 100%;
  }
}

.page--landing.is-exit {
  animation: view-out 450ms ease-in-out forwards;
}

.page--landing .hero,
.page--landing .question,
.page--landing .carousel,
.page--landing .cta,
.page--landing .rating,
.page--landing .footer {
  animation: appear 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page--landing .hero {
  animation-delay: 0ms;
}

.page--landing .question {
  animation-delay: 90ms;
}

.page--landing .carousel {
  animation-delay: 180ms;
}

.page--landing .cta {
  animation-delay: 270ms;
}

.page--landing .rating {
  animation-delay: 360ms;
}

.page--landing .footer {
  animation-delay: 450ms;
}

body.is-letter-page .page--letter {
  animation: view-fade-in 500ms ease-in-out both;
}

body.is-letter-page .sheet {
  animation: sheet-in 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.is-letter-page .hero__art {
  animation: art-in 800ms ease-out 120ms both;
}

@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes view-out {
  to {
    opacity: 0;
    transform: translateY(-20px) scale(0.985);
  }
}

@keyframes view-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(36px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes art-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page--landing.is-exit,
  .page--landing .hero,
  .page--landing .question,
  .page--landing .carousel,
  .page--landing .cta,
  .page--landing .rating,
  .page--landing .footer,
  body.is-letter-page .page--letter,
  body.is-letter-page .sheet,
  body.is-letter-page .hero__art {
    animation: none;
  }
}
