:root {
  --bg: #f7f8f6;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #5f6b7a;
  --line: #dfe6e2;
  --brand: #0e9f6e;
  --brand-dark: #047857;
  --expense: #e5484d;
  --blue: #2563eb;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 20px 48px rgba(15, 23, 42, 0.09);
  --soft-shadow: 0 1px 1px rgba(15, 23, 42, 0.04), 0 12px 30px rgba(15, 23, 42, 0.055);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 14% 8%, rgba(14, 159, 110, 0.16), transparent 30%),
    radial-gradient(circle at 86% 2%, rgba(37, 99, 235, 0.11), transparent 28%),
    var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--brand-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 247, 246, 0.88);
  border-bottom: 1px solid rgba(223, 230, 226, 0.7);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 18px;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 650;
}

.nav-links a {
  color: #334155;
}

.hero {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0 58px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(38px, 5vw, 72px);
  align-items: start;
}

.hero-copy {
  padding-top: 18px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.018em;
}

h1 {
  font-size: clamp(42px, 6vw, 72px);
  max-width: 760px;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
}

h3 {
  font-size: 20px;
}

.lead {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 22px);
  max-width: 680px;
}

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

.hero-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
  width: 178px;
  height: 54px;
  padding: 7px 13px;
  background: #050608;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 13px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.store-badge:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
  text-decoration: none;
}

div.store-badge:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
}

.store-badge:focus-visible {
  outline: 3px solid rgba(14, 159, 110, 0.28);
  outline-offset: 4px;
}

.store-badge svg {
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
}

.app-store svg {
  fill: currentColor;
}

.google-play .play-blue {
  fill: #00a0ff;
}

.google-play .play-green {
  fill: #00d084;
}

.google-play .play-yellow {
  fill: #ffce00;
}

.google-play .play-red {
  fill: #ff4b55;
}

.store-badge span {
  display: grid;
  gap: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.05;
  white-space: nowrap;
}

.store-badge small {
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
  opacity: 0.82;
}

.store-badges.compact {
  justify-content: flex-end;
  margin-top: 0;
}

.qr-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 0;
  text-align: left;
}

.qr-frame {
  display: grid;
  place-items: center;
  flex: 0 0 122px;
  width: 122px;
  height: 122px;
  padding: 7px;
  background: #ffffff;
  border: 2px solid rgba(14, 159, 110, 0.22);
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(18, 78, 52, 0.12);
}

.qr-card img {
  width: 104px;
  height: 104px;
  border-radius: 6px;
}

.qr-card strong,
.qr-card span {
  display: block;
}

.qr-card strong {
  font-size: 17px;
  line-height: 1.2;
}

.qr-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.hero-visual {
  display: grid;
  justify-items: center;
  width: 100%;
  align-self: center;
}

.download-card {
  text-align: center;
}

.download-card .store-badges {
  justify-content: center;
  margin: 30px 0 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.button:focus-visible,
.nav-links a:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(14, 159, 110, 0.28);
  outline-offset: 4px;
}

.button.primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 14px 28px rgba(14, 159, 110, 0.22);
}

.button.primary:hover {
  box-shadow: 0 18px 34px rgba(14, 159, 110, 0.28);
}

.button.danger {
  background: #e11d48;
  color: white;
  box-shadow: 0 14px 28px rgba(225, 29, 72, 0.22);
}

.button.danger:hover {
  box-shadow: 0 18px 34px rgba(225, 29, 72, 0.28);
}

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

.button.secondary:hover {
  border-color: #b7c4bf;
  box-shadow: var(--soft-shadow);
}

.device-showcase {
  position: relative;
  width: min(100%, 510px);
  min-height: 610px;
}

.device-frame {
  position: absolute;
  overflow: hidden;
  background: #0f172a;
  border: 10px solid #0f172a;
  box-shadow: var(--shadow);
}

.device-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.iphone-frame {
  right: 44px;
  top: 18px;
  width: min(292px, 43vw);
  aspect-ratio: 390 / 844;
  border-width: 7px;
  border-radius: 54px;
  z-index: 2;
}

.iphone-frame::before,
.iphone-frame::after {
  content: "";
  position: absolute;
  z-index: 4;
  background: #0f172a;
  border-radius: 999px;
}

.iphone-frame::before {
  left: -11px;
  top: 112px;
  width: 4px;
  height: 78px;
}

.iphone-frame::after {
  right: -11px;
  top: 150px;
  width: 4px;
  height: 88px;
}

.dynamic-island {
  position: absolute;
  top: 13px;
  left: 50%;
  z-index: 3;
  width: 86px;
  height: 25px;
  transform: translateX(-50%);
  background: #0f172a;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.android-frame {
  left: 0;
  top: 120px;
  width: min(248px, 37vw);
  aspect-ratio: 390 / 844;
  border-radius: 34px;
  border-width: 8px;
  z-index: 1;
  transform: rotate(-4deg);
  opacity: 0.96;
}

.android-camera {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 3;
  width: 14px;
  height: 14px;
  transform: translateX(-50%);
  background: #0f172a;
  border: 2px solid #263241;
  border-radius: 999px;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-header p {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 680px;
}

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

.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--soft-shadow);
}

.icon-mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: #dcfce7;
  color: var(--brand-dark);
  border-radius: 14px;
  font-weight: 900;
  margin-bottom: 16px;
}

.icon-mark svg,
.mini-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.story-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 36px;
  align-items: start;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 36px;
  box-shadow: var(--soft-shadow);
}

.story-copy {
  display: grid;
  gap: 16px;
  color: var(--muted);
  font-size: 18px;
}

.story-copy p {
  margin: 0;
}

.trust-section {
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(223, 230, 226, 0.74);
  border-radius: 32px;
  padding: 34px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.trust-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
}

.trust-item strong {
  display: block;
  font-size: 15px;
  line-height: 1.25;
}

.trust-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.mini-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: #ecfdf5;
  color: var(--brand-dark);
  border-radius: 14px;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(145deg, #0e9f6e, #047857);
  color: white;
  border-radius: 34px;
  padding: 36px;
  margin-bottom: 56px;
  box-shadow: 0 24px 54px rgba(4, 120, 87, 0.2);
}

.final-cta .eyebrow,
.final-cta p {
  color: rgba(255, 255, 255, 0.78);
}

.final-cta p {
  margin: 12px 0 0;
  max-width: 620px;
}

.policy-layout {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 80px;
}

.policy-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 52px);
}

.policy-card h1 {
  font-size: clamp(36px, 5vw, 56px);
}

.policy-card h2 {
  font-size: 26px;
  margin-top: 38px;
}

.policy-card h3 {
  margin-top: 24px;
}

.policy-card p,
.policy-card li {
  color: #465365;
}

.policy-card ul {
  padding-left: 22px;
}

.effective {
  color: var(--muted);
  font-weight: 700;
  margin: 12px 0 28px;
}

.notice {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #065f46;
  border-radius: 18px;
  padding: 16px 18px;
  margin: 22px 0;
  font-weight: 650;
}

.notice-danger {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
}

.support-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 24px;
  background: rgba(255, 255, 255, 0.52);
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 42px;
  color: var(--muted);
  font-size: 14px;
}

.footer-brand {
  max-width: 360px;
}

.footer-brand p {
  margin: 12px 0 0;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 42px;
}

.footer-columns div {
  display: grid;
  gap: 8px;
}

.footer-columns strong {
  color: var(--ink);
}

.footer-bottom {
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 13px;
}

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

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 46px;
  }

  .hero-copy {
    padding-top: 0;
  }

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

  .device-showcase {
    min-height: 600px;
    max-width: 510px;
    margin: 0 auto;
    width: 100%;
  }

  .iphone-frame {
    right: 44px;
    width: min(292px, 58vw);
  }

  .android-frame {
    width: min(248px, 48vw);
  }

  .card-grid,
  .support-panel,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .story-section {
    grid-template-columns: 1fr;
    width: min(1120px, calc(100% - 32px));
    padding: 24px;
  }

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

  .final-cta,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .store-badges.compact {
    justify-content: flex-start;
  }

  .trust-section,
  .final-cta {
    width: min(1120px, calc(100% - 32px));
    padding: 24px;
  }
}

@media (max-width: 520px) {
  .device-showcase {
    width: min(100%, 390px);
    min-height: 500px;
  }

  .iphone-frame {
    right: 12px;
    width: 235px;
    border-width: 8px;
    border-radius: 44px;
  }

  .dynamic-island {
    top: 11px;
    width: 72px;
    height: 21px;
  }

  .android-frame {
    left: 0;
    top: 105px;
    width: 198px;
    border-width: 7px;
    border-radius: 30px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .store-badge {
    width: 178px;
    max-width: 100%;
  }

  .qr-card {
    width: min(100%, 320px);
  }
}
