:root {
  --primary: #33586B;
  --dark: #10252F;
  --navy: #273671;
  --soft: #ECECEC;
  --page: #F5F7FA;
  --surface: #FFFFFF;
  --accent: #273671;
  --heading: #121212;
  --muted: #8C8E98;
  --success: #37E34B;
  --warning: #BC0606;
  --line: #D9D8D8;
  --text-on-dark: #F2F3F4;
  --ink: var(--heading);
  --green: var(--success);
  --blue: var(--primary);
  --gold: var(--warning);
  --shadow: 0 18px 46px rgba(16, 37, 47, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(217, 216, 216, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand img {
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a:hover,
.text-link:hover,
.site-footer a:hover {
  color: var(--primary);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  align-items: center;
  gap: clamp(28px, 6vw, 86px);
  min-height: calc(100vh - 65px);
  padding: clamp(42px, 8vw, 92px) clamp(18px, 6vw, 96px) clamp(30px, 6vw, 72px);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(245, 247, 250, 0.97) 0%, rgba(245, 247, 250, 0.9) 48%, rgba(245, 247, 250, 0.72) 100%),
    url("assets/finance-hero.jpg") center / cover;
  z-index: -1;
}

.hero-content {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(2.55rem, 7vw, 5.9rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.hero-copy {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 800;
}

.button.primary {
  color: #ffffff;
  background: var(--primary);
}

.button.secondary {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
}

.phone-preview {
  justify-self: center;
  width: min(100%, 420px);
  margin: 0;
  padding: 18px;
  background: var(--primary);
  border: 1px solid rgba(16, 37, 47, 0.28);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.phone-top,
.app-row,
.app-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-top {
  color: var(--text-on-dark);
  padding: 6px 8px 18px;
}

.phone-top span {
  width: 28px;
  height: 4px;
  background: rgba(242, 243, 244, 0.72);
  border-radius: 999px;
}

.balance-panel {
  display: grid;
  gap: 5px;
  padding: 22px;
  color: #ffffff;
  background: var(--navy);
  border-radius: 20px;
}

.balance-panel span,
.balance-panel small {
  color: rgba(255, 255, 255, 0.78);
}

.balance-panel strong {
  font-size: 2rem;
}

.mini-chart {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 10px;
  height: 120px;
  margin: 18px 0;
  padding: 18px;
  background: var(--text-on-dark);
  border-radius: 20px;
}

.mini-chart span {
  display: block;
  min-height: 28px;
  background: var(--primary);
  border-radius: 8px 8px 4px 4px;
}

.app-row {
  gap: 12px;
  margin-top: 10px;
  padding: 14px;
  background: var(--text-on-dark);
  border-radius: 18px;
}

.app-row div {
  display: grid;
  flex: 1;
}

.app-row small {
  color: var(--muted);
}

.row-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.row-icon.food {
  background: var(--primary);
}

.row-icon.income {
  background: var(--success);
}

.app-tabs {
  gap: 14px;
  margin-top: 16px;
  padding: 12px 28px;
}

.app-tabs span {
  width: 42px;
  height: 6px;
  background: rgba(242, 243, 244, 0.72);
  border-radius: 999px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats div {
  display: grid;
  gap: 4px;
  padding: 24px clamp(18px, 4vw, 54px);
  background: var(--surface);
}

.stats strong {
  font-size: 1.05rem;
}

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

.section {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 6vw, 96px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

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

.feature-card {
  min-height: 220px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(16, 37, 47, 0.06);
}

.feature-card p,
.privacy-panel p,
.policy-content p,
.faq p {
  color: var(--muted);
}

.icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 24px;
  color: #ffffff;
  background: var(--primary);
  border-radius: 8px;
  font-weight: 900;
}

.feature-card:nth-child(2n) .icon {
  background: var(--navy);
}

.feature-card:nth-child(3n) .icon {
  background: var(--dark);
}

.screens-section {
  background: var(--soft);
  padding-top: clamp(34px, 5vw, 64px);
  padding-bottom: clamp(28px, 4vw, 54px);
}

.screens-section .section-heading {
  margin-bottom: 20px;
}

.screen-mockups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 3vw, 24px);
  align-items: end;
}

.screen-mockups-full {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.screen-shot {
  display: grid;
  justify-items: center;
}

.screen-shot img {
  width: min(100%, 252px);
  height: auto;
  border-radius: 32px;
  filter: drop-shadow(0 18px 28px rgba(16, 37, 47, 0.16));
}

.screen-phone {
  display: grid;
  gap: 18px;
  min-height: 440px;
  padding: 18px;
  color: var(--heading);
  background: var(--primary);
  border: 1px solid rgba(16, 37, 47, 0.24);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.screen-phone.featured {
  min-height: 500px;
}

.screen-bar {
  justify-self: center;
  width: 58px;
  height: 5px;
  background: rgba(242, 243, 244, 0.72);
  border-radius: 999px;
}

.screen-title {
  display: grid;
  gap: 6px;
  padding: 18px;
  color: #ffffff;
  background: var(--navy);
  border-radius: 20px;
}

.screen-title span {
  color: rgba(255, 255, 255, 0.78);
}

.screen-title strong {
  font-size: 1.8rem;
}

.screen-list,
.screen-chart,
.screen-ring {
  min-height: 190px;
  padding: 18px;
  background: var(--text-on-dark);
  border-radius: 22px;
}

.screen-list {
  display: grid;
  align-content: center;
  gap: 16px;
}

.screen-list span {
  display: block;
  height: 14px;
  background: var(--primary);
  border-radius: 999px;
}

.screen-chart {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 12px;
}

.screen-chart span {
  min-height: 40px;
  background: var(--primary);
  border-radius: 10px 10px 5px 5px;
}

.screen-ring {
  display: grid;
  place-items: center;
}

.screen-ring span {
  width: 140px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--text-on-dark) 0 48%, transparent 49%),
    conic-gradient(var(--success) 0 68%, #D9D8D8 68% 100%);
}

.screen-phone p {
  align-self: end;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
  text-align: center;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  background: var(--page);
}

.privacy-panel {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.text-link {
  display: inline-flex;
  color: var(--primary);
  font-weight: 800;
}

.download-section {
  background: var(--primary);
  color: var(--text-on-dark);
}

.download-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 240px);
  gap: clamp(18px, 4vw, 54px);
  align-items: center;
}

.download-inner .section-heading {
  margin-bottom: 26px;
}

.download-section .eyebrow,
.download-section h2 {
  color: var(--text-on-dark);
}

.download-section p {
  color: rgba(242, 243, 244, 0.82);
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.download-screen {
  justify-self: end;
  width: min(100%, 240px);
  border-radius: 28px;
  filter: drop-shadow(0 22px 34px rgba(16, 37, 47, 0.22));
}

.store-button {
  display: inline-flex;
  min-width: 168px;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--heading);
  background: var(--text-on-dark);
  border: 1px solid rgba(16, 37, 47, 0.14);
  border-radius: 8px;
  font-weight: 800;
}

.store-button:hover {
  background: #ffffff;
}

.store-button small,
.store-button strong {
  display: block;
}

.store-button small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.store-button strong {
  font-size: 1.08rem;
}

.store-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
}

.store-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.legal-links {
  display: grid;
  gap: 10px;
}

.faq {
  max-width: 980px;
}

details {
  border-top: 1px solid var(--line);
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  padding: 20px 0;
  font-weight: 800;
}

.contact-section {
  background: var(--surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 320px));
  gap: 12px;
}

.contact-card {
  min-height: 105px;
  padding: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.contact-card-header .icon {
  width: 28px;
  height: 28px;
  margin-bottom: 0;
  font-size: 0.82rem;
}

.contact-card-header h3 {
  margin: 0;
  font-size: 1rem;
}

.contact-card a {
  color: var(--primary);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.contact-card p {
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 6vw, 96px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer span {
  color: var(--ink);
  font-weight: 900;
}

.site-footer div {
  display: flex;
  gap: 18px;
}

.policy-page {
  background: var(--soft);
}

.policy-hero,
.policy-content {
  width: min(900px, calc(100% - 36px));
  margin: 0 auto;
}

.policy-hero {
  padding: clamp(54px, 8vw, 96px) 0 28px;
}

.policy-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.policy-content {
  padding: 34px 0 84px;
}

.policy-source {
  padding: 12px 14px;
  color: var(--primary);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.policy-content h2 {
  margin-top: 28px;
  font-size: 1.35rem;
}

.policy-content ul {
  margin: 0 0 22px;
  padding-left: 22px;
  color: var(--muted);
}

.policy-content li {
  margin: 8px 0;
}

.policy-content a {
  color: var(--primary);
  font-weight: 800;
}

.support-content {
  padding-top: 12px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.support-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 300px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(16, 37, 47, 0.06);
}

.support-card .icon {
  margin-bottom: 6px;
}

.support-card h2 {
  margin-bottom: 0;
  font-size: 1.28rem;
}

.support-card p {
  color: var(--muted);
}

.support-card .button {
  width: fit-content;
  margin-top: auto;
}

.support-links {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

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

  .hero {
    min-height: auto;
  }

  .phone-preview {
    width: min(78vw, 360px);
  }

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

  .screen-mockups,
  .screen-mockups-full {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screen-phone,
  .screen-phone.featured {
    width: min(100%, 380px);
    min-height: 420px;
    margin: 0 auto;
  }

  .screen-shot img {
    width: min(100%, 168px);
  }

}

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

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .stats,
  .feature-grid,
  .contact-grid,
  .screen-mockups,
  .screen-mockups-full,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .download-inner {
    grid-template-columns: 1fr;
  }

  .download-screen {
    justify-self: center;
    width: min(100%, 130px);
  }

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