/* DemandRadar landing page
   Plain CSS, no build step. Colours are defined once below. */

/* ---------- Fonts (Poppins, self-hosted, SIL Open Font License) ---------- */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/poppins-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/poppins-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/poppins-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/poppins-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/poppins-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/poppins-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/poppins-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/poppins-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Colours ---------- */
:root {
  --navy: #064b68;
  --blue: #075f82;
  --teal: #0a99bd;
  --teal-strong: #0a7e9c; /* teal dark enough for white text */
  --ink: #18313d;
  --muted: #5d6f78;       /* grey text, readable on the light backgrounds */
  --line: #dbe6ea;
  --tint: #eaf4f7;
  --mist: #f5f8f9;
  --white: #fff;
  --orange: #d63e18;      /* buttons: white text meets WCAG AA */
  --orange-hover: #b3330f;
  --footer: #18313d;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px; /* keeps anchored content clear of the sticky header */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: Poppins, system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
}

a:hover {
  color: var(--navy);
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.on-dark :focus-visible {
  outline-color: var(--white);
}

.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;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 50;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.container-narrow {
  max-width: 760px;
}

.section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.section-title {
  margin: 0;
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.2;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.muted {
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--orange);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  padding: 16px 28px;
  border-radius: 8px;
}

.btn:hover {
  background: var(--orange-hover);
  color: var(--white);
}

.btn-shadow {
  box-shadow: 0 6px 16px rgba(214, 62, 24, 0.25);
}

.btn-sm {
  display: inline-block;
  font-size: 14px;
  padding: 10px 16px;
  white-space: nowrap;
}

.cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.cta-note {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: 6px;
}

.brand img {
  width: auto;
  height: 44px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-link {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 8px;
  border-radius: 6px;
}

.login-link:hover {
  text-decoration: underline;
}

/* On narrow phones the header button shows only "Start";
   screen readers still hear "Start met DemandRadar". */
@media (max-width: 479px) {
  .header-inner {
    gap: 8px;
  }
  .brand img {
    height: 40px;
  }
  .header-actions {
    gap: 4px;
  }
  .btn-sm {
    padding: 10px 14px;
  }
  .hide-narrow {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* Very small phones (320px): the header button would not fit;
   the hero button sits right below it. */
@media (max-width: 359px) {
  .header-actions .btn-sm {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--tint) 0%, var(--mist) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 48px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 64px;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(32px, 5.2vw, 50px);
  line-height: 1.12;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lead {
  margin: 20px 0 0;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.6;
  max-width: 520px;
  text-wrap: pretty;
}

.hero .cta-block {
  align-items: flex-start;
}

/* Calendar preview */
.preview {
  position: relative;
}

.calendar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(6, 75, 104, 0.12);
  overflow: hidden;
}

.calendar-head {
  background: var(--navy);
  color: var(--white);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.calendar-scope {
  font-size: 12px;
  opacity: 0.85;
}

.calendar-month {
  font-size: 17px;
  font-weight: 600;
}

.legend {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 600;
}

.legend span {
  padding: 3px 8px;
  border-radius: 6px;
}

.calendar-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.calendar-list li {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--tint);
}

.calendar-list li:last-child {
  border-bottom: 0;
}

.day {
  text-align: center;
  line-height: 1.1;
}

.day-num {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}

.day-name {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.event-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.event-meta {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.level {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

.legend .level-low {
  background: var(--mist);
  color: var(--muted);
}

.level-medium {
  background: var(--tint);
  color: var(--blue);
}

.level-high {
  background: var(--teal-strong);
  color: var(--white);
}

.level-peak {
  background: var(--navy);
  color: var(--white);
}

.legend .level-peak {
  background: var(--white);
  color: var(--navy);
}

.toast {
  position: absolute;
  left: -12px;
  bottom: -22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(6, 75, 104, 0.14);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 280px;
  font-size: 13px;
  line-height: 1.4;
}

.toast::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

.toast strong {
  color: var(--navy);
}

/* ---------- Problem ---------- */
.problem {
  text-align: center;
  padding-top: 80px;
  padding-bottom: 72px;
}

.problem p {
  margin: 16px auto 0;
  font-size: 17px;
  line-height: 1.7;
  max-width: 620px;
  text-wrap: pretty;
}

.problem p:first-of-type {
  margin-top: 20px;
}

/* ---------- Steps ---------- */
.bg-mist {
  background: var(--mist);
}

.steps {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 24px;
}

.steps li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}

.step-num {
  display: flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  align-items: center;
  justify-content: center;
}

.card-title {
  margin: 20px 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
}

.card-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Benefits ---------- */
.benefits {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 24px;
}

.benefits li {
  padding: 28px;
  border-radius: 8px;
  background: var(--tint);
}

.benefits li::before {
  content: "";
  display: block;
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: var(--teal);
}

.benefits .cta-block {
  margin-top: 48px;
}

/* ---------- Social proof ---------- */
.proof {
  background: var(--navy);
  color: var(--white);
}

.proof-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 48px;
  align-items: center;
}

.quote {
  margin: 0;
}

.quote-mark {
  display: block;
  font-size: 64px;
  line-height: 0.6;
  color: var(--teal);
  font-weight: 700;
}

.quote blockquote {
  margin: 16px 0 0;
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.5;
  font-weight: 500;
  text-wrap: pretty;
}

.quote blockquote p {
  margin: 0;
}

.quote figcaption {
  margin-top: 24px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.quote figcaption strong {
  font-weight: 600;
}

.quote figcaption span {
  color: var(--tint);
}

.avatar {
  border-radius: 50%;
  flex-shrink: 0;
}

.founder {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.founder-body {
  flex: 1;
  min-width: 200px;
}

.founder-label {
  margin: 0;
  font-size: 14px;
  color: var(--tint);
}

.founder-name {
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 600;
}

.founder-text {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--tint);
}

/* ---------- Pricing ---------- */
.pricing {
  background: var(--tint);
}

.pricing-sub {
  margin: 12px 0 0;
  text-align: center;
  font-size: 16px;
}

.price-card {
  margin: 40px auto 0;
  max-width: 460px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: 0 16px 40px rgba(6, 75, 104, 0.1);
}

.plan-toggle {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 8px;
  position: relative;
}

.plan-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.plan-toggle label {
  font-size: 15px;
  font-weight: 600;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  color: var(--ink);
}

.plan-toggle input:checked + label {
  background: var(--navy);
  color: var(--white);
}

.plan-toggle input:focus-visible + label {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.price {
  margin-top: 28px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.price-amount {
  font-size: 52px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.02em;
}

.price-period {
  font-size: 16px;
  color: var(--muted);
}

.price-note {
  margin: 10px 0 0;
  font-size: 14px;
  min-height: 22px;
}

.features {
  list-style: none;
  margin: 24px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  font-size: 15px;
}

.features li {
  display: flex;
  gap: 10px;
}

.features li::before {
  content: "\2713";
  color: var(--teal);
  font-weight: 700;
}

.price-card .btn {
  display: block;
  text-align: center;
  margin-top: 28px;
  padding: 16px 24px;
}

.price-card .btn [aria-hidden="true"] {
  margin-left: 4px;
}

.fine-print {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
}

/* Month/year switch works without JavaScript.
   Yearly details stay hidden unless "Per jaar" is picked. */
.for-year {
  display: none;
}

.price-card:has(#plan-year:checked) .for-year {
  display: revert;
}

.price-card:has(#plan-year:checked) .for-month {
  display: none;
}

/* ---------- FAQ ---------- */
.faq-list {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--blue);
  flex-shrink: 0;
}

.faq-list details[open] summary::after {
  content: "\2212";
}

.faq-list details p {
  margin: 0;
  padding: 0 0 22px;
  font-size: 15px;
  line-height: 1.7;
  text-wrap: pretty;
}

/* ---------- Closing call to action ---------- */
.closing {
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

.closing .container {
  padding-top: 80px;
  padding-bottom: 88px;
}

.closing h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.closing p {
  margin: 16px auto 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--tint);
  max-width: 520px;
}

.closing .cta-note {
  margin: 0;
  font-size: 14px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer);
  color: var(--tint);
  font-size: 13px;
  line-height: 1.6;
}

.footer-inner {
  padding-top: 24px;
  padding-bottom: 24px;
  display: grid;
  gap: 8px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  flex-wrap: wrap;
}

.footer-row p,
.footer-row address {
  margin: 0;
  font-style: normal;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--tint);
}

.footer-links a {
  display: inline-block;
  padding: 4px 0;
}

.site-footer a:hover {
  color: var(--white);
}

/* ---------- Sticky buy bar (phones only, shown by script.js) ---------- */
.sticky-cta {
  display: none;
}

@media (max-width: 759px) {
  .sticky-cta:not([hidden]) {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(6, 75, 104, 0.1);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .sticky-price {
    flex: 1;
    margin: 0;
    line-height: 1.3;
    font-size: 12px;
    color: var(--muted);
  }

  .sticky-price strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
  }

  .sticky-cta .btn {
    font-size: 15px;
    padding: 13px 18px;
    min-height: 44px;
  }

  /* room so the bar never covers the footer text */
  .footer-inner {
    padding-bottom: 96px;
  }
}
