/* Seintje — de opmaak van krijgeenseintje.nl. Zelfde Kaartje-ontwerp als de app. */
@font-face { font-family: Fredoka; font-weight: 400; font-display: swap; src: url(fonts/fredoka-400.woff2) format("woff2"); }
@font-face { font-family: Fredoka; font-weight: 500; font-display: swap; src: url(fonts/fredoka-500.woff2) format("woff2"); }
@font-face { font-family: Fredoka; font-weight: 600; font-display: swap; src: url(fonts/fredoka-600.woff2) format("woff2"); }
@font-face { font-family: Fredoka; font-weight: 700; font-display: swap; src: url(fonts/fredoka-700.woff2) format("woff2"); }

:root {
  --blue: #2346E0; --blue-d: #1A35B8; --paper: #FFFBF0; --ink: #14213D; --ink2: #56607A;
  --yellow: #FFD23F; --yellow-d: #D9A900; --soft: #D8E0FF; --line: #EDE6D2;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--blue); color: #fff; font-family: Fredoka, ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif; font-size: 19px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #fff; outline-offset: 4px; border-radius: 6px; }
.sheet a:focus-visible { outline-color: var(--ink); }
main { overflow-x: clip; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; }

/* Bovenkant */
.top { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 600; text-decoration: none; }
.dot { width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; flex: none; }
.dot svg { width: 19px; height: 19px; fill: var(--ink); }
.nav { display: none; gap: 30px; font-size: 18px; font-weight: 500; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
/* Het menu op een telefoon: een rustige ronde knop met drie streepjes, in het donkerdere blauw. Daaronder een papieren vlak met de links. */
.menu summary { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--blue-d); color: #fff; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; user-select: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.menu summary svg { width: 24px; height: 24px; }
.menu .m-close, .menu[open] .m-open { display: none; }
.menu[open] .m-close { display: block; }
.menu-panel { position: absolute; right: 22px; top: calc(100% + 10px); width: min(300px, calc(100% - 44px)); padding: 6px 22px; border-radius: 24px; background: var(--paper); box-shadow: 0 8px 0 rgba(20, 33, 61, .3); animation: menu-in .2s cubic-bezier(.2, .7, .2, 1) both; }
.menu-panel a { display: flex; align-items: center; min-height: 62px; color: var(--ink); font-size: 21px; font-weight: 600; text-decoration: none; border-top: 2px solid var(--line); }
.menu-panel a:first-child { border-top: 0; }
.menu-panel a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }

/* Opening */
.hero { display: grid; gap: 44px; padding-top: 30px; padding-bottom: 70px; }
h1 { font-size: clamp(40px, 10.5vw, 66px); line-height: 1.04; letter-spacing: -0.015em; }
.lead { font-size: clamp(20px, 5vw, 23px); line-height: 1.4; color: var(--soft); margin-top: 18px; max-width: 28em; }
.lead strong { color: #fff; font-weight: 500; }

/* Downloadknoppen. Eigen knoppen in de stijl van de site; zie README voor de officiële knoppen van Apple en Google. */
.stores { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; max-width: 440px; }
.store { display: grid; align-content: center; min-height: 70px; padding: 9px 12px 10px; border-radius: 20px; background: var(--yellow); color: var(--ink); text-decoration: none; text-align: center; line-height: 1.15; box-shadow: 0 7px 0 var(--yellow-d); transition: transform .12s ease, box-shadow .12s ease; }
.store small { font-size: 14.5px; font-weight: 500; }
.store b { font-size: 22px; font-weight: 600; }
.store:hover { transform: translateY(2px); box-shadow: 0 5px 0 var(--yellow-d); }
.store:active { transform: translateY(7px); box-shadow: 0 0 0 var(--yellow-d); }
.soon { position: absolute; top: -12px; right: 10px; padding: 2px 11px 3px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; transform: rotate(3deg); }
span.store { position: relative; cursor: default; }
span.store:hover, span.store:active { transform: none; box-shadow: 0 7px 0 var(--yellow-d); }
.free { margin-top: 24px; font-size: 19px; font-weight: 500; }
.free span { display: block; font-weight: 400; color: var(--soft); font-size: 17px; margin-top: 2px; }

/* De telefoons */
.art { justify-self: center; }
.art p { margin-top: 18px; text-align: center; color: var(--soft); font-size: 15.5px; }
.phones { position: relative; width: 322px; height: 520px; }
/* Een gele cirkel achter de telefoons, zodat de blauwe schermen loskomen van de blauwe achtergrond. */
.phones::before { content: ""; position: absolute; left: 50%; top: 49%; width: 436px; aspect-ratio: 1; margin: -218px 0 0 -218px; border-radius: 50%; background: var(--yellow); animation: pop .8s cubic-bezier(.2, 1.2, .3, 1) .1s both; }
@keyframes pop { from { scale: .82; opacity: 0; } to { scale: 1; opacity: 1; } }
.phone { position: absolute; padding-top: 15px; border: 9px solid var(--ink); border-radius: 40px; background: var(--blue); box-shadow: 0 10px 0 rgba(20, 33, 61, .3); overflow: hidden; }
.phone::before { content: ""; position: absolute; top: 5px; left: 50%; width: 52px; height: 6px; margin-left: -26px; border-radius: 3px; background: var(--ink); }
.phone img { display: block; width: 100%; height: auto; }
.phone.back { width: 204px; right: 0; top: 34px; transform: rotate(6deg); }
.phone.front { width: 232px; left: 0; top: 0; transform: rotate(-3deg); }
.ping { position: absolute; left: -8px; right: 44px; bottom: 6px; z-index: 3; display: flex; gap: 12px; align-items: center; padding: 13px 16px 13px 13px; border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 8px 0 rgba(20, 33, 61, .3); transform: rotate(1.5deg); animation: drop .7s cubic-bezier(.2, 1.3, .4, 1) .6s both; }
.ping .dot { width: 42px; height: 42px; } .ping .dot svg { width: 23px; height: 23px; }
.ping small { display: block; font-size: 14px; color: var(--ink2); }
.ping b { display: block; font-size: 17.5px; font-weight: 600; line-height: 1.2; }
@keyframes drop { from { opacity: 0; transform: translateY(-26px) rotate(-2deg) scale(.96); } to { opacity: 1; transform: rotate(1.5deg); } }

/* Papieren vlak */
.sheet { background: var(--paper); color: var(--ink); border-radius: 30px 30px 0 0; padding: 54px 0 60px; }
h2 { font-size: clamp(30px, 7.5vw, 42px); line-height: 1.1; letter-spacing: -0.01em; }
.steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 26px; counter-reset: stap; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; counter-increment: stap; }
.steps li::before { content: counter(stap); width: 52px; height: 52px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-size: 26px; font-weight: 700; box-shadow: 0 4px 0 var(--yellow-d); }
.steps h3 { font-size: 23px; line-height: 1.2; padding-top: 4px; }
.steps p { color: var(--ink2); margin-top: 4px; }

.cost { margin-top: 56px; padding: 30px 26px 32px; border-radius: 26px; background: var(--yellow); box-shadow: 0 7px 0 var(--yellow-d); }
.cost h2 span { display: block; }
.cost p { margin-top: 12px; font-size: 20px; max-width: 30em; }

.faq { margin-top: 60px; scroll-margin-top: 24px; }
.faq h2 { margin-bottom: 14px; }
.qs { max-width: 780px; }
.q { border-top: 2px solid var(--line); }
.q:last-child { border-bottom: 2px solid var(--line); }
.q summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; padding: 14px 0; cursor: pointer; list-style: none; font-size: 22px; font-weight: 600; line-height: 1.2; -webkit-tap-highlight-color: transparent; }
.q summary::-webkit-details-marker { display: none; }
.q summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 8px; }
.q summary i { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); box-shadow: 0 3px 0 var(--yellow-d); transition: rotate .3s cubic-bezier(.2, .7, .2, 1); }
.q summary i::before, .q summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 3px; margin: -1.5px 0 0 -8px; border-radius: 2px; background: var(--ink); }
.q summary i::after { rotate: 90deg; transition: rotate .3s cubic-bezier(.2, .7, .2, 1); }
.q[open] summary i { rotate: 180deg; }
.q[open] summary i::after { rotate: 0deg; }
.q p { color: var(--ink2); padding: 0 56px 22px 0; max-width: 34em; }
/* Het antwoord schuift open in browsers die dat kunnen; in andere klapt het direct open. */
@supports (interpolate-size: allow-keywords) {
  .q { interpolate-size: allow-keywords; }
  .q::details-content { block-size: 0; overflow: clip; opacity: 0; transition: block-size .35s cubic-bezier(.2, .7, .2, 1), opacity .3s ease, content-visibility .35s allow-discrete; }
  .q[open]::details-content { block-size: auto; opacity: 1; }
}

/* Het blok voor organisatoren op de eerste pagina: een blauw vlak op het papier, met een knop naar hun eigen pagina. */
.org { margin-top: 60px; padding: 30px 26px 36px; border-radius: 26px; background: var(--blue); color: #fff; box-shadow: 0 7px 0 var(--blue-d); }
.org h2 { font-size: clamp(26px, 6.4vw, 34px); max-width: 18em; }
.org p { margin-top: 12px; color: var(--soft); font-size: 20px; max-width: 32em; text-wrap: pretty; }
.knop { display: inline-flex; align-items: center; min-height: 54px; margin-top: 24px; padding: 8px 24px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 19px; font-weight: 600; line-height: 1.2; text-decoration: none; box-shadow: 0 5px 0 var(--blue-d); transition: transform .12s ease, box-shadow .12s ease; }
.knop:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--blue-d); }
.knop:active { transform: translateY(5px); box-shadow: 0 0 0 var(--blue-d); }
.sheet .org a:focus-visible { outline-color: #fff; }

/* Onderdelen komen licht in beeld tijdens het scrollen. De klasse 'js' komt van het script onderaan de pagina. */
.js .rv { opacity: 0; translate: 0 22px; transition: opacity .6s ease, translate .7s cubic-bezier(.2, .7, .2, 1), rotate .7s cubic-bezier(.2, 1.2, .3, 1), scale .7s cubic-bezier(.2, 1.2, .3, 1); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; translate: 0 0; }
.js .cost.rv { rotate: -2deg; scale: .96; }
.js .cost.rv.in { rotate: 0deg; scale: 1; }
/* De telefoons schuiven een klein beetje langs elkaar terwijl je scrolt. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .phone.back { animation: drift-up linear both; animation-timeline: scroll(root); animation-range: 0 900px; }
    .phone.front { animation: drift-down linear both; animation-timeline: scroll(root); animation-range: 0 900px; }
    @keyframes drift-up { to { translate: 0 -46px; } }
    @keyframes drift-down { to { translate: 0 18px; } }
  }
}

/* Afsluiting en voettekst */
.end { padding-top: 58px; padding-bottom: 34px; text-align: center; }
.end .stores { margin: 30px auto 0; }
.foot { padding-top: 30px; padding-bottom: 44px; color: var(--soft); font-size: 17px; }
.foot ul { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; }
.foot a { display: inline-block; padding: 7px 0; color: #fff; font-weight: 500; text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 5px; }
.foot p { margin-top: 22px; }

/* Tekstpagina's: Over Seintje, Privacy, Voorwaarden */
.page-head { padding-top: 26px; padding-bottom: 40px; }
/* De terugknop bovenaan een losse pagina. Op een telefoon is er geen menu, dus dit is de weg terug. */
.terug { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; margin-bottom: 26px; padding: 0 22px 0 14px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 19px; font-weight: 600; text-decoration: none; box-shadow: 0 5px 0 var(--blue-d); transition: transform .12s ease, box-shadow .12s ease; }
.terug svg { width: 24px; height: 24px; flex: none; }
.terug:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--blue-d); }
.terug:active { transform: translateY(5px); box-shadow: 0 0 0 var(--blue-d); }
.page-head p { color: var(--soft); font-size: 21px; margin-top: 12px; max-width: 30em; }
.doc { max-width: 36em; }
.doc h2 { font-size: 26px; line-height: 1.2; margin-top: 40px; letter-spacing: 0; scroll-margin-top: 24px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc ul { margin-top: 12px; }
.doc ul { padding-left: 1.15em; }
.doc li { margin-top: 6px; }
.doc a { font-weight: 500; text-underline-offset: 4px; }
.doc strong { font-weight: 600; }
.concept { display: inline-block; margin-bottom: 30px; padding: 12px 16px; border-radius: 16px; background: var(--yellow); font-weight: 500; font-size: 17px; }
.fill { background: #FFF1B8; border-radius: 6px; padding: 0 5px; }
.back { display: inline-block; margin-top: 44px; font-weight: 500; }
/* De momenten waarop een seintje uitgaat, op de pagina voor organisatoren. Het belletje is het seintje. */
.doc .moments { list-style: none; padding: 0; margin-top: 22px; display: grid; gap: 24px; }
.doc .moments li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; margin-top: 0; }
.moments .dot { width: 46px; height: 46px; box-shadow: 0 4px 0 var(--yellow-d); }
.moments .dot svg { width: 25px; height: 25px; }
.moments h3 { font-size: 22px; line-height: 1.2; padding-top: 3px; }
.doc .moments p { margin-top: 4px; color: var(--ink2); }

@media (min-width: 860px) {
  .wrap { padding: 0 40px; }
  .top { padding-top: 34px; }
  .nav { display: flex; }
  .menu { display: none; }
  .hero { grid-template-columns: 1.08fr .92fr; align-items: center; gap: 40px; padding-top: 50px; padding-bottom: 100px; }
  .art { justify-self: end; }
  .phones::before { width: 400px; margin: -200px 0 0 -200px; left: 55%; }
  .sheet { border-radius: 44px 44px 0 0; padding: 84px 0 90px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 40px; }
  .steps li { grid-template-columns: 1fr; gap: 16px; align-content: start; }
  .cost { margin-top: 80px; padding: 44px 44px 46px; }
  .faq { margin-top: 84px; }
  .faq h2 { margin-bottom: 20px; }
  .org { margin-top: 84px; padding: 44px 44px 48px; }
  .q summary { font-size: 24px; min-height: 78px; }
  .end { padding-top: 90px; padding-bottom: 50px; }
  .foot { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
  .foot ul { display: flex; gap: 30px; }
  .foot p { margin-top: 0; }
  .page-head { padding-top: 60px; padding-bottom: 60px; }
}
@media (min-width: 1100px) {
  .phones { width: 408px; height: 640px; }
  .phones::before { width: 500px; margin: -250px 0 0 -250px; left: 56%; }
  .phone { border-width: 11px; border-radius: 48px; padding-top: 18px; }
  .phone.back { width: 252px; top: 46px; }
  .phone.front { width: 288px; }
  .ping { left: -30px; right: 80px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .ping, .phones::before { animation: none; } .menu-panel { animation: none; } .store, .terug, .knop, .q summary i, .q summary i::after { transition: none; } .q::details-content { transition: none; } }
