/* =============================================
   EMVANE — Klantomgeving (/account/, /en/account/)
   Alleen wat de accountpagina's extra nodig hebben. De rest komt uit site.css (.card, .form-card, .btn, .label,
   .field) en tokens.css. Huisstijl: Merk/MERK.md (lijnen, 8px hoeken, geen pillen, accent spaarzaam).
   ============================================= */

/* ---------- Kop en navigatie ---------- */
.acc-hero { padding: clamp(56px, 7vw, 104px) 0 clamp(28px, 3vw, 44px); }
.acc-hero h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.02; max-width: 16em; margin-bottom: 18px; text-wrap: balance; }
.acc-hero .lede { max-width: 34em; }
.acc-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.acc-nav a, .acc-nav button {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 70%, transparent); color: var(--text); font: 500 13px/1 var(--font-mono);
  text-decoration: none; cursor: pointer; transition: border-color .15s, color .15s;
}
.acc-nav a:hover, .acc-nav button:hover { border-color: var(--accent); color: var(--ink); }
.acc-nav a[aria-current="page"] { border-color: var(--accent); color: var(--ink); background: var(--accent-soft); }
.acc-nav button { margin-left: auto; }

/* ---------- Inhoud ---------- */
.acc-body { padding: clamp(24px, 3vw, 40px) 0 var(--section); }
.acc-body .wrap > [data-acc="content"] { display: flex; flex-direction: column; gap: 24px; }
.acc-body .wrap > [data-acc="content"][hidden] { display: none; }
.acc-narrow { max-width: 560px; }
.acc-status { font-size: 16px; color: var(--muted); }
.acc-status:empty { display: none; }
.acc-status[data-state="error"] { color: var(--danger); }
.acc-status[data-state="ok"] { color: var(--ink); }
.acc-small { font-size: 14px; line-height: 1.55; color: var(--muted); }
.acc-after { margin-top: 24px; max-width: 36em; }
.acc-h2 { font-size: 13px; line-height: 1.2; font-family: var(--font-mono); font-weight: 500; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--accent-text); margin-bottom: 18px; }
.acc-h2-out { margin: 16px 0 -6px; }
.acc-more { font-size: 16px; }
.acc-bar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.acc-empty { padding: 28px; border: 1px dashed var(--field-line); border-radius: var(--radius-lg); color: var(--muted); max-width: 44em; }
.acc-panel { padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg); }
.acc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

/* ---------- Inloggen ---------- */
.acc-login { border-radius: var(--radius-lg); }
.acc-login form { display: flex; flex-direction: column; gap: 18px; }
.acc-login form[hidden] { display: none; }
.acc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 6px; }
.acc-sent { font-size: 16px; line-height: 1.55; color: var(--text); }
.acc-sent strong { overflow-wrap: anywhere; }
.acc-code { margin: 0; padding: 0; border: 0; min-width: 0; }
.acc-code legend { margin-bottom: 10px; }
.acc-digits { display: grid; grid-template-columns: repeat(6, minmax(0, 54px)); gap: 8px; }
.form-card .acc-digit {
  height: 60px; padding: 0; text-align: center; font: 500 26px/1 var(--font-mono); color: var(--ink);
  caret-color: var(--accent);
}
.acc-links { display: inline-flex; flex-wrap: wrap; gap: 4px 18px; }
.acc-link { padding: 0; border: 0; background: none; color: var(--accent-text); font: 500 15px/1.4 var(--font-sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.acc-link:hover { color: var(--ink); }
.acc-login .form-status { margin-top: 14px; }

/* ---------- Kaarten (overzicht, rondes) ---------- */
.acc-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.acc-card {
  display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 24px 24px 22px; border-radius: var(--radius-lg);
  color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s var(--ease);
}
.acc-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); text-decoration: none; }
.acc-kicker { font: 500 12px/1.2 var(--font-mono); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--muted); }
.acc-card-title { font-size: 20px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 560; color: var(--ink); }
.acc-card-text { font-size: 15px; line-height: 1.5; }
.acc-card-go { margin-top: auto; padding-top: 6px; font-size: 15px; color: var(--accent-text); }

/* Wie er aan zet is: een label (6px hoek), met tekst; kleur nooit alleen. */
.acc-tag { align-self: flex-start; font: 500 12px/1 var(--font-mono); padding: 7px 9px; border-radius: var(--radius-sm); background: var(--surface); color: var(--muted); }
.acc-tag[data-turn="client"] { background: var(--accent-soft); color: var(--accent-text); }
.acc-tag[data-done] { background: transparent; border: 1px solid var(--line); padding: 6px 8px; }

.acc-turn { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 17px; line-height: 1.5; color: var(--ink); }
.acc-turn:empty { display: none; }

/* ---------- Statuslijn en tijdlijn: een balk per stap (zoals de werkwijze op de homepage) ---------- */
.acc-steps, .acc-phases { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px 6px; }
.acc-steps { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.acc-phases { grid-template-columns: repeat(7, minmax(0, 1fr)); }
@media (max-width: 680px) { .acc-phases { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.acc-steps li, .acc-phases li { position: relative; padding-top: 14px; font-size: 14px; line-height: 1.35; color: var(--muted); }
.acc-steps li::before, .acc-phases li::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 2px; background: var(--line); }
.acc-steps li[data-state="done"], .acc-phases li[data-state="done"] { color: var(--text); }
.acc-steps li[data-state="done"]::before, .acc-phases li[data-state="done"]::before { background: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.acc-steps li[data-state="current"], .acc-phases li[data-state="current"] { color: var(--ink); font-weight: 600; }
.acc-steps li[data-state="current"]::before, .acc-phases li[data-state="current"]::before { background: var(--accent); }

.acc-timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.acc-timeline li { position: relative; font-size: 15px; line-height: 1.5; color: var(--text); }
.acc-timeline li::before { content: ''; position: absolute; left: -22px; top: .55em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.acc-timeline time { display: block; font: 400 12px/1.4 var(--font-mono); color: var(--muted); }

/* ---------- Gegevens ---------- */
.acc-facts { display: grid; gap: 14px; margin: 0; }
.acc-facts > div { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 4px 16px; }
.acc-facts > div + div { padding-top: 14px; border-top: 1px solid var(--line); }
.acc-facts > div[hidden] { display: none; }
.acc-facts dt { font-size: 14px; color: var(--muted); }
.acc-facts dd { margin: 0; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.acc-facts dd a { color: var(--accent-text); }
.acc-apps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.acc-apps li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--ink); }
.acc-apps li:last-child { padding-bottom: 0; border-bottom: 0; }
.acc-apps small { font: 400 12px/1.6 var(--font-mono); color: var(--muted); }

/* ---------- Ronde ---------- */
.acc-meta { font: 500 13px/1.4 var(--font-mono); color: var(--muted); }
.acc-meta strong { color: var(--accent-text); font-weight: 500; }
.acc-note { white-space: pre-wrap; font-size: 17px; line-height: 1.6; color: var(--text); max-width: 44em; }
.acc-items { display: grid; gap: 28px; }
.acc-figure { margin: 0; }
.acc-figure a { display: block; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-deep); }
.acc-figure img { display: block; width: 100%; height: auto; }
.acc-figure figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); }
.acc-file { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 18px 22px; border-radius: var(--radius-lg); color: var(--ink); text-decoration: none; }
.acc-file:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); text-decoration: none; }
.acc-file .acc-kicker { display: block; margin-bottom: 4px; }
.acc-file .link-arrow { color: var(--accent-text); }
.acc-decide { border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 18px; }
.acc-decide .acc-h2 { margin-bottom: 0; }
.acc-decide form { display: flex; flex-direction: column; gap: 14px; }
.acc-decide [hidden] { display: none; }
.acc-confirm { margin-bottom: 14px; font-size: 16px; line-height: 1.55; color: var(--ink); max-width: 40em; }
.acc-decision { font-size: 18px; line-height: 1.5; color: var(--ink); }
.acc-decision::before { content: ''; display: inline-block; width: 16px; height: 4px; margin-right: 12px; vertical-align: middle; border-radius: 1px; background: var(--accent); }
.acc-feedback { margin-top: 16px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); white-space: pre-wrap; line-height: 1.6; color: var(--text); }
.acc-feedback time { display: block; margin-bottom: 6px; font: 400 12px/1.4 var(--font-mono); color: var(--muted); }

/* ---------- Telefoon ---------- */
@media (max-width: 680px) {
  .acc-grid { grid-template-columns: 1fr; }
  .acc-bar { justify-content: flex-start; }
  .acc-facts > div { grid-template-columns: 1fr; }
  .acc-nav button { margin-left: 0; }
  .form-card .acc-digit { height: 54px; font-size: 22px; }
  .acc-decide .actions .btn { flex: 1 1 100%; }
}
.acc-thanks { margin-top: 10px; }
.acc-panel > .actions + .acc-small { margin-top: 14px; }

/* ---------- Gegevens verwijderen (instellingen) ---------- */
.acc-delete [hidden] { display: none; }
.acc-delete-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.acc-delete-choices > div { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.acc-delete-choices .acc-small { flex: 1; }
.acc-h3 { font-size: 17px; line-height: 1.3; font-weight: 600; color: var(--ink); }
.acc-warn { color: var(--danger); }
.acc-delete .btn { white-space: normal; height: auto; min-height: 46px; padding-block: 12px; line-height: 1.3; text-align: center; }
.btn-danger { background: var(--danger); color: #FFFFFF; }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 85%, #000); }
@media (max-width: 680px) {
  .acc-delete-choices { grid-template-columns: 1fr; }
}

/* ---------- Aanvraagformulier als je ingelogd bent (assets/js/site.js) ---------- */
.acc-form-note { margin: 0 0 32px; padding: 14px 18px; border-radius: var(--radius); background: var(--surface); font-size: 15px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
.acc-form-note strong { color: var(--ink); font-weight: 600; }
.acc-form-note a, .form-status a { color: var(--accent-text); }
