:root {
  /* Palette values mirror app-theme.css so the two layers cannot drift.
     app-theme.css owns the mapping to brand/palettes.json and tokens.json;
     these are the same 17 tokens, not a second set. */
  --brand: #1c656b;
  --brand-dark: #164f55;
  --brand-soft: #d8fbf0;
  --ink: #164f55;
  --muted: #53686b;
  --line: #748689;
  --surface: #ffffff;
  --background: #eaeaea;
  --support: #688ad9;
  --mint: #8fe6c8;
  --shadow: 0 22px 60px rgba(24, 24, 27, 0.09);
  --radius: 26px;
  --content: 1180px;
  --font-display: "Agbalumo", system-ui, sans-serif;
  --font-body: "Cantarell", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Keep all written content selectable, including within swipeable cards. */
body {
  -webkit-user-select: text;
  user-select: text;
}

h1, h2, h3, p, li, figcaption {
  cursor: text;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  min-height: 100vh;
  overflow: hidden;
}

.container {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  padding: 24px 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.brand-mark {
  position: relative;
  width: 25px;
  height: 25px;
  border: 4px solid var(--brand);
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
}

.brand-mark::after {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--brand);
  content: "";
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.92rem;
  /* 700, not 600: Cantarell 0.303 is variable, so 600 is now a real weight (it
     used to snap to 700). Pinned here to keep the shipped nav weight. */
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--brand);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--brand);
  color: var(--light);
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--brand) 24%, transparent);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--brand) 32%, transparent);
}

.button.secondary {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
  box-shadow: none;
}

.button.small {
  min-height: 42px;
  padding-inline: 18px;
}

.hero {
  position: relative;
  padding: 78px 0 92px;
}

.hero::before {
  position: absolute;
  top: -260px;
  right: -180px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 15%, white), transparent 68%);
  content: "";
  pointer-events: none;
}

.hero::after {
  position: absolute;
  bottom: 20px;
  left: -120px;
  width: 280px;
  height: 280px;
  border: 44px solid color-mix(in srgb, var(--support) 22%, transparent);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: center;
  gap: 76px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 25px;
  height: 2px;
  background: currentColor;
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  letter-spacing: -0.065em;
}

h1 .accent,
.accent {
  color: var(--brand);
}

.hero-copy > p {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

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

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.trust-line span::before {
  margin-right: 7px;
  color: var(--brand);
  content: "✓";
  font-weight: 700;
}

.visual-card {
  position: relative;
  min-height: 520px;
  padding: 30px;
  border: 1px solid color-mix(in srgb, var(--brand) 16%, var(--line));
  border-radius: 40px;
  background: linear-gradient(150deg, #ecfffa 0%, #fff 48%, #edf1ff 100%);
  box-shadow: var(--shadow);
}

.phone {
  position: absolute;
  top: 62px;
  left: 50%;
  width: min(245px, 70%);
  padding: 12px;
  border: 8px solid #171717;
  border-radius: 38px;
  background: #fff;
  box-shadow: 0 30px 60px rgba(20, 20, 20, 0.18);
  transform: translateX(-50%) rotate(3deg);
}

.phone-bar {
  width: 42%;
  height: 18px;
  margin: -4px auto 12px;
  border-radius: 0 0 12px 12px;
  background: #171717;
}

.phone-screen {
  min-height: 350px;
  padding: 28px 18px;
  border-radius: 23px;
  background: linear-gradient(165deg, var(--brand-soft), #fff 55%);
  text-align: center;
}

.phone-screen .mini-brand {
  color: var(--brand);
  font-weight: 800;
}

.phone-screen h3 {
  margin: 34px 0 8px;
  font-size: 1.6rem;
}

.reward-card {
  margin-top: 22px;
  padding: 20px;
  border-radius: 18px;
  background: var(--support);
  color: white;
  text-align: left;
}

.reward-card strong {
  display: block;
  font-size: 1.65rem;
}

.stamp-row {
  display: flex;
  gap: 7px;
  margin-top: 18px;
}

.stamp {
  width: 21px;
  height: 21px;
  border: 2px solid color-mix(in srgb, white 70%, transparent);
  border-radius: 50%;
}

.stamp.filled {
  background: white;
}

.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 14px 40px rgba(30, 30, 30, 0.11);
  font-size: 0.84rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.float-card.one {
  top: 26px;
  right: -26px;
}

.float-card.two {
  bottom: 52px;
  left: -38px;
}

.float-icon,
.icon {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.15rem;
}

.section {
  padding: 100px 0;
}

/* Warm paper, never pure white — #FFFFFF on a full-bleed section is too bright. */
.section.white {
  background: var(--paper);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 18px;
  font-size: clamp(2.15rem, 4.5vw, 4rem);
  letter-spacing: -0.05em;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.08rem;
}

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

.step-card,
.benefit-card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.step-number {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  font-size: 0.8rem;
  font-weight: 800;
}

.step-card h3,
.benefit-card h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  letter-spacing: -0.025em;
}

.step-card p,
.benefit-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.benefit-card {
  min-height: 220px;
}

.benefit-card .icon {
  margin-bottom: 34px;
}

.cta-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  padding: clamp(36px, 6vw, 70px);
  border-radius: 36px;
  overflow: hidden;
  background: var(--brand);
  color: var(--light);
}

.cta-panel::after {
  position: absolute;
  right: -80px;
  bottom: -180px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: var(--mint);
  content: "";
  opacity: 0.36;
}

.cta-panel > * {
  position: relative;
  z-index: 1;
}

.cta-panel h2 {
  max-width: 720px;
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.05em;
}

.cta-panel p {
  margin-bottom: 0;
  color: #c9c9c9;
}

.footer {
  padding: 34px 0;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.partner-stack {
  display: grid;
  gap: 13px;
  padding-top: 22px;
}

.partner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px;
  border-radius: 14px;
  background: rgba(255,255,255,0.92);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: left;
}

.partner-row span:last-child {
  color: var(--brand);
}

@media (max-width: 980px) {
  .hero {
    padding-top: 48px;
  }

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

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

  .visual-card {
    width: min(100%, 560px);
    margin-inline: auto;
  }

  .journey-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .step-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 28px), var(--content));
  }

  .site-header {
    padding: 18px 0;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 54px 0 66px;
  }

  .hero-grid {
    gap: 50px;
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4.5rem);
  }

  .visual-card {
    min-height: 470px;
    padding: 20px;
  }

  .phone {
    top: 48px;
  }

  .float-card.one {
    top: 12px;
    right: 8px;
  }

  .float-card.two {
    bottom: 20px;
    left: 6px;
  }

  .section {
    padding: 72px 0;
  }

  .journey-grid,
  .benefit-grid,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .step-card:last-child {
    grid-column: auto;
  }

  .step-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
  }

  .step-number {
    grid-row: span 2;
    margin-bottom: 0;
  }

  .cta-panel .button {
    width: 100%;
  }

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

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

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

/* Paper and watercolor treatment for the business landing page. */
.business-page {
  --background: #f5f0e6;
  --surface: #fffdf7;
  --line: #d4d7c8;
  background: var(--background);
}

.business-page .page-shell {
  position: relative;
  isolation: isolate;
  background: url("assets/watercolor.svg") center top / 100% 1600px repeat-y;
}

/* A tiled grain covers every section without intercepting controls. */
.business-page .page-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  background: url("assets/paper-grain.svg") repeat;
  mix-blend-mode: multiply;
  opacity: .19;
}

.business-page h1,
.business-page h2,
.business-page h3 {
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.12;
}

.business-page .hero::before {
  background: radial-gradient(ellipse, #46fbce25, #237e8612 45%, transparent 72%);
  border-radius: 43% 57% 61% 39% / 49% 36% 64% 51%;
  filter: blur(14px);
}

.business-page .hero::after {
  width: 360px;
  height: 320px;
  border: 0;
  background: radial-gradient(ellipse, #688ad92b, transparent 70%);
  border-radius: 62% 38% 45% 55%;
  filter: blur(12px);
  pointer-events: none;
}

.business-page .section.white {
  background: #fffdf7b8 url("assets/watercolor.svg") center 35% / cover;
}

.business-page .step-card,
.business-page .benefit-card {
  background: #fffdf7d9;
  border-radius: 24px 29px 23px 28px;
  box-shadow: 0 5px 15px #73674708;
}

.business-page .visual-card {
  background: url("assets/watercolor.svg") center / cover, #fffdf7;
  border-radius: 42px 35px 46px 32px;
}

.business-page .portal-showcase {
  background: linear-gradient(#102e32ed, #102e32ed),
    url("assets/watercolor.svg") center / cover, #237e86;
}

.business-page .cta-panel {
  background: url("assets/watercolor.svg") center / cover, #237e86;
  border-radius: 34px 42px 31px 39px;
}

.business-page .cta-panel::after {
  border-radius: 39% 61% 52% 48%;
  filter: blur(22px);
}
