/* Landing page (/) */

.landing { min-height: 100vh; background-color: #fff; }

/* Entrance animations of the hero (framer-motion initial → animate) */
@keyframes enter-up { from { opacity: 0; transform: translateY(30px); } }
@keyframes enter-left { from { opacity: 0; transform: translateX(-30px); } }
@keyframes enter-right { from { opacity: 0; transform: translateX(30px); } }
.enter-up, .enter-left, .enter-right { animation: .8s var(--ease-out) var(--delay, 0s) both; }
.enter-up { animation-name: enter-up; }
.enter-left { animation-name: enter-left; }
.enter-right { animation-name: enter-right; }

/* ---------- Promo banner ---------- */

.promo { background-color: var(--blue); color: #fff; padding-block: .625rem; }

.promo__mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  line-height: 1rem;
  font-weight: 500;
  & span { transition: opacity .4s ease-out, transform .4s ease-out; } /* framer-motion default tween */
  & span.is-hidden { opacity: 0; transform: translateY(-10px); }
  & span.is-entering { opacity: 0; transform: translateY(10px); transition: none; }
}
.promo__desktop {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: .875rem;
  line-height: 1.25rem;
  font-weight: 500;
  .sep { opacity: .4; }
}
@media (width >= 48rem) {
  .promo__mobile { display: none; }
  .promo__desktop { display: flex; }
}

/* ---------- Buttons ---------- */

.btn-try {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  background-color: var(--blue);
  color: #fff;
  font-weight: 600;
  border-radius: .5rem;
  transition: background-color .15s var(--ease);
  .icon { width: 1rem; height: 1rem; fill: #fff; }
}
@media (hover: hover) { .btn-try:hover { background-color: var(--blue-hover); } }

/* ---------- Hero ---------- */

/* clip: the entrance slide (translateX 30px) made phones scroll sideways for a moment (React did too) */
.hero { background-color: #fff; padding-block: 3rem; overflow-x: clip; }
.hero > .container { padding-inline: 1.25rem; }
@media (width >= 48rem) {
  .hero { padding-block: 5rem; }
  .hero > .container { padding-inline: 1.5rem; }
}
@media (width >= 64rem) {
  .hero { padding-block: 6rem; }
  .hero > .container { padding-inline: 1rem; }
}

.hero__inner { max-width: 72rem; margin-inline: auto; }

.hero h1 {
  margin-bottom: 2rem;
  font-size: 1.875rem;
  line-height: 1.25;
  font-weight: 700;
  text-align: center;
  & span { color: var(--blue); }
}
@media (width >= 48rem) { .hero h1 { font-size: 3rem; } }
@media (width >= 64rem) { .hero h1 { font-size: 3.75rem; margin-bottom: 1.5rem; text-align: left; } }

.hero__grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (width >= 64rem) {
  .hero__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
}

.hero__copy { order: 2; }
.hero__media { position: relative; order: 1; }
@media (width >= 64rem) {
  .hero__copy { order: 1; }
  .hero__media { order: 2; }
}

.hero__lead {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--gray-600);
  & span { color: var(--blue); }
}
@media (width >= 48rem) { .hero__lead { font-size: 1.125rem; line-height: 1.75rem; } }

.hero__badges {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.hero__badge {
  padding: .375rem .75rem;
  border: 1px solid;
  border-radius: .5rem;
  font-size: .75rem;
  line-height: 1rem;
  font-weight: 600;
}
@media (width >= 40rem) {
  .hero__badges { gap: .75rem; }
  .hero__badge { padding: .5rem 1rem; font-size: .875rem; line-height: 1.25rem; }
}
.hero__badge--orange { background-color: var(--orange-50); border-color: var(--orange-200); color: var(--orange-700); }
.hero__badge--blue { background-color: var(--blue-50); border-color: var(--blue-200); color: var(--blue-700); }
.hero__badge--green { background-color: var(--green-50); border-color: var(--green-200); color: var(--green-700); }

.hero__text { margin-bottom: 2rem; color: var(--gray-700); }

.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  & a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 1rem 2rem;
    border-radius: .75rem;
    transition: all .15s var(--ease);
    &:active { scale: .95; }
  }
}
@media (width >= 40rem) { .hero__ctas { flex-direction: row; } }

.hero__cta-primary { gap: .5rem; color: #fff; font-weight: 700; }
.hero__cta-google {
  gap: .75rem;
  background-color: #fff;
  border: 2px solid var(--gray-300);
  color: var(--gray-700);
  font-weight: 600;
  & svg { width: 1.25rem; height: 1.25rem; }
}
@media (hover: hover) {
  .hero__cta-primary:hover { box-shadow: var(--shadow-2xl); scale: 1.05; }
  .hero__cta-google:hover { border-color: var(--blue); background-color: var(--blue-50); }
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  font-size: .875rem;
  line-height: 1.25rem;
  & p, & span { color: var(--gray-600); }
  & strong { color: var(--gray-900); }
}
.hero__fact-inline { display: flex; align-items: center; gap: .5rem; }

.hero__video {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  & video { width: 100%; height: auto; border-radius: 1rem; }
}

.hero__blob {
  position: absolute;
  border-radius: 9999px;
  opacity: .2;
  filter: blur(24px);
}
.hero__blob--blue {
  top: -1rem;
  right: -1rem;
  width: 5rem;
  height: 5rem;
  background-color: var(--blue-400);
  animation: blob-blue 3s ease-in-out infinite;
}
.hero__blob--cyan {
  bottom: -1rem;
  left: -1rem;
  width: 6rem;
  height: 6rem;
  background-color: var(--cyan-400);
  animation: blob-cyan 4s ease-in-out infinite;
}
@keyframes blob-blue { 50% { transform: scale(1.2); opacity: .3; } }
@keyframes blob-cyan { 50% { transform: scale(1.3); opacity: .25; } }

/* ---------- Platforms ---------- */

.platforms {
  margin-top: 5rem;
  text-align: center;
  & h2 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    color: var(--gray-800);
  }
  > p {
    max-width: 42rem;
    margin: 1.5rem auto 0;
    color: var(--gray-600);
  }
}

.platforms__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4rem;
}

.platform {
  cursor: pointer;
  filter: grayscale(100%);
  transition: all .3s var(--ease);
}
@media (hover: hover) { .platform:hover { filter: grayscale(0%); scale: 1.05; } }

.platform__logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  & span {
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 600;
    color: var(--gray-700);
  }
}
.platform__android { color: #3ddc84; }

/* ---------- Sections ---------- */

.section { padding-block: 5rem; }
.section--gray { background-color: var(--gray-50); }
.section--white { background-color: #fff; }

.section-head {
  max-width: 56rem;
  margin: 0 auto 4rem;
  text-align: center;
  & h2 {
    margin-bottom: 1rem;
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
  }
  & p {
    font-size: 1.125rem;
    line-height: 1.75rem;
    color: var(--gray-600);
  }
}

/* ---------- How it works ---------- */

.steps { max-width: 72rem; margin-inline: auto; }
.steps > * + * { margin-top: 5rem; }

.step {
  display: grid;
  gap: 3rem;
  align-items: center;
  & h3 {
    margin-bottom: 1rem;
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
  }
  > div > p { margin-bottom: 1.5rem; color: var(--gray-600); }
}
@media (width >= 48rem) {
  .step { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step--flip .step__copy { order: 2; }
  .step--flip .step__media { order: 1; }
}

.step__badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: .5rem 1rem;
  background-color: var(--blue-100);
  color: var(--blue-600);
  font-weight: 600;
  border-radius: 9999px;
}

.checklist {
  margin-bottom: 2rem;
  & li { display: flex; align-items: flex-start; gap: .75rem; }
  & li + li { margin-top: .75rem; }
  .icon { flex-shrink: 0; width: 1.25rem; height: 1.25rem; margin-top: .125rem; color: var(--green-500); }
  & span { color: var(--gray-700); }
}

.step__media {
  position: relative;
  & img, & video { width: 100%; border-radius: 1rem; box-shadow: var(--shadow-2xl); }
}

/* ---------- Integrations ---------- */

.usecase-wrap { max-width: 64rem; margin: 0 auto 4rem; }

.usecase {
  padding: 3rem;
  background-color: var(--gray-50);
  border: 1px solid var(--blue-100);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-lg);
  & h3 {
    margin-bottom: 1rem;
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
  }
  & p { margin-bottom: 1.5rem; color: var(--gray-600); }
}
.usecase__grid { display: grid; gap: 2rem; align-items: center; }
@media (width >= 48rem) { .usecase__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.usecase__logos { display: flex; align-items: center; justify-content: center; gap: 2rem; }
.usecase__tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6rem;
  height: 6rem;
  background-color: #fff;
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
}

.features {
  display: grid;
  gap: 2rem;
  max-width: 72rem;
  margin-inline: auto;
}
@media (width >= 48rem) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.feature {
  padding: 2rem;
  text-align: center;
  border: 2px solid var(--gray-200);
  border-radius: 1rem;
  cursor: pointer;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
  & h3 {
    margin-bottom: .75rem;
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 700;
  }
  & p { color: var(--gray-600); }
}
@media (hover: hover) { .feature:hover { border-color: var(--blue-300); box-shadow: var(--shadow-lg); } }

.feature__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 9999px;
  .icon { width: 2rem; height: 2rem; }
}
.feature__icon--blue { background-color: var(--blue-100); color: var(--blue-600); }
.feature__icon--green { background-color: var(--green-100); color: var(--green-600); }
.feature__icon--purple { background-color: var(--purple-100); color: var(--purple-600); }

/* ---------- Pricing ---------- */

.plans {
  display: grid;
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto 3rem;
}
@media (width >= 48rem) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.plan {
  padding: 2rem;
  background-color: #fff;
  border: 2px solid var(--gray-200);
  border-radius: 1rem;
  transition: all .15s var(--ease);
}
@media (hover: hover) { .plan:not(.plan--featured):hover { box-shadow: var(--shadow-xl); border-color: var(--blue); } }

.plan--featured {
  position: relative;
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
}
@media (width >= 48rem) { .plan--featured { scale: 1.05; } }

.plan__ribbon {
  position: absolute;
  top: -1rem;
  left: 50%;
  translate: -50% 0;
  > div {
    padding: .5rem 1.5rem;
    color: #fff;
    font-size: .875rem;
    line-height: 1.25rem;
    font-weight: 700;
    border-radius: 9999px;
    box-shadow: var(--shadow-lg);
  }
}

.plan__head {
  margin-bottom: 1.5rem;
  text-align: center;
  & h3 {
    margin-bottom: .5rem;
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    color: var(--gray-900);
  }
  & p { font-size: .875rem; line-height: 1.25rem; color: var(--gray-600); }
}

.plan__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .25rem;
  margin-bottom: .5rem;
}
.plan--featured .plan__price { margin-bottom: .25rem; }
.plan__amount {
  font-size: 3rem;
  line-height: 1;
  font-weight: 700;
  color: var(--gray-900);
}
.plan--featured .plan__amount { color: var(--blue); }
.plan__per { font-size: 1.125rem; line-height: 1.75rem; color: var(--gray-600); }
.plan__head .plan__save { margin-bottom: .25rem; font-weight: 600; color: var(--green-600); }

.plan__features {
  margin-bottom: 2rem;
  & li { display: flex; align-items: flex-start; gap: .75rem; }
  & li + li { margin-top: 1rem; }
  & span { font-size: .875rem; line-height: 1.25rem; color: var(--gray-700); }
}
.plan__tick {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: .125rem;
  background-color: var(--green-100);
  border-radius: 9999px;
  .icon { width: .75rem; height: .75rem; color: var(--green-600); }
}

.plan__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
  border-radius: .75rem;
  transition: all .15s var(--ease);
  &:active { scale: .95; }
}
.plan__cta--gray { background-color: var(--gray-100); color: var(--gray-900); border: 2px solid var(--gray-200); }
.plan__cta--blue { background-color: var(--blue); color: #fff; box-shadow: var(--shadow-lg); }
@media (hover: hover) {
  .plan__cta--gray:hover { background-color: var(--gray-200); }
  .plan__cta--blue:hover { background-color: var(--blue-hover); box-shadow: var(--shadow-xl); }
}

.trial {
  max-width: 48rem;
  margin-inline: auto;
  padding: 2rem;
  text-align: center;
  background-image: linear-gradient(to right in oklab, var(--orange-50), var(--yellow-50));
  border: 2px solid var(--orange-200);
  border-radius: 1rem;
  & h3 {
    margin-bottom: .75rem;
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    color: var(--gray-900);
  }
  & p { margin-bottom: 1.5rem; color: var(--gray-600); }
}
.trial__badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: .5rem 1rem;
  background-color: var(--orange-100);
  color: var(--orange-700);
  font-weight: 700;
  border-radius: 9999px;
}
.trial__cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 56px;
  padding: 1rem 2rem;
  background-color: var(--orange-500);
  color: #fff;
  font-weight: 700;
  border-radius: .75rem;
  box-shadow: var(--shadow-lg);
  transition: all .15s var(--ease);
  &:active { scale: .95; }
  .icon { width: 1.25rem; height: 1.25rem; fill: #fff; }
}
@media (hover: hover) { .trial__cta:hover { background-color: var(--orange-600); box-shadow: var(--shadow-xl); } }

/* ---------- FAQ ---------- */

.faq { max-width: 48rem; margin-inline: auto; }
.faq > * + * { margin-top: 1rem; }

.faq__item {
  border: 2px solid var(--gray-200);
  border-radius: .75rem;
  overflow: hidden;
  transition: border-color .15s var(--ease);
}
@media (hover: hover) { .faq__item:hover { border-color: var(--blue-300); } }

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 64px;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
  transition: all .15s var(--ease);
  &:active { scale: .99; }
  & span { padding-right: 1rem; }
  .icon { flex-shrink: 0; width: 1.5rem; height: 1.5rem; transition: rotate .15s var(--ease), transform .15s var(--ease); }
  &[aria-expanded="true"] .icon { rotate: 180deg; }
}
@media (width >= 48rem) { .faq__question { font-size: 1.125rem; line-height: 1.75rem; } }
@media (hover: hover) { .faq__question:hover { background-color: var(--gray-50); } }

.faq__answer {
  padding: 1.25rem 1.5rem;
  background-color: var(--gray-50);
  border-top: 2px solid var(--gray-200);
  & p { color: var(--gray-600); }
}
