:root {
  --bg: #f7f7f8;
  --fg: #18181b;
  --muted: #71717a;
  --border: #e4e4e7;
  --card: #ffffff;
  --primary: #7c5cfc;
  --secondary: #6e56cf;
  --green: #22c55e;
  --red: #ef4444;
  --radius: 0.625rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

.page {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 60% 40% at 85% 2%,
      color-mix(in srgb, var(--primary) 26%, transparent),
      transparent 70%
    ),
    radial-gradient(
      ellipse 50% 35% at 3% 38%,
      color-mix(in srgb, var(--primary) 14%, transparent),
      transparent 70%
    ),
    radial-gradient(
      ellipse 45% 40% at 92% 78%,
      color-mix(in srgb, var(--secondary) 14%, transparent),
      transparent 70%
    );
}

.container {
  width: min(100%, 72rem);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 4vw, 2.5rem);
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px);
}

.header__inner {
  display: flex;
  align-items: center;
  height: 3.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}

.brand__mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.125rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06);
}

.brand__name {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
  min-height: calc(100svh - 3.5rem);
  padding-block: 3.5rem 2.5rem;
}

.hero__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.hero__copy {
  width: 100%;
  text-align: center;
}

.hero__title {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero__title span {
  display: block;
}

.hero__title .accent {
  background: linear-gradient(90deg, var(--fg), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 1.5rem auto 0;
  max-width: 32rem;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--muted);
  line-height: 1.6;
}

.phone {
  position: relative;
  width: min(100%, 300px);
  margin-inline: auto;
  animation: float 7s ease-in-out infinite;
}

.phone::before {
  content: "";
  position: absolute;
  inset: -2.5rem;
  z-index: -1;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 20%, transparent);
  filter: blur(32px);
}

.phone__shell {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 2rem;
  background: var(--fg);
  padding: 10px;
  box-shadow: 0 20px 40px rgb(0 0 0 / 0.12);
}

.phone__screen {
  overflow: hidden;
  border-radius: 1.45rem;
  background: var(--card);
}

.phone__notch {
  display: flex;
  justify-content: center;
  padding: 0.75rem 1rem 0.75rem;
  background: var(--fg);
}

.phone__notch span {
  width: 4rem;
  height: 0.375rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 25%, transparent);
}

.phone__stats {
  padding: 0.5rem 0.75rem 0.75rem;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}

.phone__stats-card {
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: 0.75rem;
  background: var(--card);
  padding: 0.75rem 1rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}

.phone__stats-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.phone__stats-group {
  display: flex;
  gap: 1.25rem;
}

.phone__label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.phone__value {
  margin-top: 0.125rem;
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.phone__value--green {
  color: var(--green);
}

.phone__value--red {
  color: var(--red);
}

.phone__balance {
  padding-left: 0.75rem;
  border-left: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  text-align: right;
}

.phone__balance .phone__value {
  font-size: 1.25rem;
  font-weight: 700;
}

.phone__day {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1rem;
  font-size: 0.75rem;
  color: var(--muted);
  background: color-mix(in srgb, var(--bg) 50%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}

.phone__day strong {
  font-size: 0.875rem;
  color: var(--fg);
}

.phone__ops {
  margin: 0;
  padding: 0;
  list-style: none;
}

.phone__op {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding: 0 1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}

.phone__op-title {
  font-size: 0.9375rem;
  font-weight: 500;
}

.phone__op-meta {
  font-size: 0.75rem;
  color: var(--muted);
}

.phone__op-amount {
  font-size: 0.9375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tree {
  width: min(100%, 14rem);
  margin-inline: auto;
  opacity: 0.95;
}

.section {
  padding-block: 6rem;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--secondary);
}

.kicker::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: color-mix(in srgb, var(--secondary) 40%, transparent);
}

.section__title {
  margin: 1rem 0 0;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section__title span {
  display: block;
}

.benefits__list {
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.benefits__item {
  display: flex;
  gap: 1.25rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.benefits__num {
  width: 3rem;
  flex-shrink: 0;
  padding-top: 0.125rem;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--secondary) 25%, transparent);
}

.benefits__item:first-child .benefits__num {
  color: rgb(245 158 11 / 0.8);
}

.benefits__item h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.benefits__item p {
  margin: 0.25rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
}

.chart-card {
  width: min(100%, 24rem);
  margin-inline: auto;
  transform: rotate(-1deg);
  transition: transform 0.5s ease;
}

.chart-card:hover {
  transform: rotate(0);
}

.chart-card__inner {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--card) 70%, transparent);
  padding: 0.75rem;
  box-shadow: 0 20px 40px color-mix(in srgb, var(--secondary) 10%, transparent);
}

.chart-card__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.5rem 0.25rem;
}

.chart-card__total {
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.chart-card__change {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--red);
}

.chart-card__bars {
  display: flex;
  align-items: flex-end;
  gap: 0.375rem;
  height: 5rem;
  padding: 0.5rem;
}

.chart-card__bar {
  flex: 1;
  border-radius: 0.25rem 0.25rem 0 0;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  opacity: 0.85;
}

.chart-card__cats {
  margin-top: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
  padding: 1rem;
}

.chart-card__cat + .chart-card__cat {
  margin-top: 1rem;
}

.chart-card__cat-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.chart-card__cat-bar {
  height: 0.375rem;
  margin-top: 0.5rem;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.chart-card__cat-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.chart-card__caption {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.outcomes__grid {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
}

.outcome-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
  padding: 1.25rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}

.outcome-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.outcome-card p {
  margin: 0.375rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

.footer {
  border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-block: 2.5rem;
}

.footer__meta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
}

.footer__year {
  font-size: 0.75rem;
  color: var(--muted);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer__links a:hover {
  color: var(--fg);
}

.legal {
  max-width: 42rem;
  padding-block: 2.5rem 4rem;
}

.legal h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.legal h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.legal h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.legal p,
.legal li {
  color: var(--muted);
  line-height: 1.65;
}

.legal ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.legal li + li {
  margin-top: 0.35rem;
}

.legal a {
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal__meta {
  margin: 0.75rem 0 1.5rem;
  font-size: 0.875rem;
}

.legal__back {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.legal__back a {
  text-decoration: none;
  font-weight: 500;
}

.legal code {
  font-size: 0.875em;
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
  background: color-mix(in srgb, var(--border) 60%, transparent);
}

.reveal {
  opacity: 1;
  transform: none;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(1.625rem);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero .reveal:nth-child(1) {
  transition-delay: 80ms;
}

.hero .reveal:nth-child(2) {
  transition-delay: 200ms;
}

.hero .reveal:nth-child(3) {
  transition-delay: 260ms;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (min-width: 768px) {
  .hero__grid {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
  }

  .hero__copy {
    max-width: 52%;
    text-align: left;
  }

  .hero__lead {
    margin-inline: 0;
  }

  .benefits__item {
    gap: 1.75rem;
    padding-block: 1.75rem;
  }

  .outcomes__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .outcome-card:nth-child(2) {
    transform: translateY(1rem);
  }

  .footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

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

  .phone,
  html.js .reveal {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}
