:root {
  color-scheme: light;
  --ink: #211832;
  --muted: #6e617c;
  --purple: #8a20e8;
  --pink: #ec4ead;
  --lavender: #eee5ff;
  --mint: #d9f4ed;
  --sun: #ffc428;
  --paper: #fffafd;
  --line: rgba(45, 28, 75, 0.12);
  --shadow: 0 24px 60px rgba(48, 22, 85, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 70px);
  background: rgba(255, 250, 253, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(112, 58, 186, 0.22);
}

.brand strong,
footer strong {
  display: block;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a,
.button,
.metrics div,
.feature-grid article,
.asset-panel {
  border: 1px solid var(--line);
}

nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #4f405e;
  font-size: 14px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.58);
}

.hero {
  position: relative;
  min-height: 840px;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.72fr);
  align-items: center;
  gap: 32px;
  padding: 72px clamp(22px, 6vw, 88px) 76px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(110deg, rgba(246, 240, 255, 0.92), rgba(255, 241, 249, 0.86)),
    url("assets/google-play/feature_graphic_1024x500.jpg") center / cover;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -70px;
  z-index: -1;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: var(--sun);
}

.hero-inner {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--purple);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: 86px;
  line-height: 0.98;
  font-weight: 900;
}

h2 {
  margin-bottom: 16px;
  font-size: 48px;
  line-height: 1.04;
  font-weight: 900;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.1;
}

.hero-copy,
.showcase-copy p,
.asset-panel p,
.feature-grid p {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 900;
}

.button.primary {
  color: white;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  border-color: transparent;
  box-shadow: 0 14px 36px rgba(154, 37, 224, 0.28);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.68);
}

.hero-phone {
  justify-self: center;
  width: min(380px, 80vw);
  padding: 14px;
  border-radius: 42px;
  background: #211832;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-phone img,
.phone-row img {
  border-radius: 30px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 24px clamp(20px, 6vw, 88px) 74px;
  background: #fff;
}

.metrics div {
  padding: 22px;
  border-radius: 8px;
  background: #fff;
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  margin-bottom: 8px;
  font-size: 24px;
}

.metrics span {
  color: var(--muted);
  line-height: 1.4;
}

.feature-band,
.screens,
.asset-band,
.showcase {
  padding: 84px clamp(20px, 6vw, 88px);
}

.feature-band {
  background: linear-gradient(180deg, #fff, var(--mint));
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid article {
  min-height: 224px;
  padding: 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  font-weight: 900;
}

.showcase {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  align-items: center;
  gap: 46px;
  background: #25193b;
  color: #fff;
}

.showcase .eyebrow {
  color: #ffd857;
}

.showcase-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.phone-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: end;
}

.phone-row img {
  background: #14101f;
  padding: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.phone-row img:nth-child(2) {
  margin-top: 64px;
}

.screens {
  background: #fff;
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.screens-grid img {
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(54, 33, 82, 0.15);
}

.asset-band {
  background: linear-gradient(180deg, #fff7fb, #f1ecff);
}

.asset-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1fr);
  align-items: center;
  gap: 34px;
  padding: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.asset-panel img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 6vw, 88px);
  color: rgba(255, 255, 255, 0.74);
  background: #211832;
}

footer strong {
  color: #fff;
}

@media (max-width: 980px) {
  .hero,
  .showcase,
  .asset-panel {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 64px;
  }

  h2 {
    font-size: 40px;
  }

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

  .metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
    padding-bottom: 38px;
    gap: 28px;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-copy,
  .showcase-copy p,
  .asset-panel p,
  .feature-grid p {
    font-size: 17px;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .button {
    width: 100%;
  }

  .hero-phone {
    width: min(310px, 78vw);
    transform: rotate(1deg);
  }

  .phone-row,
  .feature-grid,
  .screens-grid {
    grid-template-columns: 1fr;
  }

  .phone-row img:nth-child(2) {
    margin-top: 0;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ---- Legal pages (Terms / Privacy) ---- */
.legal {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px clamp(20px, 6vw, 40px) 96px;
}

.legal h1 {
  font-size: 46px;
  margin-bottom: 8px;
}

.legal .updated {
  margin: 0 0 20px;
  color: var(--muted);
  font-weight: 700;
}

.legal .intro {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
  margin-bottom: 24px;
}

.legal h2 {
  font-size: 26px;
  line-height: 1.2;
  margin: 40px 0 12px;
}

.legal h3 {
  font-size: 18px;
  margin: 24px 0 8px;
}

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

.legal ul {
  padding-left: 22px;
  margin: 0 0 14px;
}

.legal li {
  margin-bottom: 6px;
}

.legal a.inline {
  color: var(--purple);
  font-weight: 700;
  text-decoration: underline;
}

.legal .toc {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  padding: 16px 20px;
  margin-bottom: 30px;
  line-height: 1.9;
}

.legal .toc strong {
  display: block;
  margin-bottom: 6px;
}

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

.legal .note {
  border-left: 4px solid var(--purple);
  background: var(--lavender);
  padding: 14px 18px;
  border-radius: 8px;
  margin: 20px 0;
  font-size: 15px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  font-size: 14px;
}

.footer-links a:hover {
  color: #fff;
}
