@font-face {
  font-family: "Krisha";
  src: url("/fonts/Krisha-Regular.otf") format("opentype");
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas";
  src: url("/fonts/NeueHaasDisplayRoman.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas";
  src: url("/fonts/NeueHaasDisplayMediu.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

:root {
  --green: #00cba0;
  --blue: #3e62fe;
  --black: #060807;
  --chalk: #f0e482;
  --lavender: #f3f3ff;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #fff;
  color: var(--black);
  font: 400 clamp(1rem, 0.95rem + 0.25vw, 1.125rem) / 1.5 "Neue Haas", system-ui, sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1rem, 3vw, 1.75rem) clamp(1.25rem, 5vw, 4rem);
}
.logo img { width: clamp(130px, 14vw, 180px); height: auto; }
.top-link { font-weight: 500; text-decoration: none; border-bottom: 2px solid var(--green); padding-bottom: 2px; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(1rem, 4vw, 3rem) clamp(1.25rem, 5vw, 4rem) clamp(3rem, 8vw, 6rem);
  overflow: clip;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 0.9fr 1.1fr; }
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.35rem 0.8rem;
  background: var(--green);
  color: var(--black);
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 999px;
}
h1 {
  margin: 0;
  font: 400 clamp(2.6rem, 1.6rem + 4.6vw, 5.75rem) / 0.95 "Krisha", "Neue Haas", sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 span { color: var(--blue); }
.lede { margin: 1.5rem 0 1.25rem; max-width: 32ch; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem); }

.offers { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.offers li {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 0.85rem; border-radius: 999px;
  background: var(--lavender); font-weight: 500; font-size: 0.95rem;
}
.offers svg { width: 18px; height: 18px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.cta-ghost { font-weight: 500; text-decoration: none; border-bottom: 2px solid var(--blue); padding-bottom: 2px; transition: color 0.3s var(--ease); }
.cta-ghost:hover { color: var(--blue); }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  background: var(--black);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.cta svg { transition: translate 0.3s var(--ease); }
.cta:hover { background: var(--green); color: var(--black); }
.cta:hover svg { translate: 4px 0; }

.hero-media {
  position: relative;
  margin: 0;
  border-radius: clamp(16px, 2vw, 28px);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--lavender);
}
.hero-media::after {
  /* Brand colour block anchoring the photo */
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: 34%;
  height: 22%;
  background: var(--green);
  border-top-left-radius: clamp(16px, 2vw, 28px);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; scale: 1.08; }

/* Brand "fast-paced lines": bars that accelerate toward the edge */
.bars {
  position: absolute;
  inset: auto 0 clamp(1rem, 3vw, 2rem) 0;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
  pointer-events: none;
}
.bars i { display: block; height: 6px; border-radius: 3px; background: var(--blue); }
.bars i:nth-child(1) { width: 4px; opacity: 0.25; }
.bars i:nth-child(2) { width: 8px; opacity: 0.35; }
.bars i:nth-child(3) { width: 14px; opacity: 0.45; }
.bars i:nth-child(4) { width: 24px; opacity: 0.6; }
.bars i:nth-child(5) { width: 40px; opacity: 0.75; }
.bars i:nth-child(6) { width: 64px; opacity: 0.9; }
.bars i:nth-child(7) { width: 104px; background: var(--green); }

.how {
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 5vw, 4rem);
  background: var(--blue);
  color: #fff;
}
.how h2 {
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  font: 400 clamp(2.2rem, 1.4rem + 3.4vw, 4.25rem) / 0.95 "Krisha", "Neue Haas", sans-serif;
  text-transform: uppercase;
}
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.steps li { padding: 1.5rem; border-radius: 20px; background: #fff; color: var(--black); border-top: 6px solid var(--green); }
.steps li:nth-child(2) { border-top-color: var(--black); }
.steps li:nth-child(3) { border-top-color: var(--chalk); }
.steps .n { font: 400 1.5rem/1 "Krisha", sans-serif; color: var(--blue); }
.steps h3 { margin: 0.9rem 0 0.4rem; font-size: 1.25rem; font-weight: 500; }
.steps p { margin: 0; color: #3b3f46; }
.promise { margin: clamp(2rem, 4vw, 3rem) 0 0; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 500; }
.promise span { color: var(--chalk); }

.foot { padding: 1.5rem clamp(1.25rem, 5vw, 4rem); font-size: 0.9rem; border-top: 1px solid #e7e7ef; }
.foot p { margin: 0; }

/* Motion: only for people who have not asked for less of it. Final state is the default. */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise 0.9s var(--ease) both; }
  .reveal:nth-child(2) { animation-delay: 0.08s; }
  .reveal:nth-child(3) { animation-delay: 0.18s; }
  .reveal:nth-child(4) { animation-delay: 0.28s; }
  .reveal:nth-child(5) { animation-delay: 0.38s; }

  @supports (animation-timeline: view()) {
    .reveal-on-scroll {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }

  .hero-media { animation: unveil 1.1s var(--ease) 0.1s both; }
  .hero-media img { animation: settle 2.4s var(--ease) both; }
  .hero-media::after { animation: slide-in 0.9s var(--ease) 0.7s both; }

  .bars i { animation: stretch 1s var(--ease) both; transform-origin: right; }
  .bars i:nth-child(n) { animation-delay: calc(0.6s + var(--d, 0s)); }
  .bars i:nth-child(1) { --d: 0.36s; } .bars i:nth-child(2) { --d: 0.3s; }
  .bars i:nth-child(3) { --d: 0.24s; } .bars i:nth-child(4) { --d: 0.18s; }
  .bars i:nth-child(5) { --d: 0.12s; } .bars i:nth-child(6) { --d: 0.06s; }

  /* Gentle parallax on the photo as the page scrolls (small screens stack and scroll). */
  @supports (animation-timeline: scroll()) {
    .hero-media img {
      animation: settle 2.4s var(--ease) both, drift linear both;
      animation-timeline: auto, scroll(root);
    }
  }
}

@keyframes rise { from { opacity: 0; translate: 0 24px; } }
@keyframes unveil { from { clip-path: inset(12% 0 0 0 round 28px); opacity: 0; } }
@keyframes settle { from { scale: 1.18; } }
@keyframes slide-in { from { translate: 100% 0; } }
@keyframes stretch { from { scale: 0 1; opacity: 0; } }
@keyframes drift { to { translate: 0 -6%; } }
