@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --canvas: #fff;
  --surface: #fff;
  --surface-subtle: #f4f4f1;
  --ink: #0a0a0a;
  --muted: #737373;
  --divider: #ebebe7;
  --brand: oklch(84.1% 0.238 128.85);
  --accent-strong: #507a00;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.site-shell { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }

.hero {
  position: relative;
  padding: 96px 24px 48px;
  text-align: center;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -140px 0 auto;
  height: 480px;
  z-index: -2;
  background: radial-gradient(640px 300px at 50% 12%, rgb(10 10 10 / 4.5%), transparent 70%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: -60px 0 30%;
  z-index: -1;
  background-image: radial-gradient(circle, rgb(10 10 10 / 16%) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(540px 280px at 50% 18%, rgb(0 0 0 / 70%), transparent 75%);
  mask-image: radial-gradient(540px 280px at 50% 18%, rgb(0 0 0 / 70%), transparent 75%);
}
.hero-content { width: min(980px, 100%); margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.hero-logo { display: block; width: 64px; height: 64px; margin: 0 auto 24px; border-radius: 14px; object-fit: cover; }
.hero h1 { max-width: 780px; margin: 0 auto; color: #171717; font-size: clamp(36px, 6vw, 58px); line-height: 1.08; letter-spacing: -.035em; font-weight: 700; }
.hero-copy { max-width: 600px; margin: 22px auto 0; color: #5f5f5f; font-size: 17.5px; line-height: 1.6; letter-spacing: 0; text-wrap: balance; }
.hero-copy span { display: block; }
.hero-actions { margin-top: 38px; display: flex; align-items: stretch; justify-content: center; gap: 10px; }
.download-button, .how-it-works-button { min-height: 49px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border-radius: 6px; font: inherit; font-size: 15px; font-weight: 500; line-height: 1.5; }
.download-button { gap: 9px; border: 1px solid transparent; background: #343434; color: #fff; text-decoration: none; transition: background-color 160ms ease; }
.download-button img { width: 16px; height: 16px; flex-shrink: 0; object-fit: contain; }
.download-button:hover { background: #202020; }
.how-it-works-button { border: 1px solid #d6d6d2; background: #fff; color: #292929; text-decoration: none; transition: border-color 160ms ease, background-color 160ms ease; }
.how-it-works-button:hover { border-color: #a9a9a4; background: #fafaf8; }
.download-button:focus-visible, .how-it-works-button:focus-visible, .back-link:focus-visible { outline: 3px solid color-mix(in oklch, var(--brand) 70%, white); outline-offset: 3px; }
.works-with { margin-top: 44px; display: flex; align-items: center; justify-content: center; gap: 20px; color: var(--muted); font-size: 13px; }
.works-with .capitec-logo { display: block; width: 130px; height: auto; }
.partner-note { max-width: 520px; margin: 14px 0 0; color: #8a8a8a; font-size: 12px; line-height: 1.5; }

.media-strip { width: min(1428px, calc(100vw - 56px)); margin: 0 auto 110px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 28px; }
.media-strip img, .media-strip video { display: block; width: 100%; height: auto; border: 1px solid var(--divider); border-radius: 22px; object-fit: contain; box-shadow: 0 20px 50px rgb(10 10 10 / 8%); }

.features { padding-bottom: 110px; }
.eyebrow { margin: 0; color: var(--accent-strong); font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.features h2 { margin: 10px 0 28px; font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -.045em; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature-card { padding: 30px; border: 1px solid var(--divider); border-radius: 20px; background: var(--surface); }
.feature-card svg { width: 28px; height: 28px; fill: none; stroke: var(--accent-strong); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { margin: 24px 0 8px; font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.65; }

.how-it-works-page { width: min(1260px, calc(100% - 56px)); margin-inline: auto; padding: 36px 0 72px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: #5f5f5f; font-size: 14px; font-weight: 500; text-decoration: none; }
.back-link:hover { color: var(--ink); }
.how-it-works-header { max-width: 720px; margin-top: 54px; }
.how-it-works-header h1 { margin: 0; font-size: clamp(38px, 5vw, 58px); line-height: 1.04; letter-spacing: -.045em; }
.how-it-works-header > p { margin: 20px 0 0; color: #626262; font-size: 17px; line-height: 1.65; }
.instruction-list { margin: 42px 0 0; padding: 0; list-style: none; }
.instruction-row { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 64px; padding: 72px 0; border-top: 1px solid var(--divider); }
.instruction-row:last-child { border-bottom: 1px solid var(--divider); }
.instruction-visual { width: min(100%, 380px); aspect-ratio: 9 / 20; justify-self: center; overflow: hidden; border: 1px solid var(--divider); border-radius: 22px; background-color: #f7f7f4; background-image: radial-gradient(circle, rgb(10 10 10 / 10%) 1px, transparent 1px); background-size: 20px 20px; box-shadow: 0 22px 50px rgb(10 10 10 / 8%); }
.instruction-visual img { display: block; width: 100%; height: 100%; object-fit: contain; }
.step-label { margin: 0 0 12px; color: var(--accent-strong); font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.instruction-copy h2 { margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -.04em; }
.instruction-copy > p:last-child { max-width: 500px; margin: 18px 0 0; color: #666; font-size: 18px; line-height: 1.65; }
footer { border-top: 1px solid var(--divider); }
.footer-content { display: flex; justify-content: space-between; gap: 20px; padding-block: 32px; color: var(--muted); font-size: .875rem; }
.footer-content p { margin: 0; }
.footer-content a { color: inherit; }

@media (max-width: 760px) {
  .hero { padding-inline: 28px; }
  .hero::before { background: radial-gradient(78% 55% at 50% 6%, rgb(10 10 10 / 4.5%), transparent 70%); }
  .hero::after {
    -webkit-mask-image: radial-gradient(85% 48% at 50% 26%, rgb(0 0 0 / 60%), transparent 80%);
    mask-image: radial-gradient(85% 48% at 50% 26%, rgb(0 0 0 / 60%), transparent 80%);
  }
  .hero-actions { width: 100%; flex-direction: column; }
  .download-button, .how-it-works-button { width: 100%; }
  .media-strip { width: calc(100% - 24px); overflow-x: auto; scroll-snap-type: x mandatory; grid-template-columns: repeat(3, minmax(76vw, 1fr)); justify-content: start; margin-bottom: 80px; padding: 0 2px 12px; gap: 16px; }
  .media-strip > * { scroll-snap-align: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 24px; }
  .how-it-works-page { width: min(100% - 40px, 680px); padding-top: 28px; }
  .how-it-works-header { margin-top: 42px; }
  .instruction-list { margin-top: 34px; }
  .instruction-row { grid-template-columns: 1fr; gap: 28px; padding: 54px 0; }
  .instruction-visual { width: min(100%, 340px); }
  .instruction-copy > p:last-child { font-size: 17px; }
}
