/* LoopedEd landing page. Static rebuild of the former Divi site. */

:root {
  --ink: #283044;
  --heading: #535b7c;
  --muted: #959baf;
  --body: #666;
  --dark: #333;
  --peach: #ffcab1;
  --peach-hover: #ffb898;
  --mist: #f8fbfe;
  --green: #03d875;
  --green-dark: #217f34;
  --font-head: "Nunito Sans", Helvetica, Arial, sans-serif;
  --font-nav: "Inter", Helvetica, Arial, sans-serif;
  --font-btn: "Lexend", Helvetica, Arial, sans-serif;
  --font-body: "Open Sans", Arial, sans-serif;
  --header-h: 108px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.wrap {
  width: 80%;
  max-width: 1080px;
  margin-inline: auto;
}

.wrap--wide {
  width: 90%;
  max-width: 1920px;
}

.wrap--narrow {
  max-width: 800px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
}

.skip-link:focus {
  top: 12px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 36px;
  border: 0;
  border-radius: 50px;
  background: var(--peach);
  color: #000;
  font: 700 13px/1.7 var(--font-btn);
  letter-spacing: 1.3px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background: var(--peach-hover);
}

.btn svg {
  width: 15px;
  height: 15px;
}

.btn--header {
  padding: 12px 20px;
  color: var(--ink);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--mist);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: var(--header-h);
  padding: 16px 0;
}

.brand img {
  width: 63px;
  height: 63px;
}

.site-nav {
  display: flex;
  gap: 22px;
  margin-right: auto;
}

.site-nav a {
  padding: 10px 0;
  color: var(--ink);
  font: 500 16px/1 var(--font-nav);
  text-decoration: none;
}

.site-nav a:hover {
  opacity: 0.7;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* Hero */

.hero {
  padding: 2.7% 0 4%;
  background: linear-gradient(rgba(151, 211, 129, 0.18), rgba(86, 183, 70, 0.38)) #fff;
  box-shadow: inset 0 -200px 0 0 var(--mist);
}

.hero-row {
  padding: 26px 0;
}

.hero h1 {
  max-width: 700px;
  margin-inline: auto;
  padding-bottom: 10px;
  color: var(--dark);
  font: 700 45px/1.3 var(--font-head);
  text-align: center;
}

.hero-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5.5%;
}

.hero-intro p {
  flex: 0 1 47.25%;
  color: #000;
  font: 700 18px/1.8 var(--font-head);
  text-align: justify;
}

.ticker {
  container-type: inline-size;
  overflow: hidden;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 22s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-track li {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 256px;
  width: 25cqw;
  height: 66px;
  padding: 0 12px;
  border-block: 1px solid #4d4d4d;
  border-left: 1px solid #4d4d4d;
  color: #000;
  font: 500 14px/1.3 "Montserrat", Helvetica, Arial, sans-serif;
  text-align: center;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

.hero-photo {
  width: 100%;
  border: 1px solid rgba(51, 51, 51, 0.1);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(34, 56, 101, 0.09);
}

/* Why WhatsApp */

.why {
  padding: 0 0 17px;
  background: var(--mist);
}

.section-head {
  max-width: 700px;
  margin-inline: auto;
  padding: 26px 0;
  text-align: center;
}

.section-head h2,
.copy h2 {
  padding-bottom: 10px;
  color: var(--heading);
  font: 700 35px/1.3 var(--font-head);
}

.section-head p {
  color: var(--muted);
  font: 500 18px/1.8 var(--font-head);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 0 3%;
  margin-top: 58px;
  padding: 26px 0;
}

.stat {
  padding: 60px 0;
  text-align: center;
}

.stat--card {
  min-height: 305px;
  padding: 54px 20px 60px;
  border-top: 6px solid var(--green-dark);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 18px -6px rgba(34, 56, 101, 0.12);
}

.stat svg {
  width: 34px;
  height: 34px;
  margin: 0 auto 28px;
  color: var(--heading);
}

.stat h3 {
  padding-bottom: 10px;
  color: var(--heading);
  font: 600 18px/1.4 var(--font-head);
}

.stat p {
  color: var(--muted);
  font: 500 16px/1.5 var(--font-head);
}

.typed {
  min-height: 106px;
  padding: 36px 0 10px;
  color: #000;
  font: 900 60px/1 var(--font-head);
  text-align: center;
  text-shadow: 0.08em 0.08em 0.08em rgba(0, 0, 0, 0.4);
}

.typed-cursor {
  font-weight: 400;
  animation: blink 0.9s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* How it works */

.how {
  padding: 2px 0 100px;
  background: #fff;
}

.split {
  display: grid;
  gap: 5.5%;
}

.split--broadcast {
  grid-template-columns: 304px 1fr;
  align-items: start;
  padding-top: 19px;
}

.split--broadcast img {
  justify-self: end;
  width: 559px;
}

.split--chatbot {
  grid-template-columns: 1fr 1fr;
  align-items: start;
  margin-top: 84px;
  padding-bottom: 60px;
}

.split--chatbot img {
  width: 62%;
}

.copy ul {
  padding-left: 18px;
  list-style: disc;
}

.copy li {
  margin-bottom: 20px;
  color: var(--muted);
  font: 500 18px/26px var(--font-head);
}

.copy .btn {
  margin-top: 20px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px 3%;
  margin-top: 60px;
  padding-top: 27px;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  min-height: 200px;
  padding: 30px 20px 40px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 70px rgba(110, 130, 208, 0.18);
}

.feature-icon {
  display: grid;
  place-items: center;
  flex: 0 0 90px;
  height: 82px;
  color: var(--green);
}

.feature-icon svg {
  width: 36px;
  height: 36px;
}

.feature h3 {
  padding-bottom: 10px;
  color: var(--dark);
  font: 700 18px/1.7 "Roboto", Helvetica, Arial, sans-serif;
}

.feature p {
  font-size: 14px;
  line-height: 1.8;
}

/* Intro video */

.video-dialog {
  width: min(92vw, 960px);
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #000;
  overflow: visible;
}

.video-dialog::backdrop {
  background: rgba(11, 11, 11, 0.8);
}

.video-dialog video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: #000;
}

.dialog-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

/* Footer */

.site-footer {
  padding: 4% 0 5px;
  background: var(--peach);
  color: #000;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px 96px;
  padding: 26px 0;
}

.footer-brand img {
  width: 131px;
  height: 131px;
}

.site-footer h2 {
  padding-bottom: 10px;
  color: var(--ink);
  font: 500 22px/1.4 var(--font-btn);
}

.site-footer li a,
.site-footer li button {
  padding: 0;
  border: 0;
  background: none;
  color: #000;
  font: 500 16px/1.8 var(--font-nav);
  text-decoration: none;
  cursor: pointer;
}

.site-footer li a:hover,
.site-footer li button:hover {
  text-decoration: underline;
}

.copyright {
  padding: 0 0 26px;
  color: var(--ink);
  font: 500 16px/1.8 var(--font-nav);
  text-align: right;
}

/* Legal pages */

.legal {
  padding: 60px 0 90px;
}

.legal h1 {
  padding-bottom: 24px;
  color: var(--dark);
  font: 700 45px/1.3 var(--font-head);
}

.legal h3 {
  padding: 26px 0 8px;
  color: var(--heading);
  font: 700 22px/1.3 var(--font-head);
}

.legal h3 strong,
.legal h4 strong {
  font-weight: inherit;
}

.legal h4 {
  padding: 12px 0 6px;
  color: var(--heading);
  font: 700 17px/1.4 var(--font-head);
}

.legal p,
.legal li {
  color: #555;
  font-size: 16px;
  line-height: 1.7;
}

.legal p {
  margin-bottom: 12px;
}

.legal ul {
  margin-bottom: 12px;
  padding-left: 22px;
  list-style: disc;
}

.legal a {
  color: var(--green-dark);
}

/* Tablet and below */

@media (max-width: 980px) {
  :root {
    --header-h: 88px;
  }

  .wrap {
    width: 88%;
  }

  .header-row {
    gap: 14px;
    padding: 12px 0;
  }

  .nav-toggle {
    display: block;
    order: 3;
  }

  .btn--header {
    margin-left: auto;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    gap: 0;
    padding: 6px 6% 14px;
    border-top: 1px solid rgba(40, 48, 68, 0.1);
    background: var(--mist);
    box-shadow: 0 12px 18px -6px rgba(34, 56, 101, 0.12);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 16px 0;
  }

  .hero {
    padding-top: 12px;
    box-shadow: inset 0 -90px 0 0 var(--mist);
  }

  .hero-row {
    padding: 18px 0;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .hero-intro p {
    flex-basis: auto;
    text-align: left;
  }

  .ticker-track li {
    width: 50cqw;
  }

  .section-head h2,
  .copy h2 {
    font-size: 28px;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }

  .stat {
    padding: 34px 0;
  }

  .stat--card {
    min-height: 0;
    padding: 44px 20px;
  }

  .typed {
    min-height: 72px;
    padding-top: 24px;
    font-size: 38px;
  }

  .split--broadcast,
  .split--chatbot {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .split--broadcast img {
    justify-self: center;
    width: 100%;
    max-width: 559px;
  }

  .split--chatbot {
    margin-top: 64px;
    padding-bottom: 20px;
  }

  .split--chatbot img {
    width: 60%;
    max-width: 300px;
    margin-inline: auto;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 4%;
    margin-top: 40px;
  }

  .feature {
    min-height: 0;
  }

  .how {
    padding-bottom: 70px;
  }

  .site-footer {
    padding-top: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand img {
    width: 96px;
    height: 96px;
  }

  .copyright {
    text-align: left;
  }

  .legal {
    padding: 36px 0 60px;
  }

  .legal h1 {
    font-size: 32px;
  }
}

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

  .feature-icon {
    flex-basis: 64px;
  }

  .btn--header {
    padding: 10px 16px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ticker {
    overflow-x: auto;
  }

  .ticker-track,
  .typed-cursor {
    animation: none;
  }
}
