:root {
  --ink: #201244;
  --muted: #5f5c68;
  --aqua: #76d5d0;
  --paper: #f6f7fb;
  --line: #dadce3;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--ink);
  font-family: "Instrument Sans", "Avenir Next", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.shell { width: min(1100px, calc(100% - 48px)); margin-inline: auto; }

.hero {
  min-height: 540px;
  color: #fff;
  background: var(--ink);
}

.nav {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img { width: 112px; height: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 42px;
  color: rgba(255,255,255,.72);
  font-size: 15px;
}

.nav-links > a:not(.app-store) { transition: color .2s ease; }
.nav-links > a:not(.app-store):hover { color: #fff; }
.app-store {
  display: block;
  width: 170px;
  height: 50px;
}
.app-store img { width: 100%; height: 100%; }

.menu-button {
  display: none;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-button span { display: block; width: 25px; height: 2px; margin: 5px; background: #fff; }

.hero-copy {
  min-height: 460px;
  padding: 68px 0 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 23px; font-size: 56px; line-height: 1.04; }
.hero-copy > p { margin-bottom: 24px; font-size: 21px; line-height: 1.5; }

.button {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--aqua);
  color: #151225;
  font-weight: 500;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  transition: transform .2s ease, background .2s ease;
}
.button:hover { background: #8ce3df; transform: translateY(-2px); }

.content-card {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-radius: 30px;
  background: var(--paper);
}

.section { padding-block: 80px; }
.section-heading { text-align: center; }
h2 { font-size: clamp(34px, 3.1vw, 43px); line-height: 1.12; }
.section-heading h2 { margin-bottom: 22px; }
.section-heading p { margin-bottom: 5px; color: #45424f; font-size: 20px; line-height: 1.45; }

.pain { padding-top: 106px; text-align: center; }
.pain-art { width: min(630px, 78vw); aspect-ratio: 630 / 435; margin: 55px auto 0; }

.how { padding-top: 80px; text-align: center; }
.how-art { width: min(650px, 72vw); aspect-ratio: 1; margin: 40px auto -160px; }
.lottie-animation svg { display: block; width: 100% !important; height: 100% !important; }

.toolbelt { padding-top: 65px; }
.toolbelt .section-heading { margin-bottom: 50px; }

.features {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 66px;
}

.feature-visual { min-width: 0; }
.feature-visual img { width: 100%; transition: opacity .18s ease, transform .3s ease; }
.feature-visual img.is-changing { opacity: 0; transform: translateY(8px); }

.feature-tabs { min-width: 0; }
.feature-tab {
  width: 100%;
  padding: 23px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: #88858e;
  background: transparent;
  text-align: left;
  font-size: 21px;
  cursor: pointer;
  transition: color .2s ease;
}
.feature-tab:hover, .feature-tab.is-active { color: #17151c; }
.feature-tab.is-active { font-weight: 500; }
.feature-tab.is-active::after {
  content: "";
  display: block;
  width: calc(100% + 16px);
  height: 2px;
  margin: 22px 0 -25px -16px;
  background: #1d1925;
  transform: scaleX(0);
  transform-origin: left;
  animation: fill 6s linear forwards;
}

.feature-copy { display: none; padding: 24px 38px 28px 26px; color: #26232d; font-size: 17px; line-height: 1.42; }
.feature-copy.is-active { display: block; animation: fade .3s ease-out both; }

.faq { padding-top: 35px; padding-bottom: 52px; }
.faq > h2 { margin-bottom: 26px; text-align: center; }
.faq-list { width: min(760px, 100%); margin: 0 auto; }
.faq-item { border-bottom: 2px solid #e4e5e9; }
.faq-item button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 0;
  border: 0;
  color: #16131d;
  background: none;
  text-align: left;
  font-weight: 500;
  cursor: pointer;
}
.chevron { width: 9px; height: 9px; border-right: 2px solid #16131d; border-bottom: 2px solid #16131d; transform: rotate(45deg); transition: transform .25s ease; }
.faq-item.is-open .chevron { transform: rotate(225deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-answer > p { min-height: 0; overflow: hidden; margin: 0; color: var(--muted); line-height: 1.55; }
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-item.is-open .faq-answer > p { padding: 0 38px 22px 0; }

.footer {
  margin-top: -28px;
  padding-top: 28px;
  color: rgba(255,255,255,.34);
  background: var(--ink);
}
.footer-inner { padding-top: 64px; padding-bottom: 72px; }
.footer-top, .footer-bottom { display: flex; align-items: center; justify-content: space-between; }
.footer-top { padding-bottom: 55px; }
.socials { display: flex; align-items: center; gap: 22px; color: var(--aqua); font-weight: 700; font-size: 20px; }
.footer-bottom { padding-top: 26px; border-top: 2px solid rgba(255,255,255,.08); font-size: 14px; }
.footer-bottom p { margin: 0; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes fade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 820px) {
  .shell { width: min(100% - 32px, 680px); }
  .hero { min-height: 620px; }
  .nav { height: 72px; }
  .menu-button { display: block; }
  .nav-links {
    position: absolute;
    z-index: 10;
    top: 66px;
    left: 16px;
    right: 16px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    background: #2a1756;
    box-shadow: 0 20px 40px rgba(0,0,0,.25);
  }
  .nav-links.is-open { display: flex; }
  .nav-links > a { padding: 12px; }
  .app-store { margin: 12px; }
  .hero-copy { min-height: 548px; padding-top: 78px; }
  h1 { max-width: 600px; }
  .hero-copy > p { max-width: 520px; font-size: 18px; }
  .content-card { border-radius: 24px; }
  .section { padding-block: 65px; }
  .pain { padding-top: 78px; }
  .pain-art { margin-top: 45px; }
  .how-art { width: min(680px, 95vw); margin-bottom: -90px; }
  .section-heading p { font-size: 17px; }
  .features { min-height: 0; grid-template-columns: 1fr; gap: 24px; }
  .feature-visual img { width: min(520px, 82vw); margin-inline: auto; }
  .feature-tabs { width: min(620px, 100%); margin-inline: auto; }
  .faq { padding-top: 25px; }
  .footer-inner { padding-top: 48px; }
}

@media (max-width: 520px) {
  .brand img { width: 104px; }
  .hero { min-height: 620px; }
  .hero-copy { padding-top: 62px; }
  h1 { font-size: 56px; line-height: 1.02; }
  .hero-copy > p { max-width: 330px; }
  h2 { font-size: 34px; }
  .pain { padding-top: 68px; }
  .pain-art { width: 100%; margin-top: 35px; }
  .how-art { width: 115%; max-width: none; margin-left: -7.5%; margin-top: 24px; }
  .toolbelt .section-heading { margin-bottom: 25px; }
  .features { gap: 12px; }
  .feature-tab { font-size: 19px; }
  .feature-copy { padding-left: 12px; padding-right: 12px; font-size: 15px; }
  .faq-item button { padding: 20px 0; gap: 16px; }
  .footer-inner { padding-top: 40px; }
  .footer-top { padding-bottom: 35px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
