/* ShelterSync marketing site. Palette "Nachtdienst" from the herontwerp export;
   all colours come from the custom properties below. */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url("/assets/fonts/bricolage-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url("/assets/fonts/bricolage-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: "Public Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/publicsans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/publicsans-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; }

:root {
  --paper: #F3F2F7; --ink: #231F45; --muted: #4E4A6B; --muted2: #6E6A88;
  --acc: #F2B930; --accD: #8A5A00; --accTint: #FBF0D0; --accTint2: #FDF6E3; --accOnDark: #F2B930;
  --onAcc: #231F45; --onAccMuted: #4E4A6B; --ok: #1E7A6E; --okD: #155C53; --okT: #D5EFEA; --away: #D9822B;
  --err: #A3261C; --errT: #FBE4E1;
  --line: #DAD8E4; --line2: #C8C5D6; --lineS: #E7E5EF; --track: #E4E2EC; --tHead: #EEEDF4; --selT: #ECEAF7;
  --inpB: #8E8AA8; --tabDB: #5A5580; --onDarkM: #CBC8E0; --darkLine: #3A3563; --foot: #17142F;
  --quote: #E6E4F0; --card: #FFFFFF; --onInk: #FFFFFF;
  --gutter: clamp(20px, 5.5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Public Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; line-height: 1.5; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
a { color: var(--ink); }
a:hover { color: var(--accD); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accD); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--onInk); padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; color: var(--onInk); }

.d { font-family: "Bricolage Grotesque", "Public Sans", sans-serif; letter-spacing: -0.02em; }
.muted { color: var(--muted); }
.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.sec { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.card-bg { background: var(--card); }
.stack { display: flex; flex-direction: column; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.eyebrow { font-size: 17px; font-weight: 600; color: var(--ok); }
.h1 { font-size: clamp(38px, 5.2vw, 66px); line-height: 1.04; font-weight: 800; }
.h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; font-weight: 700; }
.h3 { font-size: 24px; line-height: 1.2; font-weight: 700; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; }

/* buttons */
.btn, .btn2 { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 52px;
  padding: 0 26px; border-radius: 10px; font-weight: 600; font-size: 17px; text-decoration: none; cursor: pointer; font-family: inherit; }
.btn { background: var(--acc); color: var(--onAcc); border: 0; }
.btn:hover { background: var(--ink); color: var(--onInk); }
.btn2 { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn2:hover { background: var(--ink); color: var(--onInk); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn.on-dark { background: var(--ink); color: var(--onInk); }
.btn.on-dark:hover { background: var(--card); color: var(--ink); }
.btn.sm { min-height: 44px; font-size: 16px; padding: 0 20px; }

/* header / footer */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
  padding-top: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 23px; font-weight: 700; }
.nav { display: flex; align-items: center; gap: 12px 32px; flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 500; font-size: 16px; }
.nav a.btn { font-weight: 600; }
.nav a[aria-current="page"]:not(.btn) { border-bottom: 2px solid var(--acc); padding-bottom: 4px; }
.site-footer { background: var(--foot); color: var(--onDarkM); padding-top: 56px; padding-bottom: 56px;
  display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; font-size: 15px; line-height: 1.6; }
.site-footer a { color: var(--onDarkM); }
.site-footer a:hover { color: var(--onInk); }
.site-footer .col { display: flex; flex-direction: column; gap: 6px; }
.site-footer .col b, .site-footer .brand-f { color: var(--onInk); font-weight: 600; }
.site-footer .brand-f { font-size: 22px; font-weight: 700; margin-bottom: 8px; }

/* grids: 12 columns on desktop, single column below 900px */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); align-items: start; }
.s4 { grid-column: span 4; } .s5 { grid-column: span 5; } .s6 { grid-column: span 6; }
.s7 { grid-column: span 7; } .s8 { grid-column: span 8; }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 72px); align-items: center; }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line2); }
.cols4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1000px) { .cols4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cols3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .split, .cols2 { grid-template-columns: minmax(0, 1fr); }
  .s4, .s5, .s6, .s7, .s8 { grid-column: auto; }
}
@media (max-width: 620px) { .cols4, .cols3 { grid-template-columns: minmax(0, 1fr); } }

/* product: demo board */
.board { background: var(--card); border-radius: 20px; box-shadow: 0 1px 0 var(--line), 0 30px 60px -34px rgba(20, 20, 40, .4); overflow: hidden; }
.board-head { background: var(--ink); color: var(--onInk); padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.board-head .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.board-body { padding: 24px; display: flex; flex-direction: column; gap: 18px; min-height: 480px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { min-height: 44px; padding: 0 18px; border-radius: 999px; font-family: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--inpB); background: var(--card); color: var(--ink); }
.tab[aria-selected="true"], .tab[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--onInk); }
.board-head .tab { border-color: var(--tabDB); background: transparent; color: var(--onInk); }
.board-head .tab[aria-selected="true"] { border-color: var(--card); background: var(--card); color: var(--ink); }
.big-num { font-size: 42px; font-weight: 800; line-height: 1; }
.big-num small { font-size: 20px; color: var(--muted2); font-weight: 700; }
.ok { color: var(--ok); font-weight: 600; }
.track { height: 10px; background: var(--track); border-radius: 99px; overflow: hidden; display: block; }
.track > span { display: block; height: 100%; background: var(--acc); }
.beds { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 620px) { .beds { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.bed { aspect-ratio: 1; min-height: 30px; border-radius: 6px; padding: 0; font-family: inherit; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; border: 0; background: var(--ink); color: var(--onInk); cursor: default; }
button.bed.check { cursor: pointer; }
.bed.todo { background: var(--card); color: var(--ink); border: 2px dashed var(--ink); }
.bed.free { background: var(--card); border: 2px solid var(--ok); color: var(--ok); }
.bed.free.hl { background: var(--okT); }
.bed.away { background: var(--away); color: var(--onInk); }
.loc-row { display: grid; grid-template-columns: minmax(90px, 170px) minmax(0, 1fr) 84px; gap: 14px; align-items: center; font-size: 16px; }
.loc-row .track { height: 16px; }
.loc-row .full { background: var(--acc); }
.loc-row .norm { background: var(--ink); }
.note { background: var(--paper); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.sees { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; border-top: 1px solid var(--lineS); padding-top: 18px; margin-top: auto; }
@media (max-width: 620px) { .sees { grid-template-columns: minmax(0, 1fr); } .loc-row { grid-template-columns: minmax(80px, 120px) minmax(0, 1fr) 70px; } }
.sees > div { display: flex; gap: 10px; font-size: 15px; line-height: 1.5; }
.sees svg { flex-shrink: 0; margin-top: 3px; }

/* product: deciders, import, roi, steps */
.deciders { border-top: 2px solid var(--ink); }
.decider { padding: 26px 24px 8px 0; display: flex; flex-direction: column; gap: 12px; }
.decider .who { font-size: 15px; font-weight: 600; }
.decider a { font-weight: 600; }
.sheet { background: var(--card); border-radius: 14px; padding: 22px; font-size: 14px; border: 1px solid var(--line); }
.sheet .cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.sheet .cells > div { background: var(--card); padding: 7px; min-height: 32px; }
.sheet .cells .h { background: var(--tHead); font-weight: 600; }
.sheet .cells .w { background: var(--accTint); }
.sheet-after { background: var(--ink); color: var(--onInk); border-radius: 14px; padding: 22px; font-size: 15px; display: flex; flex-direction: column; gap: 10px; }
.import-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 520px) { .import-pair { grid-template-columns: minmax(0, 1fr); } }
.roi { margin-left: var(--gutter); margin-right: var(--gutter); background: var(--ink); color: var(--onInk); border-radius: 24px;
  padding: clamp(28px, 5vw, 64px); }
.roi label { display: flex; flex-direction: column; gap: 8px; font-size: 17px; }
.roi label > span { display: flex; justify-content: space-between; gap: 16px; }
.roi input[type=range] { width: 100%; accent-color: var(--acc); height: 28px; }
.roi .result { background: var(--paper); color: var(--ink); border-radius: 18px; padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.roi .result .huge { font-size: clamp(64px, 9vw, 104px); font-weight: 800; line-height: .95; }
.roi .result .huge small { font-size: 36px; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; border-top: 2px solid var(--ink); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.steps .when { font-size: 15px; font-weight: 700; color: var(--accD); }
.panel { border: 1.5px solid var(--ink); border-radius: 16px; padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 18px; background: var(--card); }
.cta-band { margin: 0 var(--gutter) clamp(48px, 7vw, 96px); background: var(--acc); color: var(--onAcc); border-radius: 20px;
  padding: clamp(28px, 5vw, 64px); display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band.dark { background: var(--ink); color: var(--onInk); }
.cta-band .sub { font-size: 19px; color: var(--onAccMuted); margin-top: 12px; }
.cta-band.dark .sub { color: var(--onDarkM); }

/* veiligheid */
.dossier { background: var(--card); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.dossier .item { padding-bottom: 12px; border-bottom: 1px solid var(--lineS); font-size: 16px; }
.dossier .item:last-child { border-bottom: 0; padding-bottom: 0; }
.summary { font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; background: var(--paper); border-radius: 12px; padding: 20px 24px; }
.matrix { display: flex; flex-direction: column; font-size: 17px; overflow-x: auto; }
.matrix .r { display: grid; grid-template-columns: minmax(150px, 1.3fr) repeat(4, minmax(90px, 1fr)); border-bottom: 1px solid var(--lineS); min-width: 640px; }
.matrix .r.head { border-bottom: 2px solid var(--ink); font-weight: 700; }
.matrix .r > div { padding: 16px 12px; }
.matrix .r > div:first-child { font-weight: 600; }
.matrix .sel { background: var(--accTint2); }
.matrix .head .sel { color: var(--accD); }
.agree { list-style: none; padding: 0; display: flex; flex-direction: column; }
.agree li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding: 26px 0; border-top: 1px solid var(--line2); }
.agree .no { font-size: 40px; font-weight: 800; color: var(--accD); line-height: 1; }
.tech > div { padding: 30px 32px 30px 0; border-bottom: 1px solid var(--line2); display: flex; flex-direction: column; gap: 8px; }
details { border-bottom: 1px solid var(--line2); padding: 22px 0; }
summary { cursor: pointer; font-size: 20px; font-weight: 600; }
details p { margin-top: 14px; max-width: 720px; font-size: 17px; line-height: 1.65; }

/* pilot form */
.form-card { background: var(--card); border-radius: 18px; padding: clamp(22px, 4vw, 44px); box-shadow: 0 1px 0 var(--line), 0 24px 48px -30px rgba(20, 20, 40, .35); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-size: 16px; font-weight: 600; margin-bottom: 10px; padding: 0; }
.choice { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 18px 20px; border-radius: 12px; cursor: pointer;
  font-family: inherit; color: var(--ink); background: var(--card); border: 1.5px solid var(--line2); }
.choice[aria-pressed="true"] { background: var(--selT); border: 2px solid var(--ink); padding: 17.5px 19.5px; }
.choice b { font-size: 18px; } .choice span { font-size: 15px; color: var(--muted); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.weeks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 620px) { .pair, .fields { grid-template-columns: minmax(0, 1fr); } .weeks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lab { display: flex; flex-direction: column; gap: 8px; font-size: 16px; font-weight: 600; }
.inp { min-height: 52px; padding: 0 16px; border: 1.5px solid var(--inpB); border-radius: 10px; font-size: 17px; font-family: inherit; background: var(--card); color: var(--ink); width: 100%; }
.week { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; min-height: 56px; padding: 10px 14px; border-radius: 10px; cursor: pointer;
  font-family: inherit; font-size: 16px; color: var(--ink); background: var(--card); border: 1.5px solid var(--line2); }
.week[aria-pressed="true"] { border: 2px solid var(--ink); background: var(--selT); padding: 9.5px 13.5px; }
.week small { font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: var(--errT); color: var(--err); border-radius: 10px; padding: 14px 16px; font-weight: 600; }
.plan { background: var(--ink); color: var(--onInk); border-radius: 18px; padding: 32px; }
.plan ol { list-style: none; padding: 0; margin: 22px 0 0; }
.plan li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--darkLine); }
.plan .date { font-weight: 700; color: var(--accOnDark); font-size: 15px; }
.plan .sub { color: var(--onDarkM); }
.spoed { border: 2px solid var(--acc); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 8px; background: var(--card); }
.spoed a { font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; color: var(--accD); text-decoration: none; overflow-wrap: anywhere; }
[hidden] { display: none !important; }

/* custom dropdown (assets/select.js) */
.dd { position: relative; }
.dd > select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }
.dd-btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; user-select: none; }
.dd-btn:hover { border-color: var(--ink); }
.dd-btn[aria-expanded="true"] { border-color: var(--ink); box-shadow: 0 0 0 3px var(--selT); }
.dd-chev { flex-shrink: 0; color: var(--muted); transition: transform .15s ease; }
.dd-btn[aria-expanded="true"] .dd-chev { transform: rotate(180deg); }
.dd-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none;
  background: var(--card); border: 1.5px solid var(--line2); border-radius: 12px; max-height: 280px; overflow: auto;
  box-shadow: 0 18px 40px -16px rgba(20, 20, 40, .35); }
.dd-up .dd-list { top: auto; bottom: calc(100% + 6px); }
.dd-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 12px;
  border-radius: 8px; cursor: pointer; font-size: 17px; font-weight: 500; }
.dd-opt.is-active { background: var(--selT); }
.dd-opt[aria-selected="true"] { font-weight: 700; }
.dd-opt .tick { color: var(--ok); font-weight: 700; visibility: hidden; }
.dd-opt[aria-selected="true"] .tick { visibility: visible; }
@media (prefers-reduced-motion: reduce) { .dd-chev { transition: none; } }

/* toast (mailto fallback) */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; max-width: min(92vw, 560px); padding: 14px 20px; border-radius: 12px;
  background: var(--ink); color: var(--onInk); font-size: 16px; line-height: 1.4; box-shadow: 0 18px 40px -16px rgba(20, 20, 40, .5);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* long-form pages (privacy) */
.prose { max-width: calc(720px + 2 * var(--gutter)); margin-left: auto; margin-right: auto; padding-top: clamp(36px, 5vw, 72px); padding-bottom: clamp(48px, 7vw, 96px); font-size: 17px; line-height: 1.7; }
.prose h1 { margin-bottom: 8px; }
.prose h2 { font-size: 26px; line-height: 1.2; font-weight: 700; margin: 40px 0 10px; }
.prose p, .prose ul { margin: 0 0 16px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
