:root {
  --bg: #f3f1ec;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: #ffffff;
  --text: #111216;
  --muted: #777b86;
  --line: rgba(17, 18, 22, 0.1);
  --pill: #1f2335;
  --pill-muted: rgba(31, 35, 53, 0.08);
  --accent: #4d7de0;
  --accent-soft: rgba(77, 125, 224, 0.14);
  --dark: #111216;
  --dark-panel: #040404;
  --positive: #56c86b;
  --negative: #f35a46;
  --shadow: 0 30px 70px rgba(31, 35, 53, 0.12);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "SF Pro Display", "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 193, 77, 0.28), transparent 26%),
    radial-gradient(circle at top right, rgba(77, 125, 224, 0.16), transparent 22%),
    linear-gradient(180deg, #f7f5f0 0%, #efede8 100%);
}

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

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

.site-shell {
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto;
}

.site-shell.narrow {
  width: min(calc(100% - 32px), 860px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.topnav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-weight: 600;
}

.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 44px;
  align-items: center;
  padding: 40px 0 56px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero h1,
.section-heading h2,
.privacy-card h2,
.policy h1 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.6rem);
  max-width: 10ch;
}

.hero-text,
.feature-card p,
.privacy-card p,
.footer p,
.policy p,
.policy li {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-text {
  max-width: 58ch;
  margin: 22px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #4d7de0 0%, #2d58b8 100%);
  box-shadow: 0 20px 40px rgba(77, 125, 224, 0.22);
}

.button-ghost {
  border-color: rgba(17, 18, 22, 0.16);
  background: rgba(255, 255, 255, 0.6);
}

.hero-points {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.9;
}

.hero-visual {
  position: relative;
}

.phone-stack {
  position: relative;
  min-height: 780px;
}

.phone-card {
  position: absolute;
  width: min(100%, 470px);
  border-radius: 44px;
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.phone-dark {
  top: 0;
  right: 0;
  padding: 28px;
  background: linear-gradient(180deg, #17181d 0%, #101115 100%);
  color: #fff;
}

.phone-light {
  left: 0;
  bottom: 0;
  padding: 26px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.phone-top.compact {
  align-items: flex-start;
}

.phone-top h2 {
  margin: 4px 0 0;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.05em;
}

.muted {
  margin: 0;
  color: #a5a7af;
  font-size: 1rem;
}

.logo-chip,
.split-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
}

.logo-chip {
  width: 96px;
  height: 96px;
  padding: 8px;
}

.logo-chip img {
  width: 100%;
  height: 100%;
  border-radius: 28px;
}

.split-button {
  gap: 18px;
  min-width: 124px;
  height: 64px;
  font-size: 2rem;
  color: rgba(17, 18, 22, 0.72);
  background: rgba(255, 255, 255, 0.86);
}

.pill-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
  padding: 10px;
  border-radius: 999px;
  background: var(--dark-panel);
}

.pill-row span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-radius: 999px;
  color: #a5a7af;
  font-weight: 700;
}

.pill-row .active {
  color: #fff;
  background: var(--pill);
}

.stat-panel,
.metrics-list,
.feature-card,
.privacy-card,
.policy section {
  border-radius: var(--radius-xl);
}

.dark-panel {
  background: var(--dark-panel);
}

.stat-panel {
  padding: 24px;
  margin-bottom: 18px;
}

.toggle-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.toggle {
  padding: 12px 22px;
  border-radius: 999px;
  color: #898b95;
  background: transparent;
  border: 1px solid transparent;
  font-weight: 700;
}

.toggle.active {
  color: inherit;
  border-color: rgba(255, 255, 255, 0.4);
}

.stat-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 22px 0 18px;
}

.stat-head strong {
  font-size: clamp(2.8rem, 6vw, 4.7rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.stat-head em {
  font-style: normal;
  color: #a5a7af;
  font-weight: 700;
}

.negative {
  color: var(--negative);
}

.chart-lines {
  position: relative;
  height: 230px;
  border-radius: 30px;
  overflow: hidden;
}

.dark-chart {
  background:
    linear-gradient(180deg, rgba(77, 125, 224, 0.18) 0%, rgba(77, 125, 224, 0.04) 70%, transparent 100%),
    repeating-linear-gradient(180deg, transparent 0, transparent 68px, rgba(255, 255, 255, 0.08) 68px, rgba(255, 255, 255, 0.08) 70px);
}

.curve {
  position: absolute;
  inset: auto 18px 38px 18px;
  height: 108px;
  border-radius: 999px;
}

.curve-main {
  border-top: 6px solid #4d7de0;
  transform: skewY(-8deg);
}

.curve-dashed {
  bottom: 86px;
  height: 80px;
  border-top: 4px dashed rgba(255, 255, 255, 0.32);
  opacity: 0.92;
}

.metrics-list {
  padding: 10px 0;
}

.metrics-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.metrics-list div:last-child {
  border-bottom: 0;
}

.metrics-list span {
  color: #b9bbc2;
}

.metrics-list strong {
  font-size: 1.35rem;
}

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

.month-box {
  min-height: 182px;
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 34px rgba(17, 18, 22, 0.08);
}

.month-box span,
.month-box em {
  display: block;
}

.month-box span {
  color: #8d919b;
  font-size: 1.1rem;
  font-weight: 700;
}

.month-box strong {
  display: inline-block;
  margin: 34px 0 14px;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.month-box em {
  padding-top: 14px;
  border-top: 2px solid rgba(17, 18, 22, 0.1);
  font-style: normal;
  font-weight: 700;
}

.selected {
  outline: 4px solid rgba(77, 125, 224, 0.7);
}

.muted-box {
  color: #bdbfc5;
}

.muted-box strong,
.muted-box em {
  color: #bdbfc5;
}

.feature-band,
.privacy-highlight {
  padding: 48px 0 28px;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2,
.privacy-card h2,
.policy h1 {
  font-size: clamp(2.3rem, 4vw, 4rem);
}

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

.feature-card,
.privacy-card,
.policy section {
  padding: 28px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.54);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.feature-card h3,
.footer h3,
.policy h2 {
  margin: 0 0 10px;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.privacy-card {
  display: grid;
  gap: 14px;
}

.footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 54px 0 38px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  color: var(--muted);
  font-weight: 600;
}

.policy {
  padding: 42px 0 34px;
}

.policy-meta {
  margin-top: 12px;
  color: var(--muted);
}

.policy section {
  margin-top: 18px;
}

.policy ul {
  margin: 0;
  padding-left: 20px;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .phone-stack {
    min-height: 980px;
  }

  .phone-dark,
  .phone-light {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .phone-dark {
    top: 0;
  }

  .phone-light {
    bottom: 0;
  }

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

@media (max-width: 720px) {
  .topbar,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .topnav {
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 24px;
  }

  .hero h1 {
    max-width: none;
  }

  .phone-stack {
    min-height: 1110px;
  }

  .phone-card {
    width: 100%;
    max-width: 520px;
  }

  .phone-dark {
    padding: 22px;
  }

  .phone-light {
    padding: 20px;
  }

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

  .stat-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
