:root {
  color-scheme: light;
  --blue: #2e75ff;
  --teal: #0dc7bf;
  --green: #2ed65f;
  --yellow: #ffcc38;
  --coral: #ff636b;
  --purple: #8a57ff;
  --ink: #142036;
  --muted: #62708a;
  --paper: #fbfcff;
  --surface: rgba(255, 255, 255, 0.82);
  --line: rgba(46, 117, 255, 0.18);
  --shadow: 0 22px 70px rgba(28, 66, 139, 0.18);
  --radius: 18px;
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 204, 56, 0.23), rgba(13, 199, 191, 0.15) 38%, rgba(46, 117, 255, 0.10) 70%, #fff 100%),
    var(--paper);
}

body::before {
  content: "+  =  f(x)  pi  +  =";
  position: fixed;
  inset: 9rem auto auto -3rem;
  z-index: -1;
  width: 115vw;
  color: rgba(46, 117, 255, 0.08);
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 900;
  letter-spacing: 0;
  transform: rotate(-9deg);
  white-space: nowrap;
  pointer-events: none;
}

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

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

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  width: min(1120px, calc(100% - 32px));
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 24px;
  box-shadow: 0 16px 42px rgba(29, 54, 103, 0.16);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand img {
  border-radius: 13px;
  box-shadow: 0 8px 18px rgba(255, 99, 107, 0.24);
}

.brand span {
  display: grid;
  gap: 1px;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: #35435c;
  font-size: 0.9rem;
  font-weight: 800;
}

.nav-links a,
.site-footer a {
  border-radius: 999px;
}

.nav-links a:focus-visible,
.site-footer a:focus-visible,
.brand:focus-visible,
.primary-link:focus-visible,
.secondary-link:focus-visible,
.nav-cta:focus-visible,
.inline-link:focus-visible,
.store-link:focus-visible {
  outline: 3px solid rgba(13, 199, 191, 0.45);
  outline-offset: 3px;
}

.nav-cta,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--purple), var(--teal));
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(46, 117, 255, 0.28);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  align-items: center;
  gap: clamp(24px, 5vw, 78px);
  min-height: 82svh;
  padding: clamp(7.2rem, 10vw, 8.2rem) max(24px, calc((100vw - 1120px) / 2)) clamp(3.25rem, 6vw, 4.75rem);
  overflow: hidden;
}

.hero picture,
.hero-art,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-art {
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05);
}

.hero-scrim {
  background:
    radial-gradient(circle at 76% 36%, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.78) 40%, rgba(255, 255, 255, 0.40) 70%, rgba(255, 255, 255, 0.20) 100%);
}

.floating-symbols {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.floating-symbols span {
  position: absolute;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.35rem, 4vw, 3.2rem);
  font-weight: 1000;
  text-shadow: 0 8px 26px rgba(33, 50, 92, 0.16);
}

.floating-symbols span:nth-child(1) {
  top: 21%;
  right: 31%;
  transform: rotate(-14deg);
}

.floating-symbols span:nth-child(2) {
  right: 10%;
  bottom: 27%;
  transform: rotate(10deg);
}

.floating-symbols span:nth-child(3) {
  top: 64%;
  right: 41%;
  transform: rotate(-8deg);
}

.floating-symbols span:nth-child(4) {
  top: 32%;
  right: 6%;
  transform: rotate(18deg);
}

.hero-content,
.hero-phone {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 670px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.9rem, 6.2vw, 5.35rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 580px;
  margin-bottom: 30px;
  color: #334159;
  font-size: clamp(1.04rem, 1.7vw, 1.2rem);
  font-weight: 650;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  color: #20304b;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(29, 54, 103, 0.12);
  backdrop-filter: blur(12px);
}

.hero-phone {
  justify-self: end;
  width: min(100%, 370px);
  padding: 18px;
  color: #18223a;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-top img {
  border-radius: 13px;
}

.phone-top strong,
.phone-top span {
  display: block;
}

.phone-top strong {
  font-size: 1.04rem;
}

.phone-top span {
  color: var(--coral);
  font-size: 0.86rem;
  font-weight: 900;
}

.problem-card {
  display: grid;
  place-items: center;
  min-height: 190px;
  margin: 18px 0 14px;
  padding: 22px;
  text-align: center;
  background:
    linear-gradient(rgba(13, 199, 191, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 199, 191, 0.13) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 204, 56, 0.22), rgba(138, 87, 255, 0.14), rgba(13, 199, 191, 0.15));
  background-size: 24px 24px, 24px 24px, auto;
  border: 1px solid rgba(46, 117, 255, 0.16);
  border-radius: 20px;
}

.problem-card strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(2.5rem, 8vw, 4.2rem);
  line-height: 1;
}

.mini-label {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.answer-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}

.answer-row span,
.answer-row b {
  min-height: 48px;
  padding: 13px 16px;
  border-radius: 16px;
}

.answer-row span {
  color: #41506b;
  font-size: 1.3rem;
  font-weight: 900;
  background: #fff;
  border: 1px solid rgba(13, 199, 191, 0.28);
}

.answer-row b {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--purple), var(--teal));
}

.intro-band {
  width: min(1120px, calc(100% - 32px));
  margin: -2rem auto 0;
  padding: 0 0 18px;
}

.intro-band div {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1.1fr);
  gap: 18px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(29, 54, 103, 0.12);
  backdrop-filter: blur(14px);
}

.intro-band strong {
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  line-height: 1.15;
}

.intro-band span {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

.section,
.feature-band,
.download-section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.section-heading {
  max-width: 650px;
  margin-bottom: 28px;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2.1rem, 4.8vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-card,
.feature-list div {
  min-height: 250px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 46px rgba(29, 54, 103, 0.11);
}

.step-card {
  display: flex;
  flex-direction: column;
}

.step-card p,
.feature-list p,
.story-copy p,
.download-panel p {
  color: var(--muted);
  font-weight: 650;
  line-height: 1.6;
}

.step-number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 34px;
  color: #fff;
  font-weight: 1000;
  background: linear-gradient(135deg, var(--yellow), var(--coral), var(--purple));
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(255, 99, 107, 0.24);
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
}

.feature-copy p:not(.eyebrow) {
  color: #46556f;
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.65;
}

.inline-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 1000;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-list div {
  position: relative;
  min-height: auto;
  padding-left: 64px;
}

.feature-list strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.feature-list p {
  margin-bottom: 0;
}

.feature-dot {
  position: absolute;
  left: 22px;
  top: 24px;
  width: 24px;
  height: 24px;
  border-radius: 9px;
  box-shadow: 0 8px 20px rgba(46, 117, 255, 0.2);
}

.feature-dot.blue {
  background: var(--blue);
}

.feature-dot.teal {
  background: var(--teal);
}

.feature-dot.coral {
  background: var(--coral);
}

.story-section {
  display: grid;
  grid-template-columns: minmax(180px, 320px) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 80px);
  align-items: center;
}

.story-mark {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  color: #fff;
  font-size: clamp(3rem, 8vw, 5.8rem);
  font-style: italic;
  font-weight: 1000;
  background: linear-gradient(135deg, var(--yellow), var(--coral), var(--purple), var(--blue));
  border-radius: 34%;
  box-shadow: 0 26px 64px rgba(255, 99, 107, 0.26);
}

.story-copy {
  max-width: 740px;
}

.download-section {
  padding-top: 2rem;
}

.download-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: clamp(22px, 4vw, 34px);
  color: #fff;
  background:
    radial-gradient(circle at 14% 28%, rgba(255, 204, 56, 0.42), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(13, 199, 191, 0.35), transparent 28%),
    linear-gradient(135deg, #1b55d9, #7c4dff 48%, #0faea9);
  border-radius: 26px;
  box-shadow: 0 24px 72px rgba(46, 117, 255, 0.26);
}

.download-panel img {
  border-radius: 24px;
  box-shadow: 0 18px 36px rgba(13, 23, 54, 0.25);
}

.download-panel .eyebrow,
.download-panel p {
  color: rgba(255, 255, 255, 0.82);
}

.download-panel h2 {
  max-width: 680px;
  margin-bottom: 8px;
  font-size: clamp(1.75rem, 4vw, 3.2rem);
}

.download-panel p {
  max-width: 680px;
  margin-bottom: 0;
}

.store-link {
  display: grid;
  gap: 0;
  min-width: 184px;
  padding: 12px 18px 14px;
  color: #fff;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 17px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.25);
}

.store-link span {
  font-size: 0.74rem;
  font-weight: 750;
}

.store-link strong {
  font-size: 1.42rem;
  line-height: 1;
}

.store-link.is-disabled {
  cursor: not-allowed;
  opacity: 0.84;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 750;
}

.site-footer a {
  color: var(--blue);
}

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

.text-page {
  min-height: 100vh;
  overflow-x: hidden;
}

.document-main {
  width: 100%;
  max-width: 912px;
  margin: 0 auto;
  padding: 8.5rem 16px 3.5rem;
}

.document-panel {
  width: 100%;
  padding: clamp(24px, 5vw, 48px);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 22px 70px rgba(28, 66, 139, 0.14);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.document-panel h1 {
  max-width: 760px;
  margin-bottom: 10px;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: 1;
  overflow-wrap: break-word;
}

.document-panel h2 {
  margin: 32px 0 10px;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.document-panel p {
  color: #46556f;
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.68;
}

.document-panel a {
  color: var(--blue);
  font-weight: 900;
}

.document-updated {
  color: var(--muted);
}

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

  .nav-links {
    display: none;
  }

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

  .hero-phone {
    justify-self: start;
    max-width: 420px;
  }

  .hero-scrim {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.76) 56%, rgba(255, 255, 255, 0.54));
  }

  .intro-band div,
  .steps-grid,
  .feature-band,
  .story-section,
  .download-panel {
    grid-template-columns: 1fr;
  }

  .step-card {
    min-height: auto;
  }

  .step-number {
    margin-bottom: 20px;
  }

  .story-mark {
    width: min(260px, 72vw);
  }

  .store-link {
    width: fit-content;
  }
}

@media (max-width: 560px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    gap: 10px;
    border-radius: 20px;
  }

  .brand small {
    display: none;
  }

  .nav-cta {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.86rem;
  }

  .hero {
    padding: 7.25rem 18px 3.5rem;
  }

  h1 {
    font-size: clamp(2.65rem, 14vw, 4.4rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-link,
  .secondary-link {
    width: 100%;
  }

  .hero-phone {
    padding: 14px;
    border-radius: 26px;
    display: none;
  }

  .problem-card {
    min-height: 150px;
  }

  .answer-row {
    grid-template-columns: 1fr;
  }

  .section,
  .feature-band,
  .download-section {
    width: calc(100% - 28px);
  }

  .intro-band {
    width: calc(100% - 28px);
    margin-top: -1.3rem;
  }

  .download-panel {
    border-radius: 22px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    width: calc(100% - 28px);
  }

  .document-main {
    max-width: none;
    padding-top: 7.25rem;
    padding-inline: 14px;
  }
}

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