:root {
  --accent: #9B7BEA;
  --accent-dark: #6F4BD8;
  --coral: #FF6F91;
  --green: #91D7A3;
  --teal: #3DC9B0;
  --amber: #FF9F45;
  --bg: #FFFFFF;
  --bg-soft: #FCFAFF;
  --surface: #FFFFFF;
  --surface-strong: #F7F3FF;
  --text: #1F1B2D;
  --muted: #6F687E;
  --border: #EEEAF8;
  --shadow: 0 16px 48px rgba(51, 35, 89, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #100D18;
    --bg-soft: #171424;
    --surface: #1C1829;
    --surface-strong: #241E36;
    --text: #F4F0FF;
    --muted: #B5ADC5;
    --border: #302943;
    --shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
  }
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.home {
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.landing-wrap {
  max-width: 1120px;
}

header.site {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.landing-nav {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  height: 62px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  width: 190px;
}

.brand img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

nav.site {
  display: flex;
  align-items: center;
  gap: 22px;
}

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

nav.site a:hover,
footer.site nav a:hover,
.hero-links a:hover {
  color: var(--accent);
}

main {
  padding: 56px 0 80px;
}

body.home main {
  padding: 0;
}

.download-hero {
  background:
    radial-gradient(circle at 16% 22%, rgba(155, 123, 234, 0.18), transparent 30%),
    radial-gradient(circle at 88% 26%, rgba(145, 215, 163, 0.22), transparent 26%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 76%);
  min-height: calc(100vh - 73px);
  padding: 42px 0 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: 36px;
}

.hero-copy {
  text-align: center;
}

.hero-brand-name {
  color: var(--accent-dark);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero-copy h1 {
  font-size: clamp(42px, 6.8vw, 72px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0 auto 20px;
  max-width: 720px;
}

.social-proof {
  color: var(--muted);
  font-size: 19px;
  font-weight: 700;
  margin: 0 auto 24px;
  max-width: 460px;
}

.store-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.store-badge {
  align-items: center;
  display: inline-flex;
  height: 56px;
  justify-content: center;
  position: relative;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.store-badge:hover {
  box-shadow: 0 10px 24px rgba(31, 27, 45, 0.18);
  transform: translateY(-2px);
}

.store-badge img {
  display: block;
  height: 100%;
  max-width: none;
  width: auto;
}

.store-badge.google-play {
  height: 74px;
  margin: -9px 0;
}

.store-badge.is-coming-soon {
  cursor: default;
}

.store-badge.is-coming-soon:hover {
  box-shadow: none;
  transform: none;
}

.store-badge.is-coming-soon img {
  opacity: 0.72;
}

.coming-soon-pill {
  background: var(--surface);
  border: 1px solid rgba(155, 123, 234, 0.28);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(31, 27, 45, 0.16);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  padding: 6px 10px;
  position: absolute;
  right: -8px;
  text-transform: uppercase;
  top: -2px;
  white-space: nowrap;
}

.hero-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.hero-visual {
  min-height: 610px;
  position: relative;
}

.phone {
  background: linear-gradient(145deg, #0B0B10 0%, #2B2934 48%, #0B0B10 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 46px;
  box-shadow:
    0 28px 72px rgba(31, 27, 45, 0.24),
    0 10px 26px rgba(31, 27, 45, 0.16),
    inset 0 0 0 2px rgba(255, 255, 255, 0.08),
    inset 0 0 0 7px rgba(0, 0, 0, 0.72);
  color: #1F1B2D;
  padding: 10px;
  overflow: hidden;
  position: absolute;
}

.phone::before {
  background: #07070A;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.38);
  content: "";
  height: 24px;
  left: 50%;
  position: absolute;
  top: 18px;
  transform: translateX(-50%);
  width: 31%;
  z-index: 2;
}

.phone::after {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.24), transparent 34%);
  border-radius: inherit;
  content: "";
  inset: 1px;
  opacity: 0.24;
  pointer-events: none;
  position: absolute;
}

.phone-main {
  left: 8%;
  top: 0;
  width: clamp(250px, 47%, 324px);
  z-index: 3;
}

.phone-side {
  right: 6%;
  top: 68px;
  transform: rotate(4deg);
  width: clamp(216px, 39.5%, 270px);
  z-index: 2;
}

.screenshot-phone {
  aspect-ratio: 1170 / 2532;
}

.screenshot-phone img {
  border-radius: 36px;
  height: 100%;
  object-fit: cover;
  position: relative;
  width: 100%;
  z-index: 1;
}

.preview-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.screen-strip {
  margin-top: -14px;
  overflow: hidden;
  padding: 14px 0 56px;
}

.strip-track {
  animation: slide-previews 28s linear infinite;
  display: flex;
  gap: 18px;
  min-width: max-content;
  padding-left: max(24px, calc((100vw - 1120px) / 2));
}

.preview-panel {
  background: linear-gradient(145deg, #F7F3FF, #FFFFFF);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-height: 186px;
  padding: 22px;
  width: 260px;
}

.preview-panel.pink {
  background: linear-gradient(145deg, #FFF1F5, #FFFFFF);
}

.preview-panel.green {
  background: linear-gradient(145deg, #F1FFF5, #FFFFFF);
}

.preview-panel.amber {
  background: linear-gradient(145deg, #FFF7ED, #FFFFFF);
}

.preview-panel strong {
  display: block;
  font-size: 22px;
  line-height: 1.15;
  margin-top: 24px;
}

@keyframes slide-previews {
  from { transform: translateX(0); }
  to { transform: translateX(-44%); }
}

.feature-section,
.google-data-section,
.reviews-section,
.goal-cta {
  padding: 72px 24px;
}

.feature-section h2,
.google-data-section h2,
.goal-cta h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0 auto 34px;
  max-width: 760px;
  text-align: center;
}

.google-data-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.google-data-wrap {
  align-items: start;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
}

.google-data-copy h2 {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.google-data-copy p {
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
  margin: 0;
  max-width: 430px;
}

.google-data-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.google-data-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(51, 35, 89, 0.08);
  padding: 22px;
}

.google-data-card h3 {
  font-size: 18px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.google-data-card p {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
}

.google-data-card code {
  background: var(--surface-strong);
  border-radius: 6px;
  color: var(--accent-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
  padding: 2px 5px;
}

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

.feature-card,
.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.feature-icon {
  align-items: center;
  background: #F2ECFF;
  border-radius: 8px;
  color: var(--accent-dark);
  display: inline-flex;
  font-size: 13px;
  font-weight: 950;
  height: 38px;
  justify-content: center;
  margin-bottom: 18px;
  width: 38px;
}

.feature-icon.coral {
  background: #FFF0F4;
  color: #D93D64;
}

.feature-icon.green {
  background: #EEFFF3;
  color: #3B9355;
}

.feature-icon.amber {
  background: #FFF2E2;
  color: #B85B00;
}

.feature-card h3 {
  font-size: 20px;
  line-height: 1.15;
  margin: 0 0 10px;
}

.feature-card p,
.review-card p,
.goal-cta p {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

.reviews-section {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.reviews-layout {
  align-items: start;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(250px, 0.82fr) minmax(0, 1.18fr);
}

.section-eyebrow {
  color: var(--accent-dark);
  display: block;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.reviews-copy {
  position: sticky;
  top: 112px;
}

.reviews-copy h2 {
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 18px;
  max-width: 500px;
}

.reviews-copy p {
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
  margin: 0;
  max-width: 360px;
}

.review-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.review-card.featured {
  background:
    linear-gradient(135deg, rgba(155, 123, 234, 0.14), rgba(255, 111, 145, 0.1)),
    var(--surface);
  border-color: rgba(155, 123, 234, 0.26);
  color: var(--text);
}

.review-card p {
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.38;
  margin-bottom: 28px;
}

.review-card {
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 222px;
  padding: 24px;
  position: relative;
}

.review-card::before {
  background: var(--teal);
  border-radius: 999px;
  content: "";
  height: 3px;
  left: 24px;
  position: absolute;
  top: 0;
  width: 38px;
}

.review-card:nth-child(2)::before {
  background: var(--coral);
}

.review-card:nth-child(3)::before {
  background: var(--green);
}

.review-card:nth-child(4)::before {
  background: var(--amber);
}

.review-card.featured p,
.review-card.featured span {
  color: var(--muted);
}

.review-card.featured p {
  color: var(--text);
}

.review-card strong,
.review-card span {
  display: block;
}

.review-card strong {
  font-size: 15px;
  margin-bottom: 2px;
}

.review-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.goal-cta {
  background:
    radial-gradient(circle at 16% 50%, rgba(255, 111, 145, 0.15), transparent 25%),
    radial-gradient(circle at 88% 40%, rgba(61, 201, 176, 0.18), transparent 25%),
    var(--surface-strong);
}

.goal-wrap {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: space-between;
}

.goal-cta h2,
.goal-cta p {
  margin-left: 0;
  margin-right: 0;
  max-width: 620px;
  text-align: left;
}

.goal-cta h2 {
  margin-bottom: 12px;
}

.hero {
  padding: 40px 0 8px;
  text-align: center;
}

.hero img.mark {
  border-radius: 8px;
  box-shadow: var(--shadow);
  height: auto;
  margin: 0 auto 24px;
  width: 180px;
}

.hero h1 {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 12px;
}

.hero p.tagline {
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
  margin: 0 auto 32px;
  max-width: 480px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 8px;
}

.btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  gap: 8px;
  padding: 12px 22px;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #FFFFFF;
}

.btn.secondary {
  background: var(--bg-soft);
  border-color: var(--border);
  color: var(--text);
}

.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 56px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.card h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 8px;
}

.card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.page-header {
  margin-bottom: 0;
}

.page-header h1 {
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 8px;
}

.page-header p.updated {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.document-page {
  background:
    linear-gradient(180deg, var(--bg-soft) 0, var(--bg) 260px);
}

.document-page header.site {
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(18px);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.document-page .brand {
  height: 48px;
  overflow: hidden;
  width: 154px;
}

.document-page .brand img {
  object-fit: cover;
  object-position: center;
}

.document-page header.site .wrap,
.document-page footer.site .wrap,
.document-wrap {
  max-width: 1240px;
  padding-left: clamp(18px, 4vw, 48px);
  padding-right: clamp(18px, 4vw, 48px);
}

.document-main {
  padding: clamp(28px, 5vh, 48px) 0 48px;
}

.legal-wrap,
.support-wrap {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legal-wrap .page-header,
.support-wrap .page-header {
  grid-column: 1 / -1;
}

.support-wrap .support-block:first-of-type {
  align-self: start;
  position: sticky;
  top: 88px;
}

section.legal,
.support-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(51, 35, 89, 0.08);
  margin-top: 0;
  padding: clamp(18px, 2.4vw, 28px);
}

section.legal h2,
.support-block h2 {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 12px;
}

section.legal p,
.support-block p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 12px;
}

section.legal p:last-child,
.support-block p:last-child {
  margin-bottom: 0;
}

section.legal ul {
  color: var(--muted);
  margin: 0;
  padding-left: 20px;
}

section.legal li {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 8px;
}

section.legal li:last-child { margin-bottom: 0; }

section.legal a,
.support-block a {
  color: var(--accent);
}

.faq-item {
  border-top: 1px solid var(--border);
  padding: 18px 0;
}

.faq-item:first-of-type {
  border-top: none;
  padding-top: 0;
}

.faq-item h3 {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 8px;
}

.faq-item p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

footer.site {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

footer.site .wrap {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

footer.site p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

footer.site nav a {
  margin: 0;
}

@media (max-width: 980px) {
  .legal-wrap,
  .support-wrap {
    grid-template-columns: 1fr;
  }

  .support-wrap .support-block:first-of-type {
    position: static;
  }

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

  .hero-copy {
    order: 1;
  }

  .hero-visual {
    min-height: 590px;
    order: 2;
  }

  .phone-main {
    left: calc(50% - 258px);
    width: min(44vw, 300px);
  }

  .phone-side {
    right: calc(50% - 252px);
    width: min(38.5vw, 264px);
  }

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

  .reviews-layout {
    gap: 28px;
    grid-template-columns: 1fr;
  }

  .google-data-wrap {
    grid-template-columns: 1fr;
  }

  .google-data-grid {
    grid-template-columns: 1fr;
  }

  .reviews-copy {
    position: static;
  }

  .reviews-copy p {
    max-width: 560px;
  }

  .review-card.featured {
    grid-column: auto;
    grid-row: auto;
  }

  .goal-wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .goal-wrap .store-row {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .wrap {
    padding: 0 18px;
  }

  .document-main {
    padding: 24px 0 36px;
  }

  .document-page header.site {
    position: static;
  }

  .document-page header.site .wrap {
    align-items: center;
    flex-direction: row;
    gap: 12px;
  }

  .document-page .brand {
    height: 42px;
    width: 118px;
  }

  .document-page nav.site {
    gap: 10px;
  }

  .document-page nav.site a {
    font-size: 12px;
  }

  header.site .wrap {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  nav.site {
    gap: 16px;
  }

  .brand img {
    width: 100%;
  }

  .download-hero {
    min-height: 0;
    padding-top: 28px;
  }

  .hero-copy h1 {
    font-size: 48px;
    line-height: 0.96;
  }

  .social-proof {
    font-size: 17px;
  }

  .store-badge {
    height: 52px;
  }

  .store-badge.google-play {
    height: 68px;
    margin: -8px 0;
  }

  .hero-links {
    gap: 16px;
  }

  .hero-visual {
    min-height: 540px;
  }

  .phone-main {
    left: 50%;
    transform: translateX(-50%);
    width: min(80vw, 258px);
  }

  .phone-side {
    display: none;
  }

  .feature-section,
  .google-data-section,
  .reviews-section,
  .goal-cta {
    padding: 54px 18px;
  }

  .feature-section h2,
  .google-data-section h2,
  .reviews-copy h2,
  .goal-cta h2 {
    font-size: 34px;
    text-align: left;
  }

  .feature-grid,
  .review-grid,
  .cards {
    grid-template-columns: 1fr;
  }

  .review-card.featured {
    grid-column: auto;
  }

  .review-card {
    min-height: 190px;
  }

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

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