:root {
  --ink: #211a36;
  --ink-soft: #3d3550;
  --muted: #706a7f;
  --purple: #7c3aed;
  --purple-dark: #5b21b6;
  --lavender: #f5f1ff;
  --lavender-strong: #e9ddff;
  --mint: #54cfa8;
  --coral: #ff756c;
  --sky: #dff2ff;
  --line: #ded8eb;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(124, 58, 237, 0.12);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--purple-dark);
  font-size: 20px;
  font-weight: 850;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

nav {
  display: flex;
  gap: 30px;
}

nav a,
.footer-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 680;
  text-decoration: none;
}

nav a:hover,
.footer-links a:hover,
.text-action:hover {
  color: var(--purple);
}

.header-action {
  justify-self: end;
  padding: 10px 16px;
  border: 1px solid var(--purple);
  border-radius: 6px;
  color: var(--purple);
  font-size: 14px;
  font-weight: 780;
  text-decoration: none;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(620px, calc(100svh - 112px), 740px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--lavender);
}

.hero-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: linear-gradient(
    90deg,
    rgba(251, 250, 255, 0.99) 0%,
    rgba(249, 247, 255, 0.96) 30%,
    rgba(249, 247, 255, 0.78) 43%,
    rgba(249, 247, 255, 0.16) 63%,
    rgba(249, 247, 255, 0.02) 100%
  );
  pointer-events: none;
}

.hero::after {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 110px;
  content: "";
  background: linear-gradient(0deg, rgba(33, 26, 54, 0.12), transparent);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(580px, 47vw);
  margin-left: 7vw;
  padding: 42px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(60px, 7vw, 96px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-statement {
  max-width: 520px;
  margin-bottom: 16px;
  color: var(--purple-dark);
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.12;
}

.hero-description {
  max-width: 520px;
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.primary-action {
  color: var(--white);
  background: var(--purple);
  box-shadow: 0 10px 24px rgba(91, 33, 182, 0.2);
}

.secondary-action {
  border: 1px solid var(--purple);
  color: var(--purple);
}

.text-action {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 780;
  text-decoration: none;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 28px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}

.hero-points li::before {
  margin-right: 7px;
  color: var(--mint);
  content: "\2713";
  font-weight: 900;
}

.product-story {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 7vw;
  align-items: center;
  padding: 104px 9vw;
  overflow: hidden;
  background: #fbfaff;
}

.product-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.study-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 46px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.study-flow div {
  display: grid;
  min-height: 130px;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.study-flow span {
  color: var(--purple);
  font-size: 12px;
  font-weight: 850;
}

.study-flow strong {
  align-self: end;
  font-size: 18px;
}

.study-flow small {
  color: var(--muted);
  font-size: 13px;
}

.app-preview {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  margin: 0;
}

.phone-glow {
  position: absolute;
  z-index: -1;
  top: 12%;
  width: min(540px, 110%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lavender-strong), var(--sky));
  opacity: 0.85;
}

.app-preview img {
  width: min(345px, 82%);
  filter: drop-shadow(0 28px 30px rgba(45, 31, 82, 0.2));
}

.app-preview figcaption {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
  text-align: center;
}

.how {
  padding: 100px 8vw 110px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1.2fr);
  gap: 3vw 7vw;
  align-items: end;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin: 0;
}

.section-heading > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 64px;
  border-top: 1px solid var(--line);
}

.steps article {
  min-height: 250px;
  padding: 28px 32px 32px 0;
  border-right: 1px solid var(--line);
}

.steps article + article {
  padding-left: 32px;
}

.steps article:last-child {
  border-right: 0;
}

.step-number,
.feature-band article > span {
  display: block;
  margin-bottom: 64px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 850;
}

.steps h3,
.feature-band h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.steps p,
.feature-band p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.learning-loop {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
  gap: 8vw;
  align-items: center;
  padding: 100px 10vw;
  color: var(--white);
  background: var(--ink);
}

.learning-loop h2 {
  max-width: 760px;
}

.loop-copy > p:not(.eyebrow) {
  max-width: 720px;
  margin: 28px 0 0;
  color: #d8d2e4;
  font-size: 18px;
}

.check-list {
  display: grid;
  gap: 13px;
  margin: 32px 0 0;
  padding: 0;
  color: #eeeaf4;
  list-style: none;
}

.check-list li::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 10px;
  border: 1px solid var(--mint);
  border-radius: 50%;
  color: var(--mint);
  content: "\2713";
  font-size: 12px;
  font-weight: 900;
}

.learning-loop img {
  width: min(100%, 340px);
  justify-self: center;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 94px 8vw;
  background: var(--lavender);
}

.feature-band article {
  min-height: 240px;
  padding: 24px;
  border-top: 1px solid rgba(124, 58, 237, 0.22);
  border-right: 1px solid rgba(124, 58, 237, 0.22);
}

.feature-band article:last-child {
  border-right: 0;
}

.faq {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(420px, 1.25fr);
  gap: 8vw;
  padding: 110px 9vw;
}

.faq-heading {
  display: block;
  align-self: start;
  position: sticky;
  top: 116px;
}

.faq-heading .eyebrow {
  margin-bottom: 12px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 25px 44px 25px 0;
  cursor: pointer;
  font-size: 17px;
  font-weight: 780;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 24px;
  right: 4px;
  color: var(--purple);
  content: "+";
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "\2212";
}

.faq-list p {
  max-width: 700px;
  margin: -8px 44px 26px 0;
  color: var(--muted);
}

.download {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  margin: 0 5vw;
  padding: 58px 5vw;
  color: var(--white);
  background: var(--purple-dark);
}

.download > img {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

.download h2 {
  max-width: 740px;
  font-size: clamp(30px, 3.5vw, 48px);
}

.download p:not(.eyebrow) {
  margin: 12px 0 0;
  color: #e8ddff;
}

.download .eyebrow {
  color: #d8c5ff;
}

.store-badge {
  display: block;
  min-width: 172px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.2;
  text-decoration: none;
}

.store-badge strong {
  font-size: 17px;
}

.support {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
  align-items: center;
  padding: 96px 8vw;
}

.support p:not(.eyebrow) {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.support .secondary-action {
  justify-self: end;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 40px 5vw;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
}

footer > p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

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

.legal-content {
  width: min(760px, calc(100% - 40px));
  margin: 70px auto;
  padding: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.legal-content h1 {
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.05;
}

.legal-content h2 {
  margin-top: 38px;
  margin-bottom: 16px;
  font-size: 24px;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content a {
  color: var(--purple-dark);
  font-weight: 700;
}

.privacy-content {
  width: min(880px, calc(100% - 40px));
}

.privacy-content h1 {
  max-width: 720px;
}

.privacy-content h2 {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.privacy-content ul {
  display: grid;
  gap: 9px;
  padding-left: 22px;
}

.privacy-content li::marker {
  color: var(--purple);
}

.legal-meta {
  display: grid;
  gap: 6px;
  margin: 28px 0 46px;
  padding: 20px 22px;
  border-left: 4px solid var(--purple);
  background: var(--lavender);
}

.legal-meta p {
  margin: 0;
}

.legal-footer {
  background: var(--white);
}

.legal-footer .footer-links {
  grid-column: 1 / -1;
  justify-content: flex-start;
}

.legal-content .primary-action {
  margin-top: 22px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .hero-copy {
    width: min(520px, 56vw);
    margin-left: 5vw;
  }

  .product-story {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    padding-right: 6vw;
    padding-left: 6vw;
  }

  .feature-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-band article:nth-child(2) {
    border-right: 0;
  }

  .faq {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .faq-heading {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 64px;
    padding: 0 18px;
  }

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

  .header-action {
    padding: 8px 11px;
    font-size: 12px;
  }

  .hero {
    min-height: 650px;
    align-items: flex-start;
  }

  .hero-background {
    top: auto;
    bottom: 0;
    height: 300px;
    object-position: center;
  }

  .hero::before {
    background: linear-gradient(
      180deg,
      rgba(249, 247, 255, 1) 0%,
      rgba(249, 247, 255, 1) 49%,
      rgba(249, 247, 255, 0.82) 60%,
      rgba(249, 247, 255, 0.08) 82%
    );
  }

  .hero-copy {
    width: calc(100% - 40px);
    margin: 0 20px;
    padding-top: 30px;
    text-align: center;
  }

  h1 {
    font-size: 54px;
  }

  .hero-statement {
    margin-right: auto;
    margin-left: auto;
    font-size: 25px;
  }

  .hero-description {
    max-width: 420px;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 20px;
    font-size: 15px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero .primary-action {
    min-height: 44px;
    padding: 0 16px;
    font-size: 13px;
  }

  .hero-points {
    display: none;
  }

  .product-story,
  .learning-loop,
  .support {
    grid-template-columns: 1fr;
  }

  .product-story {
    gap: 62px;
    padding: 76px 24px;
  }

  .product-copy > p:not(.eyebrow),
  .loop-copy > p:not(.eyebrow) {
    font-size: 16px;
  }

  .study-flow div {
    min-height: 116px;
    padding: 16px;
  }

  .how {
    padding: 76px 24px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-heading > p:not(.eyebrow) {
    font-size: 16px;
  }

  .steps {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .steps article,
  .steps article + article {
    min-height: 0;
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step-number,
  .feature-band article > span {
    margin-bottom: 28px;
  }

  .learning-loop {
    padding: 76px 24px;
  }

  .learning-loop img {
    width: 190px;
  }

  .feature-band {
    grid-template-columns: 1fr;
    padding: 60px 24px;
  }

  .feature-band article,
  .feature-band article:nth-child(2) {
    min-height: 0;
    padding: 25px 0;
    border-right: 0;
  }

  .faq {
    padding: 76px 24px;
  }

  .download {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 22px;
    margin: 0;
    padding: 54px 24px;
  }

  .download > img {
    width: 72px;
    height: 72px;
  }

  .support {
    gap: 28px;
    padding: 76px 24px;
  }

  .support .secondary-action {
    justify-self: stretch;
  }

  footer {
    grid-template-columns: 1fr;
    padding: 36px 24px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .legal-content {
    margin: 28px auto;
    padding: 28px 22px;
  }
}

@media (max-width: 390px) {
  .hero {
    min-height: 670px;
  }

  .hero-actions {
    gap: 12px;
  }

  .text-action {
    width: 100%;
  }

  .study-flow {
    grid-template-columns: 1fr;
  }
}

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