/* ===== Ronde 2 (2 dec '26): één layout, header, footer, pagina's, kaarten. Laadt na app.css. ===== */
:root { --w: 980px; --w-app: 720px; }
.wrap { width: min(100% - 32px, var(--w)); margin-inline: auto; }
.app .wrap { width: min(100% - 32px, var(--w-app)); }
html { scroll-padding-top: 76px; }
.quiet { color: var(--muted); font-style: italic; }
.h2 { font-size: clamp(22px, 3.4vw, 28px); line-height: 1.15; letter-spacing: -.015em; font-weight: 600; margin: 0 0 18px; text-wrap: balance; }
.h2.small { font-size: 18px; margin-bottom: 12px; }
.sel { user-select: all; }

/* Header: sticky glas, menu precies in het midden (grid 1fr auto 1fr) */
.site-head { position: sticky; top: 0; z-index: 30; background: rgba(246, 243, 238, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.head-in { width: min(100% - 32px, var(--w)); margin-inline: auto; height: 68px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.site-head .logo { justify-self: start; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; transition: background-color .15s var(--ease), color .15s var(--ease); }
.nav a:hover { color: var(--ink); background: var(--sunk); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface); }
.top-right { justify-self: end; display: flex; align-items: center; gap: 6px; }
.new-btn svg { width: 18px; height: 18px; stroke-width: 2.2; }
@media (max-width: 860px) {
  .head-in { grid-template-columns: 1fr auto; }
  .nav { display: none; }
}
@media (max-width: 480px) {
  .new-btn span, .top-link { display: none; }
  .new-btn { width: 44px; padding: 0; }
}

/* Hero + secties */
.hero { padding: clamp(40px, 8vw, 88px) 0 clamp(36px, 6vw, 64px); }
.hero h1 { font-size: clamp(36px, 6.4vw, 60px); line-height: 1.04; letter-spacing: -.028em; font-weight: 600; margin: 0 0 18px; max-width: 14em; text-wrap: balance; }
.hero .lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.hero-sub h1 { font-size: clamp(34px, 5.6vw, 52px); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.cta svg { width: 20px; height: 20px; stroke-width: 2.2; }
.has-lists .hero { padding-top: 32px; }
.band { background: var(--sunk); padding-block: clamp(40px, 6vw, 64px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: st; }
.steps li { background: var(--surface); border-radius: var(--r); padding: 22px; counter-increment: st; }
.steps li::before { content: counter(st); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: #8f2f12; font-weight: 600; margin-bottom: 12px; }
.steps b { display: block; font-size: 17px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); }
.why, .faq-sec, .prose, .related, .end-cta { padding-block: clamp(40px, 6vw, 64px); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.why-grid h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.why-grid p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .steps, .why-grid { grid-template-columns: 1fr; } }
.prose { display: grid; gap: 28px; }
.prose-block { max-width: 720px; }
.prose-block h2 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 8px; }
.prose-block p { margin: 0; color: var(--muted); font-size: 17px; }
.end-cta { text-align: center; }
.end-cta .h2 { margin-bottom: 18px; }
.related { padding-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--surface); text-decoration: none; font-weight: 500; transition: background-color .15s var(--ease); }
.chip:hover { background: #fffdfa; }

/* FAQ: schuift open/dicht, plus wordt min */
.faq { display: grid; gap: 8px; max-width: 760px; }
.faq-item { background: var(--surface); border-radius: 14px; }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; font-weight: 500; position: relative; min-height: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before, .faq-item summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 14px; height: 2px; margin-top: -1px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease); }
.faq-item summary::after { transform: rotate(90deg); }
.faq-item.is-open summary::after { transform: rotate(0deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s var(--ease); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 18px 18px; color: var(--muted); max-width: 62ch; }

/* Juridisch */
.legal { max-width: 720px; padding-block: 48px 64px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -.02em; margin: 0 0 16px; }
.legal h2 { font-size: 20px; margin: 28px 0 6px; }
.legal p { color: var(--muted); margin: 0; }

/* Footer */
.site-foot { background: var(--sunk); margin-top: 24px; padding-block: 48px 28px; }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.foot-brand p { color: var(--muted); margin: 10px 0 0; max-width: 28em; }
.site-foot h2 { font-size: 14px; font-weight: 600; margin: 0 0 10px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-foot ul a { color: var(--muted); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.site-foot ul a:hover { color: var(--ink); }
.foot-small { color: var(--muted); font-size: 13px; margin-top: 28px; }
@media (max-width: 680px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* Jouw lijstjes: vierkante kaarten */
.mine-sec { padding-top: 28px; }
.sec-row { display: flex; align-items: baseline; justify-content: space-between; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; }
.lcard { display: grid; align-content: start; gap: 8px; text-decoration: none; color: inherit; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; font: inherit; }
.lcard-img { aspect-ratio: 1; border-radius: 20px; overflow: hidden; display: grid; place-items: center; background: var(--surface); transition: transform .12s var(--ease), filter .15s var(--ease); }
.lcard:hover .lcard-img { filter: brightness(.97); }
.lcard:active .lcard-img { transform: scale(.98); }
.lcard-img img { width: 100%; height: 100%; object-fit: cover; }
.lcard-letter { font-size: 44px; font-weight: 600; color: rgba(28, 27, 24, .55); }
.lcard-t { font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcard-n { color: var(--muted); font-size: 14px; margin-top: -6px; }
.lcard-add .lcard-img { background: var(--sunk); }
.lcard-add svg { width: 40px; height: 40px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
@media (max-width: 480px) { .cards { grid-template-columns: repeat(2, 1fr); } }

/* Lijstpagina: wisselrij, profielfoto, winkelpictogram */
.switch-row { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0 2px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.switch-row::-webkit-scrollbar { display: none; }
.sw { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 14px 4px 4px; border-radius: 999px; background: var(--surface); text-decoration: none; color: var(--ink); border: 0; cursor: pointer; font: inherit; font-weight: 500; transition: background-color .15s var(--ease); }
.sw:hover { background: #fffdfa; }
.sw.on { background: var(--ink); color: #fff; }
.sw-av { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; flex: none; }
.sw-av img { width: 100%; height: 100%; object-fit: cover; }
.sw-av .lcard-letter { font-size: 15px; }
.sw-t { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-add { padding: 0; width: 44px; justify-content: center; background: var(--sunk); }
.sw-add svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.list-head { align-items: center; }
.list-photo { position: relative; width: 64px; height: 64px; flex: none; border: 0; padding: 0; border-radius: 18px; cursor: pointer; background: none; }
.list-photo > span:first-child, .list-photo.static { width: 64px; height: 64px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; }
.list-photo img { width: 100%; height: 100%; object-fit: cover; }
.list-photo .lcard-letter { font-size: 28px; }
.photo-edit { position: absolute; right: -4px; bottom: -4px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.photo-edit svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.list-photo:active { transform: scale(.97); }
.shop { display: inline-flex; align-items: center; gap: 6px; }
.fav { width: 16px; height: 16px; border-radius: 4px; flex: none; }
.paste svg.lead-ic { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
@media (prefers-reduced-motion: reduce) { .faq-a { transition: none; } }
@media (max-width: 480px) {
  #share-btn { font-size: 0; gap: 0; width: 44px; padding: 0; }
  .list-head { gap: 10px; }
  .list-title { font-size: 24px; }
}

/* Ronde 3 (2 dec '26): pictogrammen, potlood-popup, sorteren/filteren, slepen, plus op Toevoegen */
.av-ic { width: 48%; height: 48%; fill: none; stroke: rgba(28, 27, 24, .72); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.paste .add-btn svg { display: block; width: 20px; height: 20px; stroke-width: 2.2; }
.look-up { justify-content: center; }
.look-or { margin: 2px 0 -6px; }
.icon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.icon-pick { display: grid; justify-items: center; gap: 6px; padding: 10px 4px 8px; border: 0; border-radius: 14px; background: none; cursor: pointer; font: inherit; color: var(--ink); transition: background-color .15s var(--ease); }
.icon-pick:hover { background: var(--sunk); }
.icon-pick:active .icon-pick-av { transform: scale(.94); }
.icon-pick-av { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; transition: transform .12s var(--ease), box-shadow .15s var(--ease); }
.icon-pick-t { font-size: 13px; color: var(--muted); }
.icon-pick.on .icon-pick-av { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.icon-pick.on .icon-pick-t { color: var(--ink); font-weight: 600; }
.look-reset { justify-self: center; }
.list-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 -6px; }
.list-tools .dd-btn { min-height: 38px; font-size: 14px; }
.dd-txt { display: inline-flex; align-items: center; gap: 6px; }
.dd-opt { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.item.can-drag { grid-template-columns: 30px 76px 1fr auto; padding-left: 2px; }
.drag-h { width: 30px; height: 52px; display: grid; place-items: center; border: 0; padding: 0; background: none; color: #b3ab9d; cursor: grab; touch-action: none; border-radius: 10px; transition: color .15s var(--ease), background-color .15s var(--ease); }
.drag-h:hover, .drag-h:focus-visible { color: var(--ink); background: var(--sunk); }
.drag-h svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; }
.item.dragging { position: relative; z-index: 5; box-shadow: 0 12px 28px rgba(28, 27, 24, .16); }
.item.dragging .drag-h { cursor: grabbing; color: var(--ink); }
.is-dragging, .is-dragging * { user-select: none; -webkit-user-select: none; cursor: grabbing; }
@media (max-width: 560px) {
  .item.can-drag { grid-template-columns: 26px 64px 1fr auto; }
  .drag-h { width: 26px; }
  .icon-grid { grid-template-columns: repeat(3, 1fr); }
}
.items { position: relative; }

/* Ronde 4 (2 dec '26): vloeiend wisselen tussen lijstjes (cross-document view transition + fade-in), lange merknaam */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .24s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
.site-head { view-transition-name: head; }
#owner:not([hidden]), #guest:not([hidden]) { animation: vlIn .32s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes vlIn { from { opacity: 0; transform: translateY(6px); } }
.sw { transition: background-color .2s var(--ease), color .2s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  #owner:not([hidden]), #guest:not([hidden]) { animation: none; }
}
@media (max-width: 480px) { .site-head .logo { font-size: 16px; gap: 8px; } .site-head .logo svg { width: 24px; height: 24px; } }
@media (max-width: 360px) { .site-head .logo span { font-size: 14px; } }

/* Verwijderen: rood, prullenbak, extra bevestiging */
.btn.danger { background: #c2361b; color: #fff; }
.btn.danger:hover { background: #a92c14; }
.btn.danger:disabled { background: #e3b4a8; cursor: not-allowed; transform: none; }
.btn.danger svg, .btn.danger-soft svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.danger-soft { background: #fbe4dd; color: #a92c14; }
.btn.danger-soft:hover { background: #f6d2c7; }
.danger-note { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.danger-note svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: #fbe4dd; fill: none; stroke: #c2361b; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.danger-note p { margin: 0; color: var(--muted); }
.danger-dlg { width: min(440px, calc(100vw - 32px)); }
.list-danger { display: flex; justify-content: center; margin: 36px 0 8px; }

/* Ster: "dit wil ik het liefst" (keuze C5) */
.fav-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: #9a5b00; background: #fbefd9; border-radius: 99px; padding: 2px 9px 2px 7px; }
.fav-tag svg { width: 13px; height: 13px; fill: #e0a32e; stroke: #e0a32e; stroke-width: 1.5; stroke-linejoin: round; }
.star-btn svg { transition: fill .15s var(--ease), stroke .15s var(--ease), transform .2s var(--ease); }
.star-btn.on svg { fill: #e0a32e; stroke: #e0a32e; }
.star-btn:active svg { transform: scale(.85); }
@media (max-width: 560px) { .item-actions { flex-direction: column; } .item-actions .icon-btn { width: 40px; height: 40px; } }
.acct-more { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.acct-link { border: 0; background: none; padding: 6px 0; min-height: 36px; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.acct-link:hover { color: var(--ink); }
.acct-link.danger { color: #b23a17; }

/* App op je telefoon + /delen (keuze C9) */
.install-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.sec-row { gap: 12px; }
.ios-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); }
.ios-steps b { color: var(--ink); font-weight: 600; }
.share-pg { padding-block: 32px 48px; max-width: 560px; }
.share-what { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; background: var(--surface); border-radius: 12px; padding: 10px 14px; margin: 0 0 18px; }
.share-lists { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.share-row { width: 100%; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px; border: 0; border-radius: 16px; background: var(--surface); font: inherit; color: var(--ink); text-align: left; cursor: pointer; transition: background-color .15s var(--ease); }
.share-row:hover { background: #fffdfa; }
.share-row:active { transform: scale(.99); }
.share-row.busy { opacity: .6; }
.share-t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-go { color: var(--accent); font-size: 14px; font-weight: 500; }

/* Lootjes trekken (keuze C1) */
.loot-hero .lead { margin-bottom: 22px; }
.loot-form { background: var(--surface); border-radius: var(--r); padding: 22px; display: grid; gap: 16px; max-width: 560px; }
.loot-form .cta { justify-self: start; }
.loot-names { list-style: none; margin: 6px 0 10px; padding: 0; display: grid; gap: 8px; counter-reset: ln; }
.loot-row { display: grid; grid-template-columns: 28px 1fr 40px; align-items: center; gap: 6px; counter-increment: ln; }
.loot-row::before { content: counter(ln); color: var(--muted); font-size: 14px; text-align: center; font-variant-numeric: tabular-nums; }
.loot-note { margin: -4px 0 0; font-size: 14px; }
.loot-prev { max-width: 560px; margin-top: 18px; display: grid; gap: 8px; }
.loot-app { padding-block: 28px 48px; max-width: 640px; }
.loot-tip { color: var(--muted); margin: 0 0 16px; }
.loot-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.loot-person { background: var(--surface); border-radius: 16px; padding: 12px 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.loot-who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.loot-who b { font-size: 17px; font-weight: 600; margin-right: 4px; }
.loot-st { font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: 99px; background: var(--sunk); color: var(--muted); }
.loot-st.ok { background: #e3f2e8; color: #2f7a4d; }
.loot-acts { display: flex; gap: 6px; }
.loot-kicker { color: var(--muted); font-size: 14px; margin: 0 0 4px; }
.loot-card { background: var(--surface); border-radius: 22px; padding: 28px 22px; margin: 18px 0 28px; text-align: center; display: grid; justify-items: center; }
.loot-result { display: grid; justify-items: center; gap: 6px; }
.loot-result.pop { animation: lotPop .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes lotPop { from { opacity: 0; transform: scale(.94) translateY(6px); } }
.loot-result p { margin: 0; }
.loot-name { font-size: clamp(34px, 8vw, 48px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.loot-meta { color: var(--muted); margin-bottom: 10px !important; }
.loot-mine { display: grid; gap: 8px; }
.loot-mine .h2 { margin: 0; }
.loot-mine p { margin: 0; }
.loot-mine-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.loot-or { width: 100%; margin-top: 8px !important; }
@media (prefers-reduced-motion: reduce) { .loot-result.pop { animation: none; } }

/* Kop met lange merknaam: menu pas tonen als het past, knoppen nooit afbreken */
.top-link, .new-btn, .btn.danger, .btn.danger-soft { white-space: nowrap; }
.head-in { width: min(100% - 32px, 1160px); }
.nav a { white-space: nowrap; }
@media (max-width: 1180px) { .head-in { grid-template-columns: 1fr auto; } .nav { display: none; } }
.logo span { white-space: nowrap; }

/* Foto kiezen per cadeau */
.photo-pick { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: thin; transition: opacity .2s var(--ease); }
.photo-pick.busy { opacity: .5; pointer-events: none; }
.pp-tile { position: relative; flex: none; width: 76px; height: 76px; border: 0; padding: 0; border-radius: 12px; background: #fff; cursor: pointer; overflow: hidden; outline: 1px solid rgba(28, 27, 24, .1); outline-offset: -1px; transition: box-shadow .15s var(--ease), transform .1s var(--ease); }
.pp-tile img { width: 100%; height: 100%; object-fit: contain; }
.pp-tile:active { transform: scale(.96); }
.pp-tile[aria-checked="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.pp-tick { position: absolute; right: 4px; top: 4px; width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--accent); fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.6); transition: opacity .15s var(--ease), transform .15s var(--ease); }
.pp-tile[aria-checked="true"] .pp-tick { opacity: 1; transform: none; }
.pp-add, .pp-none { display: grid; place-items: center; align-content: center; gap: 4px; background: var(--sunk); outline: 0; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1; }
.pp-add svg, .pp-none svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pp-add:hover, .pp-none:hover { color: var(--ink); background: #e6e1d8; }
