:root {
  --bg: #0a0f0c;
  --gold: #D0A840;
  --green: #0A6900;
  --ve-green: #1c6b4a;
  --mint: #D4EDCF;
  --text: #fff;
  --text-2: rgba(255, 255, 255, .72);
  --border: rgba(255, 255, 255, .08);
  /* 3% white over the base colour, opaque so the grid never runs through text */
  --card: linear-gradient(rgba(255, 255, 255, .03), rgba(255, 255, 255, .03)) var(--bg);
  --radius: 12px;
  --radius-btn: 8px;
  --font: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: 20px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Background: two soft green light pools at the top corners that scroll away
   with the page, and a faint grid that fades in from the top and out at the sides. */

body::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  --g: 28, 107, 74;
  --o: 208, 168, 64;
  /* Glow runs down the whole page on alternating edges, centred outside the content column
     so text always sits on a calm background */
  background:
    radial-gradient(560px 420px at -4% 0%, rgba(var(--g), .2), rgba(var(--g), 0) 100%),
    radial-gradient(560px 420px at 104% 0%, rgba(var(--g), .2), rgba(var(--g), 0) 100%),
    radial-gradient(520px 600px at 108% 14%, rgba(var(--g), .12), rgba(var(--g), 0) 100%),
    radial-gradient(520px 600px at -8% 26%, rgba(var(--g), .12), rgba(var(--g), 0) 100%),
    radial-gradient(480px 540px at 108% 38%, rgba(var(--o), .045), rgba(var(--o), 0) 100%),
    radial-gradient(520px 600px at -8% 50%, rgba(var(--g), .12), rgba(var(--g), 0) 100%),
    radial-gradient(520px 600px at 108% 62%, rgba(var(--g), .12), rgba(var(--g), 0) 100%),
    radial-gradient(480px 540px at -8% 74%, rgba(var(--o), .04), rgba(var(--o), 0) 100%),
    radial-gradient(520px 600px at 108% 86%, rgba(var(--g), .12), rgba(var(--g), 0) 100%),
    radial-gradient(900px 360px at 50% 104%, rgba(var(--g), .16), rgba(var(--g), 0) 100%);
}

/* Phones: same rhythm, smaller pools pushed further off the edges */
@media (max-width: 767px) {
  body::before {
    background:
      radial-gradient(340px 300px at -10% 0%, rgba(var(--g), .18), rgba(var(--g), 0) 100%),
      radial-gradient(340px 300px at 110% 0%, rgba(var(--g), .18), rgba(var(--g), 0) 100%),
      radial-gradient(260px 420px at 120% 16%, rgba(var(--g), .12), rgba(var(--g), 0) 100%),
      radial-gradient(260px 420px at -20% 32%, rgba(var(--g), .12), rgba(var(--g), 0) 100%),
      radial-gradient(260px 420px at 120% 48%, rgba(var(--o), .05), rgba(var(--o), 0) 100%),
      radial-gradient(260px 420px at -20% 64%, rgba(var(--g), .12), rgba(var(--g), 0) 100%),
      radial-gradient(260px 420px at 120% 80%, rgba(var(--g), .12), rgba(var(--g), 0) 100%),
      radial-gradient(600px 300px at 50% 104%, rgba(var(--g), .14), rgba(var(--g), 0) 100%);
  }
}

.page-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .016) 1px, transparent 1px);
  background-size: 100px 100px;
  background-position: center top;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

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

h1, h2 {
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.04em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(44px, 12vw, 96px); }
h2 { font-size: clamp(30px, 7.4vw, 48px); }

p { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.gold { color: var(--gold); font-weight: 500; }

/* Small uppercase labels */
.eyebrow,
.step__label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Layout */

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  position: relative;
  padding: 52px 0;
}

.section h2 + * { margin-top: 20px; }

.section__text {
  color: var(--text-2);
  font-size: 18px;
  max-width: 62ch;
}

.figure {
  display: block;
  margin-top: 28px;
}

.figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.figure + .section__text { margin-top: 28px; }

/* Hero */

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 20px;
}

.brand { justify-content: space-between; gap: 16px; }

.brand__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* Language switch, top right */
.lang {
  display: inline-flex;
  flex: none;
  padding: 3px;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  background: var(--card);
}

.lang a {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--text-2);
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}

.lang a:hover { color: var(--text); }

.lang a[aria-current="page"] {
  color: #000;
  background: var(--gold);
}

.brand__mark { width: 54px; flex: none; }

.brand__name {
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -.02em;
}

.hero__text { padding-top: 56px; padding-bottom: 28px; }

.eyebrow { margin-bottom: 18px; }

.lead {
  margin-top: 22px;
  font-size: clamp(18px, 4.8vw, 22px);
  line-height: 1.5;
  color: var(--text-2);
  max-width: 34ch;
}

/* Cards */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Step 1 is the strongest block: VE green border with a barely-there halo */
.card--glow {
  border-color: rgba(28, 107, 74, .7);
  box-shadow: 0 0 48px rgba(28, 107, 74, .12);
}

/* Steps */

.step { padding-top: 20px; padding-bottom: 20px; }

.step__card {
  overflow: hidden;
  display: grid;
}

.step__media {
  background: #000;
  border-bottom: 1px solid var(--border);
}

.step__body { padding: 26px 22px 28px; }

.step__label { margin-bottom: 14px; }

.step__body h2 { font-size: clamp(30px, 7.6vw, 44px); }

.step__body p:not(.step__label) {
  margin-top: 16px;
  color: var(--text-2);
}

.step__body .btn { margin-top: 26px; }

.step--primary .step__body h2 { font-size: clamp(34px, 9vw, 52px); }

/* Long Dutch title: smaller so it fits on two lines ("Vul je / onboardingformulier in") */
.step--primary .step__body h2.step__title--long { font-size: clamp(28px, 8vw, 41px); }

/* Whop walkthrough: open Discord, then zoom in on Connect Account */

.whop-demo {
  container-type: inline-size;
  position: relative;
  overflow: hidden;
  aspect-ratio: 2000 / 880;
  background: #111;
}

.whop-demo__stage {
  position: absolute;
  inset: 0;
  transform-origin: 60.3% 89.4%;
  animation: whop-zoom 9s ease-in-out infinite;
}

.whop-demo__stage img { width: 100%; height: 100%; }

.whop-demo__ring {
  position: absolute;
  border: 2px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 0 0 4px rgba(208, 168, 64, .15);
}

.whop-demo__arrows {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.whop-demo__arrows path {
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  marker-end: url(#whop-head);
}

.whop-demo__badge {
  position: absolute;
  width: 4.4cqw;
  height: 4.4cqw;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #000;
  font-size: 2.6cqw;
  font-weight: 600;
}

.whop-demo__mark--2 .whop-demo__badge,
.whop-demo__badge.whop-demo__mark--2 { width: 2.6cqw; height: 2.6cqw; font-size: 1.5cqw; }

.whop-demo__mark--1 { animation: whop-step-1 9s ease-in-out infinite; }
.whop-demo__mark--2 { animation: whop-step-2 9s ease-in-out infinite; }

@keyframes whop-zoom {
  0%, 42% { transform: scale(1); }
  52%, 90% { transform: translateY(-9%) scale(1.8); }
  100% { transform: scale(1); }
}

@keyframes whop-step-1 {
  0%, 4% { opacity: 0; }
  9%, 38% { opacity: 1; }
  43%, 100% { opacity: 0; }
}

@keyframes whop-step-2 {
  0%, 54% { opacity: 0; }
  59%, 86% { opacity: 1; }
  90%, 100% { opacity: 0; }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  transition: transform .15s ease, filter .2s ease, background-color .2s ease, border-color .2s ease;
  -webkit-tap-highlight-color: transparent;
  width: 100%;
}

.btn__icon { width: 18px; height: 18px; flex: none; }

.btn:active { transform: translateY(1px); }

.btn--gold {
  color: #000;
  background: var(--gold);
  box-shadow: inset 0 4px 10px rgba(255, 255, 255, .1), inset 0 -4px 8px rgba(255, 255, 255, .1);
}

.btn--gold:hover { filter: brightness(1.07); }

.btn--ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .15);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .3);
}

.btn--block { width: 100%; }

/* Timeline */

.timeline {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
}

.timeline__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}

/* vertical connector on mobile */
.timeline__item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 21px;
  top: 56px;
  bottom: -12px;
  width: 1px;
  background: rgba(255, 255, 255, .15);
}

.timeline__dot {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 500;
  font-size: 16px;
  color: var(--mint);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, .15);
}

.timeline__dot--end {
  color: #000;
  background: var(--mint);
  border-color: var(--mint);
}

.timeline__label {
  font-size: 18px;
  font-weight: 500;
}

/* Calls */

.calls {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.call { padding: 22px; }

.call--mon { border-top: 2px solid var(--ve-green); }
.call--wed { border-top: 2px solid var(--gold); }

.call__when {
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -.03em;
}

.call__when .gold { font-weight: 600; }

.call__what {
  margin-top: 8px;
  color: var(--text-2);
}

.note {
  margin-top: 16px;
  font-size: 15px;
  color: var(--text-2);
}

/* Weekly chart */

.week {
  margin-top: 28px;
  padding: 20px 16px 16px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  align-items: end;
  height: 260px;
}

.week__day {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.week__time {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.week__bar {
  width: 100%;
  max-width: 64px;
  height: calc((100% - 56px) * var(--h) / 100);
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02));
}

.week__day--mon .week__bar {
  background: linear-gradient(180deg, rgba(95, 207, 147, .55), rgba(28, 107, 74, .15));
  box-shadow: 0 0 18px rgba(28, 107, 74, .18);
}

.week__day--wed .week__bar {
  background: linear-gradient(180deg, rgba(208, 168, 64, .8), rgba(208, 168, 64, .1));
  box-shadow: 0 0 18px rgba(208, 168, 64, .12);
}

.week__day--mon .week__time { color: var(--mint); }
.week__day--wed .week__time { color: var(--gold); }

.week__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-2);
}

.week__day--mon .week__label,
.week__day--wed .week__label { color: var(--text); }

.callout {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(88, 101, 242, .35);
  background: linear-gradient(rgba(88, 101, 242, .1), rgba(88, 101, 242, .1)) var(--bg);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
}

.callout__icon { flex: none; width: 36px; }
.callout__icon img { width: 36px; height: 36px; border-radius: 9px; }

/* Where to find what */

.places {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.place { padding: 22px; }

.place__icon {
  display: block;
  width: 44px;
  height: 44px;
}

.place__icon img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
}

.place__name {
  margin: 16px 0 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.2;
}

.place__what {
  margin-top: 6px;
  color: var(--text-2);
}

/* Habits */

.habits {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.habits__item {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  row-gap: 8px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  font-size: clamp(20px, 5.4vw, 26px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.2;
}

.habits__num {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #000;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
}

.habits__text {
  grid-column: 1 / -1;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.55;
  color: var(--text-2);
}

.habits__note {
  margin-top: 20px;
  font-size: clamp(18px, 4.8vw, 22px);
  line-height: 1.45;
  color: rgba(255, 255, 255, .85);
  max-width: 40ch;
}

/* Footer */

.footer {
  padding: 56px 0 calc(112px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 15px;
  text-align: center;
}

.footer__mark {
  display: block;
  width: 56px;
  margin: 0 auto 24px;
}

.footer__note { max-width: 52ch; margin: 0 auto; }

.footer__links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.footer__links a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .3);
  text-underline-offset: 3px;
  padding: 10px 0;
}

.footer__links a:hover { text-decoration-color: var(--gold); }

.footer__links span { padding: 10px 0; }

/* Sticky mini-bar */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(10, 15, 12, .86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  transform: translateY(110%);
  transition: transform .3s ease;
}

.sticky-cta.is-visible { transform: translateY(0); }

/* Reveal (only when JS runs) */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Tablet and up */

@media (min-width: 640px) {
  .btn { width: auto; }
  .btn--block { width: 100%; }

  .calls,
  .places { grid-template-columns: 1fr 1fr; }

  .habits { grid-template-columns: repeat(3, 1fr); }
  .habits__item { grid-template-columns: 1fr; align-content: start; row-gap: 12px; padding: 24px; }

  .week { height: 320px; padding: 28px 28px 20px; gap: 14px; }
  .week__time { font-size: 18px; }

  .timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .timeline__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 0;
  }

  /* horizontal connector */
  .timeline__item:not(:last-child)::after {
    left: 56px;
    right: 8px;
    top: 22px;
    bottom: auto;
    width: auto;
    height: 1px;
  }
}

@media (min-width: 768px) {
  .sticky-cta { display: none; }
  .footer { padding-bottom: 56px; }
}

@media (min-width: 960px) {
  :root { --gutter: 32px; }

  .section { padding: 76px 0; }
  .brand { padding-top: 32px; }
  .brand__logo { gap: 14px; }
  .brand__mark { width: 68px; }
  .brand__name { font-size: 26px; }
  .hero__text { padding-top: 96px; padding-bottom: 48px; }
  .step { padding-top: 20px; padding-bottom: 28px; }

  .step__card {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
  }

  .step__media {
    height: 100%;
    display: flex;
    align-items: center;
    border-bottom: 0;
    border-right: 1px solid var(--border);
  }

  .step__media picture, .step__media .whop-demo { width: 100%; }

  .step--primary .step__media picture { height: 100%; }

  .step--primary .step__media img {
    height: 100%;
    object-fit: cover;
    object-position: 50% 70%;
  }

  .step__body { padding: 48px 48px 52px; }

  .places { grid-template-columns: repeat(3, 1fr); }

  .step--primary .step__card { grid-template-columns: 1.1fr 1fr; }
  .step--primary .step__body h2.step__title--long { font-size: clamp(34px, 3.6vw, 41px); }

  /* Step 2: walkthrough full width on top, text and button below */
  .step--stacked .step__card { grid-template-columns: 1fr; }

  .step--stacked .step__media {
    height: auto;
    display: block;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .step--stacked .step__body {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    column-gap: 48px;
    padding: 40px 48px 44px;
  }

  .step--stacked .step__body .btn { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .sticky-cta, .btn { transition: none; }
  .whop-demo__stage, .whop-demo__mark--1, .whop-demo__mark--2 { animation: none; }
}

