:root {
  --bg: #f7fbf9;
  --surface: #ffffff;
  --surface-soft: #eef8f4;
  --ink: #102629;
  --muted: #607570;
  --line: #d9e5e1;
  --accent: #0a8769;
  --accent-strong: #075f4b;
  --footer: #071b1f;
  --font: Inter, Manrope, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem clamp(1rem, 3vw, 2.5rem);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.brand,
.site-nav,
.store-links,
.header-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.12rem;
  white-space: nowrap;
}

.brand-mark {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.65rem;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-strong), #37d19d);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(10, 135, 105, 0.24);
}

.header-actions {
  gap: clamp(0.75rem, 2vw, 1.35rem);
}

.site-nav {
  gap: clamp(0.7rem, 1.6vw, 1.1rem);
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
}

.store-links {
  gap: 0.6rem;
  flex-wrap: wrap;
}

.store-links a {
  display: inline-flex;
  width: 144px;
  height: 48px;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease, filter 180ms ease;
}

.store-links a:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.store-links img {
  display: block;
  width: 144px;
  height: 48px;
  object-fit: contain;
}

.hero {
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 450px);
  align-items: center;
  gap: clamp(1.4rem, 4vw, 3rem);
  padding: clamp(1.45rem, 3.4vw, 2.8rem) clamp(1rem, 4vw, 3rem);
  background:
    linear-gradient(90deg, rgba(247, 251, 249, 0.98) 0%, rgba(247, 251, 249, 0.94) 52%, rgba(247, 251, 249, 0.55) 100%),
    url("assets/hero-fintech.jpg");
  background-size: cover;
  background-position: center right;
}

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

.eyebrow,
.section-label {
  width: fit-content;
  margin: 0;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  background: #e0f7ef;
  color: #08775c;
  font-size: 0.78rem;
  font-weight: 900;
}

.hero h1 {
  max-width: 13.5em;
  margin: 0.85rem 0 0;
  font-size: clamp(2.35rem, 4.8vw, 4.65rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 36rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.35vw, 1.12rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.primary-action {
  border-radius: 999px;
  padding: 0.82rem 1.1rem;
  background: var(--accent);
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(10, 135, 105, 0.22);
  transition: background 160ms ease, transform 160ms ease;
}

.primary-action:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.calculator-panel {
  border: 1px solid #c9e9dd;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.94);
  padding: clamp(1rem, 2vw, 1.35rem);
  box-shadow: 0 18px 42px rgba(27, 54, 49, 0.16);
  backdrop-filter: blur(16px);
}

.calculator-panel h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 1.7rem);
  line-height: 1.08;
}

.calculator-panel > p {
  margin: 0.5rem 0 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.range-field {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.7rem;
  padding: 0.82rem;
  border: 1px solid #e0eee9;
  border-radius: 0.9rem;
  background: #f8fcfb;
}

.range-field span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.range-field strong {
  color: var(--ink);
  font-size: 1rem;
}

.range-field input {
  width: 100%;
  accent-color: var(--accent);
}

.calculator-result {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.8rem;
  border-radius: 1rem;
  padding: 0.95rem;
  background: #0b2f30;
  color: #ffffff;
}

.calculator-result span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  font-size: 0.82rem;
}

.calculator-result strong {
  font-size: 1.35rem;
  line-height: 1.1;
}

.calculator-note {
  margin: 0.72rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.section {
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem);
  background: var(--surface);
}

.section-soft {
  background: #f0f8f5;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section h2 {
  max-width: 920px;
  margin: 0.9rem 0 1.25rem;
  font-size: clamp(1.85rem, 3.2vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-copy {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 2.1rem;
}

.solution-grid article {
  border-top: 2px solid var(--accent);
  padding-top: 1rem;
}

.solution-grid h3 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.2;
}

.solution-grid p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.legal-teasers {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.legal-teasers h2 {
  margin-bottom: 0;
}

.legal-teasers a {
  min-height: 9.5rem;
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
  text-decoration: none;
}

.legal-teasers strong {
  display: block;
  font-size: 1.12rem;
}

.legal-teasers span {
  display: block;
  margin-top: 0.65rem;
  color: var(--muted);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2rem;
  padding: clamp(2rem, 4vw, 3rem);
  background: var(--footer);
  color: #ffffff;
}

.site-footer strong {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.site-footer p {
  margin: 0.35rem 0;
  color: rgba(255, 255, 255, 0.76);
}

.site-footer a {
  display: block;
  width: fit-content;
  color: #81f0cf;
  font-weight: 900;
  margin-bottom: 0.35rem;
  text-decoration: none;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms ease;
}

[data-reveal][data-visible="true"] {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 901px) and (max-height: 800px) {
  .hero {
    padding-block: 1.25rem;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 4.1vw, 3.8rem);
  }

  .hero-subtitle {
    margin-top: 0.8rem;
  }

  .hero-actions {
    margin-top: 1rem;
  }

  .calculator-panel {
    padding: 1rem;
  }

  .calculator-panel > p {
    margin-bottom: 0.7rem;
  }

  .range-field {
    padding: 0.68rem;
  }

  .calculator-result {
    padding: 0.78rem;
  }
}

@media (max-width: 1100px) {
  .store-links-header {
    display: none;
  }
}

@media (max-width: 900px) {
  .site-header {
    min-height: auto;
    padding: 0.9rem 1rem;
  }

  .header-actions {
    display: contents;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--accent);
    font-weight: 900;
    font-size: 1.35rem;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem 2rem;
    background:
      linear-gradient(180deg, rgba(247, 251, 249, 0.98), rgba(247, 251, 249, 0.9)),
      url("assets/hero-fintech.jpg");
    background-size: cover;
    background-position: center;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 10vw, 3rem);
  }

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

  .store-links img,
  .store-links a {
    width: 132px;
    height: 44px;
  }

  .calculator-panel {
    margin-top: 0.25rem;
  }

  .solution-grid,
  .legal-teasers,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .legal-teasers a {
    min-height: 0;
  }
}

@media (max-width: 420px) {
  .store-links img,
  .store-links a {
    width: 120px;
    height: 40px;
  }

  .hero h1,
  .section h2 {
    overflow-wrap: anywhere;
  }

  .range-field strong,
  .calculator-result strong {
    overflow-wrap: anywhere;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

.legal-document {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.back-link {
  display: inline-flex;
  margin-bottom: 1.25rem;
  color: var(--accent);
  font-weight: 900;
  text-decoration: none;
}

.legal-meta {
  margin: 0.2rem 0;
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.legal-date {
  color: var(--muted);
  font-weight: 700;
}

.legal-document h1 {
  margin: 0.5rem 0 1rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.legal-document h2 {
  margin: 2rem 0 0.75rem;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.2;
}

.legal-document p,
.legal-document li {
  color: #263c40;
  font-size: 1rem;
  line-height: 1.7;
}

.legal-document ul {
  padding-left: 1.25rem;
}

@media print {
  .site-header,
  .site-footer,
  .back-link {
    display: none;
  }

  .legal-document {
    width: 100%;
    padding: 0;
  }
}
