/* Public landing page at "/" for visitors who are not logged in; colours, fonts and motion follow app.css. */
:root {
    color-scheme: only light;
    --text: #111318;
    --muted: #5F6573;
    --border: #E4E6EA;
    --subtle: #F9FAFB;
    --sunken: #F4F5F7;
    --dark: #1F2430;
    --font: "Inter Tight", "Segoe UI", Helvetica, Arial, sans-serif;
    --font-display: Fraunces, Georgia, serif;
    --radius: 16px;
    --radius-sm: 10px;
    /* Environment palettes (ChronosEnvironments): accent, strong, tint, tint 2, line. */
    --doel: #B8510D;
    --doel-strong: #8F3E09;
    --doel-tint: #FDF4EE;
    --doel-tint-2: #FAE4D4;
    --doel-line: #F0C5A6;
    --les: #0B7A62;
    --les-strong: #085E4B;
    --les-tint: #EEF8F4;
    --les-tint-2: #D9F0E7;
    --les-line: #ABDCC9;
    --evaluatie: #2F5BEA;
    --evaluatie-strong: #2346B8;
    --evaluatie-tint: #F1F5FF;
    --evaluatie-tint-2: #E1E9FF;
    --evaluatie-line: #C3D0F7;
    --overzicht: #7444C4;
    --overzicht-strong: #5B32A0;
    --overzicht-tint: #F6F2FD;
    --overzicht-tint-2: #EBE2FA;
    --overzicht-line: #D5C5F2;
    /* Goal states of the doelenoverzicht (GoalIndicator). */
    --behaald: #5E8C4F;
    --aangeboden: #C98B5E;
    --gepland: #5B7DB1;
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --page: min(1240px, 100% - 2 * var(--gutter));
    --gutter: clamp(20px, 4vw, 48px);
    --shadow: 0 1px 2px rgba(17, 19, 24, .05), 0 18px 40px -20px rgba(17, 19, 24, .22);
}

/* Each part of the chain carries the palette of its environment. */
.station-doel, .link-doel { --c: var(--doel); --c-strong: var(--doel-strong); --c-tint: var(--doel-tint); --c-tint-2: var(--doel-tint-2); --c-line: var(--doel-line); }
.station-les, .link-les, .role-les { --c: var(--les); --c-strong: var(--les-strong); --c-tint: var(--les-tint); --c-tint-2: var(--les-tint-2); --c-line: var(--les-line); }
.station-evaluatie, .link-evaluatie, .role-evaluatie { --c: var(--evaluatie); --c-strong: var(--evaluatie-strong); --c-tint: var(--evaluatie-tint); --c-tint-2: var(--evaluatie-tint-2); --c-line: var(--evaluatie-line); }
.station-overzicht, .link-overzicht, .role-overzicht { --c: var(--overzicht); --c-strong: var(--overzicht-strong); --c-tint: var(--overzicht-tint); --c-tint-2: var(--overzicht-tint-2); --c-line: var(--overzicht-line); }

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

html {
    background: #fff;
    color: var(--text);
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font: 400 17px/1.6 var(--font);
    font-feature-settings: "tnum" 0;
    text-rendering: optimizeLegibility;
}

::selection {
    background: #CFE0FF;
    color: var(--text);
}

a {
    color: var(--evaluatie-strong);
    text-underline-offset: .2em;
    text-decoration-thickness: 1px;
}

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

h1, h2, h3 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -.015em;
    text-wrap: balance;
}

p {
    margin: 0;
    text-wrap: pretty;
}

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

/* Not display:none, so the logo gradient keeps rendering. */
.sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 1.15em;
    height: 1.15em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ===== Buttons ===== */
.button {
    display: inline-flex;
    align-items: center;
    gap: .55em;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font: 600 16px/1 var(--font);
    text-decoration: none;
    transition: background-color .2s var(--ease-out), color .2s var(--ease-out), box-shadow .2s var(--ease-out), transform .2s var(--ease-out);
}

.button-dark {
    background: var(--dark);
    color: #fff;
    box-shadow: 0 1px 2px rgba(17, 19, 24, .2), 0 8px 20px -10px rgba(17, 19, 24, .5);
}

.button-dark:hover {
    background: var(--text);
    transform: translateY(-1px);
}

.button-quiet {
    color: var(--text);
    background: var(--sunken);
}

.button-quiet:hover {
    background: var(--border);
}

.button:hover .icon:last-child {
    transform: translateX(2px);
}

.button .icon {
    transition: transform .2s var(--ease-out);
}

/* ===== Top bar ===== */
.bar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: saturate(1.4) blur(10px);
}

.bar {
    transition: box-shadow .3s var(--ease-out), background-color .3s;
}

.bar.scrolled {
    box-shadow: 0 10px 30px -22px rgba(17, 19, 24, .45);
}

.bar-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    width: var(--page);
    height: 68px;
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font: 600 22px/1 var(--font-display);
    letter-spacing: -.01em;
    text-decoration: none;
}

.brand-logo {
    width: 34px;
    height: 18px;
}

.bar-nav {
    display: flex;
    gap: 28px;
    margin-left: auto;
}

.bar-nav a {
    color: var(--muted);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.bar-nav a:hover {
    color: var(--text);
}

.bar-login {
    min-height: 40px;
    padding: 0 18px;
    font-size: 15px;
}

/* ===== Hero: promise and the chain ===== */
.hero {
    position: relative;
    width: var(--page);
    margin: 0 auto;
    padding: clamp(48px, 9vh, 104px) 0 clamp(40px, 6vh, 72px);
}

.hero-text {
    max-width: 880px;
}

.hero h1 {
    font-size: clamp(2.5rem, 1.4rem + 4.2vw, 4.6rem);
    line-height: 1.04;
    letter-spacing: -.025em;
}

.hero-lead {
    max-width: 62ch;
    margin-top: 24px;
    color: var(--muted);
    font-size: clamp(17px, 1.1vw + 12px, 20px);
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.chain-wrap {
    position: relative;
    margin-top: clamp(48px, 8vh, 80px);
}

.chain {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Geometry only: the traveller follows this path. */
.chain-track {
    fill: none;
    stroke: none;
}

/* The goal travelling along the chain; js/landing.js moves it. */
.traveller {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--tc, var(--doel));
    box-shadow: 0 4px 12px -4px rgba(17, 19, 24, .4);
    opacity: 0;
    pointer-events: none;
    transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out), opacity .3s;
}

.traveller.on {
    opacity: 1;
}

/* The form drawing runs through the node centres (28px from the top). */
.chain-line {
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 80px;
    overflow: visible;
    pointer-events: none;
}

.seg {
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.seg-doel { stroke: var(--doel-line); }
.seg-les { stroke: var(--les-line); }
.seg-evaluatie { stroke: var(--evaluatie-line); }
.seg-overzicht { stroke: var(--overzicht-line); }

.station {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 12px;
    text-align: center;
}

.node {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--c);
    color: #fff;
    box-shadow: 0 0 0 6px #fff, 0 10px 24px -10px var(--c);
}

.node .icon {
    width: 24px;
    height: 24px;
}

.station-name {
    margin-top: 18px;
    font: 600 24px/1.2 var(--font-display);
}

.station-cycle {
    margin-top: 2px;
    color: var(--c-strong);
    font-size: 14px;
    font-weight: 600;
}

.fragment {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    width: min(100%, 260px);
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-sm);
    background: var(--c-tint);
    font-size: 15px;
    line-height: 1.35;
    text-align: left;
}

.fragment strong {
    font-weight: 600;
}

.fragment small {
    color: var(--c-strong);
    font-size: 13px;
}

.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 2px;
}

.pill {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
}

/* Evaluation pills: verlengde instructie amber, extra uitdaging in the Logboek tint. */
.pill-vi { background: #FBEFD9; color: #7A4B00; }
.pill-uitdaging { background: var(--evaluatie-tint-2); color: var(--evaluatie-strong); }

.meter {
    display: flex;
    height: 6px;
    margin: 4px 0 2px;
    overflow: hidden;
    border-radius: 3px;
    background: var(--border);
}

.meter i {
    display: block;
}

.m-behaald { width: 18%; background: var(--behaald); }
.m-aangeboden { width: 5%; background: var(--aangeboden); }
.m-gepland { width: 67%; background: var(--gepland); }

/* ===== Live chain: the station the goal has reached ===== */
.station .node::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--c);
    opacity: 0;
}

.station.active .node::after {
    animation: ring 1.1s var(--ease-out);
}

.station .fragment {
    transition: border-color .4s var(--ease-out), box-shadow .4s var(--ease-out), transform .4s var(--ease-out);
}

.station.active .fragment {
    border-color: var(--c);
    box-shadow: 0 14px 30px -18px var(--c);
    transform: translateY(-3px);
}

.meter i {
    transition: width .9s var(--ease-out);
}

@keyframes ring {
    from { opacity: .7; transform: scale(1); }
    to { opacity: 0; transform: scale(1.9); }
}

.closing-logo {
    overflow: visible;
}

.closing-trace {
    fill: none;
    stroke: url(#logo-gradient);
    stroke-width: 2.4;
    stroke-linecap: round;
}

.closing-dot {
    fill: var(--logo, #2F5BEA);
    opacity: 0;
}

/* ===== Section frame ===== */
.section-title {
    font-size: clamp(2rem, 1.3rem + 2.4vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -.02em;
}

/* ===== The chain, link by link: a vertical form line connects the nodes ===== */
.links {
    width: var(--page);
    margin: 0 auto;
    padding: clamp(64px, 10vh, 120px) 0 0;
    border-top: 1px solid var(--border);
}

.links .section-title {
    max-width: 18ch;
    margin-bottom: clamp(40px, 6vh, 72px);
}


.link {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: start;
    --link-inset: 84px;
    padding: 0 0 clamp(72px, 11vh, 128px) var(--link-inset);
}

/* The form line waves from this node down to the next one. */
.link::before {
    content: "";
    position: absolute;
    top: 64px;
    bottom: 8px;
    left: 16px;
    width: 24px;
    background: var(--c-line);
    mask: url(golf.svg) top / 24px 200px repeat-y;
    transform-origin: top;
}

.link h3 {
    position: relative;
    display: block;
    font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem);
    line-height: 1.12;
}

/* Positioned from the heading, so the heading's reveal carries the node along. */
.link h3 .node {
    position: absolute;
    top: -6px;
    left: calc(-1 * var(--link-inset));
}

.link-text {
    padding-top: 6px;
}

.link-text p {
    max-width: 52ch;
    margin-top: 18px;
    color: #3A3F4B;
}

.facts {
    display: grid;
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
}

.facts li {
    display: flex;
    gap: 10px;
    align-items: baseline;
}

.facts .icon {
    position: relative;
    top: .2em;
    color: var(--c);
    stroke-width: 2.25;
}

/* Screenshots lie on a tinted sheet of their environment. */
.shot {
    margin: 0;
    padding: clamp(12px, 1.6vw, 20px);
    border-radius: calc(var(--radius) + 6px);
    background: var(--c-tint, var(--subtle));
}

/* ===== Live app screens: HTML versions of the app at a fixed design width, zoomed to fit (landing.js sets --z) ===== */
.app-frame {
    overflow-x: auto;
    border-radius: var(--radius-sm);
}

.app {
    width: calc(var(--dw, 700) * 1px);
    zoom: var(--z, 1);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    box-shadow: var(--shadow);
    color: var(--text);
    font-size: 13px;
    line-height: 1.3;
    text-align: left;
}

.app-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(var(--c-tint, var(--subtle)), #fff);
    color: var(--muted);
}

.app-bar b {
    color: var(--text);
    font: 600 20px/1.1 var(--font-display);
}

.app-toggle {
    display: inline-flex;
    margin-left: auto;
    padding: 3px;
    border-radius: 999px;
    background: var(--sunken);
}

.app-toggle i {
    padding: 4px 12px;
    border-radius: 999px;
    font-style: normal;
    font-weight: 500;
    transition: background-color .3s, color .3s, box-shadow .3s;
}

.app-toggle i.on {
    background: #fff;
    color: var(--c-strong, var(--text));
    box-shadow: 0 1px 3px rgba(17, 19, 24, .15);
}

.app-body {
    padding: 16px 18px 18px;
}

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

.do-area {
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--area);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

/* Methodeplanning */
.mp-event {
    margin-left: auto;
    opacity: 0;
    transition: opacity .4s;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--text);
    color: #fff;
    font-weight: 600;
}

.mp-head {
    margin-bottom: 8px;
    color: var(--muted);
}

.mp-head b {
    color: var(--text);
}

.mp {
    --card-h: 104px;
    --gap: 8px;
    --next-head: 48px;
}

/* Week 47 sits between the rows; its second-row cards land below it. */
.mp-head-next {
    height: var(--next-head);
    margin: 0 0 var(--card-h);
    padding-top: 18px;
    border-top: 1px dashed var(--border);
    line-height: 18px;
}

.mp-blok {
    margin-left: 6px;
    padding: 2px 9px;
    border: 1px solid var(--doel-line);
    border-radius: 999px;
    background: var(--doel-tint);
    color: var(--doel-strong);
    font-weight: 600;
}

.mp-days {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 6px;
    color: var(--muted);
    font-weight: 500;
}

/* Cards sit on a 5-column grid by --x and --y, so moving a card is a transform. */
.mp-grid {
    position: relative;
    height: calc(var(--card-h) + 12px);
}

.mp-card, .mp-off {
    position: absolute;
    top: 0;
    left: 0;
    width: calc((100% - 4 * var(--gap)) / 5);
    height: var(--card-h);
}

.mp-card {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 9px 10px 8px 12px;
    border: 1px solid var(--doel-line);
    border-left: 3px solid var(--doel);
    border-radius: 9px;
    background: var(--doel-tint);
    transform: translate(calc(var(--x) * (100% + var(--gap) + 1.5px)), calc(var(--y) * (var(--card-h) + 12px + var(--next-head))));
    transition: transform .9s var(--ease-out);
}

.mp-card span {
    font-size: 13px;
}

.mp-card i {
    display: flex;
    align-items: center;
    gap: 4px;
    font-style: normal;
    font-weight: 600;
}

.mp-card i .icon {
    width: 13px;
    height: 13px;
    color: var(--doel);
}

.mp-card small {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    color: var(--muted);
    font-size: 11px;
}

.mp-card em {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #B3261E;
}

.mp-off {
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: repeating-linear-gradient(-45deg, var(--sunken) 0 7px, #fff 7px 14px);
    color: var(--text);
    transform: translateX(calc(2 * (100% + var(--gap))));
    opacity: 0;
    transition: opacity .5s;
}

.app.off .mp-off, .app.off .mp-event {
    opacity: 1;
}

/* Lesvoorbereidingen */
.lv {
    position: relative;
    padding: 14px 18px 18px;
}

.lv-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
}

.lv-day {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

.lv-date b {
    display: block;
    color: var(--text);
}

.lv-block {
    display: flex;
    flex-direction: column;
    padding: 5px 8px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--area, var(--border-strong, #CDD1D8));
    border-radius: 7px;
    background: #fff;
    font-size: 12px;
    transition: box-shadow .3s var(--ease-out), transform .3s var(--ease-out), background-color .3s;
}

.lv-block small {
    color: var(--muted);
    font-size: 11px;
}

.lv-periode {
    height: 96px;
    border: 0;
    background: #2E7D32;
    color: #fff;
}

.lv-periode small {
    color: rgba(255, 255, 255, .85);
}

.lv-quiet {
    padding-block: 3px;
    color: var(--muted);
}

.lv-rekenen { --area: #E57373; min-height: 50px; }
.lv-taal { --area: #64B5F6; }
.lv-vak { --area: #7B3FA0; }

.lv-block.picked {
    background: var(--les-tint);
    box-shadow: 0 0 0 2px var(--les), 0 10px 20px -12px var(--les);
    transform: translateY(-2px);
}

.lv-panel {
    position: absolute;
    top: 10px;
    right: 10px;
    bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 250px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    box-shadow: -12px 0 30px -18px rgba(17, 19, 24, .35);
    translate: 110% 0;
    transition: translate .6s var(--ease-out);
}

.app.open .lv-panel {
    translate: none;
}

.lv-panel-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
}

.lv-panel-title b {
    font: 600 18px/1.15 var(--font-display);
}

.lv-panel-title small {
    color: var(--muted);
}

.lv-label {
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.lv-goal {
    display: flex;
    gap: 5px;
    align-items: baseline;
}

.lv-goal.missing {
    color: #8A5A00;
    font-weight: 600;
}

.lv-goal.missing .icon {
    display: none;
}

.lv-goal .icon {
    position: relative;
    top: 2px;
    width: 14px;
    height: 14px;
    color: var(--doel);
}

.lv-prep {
    min-height: 54px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--subtle);
}

.lv-prep::after {
    content: "";
    display: inline-block;
    width: 1px;
    height: 1.1em;
    margin-left: 1px;
    vertical-align: text-bottom;
    background: var(--les);
    animation: caret 1s steps(1) infinite;
}

.lv-file {
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--les-tint-2);
    color: var(--les-strong);
    font-weight: 500;
}

@keyframes caret {
    50% { opacity: 0; }
}

/* Logboek */
.lb-period {
    padding: 3px 10px;
    border-radius: 999px;
    background: #2E7D32;
    color: #fff;
    font-weight: 600;
}

.lb-lesson {
    border: 1px solid var(--border);
    border-left: 3px solid #B3261E;
    border-radius: 10px;
}

.lb-next {
    margin-top: 12px;
    border-left-color: #E57373;
    opacity: .55;
    transition: opacity .5s, box-shadow .5s;
}

.app.suggest .lb-next {
    opacity: 1;
    box-shadow: 0 12px 26px -18px var(--evaluatie);
}

.lb-head {
    border-radius: 0 9px 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    padding: 10px 14px;
    background: var(--evaluatie-tint);
}

.lb-head > b {
    font-size: 15px;
}

.lb-time {
    display: flex;
    flex-direction: column;
    color: var(--muted);
    font-size: 11px;
}

.lb-time b {
    color: var(--text);
    font-size: 13px;
}

.lb-hint {
    margin-left: auto;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--evaluatie-tint-2);
    color: var(--evaluatie-strong);
    font-size: 11px;
    font-weight: 600;
    opacity: 0;
    transition: opacity .4s;
}

.app.suggest .lb-hint {
    opacity: 1;
}

.lb-table {
    display: grid;
    grid-template-columns: 1.3fr repeat(4, 1fr);
}

.lb-table-next {
    grid-template-columns: 1fr 1fr;
}

.lb-th {
    padding: 8px 10px 6px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.lb-goal, .lb-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    min-height: 78px;
    padding: 9px 10px;
}

.lb-table-next .lb-cell {
    flex-direction: row;
    flex-wrap: wrap;
    min-height: 40px;
}

.lb-shade {
    background: var(--subtle);
}

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

.lb-chip {
    padding: 3px 9px;
    border-radius: 999px;
    font-weight: 500;
    white-space: nowrap;
}

[data-col="niet"] .lb-chip { background: #FBE4E1; color: #8E2A1E; }
[data-col="ruim"] .lb-chip { background: #E3F1DF; color: #2E5A24; }
[data-col="vi"] .lb-chip { background: #FBEFD9; color: #7A4B00; }
[data-col="uitdaging"] .lb-chip { background: var(--evaluatie-tint-2); color: var(--evaluatie-strong); }

/* Doelenoverzicht */
.do-stats {
    display: grid;
    grid-template-columns: auto auto auto 1fr;
    gap: 6px 26px;
    align-items: end;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
}

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

.do-stat b {
    color: var(--text);
    font-size: 26px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.do-stat small {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.do-stat em {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-gepland { background: var(--gepland); }
.dot-aangeboden { background: var(--aangeboden); }
.dot-behaald { background: var(--behaald); }

.do-bar {
    display: flex;
    height: 6px;
    overflow: hidden;
    border-radius: 3px;
    background: var(--border);
}

.do-bar-big {
    align-self: center;
    height: 8px;
}

.do-bar i {
    display: block;
    transition: width 1s var(--ease-out);
}

.do-bar .m-behaald { width: var(--b); }
.do-bar .m-aangeboden { width: var(--a); }
.do-bar .m-gepland { width: var(--g); }

.do-rows {
    margin-top: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.do-row {
    display: grid;
    grid-template-columns: 14px auto 1fr 190px;
    gap: 10px;
    align-items: center;
    padding: 9px 14px 9px 30px;
    border-top: 1px solid var(--border);
    font-weight: 500;
    transition: background-color .5s;
}

.do-row:first-child {
    border-top: 0;
}

.do-row-area {
    padding-left: 14px;
    background: var(--subtle);
}

.do-row.flash {
    background: #EEF6EC;
}

.do-chevron {
    width: 7px;
    height: 7px;
    border-right: 1.6px solid var(--muted);
    border-bottom: 1.6px solid var(--muted);
    rotate: -45deg;
}

.do-row-area .do-name, .do-row-area > .do-area {
    grid-column: 2;
}

.do-name {
    grid-column: 2 / span 2;
}

.do-progress {
    grid-column: 4;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
}

/* Toetsresultaten kind */
.kd-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.kd-title b {
    font-size: 15px;
}

.kd-chart {
    display: block;
    width: 100%;
    overflow: visible;
}

.kd-chart text {
    fill: var(--muted);
    font: 10px var(--font);
}

.kd-chart .kd-band-label {
    fill: var(--text);
    font-weight: 600;
}

.kd-line {
    fill: none;
    stroke: #B3261E;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kd-point {
    fill: #B3261E;
    stroke: #fff;
    stroke-width: 2;
    transition: opacity .4s, r .4s var(--ease-out);
}

.kd-legend {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
}

.kd-key {
    display: inline-block;
    width: 16px;
    height: 2px;
    margin-right: 6px;
    vertical-align: middle;
    background: #B3261E;
}

/* Opbrengsten */
.ob {
    display: grid;
    gap: 8px;
}

.ob-row {
    display: grid;
    grid-template-columns: 82px 1fr 84px;
    gap: 12px;
    align-items: center;
}

.ob-year {
    color: var(--overzicht-strong);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

.ob-bar {
    display: flex;
    gap: 2px;
    height: 28px;
    overflow: hidden;
    border-radius: 6px;
}

.ob-bar i {
    display: grid;
    place-items: center;
    flex: var(--w) 1 0;
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    white-space: nowrap;
    transition: flex-grow 1s var(--ease-out);
}

.lvl-1 { background: #0d366b; }
.lvl-2 { background: #184f95; }
.lvl-3 { background: #256abf; }
.lvl-4 { background: #3987e5; color: var(--text) !important; }
.lvl-5 { background: #86b6ef; color: var(--text) !important; }

.ob-legend {
    display: flex;
    gap: 16px;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.ob-legend em {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 5px;
    border-radius: 2px;
    vertical-align: -1px;
}

/* Periodeplanning: weeks are grid columns (--start, --span). */
.pp {
    display: grid;
    grid-template-columns: 1fr 230px;
    gap: 16px;
}

.pp-timeline {
    --label: 96px;
    --weeks: 20;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.pp-months, .pp-weeks, .pp-track {
    display: grid;
    grid-template-columns: repeat(var(--weeks), 1fr);
    margin-left: var(--label);
}

.pp-months span {
    grid-column: var(--start) / span var(--span);
    padding: 8px 4px 2px;
    border-left: 1px solid var(--border);
    font-weight: 600;
}

.pp-weeks {
    border-bottom: 1px solid var(--border);
}

.pp-weeks span {
    padding: 2px 0 6px;
    color: var(--muted);
    font-size: 10px;
    text-align: center;
}

.pp-weeks .pp-now {
    color: var(--doel);
    font-weight: 700;
}

.pp-row {
    position: relative;
    display: flex;
    min-height: 54px;
    border-bottom: 1px solid var(--border);
}

.pp-row:last-child {
    min-height: 74px;
    border-bottom: 0;
}

.pp-label {
    position: absolute;
    top: 50%;
    left: 12px;
    translate: 0 -50%;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.pp-track {
    position: relative;
    flex: 1;
    align-items: center;
    padding: 6px 0;
}

.pp-event {
    grid-column: var(--start) / span var(--span);
    grid-row: 1;
    margin: 0 2px;
    padding: 3px 5px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-left: 3px solid #E0A800;
    border-radius: 5px;
    background: #fff;
    font-size: 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pp-holiday {
    border-left-color: #2E7D32;
}

.pp-holidays {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(var(--weeks), 1fr);
}

.pp-holidays i {
    grid-column: var(--start) / span var(--span);
    grid-row: 1;
    background: repeating-linear-gradient(-45deg, var(--sunken) 0 5px, transparent 5px 10px);
}

.pp-today {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc((var(--start) - .5) / var(--weeks) * 100%);
    width: 2px;
    background: var(--doel);
}

.pp-period {
    position: relative;
    grid-column: var(--start) / span var(--span);
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 3px;
    padding: 8px 10px;
    overflow: hidden;
    border-radius: 9px;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 6px 14px -8px rgba(17, 19, 24, .5);
}

.pp-period .icon {
    width: 15px;
    height: 15px;
}

.pp-heem { background: #2E7D32; color: #fff; }
.pp-rekenen { background: #B3261E; color: #fff; }

.pp-side {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.pp-side-title {
    font: 600 17px/1.2 var(--font-display);
}

.pp-side > small {
    margin-bottom: 4px;
    color: var(--muted);
}

.pp-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 8px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 11px;
}

.pp-item b {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
}

.shot figcaption {
    margin: 12px 4px 0;
    color: var(--c-strong, var(--muted));
    font-size: 13px;
    font-weight: 500;
}

.link-overzicht {
    grid-template-columns: minmax(0, 1fr);
}

.link-overzicht .link-text p {
    max-width: 64ch;
}

.shots-trio {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    grid-template-areas: "klas kind" "school school";
    gap: 20px;
}

.shot-klas { grid-area: klas; }
.shot-kind { grid-area: kind; align-self: start; }
.shot-school { grid-area: school; }

/* ===== Vrijeschool: periods ===== */
.school {
    position: relative;
    padding: clamp(72px, 11vh, 128px) 0;
    background: var(--subtle);
    border-block: 1px solid var(--border);
}

/* The form line crosses the band, in the colour of the periods (Planningen). */
.school::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 24px;
    background: var(--doel-line);
    mask: url(golf-h.svg) left / 160px 24px repeat-x;
}

.school-text, .school .shot {
    width: var(--page);
    margin-inline: auto;
}

.school-text {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: end;
    margin-bottom: clamp(32px, 5vh, 56px);
}

.school-text p {
    color: #3A3F4B;
}

.school .shot {
    --c-tint: #fff;
    --c-strong: var(--doel-strong);
    border: 1px solid var(--border);
}

/* ===== Roles ===== */
.roles {
    width: var(--page);
    margin: 0 auto;
    padding: clamp(72px, 11vh, 128px) 0;
}

.roles .section-title {
    max-width: 16ch;
}

.roles-lead {
    max-width: 56ch;
    margin-top: 20px;
    color: var(--muted);
    font-size: 19px;
}

.role-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(24px, 4vw, 56px);
    margin: clamp(40px, 6vh, 64px) 0 0;
}

.role {
    padding-top: 20px;
    border-top: 2px solid var(--c);
}

.role dt {
    font: 600 22px/1.2 var(--font-display);
}

.role dd {
    margin: 10px 0 0;
    color: #3A3F4B;
}

/* ===== Privacy ===== */
.privacy {
    width: var(--page);
    margin: 0 auto;
    padding: clamp(56px, 8vh, 96px) clamp(24px, 4vw, 64px);
    border-radius: calc(var(--radius) + 8px);
    background: var(--dark);
    color: #fff;
}

.privacy .section-title {
    max-width: 18ch;
}

.privacy-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 28px 48px;
    margin: clamp(32px, 5vh, 48px) 0 0;
    padding: 0;
    list-style: none;
    color: #C9CDD6;
}

.privacy-list strong {
    display: block;
    margin-bottom: 4px;
    color: #fff;
    font-weight: 600;
}

/* ===== Closing ===== */
.closing {
    width: var(--page);
    margin: 0 auto;
    padding: clamp(80px, 12vh, 136px) 0;
    text-align: center;
}

.closing-logo {
    display: block;
    width: 96px;
    height: 51px;
    margin: 0 auto 28px;
}

.closing h2 {
    font-size: clamp(2rem, 1.3rem + 2.4vw, 3.2rem);
    line-height: 1.08;
}

.closing p {
    margin-top: 16px;
    color: var(--muted);
    font-size: 19px;
}

.closing .hero-actions {
    justify-content: center;
}

/* ===== Footer ===== */
.foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 32px;
    width: var(--page);
    margin: 0 auto;
    padding: 32px 0 48px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
}

.foot .brand {
    font-size: 18px;
}

.foot a:last-child {
    margin-left: auto;
    color: var(--text);
    font-weight: 600;
}

/* ===== Motion: the form line draws through the chain, the goal travels it, sections arrive as they scroll in.
   Hidden start states only apply with .js on <html> (landing.js), so the page is complete without scripts. ===== */
@keyframes draw {
    from { stroke-dashoffset: 1; }
}

@keyframes settle {
    from { opacity: 0; transform: translateY(14px); }
}

@keyframes grow {
    from { transform: scaleY(0); }
}

@keyframes rise-line {
    from { transform: translateY(105%); }
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(16px); filter: blur(6px); }
}

@keyframes trace {
    to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: no-preference) {
    .hero h1 .line {
        display: inline-block;
        padding-bottom: .08em;
        overflow: hidden;
        vertical-align: top;
    }

    .hero h1 .line > span {
        display: inline-block;
        animation: rise-line 1s var(--ease-out) backwards;
    }

    .hero h1 .line + .line > span { animation-delay: .12s; }
    .hero-lead { animation: fade-up .9s .3s var(--ease-out) backwards; }
    .hero .hero-actions { animation: fade-up .9s .45s var(--ease-out) backwards; }

    .seg {
        stroke-dasharray: 1;
        animation: draw .7s var(--ease-out) backwards;
    }

    .seg-doel { animation-delay: .7s; }
    .seg-les { animation-delay: 1.1s; }
    .seg-evaluatie { animation-delay: 1.5s; }
    .seg-overzicht { animation-delay: 1.9s; }

    .station {
        animation: settle .8s var(--ease-out) backwards;
    }

    .station-doel { animation-delay: .6s; }
    .station-les { animation-delay: 1s; }
    .station-evaluatie { animation-delay: 1.4s; }
    .station-overzicht { animation-delay: 1.8s; }

    @supports (animation-timeline: view()) {
        .link::before {
            animation: grow linear both;
            animation-timeline: view();
            animation-range: entry 30% cover 60%;
        }

        .school::before {
            animation: wipe linear both;
            animation-timeline: view();
            animation-range: entry 0% cover 40%;
        }
    }

    /* Scroll reveals: landing.js adds .in when an element enters the viewport. */
    .js .reveal {
        opacity: 0;
        translate: 0 28px;
        filter: blur(8px);
        transition: opacity .9s var(--ease-out), translate .9s var(--ease-out), filter .9s var(--ease-out), transform .5s var(--ease-out);
        transition-delay: var(--delay, 0s), var(--delay, 0s), var(--delay, 0s), 0s;
    }

    .js .reveal.in {
        opacity: 1;
        translate: none;
        filter: none;
    }

    /* Screenshots unveil from a soft crop. */
    .js .shot.reveal .app-frame {
        clip-path: inset(0 0 18% 0 round var(--radius-sm));
        scale: 1.03;
        transition: clip-path 1.2s var(--ease-out), scale 1.2s var(--ease-out);
        transition-delay: calc(var(--delay, 0s) + .15s);
    }

    .js .shot.reveal.in .app-frame {
        clip-path: inset(0 0 0 0 round var(--radius-sm));
        scale: none;
    }

    .js .link .node {
        transform: scale(.4);
        opacity: 0;
        transition: transform .8s cubic-bezier(.34, 1.4, .64, 1), opacity .4s;
    }

    .js .link.in .node {
        transform: none;
        opacity: 1;
    }

    .js .role.reveal {
        border-top-color: transparent;
        background: linear-gradient(var(--c), var(--c)) top left / 0 2px no-repeat;
        transition: opacity .9s var(--ease-out), translate .9s var(--ease-out), filter .9s var(--ease-out), background-size 1.1s var(--ease-out);
        transition-delay: var(--delay, 0s);
    }

    .js .role.reveal.in {
        background-size: 100% 2px;
    }

    .js .closing-trace {
        stroke-dasharray: 1;
        stroke-dashoffset: 1;
    }

    .js .closing.in .closing-trace {
        animation: trace 2.2s var(--ease-out) forwards;
    }

    /* Screenshots lean towards the pointer (landing.js sets --rx and --ry). */
    .shot {
        transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
        transition: transform .5s var(--ease-out);
    }

    .button:active {
        transform: scale(.97);
    }
}

@keyframes wipe {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
}

/* ===== Smaller screens: the chain runs downwards ===== */
@media (max-width: 960px) {
    .bar-nav {
        display: none;
    }

    .bar-login {
        margin-left: auto;
    }

    .chain {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .chain-line {
        display: none;
    }

    .station {
        display: grid;
        grid-template-columns: 56px 1fr;
        column-gap: 18px;
        align-items: center;
        padding: 0;
        text-align: left;
    }

    /* The form line continues down from each node to the next. */
    .station:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 62px;
        bottom: -22px;
        left: 27px;
        width: 2px;
        background: var(--c-line);
    }

    .station .node {
        grid-row: 1 / span 2;
    }

    .station-name {
        margin-top: 0;
        font-size: 21px;
    }

    .fragment {
        grid-column: 2;
        width: 100%;
        max-width: 360px;
        margin-top: 10px;
    }

    .link {
        grid-template-columns: minmax(0, 1fr);
        --link-inset: 72px;
    }

    .link h3 .node {
        width: 48px;
        height: 48px;
    }

    .link::before {
        top: 56px;
        left: 12px;
    }

    .shots-trio {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "klas" "kind" "school";
    }

    .school-text {
        grid-template-columns: minmax(0, 1fr);
    }

    .role-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    body {
        font-size: 16px;
    }

    .link {
        --link-inset: 52px;
    }

    .link h3 .node {
        width: 40px;
        height: 40px;
    }

    .link h3 .node .icon {
        width: 20px;
        height: 20px;
    }

    .link::before {
        top: 48px;
        left: 8px;
    }

    .shot {
        margin-right: calc(-1 * clamp(12px, 1.6vw, 20px));
    }

    .privacy {
        width: 100%;
        border-radius: 0;
    }

    .foot a:last-child {
        margin-left: 0;
    }
}
