/* ===========================
   APPS — menu, productpagina's, startpagina (sinds 2026-10)
   Bouwt voort op de tokens uit style.css
   =========================== */

:root,
[data-theme='light'] {
  --navy: #1A2E5A;
  --amber: #F5A623;
  --amber-dark: #B8832C;
  --color-icon: #B8832C;
  --line: oklch(from var(--color-text) l c h / 0.1);
  --band-bg: #1A2E5A;
  --band-text: #f5f4f0;
  --band-muted: rgba(245, 244, 240, 0.8);
  --band-line: rgba(245, 244, 240, 0.16);
}
[data-theme='dark'] {
  --color-icon: #F5A623;
  --line: rgba(216, 220, 230, 0.12);
  --band-bg: #162038;
  --band-text: #d8dce6;
  --band-muted: #a3adc4;
  --band-line: #283a5a;
}

[hidden] { display: none !important; }

/* ---------- App-icoon (logorichtlijn 9) ---------- */
/* Navy vlak, beeldmerk full color op 56% van de hoogte; tot en met 48 px: negatief wit */
.app-icon {
  --s: 56px;
  width: var(--s);
  height: var(--s);
  flex: none;
  display: grid;
  place-items: center;
  border-radius: calc(var(--s) * 0.225);
  background: #1A2E5A;
}
.app-icon img { height: 56%; width: auto; display: block; }
[data-theme='dark'] .app-icon { box-shadow: inset 0 0 0 1px rgba(216, 220, 230, 0.14); }
.app-icon--sm { --s: 40px; }
.app-icon--lg { --s: 72px; }

/* ---------- Knoppen en links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1.25rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition-interactive), border-color var(--transition-interactive), color var(--transition-interactive);
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--primary { background: var(--amber); color: #1A2E5A; border-color: var(--amber); }
.btn--primary:hover { background: #e6981a; border-color: #e6981a; }
.btn--ghost { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn--ghost:hover { background: var(--color-surface-offset); }
.btn--sm { min-height: 36px; padding: 0 0.9rem; font-size: 0.8125rem; }
.btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.btn-row--center { justify-content: center; }
.text-link {
  color: var(--color-text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-underline-offset: 0.25em;
  text-decoration-thickness: 2px;
}
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- Apps-menu in de header ---------- */
.apps-menu { position: relative; }
.apps-menu > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--radius-full);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background var(--transition-interactive);
}
.apps-menu > summary::-webkit-details-marker { display: none; }
.apps-menu > summary:hover,
.apps-menu[open] > summary { background: var(--color-surface-offset); }
.apps-menu > summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.apps-menu .chev { transition: transform var(--transition-interactive); }
.apps-menu[open] .chev { transform: rotate(180deg); }

.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 60;
  width: 380px;
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  background: var(--color-surface-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  text-align: left;
}
.menu-panel__label {
  margin: var(--space-1) var(--space-2) var(--space-2);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-text-muted);
}
.app-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-1) var(--space-3);
  align-items: start;
  padding: var(--space-3);
  border-radius: var(--radius-md);
}
.app-row:hover { background: var(--color-surface-offset); }
.app-row__name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--color-text); line-height: 1.2; }
.app-row__desc { font-size: 0.8125rem; color: var(--color-text-muted); line-height: 1.4; margin-top: 2px; max-width: none; }
.app-row__actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin-top: var(--space-2); font-size: 0.8125rem; }
.app-row__actions a { font-weight: 600; color: var(--color-text); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.app-row__actions a:hover { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 3px; }
.app-row__actions svg { width: 13px; height: 13px; }
.menu-panel__foot {
  margin: var(--space-2) var(--space-3) var(--space-1);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  max-width: none;
}
.menu-panel__foot a { color: var(--color-text); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.menu-panel__foot a:hover { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 3px; }
.menu-panel__foot span { color: var(--color-text-muted); font-weight: 500; }

@media (max-width: 720px) {
  .menu-panel {
    position: fixed;
    left: var(--space-4);
    right: var(--space-4);
    top: 84px;
    width: auto;
    max-height: calc(100vh - 100px);
    overflow: auto;
  }
}
@media (max-width: 560px) {
  .apps-menu > summary { padding: 0 0.55rem; }
  .apps-menu .chev { display: none; }
  .header .lang-switch > summary { padding: 0 0.5rem; }
}
@media (max-width: 420px) {
  .header .header__logo { height: 44px; }
  .header .lang-switch__chevron { display: none; }
  .header .header__actions { gap: 2px; }
}

/* ---------- Footer met kolommen ---------- */
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-6);
  max-width: var(--content-wide);
  margin: 0 auto var(--space-6);
  padding: 0 var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--line);
  text-align: left;
}
@media (min-width: 768px) { .footer-cols { padding-inline: var(--space-8); } }
.footer-cols h2 { font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: var(--space-2); font-weight: 700; font-family: var(--font-body); }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.footer-cols a { color: var(--color-text); font-size: var(--text-sm); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.footer-cols a svg { width: 12px; height: 12px; }
.footer-cols a:hover { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 3px; }

/* ---------- Gedeelde sectiekoppen ---------- */
.section-head { display: grid; gap: var(--space-3); margin-bottom: var(--space-8); max-width: 62ch; align-content: start; }
.eyebrow { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-icon); }
.section-title { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; line-height: 1.15; color: var(--color-text); }
.app-id { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-5); }
.app-id__brand { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-muted); }
.app-id__name { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; color: var(--color-text); line-height: 1.1; }

/* Browserkader rond echte schermafbeelding */
.frame { display: block; border-radius: var(--radius-lg); overflow: hidden; background: #f5f4f0; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.frame__bar { display: flex; align-items: center; gap: var(--space-2); padding: 0.55rem 0.75rem; background: var(--color-surface-offset); border-bottom: 1px solid var(--line); }
.frame__url { display: inline-flex; align-items: center; gap: 6px; padding: 0.2rem 0.7rem; border-radius: var(--radius-full); background: var(--color-surface-2); font-size: 0.75rem; color: var(--color-text-muted); }
.frame__url svg { width: 11px; height: 11px; }
.frame img { display: block; width: 100%; height: auto; }

/* ---------- Productpagina ---------- */
.crumbs { display: flex; gap: var(--space-2); align-items: center; margin-bottom: var(--space-6); font-size: var(--text-sm); color: var(--color-text-muted); }
.crumbs a { color: var(--color-text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--color-text); text-decoration: underline; text-decoration-color: var(--amber); }
.crumbs [aria-current] { color: var(--color-text); font-weight: 600; }

.p-hero { padding: clamp(var(--space-8), 5vw, var(--space-16)) 0 clamp(var(--space-12), 6vw, var(--space-20)); }
.p-hero__grid { display: grid; gap: var(--space-12); }
@media (min-width: 960px) { .p-hero__grid { grid-template-columns: 5fr 6fr; align-items: center; } }
.p-hero__title { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; color: var(--color-text); margin: var(--space-2) 0 var(--space-5); max-width: 18ch; text-wrap: balance; hyphens: auto; }
.p-hero__sub { font-size: var(--text-base); line-height: 1.6; color: var(--color-text-muted); margin-bottom: var(--space-8); max-width: 52ch; }
.p-hero__note { margin-top: var(--space-4); font-size: var(--text-xs); color: var(--color-text-muted); }
.p-hero .btn { white-space: normal; text-align: center; }

.p-visual { position: relative; padding-bottom: var(--space-12); }
.p-visual__desk { width: 92%; }
.phone { border-radius: 28px; padding: 8px; background: #0f1e3d; box-shadow: var(--shadow-lg); }
.phone img { display: block; width: 100%; height: auto; border-radius: 21px; }
.p-visual__phone { position: absolute; right: 0; bottom: 0; width: 27%; min-width: 120px; }
@media (max-width: 560px) {
  .p-visual { padding-bottom: 0; }
  .p-visual__desk { width: 100%; }
  .p-visual__phone { display: none; }
}

.p-steps { padding: clamp(var(--space-12), 6vw, var(--space-20)) 0; border-top: 1px solid var(--line); }
.p-steps__grid { display: grid; gap: var(--space-10); }
@media (min-width: 960px) { .p-steps__grid { grid-template-columns: 6fr 5fr; align-items: center; gap: var(--space-16); } }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 3.25rem 1fr; gap: var(--space-4); padding: var(--space-6) 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps__n { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); color: var(--color-icon); line-height: 1.2; }
.steps h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; color: var(--color-text); margin-bottom: var(--space-2); line-height: 1.2; }
.steps p { color: var(--color-text-muted); line-height: 1.6; }
.p-steps__photo { margin: 0; }
.p-steps__photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-xl); }
@media (max-width: 959px) { .p-steps__photo img { aspect-ratio: 16 / 10; } }

.band { padding: clamp(var(--space-8), 5vw, var(--space-16)) 0; }
.band__panel { display: grid; gap: var(--space-10); padding: clamp(var(--space-8), 5vw, var(--space-16)); border-radius: var(--radius-xl); background: var(--band-bg); color: var(--band-text); }
@media (min-width: 960px) { .band__panel { grid-template-columns: 5fr 7fr; gap: var(--space-16); } }
.band__eyebrow { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #F5A623; margin-bottom: var(--space-3); }
.band__title { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; line-height: 1.15; color: var(--band-text); margin-bottom: var(--space-4); }
.band__intro { color: var(--band-muted); line-height: 1.6; max-width: 46ch; }
.band__intro a { color: var(--band-text); font-weight: 600; text-decoration: underline; text-decoration-color: #F5A623; text-underline-offset: 0.25em; text-decoration-thickness: 2px; }
.band__list { list-style: none; margin: 0; padding: 0; }
.band__list li { display: grid; grid-template-columns: 22px 1fr; gap: var(--space-4); padding: var(--space-5) 0; border-top: 1px solid var(--band-line); }
.band__list li:first-child { border-top: 0; padding-top: 0; }
.band__list svg { width: 22px; height: 22px; color: #F5A623; margin-top: 2px; }
.band__list h3 { font-size: var(--text-base); font-weight: 700; color: var(--band-text); margin-bottom: var(--space-1); }
.band__list p { color: var(--band-muted); font-size: var(--text-sm); line-height: 1.55; }

.faq { padding: clamp(var(--space-12), 6vw, var(--space-20)) 0; scroll-margin-top: 96px; }
.faq__grid { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 960px) { .faq__grid { grid-template-columns: 4fr 8fr; gap: var(--space-16); } }
.faq__list details { border-top: 1px solid var(--line); }
.faq__list details:last-child { border-bottom: 1px solid var(--line); }
.faq__list summary { list-style: none; display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) 0; font-family: var(--font-display); font-size: var(--text-base); font-weight: 700; color: var(--color-text); cursor: pointer; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: '+'; font-size: 1.4em; line-height: 0.8; color: var(--color-icon); font-weight: 500; }
.faq__list details[open] summary::after { content: '\2013'; }
.faq__list summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.faq__list p { padding-bottom: var(--space-5); color: var(--color-text-muted); line-height: 1.6; max-width: 62ch; }
.faq__list a, .admin a.mail, .admin__note a { color: var(--color-text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 0.2em; }

/* Beheerders: Microsoft 365-tegel */
.admin { padding: clamp(var(--space-12), 6vw, var(--space-20)) 0; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.admin__grid { display: grid; gap: var(--space-10); align-items: start; }
@media (min-width: 960px) { .admin__grid { grid-template-columns: 6fr 5fr; gap: var(--space-16); } }
.admin__intro { color: var(--color-text-muted); line-height: 1.6; max-width: 56ch; }
.admin-steps { list-style: none; margin: var(--space-8) 0 0; padding: 0; counter-reset: s; }
.admin-steps li { counter-increment: s; display: grid; grid-template-columns: 2.5rem 1fr; column-gap: var(--space-3); padding: var(--space-5) 0; border-top: 1px solid var(--line); }
.admin-steps li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font-family: var(--font-display); font-weight: 700; color: var(--color-icon); font-size: var(--text-base); line-height: 1.4; }
.admin-steps h3 { font-family: var(--font-display); font-size: var(--text-base); font-weight: 700; color: var(--color-text); margin-bottom: var(--space-1); }
.admin-steps p { color: var(--color-text-muted); line-height: 1.6; font-size: var(--text-sm); }
.ui-path { font-weight: 600; color: var(--color-text); }
.admin__note { margin-top: var(--space-6); padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); background: var(--color-surface-offset); color: var(--color-text-muted); font-size: var(--text-sm); line-height: 1.55; max-width: none; }
.admin__ms { display: inline-flex; margin-top: var(--space-5); font-size: var(--text-sm); }

.tile-card { padding: var(--space-6); border-radius: var(--radius-lg); background: var(--color-surface-2); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.tile-card__head { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-5); }
.tile-card__head img { width: 60px; height: 60px; border-radius: 8px; flex: none; }
.tile-card__title { font-family: var(--font-display); font-size: var(--text-base); font-weight: 700; color: var(--color-text); }
.tile-card dl { margin: 0; display: grid; gap: 0; }
.tile-card dl > div { padding: var(--space-3) 0; border-top: 1px solid var(--line); }
.tile-card dt { font-size: var(--text-xs); color: var(--color-text-muted); font-weight: 600; margin-bottom: 4px; }
.tile-card dd { margin: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
.tile-card code { font-family: var(--font-body); font-size: var(--text-sm); color: var(--color-text); overflow-wrap: anywhere; line-height: 1.45; }
.copy-btn { flex: none; border: 1px solid var(--color-border); background: transparent; color: var(--color-text); border-radius: var(--radius-full); padding: 0.2rem 0.65rem; font: inherit; font-size: 0.75rem; font-weight: 600; cursor: pointer; min-height: 28px; }
.copy-btn:hover { background: var(--color-surface-offset); }
.copy-btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.copy-btn[data-done] { border-color: var(--amber); }

.cta .btn-row { margin-top: var(--space-6); }

/* ---------- Startpagina apps.talyven.com ---------- */
body.shell { background: var(--color-bg); min-height: 100vh; display: flex; flex-direction: column; }
.shell-top { border-bottom: 1px solid var(--line); background: var(--color-surface-2); position: sticky; top: 0; z-index: 50; }
.shell-top__in { max-width: 1120px; margin: 0 auto; padding: var(--space-3) var(--space-4); display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
@media (min-width: 768px) { .shell-top__in { padding-inline: var(--space-8); } }
.shell-top__brand { display: flex; align-items: center; gap: var(--space-4); text-decoration: none; }
.shell-top__logo { height: 44px; width: auto; }
.shell-top__app { padding-left: var(--space-4); border-left: 1px solid var(--color-border); font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; color: var(--color-text); line-height: 1.6; }
.shell-top__actions { display: flex; align-items: center; gap: var(--space-2); }
@media (max-width: 420px) {
  .shell-top__logo { height: 38px; }
  .shell-top__brand { gap: var(--space-3); }
  .shell-top__app { padding-left: var(--space-3); font-size: 1rem; }
  .shell-top .lang-switch__chevron { display: none; }
  .shell-top .lang-switch > summary { padding: 0 0.5rem; }
  .shell-top__actions { gap: 2px; }
}

.shell-main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: clamp(var(--space-8), 5vw, var(--space-16)) var(--space-4); }
@media (min-width: 768px) { .shell-main { padding-inline: var(--space-8); } }
.home-head { margin-bottom: var(--space-8); max-width: 60ch; }
.home-head h1 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; color: var(--color-text); line-height: 1.15; margin-bottom: var(--space-3); text-wrap: balance; }
.home-head p { color: var(--color-text-muted); line-height: 1.6; }
.launch-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.launch-card { display: flex; flex-direction: column; padding: var(--space-6); border-radius: var(--radius-lg); background: var(--color-surface-2); border: 1px solid var(--line); }
.launch-card .app-icon { margin-bottom: var(--space-5); }
.launch-card__name { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; color: var(--color-text); margin-bottom: var(--space-2); }
.launch-card__desc { color: var(--color-text-muted); font-size: var(--text-sm); line-height: 1.5; margin-bottom: var(--space-6); }
.launch-card__actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); font-size: var(--text-sm); }
.launch-more { margin-top: var(--space-5); color: var(--color-text-muted); font-size: var(--text-sm); }
.home-aside { display: grid; gap: var(--space-4); margin-top: var(--space-10); }
@media (min-width: 760px) { .home-aside { grid-template-columns: 1fr 1fr; } }
.note-card { padding: var(--space-6); border-radius: var(--radius-lg); background: var(--color-surface-offset); }
.note-card h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-base); color: var(--color-text); margin-bottom: var(--space-2); }
.note-card p { color: var(--color-text-muted); font-size: var(--text-sm); line-height: 1.55; }
.note-card .btn, .note-card .text-link { margin-top: var(--space-4); }
.note-card .text-link { display: inline-block; font-size: var(--text-sm); }
.shell-foot { border-top: 1px solid var(--line); }
.shell-foot__in { max-width: 1120px; margin: 0 auto; padding: var(--space-5) var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); justify-content: space-between; font-size: var(--text-xs); color: var(--color-text-muted); }
@media (min-width: 768px) { .shell-foot__in { padding-inline: var(--space-8); } }
.shell-foot a { color: var(--color-text); text-decoration: none; font-weight: 600; }
.shell-foot a:hover { text-decoration: underline; text-decoration-color: var(--amber); }
