/* =============================================================================
   home.css — uitsluitend voor de homepage (index.php), 20-9-2026.
   =============================================================================
   Waarom een eigen bestand en niet css/style.css: die is sitebreed en 96 kB; een
   visuele herziening van één pagina hoort daar niet in te lekken. Alles hieronder
   is voorgevoegd met .hp- en wordt alleen door index.php geladen.

   Bouwt op de bestaande tokens uit style.css (--groen, --ink, --grijs-bg,
   --radius-md, --shadow, --font-serif). Geen nieuwe kleuren, geen nieuwe fonts.

   OVERFLOW (de bekende mobiele bug): de oude homepage gebruikte overal
   `repeat(auto-fit, minmax(300px, 1fr))`. Onder ~348px viewport past die 300px
   niet meer binnen container-padding van 2x24px, en dan duwt het raster de pagina
   breder dan het scherm — zichtbaar als horizontale scroll met afgeknipte
   prijskaarten. Elk raster hier gebruikt daarom minmax(min(Xpx,100%),1fr).
   ========================================================================== */

.hp {
    /* Ruimer sectieritme dan de sitebrede --sectie-y (64px): de pagina moet rustiger
       ogen, en dat komt vooral uit witruimte, niet uit minder inhoud. */
    --hp-sectie: clamp(56px, 8vw, 96px);
    --hp-gap: clamp(16px, 2.5vw, 28px);
    --hp-rand: #ece8e1;

    /* Eigen "muted" voor deze pagina. De sitebrede --muted (#6b7280) haalt op wit nog
       net 4,83:1, maar op de zandkleurige (#f7f4ef) en lichtgroene (#e8f5ee) vlakken die
       deze pagina gebruikt zakt hij naar 4,41 resp. 4,31 — onder de WCAG-eis van 4,5:1
       voor kleine tekst. #5f6775 haalt 5,70 / 5,20 / 5,08 op dezelfde drie achtergronden.
       Bewust alleen hier en niet in style.css: dat zou de hele site herkleuren. */
    --hp-muted: #5f6775;
}

.hp-sectie { padding-block: var(--hp-sectie); }
.hp-sectie--smal { padding-block: calc(var(--hp-sectie) * 0.6); }
.hp-wit { background: #fff; }
.hp-zand { background: var(--grijs-bg, #f7f4ef); }

.hp-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding-inline: 20px;
}
.hp-wrap--smal { max-width: 780px; }

/* ---- Sectiekop: één consequente vorm voor de hele pagina ---- */
.hp-kop { text-align: center; margin: 0 auto clamp(28px, 4vw, 44px); max-width: 640px; }
.hp-kop h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.45rem, 3.2vw, 2.05rem);
    line-height: 1.22;
    color: var(--ink, #111827);
    margin: 0 0 10px;
}
.hp-kop p {
    margin: 0;
    color: var(--hp-muted, #5f6775);
    font-size: 1rem;
    line-height: 1.65;
}

/* =============================================================================
   PRODUCTKAARTEN — de kern van deze herziening: de drie mogelijkheden staan
   direct onder de hero, niet pas halverwege de pagina.
   ========================================================================== */
.hp-producten {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: var(--hp-gap);
    align-items: stretch;
}

.hp-kaart {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--hp-rand);
    border-radius: var(--radius-lg, 16px);
    padding: clamp(22px, 3vw, 30px);
    /* Alle drie dezelfde bovenruimte, ook de kaart zonder badge: anders begint de
       aanbevolen kaart een paar pixels lager en lopen de drie prijzen niet op één lijn. */
    padding-top: clamp(28px, 3.4vw, 36px);
    min-width: 0;                     /* zodat lange woorden nooit het raster oprekken */
}

/* De aanbevolen kaart krijgt lichte nadruk via schaduw en een dunne groene rand —
   niet via een dikkere rand op alle drie (dat maakte de oude pagina zo druk). */
.hp-kaart--aanbevolen {
    border-color: var(--groen, #1a6b3c);
    box-shadow: var(--shadow, 0 1px 2px rgba(17,24,39,.04), 0 4px 14px rgba(17,24,39,.07));
}

.hp-badge {
    position: absolute;
    top: -12px;
    left: clamp(22px, 3vw, 30px);
    right: clamp(22px, 3vw, 30px);
    width: fit-content;
    max-width: calc(100% - 2 * clamp(22px, 3vw, 30px));
    background: var(--groen, #1a6b3c);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .03em;
    padding: 5px 12px;
    border-radius: var(--radius-pil, 999px);
    line-height: 1.35;
}

.hp-kaart-naam {
    font-family: var(--font-serif);
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--ink, #111827);
    margin: 0 0 2px;
}

.hp-prijs {
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 4.5vw, 2.3rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--ink, #111827);
    margin: 6px 0 2px;
}
.hp-prijs-bij {
    display: block;
    font-size: .84rem;
    font-weight: 400;
    color: var(--hp-muted, #5f6775);
    margin: 0 0 18px;
    line-height: 1.5;
}

.hp-punten { list-style: none; margin: 0 0 24px; padding: 0; }
.hp-punten li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 9px;
    color: #374151;
    font-size: .93rem;
    line-height: 1.55;
}
.hp-punten li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .42em;
    width: 15px;
    height: 8px;
    border-left: 2px solid var(--groen-mid, #2d9e5f);
    border-bottom: 2px solid var(--groen-mid, #2d9e5f);
    transform: rotate(-45deg);
}

/* Wat een product NIET doet. Stond eerder in de vergelijkingsmatrix; die is geschrapt,
   dus dit is de plek waar dat verschil expliciet blijft. Bewust rustig, maar niet
   lichter dan de contrasteis: dit is echte informatie, geen kleine lettertjes. */
.hp-kaart-mist {
    margin: 0 0 22px;
    padding-top: 14px;
    border-top: 1px solid var(--hp-rand);
    color: var(--hp-muted, #5f6775);
    font-size: .85rem;
    line-height: 1.55;
}

.hp-kaart .hp-kaart-cta { margin-top: auto; text-align: center; width: 100%; }

/* Voorbeeldrapport onder de CTA. De gratis check heeft er geen, maar krijgt wel een lege
   gleuf met dezelfde hoogte — anders zou zijn knop als enige lager staan dan de andere twee. */
.hp-kaart-voorbeeld {
    min-height: 1.45rem;
    margin-top: 12px;
    text-align: center;
    font-size: .86rem;
    line-height: 1.45;
}
.hp-kaart-voorbeeld a {
    color: var(--groen, #1a6b3c);
    font-weight: 600;
    text-decoration: none;
}
.hp-kaart-voorbeeld a:hover { text-decoration: underline; }
.hp-naschrift {
    margin: clamp(22px, 3vw, 30px) 0 0;
    text-align: center;
    font-size: .9rem;
    color: var(--hp-muted, #5f6775);
    line-height: 1.65;
}

/* =============================================================================
   VERTROUWEN — vier kaarten met een icoon, zelfde vorm en rand als de
   productkaarten bovenaan, zodat de pagina één kaartentaal houdt.
   ========================================================================== */
.hp-trust {
    display: grid;
    /* 210px, niet 240: binnen .hp-wrap (max 1080 min 2x20 padding = 1040) past
       4 x 240 + 3 x 28 gap net niet, waardoor de vierde kaart alleen op een
       tweede rij belandde. Met 210px staan alle vier op één rij. */
    grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
    gap: var(--hp-gap);
    align-items: stretch;
}
.hp-trust-kaart {
    min-width: 0;
    background: #fff;
    border: 1px solid var(--hp-rand);
    border-radius: var(--radius-lg, 16px);
    padding: clamp(20px, 2.6vw, 26px);
}
.hp-trust-icoon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    border-radius: var(--radius-md, 12px);
    background: var(--groen-licht, #e8f5ee);
    color: var(--groen, #1a6b3c);
}
.hp-trust-icoon svg { width: 22px; height: 22px; display: block; }
.hp-trust strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.04rem;
    color: var(--ink, #111827);
    margin-bottom: 7px;
}
.hp-trust span:not(.hp-trust-icoon) {
    color: var(--hp-muted, #5f6775);
    font-size: .93rem;
    line-height: 1.62;
}

/* =============================================================================
   VOORBEELDRESULTAAT — één compacte kaart, geen tweede variant elders.
   ========================================================================== */
.hp-demo {
    background: #fff;
    border: 1px solid var(--hp-rand);
    border-radius: var(--radius-lg, 16px);
    box-shadow: var(--shadow, 0 1px 2px rgba(17,24,39,.04), 0 4px 14px rgba(17,24,39,.07));
    padding: clamp(22px, 3vw, 32px);
    position: relative;
}
.hp-demo-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--grijs-bg, #f7f4ef);
    color: var(--hp-muted, #5f6775);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-pil, 999px);
}
.hp-demo-context { margin: 0 0 4px; font-size: .84rem; color: var(--hp-muted, #5f6775); padding-right: 84px; }
.hp-demo-oordeel { margin: 0 0 20px; font-weight: 700; font-size: 1.06rem; line-height: 1.4; }
.hp-demo-cijfers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr));
    gap: 18px 16px;
}
.hp-demo-cijfers > div { min-width: 0; }
.hp-demo-cijfers span {
    display: block;
    font-size: .78rem;
    color: var(--hp-muted, #5f6775);
    margin-bottom: 3px;
}
.hp-demo-cijfers strong {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--ink, #111827);
    line-height: 1.2;
    overflow-wrap: anywhere;          /* "€ 1.100–1.400" mag nooit de kolom oprekken */
}
.hp-demo-voet {
    margin: 20px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--hp-rand);
    font-size: .82rem;
    color: var(--hp-muted, #5f6775);
}

/* =============================================================================
   JAARGEGEVENS VERSUS METERDATA — twee kolommen tekst, geen technische matrix.
   ========================================================================== */
.hp-verschil {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
    gap: var(--hp-gap);
}
.hp-verschil > div {
    background: #fff;
    border: 1px solid var(--hp-rand);
    border-radius: var(--radius-md, 12px);
    padding: clamp(20px, 2.6vw, 28px);
    min-width: 0;
}
.hp-verschil .hp-verschil--nadruk { border-color: var(--groen, #1a6b3c); }
.hp-verschil-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--hp-muted, #5f6775);
}
.hp-verschil h3 {
    font-family: var(--font-serif);
    font-size: 1.12rem;
    margin: 8px 0 10px;
    color: var(--ink, #111827);
}
.hp-verschil p { color: #374151; font-size: .93rem; line-height: 1.62; margin: 0 0 8px; }
.hp-verschil p:last-child { margin-bottom: 0; color: var(--hp-muted, #5f6775); font-size: .86rem; }

/* =============================================================================
   STATS- EN VERTROUWENSREGELS
   ========================================================================== */
.hp-statregel {
    margin: 0;
    text-align: center;
    font-size: .88rem;
    line-height: 1.7;
    color: var(--hp-muted, #5f6775);
}
.hp-statregel b { color: var(--ink, #111827); font-weight: 700; }

.hp-praktijk {
    background: var(--groen-licht, #e8f5ee);
    border-radius: var(--radius-lg, 16px);
    padding: clamp(24px, 3.4vw, 36px);
    text-align: center;
}
.hp-praktijk h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 2.6vw, 1.6rem);
    margin: 0 0 10px;
    color: var(--ink, #111827);
}
.hp-praktijk p { color: #374151; font-size: .96rem; line-height: 1.68; margin: 0 0 8px; }
.hp-praktijk p.hp-klein { color: var(--hp-muted, #5f6775); font-size: .85rem; margin-bottom: 18px; }

/* ---- Kleine schermen ---- */
@media (max-width: 520px) {
    .hp-wrap { padding-inline: 16px; }
    .hp-demo-context { padding-right: 0; }
    .hp-demo-tag { position: static; display: inline-block; margin-bottom: 10px; }
    .hp-badge { position: static; width: fit-content; max-width: 100%; margin-bottom: 12px; }
    /* Volle-breedte CTA's: op een telefoon is een halve knop naast witruimte
       lastiger te raken dan een knop over de hele kaartbreedte. */
    .hp-kaart .btn { width: 100%; }
}
