:root {
  color-scheme: dark;
  --background: #123a45;
  --background-dark: #0e2e37;
  --accent: #1bbbc7;
  --accent-soft: #8ddee4;
  --surface-light: #e4f8fa;
  --white: #ffffff;
  --text-soft: #c9dde1;
  --ink: #102e36;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 70px rgba(0, 16, 21, 0.24);
}

* { box-sizing: border-box; }
html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}
.brand img { border-radius: 12px; }
nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 650;
}
nav a:hover, nav a:focus-visible, .footer-links a:hover, .footer-links a:focus-visible { color: var(--white); }
.nav-cta {
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  color: var(--white);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.76fr);
  width: min(1180px, calc(100% - 40px));
  min-height: 720px;
  margin: 0 auto;
  align-items: center;
  gap: 72px;
  padding: 72px 0 86px;
  overflow: clip;
}
.hero::before {
  position: absolute;
  z-index: -1;
  top: 8%;
  left: 0;
  width: 58%;
  height: 72%;
  background: radial-gradient(ellipse closest-side, rgba(27, 187, 199, 0.18), transparent 100%);
  content: "";
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-soft);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(3.1rem, 7.4vw, 6.7rem);
  line-height: 0.97;
  letter-spacing: -0.065em;
}
.hero-text {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--text-soft);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}
.hero-points {
  display: grid;
  max-width: 620px;
  margin: -10px 0 30px;
  padding: 0;
  gap: 10px;
  color: var(--text-soft);
  list-style: none;
}
.hero-points li { display: flex; align-items: center; gap: 11px; }
.hero-points li::before {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 50%;
  background: rgba(27, 187, 199, 0.16);
  color: var(--accent-soft);
  content: "✓";
  font-size: 0.82rem;
  font-weight: 900;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button {
  display: inline-flex;
  min-height: 52px;
  padding: 0 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary {
  background: var(--accent);
  box-shadow: 0 14px 34px rgba(27, 187, 199, 0.25);
  color: #062e34;
}
.button-secondary { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); }
.availability { margin: 18px 0 0; color: #94b4ba; font-size: 0.9rem; }

.app-preview {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: clip;
  justify-content: center;
}
.app-preview::before, .app-preview::after { position: absolute; border-radius: 40px; content: ""; }
.app-preview::before {
  top: 14%;
  right: 5%;
  width: 78%;
  height: 68%;
  border: 1px solid rgba(141, 222, 228, 0.24);
  transform: rotate(4deg);
}
.app-preview::after {
  right: 2%;
  bottom: 4%;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, rgba(27, 187, 199, 0.34), transparent 72%);
}
.phone-shell {
  position: relative;
  z-index: 1;
  width: min(370px, 100%);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 44px;
  background: #071f26;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}
.phone-top {
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 50%;
  width: 94px;
  height: 22px;
  border-radius: 20px;
  background: #05171c;
  transform: translateX(-50%);
}
.phone-screen {
  min-height: 590px;
  padding: 64px 20px 24px;
  overflow: hidden;
  border-radius: 34px;
  background: var(--background);
}
.phone-shell--video .phone-top { display: none; }
.phone-screen--video {
  position: relative;
  aspect-ratio: 864 / 1724;
  min-height: 0;
  padding: 0;
  background: #f4f4f4;
}
.phone-video-frame {
  position: absolute;
  overflow: hidden;
  inset: 0;
}
.phone-video {
  position: absolute;
  top: -11.369%;
  left: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  background: #f4f4f4;
}
.preview-title { display: flex; margin-bottom: 24px; align-items: center; gap: 12px; }
.preview-title img { border-radius: 12px; }
.preview-title strong, .preview-title span { display: block; }
.preview-title strong { font-size: 1.04rem; }
.preview-title span { margin-top: 2px; color: var(--accent-soft); font-size: 0.7rem; letter-spacing: 0.12em; }
.summary-card {
  overflow: hidden;
  border-radius: 20px;
  background: #f0f1f1;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.16);
  color: var(--ink);
}
.summary-card div {
  display: flex;
  padding: 16px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #d8dddd;
  font-size: 0.82rem;
}
.summary-card div:last-child { border-bottom: 0; }
.summary-card strong { color: #0d8955; }
.summary-card .balance { background: #dde3e4; }
.mini-card {
  display: flex;
  margin-top: 16px;
  padding: 20px 18px;
  align-items: center;
  justify-content: space-between;
  border-radius: 18px;
  color: var(--ink);
}
.mini-card span { font-size: 0.71rem; font-weight: 800; letter-spacing: 0.08em; }
.income-card { background: #a9dfad; }
.expense-card { background: #ed989d; }

.feature-section { padding: 104px max(20px, calc((100% - 1180px) / 2)); background: #f4fafb; color: var(--ink); }
.section-heading {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  margin-bottom: 48px;
  align-items: end;
  gap: 22px 68px;
}
.section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: -4px; color: #087982; }
h2 { margin-bottom: 18px; font-size: clamp(2.2rem, 4.7vw, 4.3rem); line-height: 1.04; letter-spacing: -0.045em; }
.section-heading p:last-child, .privacy-section p, .download-section p { color: #527078; font-size: 1.05rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-grid article {
  min-height: 280px;
  padding: 30px;
  border: 1px solid #d8eaed;
  border-radius: 26px;
  background: var(--white);
}
.feature-number {
  display: inline-flex;
  width: 42px;
  height: 42px;
  margin-bottom: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-light);
  color: #087982;
  font-size: 0.8rem;
  font-weight: 850;
}
.feature-grid h3 { margin-bottom: 10px; font-size: 1.35rem; }
.feature-grid p { margin-bottom: 0; color: #5b747a; }

.control-section {
  padding: 104px max(20px, calc((100% - 1180px) / 2));
  background: #e4f3f5;
  color: var(--ink);
}
.control-heading { max-width: 820px; margin-bottom: 44px; }
.control-heading .eyebrow { color: #087982; }
.control-heading > p:last-child { max-width: 680px; margin-bottom: 0; color: #527078; font-size: 1.05rem; }
.control-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.control-grid article {
  min-height: 275px;
  padding: 28px;
  border: 1px solid #cce1e4;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(16, 46, 54, 0.06);
}
.control-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 42px;
  place-items: center;
  border-radius: 16px;
  background: var(--surface-light);
  color: #087982;
}
.control-icon-wide { width: 72px; }
.control-icon svg { width: 34px; height: 34px; overflow: visible; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.4; }
.control-icon-wide svg { width: 58px; }
.control-grid h3 { margin-bottom: 10px; font-size: 1.22rem; }
.control-grid p { margin-bottom: 0; color: #5b747a; }
.control-cta { margin-top: 34px; }

.outcome-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 112px 0;
  align-items: center;
  gap: 76px;
}
.outcome-copy > p:not(.eyebrow) { max-width: 660px; margin-bottom: 28px; color: var(--text-soft); font-size: 1.08rem; }
.outcome-list { display: grid; gap: 14px; }
.outcome-list article {
  display: grid;
  grid-template-columns: 52px 1fr;
  padding: 22px;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
}
.outcome-list strong {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  background: rgba(27, 187, 199, 0.14);
  color: var(--accent-soft);
}
.outcome-list span { color: var(--text-soft); font-weight: 700; }

.privacy-section {
  display: grid;
  grid-template-columns: 170px minmax(0, 720px);
  width: min(1020px, calc(100% - 40px));
  margin: 0 auto;
  padding: 110px 0;
  align-items: center;
  justify-content: center;
  gap: 64px;
}
.privacy-mark {
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  border: 1px solid rgba(141, 222, 228, 0.3);
  border-radius: 38px;
  background: var(--background-dark);
  color: var(--accent);
  font-size: 4rem;
  font-weight: 900;
  transform: rotate(-5deg);
}
.privacy-section p { color: var(--text-soft); }
.text-link { color: var(--accent-soft); font-weight: 800; }

.faq-section { width: min(1020px, calc(100% - 40px)); margin: 0 auto; padding: 0 0 110px; }
.faq-heading { max-width: 760px; margin-bottom: 34px; }
.faq-list { display: grid; gap: 12px; }
.faq-list details {
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--background-dark);
}
.faq-list summary {
  padding: 22px 42px 22px 0;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 800;
}
.faq-list details[open] summary { color: var(--accent-soft); }
.faq-list p { max-width: 820px; margin-bottom: 22px; color: var(--text-soft); }

.download-section {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 84px;
  padding: 38px;
  align-items: center;
  gap: 30px;
  border-radius: 30px;
  background: var(--accent);
  color: #062e34;
}
.download-section img { border-radius: 24px; box-shadow: 0 14px 32px rgba(0, 33, 40, 0.2); }
.download-section .eyebrow, .download-section p { color: #0b5e66; }
.download-section h2 { margin-bottom: 8px; font-size: clamp(1.8rem, 3.4vw, 3rem); }
.download-section p { margin-bottom: 0; }
.button-light { background: var(--white); color: var(--ink); }

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 48px;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: #96b2b8;
  font-size: 0.9rem;
}
.footer-brand { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; }
.footer-brand strong { color: var(--white); letter-spacing: 0.14em; }
.footer-links { display: flex; gap: 22px; }
footer > p { grid-column: 1 / -1; margin: 0; }
.footer-origin {
  display: flex;
  width: 100%;
  padding-top: 28px;
  justify-content: flex-start;
}
.footer-origin img {
  display: block;
  width: clamp(140px, 12vw, 180px);
  height: auto;
  margin: 0;
}

.legal-main { width: min(860px, calc(100% - 40px)); margin: 0 auto; padding: 82px 0 110px; }
.legal-main h1 { margin-bottom: 18px; font-size: clamp(2.7rem, 7vw, 5rem); }
.legal-intro { margin-bottom: 44px; color: var(--text-soft); font-size: 1.1rem; }
.legal-card { padding: clamp(24px, 5vw, 54px); border-radius: 28px; background: #f5fafb; color: var(--ink); }
.legal-card h2 { margin-top: 42px; margin-bottom: 12px; font-size: 1.45rem; letter-spacing: -0.02em; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p, .legal-card li { color: #45646c; }
.legal-card a { color: #087982; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  nav > a:not(.nav-cta) { display: none; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; }
  .hero-copy { text-align: center; }
  .hero-text { margin-right: auto; margin-left: auto; }
  .hero-points { width: fit-content; margin-right: auto; margin-left: auto; text-align: left; }
  .hero-actions { justify-content: center; }
  .section-heading, .feature-grid, .outcome-section, .privacy-section, .download-section { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 0; }
  .feature-number { margin-bottom: 28px; }
  .control-grid { grid-template-columns: repeat(2, 1fr); }
  .control-grid article { min-height: 245px; }
  .outcome-section { gap: 42px; }
  .privacy-section { gap: 34px; }
  .privacy-mark { width: 110px; height: 110px; border-radius: 28px; font-size: 3rem; }
  .download-section { text-align: center; }
  .download-section img { margin: 0 auto; }
  .download-section .button { justify-self: center; }
  .hero-copy,
  .section-heading,
  .control-heading,
  .outcome-copy,
  .outcome-list,
  .privacy-section > div,
  .download-section > div {
    min-width: 0;
  }
}

@media (max-width: 620px) {
  main,
  section,
  header,
  footer {
    max-width: 100%;
  }
  .site-header { width: min(100% - 28px, 1180px); }
  .brand img { width: 38px; height: 38px; }
  .brand span { font-size: 0.9rem; }
  .nav-cta { padding: 8px 14px; }
  .hero, .outcome-section, .privacy-section, .faq-section, .download-section, footer, .legal-main { width: min(100% - 28px, 1180px); }
  .hero { min-height: 0; padding-bottom: 68px; }
  .hero-copy { width: 100%; }
  .hero-actions { width: 100%; align-items: stretch; }
  .hero-actions .button { width: 100%; max-width: 100%; white-space: normal; text-align: center; }
  h1 { font-size: clamp(2.85rem, 15vw, 4.4rem); }
  .phone-shell { width: min(340px, 100%); }
  .feature-section { padding: 74px 14px; }
  .control-section { padding: 74px 14px; }
  .control-grid { grid-template-columns: 1fr; }
  .control-grid article { min-height: 0; }
  .control-icon { margin-bottom: 28px; }
  .outcome-section { padding: 78px 0; }
  .privacy-section { padding: 78px 0; }
  .faq-section { padding-bottom: 78px; }
  .faq-list details { padding: 0 18px; }
  .download-section { margin-bottom: 58px; padding: 30px 22px; }
  .download-section .button { width: 100%; max-width: 100%; white-space: normal; text-align: center; }
  footer { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 10px; }
  .footer-origin { justify-content: flex-start; }
  .footer-origin img { width: min(160px, 46vw); }
}

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