/* Kopersportaal Feed Preview: native app-gevoel (systeemletter, gegroepeerde lijsten) met Instrument Serif
   voor de titels en lichtblauw als basis. */
:root {
  --bg: #EEF3F5;
  --card: #FFFFFF;
  --ink: #1D2922;
  --text: #3F4A55;
  --muted: #5A6570;
  --hair: rgba(48, 67, 82, .12);
  --slate: #304352;
  --frost: #D5E2E7;
  --frost-pale: #E4EDF1;
  --blue: #BCCAD7;
  --blue-deep: #8FA5B9;
  --sand: #E6DCCB;
  --gold: #ECE0C3;
  --stone: #DDDAD3;
  --green: #4E7A5E;
  --danger: #B0412E;
  --radius: 14px;
  /* Atelier Femme als webfont (fonts/atelier-femme/fonts.css), met Instrument Serif als terugval. */
  --serif: "AtelierFemmeSerif", "Atelier Femme Serif", "Instrument Serif", Georgia, serif;
  --serif-italic: "AtelierFemmeItalic", "Atelier Femme Italic", "Instrument Serif", Georgia, serif;
  --script: "AtelierFemmeScript", "Atelier Femme Script", "Brush Script MT", cursive;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.45 var(--ui); -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
:where(a, button, input, summary):focus-visible { outline: 2px solid var(--slate); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--blue); }

h1, h2, .brand { font-weight: 400; margin: 0; font-synthesis: none; }
em { font-style: italic; }
/* Koppen: gewone schrijfwijze in de Serif, één woord in de aparte Italic-familie.
   De spatie van Atelier Femme is breed; met een kleinere woordafstand sluit de Italic netjes aan. */
.large, .login-card h1, .doc h1, .brand { word-spacing: -.12em; }
.large em, .login-card h1 em, .doc h1 em, .brand em { font-family: var(--serif-italic); font-style: italic; font-synthesis: none; letter-spacing: -.01em; }
.brand { font: 400 22px/1 var(--serif); letter-spacing: -.01em; text-decoration: none; }
.large { font: 400 clamp(38px, 6vw, 52px)/1.05 var(--serif); letter-spacing: -.02em; margin: 6px 0 12px; }
.muted { color: var(--muted); }
.lead { font-size: 16px; max-width: 56ch; margin: 0 0 8px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13.5px; }
.accent { color: var(--slate); font-weight: 600; }
.danger { color: var(--danger); }

/* ---------- bovenbalk ---------- */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) clamp(14px, 4vw, 32px) 10px;
  background: rgba(238, 243, 245, .82); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: .5px solid var(--hair);
}
.segmented {
  display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(48, 67, 82, .08);
  overflow-x: auto; scrollbar-width: none;
}
.segmented::-webkit-scrollbar { display: none; }
.segmented a {
  padding: 6px 14px; border-radius: 8px; text-decoration: none; white-space: nowrap;
  font-size: 13px; font-weight: 500; color: var(--slate);
}
.segmented a.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(29, 41, 34, .12); }
.avatar {
  justify-self: end; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue); color: var(--ink); text-decoration: none; font: 400 17px/1 var(--serif);
}

.page { max-width: 760px; margin: 0 auto; padding: 22px clamp(14px, 4vw, 24px) 80px; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ---------- gegroepeerde lijsten ---------- */
.section-title {
  font: 500 12.5px/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  margin: 30px 16px 8px;
}
.group { background: var(--card); border-radius: var(--radius); overflow: hidden; margin-top: 14px; }
.section-title + .group { margin-top: 0; }
.row {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 11px 16px;
  position: relative; width: 100%; background: none; border: 0; text-align: left;
}
.row + .row::before, .row + details.row::before {
  content: ""; position: absolute; top: 0; left: 16px; right: 0; height: .5px; background: var(--hair);
}
.row.stack { flex-direction: column; align-items: stretch; gap: 6px; }
.row-main { flex: 1; min-width: 0; font-size: 15px; }
.row-main .row-sub { display: block; }
.row-sub { font-size: 13px; color: var(--muted); line-height: 1.45; }
.row-value { color: var(--muted); font-size: 15px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%; }
.row-label { font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }
.link-row { cursor: pointer; text-decoration: none; transition: background .15s; }
.link-row:hover { background: rgba(48, 67, 82, .04); }
.link-row:active { background: rgba(48, 67, 82, .08); }
.chev { width: 8px; height: 8px; border-right: 2px solid #B4BEC6; border-top: 2px solid #B4BEC6; transform: rotate(45deg); margin-right: 4px; flex: none; transition: transform .2s; }
.open > .widget-head .chev { transform: rotate(135deg); }
.footnote { font-size: 13px; color: var(--muted); margin: 8px 16px 0; }
.footnote a { color: var(--slate); }

.icon-tile { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.icon-tile svg, .sent-icon svg { width: 18px; height: 18px; fill: none; stroke: var(--slate); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.t-blue { background: var(--blue); } .t-sand { background: var(--sand); } .t-gray { background: var(--stone); } .t-gold { background: var(--gold); }

/* invoervelden */
.input-row { cursor: text; }
.input-row .row-label { width: 70px; flex: none; font-size: 15px; color: var(--ink); letter-spacing: 0; }
.input-row input { flex: 1; min-width: 0; border: 0; background: none; font: 400 15px var(--ui); color: var(--ink); padding: 4px 0; outline: none; }
.input-row input::placeholder { color: #8A949C; }

/* knoppen */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 12px; padding: 11px 18px; cursor: pointer; text-decoration: none;
  font: 600 15px/1.2 var(--ui); transition: filter .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .55; cursor: wait; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { filter: brightness(1.25); }
.btn-tinted { background: var(--frost); color: var(--slate); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; margin-top: 14px; padding: 14px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

.pill { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--frost); color: var(--slate); white-space: nowrap; }
.pill.ok { background: #DCEAE0; color: var(--green); }
.pill.todo { background: var(--gold); color: #6E5B2E; }

.notice { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--card); color: var(--ink); font-size: 14px; border: .5px solid var(--hair); }
.notice.error { background: #F7E9E6; color: var(--danger); box-shadow: none; }
.notice.ok { background: #E3EFE7; color: var(--green); box-shadow: none; }

.confirm { margin-top: 12px; padding: 16px; border-radius: var(--radius); background: var(--card); }
.confirm p { margin: 0 0 12px; color: var(--text); }

/* ---------- checklist ---------- */
.check { width: 24px; height: 24px; border-radius: 50%; flex: none; border: 1.5px solid #B4BEC6; display: grid; place-items: center; }
.check.done { background: var(--slate); border-color: var(--slate); }
.check.done::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }

/* ---------- widgets ---------- */
.widget { margin-top: 14px; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 9px); gap: 2px; padding: 5px; border-radius: 8px; background: var(--frost-pale); flex: none; }
.mini-grid i { width: 9px; height: 11px; border-radius: 1.5px; background: var(--blue); }
.mini-grid i:nth-child(2n) { background: var(--sand); }
.mini-grid i:nth-child(3) { background: var(--blue-deep); }
.w-name { font-weight: 600; }
.copy { display: flex; gap: 8px; }
.copy input { flex: 1; min-width: 0; border: 0; border-radius: 10px; background: var(--bg); padding: 11px 12px; font: 400 13px var(--ui); color: var(--text); }
.choices { display: grid; gap: 8px; margin: 6px 0 4px; }
.choices label { display: flex; gap: 10px; align-items: center; padding: 11px 12px; border-radius: 10px; background: var(--bg); cursor: pointer; }
.choices input { accent-color: var(--slate); }
.choose .btn { align-self: flex-start; }

.phone-wrap { align-items: center; background: linear-gradient(180deg, var(--frost-pale), var(--card)); padding: 22px 16px; }
.phone {
  width: min(100%, 340px); aspect-ratio: 9 / 17; border-radius: 34px; padding: 10px; margin: 0 auto;
  background: #1D2922; box-shadow: 0 18px 40px rgba(29, 41, 34, .18);
}
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 26px; background: #fff; display: block; }

/* ---------- uitleg ---------- */
.faq details { display: block; }
.faq summary { cursor: pointer; list-style: none; font-size: 15px; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 2px; color: var(--text); font-size: 14px; }

/* ---------- beheer ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.stat { background: var(--card); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.stat-num { font: 400 38px/1 var(--serif); }
.stat-label { font-size: 12.5px; color: var(--muted); }
.admin-row .row-value { font-size: 13px; }
.admin-del { background: none; border: 0; color: var(--danger); font-size: 13px; cursor: pointer; padding: 4px; }

/* ---------- inloggen ---------- */
.login { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px 0; }
.login-card { width: 100%; max-width: 400px; text-align: center; }
.login-card .brand { display: block; margin-bottom: 30px; color: var(--slate); }
.login-card h1 { font: 400 50px/1.05 var(--serif); letter-spacing: -.02em; margin-bottom: 14px; }
.login-card .muted { margin: 0 auto 22px; max-width: 34ch; }
.login-card .group { text-align: left; }
.login-card .notice { margin-top: 14px; }
.sent-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--blue); display: grid; place-items: center; margin: 0 auto 16px; }
.sent-icon svg { width: 26px; height: 26px; }
.foot { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; padding: 40px 16px 28px; font-size: 13px; color: var(--muted); }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ---------- tekstpagina's (privacy, voorwaarden) ---------- */
.doc-wrap { max-width: 720px; margin: 0 auto; padding: 22px clamp(14px, 4vw, 24px) 40px; }
.doc { background: var(--card); border-radius: var(--radius); padding: clamp(22px, 5vw, 44px); margin-top: 14px; }
.doc h1 { font: 400 clamp(36px, 6vw, 48px)/1.05 var(--serif); margin-bottom: 8px; }
.doc h2 { font: 600 17px/1.3 var(--ui); margin: 28px 0 8px; }
.doc p, .doc li { color: var(--text); }
.doc .meta { font-size: 12.5px; color: var(--muted); }
.doc-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px clamp(14px, 4vw, 32px); }
.doc-bar a { text-decoration: none; }

@media (max-width: 640px) {
  .bar { grid-template-columns: 1fr auto; }
  .bar .segmented { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; }
  .segmented a { flex: 1; text-align: center; padding: 6px 8px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:last-child { grid-column: 1 / -1; }
  .copy { flex-direction: column; }
}

/* ---------- welkomstbriefje ---------- */
.letter {
  position: relative; margin-top: 18px; padding: 26px clamp(20px, 4vw, 34px) 24px;
  background: #FFFDF7; border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(29, 41, 34, .04), 0 12px 30px rgba(48, 67, 82, .08);
}
.letter-label { margin: 0 0 12px; font: 400 22px/1 var(--serif-italic); font-style: italic; color: var(--slate); }
.letter-body p { margin: 0 0 12px; color: var(--text); font-size: 15.5px; line-height: 1.6; max-width: 60ch; }
.letter-sign { margin: 10px 0 0; font: 400 42px/1.1 var(--script); color: var(--ink); }

/* ---------- voortgang ---------- */
.progress-card { display: block; padding: 14px 16px; text-decoration: none; }
.progress-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.progress-top .row-main { font-weight: 600; }
.progress-bar { height: 6px; border-radius: 99px; background: var(--frost-pale); overflow: hidden; margin-bottom: 8px; }
.progress-bar span { display: block; height: 100%; width: 100%; background: var(--slate); border-radius: 99px; transform: scaleX(0); transform-origin: left center; transition: transform .4s ease; }
.progress-bar.big { height: 8px; margin: 18px 0 4px; }

/* ---------- nieuws ---------- */
.news-date { font-size: 12px; color: var(--muted); }
.news-item .row-main { font-weight: 600; }

/* ---------- stappen ---------- */
.step { margin-top: 14px; }
.step-head { gap: 14px; }
.step-check {
  width: 28px; height: 28px; border-radius: 50%; flex: none; cursor: pointer; padding: 0;
  border: 1.5px solid #B4BEC6; background: var(--card); display: grid; place-items: center;
}
.step-check:hover { border-color: var(--slate); }
.step.done .step-check { background: var(--slate); border-color: var(--slate); }
.step.done .step-check::after { content: ""; width: 7px; height: 12px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.step-num { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.step-title { font: 600 18px/1.3 var(--ui); letter-spacing: -.01em; }
.step.done .step-title { color: var(--muted); }
.step.done .step-body { display: none; }
.step-body { gap: 14px; padding-top: 4px; padding-bottom: 18px; }
.step-text p { margin: 0 0 8px; color: var(--text); }
.step-text ol { margin: 0; padding-left: 20px; color: var(--text); }
.step-text li { margin-bottom: 4px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--ink); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.expect { padding: 12px 14px; border-radius: 12px; background: #E8F0EA; }
.expect-label { display: block; font: 600 14px/1.4 var(--ui); color: var(--green); margin-bottom: 2px; }
.expect-text { margin: 0; color: var(--ink); font-size: 14px; }
.stuck { padding: 12px 14px; border-radius: 12px; background: var(--bg); }
.stuck summary { cursor: pointer; font: 600 14px/1.4 var(--ui); color: var(--slate); list-style: none; }
.stuck summary::-webkit-details-marker { display: none; }
.stuck summary::after { content: " +"; color: var(--muted); }
.stuck[open] summary::after { content: " –"; }
.stuck p { margin: 8px 0 0; font-size: 14px; color: var(--text); }

/* ---------- hulpkaart ---------- */
.help { margin-top: 30px; padding: 22px clamp(18px, 4vw, 28px); border-radius: var(--radius); background: var(--frost); }
.help-title { font: 400 26px/1.1 var(--serif); margin-bottom: 12px; }
.help-title em { font-family: var(--serif-italic); }
.help-steps { margin: 0; padding-left: 20px; color: var(--text); font-size: 14.5px; }
.help-steps li { margin-bottom: 6px; }
.help-steps a { color: var(--ink); }

/* ---------- check mijn koppeling ---------- */
.w-checks { padding: 4px 16px 14px; }
.check-row { display: flex; gap: 12px; padding: 10px 0; border-top: .5px solid var(--hair); }
.check-row:first-child { border-top: 0; }
.check-dot { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; margin-top: 1px; }
.check-row.ok .check-dot { background: var(--green); }
.check-row.warn .check-dot { background: #C49A3A; }
.check-row.error .check-dot { background: var(--danger); }
.check-title { display: block; font-size: 14.5px; font-weight: 600; }
.check-detail { display: block; font-size: 13.5px; color: var(--text); margin-top: 2px; }

/* ---------- beheer: tekstvelden ---------- */
textarea {
  width: 100%; border: 0; border-radius: 10px; background: var(--bg); padding: 12px;
  font: 400 15px/1.5 var(--ui); color: var(--ink); resize: vertical;
}
textarea:focus { outline: 2px solid var(--blue); }
.video-row .row-label { width: 120px; }
.video-ok { font-size: 12px; font-weight: 600; color: var(--green); white-space: nowrap; }
.video-bad { font-size: 12px; font-weight: 600; color: var(--danger); white-space: nowrap; }

/* ---------- routekeuze ---------- */
.routes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.route-card {
  display: flex; flex-direction: column; gap: 6px; text-align: left; cursor: pointer;
  padding: 18px; border-radius: var(--radius); border: 1.5px solid transparent; background: var(--card);
  transition: border-color .15s, transform .1s;
}
.route-card:hover { border-color: var(--blue); }
.route-card:active { transform: scale(.99); }
.route-card.on { border-color: var(--slate); }
.route-tag { align-self: flex-start; font: 600 12px/1 var(--ui); padding: 5px 9px; border-radius: 999px; background: var(--frost); color: var(--slate); }
.route-title { font: 600 16px/1.3 var(--ui); color: var(--ink); }
.route-sub { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.route-switch { margin-top: 6px; }
table.cols { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 14px; }
table.cols th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--muted); padding: 6px 8px; border-bottom: .5px solid var(--hair); }
table.cols td { padding: 8px; border-bottom: .5px solid var(--hair); color: var(--text); vertical-align: top; }
table.cols td:first-child { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; color: var(--ink); white-space: nowrap; }
@media (max-width: 640px) { .routes { grid-template-columns: 1fr; } table.cols td:last-child, table.cols th:last-child { display: none; } }

.link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--slate); font: 500 14px/1.4 var(--ui); text-decoration: underline; text-underline-offset: 3px; }
