:root {
  --ink: #121412;
  --muted: #676b67;
  --surface: #fffffc;
  --surface-solid: #fffffc;
  --background: #f7f7f3;
  --border: #d6d9d4;
  --grid: rgba(18, 20, 18, 0.055);
  --soft-surface: #f0f1ed;
  --subtle-surface: #e7e9e4;
  --green: #5bea7b;
  --yellow: #ffd84d;
  --red: #ff766b;
  --top-green: #79ee90;
  --top-yellow: #ffe163;
  --top-red: #ff8b7d;
  --radius: 30px;
  --page-width: 1120px;
  --font-rounded: "Nunito", ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f3f5f0;
    --muted: #a7aca4;
    --surface: #191c18;
    --surface-solid: #191c18;
    --background: #111310;
    --border: #3a3e38;
    --grid: rgba(255, 255, 255, 0.055);
    --soft-surface: #222620;
    --subtle-surface: #2a2e28;
    --green: #53df73;
    --yellow: #f5cb3e;
    --red: #ff776d;
    --top-green: #1b4627;
    --top-yellow: #484019;
    --top-red: #4b2522;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--background);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, transparent 0%, transparent 48%, var(--background) 100%),
    linear-gradient(90deg, var(--top-green) 0%, var(--top-yellow) 52%, var(--top-red) 100%);
  background-repeat: repeat, repeat, no-repeat, no-repeat;
  background-size: 52px 52px, 52px 52px, 100% 620px, 100% 620px;
  background-position: 0 0, 0 0, top, top;
  font-family: var(--font-rounded);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.page {
  width: min(calc(100% - 36px), var(--page-width));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 36px 0 20px;
}

.nav__back {
  font-weight: 800;
  text-decoration: none;
}

.nav__back:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.status,
.format-list span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 13px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--surface-solid);
  font-size: 14px;
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: clamp(42px, 8vw, 100px);
  min-height: 760px;
  padding: 56px clamp(10px, 4vw, 46px) 76px;
}

.hero__copy,
.hero__visual {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 26px;
  font-size: clamp(58px, 8vw, 104px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.94;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.hero__description {
  max-width: 510px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 600;
}

.format-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
}

.format-list span {
  background: var(--surface-solid);
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 13px 20px;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  background: var(--ink);
  color: var(--background);
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 rgba(18, 20, 18, 0.14);
}

.hero__visual {
  align-self: center;
}

.app-preview {
  width: min(100%, 390px);
  margin-inline: auto;
  padding: 18px;
  border: 1.5px solid var(--border);
  border-radius: 34px;
  background: var(--soft-surface);
  box-shadow: 0 24px 70px rgba(18, 20, 18, 0.15);
}

.balance-card,
.summary-card,
.transaction-list,
.import-panel,
.report-card {
  border: 1.5px solid var(--border);
  background: var(--surface-solid);
}

.balance-card {
  padding: 24px;
  border-radius: 24px;
}

.balance-card strong {
  display: block;
  margin-top: 14px;
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.preview-label {
  font-weight: 800;
}

.preview-label--section {
  display: block;
  margin: 22px 4px 10px;
}

.summary-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.summary-card {
  padding: 16px;
  border-radius: 20px;
}

.summary-card small,
.transaction-row small,
.import-option small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-weight: 650;
}

.summary-card strong {
  display: block;
  margin-top: 7px;
}

.money-icon {
  display: grid;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
}

.money-icon--income {
  background: color-mix(in srgb, var(--green) 24%, transparent);
  color: color-mix(in srgb, var(--green) 72%, var(--ink));
}

.money-icon--expense {
  background: color-mix(in srgb, var(--red) 22%, transparent);
  color: var(--red);
}

.transaction-list {
  overflow: hidden;
  border-radius: 22px;
}

.transaction-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 14px;
}

.transaction-row + .transaction-row {
  border-top: 1.5px solid var(--border);
}

.transaction-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: var(--soft-surface);
}

.transaction-row > strong {
  font-size: 15px;
}

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

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

.feature-card,
.showcase,
.insights,
.closing {
  border: 1.5px solid var(--border);
  background: var(--surface);
}

.feature-card {
  min-height: 260px;
  padding: 28px;
  border-radius: var(--radius);
}

.feature-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 30px;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 15px;
  font-size: 25px;
  font-weight: 900;
}

.feature-card__icon--green {
  background: var(--green);
}

.feature-card__icon--yellow {
  background: var(--yellow);
}

.feature-card__icon--red {
  background: var(--red);
}

.feature-card h2 {
  font-size: 27px;
}

.feature-card p,
.showcase__copy > p,
.section-heading > p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 600;
}

.showcase {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(44px, 8vw, 100px);
  min-height: 610px;
  padding: 58px clamp(28px, 6vw, 76px);
  overflow: hidden;
  border-radius: 38px;
}

.showcase__screen {
  align-self: center;
}

.import-panel {
  max-width: 380px;
  margin-inline: auto;
  padding: 26px;
  border-radius: 24px;
}

.import-panel__icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  background: var(--green);
  color: #101510;
  font-size: 26px;
  font-weight: 900;
}

.import-panel h3 {
  margin: 0 0 8px;
  font-size: 30px;
}

.import-panel > p {
  color: var(--muted);
  font-weight: 600;
}

.import-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.import-formats span {
  padding: 7px 11px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--soft-surface);
  font-size: 13px;
  font-weight: 850;
}

.import-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1.5px solid var(--border);
  border-radius: 18px;
}

.import-option .money-icon {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.import-action {
  margin-top: 12px;
  padding: 13px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--background);
  font-weight: 850;
  text-align: center;
}

.showcase__copy {
  max-width: 560px;
}

.note {
  margin-top: 30px;
  padding: 20px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(120deg, rgba(91, 234, 123, 0.16), rgba(255, 216, 77, 0.14));
  color: var(--muted);
}

.note strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
}

.insights {
  margin-top: 22px;
  padding: clamp(34px, 6vw, 70px);
  overflow: hidden;
  border-radius: 38px;
}

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

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

.report-card {
  min-height: 430px;
  padding: 24px;
  border-radius: 24px;
}

.report-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-weight: 850;
}

.report-card__header strong {
  color: var(--muted);
  font-size: 14px;
}

.spending-chart {
  width: min(230px, 70%);
  aspect-ratio: 1;
  margin: 38px auto;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0 44%, var(--yellow) 44% 72%, var(--red) 72% 100%);
  -webkit-mask: radial-gradient(circle, transparent 0 48%, #000 49%);
  mask: radial-gradient(circle, transparent 0 48%, #000 49%);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend__dot--green {
  background: var(--green);
}

.legend__dot--yellow {
  background: var(--yellow);
}

.legend__dot--red {
  background: var(--red);
}

.trend-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  height: 260px;
  margin: 28px 0 24px;
  padding: 18px 10px 0;
  border-bottom: 1.5px solid var(--border);
  background-image: linear-gradient(var(--border) 1px, transparent 1px);
  background-size: 100% 25%;
}

.trend-chart > span {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 100%;
}

.trend-chart i,
.trend-chart b {
  display: block;
  width: min(16px, 38%);
  border-radius: 8px 8px 2px 2px;
}

.trend-chart i {
  height: var(--income-height);
  background: var(--green);
}

.trend-chart b {
  height: var(--expense-height);
  background: var(--red);
}

.closing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 22px;
  padding: 38px clamp(28px, 5vw, 58px);
  border-radius: var(--radius);
  background:
    linear-gradient(100deg, rgba(91, 234, 123, 0.18), rgba(255, 216, 77, 0.14), rgba(255, 118, 107, 0.18)),
    var(--surface-solid);
}

.closing h2 {
  max-width: 650px;
  margin-bottom: 0;
}

.status--large {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 10px 18px;
  border-color: var(--ink);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 4px 50px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
}

.footer a {
  text-underline-offset: 3px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
}

.legal-page {
  background-size: 52px 52px, 52px 52px, 100% 520px, 100% 520px;
}

.legal-hero {
  max-width: 900px;
  padding: clamp(70px, 11vw, 130px) clamp(10px, 4vw, 46px) clamp(58px, 9vw, 100px);
}

.legal-hero h1 {
  margin-bottom: 30px;
  font-size: clamp(52px, 8vw, 92px);
}

.legal-hero__description {
  max-width: 680px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 600;
}

.privacy-principles {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.privacy-principle {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  color: #101510;
  font-size: 14px;
  font-weight: 900;
}

.privacy-principle--green {
  background: var(--green);
}

.privacy-principle--yellow {
  background: var(--yellow);
}

.privacy-principle--red {
  background: var(--red);
}

.legal-content {
  display: grid;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.policy-card {
  padding: clamp(25px, 4vw, 42px);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-solid);
}

.policy-card h2 {
  margin-bottom: 14px;
  font-size: clamp(24px, 3vw, 34px);
}

.policy-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.7;
}

.policy-card a {
  color: var(--ink);
  font-weight: 800;
  text-underline-offset: 3px;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-bottom: 0;
  }

  .hero__visual {
    padding-bottom: 54px;
  }

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

  .feature-card {
    min-height: 0;
  }

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

  .showcase__copy {
    grid-row: 1;
  }

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

  .legal-hero {
    padding-top: 64px;
  }
}

@media (max-width: 560px) {
  body {
    background-size: 38px 38px, 38px 38px, 100% 700px, 100% 700px;
    font-size: 17px;
  }

  .page {
    width: min(calc(100% - 22px), var(--page-width));
  }

  .nav {
    align-items: flex-start;
    padding-top: 28px;
  }

  .nav .status {
    max-width: 170px;
    text-align: center;
  }

  .hero {
    gap: 34px;
    padding: 42px 18px 54px;
  }

  h1 {
    font-size: clamp(52px, 17vw, 74px);
  }

  .app-preview {
    padding: 12px;
    border-radius: 28px;
  }

  .balance-card {
    border-radius: 20px;
  }

  .summary-card {
    border-radius: 16px;
  }

  .transaction-list {
    border-radius: 18px;
  }

  .transaction-row {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 11px;
    font-size: 14px;
  }

  .transaction-icon {
    width: 36px;
    height: 36px;
  }

  .transaction-row > strong {
    font-size: 13px;
  }

  .feature-grid {
    gap: 12px;
    padding: 14px 0;
  }

  .feature-card {
    padding: 24px;
    border-radius: 24px;
  }

  .showcase,
  .insights {
    padding: 38px 22px 0;
    border-radius: 28px;
  }

  .showcase {
    gap: 34px;
    padding-bottom: 22px;
  }

  .import-panel,
  .report-card {
    border-radius: 20px;
  }

  .import-option,
  .import-action {
    border-radius: 14px;
  }

  .insights {
    padding-bottom: 22px;
  }

  .screen-pair {
    grid-template-columns: 1fr;
  }

  .closing {
    padding: 30px 24px;
    border-radius: 24px;
  }

  .footer {
    flex-direction: column;
  }

  .footer__links {
    justify-content: flex-start;
  }

  .legal-page {
    background-size: 38px 38px, 38px 38px, 100% 620px, 100% 620px;
  }

  .legal-hero {
    padding: 54px 18px 58px;
  }

  .legal-hero h1 {
    font-size: clamp(48px, 15vw, 68px);
  }

  .policy-card {
    border-radius: 24px;
  }
}

@media (prefers-color-scheme: dark) {
  .app-preview {
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  }

  .note {
    background: linear-gradient(120deg, rgba(83, 223, 115, 0.1), rgba(245, 203, 62, 0.08));
  }

  .closing {
    background:
      linear-gradient(100deg, rgba(83, 223, 115, 0.1), rgba(245, 203, 62, 0.08), rgba(255, 119, 109, 0.1)),
      var(--surface-solid);
  }
}

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

  .button {
    transition: none;
  }
}
