/* thewordsearch.app */

:root {
  --violet: #6541c1;
  --pink: #d43396;
  --brand: linear-gradient(to right, var(--violet), var(--pink));
  --brand-reverse: linear-gradient(to left, var(--violet), var(--pink));
  --ink: #222;
  --ink-soft: #333;
  --muted: #7a7a7a;
  --line: #e9e9ef;
  --shadow: 0 20px 50px rgb(221 221 221 / 0.7);
  --font-body: 'Open Sans', system-ui, sans-serif;
  --font-head: 'Raleway', system-ui, sans-serif;
  --header-h: 80px;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

p { margin: 0; color: var(--muted); }

.container {
  width: min(1140px, 100% - 32px);
  margin-inline: auto;
}

.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex: none;
}
.icon--brand { fill: url(#brand); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: #fff;
  color: var(--violet);
  font-weight: 600;
  border-radius: 4px;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 158px;
  min-height: 45px;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.btn--outline {
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
}
.btn--outline:hover { background: #fff; color: var(--violet); }

.btn--brand {
  border: 0;
  background: var(--brand);
  color: #fff;
}
.btn--brand:hover { background: var(--brand-reverse); }

/* ---------------------------------------------------------------- header */

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 100;
  color: #fff;
  transition: box-shadow 0.3s;
}
.site-header.is-sticky,
.legal .site-header.is-sticky {
  position: fixed;
  background: var(--brand);
  box-shadow: 0 4px 20px rgb(0 0 0 / 0.1);
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding-inline: 2%;
}
.site-header.is-sticky .site-header__row { min-height: 64px; }

.site-header__brand img { display: block; width: 250px; }
.site-header.is-sticky .site-header__brand img { width: 200px; }

.site-nav {
  display: flex;
  gap: 4px;
}
.site-nav a {
  position: relative;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  color: #fff;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: #eee;
  transform: translateX(-50%);
  transition: width 0.4s;
}
.site-nav a:hover::after,
.site-nav a[aria-current="true"]::after { width: 80%; }

.nav-toggle {
  display: none;
  padding: 8px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

@media (max-width: 991px) {
  .site-header { position: fixed; background: var(--brand); }
  .site-header__row { min-height: 56px; flex-wrap: wrap; }
  .site-header__brand img,
  .site-header.is-sticky .site-header__brand img { width: 150px; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    padding-bottom: 12px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 10px 4px; }
  .site-nav a::after { left: 4px; transform: none; }
  .site-nav a:hover::after,
  .site-nav a[aria-current="true"]::after { width: 40px; }
}

/* ---------------------------------------------------------------- sections */

.section { padding-block: 100px; }

.section--brand {
  background: var(--brand);
  color: #fff;
}
.section--brand p { color: #fff; }

.section-heading {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-bottom: 78px;
  text-align: center;
}
.section-heading h2 {
  font-size: 40px;
  font-weight: 600;
  text-transform: uppercase;
}
.section-heading .icon {
  width: 32px;
  height: 32px;
  fill: url(#brand);
}
/* the lines either side of the heading icon */
.section-heading::after {
  content: "";
  grid-row: 2;
  grid-column: 1;
  width: 240px;
  height: 2px;
  margin-top: 15px;
  background:
    linear-gradient(to right, var(--violet), var(--pink)) left / 90px 2px no-repeat,
    linear-gradient(to right, var(--violet), var(--pink)) right / 90px 2px no-repeat;
}
.section-heading .icon { grid-row: 2; grid-column: 1; }

.section-heading--light h2 { color: #fff; }
.section-heading--light .icon { fill: #fff; }
.section-heading--light::after {
  background:
    linear-gradient(#fff, #fff) left / 90px 2px no-repeat,
    linear-gradient(#fff, #fff) right / 90px 2px no-repeat;
}

.lead {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.lead--dark { color: #000; }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 30% 20%, #e0159b, transparent 45%), #ba24d5;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 700px;
  padding-top: var(--header-h);
}

.hero__text { text-align: center; }
.hero__text h1 {
  font-size: 80px;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  color: #fff;
}
.hero__text p { margin-top: 12px; color: #fff; font-size: 16px; }
.hero__mobile-art { display: none; }

.hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 50px;
}

.hero__phone { width: 240px; margin-inline: auto; padding-bottom: 36px; }

@media (max-width: 767px) {
  .hero, .hero__grid { min-height: 0; }
  .hero__grid { grid-template-columns: 1fr; padding-block: 96px 40px; }
  .hero__text h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .hero__mobile-art { display: block; margin: 0 auto; width: 320px; }
  .hero__text p { display: none; }
  .hero__actions { margin-top: 20px; }
  .hero__actions .btn { flex: 1; min-width: 0; }
  .hero .hero__phone { display: none; }
}

/* ---------------------------------------------------------------- carousels */

.carousel {
  position: relative;
  display: grid;
}
.carousel > :not(.carousel__dots) {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s, visibility 0.8s;
}
.carousel > .is-active { opacity: 1; visibility: visible; }

.carousel__dots {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}
.carousel__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgb(255 255 255 / 0.7);
  cursor: pointer;
  transition: width 0.3s;
}
.carousel__dots button[aria-current="true"] { width: 20px; background: #fff; }

/* ---------------------------------------------------------------- about */

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.about-card {
  padding: 40px 25px;
  text-align: center;
  transition: box-shadow 0.3s;
}
.about-card:hover,
.about-card--raised { box-shadow: var(--shadow); }
.about-card img { width: 128px; margin-bottom: 25px; }
.about-card h3 { margin-bottom: 15px; font-size: 22px; font-weight: 600; color: var(--ink-soft); }

@media (max-width: 767px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- features */

.features {
  display: grid;
  grid-template-columns: 1fr 290px 1fr;
  align-items: center;
  gap: 40px;
}
.features__list {
  display: grid;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 15px;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: right;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s;
}
.features__list--right .feature { text-align: left; }
.feature strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
}
.feature span { flex: 1; font-size: 16px; }

.feature__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.42);
  box-shadow: 0 10px 10px rgb(0 0 0 / 0.3);
  font-size: 30px;
}
.feature__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px dashed #fff;
  border-radius: 50%;
  opacity: 0;
}
.feature.is-active {
  background: rgb(255 255 255 / 0.1);
  box-shadow: 0 0 17px 6px rgb(0 0 0 / 0.15);
}
.feature.is-active .feature__icon::after {
  opacity: 1;
  animation: spin 8s linear infinite;
}
/* connector from the active feature to the phone */
.feature.is-active::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40px;
  height: 2px;
  background: #fff;
}
.features__list--left .feature.is-active::after { left: 100%; }
.features__list--right .feature.is-active::after { right: 100%; }

@keyframes spin { to { transform: rotate(360deg); } }

.features__phone { width: 290px; }

@media (max-width: 991px) {
  .features { grid-template-columns: 1fr; }
  .features__phone { order: -1; width: 240px; margin-inline: auto; }
  .feature, .features__list--right .feature { text-align: left; }
  .features__list--left .feature { flex-direction: row-reverse; }
  .feature.is-active::after { display: none; }
}

/* ---------------------------------------------------------------- showcase */

.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 30px;
}
.showcase + .showcase { margin-top: 48px; }

.showcase--flip img { order: 2; }
.showcase--flip .showcase__text { text-align: right; }
.showcase--flip .showcase__points li { flex-direction: row-reverse; }

.showcase__text h3 { font-size: 26px; font-weight: 600; color: var(--ink-soft); }
.showcase__text > p { margin-top: 30px; }
.showcase__text .btn { margin-top: 26px; }

.showcase__points {
  display: grid;
  gap: 24px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}
.showcase__points li { display: flex; align-items: flex-start; gap: 16px; }
.showcase__points .icon { width: 30px; height: 30px; }

@media (max-width: 991px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase--flip img { order: 0; }
  .showcase--flip .showcase__text { text-align: left; }
  .showcase--flip .showcase__points li { flex-direction: row; }
}

/* ---------------------------------------------------------------- video */

.video-band {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 400px;
  background: url(/img/video-bg.webp) center / cover;
}
.video-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand);
  opacity: 0.9;
}
.video-band__play {
  position: relative;
  display: grid;
  place-items: center;
  width: 75px;
  height: 75px;
  padding: 0 0 0 5px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.video-band__play:hover { background: #fff; color: #000428; }

.video-dialog {
  width: min(960px, 100% - 32px);
  padding: 0;
  border: 0;
  background: #000;
  overflow: visible;
}
.video-dialog::backdrop { background: rgb(0 0 0 / 0.85); }
.video-dialog__frame { aspect-ratio: 16 / 9; }
.video-dialog__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-dialog__close {
  position: absolute;
  right: 0;
  bottom: 100%;
  padding: 8px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

/* ---------------------------------------------------------------- screenshots */

.coverflow {
  position: relative;
  height: 440px;
  perspective: 1200px;
  outline-offset: 8px;
}
.coverflow img {
  position: absolute;
  left: 50%;
  top: 20px;
  width: 200px;
  margin-left: -100px;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.18);
  -webkit-box-reflect: below 2px linear-gradient(transparent 80%, rgb(255 255 255 / 0.25));
  cursor: pointer;
  transition: transform 0.6s, opacity 0.6s, filter 0.6s;
  user-select: none;
  -webkit-user-drag: none;
}

.coverflow-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.coverflow-nav button,
.testimonials__people [data-prev],
.testimonials__people [data-next] {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #a3a3c2;
  font-size: 26px;
  cursor: pointer;
}
.coverflow-nav button:hover { color: var(--violet); }

@media (max-width: 575px) {
  .coverflow { height: 360px; }
  .coverflow img { width: 160px; margin-left: -80px; }
}

/* ---------------------------------------------------------------- download */

.stores {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px 30px;
  margin: 43px 0 0;
  padding: 0;
  list-style: none;
}
.stores a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 170px;
  height: 70px;
  padding: 0 14px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-size: 17px;
  text-decoration: none;
  line-height: 1.25;
}
.stores a:hover { background: var(--brand-reverse); }
.stores .icon { font-size: 24px; }
.stores small { display: block; font-size: 13px; }

/* ---------------------------------------------------------------- statistics */

.stats {
  display: flex;
  justify-content: center;
  gap: 160px;
  margin: 50px 0 0;
  text-align: center;
}
.stats dt {
  display: grid;
  justify-items: center;
  gap: 24px;
  font-family: var(--font-head);
  font-size: 22px;
}
.stats dt .icon {
  box-sizing: content-box;
  width: 52px;
  height: 52px;
  padding: 24px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  box-shadow: 0 10px 10px rgb(0 0 0 / 0.3);
  transition: box-shadow 0.3s;
}
.stats dt .icon:hover { box-shadow: 0 20px 20px rgb(0 0 0 / 0.22); }
.stats dd { margin: 0; font-family: var(--font-head); font-size: 28px; }

@media (max-width: 575px) {
  .stats { gap: 48px; }
}

/* ---------------------------------------------------------------- faq */

.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 30px;
}
.faq__art { width: 460px; margin-inline: auto; }

.faq__list { display: grid; gap: 22px; }
.faq details {
  border: 2px solid #fff;
  background: var(--brand);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { font-size: 16px; transition: transform 0.3s; }
.faq details[open] summary { border-bottom: 2px solid #fff; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 20px 20px 20px; font-size: 18px; }

@media (max-width: 991px) {
  .faq { grid-template-columns: 1fr; }
  .faq__art { display: none; }
}

/* ---------------------------------------------------------------- testimonials */

.testimonials {
  display: grid;
  justify-items: center;
  max-width: 950px;
  margin-inline: auto;
  text-align: center;
}
.testimonials__quote { width: 48px; height: 48px; fill: #ccc; margin-bottom: 30px; }
.testimonials blockquote { margin: 0; }
.testimonials blockquote p { font-size: 20px; color: var(--ink); }
.testimonials blockquote footer { display: grid; gap: 4px; margin-top: 14px; }
.testimonials cite { font-family: var(--font-head); font-style: normal; font-size: 22px; color: var(--ink-soft); }
.stars::before { content: "★★★★★"; color: #f7b80a; letter-spacing: 3px; font-size: 18px; }

.testimonials__people {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
}
.testimonials__people [data-slide] {
  padding: 0;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.15);
  cursor: pointer;
  opacity: 0.85;
  transition: transform 0.3s, opacity 0.3s;
}
.testimonials__people [data-slide] img { display: block; width: 72px; border-radius: 50%; }
.testimonials__people [data-slide].is-active { transform: scale(1.25); opacity: 1; margin-inline: 10px; }

@media (max-width: 575px) {
  .testimonials__people { gap: 8px; }
  .testimonials__people [data-slide] img { width: 52px; }
}

/* ---------------------------------------------------------------- contact */

.contact-email {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 54px;
}
.contact-email a { color: #fff; font-weight: 600; text-decoration: none; }
.contact-email__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 22px;
}

.contact-form {
  display: grid;
  gap: 30px;
  max-width: 540px;
  margin-inline: auto;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 15px;
  border: 2px solid #fff;
  border-radius: 4px;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 18px;
}
.contact-form textarea { resize: vertical; font-size: 16px; }
.contact-form ::placeholder { color: #fff; opacity: 1; }
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid rgb(255 255 255 / 0.5); outline-offset: 2px; }
.contact-form .btn { justify-self: start; }
.contact-form .btn:disabled { opacity: 0.6; cursor: progress; }
.contact-form__status:empty { display: none; }
.contact-form__status { margin-top: -10px; font-weight: 600; }

/* ---------------------------------------------------------------- footer */

.site-footer {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 70px 16px;
  text-align: center;
}
.site-footer__logo { width: 196px; }
.site-footer__social {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 3px;
  background: #3b5998;
  color: #fff;
  transition: background 0.5s;
}
.site-footer__social:hover { background: indigo; }
.site-footer__links { display: flex; }
.site-footer__links a {
  padding: 0 7.5px;
  color: #2a2a2a;
  text-decoration: none;
}
.site-footer__links a + a { border-left: 2px solid #2a2a2a; }
.site-footer__links a:hover { color: indigo; }
.site-footer__copy a { text-decoration: none; color: var(--ink); }

/* ---------------------------------------------------------------- legal pages */

.page-head {
  padding: 170px 0 110px;
  background: var(--brand);
  color: #fff;
}
.page-head h1 {
  font-size: 54px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
}
.breadcrumb { margin-top: 18px; font-weight: 600; }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb span { opacity: 0.8; }

.prose { max-width: 1080px; margin-inline: auto; }
.prose h2 { font-size: 34px; margin-bottom: 20px; }
.prose h3 { margin: 30px 0 14px; font-size: 22px; }
.prose p { line-height: 1.6; margin-top: 14px; }
.prose ul { margin: 14px 0 0; padding-left: 48px; color: var(--muted); line-height: 1.6; list-style: circle; }
.prose ul ul { list-style: square; }
.prose li { margin-top: 8px; }
.prose a:not(.btn) { color: var(--violet); overflow-wrap: anywhere; }

@media (max-width: 767px) {
  .section { padding-block: 72px; }
  .section-heading { margin-bottom: 54px; }
  .section-heading h2 { font-size: 32px; }
  .page-head { padding: 120px 0 64px; }
  .page-head h1 { font-size: 36px; }
  .prose ul { padding-left: 24px; }
}
