:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #20252a;
  --muted: #68727d;
  --line: #e8edf0;
  --soft: #f5f8f9;
  --teal: #008e8a;
  --teal-dark: #006f6d;
  --coral: #ff4b57;
  --sky: #dff4f6;
  --shadow: 0 22px 70px rgba(18, 42, 50, 0.12);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

section {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img,
.footer-brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.desktop-nav {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  margin-left: auto;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.desktop-nav a,
.site-footer nav a {
  transition: color 160ms ease;
}

.desktop-nav a:hover,
.site-footer nav a:hover,
.secondary-link:hover {
  color: var(--teal-dark);
}

.primary-button,
.mobile-download {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(0, 142, 138, 0.18);
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.primary-button:hover,
.mobile-download:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  justify-self: end;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.menu-button span {
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.mobile-menu {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 56px;
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 82px);
  margin: 0 auto;
  padding: 46px 0 78px;
}

.hero-copy h1,
.section-heading h2,
.app-copy h2,
.contact-section h2 {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 660px;
  font-size: clamp(48px, 6vw, 82px);
  line-height: 0.96;
  font-weight: 850;
}

.hero-copy p {
  max-width: 540px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

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

.primary-button {
  padding: 0 24px;
}

.secondary-link {
  color: var(--teal);
  font-size: 15px;
  font-weight: 800;
}

.status-line {
  margin: 0 0 18px;
  color: var(--coral);
  font-size: 14px;
  font-weight: 850;
}

.product-hero .hero-copy h1 {
  max-width: 760px;
  font-size: clamp(40px, 4.4vw, 60px);
  line-height: 1.04;
}

.hero-media {
  position: relative;
  min-height: 520px;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 42px 12px auto auto;
  width: 78%;
  height: 72%;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(223, 244, 246, 0.8), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 20% 20%, rgba(255, 75, 87, 0.12), transparent 34%);
  z-index: 0;
}

.hero-media > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 500px;
  margin-left: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 92px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 44px;
}

.section-heading h2,
.app-copy h2,
.contact-section h2 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.04;
  font-weight: 850;
}

.section-heading p,
.app-copy p,
.contact-section p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.05fr);
  gap: 44px;
  align-items: stretch;
}

.image-stack {
  position: relative;
  min-height: 430px;
}

.image-tile {
  position: absolute;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.tile-main {
  inset: 0 72px 70px 0;
  background:
    linear-gradient(rgba(0, 142, 138, 0.1), rgba(0, 142, 138, 0.1)),
    url("./assets/cashahora-hero.png") center / cover;
}

.tile-small {
  right: 0;
  bottom: 0;
  width: 42%;
  height: 45%;
  background:
    linear-gradient(135deg, rgba(255, 75, 87, 0.18), rgba(223, 244, 246, 0.78)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.4) 0 1px, transparent 1px 12px);
}

.service-list {
  display: grid;
  gap: 14px;
}

.service-list article {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 26px;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.service-list article:hover {
  border-color: rgba(0, 142, 138, 0.34);
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(31, 58, 66, 0.08);
}

.service-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--sky);
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 900;
}

.service-list h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.service-list p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

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

.product-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 26px;
  box-shadow: 0 18px 44px rgba(31, 58, 66, 0.06);
}

.product-grid h3,
.compliance-list h3 {
  margin: 18px 0 10px;
  font-size: 22px;
}

.product-grid p,
.compliance-list p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.compliance-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(420px, 1fr);
  gap: 46px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.compliance-copy {
  position: sticky;
  top: 104px;
}

.compliance-copy h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.04;
}

.compliance-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.compliance-list {
  display: grid;
  gap: 16px;
}

.compliance-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 26px;
}

.compliance-list h3 {
  margin-top: 0;
}

.compliance-list a,
.legal-content a {
  display: inline-flex;
  margin-top: 14px;
  color: var(--teal-dark);
  font-weight: 850;
}

.app-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1fr);
  gap: 76px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.app-copy p {
  margin-top: 18px;
  max-width: 520px;
}

.app-copy .primary-button {
  margin-top: 28px;
}

.app-showcase {
  min-height: 420px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(223, 244, 246, 0.82), rgba(255, 255, 255, 0.84)),
    radial-gradient(circle at 88% 20%, rgba(255, 75, 87, 0.16), transparent 32%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  padding: 34px;
  box-shadow: var(--shadow);
}

.showcase-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.showcase-heading img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.showcase-heading div {
  display: grid;
  gap: 3px;
}

.showcase-heading strong {
  font-size: 20px;
}

.showcase-heading span,
.app-showcase p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.showcase-device {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(280px, 100%);
  margin: 26px auto;
  border: 1px solid rgba(0, 142, 138, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  padding: 34px 24px;
}

.showcase-device img {
  width: 76px;
  height: 76px;
  border-radius: 16px;
}

.showcase-device strong {
  font-size: 24px;
}

.showcase-device span {
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 850;
}

.showcase-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(0, 142, 138, 0.14);
  padding-top: 18px;
}

.showcase-status span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.showcase-status strong {
  color: var(--teal-dark);
  font-size: 16px;
}

.app-showcase p {
  margin: 18px 0 0;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.62fr);
  gap: 48px;
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 64px;
  border-radius: 8px;
  background: #172429;
  color: #fff;
  padding: 54px;
}

.contact-section h2 {
  color: #fff;
}

.contact-section p {
  max-width: 650px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.72);
}

.email-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 26px;
}

.email-card span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 14px;
  font-weight: 800;
}

.email-card strong {
  font-size: clamp(18px, 2vw, 24px);
  overflow-wrap: anywhere;
}

.email-card small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.5;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 28px 0 42px;
}

.site-footer nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.legal-page {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
}

.legal-hero {
  padding: 76px 0 38px;
}

.legal-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  font-weight: 850;
}

.legal-hero p:not(.status-line) {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.legal-content {
  border-top: 1px solid var(--line);
  padding: 36px 0 82px;
}

.legal-content h2 {
  margin: 38px 0 14px;
  font-size: 28px;
  line-height: 1.2;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  margin: 28px 0 10px;
  font-size: 20px;
}

.legal-content p,
.legal-content li {
  color: #4e5962;
  font-size: 16px;
  line-height: 1.75;
}

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

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

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

.faq-content h2 {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.faq-content h2:first-child {
  border-top: 0;
  padding-top: 0;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    width: min(100% - 32px, 700px);
    gap: 14px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    grid-column: 3;
    justify-self: end;
  }

  .mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 28;
    display: grid;
    align-content: start;
    gap: 8px;
    width: min(320px, calc(100% - 32px));
    margin: 0;
    border-left: 1px solid var(--line);
    background: #fff;
    padding: 88px 22px 22px;
    box-shadow: 0 20px 45px rgba(30, 48, 54, 0.11);
    opacity: 0;
    pointer-events: none;
    transform: translateX(110%);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .mobile-menu a {
    border-radius: 8px;
    padding: 13px 12px;
    color: var(--muted);
    font-weight: 750;
    text-align: right;
  }

  .mobile-menu .mobile-download {
    color: #fff;
    padding: 0 16px;
  }

  .hero,
  .section,
  .contact-section,
  .site-footer {
    width: min(100% - 32px, 700px);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 32px;
    padding: 34px 0 58px;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 11vw, 58px);
    line-height: 1;
  }

  .hero-copy p {
    margin-top: 20px;
    font-size: 17px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    margin-top: 26px;
  }

  .primary-button {
    width: 100%;
  }

  .secondary-link {
    display: inline-flex;
    justify-content: center;
    min-height: 42px;
    align-items: center;
  }

  .hero-media {
    min-height: auto;
  }

  .hero-media > img {
    width: 100%;
    height: 360px;
  }

  .section {
    padding: 64px 0;
  }

  .section-heading,
  .service-layout,
  .app-section,
  .contact-section,
  .compliance-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .compliance-copy {
    position: static;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .section-heading h2,
  .app-copy h2,
  .contact-section h2,
  .compliance-copy h2 {
    font-size: clamp(32px, 8vw, 44px);
  }

  .section-heading p,
  .app-copy p,
  .contact-section p,
  .compliance-copy p {
    font-size: 16px;
  }

  .image-stack {
    min-height: 300px;
  }

  .tile-main {
    inset: 0 34px 54px 0;
  }

  .tile-small {
    width: 46%;
  }

  .service-list article {
    grid-template-columns: 44px 1fr;
    gap: 14px;
    padding: 20px;
  }

  .service-icon {
    width: 40px;
    height: 40px;
  }

  .app-showcase {
    min-height: auto;
    padding: 24px;
  }

  .showcase-status {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .contact-section {
    margin-bottom: 44px;
    padding: 32px 22px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .legal-page {
    width: min(100% - 32px, 700px);
  }

  .legal-hero {
    padding: 48px 0 30px;
  }

  .legal-hero h1 {
    font-size: clamp(38px, 10vw, 54px);
  }

  .legal-hero p:not(.status-line) {
    font-size: 17px;
  }
}

@media (max-width: 430px) {
  .brand img,
  .footer-brand img {
    width: 34px;
    height: 34px;
  }

  .brand span {
    font-size: 17px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .product-hero .hero-copy h1 {
    font-size: 39px;
  }

  .hero-media {
    min-height: auto;
  }

  .hero-media > img {
    height: 320px;
  }

  .service-list h3 {
    font-size: 20px;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }

  .legal-content h2 {
    font-size: 24px;
  }
}
