:root {
  color: #1a1a1a;
  background: #f9f9f7;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --brand: #10b981;
  --brand-dark: #24694f;
  --ink: #1a1a1a;
  --muted: #666666;
  --subtle: #6b7280;
  --canvas: #f9f9f7;
  --surface: #ffffff;
  --soft: #f3f4f1;
  --border: #e5e5e0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
}

.teaser-page {
  background:
    radial-gradient(circle at 76% 24%, rgb(16 185 129 / 9%), transparent 30%), var(--canvas);
  color: var(--ink);
  min-height: 100svh;
}

.teaser-main {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100svh;
  overflow: hidden;
  padding: 40px 24px;
}

.teaser-title {
  font-size: clamp(52px, 9vw, 136px);
  font-weight: 760;
  letter-spacing: -0.072em;
  line-height: 0.94;
  margin: 0;
  text-align: center;
  text-wrap: balance;
}

.teaser-title span {
  color: var(--brand);
}

a {
  color: inherit;
}

button,
select {
  font: inherit;
}

.site-shell {
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 32px;
}

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 88px;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 20px;
  font-weight: 750;
  gap: 12px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

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

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

.language-control {
  align-items: center;
  display: flex;
  gap: 8px;
}

.language-control label {
  color: var(--subtle);
  font-size: 13px;
}

.language-control select {
  appearance: none;
  background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 12px center;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  min-height: 42px;
  padding: 0 36px 0 14px;
}

.language-control select:focus-visible,
.button:focus-visible,
.footer-links a:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgb(16 185 129 / 28%);
  outline-offset: 3px;
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(48px, 8vw, 104px);
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  min-height: calc(100vh - 176px);
  padding: 70px 0 96px;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  align-items: center;
  color: var(--brand-dark);
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 10px;
  letter-spacing: 0.08em;
  margin: 0 0 22px;
  text-transform: uppercase;
}

.eyebrow::before {
  background: var(--brand);
  border-radius: 50%;
  content: '';
  height: 8px;
  width: 8px;
}

h1 {
  font-size: clamp(44px, 5.5vw, 76px);
  letter-spacing: -0.052em;
  line-height: 1.03;
  margin: 0;
  max-width: 680px;
  white-space: pre-line;
}

.hero-intro {
  color: var(--muted);
  font-size: clamp(18px, 1.7vw, 21px);
  letter-spacing: -0.02em;
  line-height: 1.65;
  margin: 28px 0 0;
  max-width: 610px;
}

.feature-list {
  display: grid;
  gap: 22px;
  list-style: none;
  margin: 42px 0 0;
  padding: 0;
}

.feature-item {
  display: grid;
  gap: 14px;
  grid-template-columns: 28px minmax(0, 1fr);
}

.feature-check {
  align-items: center;
  background: #e7f8f1;
  border-radius: 50%;
  color: var(--brand-dark);
  display: inline-flex;
  height: 28px;
  justify-content: center;
  margin-top: 2px;
  width: 28px;
}

.feature-check svg {
  height: 15px;
  width: 15px;
}

.feature-text strong {
  display: block;
  font-size: 17px;
  letter-spacing: -0.018em;
  line-height: 1.45;
}

.feature-text p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 3px 0 0;
  max-width: 520px;
}

.download-stage {
  justify-self: end;
  max-width: 470px;
  position: relative;
  width: 100%;
}

.download-stage::before {
  background: #dff7ed;
  border-radius: 44px;
  content: '';
  inset: 34px -30px -30px 38px;
  position: absolute;
  transform: rotate(2deg);
}

.download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgb(36 105 79 / 13%);
  overflow: hidden;
  position: relative;
}

.app-preview {
  background: var(--canvas);
  border-bottom: 1px solid var(--border);
  padding: 26px 26px 0;
}

.phone-screen {
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 14px 34px rgb(0 0 0 / 8%);
  margin: 0 auto;
  max-width: 340px;
  min-height: 292px;
  overflow: hidden;
}

.phone-bar {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 18px;
}

.phone-title {
  font-size: 16px;
  font-weight: 680;
}

.status-pill {
  background: #e7f8f1;
  border-radius: 999px;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 9px;
}

.balance-block {
  padding: 20px 20px 16px;
}

.balance-label {
  color: var(--muted);
  font-size: 12px;
}

.balance-value {
  font-size: 31px;
  font-weight: 780;
  letter-spacing: -0.04em;
  margin-top: 5px;
}

.expense-block {
  border-top: 1px solid var(--border);
  padding: 15px 20px 22px;
}

.expense-heading {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 7px;
}

.expense-row {
  align-items: center;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 58px;
}

.expense-row:first-of-type {
  border-top: 0;
}

.expense-name {
  font-size: 13px;
  font-weight: 650;
}

.expense-meta {
  color: var(--subtle);
  font-size: 11px;
  margin-top: 3px;
}

.expense-amount {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.expense-amount.positive {
  color: var(--brand-dark);
}

.download-content {
  padding: 30px;
}

.app-identity {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 56px minmax(0, 1fr);
}

.app-identity .brand-mark {
  border-radius: 16px;
  height: 56px;
  width: 56px;
}

.app-identity .brand-mark svg {
  height: 30px;
  width: 30px;
}

.app-label {
  color: var(--subtle);
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}

.app-name {
  font-size: 22px;
  font-weight: 760;
  letter-spacing: -0.025em;
  margin: 2px 0 0;
}

.availability {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
  margin: 25px 0 10px;
}

.download-content h2 {
  font-size: 27px;
  letter-spacing: -0.035em;
  line-height: 1.25;
  margin: 0;
}

.download-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 12px 0 22px;
}

.button {
  align-items: center;
  background: var(--brand);
  border-radius: 14px;
  color: #ffffff;
  display: inline-flex;
  font-size: 16px;
  font-weight: 680;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  text-decoration: none;
  transition:
    background 160ms ease,
    transform 160ms ease;
  width: 100%;
}

.button[href]:hover {
  background: #0da573;
  transform: translateY(-1px);
}

.button.is-unavailable {
  background: #cdd4cf;
  color: #526058;
  cursor: not-allowed;
}

.download-hint {
  color: var(--subtle);
  font-size: 12px;
  line-height: 1.5;
  margin: 10px 0 0;
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 36px;
}

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

.footer-copy {
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.footer-copy span {
  display: block;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.legal-main {
  margin: 0 auto;
  max-width: 850px;
  padding: 64px 32px 112px;
}

.legal-kicker {
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.legal-main h1 {
  font-size: clamp(40px, 7vw, 62px);
  max-width: none;
}

.legal-meta {
  color: var(--subtle);
  font-size: 14px;
  margin: 20px 0 0;
}

.legal-summary {
  background: #e7f8f1;
  border: 1px solid #ccefe1;
  border-radius: 14px;
  color: var(--brand-dark);
  font-size: 15px;
  line-height: 1.7;
  margin: 36px 0 48px;
  padding: 18px 20px;
}

.legal-content h2 {
  font-size: 23px;
  letter-spacing: -0.025em;
  line-height: 1.35;
  margin: 46px 0 14px;
  scroll-margin-top: 24px;
}

.legal-content h3 {
  font-size: 17px;
  line-height: 1.45;
  margin: 26px 0 8px;
}

.legal-content p,
.legal-content li {
  color: #454545;
  font-size: 15px;
  line-height: 1.82;
}

.legal-content p {
  margin: 0 0 14px;
}

.legal-content ul,
.legal-content ol {
  margin: 10px 0 18px;
  padding-left: 24px;
}

.legal-content li + li {
  margin-top: 7px;
}

.legal-content a {
  color: var(--brand-dark);
  text-underline-offset: 3px;
}

.legal-note {
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-top: 40px;
  padding: 18px 20px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 56px;
  }

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

  .download-stage {
    justify-self: center;
  }
}

@media (max-width: 620px) {
  .teaser-main {
    padding: 32px 20px;
  }

  .teaser-title {
    font-size: clamp(48px, 15vw, 68px);
    letter-spacing: -0.065em;
  }

  .site-shell {
    padding: 0 20px;
  }

  .site-header {
    min-height: 72px;
  }

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    border-radius: 11px;
    height: 40px;
    width: 40px;
  }

  .language-control label {
    display: none;
  }

  .language-control select {
    min-height: 40px;
    padding-left: 12px;
  }

  .hero {
    gap: 52px;
    padding: 52px 0 72px;
  }

  h1 {
    font-size: clamp(40px, 11vw, 44px);
  }

  .hero-intro {
    font-size: 18px;
  }

  .feature-list {
    gap: 20px;
    margin-top: 34px;
  }

  .download-stage::before {
    inset: 22px -8px -18px 18px;
  }

  .download-card {
    border-radius: 22px;
  }

  .app-preview {
    padding: 18px 18px 0;
  }

  .phone-screen {
    min-height: 270px;
  }

  .download-content {
    padding: 25px 22px 24px;
  }

  .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    gap: 16px;
    justify-content: flex-start;
  }

  .legal-main {
    padding: 48px 20px 80px;
  }

  .legal-main h1 {
    font-size: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
