@font-face {
  font-family: "Metropolis";
  src: url("../fonts/metropolis/Metropolis-Thin.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Metropolis";
  src: url("../fonts/metropolis/Metropolis-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Metropolis";
  src: url("../fonts/metropolis/Metropolis-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Metropolis";
  src: url("../fonts/metropolis/Metropolis-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Metropolis";
  src: url("../fonts/metropolis/Metropolis-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* colors */
  --c-black: #000;
  --c-white: #fff;
  --c-lime: #c6fa6c;
  --c-grey: #aab3de;
  --c-orange: #f29e1a;

  /* layout */
  --gap: 0.75rem;
  --radius: 14px;
  --gutter: clamp(0.75rem, 2vw, 1rem);
  --max-wide: 120rem;
  --max-text: 70rem;
  --max-prose: 40ch;
  --max-prose-mobile: 30ch;
  --max-prose-ol: 45ch;
  --max-prose-ol-mobile: 30ch;
  --lead-indent: 1rem;
  --lead-indent-mobile: 0.5rem;

  /* scroll */
  --snap-offset: 0px;

  /* header */
  --header-bg: var(--c-grey);
  --brand-space: 240px;
  --section-pad-y: 2.25rem;
}

/* --- base --- */
* {
  box-sizing: border-box;
}

html {
  scroll-snap-type: y proximity;
  scroll-padding-top: calc(var(--header-h, 80px) + var(--snap-offset));
}

@media (max-width: 719px) {
  html {
    scroll-snap-type: none !important;
  }
  .section {
    scroll-snap-align: none !important;
  }
}

body {
  margin: 0;
  font-family:
    "Metropolis",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  color: var(--c-black);
  background: var(--c-white);
  line-height: 1.5;
}

a {
  color: inherit;
}

/* --- containers --- */
.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
  max-width: none;
}
.container--wide {
  max-width: var(--max-wide);
}
.container--text {
  max-width: var(--max-text);
}

.prose {
  max-width: var(--max-prose-mobile);
  margin-inline: auto;
}

.prose--ol {
  max-width: var(--max-prose-ol-mobile);
}

.prose .steps {
  list-style: none;
  padding: 0;
  margin: 1rem 0;

  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.prose .steps--plain {
  counter-reset: step;
}

.prose .steps li {
  position: relative;
  padding-left: 3rem;

  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0.015em;
}

.prose .steps--plain li {
  padding-left: 0;
}

/* the numbered circle */
.prose .steps li::before {
  content: counter(step) ".";
  counter-increment: step;

  position: absolute;
  left: 0;
  top: 0.15em;

  width: 2.4rem;
  height: 2.4rem;
  font-size: 1rem;

  display: grid;
  place-items: center;

  background: var(--c-lime);
  color: var(--c-black);

  border-radius: 50%;
}

.prose .steps--plain li::before {
  content: none;
}

.prose .steps--dots {
  counter-reset: none;
}

.prose .steps--dots li {
  padding-left: calc(var(--lead-indent) + 1.5rem);
}

.prose .steps--dots li::before {
  left: var(--lead-indent);
  top: 0.6em;

  width: 0.2rem;
  height: 0.2rem;
  background: currentColor;
  border-radius: 50%;
  content: "";
  position: absolute;
}

/* --- floating logo (outside header) --- */
.brand {
  display: block;
  text-decoration: none;
}

.brand--floating {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  padding: 0.3rem 0.25rem 0.25rem 0.25rem;
}

.brand__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

/* floating logo size (mobile) */
.brand--floating .brand__img {
  height: 100px;
  max-width: 210px;
}

/* --- header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--header-bg);
  transition: background-color 200ms ease;
  box-shadow: none;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--header-bg);
  pointer-events: none;
}

.site-header__inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: var(--gap);
  padding-block: 0.75rem;
  padding-left: var(--brand-space);
  padding-right: 0.6rem;
}

/* --- nav / menu --- */
.nav {
  display: none;
}

.menu {
  margin-left: auto;
  position: relative;
}

.menu__toggle {
  cursor: pointer;
  list-style: none;
  user-select: none;

  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;

  background: transparent;
  border: 0;
  padding: 0;

  position: relative;
  z-index: 60;
}

.menu__toggle::-webkit-details-marker {
  display: none;
}

.menu__toggle::before,
.menu__toggle::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--c-black);
  border-radius: 999px;
  transition:
    transform 200ms ease,
    opacity 200ms ease;
}

.menu__toggle::before {
  transform: translateY(-6px);
}
.menu__toggle::after {
  transform: translateY(6px);
}

.menu__toggle span {
  width: 24px;
  height: 2px;
  background: var(--c-black);
  border-radius: 999px;
  transition: opacity 200ms ease;
}

/* open => X */
.menu[open] .menu__toggle::before {
  transform: rotate(45deg);
}
.menu[open] .menu__toggle::after {
  transform: rotate(-45deg);
}
.menu[open] .menu__toggle span {
  opacity: 0;
}

/* FULLSCREEN overlay panel */
.menu[open] .menu__panel {
  position: fixed;
  inset: 0;
  z-index: 55;

  background: var(--menu-bg, var(--header-bg));

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding: 1.25rem;
  padding-top: 2rem;

  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.menu__panel a {
  display: block;
  width: min(26rem, 92vw);
  max-width: 100%;

  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;

  color: var(--c-black);
  padding: 0.9rem 1rem;
  border-radius: 999px;

  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.menu__panel {
  gap: 0.65rem;
}

.menu__panel a:hover {
  background: rgba(255, 255, 255, 0.25);
}

.menu__panel a:focus-visible {
  outline: 3px solid var(--c-lime);
  outline-offset: 4px;
}

/* CTA inside mobile overlay */
.menu__panel a.nav__cta {
  color: var(--c-white);
}

/* --- sections --- */
.section {
  scroll-snap-align: start;
  scroll-margin-top: calc(var(--header-h, 80px) + var(--snap-offset));
  min-height: 100vh;
  padding-top: 0;
  padding-bottom: var(--section-pad-y);
  position: relative;
}

@supports (height: 100svh) {
  .section {
    min-height: 100svh;
  }
}

.section:not(.hero) .container {
  padding-top: calc(var(--header-h, 80px));
}

.section--grey {
  background: var(--c-grey);
}
.section--orange {
  background: var(--c-orange);
}

/* --- hero --- */
.hero.section {
  padding: 0;
}

.hero__logo-wrap {
  flex: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .hero__inner {
  min-height: calc(100vh - var(--header-h, 80px));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: clamp(12px, 2vh, 24px);
}
@supports (height: 100svh) {
  .hero .hero__inner {
    min-height: calc(100svh - var(--header-h, 80px));
  }
}
.hero__logo {
  display: block;
  height: auto;
  max-width: none;
  filter: saturate(1.45) contrast(1.2);
  width: min(100vw, 270px);
}

.hero__illustration {
  display: block;
  margin-top: auto;
  height: clamp(56px, 10vh, 120px);
  width: auto;
  max-width: min(90vw, 520px);
  object-fit: contain;
}

/* --- typography --- */
.section__title {
  font-size: 1.2rem;
  line-height: 1;
  margin: 0 0 0.5rem 0;
  text-align: center;
  padding-bottom: 1rem;
}
.section__lead {
  margin: 0 0 0.5rem 0;
  text-align: center;
  font-size: 1rem;
}

.section__lead--left {
  text-align: left;
  padding-left: var(--lead-indent-mobile);
}

.section__lead--big {
  font-size: 1rem;
  letter-spacing: 0.15em;
  line-height: 1.2;
  font-weight: 400;
}

.section__lead--bigger {
  font-size: 1.2rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: normal;
}

.section__lead--white {
  color: var(--c-white);
}

.section__lead--lime {
  color: var(--c-lime);
}

.qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.qr__img {
  display: inline-flex;
  padding: 0.75rem;
  background: var(--c-white);
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* --- desktop breakpoint --- */
@media (min-width: 720px) {
  :root {
    --gap: 1rem;
    --section-pad-y: 3.25rem;
    --brand-space: 340px;
  }

  .hero__logo {
    width: min(100vw, 500px);
  }

  .hero .hero__inner {
    min-height: calc(100dvh - var(--header-h, 80px));
  }
  .nav {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    row-gap: 0.25rem;
    flex: 1;
    min-width: 0;
  }

  .nav a {
    text-decoration: none;
    font-weight: 600;
    padding: 0.6rem 0.6rem;
    white-space: nowrap;
    color: var(--c-black);
    transition: color 160ms ease;
  }

  .nav a.is-active {
    color: var(--c-lime);
  }
  .nav a:hover {
    color: var(--c-lime);
  }

  .nav a.nav__cta,
  .nav a.nav__cta:hover,
  .nav a.nav__cta.is-active {
    color: var(--c-white);
  }

  .menu {
    display: none;
  }

  .brand--floating {
    padding: 0.75rem;
  }

  .brand--floating .brand__img {
    height: 200px;
    max-width: 520px;
  }

  .container--text {
    max-width: var(--max-text);
  }

  .section:not(.hero) .container {
    padding-top: calc(var(--header-h, 80px) + var(--snap-offset) + 8px);
  }
  .section {
    min-height: 100dvh;
  }

  .section__title {
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 0.75rem 0;
    padding-bottom: 1.5rem;
  }

  .section__lead {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    line-height: 1.6;
  }

  .section__lead--left {
    padding-left: var(--lead-indent);
  }

  .section__lead--big {
    font-size: 1.2rem;
    line-height: 1.6;
    letter-spacing: 0.2em;
  }
  .section__lead--bigger {
    font-size: 2rem;
    line-height: 1.2;
    letter-spacing: 0.05em;
    padding-top: 5rem;
  }

  .prose {
    max-width: var(--max-prose);
  }

  .prose .steps {
    margin: 1.5rem 0;
  }

  .prose .steps--plain li {
    padding-left: 2rem;
  }

  .prose--ol {
    max-width: var(--max-prose-ol);
  }
}
