:root { color-scheme: light; --ink: #08090b; --muted: #464b58; --yellow: #ffdf2b; --yellow-hover: #ffe75c; --yellow-shadow: #d6b518; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
a:focus-visible { outline: 3px solid #6543b5; outline-offset: 6px; }
.page { width: calc(100% - 40px); max-width: 1120px; margin: 20px auto; padding: 24px 40px 32px; background: #fff; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.brand { flex-shrink: 0; width: 220px; }
.discover-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--yellow);
    color: var(--ink);
    border-radius: 16px;
    font-family: "Perfektta", Arial, sans-serif;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 7px 0 var(--yellow-shadow);
    transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.discover-button:hover { background: var(--yellow-hover); }
.discover-button:active {
    transform: translateY(5px);
    box-shadow: 0 2px 0 var(--yellow-shadow);
}
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); column-gap: 34px; align-items: center; }
.hero-copy { grid-column: 1; grid-row: 1; align-self: end; }
h1 { margin: 0 0 18px; font-family: "Perfektta", Arial, sans-serif; font-size: clamp(36px, min(4.3vw, 7.5svh), 62px); font-weight: 800; letter-spacing: -.015em; line-height: 1.02; }
.intro { max-width: 610px; margin: 0 0 20px; color: var(--muted); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.35; }
.discover-button { width: 75%; min-width: min(100%, 290px); min-height: 56px; padding: 12px 20px; gap: 16px; font-size: 25px; letter-spacing: normal; }
.rotating-place { display: inline-block; min-width: 8.5ch; color: #8550bd; font-weight: 700; white-space: nowrap; }
.discover-button span { font-size: 1.1em; line-height: 1; }
/* Alleen de lege marge van de aangeleverde illustratie valt buiten het kader. */
.hero-art { position: relative; grid-column: 2; grid-row: 1 / 3; height: min(540px, calc(100svh - 180px)); overflow: hidden; }
.hero-scene { position: absolute; top: -12.5%; width: 100%; height: 125%; object-fit: contain; }
.download { grid-column: 1; grid-row: 2; align-self: start; padding-top: 20px; scroll-margin-top: 24px; }
.download:focus { outline: none; }
.download:target { border-radius: 12px; outline: 2px solid var(--yellow); outline-offset: 10px; }
.store-options { display: flex; gap: 20px; }
.store-badge { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 14px; border: 1px solid #777; border-radius: 7px; background: #050505; color: #fff; white-space: nowrap; }
.store-icon { flex-shrink: 0; width: 30px; height: 36px; }
.store-badge small { display: block; font-size: 12px; line-height: 1.25; }
.store-name { display: block; font-size: 21px; line-height: 1.1; letter-spacing: -.04em; }
.age-note { margin: 14px 0 0; color: var(--muted); font-size: 15px; line-height: 1.4; }
@media (min-width: 761px) and (max-width: 1100px) {
    .hero { column-gap: 20px; }
    .store-options { gap: 10px; }
    .store-badge { gap: 7px; padding: 9px; }
    .store-name { font-size: 20px; }
    .store-icon { width: 24px; height: 30px; }
    .store-badge small { font-size: 10px; }
}
@media (min-width: 761px) and (max-height: 700px) {
    .page { margin-block: 12px; padding-block: 18px; }
    .site-header { margin-bottom: 16px; }
    h1 { margin-bottom: 14px; }
    .intro { margin-bottom: 16px; font-size: 18px; }
    .download { padding-top: 14px; }
}
@media (max-width: 760px) {
    body { background: #fff; }
    /* De illustratie krijgt de resterende schermhoogte. Tekst blijft leesbaar;
       bij tekstvergroting mag de pagina gewoon langer worden. */
    .page {
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        width: 100%;
        max-width: 520px;
        height: calc(100svh - 48px);
        min-height: 540px;
        margin: 0 auto;
        padding: 16px 24px max(12px, env(safe-area-inset-bottom));
        border-radius: 0;
    }
    .site-header { justify-content: flex-start; margin-bottom: clamp(14px, 2.5svh, 24px); }
    .brand { width: 180px; }
    .hero {
        min-height: 0;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto minmax(100px, 1fr) auto;
        gap: 0;
    }
    .hero-copy { grid-column: 1; grid-row: 1; }
    h1 {
        margin-bottom: 14px;
        font-size: clamp(32px, min(9.5vw, 5.3svh), 44px);
        line-height: 1.02;
    }
    .intro { margin-bottom: 16px; font-size: clamp(16px, 2.2svh, 18px); line-height: 1.32; }
    .discover-button { width: 100%; min-height: 48px; padding: 10px 14px; font-size: 22px; gap: 12px; }
    .hero-art {
        grid-column: 1;
        grid-row: 2;
        align-self: stretch;
        min-height: 0;
        height: auto;
        margin: 16px 0 8px;
    }
    .hero-scene { top: -12.5%; width: 100%; height: 125%; object-fit: contain; }
    .download { grid-column: 1; grid-row: 3; padding-top: 0; }
    .store-options { gap: 12px; }
    .store-badge { flex: 1; gap: 8px; padding: 7px; }
    .store-icon { width: 23px; height: 28px; }
    .store-badge small { font-size: 10px; }
    .store-name { font-size: clamp(18px, 4.8vw, 23px); }
    .age-note { margin-top: 8px; text-align: center; font-size: 14px; }
}
@media (max-width: 360px) {
    .page { padding-inline: 20px; }
    .store-options { gap: 8px; }
    .store-badge { gap: 5px; }
    .store-icon { width: 21px; }
    .store-name { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    a { transition: none; }
}

/* SVG houdt masker, illustratie en schermen in hetzelfde coördinatenstelsel. */
.screen-slide { transform: translateX(462px); visibility: hidden; }
.screen-slide.is-current { transform: translateX(0); visibility: visible; transition: transform 550ms ease-in-out; }
.screen-slide.is-leaving { transform: translateX(-462px); visibility: visible; transition: transform 550ms ease-in-out; }
@media (prefers-reduced-motion: reduce) {
    .screen-slide.is-current, .screen-slide.is-leaving { transition: none; }
}

@font-face {
    font-family: "Perfektta";
    src: url("fonts/font-ExtraBold.woff2") format("woff2");
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}
.footer-cta {
    margin-top: 64px;
    padding: 64px 24px 0;
    background: #ffcc00;
    color: #1c0814;
    text-align: center;
}
.footer-copy { max-width: 920px; margin: 0 auto; }
.footer-copy h2 {
    margin: 0 0 12px;
    font-family: "Perfektta", Arial, sans-serif;
    font-size: clamp(32px, 4vw, 58px);
    font-weight: 800;
    line-height: 1.08;
}
.footer-copy p {
    max-width: 620px;
    margin: 0 auto 28px;
    font-size: 20px;
    line-height: 1.4;
}
.footer-cta .store-options { justify-content: center; }
.footer-animals {
    width: min(100%, 560px);
    height: auto;
    margin: 16px auto 0;
}
@media (max-width: 760px) {
    .footer-cta { margin-top: 24px; padding: 36px 24px 0; }
    .footer-copy h2 { font-size: 32px; }
    .footer-copy p { margin-bottom: 22px; font-size: 16px; }
    .footer-cta .store-options { max-width: 360px; margin: 0 auto; }
    .footer-animals { max-width: 360px; margin-top: 8px; }
}

.benefits {
    margin-top: 20px;
    padding: 32px 24px 44px;
    background: #fff;
    scroll-margin-top: 24px;
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1120px;
    margin: 0 auto;
}
.benefit { min-width: 0; padding: 0 20px; text-align: center; }
.benefit + .benefit { border-left: 1px solid #e9e6ec; }
/* Eén gedeelde afbeelding met vier even grote vakken; geen extra afbeeldingsverzoeken. */
.benefit-art {
    position: relative;
    width: 100%;
    max-width: 264px;
    aspect-ratio: 3 / 2;
    margin: 0 auto 24px;
    overflow: hidden;
}
.benefit-art img {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    max-width: none;
}
/* Gemeten schaduwranden in elk 768 × 512 vak: 477, 485, 435, 445.
   Verschuif naar dezelfde basislijn op y=480, onafhankelijk van schermbreedte.
   translateY-percentages zijn relatief aan de volledige afbeelding (1024px). */
.benefit-art--discover img { transform: translateY(.292969%); clip-path: inset(0 50% 50% 0); }
.benefit-art--learn img { left: -100%; transform: translateY(-.488281%); clip-path: inset(0 0 50% 50%); }
.benefit-art--collect img { top: -100%; transform: translateY(4.394531%); clip-path: inset(50% 50% 0 0); }
.benefit-art--read img { top: -100%; left: -100%; transform: translateY(3.417969%); clip-path: inset(50% 0 0 50%); }
.benefit h2 {
    margin: 0 0 10px;
    font-family: "Perfektta", Arial, sans-serif;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.2;
}
.benefit p { max-width: 240px; margin: 0 auto; color: var(--muted); font-size: 16px; line-height: 1.5; }
.benefits + .footer-cta { margin-top: 0; }
@media (max-width: 760px) {
    .benefits { margin-top: 8px; padding: 16px 16px 32px; }
    .benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 520px; row-gap: 32px; }
    .benefit { padding-inline: 12px; }
    .benefit:nth-child(3) { border-left: 0; }
    .benefit-art { margin-bottom: 16px; }
    .benefit h2 { font-size: 18px; }
    .benefit p { font-size: 14px; line-height: 1.45; }
}

.learning { padding: 48px 24px 56px; background: #fff; scroll-margin-top: 24px; }
.learning-inner { max-width: 1120px; margin: 0 auto; }
.learning-header { max-width: 850px; margin: 0 auto 48px; text-align: center; }
.learning-header :is(h1, h2),
.learning-copy :is(h2, h3),
.learning-motto { font-family: "Perfektta", Arial, sans-serif; font-weight: 800; }
.learning-header :is(h1, h2) { margin: 0 0 18px; font-size: clamp(34px, 3.6vw, 48px); line-height: 1.1; }
.learning-header p { max-width: 780px; margin: 0 auto; color: var(--muted); font-size: 19px; line-height: 1.5; }
.learning-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 48px; }
.learning-item { display: grid; grid-template-columns: 144px minmax(0, 1fr); align-items: center; gap: 22px; }
.learning-copy :is(h2, h3) { margin: 0 0 10px; font-size: 27px; line-height: 1.15; }
.learning-copy p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.5; }
/* Zes vierkante uitsneden uit één afbeelding, met de schaduwen op y=480.
   clip-path voorkomt dat aangrenzende vakken bij het uitlijnen zichtbaar worden. */
.learning-art { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; }
.learning-art img { position: absolute; width: 300%; height: 200%; max-width: none; top: 0; left: 0; }
.learning-art--observe img { clip-path: inset(0 66.666667% 50% 0); transform: translateY(.488281%); }
.learning-art--predict img { left: -100%; clip-path: inset(0 33.333333% 50% 33.333333%); transform: translateY(.488281%); }
.learning-art--grow img { left: -200%; clip-path: inset(0 0 50% 66.666667%); }
.learning-art--play img { top: -100%; clip-path: inset(50% 66.666667% 0 0); transform: translateY(3.808594%); }
.learning-art--independent img { top: -100%; left: -100%; clip-path: inset(50% 33.333333% 0 33.333333%); transform: translateY(3.710938%); }
.learning-art--nature img { top: -100%; left: -200%; clip-path: inset(50% 0 0 66.666667%); transform: translateY(3.222656%); }
.learning-motto { margin: 44px 0 0; text-align: center; font-size: clamp(24px, 2.5vw, 32px); line-height: 1.2; }
.learning + .footer-cta { margin-top: 0; }
@media (min-width: 761px) and (max-width: 1000px) {
    .learning-grid { column-gap: 28px; }
    .learning-item { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; }
    .learning-copy :is(h2, h3) { font-size: 24px; }
    .learning-copy p { font-size: 16px; }
}
@media (max-width: 760px) {
    .learning { padding: 32px 24px 40px; }
    .learning-inner { max-width: 520px; }
    .learning-header { margin-bottom: 32px; }
    .learning-header :is(h1, h2) { font-size: 34px; }
    .learning-header p { font-size: 16px; }
    .learning-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .learning-item { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
    .learning-copy :is(h2, h3) { font-size: 24px; }
    .learning-copy p { font-size: 15px; line-height: 1.45; }
    .learning-motto { margin-top: 32px; font-size: 25px; }
}
@media (max-width: 360px) {
    .learning { padding-inline: 20px; }
    .learning-item { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
    .learning-copy :is(h2, h3) { font-size: 22px; }
}

.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 3px;
    color: var(--muted);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
}
.site-nav a::after {
    position: absolute;
    right: 0;
    bottom: 3px;
    left: 0;
    height: 3px;
    background: transparent;
    content: "";
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.site-nav a[aria-current="page"]::after { background: var(--yellow); }
.content-header {
    width: calc(100% - 40px);
    max-width: 1120px;
    margin: 20px auto 0;
    padding: 24px 40px 0;
}
.learning-header h1 { letter-spacing: normal; }
@media (max-width: 760px) {
    .site-header { gap: 12px; }
    .site-header .brand { width: clamp(132px, 40vw, 180px); }
    .site-nav { gap: 12px; }
    .site-nav a { padding-inline: 2px; font-size: 13px; }
    .content-header { width: 100%; max-width: 520px; margin: 0 auto; padding: 16px 24px 0; }
}
@media (max-width: 360px) {
    .content-header { padding-inline: 20px; }
}

.benefit-link {
    color: #8550bd;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.benefit-link:hover { color: #65378f; }

@media (max-width: 520px) {
    .site-header { flex-wrap: wrap; }
    .site-nav { margin-left: 0; }
}

.subscription-form { max-width: 620px; margin: 0 auto; text-align: left; }
.subscription-fields { display: flex; gap: 12px; }
.subscription-fields input { min-width: 0; flex: 1; padding: 15px 16px; border: 2px solid transparent; border-radius: 12px; background: #fff; color: var(--ink); font: 16px Arial, sans-serif; }
.subscription-fields button { padding: 15px 20px; border: 0; border-radius: 12px; background: #8550bd; color: white; font: 700 16px Arial, sans-serif; cursor: pointer; }
.subscription-fields button:hover { background: #65378f; }
.subscription-fields button:disabled { opacity: .65; cursor: wait; }
.subscription-fields :focus-visible { outline: 3px solid #1c0814; outline-offset: 3px; }
.footer-copy .subscription-status { min-height: 24px; margin: 12px auto 20px; font-size: 16px; line-height: 1.5; }
.subscription-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.subscription-result { max-width: 640px; margin: 60px auto; padding: 24px; }
@media (max-width: 540px) { .subscription-fields { flex-direction: column; gap: 10px; } .subscription-fields button { min-height: 48px; } }

/* Scale the homepage headline to its column while keeping two lines. */
.hero-copy { container-type: inline-size; }
.home-title { font-size: min(70px, 10.3cqw); }
.home-title span { display: block; white-space: nowrap; }

@media (max-width: 760px) {
    .hero-copy .discover-button { display: none; }
}
