:root {
  color-scheme: light;
  --ink: #112636;
  --muted: #7c8288;
  --paper: #fbfaf6;
  --card: #ffffff;
  --soft: #f1f0eb;
  --line: #e7e2da;
  --green: #155642;
  --blue: #12384a;
  --orange: #e58d75;
  --shadow: 0 28px 80px rgba(17, 38, 54, 0.12);
  --glass: rgba(255, 255, 255, 0.72);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 12% 18%, rgba(229, 141, 117, 0.08), transparent 30rem),
    radial-gradient(circle at 72% 16%, rgba(21, 86, 66, 0.1), transparent 34rem),
    radial-gradient(circle at 88% 78%, rgba(123, 84, 216, 0.07), transparent 30rem),
    linear-gradient(180deg, #fffefa 0%, var(--paper) 54%, #f6f4ee 100%);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  margin: 0;
  min-height: 100vh;
}

a {
  color: inherit;
}

.site-header,
.product-stage,
footer {
  margin: 0 auto;
  max-width: 1280px;
  padding-left: 28px;
  padding-right: 28px;
}

main:not(.product-stage) {
  margin: 0 auto;
  max-width: 1160px;
  padding-left: 28px;
  padding-right: 28px;
}

.privacy-page {
  position: relative;
}

.privacy-page::before {
  background:
    radial-gradient(circle at 18% 14%, rgba(21, 86, 66, 0.08), transparent 22rem),
    radial-gradient(circle at 86% 28%, rgba(123, 84, 216, 0.07), transparent 24rem);
  content: "";
  inset: 0 0 auto;
  height: 460px;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding-bottom: 18px;
  padding-top: 22px;
  position: relative;
  z-index: 10;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 11px;
  font-size: 1.03rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  border-radius: 23%;
  box-shadow: 0 10px 24px rgba(17, 38, 54, 0.11);
}

nav {
  align-items: center;
  display: flex;
  gap: 24px;
}

nav a,
footer a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 760;
  text-decoration: none;
}

nav a:hover,
footer a:hover {
  color: var(--ink);
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(48px, 6.4vw, 94px);
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.82fr);
  min-height: calc(100vh - 80px);
  overflow: visible;
  padding: clamp(30px, 4.4vw, 64px) 0 70px;
}

.copy {
  animation: page-rise 0.7s ease both;
  max-width: 660px;
}

.eyebrow {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(3.25rem, 4.8vw, 5.25rem);
  font-weight: 790;
  letter-spacing: -0.045em;
  line-height: 1;
  margin-bottom: 30px;
  max-width: 620px;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.08rem, 1.34vw, 1.28rem);
  line-height: 1.55;
  max-width: 610px;
}

.benefits {
  display: grid;
  gap: 10px;
  margin: 22px 0 18px;
  max-width: 560px;
}

.benefits div {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 2px;
  padding-top: 12px;
}

.benefits strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

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

.platform-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.platform-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--muted);
  display: inline-flex;
  gap: 18px;
  min-width: 214px;
  padding: 17px 22px;
}

.platform-card.muted {
  background: rgba(255, 255, 255, 0.46);
}

.platform-card.muted .platform-copy strong,
.platform-card.muted .platform-icon {
  color: var(--muted);
}

.platform-icon {
  color: var(--ink);
  display: grid;
  flex: 0 0 auto;
  height: 30px;
  place-items: center;
  width: 30px;
}

.platform-icon svg {
  fill: currentColor;
  height: 24px;
  width: 24px;
}

.platform-copy {
  display: grid;
  gap: 2px;
  justify-items: center;
  min-width: 106px;
  text-align: center;
}

.platform-copy strong {
  color: var(--green);
  display: block;
  font-size: 1.08rem;
  line-height: 1;
}

.platform-copy small {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

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

.button {
  align-items: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 820;
  justify-content: center;
  min-height: 56px;
  min-width: 180px;
  padding: 14px 24px;
  text-decoration: none;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.button.primary {
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #fff;
  box-shadow: 0 16px 32px rgba(18, 56, 74, 0.18);
}

.button.primary:hover {
  box-shadow: 0 22px 44px rgba(18, 56, 74, 0.22);
  transform: translateY(-2px);
}

.button.secondary {
  background: #fff;
  color: var(--ink);
}

.button.secondary:hover {
  box-shadow: 0 16px 32px rgba(17, 38, 54, 0.08);
  transform: translateY(-2px);
}

.auth-bridge {
  align-items: center;
  display: grid;
  min-height: 100vh;
  padding-bottom: 28px;
  padding-top: 28px;
}

.auth-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 520px;
  padding: clamp(28px, 5vw, 44px);
  text-align: center;
}

.auth-card img {
  border-radius: 23%;
  box-shadow: 0 12px 28px rgba(17, 38, 54, 0.12);
  margin-bottom: 18px;
}

.auth-card h1 {
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  margin: 0 0 16px;
}

.auth-card p {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0 auto 24px;
  max-width: 390px;
}

.auth-card .eyebrow {
  margin-bottom: 12px;
}

.auth-card .auth-help {
  font-size: 0.92rem;
  margin: 18px auto 0;
}

.device-wrap {
  --phone-width: clamp(320px, 26vw, 390px);
  animation: page-rise 0.8s 0.12s ease both;
  display: grid;
  justify-items: center;
  min-height: clamp(720px, 58vw, 880px);
  place-items: center;
  position: relative;
}

.phone {
  animation: phone-drift 8s ease-in-out infinite;
  aspect-ratio: 390 / 844;
  background: #111;
  border-radius: 46px;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 56px 130px rgba(17, 38, 54, 0.18),
    0 18px 38px rgba(17, 38, 54, 0.1);
  padding: 10px;
  position: relative;
  transform: rotate(1.6deg);
  width: var(--phone-width);
  z-index: 2;
}

.phone::before {
  background: #050505;
  border-radius: 0 0 17px 17px;
  content: "";
  height: 27px;
  left: 50%;
  position: absolute;
  top: 10px;
  transform: translateX(-50%);
  width: 122px;
  z-index: 2;
}

.phone-top {
  align-items: center;
  background: #fffefa;
  border-radius: 38px 38px 0 0;
  color: var(--ink);
  display: flex;
  font-size: 0.8rem;
  font-weight: 850;
  justify-content: space-between;
  padding: 16px 24px 8px;
}

.camera {
  display: block;
  height: 25px;
  width: 122px;
}

.signal {
  color: var(--muted);
  letter-spacing: 0.08em;
}

.app-preview {
  background:
    radial-gradient(circle at 72% 10%, rgba(21, 86, 66, 0.1), transparent 10rem),
    #fffefa;
  border-radius: 0 0 38px 38px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 28px 20px 18px;
  position: relative;
}

.preview-profile {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.preview-profile span {
  background: #f1f2ee;
  border-radius: 999px;
  box-shadow: 0 14px 32px rgba(17, 38, 54, 0.08);
  display: block;
  height: 38px;
  position: relative;
  width: 38px;
}

.preview-profile span::before {
  border: 3px solid var(--ink);
  border-radius: 999px;
  content: "";
  height: 12px;
  left: 50%;
  position: absolute;
  top: 8px;
  transform: translateX(-50%);
  width: 12px;
}

.preview-profile span::after {
  border: 3px solid var(--ink);
  border-radius: 999px 999px 10px 10px;
  content: "";
  height: 10px;
  left: 50%;
  position: absolute;
  top: 21px;
  transform: translateX(-50%);
  width: 20px;
}

.app-preview h2 {
  font-size: clamp(1.95rem, 7.8vw, 2.18rem);
  letter-spacing: -0.062em;
  line-height: 0.95;
  margin-bottom: 20px;
}

.segmented {
  background: var(--soft);
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 16px;
  padding: 0;
  background: transparent;
}

.segmented span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 840;
  padding: 11px 10px;
  text-align: center;
}

.segmented span:first-child {
  background: #eef4f1;
  border-color: rgba(21, 86, 66, 0.22);
  color: var(--green);
}

.summary-row {
  display: grid;
  gap: 8px;
  grid-template-columns: 1.04fr 1.08fr 1.08fr;
  margin-bottom: 16px;
}

.summary-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px 9px;
}

.summary-card.active {
  background: #edf1ef;
  border-color: rgba(17, 38, 54, 0.18);
}

.summary-card span {
  color: var(--ink);
  font-size: 0.64rem;
  font-weight: 850;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.summary-card strong {
  color: var(--ink);
  font-size: 0.72rem;
  line-height: 1;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.entry {
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  align-items: center;
  display: flex;
  gap: 11px;
  justify-content: space-between;
  margin-top: 12px;
  padding: 0 0 13px;
}

.entry:last-of-type {
  border-bottom: 0;
}

.entry-icon {
  color: var(--green);
  flex: 0 0 auto;
  font-size: 1.18rem;
  font-weight: 900;
}

.entry-icon.expense {
  color: var(--orange);
}

.entry strong {
  display: block;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
}

.entry small {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  line-height: 1.25;
}

.entry b {
  color: var(--green);
  font-size: 0.88rem;
  white-space: nowrap;
}

.entry b.expense {
  color: var(--orange);
}

.tabbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  bottom: 16px;
  box-shadow: 0 14px 34px rgba(17, 38, 54, 0.08);
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(4, 1fr);
  left: 18px;
  padding: 6px;
  position: absolute;
  right: 18px;
}

.tabbar span {
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.64rem;
  font-weight: 820;
  padding: 8px 4px;
  text-align: center;
}

.tabbar .active {
  background: #e9ece8;
  color: var(--green);
}

.floating-card {
  animation: float-card 7s ease-in-out infinite;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-left: 5px solid var(--green);
  border-radius: 24px;
  box-shadow:
    0 26px 58px rgba(17, 38, 54, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: var(--ink);
  display: grid;
  gap: 7px;
  padding: 18px 20px;
  position: absolute;
  width: 218px;
  z-index: 5;
}

.floating-card strong {
  display: block;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.floating-card b {
  font-size: 1.28rem;
  letter-spacing: -0.035em;
  line-height: 1;
}

.floating-card small {
  background: #eaf4ef;
  border-radius: 9px;
  color: var(--green);
  display: block;
  font-size: 0.82rem;
  font-weight: 820;
  line-height: 1.2;
  padding: 7px 9px;
  width: fit-content;
}

.floating-card-income {
  left: -78px;
  top: 104px;
}

.floating-card-expense {
  animation-delay: 1.1s;
  border-left-color: var(--orange);
  right: -78px;
  top: 300px;
}

.floating-card-expense b {
  color: var(--orange);
}

.floating-card-expense small {
  background: #fff0eb;
  color: #b35f4a;
}

.floating-card-export {
  animation-delay: 2.1s;
  border-left-color: #9aa4aa;
  bottom: 78px;
  right: -44px;
  width: 224px;
}

.floating-card-export small {
  background: transparent;
  color: var(--muted);
  padding: 0;
}

.floating-symbol {
  align-items: center;
  background: #eef4f1;
  border-radius: 13px;
  color: var(--green);
  display: inline-flex;
  font-size: 1.25rem;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  margin-right: 3px;
  width: 38px;
}

.floating-progress {
  background: #edf0ec;
  border-radius: 999px;
  display: block;
  height: 8px;
  margin-top: 4px;
  overflow: hidden;
}

.floating-progress i {
  background: linear-gradient(135deg, #9aa4aa, #c4cacd);
  border-radius: inherit;
  display: block;
  height: 100%;
  width: 78%;
}

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

  50% {
    transform: translateY(-16px);
  }
}

@keyframes float-card {
  0%, 100% {
    transform: translateY(0) rotate(-0.6deg);
  }

  50% {
    transform: translateY(-18px) rotate(0.6deg);
  }
}

@keyframes phone-drift {
  0%, 100% {
    transform: rotate(1.6deg) translateY(0);
  }

  50% {
    transform: rotate(0.7deg) translateY(-12px);
  }
}

@keyframes page-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.story-section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr 1fr;
  padding: 78px 0;
}

.story-section > div {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 32px;
}

.story-section h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: -0.065em;
  line-height: 1;
  margin-bottom: 18px;
}

.story-section p:not(.eyebrow) {
  color: var(--muted);
  margin-bottom: 0;
}

.contact-strip {
  align-items: center;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 30px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 72px;
  padding: 22px 26px;
}

.contact-strip p {
  color: var(--muted);
  margin: 0;
}

.contact-strip a {
  color: var(--green);
  font-weight: 850;
  text-decoration: none;
}

.section {
  border-top: 1px solid var(--line);
  padding: 84px 0;
}

.section h1 {
  font-size: clamp(3.2rem, 7vw, 5.8rem);
}

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

article,
.contact {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 18px 48px rgba(17, 38, 54, 0.07);
  padding: 28px;
}

article p,
.contact p,
ul {
  color: var(--muted);
}

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

li + li {
  margin-top: 8px;
}

.contact {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr 1fr;
}

.privacy-hero {
  align-items: end;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  max-width: none;
  padding-bottom: 58px;
}

.privacy-hero h1 {
  margin-bottom: 18px;
}

.privacy-date {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 760;
  margin: 22px 0 0;
}

.privacy-note {
  animation: float-soft 8s ease-in-out infinite;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  box-shadow: 0 24px 58px rgba(17, 38, 54, 0.1);
  display: grid;
  gap: 8px;
  padding: 26px;
}

.privacy-note strong {
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.privacy-note span {
  color: var(--muted);
}

.privacy-simple {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
  padding-top: 62px;
}

.privacy-simple article {
  background: rgba(255, 255, 255, 0.76);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.privacy-simple article:hover {
  box-shadow: 0 24px 58px rgba(17, 38, 54, 0.09);
  transform: translateY(-2px);
}

.privacy-simple article h2 {
  font-size: 1.45rem;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 12px;
}

footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  padding-bottom: 34px;
  padding-top: 28px;
}

footer span {
  color: var(--ink);
  font-weight: 850;
}

@media (max-width: 920px) {
  .hero {
    gap: 46px;
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 76px;
  }

  .device-wrap {
    --phone-width: min(360px, 100%);
    justify-items: start;
  }

  .floating-card {
    display: none;
  }

  .phone {
    animation: none;
    max-width: 360px;
  }

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

  .privacy-simple {
    grid-template-columns: 1fr;
  }

  .privacy-hero {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .privacy-note {
    animation: none;
  }

  .story-section {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 640px) {
  .site-header,
  .product-stage,
  footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  main:not(.product-stage) {
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-header {
    align-items: flex-start;
    display: grid;
    gap: 18px;
  }

  nav {
    gap: 18px;
  }

  h1 {
    font-size: clamp(2.72rem, 12.5vw, 4.05rem);
  }

  .lead {
    font-size: 1.08rem;
  }

  .actions,
  .contact-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .phone {
    border-radius: 42px;
    transform: none;
    width: var(--phone-width);
  }

  .phone-top {
    border-radius: 32px 32px 0 0;
  }

  .app-preview {
    border-radius: 0 0 32px 32px;
  }

  .app-preview h2 {
    font-size: 2.35rem;
  }

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

  .story-section {
    padding: 58px 0;
  }

  .story-section > div {
    border-radius: 26px;
    padding: 26px;
  }
}
