/*
 * Main pages (how-it-works, examples, over-ons, het-verhaal; landing-sweep
 * 03-12-2026). Builds on the shared .lp-* components in landing-modern.css
 * (.lp-hero, .lp-panel, .lp-lead, .lp-price-line, .lp-quote); this file only
 * holds what is particular to these pages: a text-plus-product row, a calm
 * checklist, one product frame, and overrides of how-it-works-wow.css for
 * the setup run when it sits in the hero column.
 * Landing is always light (#14396): no dark-theme rules here.
 */

/* ---- Product frame: the look comes from the shared .lp-frame ---- */
.hp-shot {
  margin: 0;
}

.hp-shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- Row: copy on one side, product on the other ---- */
.hp-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  text-align: left;
}

.hp-row--flip .hp-row-copy {
  order: 2;
}

.hp-row-copy > h2 {
  margin: 0 0 16px;
  text-align: left;
}

.hp-row-copy > p {
  margin: 0 0 20px;
  max-width: 34em;
}

@media (max-width: 900px) {
  .hp-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hp-row--flip .hp-row-copy {
    order: 0;
  }
}

/* ---- Checklist: a list with a bold lead-in, no cards ---- */
.hp-checks {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hp-checks li {
  position: relative;
  padding-left: 30px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--lp-text, #334155);
}

.hp-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--landing-accent, #1565c0)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

.hp-checks strong {
  color: var(--lp-ink, #0b1b33);
  font-weight: 600;
}

/* ---- /how-it-works: the setup run in the hero column ---- */
.page-how-it-works .lp-hero-visual .hw {
  max-width: none;
}

.page-how-it-works .lp-hero-visual .hw-captions {
  margin-top: 16px;
}

.page-how-it-works .lp-hero-visual .hw-caption {
  font-size: 16px;
  line-height: 1.55;
  text-align: left;
  max-width: none;
}

@media (min-width: 769px) {
  /* The hero column is ~660px instead of 1080: a shorter stage keeps the
     whole window, rail included, inside a 900px laptop screen. */
  .page-how-it-works .lp-hero-visual .hw-stage {
    height: 470px;
  }

  .page-how-it-works .lp-hero-visual .hw-rail {
    margin-bottom: 14px;
  }
}

/* ---- /examples: trade picker in the hero (radio + label, no JS) ---- */
.ex-pick {
  position: relative;
}

.ex-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ex-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.ex-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 999px;
  background: #ffffff;
  color: var(--lp-ink, #0b1b33);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.ex-chip:hover {
  border-color: rgba(15, 23, 42, 0.28);
}

.ex-fig {
  display: none;
  margin: 0;
}

.ex-fig picture,
.ex-fig img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.ex-fig img {
  aspect-ratio: 16 / 10;
  background: #eef2f6;
}

.ex-fig figcaption {
  margin-top: 12px;
  font-size: 15px;
}

.ex-fig figcaption a {
  color: var(--landing-accent, #1565c0);
  font-weight: 600;
  text-underline-offset: 3px;
}

#ex-r-schilder:checked ~ .ex-stage .ex-fig--schilder {
  display: block;
}

#ex-r-schilder:checked ~ .ex-chips [for="ex-r-schilder"] {
  background: var(--lp-ink, #0b1b33);
  border-color: var(--lp-ink, #0b1b33);
  color: #ffffff;
}

#ex-r-schilder:focus-visible ~ .ex-chips [for="ex-r-schilder"] {
  outline: 2px solid var(--landing-accent, #1565c0);
  outline-offset: 2px;
}

#ex-r-fotograaf:checked ~ .ex-stage .ex-fig--fotograaf {
  display: block;
}

#ex-r-fotograaf:checked ~ .ex-chips [for="ex-r-fotograaf"] {
  background: var(--lp-ink, #0b1b33);
  border-color: var(--lp-ink, #0b1b33);
  color: #ffffff;
}

#ex-r-fotograaf:focus-visible ~ .ex-chips [for="ex-r-fotograaf"] {
  outline: 2px solid var(--landing-accent, #1565c0);
  outline-offset: 2px;
}

#ex-r-coach:checked ~ .ex-stage .ex-fig--coach {
  display: block;
}

#ex-r-coach:checked ~ .ex-chips [for="ex-r-coach"] {
  background: var(--lp-ink, #0b1b33);
  border-color: var(--lp-ink, #0b1b33);
  color: #ffffff;
}

#ex-r-coach:focus-visible ~ .ex-chips [for="ex-r-coach"] {
  outline: 2px solid var(--landing-accent, #1565c0);
  outline-offset: 2px;
}

#ex-r-hovenier:checked ~ .ex-stage .ex-fig--hovenier {
  display: block;
}

#ex-r-hovenier:checked ~ .ex-chips [for="ex-r-hovenier"] {
  background: var(--lp-ink, #0b1b33);
  border-color: var(--lp-ink, #0b1b33);
  color: #ffffff;
}

#ex-r-hovenier:focus-visible ~ .ex-chips [for="ex-r-hovenier"] {
  outline: 2px solid var(--landing-accent, #1565c0);
  outline-offset: 2px;
}

#ex-r-elektricien:checked ~ .ex-stage .ex-fig--elektricien {
  display: block;
}

#ex-r-elektricien:checked ~ .ex-chips [for="ex-r-elektricien"] {
  background: var(--lp-ink, #0b1b33);
  border-color: var(--lp-ink, #0b1b33);
  color: #ffffff;
}

#ex-r-elektricien:focus-visible ~ .ex-chips [for="ex-r-elektricien"] {
  outline: 2px solid var(--landing-accent, #1565c0);
  outline-offset: 2px;
}

#ex-r-loodgieter:checked ~ .ex-stage .ex-fig--loodgieter {
  display: block;
}

#ex-r-loodgieter:checked ~ .ex-chips [for="ex-r-loodgieter"] {
  background: var(--lp-ink, #0b1b33);
  border-color: var(--lp-ink, #0b1b33);
  color: #ffffff;
}

#ex-r-loodgieter:focus-visible ~ .ex-chips [for="ex-r-loodgieter"] {
  outline: 2px solid var(--landing-accent, #1565c0);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .ex-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -24px;
    padding-inline: 24px;
    scrollbar-width: none;
  }

  .ex-chips::-webkit-scrollbar {
    display: none;
  }

  .ex-chip {
    flex: none;
  }

  /* A soft fade at the right edge says the row scrolls. */
  .ex-chips {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
  }
}

/* ---- /het-verhaal and /over-ons: the reading column ---- */
.page-het-verhaal .verhaal-hero,
.page-over-ons .verhaal-hero {
  text-align: left;
}

/* Same left edge as .lp-hero on every main page (x=120 at 1440). */
.page-het-verhaal .verhaal-hero-inner {
  max-width: 1200px;
  padding: 0;
  gap: clamp(32px, 6vw, 80px);
}

.page-het-verhaal .verhaal-hero {
  padding-left: 24px;
  padding-right: 24px;
}

.page-het-verhaal .verhaal-hero-figure {
  width: 280px;
}

.page-het-verhaal .verhaal-hero-photo {
  width: 280px;
  height: 350px;
}

.page-het-verhaal .verhaal-hero-photo {
  border-radius: 20px;
  border-color: var(--lp-border, rgba(15, 23, 42, 0.08));
  box-shadow: var(--lp-shadow-frame, 0 24px 64px -12px rgba(11, 27, 51, 0.18));
}

.page-het-verhaal .verhaal-hero-caption,
.page-het-verhaal .verhaal-figure figcaption {
  font-size: 15px;
  color: var(--lp-text, #334155);
}

/* /over-ons: the text column starts on the hero's left edge, like the
   facts on /security. */
.page-over-ons .verhaal-prose {
  margin-left: 0;
}

.page-het-verhaal .verhaal-prose p,
.page-over-ons .verhaal-prose p {
  font-size: var(--lp-body);
  line-height: 1.6;
  color: var(--lp-text, #334155);
}

.page-het-verhaal .verhaal-prose h2,
.page-over-ons .verhaal-prose h2 {
  font-size: clamp(24px, 1.2vw + 18px, 30px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--lp-ink, #0b1b33);
  margin: 48px 0 14px;
}

.page-het-verhaal .verhaal-sign-role {
  font-size: 15px;
  color: var(--lp-text, #334155);
}

/* Phone: the headline first, the portrait after it and small, never a
   full-screen photo before anyone knows what the page is. */
@media (max-width: 820px) {
  .page-het-verhaal .verhaal-hero {
    padding-top: calc(var(--landing-nav-height, 56px) + 32px);
  }

  .page-het-verhaal .verhaal-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 24px;
    padding: 0;
  }

  .page-het-verhaal .verhaal-hero-figure {
    width: 200px;
    text-align: left;
  }

  .page-het-verhaal .verhaal-hero-photo {
    width: 200px;
    height: 250px;
  }
}

/* ---- /over-ons: the fact card in the hero ---- */
.hp-facts {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--lp-border, rgba(15, 23, 42, 0.08));
  border-radius: 20px;
  background: var(--lp-panel, #f2f6fb);
}

.hp-facts-title {
  margin: 0 0 16px;
  font-size: var(--lp-h3, 20px);
  font-weight: 650;
  color: var(--lp-ink, #0b1b33);
}

.hp-facts-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
  margin: 0;
}

.hp-fact {
  min-width: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.hp-fact dt {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--lp-text, #334155);
}

.hp-fact dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--lp-ink, #0b1b33);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.hp-fact dd a {
  display: block;
  margin-top: 4px;
  color: var(--landing-accent, #1565c0);
  text-underline-offset: 3px;
}

.hp-fact--wide {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .hp-facts-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
}

.hp-checks a {
  color: var(--landing-accent, #1565c0);
  font-weight: 600;
  text-underline-offset: 3px;
}
