/* werkbon.co: fonts (latin, from the design export), the design's own rules, then layout and motion */
@font-face {font-family: 'Archivo'; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap; src: url("fonts/archivo-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face {font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500 600; font-display: swap; src: url("fonts/jetbrains-mono-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

*{box-sizing:border-box}
body{margin:0;font-family:'Archivo','Helvetica Neue',sans-serif;color:#14181C;-webkit-font-smoothing:antialiased}
a{color:#18538C}
a:hover{color:#103C68}
a[style*="border-radius: 6px"]{transition:background-color .16s ease,border-color .16s ease,color .16s ease}
a[style*="background: #18538C"]:hover{background:#12406E !important;color:#FFFFFF}
a[style*="border: 1px solid #C9C4B6"]:hover{border-color:#18538C !important;color:#18538C !important}
a[style*="background: #14181C"]:hover{background:#2B323A !important;color:#FFFFFF}
a[style*="background: #FFFFFF; color: #103C68"]:hover{background:#E9F0F8 !important}

html {scroll-behavior: smooth; background: #F4F2EC;}
section[id] {scroll-margin-top: 84px;}
a:focus-visible, summary:focus-visible {outline: 2px solid #18538C; outline-offset: 3px; border-radius: 4px;}

/* Header: sticky, shadow once scrolled, active section in the nav */
.site-header {position: sticky; top: 0; z-index: 50; transition: box-shadow .25s ease;}
.site-header.is-scrolled {box-shadow: 0 8px 28px rgba(20, 24, 28, .08);}
.site-nav a {position: relative; transition: color .15s ease;}
.site-nav a:hover, .site-nav a.is-active {color: #18538C !important;}
.site-nav a::after {content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: #18538C; transform: scaleX(0); transform-origin: left; transition: transform .25s ease;}
.site-nav a.is-active::after {transform: scaleX(1);}

/* Cards: a calm hover, no lift (text stays sharp) */
[data-rv][style*="border-radius"] {transition-property: opacity, transform, border-color, box-shadow;}

/* Reveal on scroll (only with JS; respects reduced motion) */
.js [data-rv] {opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .75s cubic-bezier(.2, .65, .2, 1) var(--d, 0s), transform .75s cubic-bezier(.2, .65, .2, 1) var(--d, 0s);}
.js [data-rv].in {opacity: 1; transform: none;}
.js #top [data-rv] {transition: none; animation: rv-in .8s cubic-bezier(.2, .65, .2, 1) var(--d, 0s) both;}
@keyframes rv-in {from {opacity: 0; transform: translate3d(0, 24px, 0);} to {opacity: 1; transform: none;}}
@media (prefers-reduced-motion: reduce) {
    html {scroll-behavior: auto;}
    .js [data-rv], .js #top [data-rv] {opacity: 1; transform: none; transition: none; animation: none;}
}

/* FAQ: two columns of cards, like softwareshaker.com */
.faq {display: flex; gap: 16px; align-items: flex-start;}
.faq-col {flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 12px;}
.faq-item {background: #FFFFFF; border: 1px solid #E1DDD3; border-radius: 10px; transition: border-color .2s ease, box-shadow .2s ease;}
.faq-item:hover {border-color: #C9C4B6;}
.faq-item[open] {border-color: #BFD0E3; box-shadow: 0 10px 28px rgba(20, 24, 28, .06);}
.faq-item summary {display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; font-size: 17px; font-weight: 600; line-height: 1.35; color: #14181C;}
.faq-item summary::-webkit-details-marker {display: none;}
.faq-ic {position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #E9F0F8; transition: background-color .2s ease;}
.faq-ic::before, .faq-ic::after {content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: #18538C; transform: translate(-50%, -50%); transition: transform .3s ease;}
.faq-ic::after {transform: translate(-50%, -50%) rotate(90deg);}
.faq-item[open] .faq-ic {background: #18538C;}
.faq-item[open] .faq-ic::before, .faq-item[open] .faq-ic::after {background: #FFFFFF;}
.faq-item[open] .faq-ic::after {transform: translate(-50%, -50%) rotate(0deg);}
.faq-a {overflow: hidden; transition: height .34s cubic-bezier(.2, .65, .2, 1), opacity .28s ease;}
.faq-a p {margin: 0; padding: 0 20px 20px; font-size: 16px; line-height: 1.65; color: #474D55;}
.faq-item.is-closing .faq-ic {background: #E9F0F8;}
.faq-item.is-closing .faq-ic::before, .faq-item.is-closing .faq-ic::after {background: #18538C;}
.faq-item.is-closing .faq-ic::after {transform: translate(-50%, -50%) rotate(90deg);}

/* Text and visual swap sides on wide screens (alternating sections) */
@media (min-width: 940px) { .flip > :first-child {order: 2;} }

/* CTA band: text left, buttons right */
.cta-row {display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 56px;}
.cta-text {flex: 1 1 520px; min-width: 0;}
.cta-text p {margin-bottom: 0 !important;}
.cta-buttons {flex: 0 0 auto;}

/* Boekhoud chips link to softwareshaker.com */
.chip {transition: border-color .15s ease, color .15s ease, background-color .15s ease;}
.chip:hover {border-color: #18538C !important; color: #18538C !important; background: #FFFFFF !important;}

/* Demo pop-up */
.demo-dialog {width: min(580px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 14px; background: #FFFFFF; color: #14181C; box-shadow: 0 30px 80px rgba(20, 24, 28, .3); overflow: auto;}
.demo-dialog::backdrop {background: rgba(20, 24, 28, .55); backdrop-filter: blur(3px);}
.demo-dialog[open] {animation: demo-in .28s cubic-bezier(.2, .65, .2, 1);}
@keyframes demo-in {from {opacity: 0; transform: translateY(16px) scale(.98);} to {opacity: 1; transform: none;}}
.demo-dialog-inner {position: relative; padding: 32px 32px 24px;}
.demo-dialog-close {position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #F4F2EC; color: #14181C; cursor: pointer; transition: background-color .15s ease;}
.demo-dialog-close:hover {background: #E9E5DC;}
.demo-eyebrow {margin: 0 0 10px; font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #18538C;}
.demo-dialog h2 {margin: 0 48px 10px 0; font-size: 26px; line-height: 1.15; letter-spacing: -.02em;}
.demo-dialog-lead {margin: 0 0 18px; font-size: 16px; line-height: 1.6; color: #474D55;}
.demo-dialog-form {min-height: 120px;}
.demo-dialog-form iframe {display: block; width: 100%; height: 120px; min-height: 120px; border: 0; background: transparent;}
.demo-dialog-loading {margin: 0; padding: 40px 0; text-align: center; font-size: 15px; color: #6A707A;}
.demo-dialog-form:not(.is-loading) .demo-dialog-loading {display: none;}
.demo-dialog-alt {margin: 16px 0 0; font-size: 14px; color: #6A707A;}
@media (max-width: 480px) { .demo-dialog-inner {padding: 24px 18px 18px;} .demo-dialog h2 {font-size: 22px;} }
@media (prefers-reduced-motion: reduce) { .demo-dialog[open] {animation: none;} }

/* Tablet and phone */
@media (max-width: 860px) {
    .site-header > div {padding: 12px 20px !important; gap: 10px 16px !important;}
    .site-header .brand {flex: 1;}
    .site-nav {order: 3; flex: 1 0 100% !important; flex-wrap: nowrap !important; gap: 20px !important; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; font-size: 14px !important;}
    .site-nav::-webkit-scrollbar {display: none;}
    .site-nav a {white-space: nowrap;}
    section[id] {scroll-margin-top: 112px;}
}
@media (max-width: 760px) {
    .faq {flex-direction: column; align-items: stretch;}
    .faq-col {display: contents;}
    .faq-item {order: var(--o);}
}
@media (max-width: 700px) {
    .sec {padding: 56px 20px !important;}
    footer > div {padding-left: 20px !important; padding-right: 20px !important;}
    [style*="grid-template-columns: repeat(2"], [style*="grid-template-columns: repeat(3"] {grid-template-columns: minmax(0, 1fr) !important;}
}
@media (max-width: 420px) {
    [style*="grid-template-columns: repeat(auto-fit"] {grid-template-columns: minmax(0, 1fr) !important;}
    .faq-item summary {padding: 16px; font-size: 16px;}
    .faq-a p {padding: 0 16px 16px;}
}
