@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --night-950: #09152a;
  --night-900: #111b30;
  --night-800: #16243e;
  --night-700: #1b2a4a;
  --night-600: #283c63;
  --night-300: #8195b8;
  --dawn-700: #c57b3c;
  --dawn-600: #dc9152;
  --dawn-500: #e8a368;
  --dawn-100: #f8e6d2;
  --sage-700: #2f5d57;
  --sage-500: #4c857d;
  --sage-100: #e8efec;
  --paper-0: #fffaf2;
  --paper-50: #fbf8f3;
  --paper-100: #f4efe7;
  --paper-200: #ebe4d8;
  --ink-900: #142039;
  --ink-700: #353b49;
  --ink-500: #626878;
  --ink-400: #868b98;
  --line-strong: #d8cdbc;
  --line: #e4dacb;
  --line-soft: #f0eadf;
  --font-display: 'Spectral', Georgia, 'Times New Roman', serif;
  --font-body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(28, 34, 48, 0.04), 0 1px 3px rgba(28, 34, 48, 0.06);
  --shadow-md: 0 10px 30px rgba(28, 34, 48, 0.09);
  --shadow-lg: 0 22px 70px rgba(17, 27, 48, 0.16);
  --ease-calm: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 240ms;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper-50);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 17px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% -10%, rgba(232, 163, 104, 0.12), transparent 28rem),
    var(--paper-50);
}

body.night-page {
  background: var(--paper-50);
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

svg {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.85;
  flex: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 86px;
  padding: 18px max(32px, calc((100vw - 1280px) / 2));
  background: rgba(251, 248, 243, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--night-700);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1;
}

.brand img {
  width: 34px;
  height: 34px;
}

.brand img[src$="mark.svg"] {
  display: none;
}

.site-nav {
  position: absolute;
  left: 50%;
  display: flex;
  gap: clamp(34px, 6vw, 70px);
  transform: translateX(-50%);
}

.site-nav a {
  color: var(--night-700);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.shell {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 0 32px;
}

.narrow {
  width: min(100%, 680px);
  margin: 0 auto;
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(540px, 1fr);
  min-height: calc(100vh - 86px);
  background: var(--paper-0);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 26px;
  padding: clamp(56px, 8vw, 110px) clamp(36px, 6vw, 86px);
}

.hero h1,
.result-hero h1 {
  margin: 0;
  max-width: 720px;
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 6vw, 5.3rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--night-950);
}

.hero p,
.result-hero p {
  max-width: 600px;
  margin: 0;
  color: var(--ink-700);
  font-size: 1.18rem;
  line-height: 1.55;
}

.hero-media {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: var(--night-900);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
}

.check-preview {
  position: absolute;
  right: clamp(28px, 6vw, 70px);
  bottom: clamp(42px, 9vw, 100px);
  width: min(390px, calc(100% - 48px));
  padding: 22px;
  border: 1px solid rgba(228, 218, 203, 0.78);
  border-radius: var(--r-lg);
  background: rgba(255, 250, 242, 0.94);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.check-preview h2 {
  margin: 0 0 16px;
  color: var(--night-700);
  font-size: 1.05rem;
}

.check-preview a {
  display: grid;
  grid-template-columns: 40px 1fr 18px;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  color: var(--night-700);
  font-weight: 700;
  text-decoration: none;
}

.check-preview a:first-of-type {
  border-radius: 13px 13px 0 0;
}

.check-preview a:last-of-type {
  border-radius: 0 0 13px 13px;
}

.check-preview span,
.recognition-items span,
.panel-icon,
.meaning-block > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sage-100);
  color: var(--sage-700);
}

.trust-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink-500) !important;
  font-size: 0.98rem !important;
}

.recognition-band {
  padding: 54px 0;
  background: linear-gradient(180deg, #f8f5ec, var(--paper-50));
  border-bottom: 1px solid var(--line-soft);
}

.recognition-band .shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 42px;
  align-items: center;
}

.recognition-band h2,
.section h2,
.card h2,
.check-card h1,
.dashboard h1,
.optin-panel h2,
.meaning-block h2,
.result-steps h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.8vw, 2.45rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--night-950);
}

.recognition-band h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 2px;
  margin-top: 18px;
  background: var(--dawn-500);
}

.recognition-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.recognition-items p {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  color: var(--ink-700);
  line-height: 1.5;
}

.section {
  padding: 86px 0;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(420px, 1fr);
  gap: 56px;
  align-items: start;
}

.section-intro p {
  margin: 18px 0 0;
  color: var(--ink-700);
  font-size: 1.08rem;
  line-height: 1.62;
}

.steps {
  display: grid;
  gap: 14px;
}

.step-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.step-card:first-child {
  padding-top: 0;
}

.step-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sage-700);
  color: var(--paper-0);
  font-weight: 700;
}

.step-card p {
  margin: 0;
  color: var(--ink-700);
  line-height: 1.55;
}

.trust-section {
  background: var(--paper-100);
}

.trust-panel,
.card,
.notice-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper-0);
  box-shadow: var(--shadow-sm);
}

.trust-panel {
  display: grid;
  gap: 18px;
  padding: 26px;
}

.trust-panel p {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  margin: 0;
  color: var(--ink-700);
  line-height: 1.5;
}

.card {
  padding: 26px;
}

.button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, #f0aa54, var(--dawn-600));
  color: #251606;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(197, 123, 60, 0.2);
  transition: background var(--dur) var(--ease-calm), transform var(--dur) var(--ease-calm), border-color var(--dur) var(--ease-calm);
}

.button:hover,
.link-button:hover {
  background: linear-gradient(180deg, var(--dawn-500), var(--dawn-700));
}

.button:active,
.link-button:active {
  transform: translateY(1px);
}

.button.secondary,
.link-button.secondary {
  background: rgba(255, 250, 242, 0.7);
  color: var(--sage-700);
  border-color: var(--sage-700);
  box-shadow: none;
}

.button.ghost,
.link-button.ghost {
  background: transparent;
  color: var(--night-700);
  box-shadow: none;
}

.button.full,
.link-button.full {
  width: 100%;
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.fineprint,
footer {
  color: var(--ink-500);
  font-size: 0.9rem;
  line-height: 1.5;
}

footer {
  border-top: 1px solid var(--line-soft);
  padding: 30px 32px 42px;
  background: var(--paper-50);
}

footer .footer-inner {
  width: min(100%, 1280px);
  margin: 0 auto;
}

.check-layout {
  position: relative;
  min-height: calc(100vh - 86px);
  display: grid;
  grid-template-columns: 210px minmax(0, 920px) minmax(160px, 1fr);
  gap: 36px;
  align-items: center;
  padding: 34px max(28px, calc((100vw - 1320px) / 2));
  overflow: hidden;
}

.stage-rail {
  display: grid;
  gap: 0;
  align-self: center;
}

.stage {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 96px;
}

.stage::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line-strong);
}

.stage span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper-50);
  color: var(--ink-400);
  font-size: 1.35rem;
  font-weight: 700;
}

.stage p {
  margin: 0;
  color: var(--ink-500);
  font-weight: 700;
}

.stage.active span {
  border-color: var(--sage-700);
  background: var(--sage-700);
  color: var(--paper-0);
  box-shadow: 0 0 0 8px rgba(47, 93, 87, 0.12);
}

.stage.active p {
  color: var(--night-700);
}

.check-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: rgba(255, 250, 242, 0.92);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.check-card-inner {
  padding: clamp(30px, 5vw, 58px);
}

.question-count {
  margin: 0 0 12px;
  color: var(--night-700);
  font-weight: 700;
}

.progress {
  height: 8px;
  margin-bottom: 42px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--paper-200);
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--dawn-700), var(--dawn-500));
  transition: width 320ms var(--ease-calm);
}

.question-context {
  margin: 0 0 20px;
  color: var(--ink-500);
  font-size: 1.06rem;
  font-weight: 600;
}

.check-card h1 {
  max-width: 740px;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.1;
}

.question-help {
  display: flex;
  gap: 12px;
  margin: 20px 0 0;
  color: var(--ink-500);
  font-size: 1.05rem;
  line-height: 1.5;
}

.question-help svg {
  color: var(--sage-700);
  margin-top: 0.18em;
}

.options {
  display: grid;
  gap: 14px;
  margin: 34px 0 0;
}

.option {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 18px;
  align-items: center;
  width: 100%;
  min-height: 66px;
  padding: 16px 20px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  background: rgba(255, 250, 242, 0.72);
  color: var(--night-700);
  text-align: left;
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
}

.option-radio {
  width: 28px;
  height: 28px;
  border: 2px solid #7b776f;
  border-radius: 50%;
}

.option.selected {
  border-color: var(--dawn-600);
  background: rgba(248, 230, 210, 0.5);
}

.option.selected .option-radio {
  border: 9px solid var(--dawn-600);
}

.check-actions {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px clamp(30px, 5vw, 58px);
  border-top: 1px solid var(--line);
  background: rgba(251, 248, 243, 0.88);
}

.check-actions p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--ink-500);
  font-size: 0.92rem;
  line-height: 1.35;
}

.check-side-visual {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -1;
  width: 28vw;
  min-width: 260px;
  background:
    linear-gradient(90deg, rgba(251, 248, 243, 0), rgba(9, 21, 42, 0.18)),
    url('/assets/generated/bedside-dawn-nachtgrip.png') center / cover;
}

.result-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
  gap: 24px;
  min-height: 440px;
  padding: 46px max(32px, calc((100vw - 1280px) / 2)) 86px;
  color: #f3efe8;
  overflow: hidden;
  background: linear-gradient(160deg, var(--night-950), var(--night-800));
}

.result-hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  gap: 20px;
}

.result-hero h1 {
  max-width: 760px;
  color: #f7f1e9;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
}

.result-hero p {
  color: #e0e6ef;
}

.result-label {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  max-width: none !important;
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid rgba(248, 230, 210, 0.36);
  border-radius: var(--r-pill);
  background: rgba(76, 133, 125, 0.72);
  color: #fff7ee !important;
  font-weight: 700;
}

.result-photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 55%;
  background:
    linear-gradient(90deg, var(--night-950), rgba(9, 21, 42, 0.2) 45%, rgba(9, 21, 42, 0.08)),
    url('/assets/generated/bedside-dawn-nachtgrip.png') center / cover;
  opacity: 0.88;
}

.result-sheet {
  position: relative;
  z-index: 3;
  width: min(100% - 56px, 1220px);
  margin: -54px auto 64px;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--paper-0);
  box-shadow: var(--shadow-lg);
}

.result-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 42px;
}

.meaning-block {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.meaning-block > span {
  width: 48px;
  height: 48px;
}

.meaning-block p {
  grid-column: 2;
  margin: -8px 0 0;
  color: var(--ink-700);
  line-height: 1.6;
}

.result-steps {
  padding-top: 32px;
}

.action-steps .step-card {
  grid-template-columns: 48px 1fr 18px;
  align-items: center;
}

.action-steps .step-card::after {
  content: "";
  width: 18px;
  height: 18px;
  border-right: 2px solid var(--sage-700);
  border-bottom: 2px solid var(--sage-700);
  transform: rotate(-45deg);
}

.action-steps .step-card p {
  font-size: 1rem;
}

.action-steps .step-card p strong {
  color: var(--night-700);
  font-size: 1.08rem;
}

.optin-panel {
  align-self: start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 250, 242, 0.75);
  box-shadow: var(--shadow-sm);
}

.panel-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
}

.optin-panel p {
  color: var(--ink-700);
  line-height: 1.55;
}

.source {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper-100);
  color: var(--ink-500);
  font-size: 0.92rem;
  line-height: 1.5;
}

.source svg {
  color: var(--sage-700);
}

.form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--night-700);
  font-size: 0.9rem;
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: rgba(255, 250, 242, 0.92);
  color: var(--ink-900);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.or-line {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  margin: 20px 0 4px;
  color: var(--ink-500);
}

.or-line::before,
.or-line::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.message {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--paper-100);
  color: var(--ink-700);
  line-height: 1.5;
}

.message.error {
  background: var(--dawn-100);
  color: #5a3214;
}

.dashboard {
  display: grid;
  gap: 18px;
  padding-top: 48px;
  padding-bottom: 64px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--paper-100);
  color: var(--ink-700);
  font-weight: 700;
}

.overline {
  margin: 0 0 12px;
  color: var(--dawn-700);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.clean-list,
.hero-list {
  display: grid;
  gap: 14px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.dot {
  width: 9px;
  height: 9px;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--dawn-500);
  flex: none;
}

@media (max-width: 1050px) {
  .site-nav {
    display: none;
  }

  .hero-split,
  .result-hero,
  .result-main,
  .section-grid,
  .recognition-band .shell {
    grid-template-columns: 1fr;
  }

  .hero-split {
    min-height: auto;
  }

  .hero-media {
    min-height: 520px;
  }

  .recognition-items {
    grid-template-columns: 1fr;
  }

  .check-layout {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .stage-rail {
    display: none;
  }

  .check-side-visual {
    display: none;
  }
}

@media (max-width: 720px) {
  html {
    font-size: 16px;
  }

  .topbar {
    min-height: 70px;
    padding: 14px 20px;
  }

  .brand {
    font-size: 1.55rem;
  }

  .topbar .nav-cta {
    display: none;
  }

  .shell {
    padding: 0 22px;
  }

  .hero-copy {
    padding: 44px 24px;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 14vw, 4rem);
  }

  .hero-media {
    min-height: 390px;
  }

  .check-preview {
    right: 18px;
    bottom: 20px;
    padding: 16px;
  }

  .recognition-band,
  .section {
    padding: 46px 0;
  }

  .check-layout {
    min-height: calc(100vh - 70px);
    padding: 16px;
    align-items: start;
  }

  .check-card {
    border-radius: var(--r-lg);
  }

  .check-card-inner {
    padding: 24px 20px;
  }

  .progress {
    margin-bottom: 28px;
  }

  .check-card h1 {
    font-size: 1.85rem;
  }

  .check-actions {
    position: sticky;
    bottom: 0;
    grid-template-columns: 1fr 1.3fr;
    gap: 10px;
    padding: 14px 16px 18px;
  }

  .check-actions p {
    display: none;
  }

  .check-actions .button {
    width: 100%;
    padding-inline: 16px;
  }

  .result-hero {
    min-height: 460px;
    padding: 32px 22px 82px;
  }

  .result-photo {
    width: 100%;
    opacity: 0.32;
  }

  .result-sheet {
    width: calc(100% - 28px);
    margin-top: -46px;
    padding: 22px 18px;
  }

  .meaning-block {
    grid-template-columns: 1fr;
  }

  .meaning-block p {
    grid-column: auto;
    margin-top: 0;
  }

  .action-steps .step-card {
    grid-template-columns: 42px 1fr;
  }

  .action-steps .step-card::after,
  .action-steps .step-card p::before {
    display: none;
  }

  footer {
    padding-inline: 22px;
  }
}

/* ── Tussenevaluatie ─────────────────────────────────────────────────────── */
.module-cards { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.module-card { border: 1.5px solid var(--line-strong, #e0ddd8); border-radius: 12px; padding: 20px; background: var(--paper-0, #fff); transition: opacity .2s; }
.module-card.skipped { opacity: .5; }
.module-card h3 { margin: 0 0 6px; font-size: 1rem; }
.module-card p { margin: 0 0 8px; font-size: .9rem; color: var(--ink-2, #555); }
.module-optin-vraag { color: var(--ink-1, #222) !important; }
.module-card-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.button.small { padding: 8px 14px; font-size: .85rem; }
.tussenevaluatie-actions { flex-direction: column; gap: 10px; }

/* ── Profiel-blok op uitkomstpagina ────────────────────────────────────────── */
.profile-block { margin-bottom: 20px; }
.profile-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 8px; }
.profile-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.module-card.selected { border-color: var(--accent, #2d6a4f); background: #f0faf5; }
