:root {
  color-scheme: light;
  --crema: #f2ecdd;
  --tinta: #221d17;
  --salvia: #7c8f6c;
  --mostaza: #e0a550;
  --terracota: #bc623a;
  --cacao: #4e3b23;
  --divider: #e5ddc8;
  --muted: #6f675d;
  --paper: #fbf7ed;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a.card {
  display: block;
  text-decoration: none;
}

a.card:hover {
  border-color: rgba(34, 29, 23, 0.2);
  transform: translateY(-2px);
}

.site-header {
  border-bottom: 1px solid rgba(34, 29, 23, 0.1);
  background: rgba(242, 236, 221, 0.92);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  padding: 18px 24px;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--tinta);
  border-radius: 14px;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.brand-mark svg {
  height: 28px;
  width: 28px;
}

.brand-name {
  font-family: Fraunces, Georgia, serif;
  font-size: 30px;
  font-style: italic;
  font-weight: 650;
  letter-spacing: 0;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 20px;
  font-size: 15px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--tinta);
}

.button {
  align-items: center;
  background: var(--tinta);
  border: 1px solid var(--tinta);
  border-radius: 999px;
  color: var(--crema);
  display: inline-flex;
  font-weight: 650;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--tinta);
}

.hero {
  margin: 0 auto;
  max-width: var(--max);
  padding: 88px 24px 48px;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: 52px;
  grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.78fr);
}

.eyebrow {
  color: var(--salvia);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0;
}

h1 {
  font-size: clamp(48px, 8vw, 92px);
  max-width: 760px;
}

h2 {
  font-size: clamp(34px, 5vw, 58px);
}

h3 {
  font-size: 25px;
}

.lead {
  color: var(--cacao);
  font-size: clamp(19px, 2.2vw, 24px);
  margin: 26px 0 0;
  max-width: 650px;
}

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

.app-preview {
  display: flex;
  justify-content: center;
}

.preview-frame {
  background:
    linear-gradient(145deg, rgba(242, 236, 221, 0.16), rgba(34, 29, 23, 0.08)),
    var(--tinta);
  border: 1px solid rgba(242, 236, 221, 0.22);
  border-radius: 42px;
  box-shadow: 0 34px 90px rgba(34, 29, 23, 0.28);
  max-width: 372px;
  padding: 10px;
  position: relative;
  width: 100%;
}

.preview-frame::before {
  background: rgba(242, 236, 221, 0.34);
  border-radius: 999px;
  content: "";
  height: 4px;
  left: 50%;
  position: absolute;
  top: 6px;
  transform: translateX(-50%);
  width: 58px;
  z-index: 1;
}

.app-surface {
  background: var(--crema);
  border: 1px solid rgba(242, 236, 221, 0.2);
  border-radius: 34px;
  min-height: 610px;
  overflow: hidden;
  padding: 58px 24px 104px;
  position: relative;
  width: 100%;
}

.app-top {
  align-items: center;
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  margin-bottom: 26px;
}

.app-top strong {
  color: var(--tinta);
  font-family: Fraunces, Georgia, serif;
  font-size: 25px;
  font-style: italic;
  line-height: 1;
  text-align: center;
}

.settings-icon {
  color: var(--tinta);
  font-size: 24px;
  line-height: 1;
  text-align: right;
}

.app-muted {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 18px;
}

.app-label {
  color: var(--tinta);
  font-size: 15px;
  margin: 0;
}

.app-balance {
  color: var(--tinta);
  font-size: 50px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  margin: 6px 0 24px;
}

.app-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
}

.app-filters span {
  background: var(--mostaza);
  border-radius: 999px;
  color: var(--tinta);
  font-size: 15px;
  padding: 8px 15px;
}

.app-section-label {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
}

.app-pill {
  align-items: center;
  border-radius: 999px;
  color: var(--crema);
  display: flex;
  font-size: 16px;
  justify-content: space-between;
  margin-bottom: 10px;
  min-height: 42px;
  padding: 0 16px;
}

.app-pill.income {
  background: var(--salvia);
}

.app-pill.expense {
  background: var(--terracota);
}

.categories-label {
  margin-top: 34px;
}

.app-empty {
  color: var(--tinta);
  font-size: 17px;
  margin: 0;
}

.app-tabbar {
  align-items: center;
  background: rgba(78, 59, 35, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  bottom: 22px;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(3, 1fr);
  left: 18px;
  min-height: 62px;
  padding: 5px;
  position: absolute;
  right: 82px;
}

.app-tabbar span {
  align-items: center;
  border-radius: 999px;
  color: var(--crema);
  display: flex;
  flex-direction: column;
  font-size: 17px;
  justify-content: center;
  min-width: 0;
  padding: 6px 4px;
}

.app-tabbar span.active {
  background: var(--mostaza);
  color: var(--tinta);
}

.app-tabbar small {
  display: block;
  font-size: 10px;
  line-height: 1.1;
  margin-top: 3px;
}

.app-add {
  align-items: center;
  background: var(--terracota);
  border-radius: 999px;
  bottom: 22px;
  color: var(--crema);
  display: flex;
  font-size: 31px;
  height: 62px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 18px;
  width: 62px;
}

.row {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

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

.mock-card .muted {
  color: rgba(242, 236, 221, 0.6);
}

.section {
  margin: 0 auto;
  max-width: var(--max);
  padding: 72px 24px;
}

.section-intro {
  color: var(--cacao);
  font-size: 19px;
  margin: 18px 0 0;
  max-width: 720px;
}

.feature-grid,
.doc-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.card {
  background: var(--paper);
  border: 1px solid rgba(34, 29, 23, 0.09);
  border-radius: 8px;
  padding: 24px;
  transition: border-color 160ms ease, transform 160ms ease;
}

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

.tag {
  border: 1px solid var(--divider);
  border-radius: 999px;
  color: var(--cacao);
  display: inline-flex;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 16px;
  padding: 6px 10px;
}

.seo-band {
  background: var(--tinta);
  color: var(--crema);
  margin-top: 36px;
}

.seo-band .section-intro,
.seo-band .muted {
  color: rgba(242, 236, 221, 0.72);
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.keyword-list span {
  border: 1px solid rgba(242, 236, 221, 0.18);
  border-radius: 999px;
  color: rgba(242, 236, 221, 0.84);
  padding: 8px 12px;
}

.legal-page {
  margin: 0 auto;
  max-width: 880px;
  padding: 64px 24px 96px;
}

.legal-page h1 {
  font-size: clamp(42px, 7vw, 72px);
}

.legal-page h2 {
  border-top: 1px solid var(--divider);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 24px;
  line-height: 1.25;
  margin-top: 38px;
  padding-top: 28px;
}

.legal-page h3 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 18px;
  line-height: 1.3;
  margin-top: 26px;
}

.legal-page p,
.legal-page li {
  color: var(--cacao);
}

.legal-page table {
  border-collapse: collapse;
  margin-top: 18px;
  width: 100%;
}

.legal-page th,
.legal-page td {
  border: 1px solid var(--divider);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.legal-page th {
  background: var(--paper);
}

.notice {
  background: var(--paper);
  border: 1px solid var(--divider);
  border-left: 5px solid var(--salvia);
  border-radius: 8px;
  color: var(--cacao);
  margin: 28px 0;
  padding: 18px;
}

.site-footer {
  border-top: 1px solid rgba(34, 29, 23, 0.1);
  margin: 0 auto;
  max-width: var(--max);
  padding: 34px 24px 46px;
}

.footer-grid {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr auto;
}

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

.footer-links a {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 860px) {
  .nav {
    align-items: center;
    flex-direction: row;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-grid {
    gap: 40px;
  }

  .hero-grid,
  .feature-grid,
  .doc-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .app-preview {
    order: -1;
  }

  .app-surface {
    max-width: 340px;
  }

  .preview-frame {
    max-width: 320px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 32px 20px 40px;
  }

  .eyebrow {
    font-size: 12px;
    margin-bottom: 12px;
  }

  h1 {
    font-size: clamp(34px, 9vw, 48px);
    line-height: 1.08;
  }

  .lead {
    font-size: 17px;
    margin-top: 16px;
  }

  .hero-actions {
    flex-direction: column;
    margin-top: 26px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .section {
    padding: 48px 20px;
  }

  h2 {
    font-size: clamp(28px, 7vw, 40px);
  }

  .section-intro {
    font-size: 17px;
  }
}

@media (max-width: 520px) {
  .site-header .nav {
    padding: 14px 20px;
  }

  .brand-name {
    font-size: 24px;
  }

  .brand-mark {
    height: 36px;
    width: 36px;
  }

  .brand-mark svg {
    height: 22px;
    width: 22px;
  }

  .nav-links a:not(.button) {
    display: none;
  }

  .nav-links .button {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 14px;
  }

  .app-surface {
    min-height: 520px;
    padding: 44px 18px 96px;
  }

  .app-balance {
    font-size: 42px;
  }

  .app-tabbar {
    right: 74px;
  }
}
