/* RealMoney marketing site */

:root {
  --rm-primary: #047857;
  --rm-primary-deep: #035f45;
  --rm-primary-soft: #e5f5ed;
  --rm-ink: #172b3a;
  --rm-muted: #526473;
  --rm-border: #cbd5df;
  --rm-surface: #ffffff;
  --rm-bg: #f0f7f4;
  --rm-error: #b42318;
  --rm-warn: #925700;
  --rm-warn-tint: #fff4e0;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius: 14px;
  --shadow-soft: 0 18px 50px rgba(3, 95, 69, 0.12);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--rm-ink);
  background: var(--rm-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--rm-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--rm-primary-deep);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding: 1.25rem 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.brand img {
  height: 36px;
  width: auto;
}

.brand__mark {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  color: var(--rm-ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--rm-primary);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--rm-primary);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav__cta:hover {
  background: var(--rm-primary-deep);
  transform: translateY(-1px);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--rm-primary);
  color: #fff;
  box-shadow: 0 10px 28px rgba(4, 120, 87, 0.28);
}

.btn--primary:hover {
  background: var(--rm-primary-deep);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--rm-ink);
  border-color: rgba(23, 43, 58, 0.18);
}

.btn--ghost:hover {
  border-color: var(--rm-primary);
  color: var(--rm-primary);
}

.btn--light {
  background: #fff;
  color: var(--rm-primary-deep);
}

.btn--light:hover {
  color: var(--rm-primary);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--rm-ink);
  background:
    radial-gradient(1200px 700px at 85% 10%, rgba(4, 120, 87, 0.22), transparent 55%),
    radial-gradient(900px 500px at 10% 90%, rgba(4, 120, 87, 0.14), transparent 50%),
    linear-gradient(160deg, #e8f6ef 0%, #f6fbf8 42%, #edf4f1 100%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  padding: 7.5rem 0 4.5rem;
}

.hero__eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rm-primary-deep);
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  max-width: 12ch;
  margin-bottom: 1rem;
}

.hero__lead {
  font-size: 1.125rem;
  color: var(--rm-muted);
  max-width: 34ch;
  margin-bottom: 0;
}

.hero__visual {
  position: relative;
  justify-self: end;
  width: min(100%, 420px);
  aspect-ratio: 9 / 16;
  border-radius: 36px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.12)),
    linear-gradient(145deg, var(--rm-primary) 0%, #0d9488 48%, #064e3b 100%);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
  opacity: 0;
  transform: translateY(24px);
  animation: rise-in 0.9s 0.15s ease forwards;
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.35), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(0, 0, 0, 0.12));
}

.hero__visual-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.75rem 1.75rem 2rem;
  color: #fff;
  z-index: 1;
}

.hero__visual-brand {
  width: min(70%, 180px);
  filter: brightness(0) invert(1);
}

.hero__visual-amount {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero__visual-meta {
  opacity: 0.9;
  font-size: 0.95rem;
}

.hero__copy {
  opacity: 0;
  transform: translateY(18px);
  animation: rise-in 0.8s ease forwards;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Sections —— */
.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--rm-surface);
}

.section__head {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.section__head p {
  color: var(--rm-muted);
  margin-bottom: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 0.25rem;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.85rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--rm-primary);
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.step p {
  color: var(--rm-muted);
  margin: 0;
  font-size: 0.98rem;
}

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

.trust__item h3 {
  font-size: 1.2rem;
}

.trust__item p {
  color: var(--rm-muted);
  margin: 0;
}

.wallets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.wallet-chip {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--rm-primary-soft);
  color: var(--rm-primary-deep);
  font-size: 0.88rem;
  font-weight: 600;
}

.wallet-chip--mpesa {
  background: #d52e20;
  color: #ffffff;
}

.wallet-chip--yas {
  background: #00377d;
  color: #ffd100;
}

.wallet-chip--airtel {
  background: #e40000;
  color: #ffffff;
}

.wallet-chip--halopesa {
  background: #fe4600;
  color: #fff8f0;
}

/* —— Download strip —— */
.download-strip {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0;
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(255, 255, 255, 0.12), transparent 50%),
    linear-gradient(135deg, var(--rm-primary-deep), var(--rm-primary) 55%, #0f766e);
  color: #fff;
}

.download-strip h2 {
  max-width: 16ch;
}

.download-strip p {
  max-width: 42ch;
  opacity: 0.92;
}

.download-strip .btn--light {
  margin-top: 0.5rem;
}

/* —— Download page —— */
.page-hero {
  padding: 7.5rem 0 2.5rem;
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(4, 120, 87, 0.16), transparent 55%),
    linear-gradient(180deg, #e8f6ef, var(--rm-bg));
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.page-hero p {
  color: var(--rm-muted);
  max-width: 42ch;
}

.download-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  margin: 2rem 0 4rem;
}

.panel {
  background: var(--rm-surface);
  border: 1px solid var(--rm-border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.panel h2 {
  font-size: 1.25rem;
}

.meta-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}

.meta-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rm-border);
  font-size: 0.95rem;
}

.meta-list span:first-child {
  color: var(--rm-muted);
}

.meta-list code {
  font-size: 0.8rem;
  word-break: break-all;
  text-align: right;
}

.install-steps {
  margin: 0;
  padding-left: 1.2rem;
}

.install-steps li {
  margin-bottom: 0.75rem;
  color: var(--rm-muted);
}

.install-steps li strong {
  color: var(--rm-ink);
}

.notice {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: var(--rm-warn-tint);
  color: var(--rm-warn);
  font-size: 0.92rem;
}

.notice--info {
  background: var(--rm-primary-soft);
  color: var(--rm-primary-deep);
}

/* —— Legal —— */
.legal {
  padding: 2rem 0 5rem;
}

.legal-banner {
  margin-bottom: 2rem;
  padding: 1rem 1.15rem;
  border-radius: 10px;
  background: var(--rm-warn-tint);
  color: var(--rm-warn);
  border: 1px solid rgba(146, 87, 0, 0.2);
  font-size: 0.95rem;
}

.legal h2 {
  margin-top: 2rem;
  font-size: 1.25rem;
}

.legal p,
.legal li {
  color: var(--rm-muted);
  max-width: 62ch;
}

.legal ul {
  padding-left: 1.2rem;
}

/* —— Footer —— */
.site-footer {
  padding: 3rem 0 2rem;
  background: #102633;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__brand img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 0.75rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.25rem;
  font-size: 0.9rem;
}

/* —— Reveal on scroll —— */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .hero__grid,
  .download-panel,
  .trust,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero__grid {
    padding-top: 6.5rem;
    padding-bottom: 3rem;
  }

  .hero h1 {
    max-width: none;
  }

  .hero__visual {
    justify-self: stretch;
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
    aspect-ratio: 10 / 14;
  }

  .nav a:not(.nav__cta) {
    display: none;
  }
}

@media (max-width: 560px) {
  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

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

  .hero__copy,
  .hero__visual,
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}
