*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }

:root {
    --paper:   #FBF6F2;
    --raise:   #FFFFFF;
    --ink:     #2B211D;
    --muted:   #85756C;
    --line:    rgba(43, 33, 29, 0.10);
    --coral:   #E0603A;
    --coral-soft: rgba(224, 96, 58, 0.10);
    --sage:    #5E8271;
    --sage-soft: rgba(94, 130, 113, 0.12);
    --focus:   #E0603A;

    --maxw: 66rem;
    --pad: clamp(1.25rem, 5vw, 2rem);
    --sect-y: clamp(3.75rem, 11vw, 7rem);

    --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", system-ui, sans-serif;
  }

  @media (prefers-color-scheme: dark) {
    :root {
      --paper: #201814;
      --raise: #2A211C;
      --ink:   #F3EAE3;
      --muted: #A9998F;
      --line:  rgba(243, 234, 227, 0.12);
      --coral: #FF8763;
      --coral-soft: rgba(255, 135, 99, 0.14);
      --sage:  #8CB29D;
      --sage-soft: rgba(140, 178, 157, 0.16);
      --focus: #FF8763;
    }
  }
  :root[data-theme="light"] {
    --paper:#FBF6F2; --raise:#FFFFFF; --ink:#2B211D; --muted:#85756C; --line:rgba(43,33,29,0.10);
    --coral:#E0603A; --coral-soft:rgba(224,96,58,0.10); --sage:#5E8271; --sage-soft:rgba(94,130,113,0.12); --focus:#E0603A;
  }
  :root[data-theme="dark"] {
    --paper:#201814; --raise:#2A211C; --ink:#F3EAE3; --muted:#A9998F; --line:rgba(243,234,227,0.12);
    --coral:#FF8763; --coral-soft:rgba(255,135,99,0.14); --sage:#8CB29D; --sage-soft:rgba(140,178,157,0.16); --focus:#FF8763;
  }

  * { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
  }

  .wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

  /* Scroll-voortgang */
  .progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0%;
    background: var(--coral); z-index: 50; transition: width .1s linear;
  }

  /* Merkbalk: witte balk over de volle breedte met grijs scheidingslijntje,
     logo 1:1 zoals op de website. Bewust in beide thema's wit. */
  .brandbar { background: #FFFFFF; border-bottom: 1px solid rgba(43, 33, 29, 0.10); padding: 15px 0; }
  .brandlogo { height: 40px; width: auto; display: block; }

  /* Eyebrow met 'centraal'-node */
  .eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    font-size: .78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--coral); margin: 0 0 1.1rem;
  }
  .eyebrow.sage { color: var(--sage); }
  .node { width: 12px; height: 12px; border-radius: 50%; flex: none; position: relative; border: 2px solid currentColor; }
  .node::after { content:""; position:absolute; inset: 2.5px; border-radius:50%; background: currentColor; }

  h1, h2 { text-wrap: balance; letter-spacing: -0.02em; line-height: 1.05; margin: 0; font-weight: 800; }
  h1 { font-size: clamp(2.5rem, 8.5vw, 4.3rem); }
  h2 { font-size: clamp(1.85rem, 5.5vw, 2.65rem); line-height: 1.08; }

  .lead { font-size: clamp(1.15rem, 2.6vw, 1.4rem); line-height: 1.55; color: var(--ink); margin: 1.3rem 0 0; max-width: 34rem; }
  p { max-width: 38rem; }
  .muted { color: var(--muted); }

  /* Hero */
  .hero { position: relative; padding: clamp(3.25rem, 9vw, 5.5rem) 0 var(--sect-y); overflow: hidden; }
  .hero::before {
    content: ""; position: absolute; z-index: 0;
    top: -18%; right: -30%; width: 90vw; max-width: 720px; aspect-ratio: 1;
    background: radial-gradient(circle at center,
        var(--coral-soft) 0%, var(--coral-soft) 34%, transparent 62%);
    filter: blur(2px); pointer-events: none;
  }
  .hero .wrap { position: relative; z-index: 1; }
  .hero h1 span { color: var(--coral); }

  .cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.2rem; margin-top: 2.1rem; }
  .btn {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--coral); color: #fff; text-decoration: none;
    font-weight: 700; font-size: 1.02rem; padding: .85rem 1.5rem; border-radius: 999px;
    border: none; cursor: pointer; transition: transform .15s ease, filter .15s ease;
  }
  .btn:hover { transform: translateY(-1px); filter: saturate(1.08) brightness(1.03); }
  .btn svg { width: 18px; height: 18px; }
  .reassure { font-size: .95rem; color: var(--muted); }

  /* Pijler-secties */
  .sect { padding: var(--sect-y) 0; border-top: 1px solid var(--line); }
  .sect p { margin: 1.1rem 0 0; color: var(--ink); }
  .facts { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .75rem; }
  .facts li {
    display: flex; align-items: flex-start; gap: .8rem;
    background: var(--raise); border: 1px solid var(--line); border-radius: 14px;
    padding: .9rem 1.05rem; font-weight: 600; color: var(--ink);
  }
  .facts li .ic { flex: none; width: 22px; height: 22px; color: var(--coral); margin-top: 1px; }
  .sect.sagey .facts li .ic { color: var(--sage); }
  .facts li small { display: block; font-weight: 400; color: var(--muted); font-size: .92rem; margin-top: .1rem; }

  /* Menselijke quote */
  .voice { padding: var(--sect-y) 0; text-align: left; border-top: 1px solid var(--line); }
  .voice blockquote {
    margin: 0; font-family: var(--serif); font-style: italic;
    font-size: clamp(1.6rem, 4.6vw, 2.35rem); line-height: 1.25; letter-spacing: -0.01em;
    color: var(--ink); text-wrap: balance;
  }
  .voice blockquote span { color: var(--coral); }
  .voice cite { display: block; margin-top: 1.3rem; font-style: normal; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

  /* Slot */
  .close { padding: var(--sect-y) 0 clamp(2.5rem,7vw,4rem); border-top: 1px solid var(--line); position: relative; overflow: hidden; }
  .close::before {
    content:""; position:absolute; z-index:0; bottom:-40%; left:50%; transform: translateX(-50%);
    width: 120vw; max-width: 900px; aspect-ratio: 2/1;
    background: radial-gradient(ellipse at center bottom, var(--sage-soft) 0%, transparent 65%);
    pointer-events: none;
  }
  .close .wrap { position: relative; z-index: 1; }

  footer { padding: 2rem 0 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
  footer .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; align-items: center; }

  a.txtlink { color: var(--coral); }

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

  /* Reveal */
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .reveal.in { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn { transition: none; }
  }

  /* ── Sectie-grid met iPhone-carousel (alleen op groot scherm) ── */
  .wrap--wide { max-width: 66rem; }
  /* Niet-carousel secties: content links uitlijnen op dezelfde kolom, leesbare breedte */
  .hero .wrap > *, .voice .wrap > *, .close .wrap > * { max-width: 44rem; }
  .sect-grid { display: block; }
  .phone-col { display: none; }
  @media (min-width: 920px) {
    .sect-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
    .phone-col { display: block; }
    .sect-copy .facts { max-width: 34rem; }
  }
  .phone { position: relative; width: 300px; margin: 0 auto; padding: 12px; border-radius: 52px;
    background: linear-gradient(150deg, #34343a 0%, #17171a 38%, #0c0c0e 100%);
    box-shadow: 0 34px 74px rgba(43,33,29,.30), 0 6px 18px rgba(0,0,0,.30), inset 0 0 0 1.5px rgba(255,255,255,.16); }
  .phone-screen { position: relative; border-radius: 41px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 2px #000; }
  .statusbar { position: relative; z-index: 3; height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 15px 27px 0; background: #fff; transition: background .45s ease, color .45s ease; }
  .sb-time { font-size: 14.5px; font-weight: 700; color: #111; letter-spacing: .3px; font-variant-numeric: tabular-nums; }
  .sb-right { display: flex; align-items: center; gap: 6px; color: #111; }
  .sb-ic { display: block; }
  .island { position: absolute; z-index: 4; top: 14px; left: 50%; transform: translateX(-50%); width: 74px; height: 26px; background: #000; border-radius: 14px; }
  .shot-area { position: relative; aspect-ratio: 393 / 852; }
  .shot-area .slide { position: absolute; inset: 0; width: 100%; height: 100%; box-sizing: border-box; padding: 4px 6px 7px; object-fit: contain; object-position: top center; opacity: 0; transition: opacity .45s ease; }
  .shot-area .slide.is-active { opacity: 1; }
  /* Full-bleed overlay-slides (dim-schermen zoals de veilig-popups): vullen het hele
     toestelscherm tot alle randen. De screenshot is zelf al van rand tot rand gedimd;
     hier laten we 'm zonder marge vullen én dimmen we de statusbalk-strook mee, zodat
     ook de bovenrand (achter tijd/batterij) door de overlay wordt afgedekt — net als in de app. */
  .shot-area .slide.shot-fullbleed { padding: 0; object-fit: cover; object-position: center; }
  .phone-screen:has(.slide.shot-fullbleed.is-active) .statusbar { background: rgba(0,0,0,.45); }
  .phone-screen:has(.slide.shot-fullbleed.is-active) .sb-time,
  .phone-screen:has(.slide.shot-fullbleed.is-active) .sb-right { color: #fff; }
  .pbtn { position: absolute; background: #0a0a0c; border-radius: 2px; box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 1px 2px rgba(0,0,0,.4); }
  .pbtn-mute { left: -2px; top: 104px; width: 3px; height: 24px; }
  .pbtn-vup  { left: -2px; top: 146px; width: 3px; height: 48px; }
  .pbtn-vdn  { left: -2px; top: 204px; width: 3px; height: 48px; }
  .pbtn-pwr  { right: -2px; top: 158px; width: 3px; height: 70px; }
  .carousel-ctrls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
  .carousel-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--raise); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: border-color .15s ease; }
  .carousel-btn:hover { border-color: var(--coral); }
  .carousel-dots { display: flex; gap: 8px; }
  .carousel-dots button { width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%; background: var(--line); cursor: pointer; transition: background .15s ease; }
  .carousel-dots button.is-active { background: var(--coral); }
  .brandbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; flex-wrap: wrap; }
  .aud-nav { display: flex; gap: .25rem; flex-wrap: wrap; }
  .aud-link { font-size: .95rem; font-weight: 600; color: var(--muted); text-decoration: none; padding: .4rem .75rem; border-radius: 999px; white-space: nowrap; transition: color .15s ease, background .15s ease; }
  .aud-link:hover { color: var(--ink); }
  .aud-link.is-active { color: var(--coral); background: var(--coral-soft); }
  .story[hidden] { display: none; }
  .placeholder { min-height: 58vh; display: grid; align-content: center; }
  .placeholder h2 { margin-top: .4rem; }
  .shot-area .slide.shot-todo { display: flex; align-items: center; justify-content: center; background: #fff; }
  .todo-inner { display: grid; gap: 7px; justify-items: center; text-align: center; border: 2px dashed var(--line); border-radius: 18px; padding: 22px 16px; color: var(--muted); background: var(--paper); }
  .todo-inner svg { width: 34px; height: 34px; color: var(--coral); }
  .todo-inner strong { font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: .02em; text-transform: uppercase; }
  .todo-inner span { font-size: 12.5px; line-height: 1.45; max-width: 20ch; }


/* ── CTA-blok onderaan elke pagina ── */
.site-cta { border-top: 1px solid var(--line); background: var(--coral-soft); padding: clamp(2.5rem,6vw,4rem) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; flex-wrap: wrap; max-width: 46rem; }
.cta-title { margin: 0; font-size: clamp(1.4rem,3.4vw,1.95rem); letter-spacing: -0.02em; }
.cta-sub { margin: .5rem 0 0; color: var(--muted); }
.cta-btn, .form-submit { display: inline-flex; align-items: center; gap: .5rem; background: var(--coral); color: #fff; text-decoration: none; font-weight: 700; font-size: 1.02rem; padding: .85rem 1.6rem; border-radius: 999px; border: none; cursor: pointer; white-space: nowrap; transition: transform .15s ease, filter .15s ease; }
.cta-btn:hover, .form-submit:hover { transform: translateY(-1px); filter: saturate(1.08) brightness(1.03); }

/* ── site-footer ── */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--coral); }

/* ── contactformulier ── */
.contact-form { max-width: 34rem; margin: 2.4rem 0 0; display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--raise); border: 1px solid var(--line); border-radius: 12px; padding: .75rem .9rem; width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--coral); }
.field.is-hidden { display: none; }
.consent { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; color: var(--muted); }
.consent input { width: auto; margin-top: .2rem; flex: none; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
.form-success { margin: 2rem 0 0; padding: 1.3rem 1.5rem; border-radius: 16px; background: var(--sage-soft); border: 1px solid var(--line); }
.form-success h2 { margin: 0 0 .4rem; }
.form-error { color: var(--coral); font-weight: 600; }

/* ── Contact-link in de balk: subtiel onderscheiden van de doelgroepen ── */
.aud-link--contact { color: var(--coral); }
.aud-link--contact:hover { color: var(--coral); background: var(--coral-soft); }

/* ── Brandbar-acties: doelgroep-nav + profiel-icoon ── */
.brandlogo-link { display: inline-flex; align-items: center; flex: none; }
.brand-actions { display: flex; align-items: center; gap: .3rem 1rem; }
.brandlogo--icon { display: none; }
.brand-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--muted); flex: none; transition: color .15s ease, background .15s ease; }
.brand-icon svg { width: 22px; height: 22px; }
.brand-icon:hover { color: var(--coral); background: var(--coral-soft); }
.aud-contact-m { color: var(--coral); }  /* mobiel Contact-icoon in coral, net als de tekstlink */
.aud-picker.aud-picker-m, .aud-contact-m { display: none; }
/* Mobiel: tekstlinks weg, compacte doelgroep-dropdown + Contact + icoon-logo */
@media (max-width: 760px) {
  .aud-nav { display: none; }
  .aud-picker.aud-picker-m { display: inline-flex; }
  .aud-contact-m { display: inline-flex; }
  .brandlogo--full { display: none; }
  .brandlogo--icon { display: block; width: 38px; height: 38px; border-radius: 10px; }
  .brand-actions { gap: .5rem; }
  .brandbar .wrap { flex-wrap: nowrap; }
}

/* ── Cookiebanner (eigen stijl; site-styles.css wordt hier niet geladen) ── */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--raise); border-top: 1px solid var(--line); box-shadow: 0 -8px 30px rgba(43,33,29,.10); }
.cookie-banner-inner { max-width: 66rem; margin: 0 auto; padding: 1rem clamp(1.25rem,5vw,2rem); display: flex; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; flex-wrap: wrap; }
.cookie-banner-text { margin: 0; font-size: .88rem; line-height: 1.5; color: var(--ink); max-width: 48rem; }
.cookie-banner-actions { flex: none; }
.cookie-banner .primary-btn { display: inline-flex; align-items: center; background: var(--coral); color: #fff; border: none; cursor: pointer; font: inherit; font-weight: 700; padding: .7rem 1.5rem; border-radius: 999px; transition: filter .15s ease; }
.cookie-banner .primary-btn:hover { filter: saturate(1.08) brightness(1.03); }

/* ══ App-modus (EffeCentraalApp): flex-kolom, safe-areas, onderste tabbalk ══ */
body.is-app { padding-top: env(safe-area-inset-top); background: #fff; display: flex; flex-direction: column; height: 100dvh; overflow: hidden; }
body.is-app .verhaal-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: none; background: var(--paper); }
body.is-app .progress { display: none; }

/* "Ik ben…"-dropdown in de merkbalk (app) */
.aud-picker { display: inline-flex; align-items: center; gap: .5rem; }
.aud-picker label { font-size: .8rem; font-weight: 700; letter-spacing: .02em; color: var(--muted); }
.aud-select { font-family: inherit; font-size: .8rem; font-weight: 700; letter-spacing: .02em; color: var(--ink); background: var(--raise); border: 1px solid var(--line); border-radius: 999px; padding: .45rem 1.9rem .45rem .85rem; -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23E0603A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center; }
.aud-select:focus { outline: 2px solid var(--focus); border-color: var(--coral); }

/* App-tabbalk — zelfstandig gestyled met verhaal-tokens */
.app-tabbar { display: none; }
body.is-app .app-tabbar { display: flex; flex-shrink: 0; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -2px 12px rgba(43,33,29,.06); }
.app-tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 10px 4px 8px; text-decoration: none; color: var(--muted); font-size: 10px; font-weight: 500; -webkit-tap-highlight-color: transparent; }
.app-tab.is-active { color: var(--coral); }
.app-tab-ico { width: 24px; height: 24px; flex-shrink: 0; }
.app-tab-label { line-height: 1; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-tab-ico-wrap { position: relative; width: 24px; height: 24px; flex-shrink: 0; }
.app-tab-badge { position: absolute; top: -5px; right: -7px; background: #ff3b30; color: #fff; font-size: 9px; font-weight: 700; line-height: 15px; min-width: 15px; height: 15px; border-radius: 8px; text-align: center; padding: 0 3px; }
