/* App-specific styles on top of theme.css + kit.css + signature.css (zonderslop kit). */

.muted, .small { color: var(--zs-muted); }
.small { font-size: .9rem; }
.error { color: #a1271e; font-size: .92rem; margin: .4rem 0 0; font-weight: 700; }
.optional { font-weight: 400; color: var(--zs-muted); }
.center-text { text-align: center; }
.form-title { font-size: 1.35rem; }

/* Form fields the kit does not cover */
.ws-form input[type=number], .ws-form input[type=email] { width: 100%; min-height: 3rem; padding: .6rem .8rem; font: inherit; color: var(--zs-ink); background: #fff; border: 2px solid #9aa8a6; border-radius: 10px; }
.ws-form input[type=number]:focus-visible, .ws-form input[type=email]:focus-visible { outline: 3px solid var(--ws-route); outline-offset: 2px; border-color: var(--ws-route); }

/* Address autocomplete */
.autocomplete { position: relative; }
.suggestions { position: absolute; z-index: 10; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 0; list-style: none; background: #fff; border: 2px solid var(--ws-route); border-radius: 10px; box-shadow: 4px 4px 0 var(--ws-route); overflow: hidden; }
.suggestions li { padding: .65rem .8rem; cursor: pointer; }
.suggestions li:hover, .suggestions li.active { background: #eaf4f7; }

/* Real map image in the map frame */
.map-image { margin: 0; }
.map-image img { width: 100%; border: 3px solid var(--ws-route); border-radius: 18px; background: #f6f1e4; }
.map-image figcaption { font-size: .85rem; color: var(--zs-muted); margin-top: .5rem; }
.word-block { margin-top: 1.75rem; }
.word-block h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.word-block p { margin: .7rem 0 0; }

/* Hunt page */
.page-head { padding: clamp(1.5rem, 4vw, 2.5rem) 0 1rem; }
.page-head h1 { font-size: clamp(2rem, 2.4vw + 1.2rem, 3rem); }
.page-head .meta { color: var(--zs-muted); margin: .6rem 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.notice { background: #e9f5e1; border: 2px solid #8cc27a; border-radius: 12px; padding: .8rem 1rem; margin: 0 0 1.5rem; }
.panel { background: var(--zs-surface); border: 2px solid var(--ws-route); border-radius: 18px; box-shadow: 6px 6px 0 var(--ws-route); padding: 1.5rem; max-width: 40rem; margin: 2rem auto; text-align: center; }
.panel h1 { font-size: clamp(1.8rem, 2vw + 1rem, 2.4rem); margin-bottom: .75rem; }
.link-button { background: none; border: 0; padding: 0; color: var(--zs-brand); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; font-size: .9rem; }
.link-button:hover { color: var(--zs-accent); }
.ws-card.locked { opacity: .6; box-shadow: none; border-style: dashed; }
.ws-card.locked .ws-dot { background: #ddd; }
.ws-card form { margin: .4rem 0 0; }
.ws-card__body .stop-lead { font-style: italic; color: var(--zs-muted); margin: 0 0 .35rem; }
.loader { width: 44px; height: 44px; margin: 1.25rem auto; border-radius: 50%; border: 5px dashed var(--ws-route); animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .loader { animation: none; } }

/* Checkout */
.checkout { margin: 2.5rem auto 0; max-width: 40rem; text-align: left; }
.products { display: grid; gap: .6rem; margin-bottom: 1rem; }
.product { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; border: 2px solid var(--zs-line); border-radius: 12px; cursor: pointer; background: #fff; }
.product:has(input:checked) { border-color: var(--ws-route); background: #eaf4f7; }
.product-name { flex: 1; font-weight: 700; }
.product .price { font: 700 1.3rem/1 var(--zs-font-display); color: var(--zs-brand); }
.check { display: flex !important; gap: .6rem; align-items: flex-start; font-weight: 400 !important; }
.check input { margin-top: .3rem; }

/* Content pages */
.prose { max-width: 44rem; padding: clamp(1.5rem, 4vw, 2.5rem) 0; }
.prose h1 { margin-bottom: 1rem; }
.prose h2 { margin: 1.75rem 0 .5rem; font-size: 1.4rem; }
.links { padding-left: 1.2em; }
.links li { margin-bottom: .4em; }

/* Footer */
.site-footer { background: var(--zs-brand-deep); color: var(--zs-on-brand); padding: 2rem 0 2.5rem; margin-top: 3rem; font-size: .92rem; }
.site-footer a { color: var(--zs-on-brand); }
.site-footer a:hover { color: var(--ws-dot); }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-weight: 700; }

/* Phone version */
body.walk { background: var(--theme-soft, var(--zs-bg)); padding-bottom: 96px; }
.walk-header { display: flex; gap: 12px; align-items: center; padding: 12px 16px; background: var(--theme, var(--zs-brand)); color: #fff; }
.walk-header a { color: #fff; }
.walk-screen { padding: 20px 16px; max-width: 640px; margin: 0 auto; }
.walk-map { border-radius: 14px; margin-top: 12px; border: 3px solid var(--ws-route); }
.walk-number { width: 64px; height: 64px; border-radius: 50%; background: var(--theme-accent, var(--ws-dot)); border: 3px solid var(--ws-route); font: 700 2rem/1 var(--zs-font-display); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.walk-task { font-size: 1.25rem; }
.letter { width: 64px !important; font-size: 1.8rem !important; text-align: center; text-transform: uppercase; padding: .3rem; border: 3px solid var(--ws-route); border-radius: 8px; }
.parent { margin: 16px 0; background: #fff; border-radius: 10px; padding: 10px 14px; }
.word { font: 700 2rem/1.2 var(--zs-font-display); letter-spacing: .1em; }
.walk-nav { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 12px 16px; background: #fff; border-top: 2px solid var(--zs-line); }
.walk-nav .zs-btn { flex: 1; margin: 0; }
.zs-btn:disabled { opacity: .4; cursor: default; }
.landing-copy h2 { font-size: 1.35rem; margin: 1.5rem 0 .4rem; } .cards-title { font-size: 1.5rem; margin-bottom: 1rem; }
.ws-form .product { display: flex; margin: 0; padding: .8rem 1rem; }
.ws-form .check { margin: 0; font-size: .95rem; }
.ws-form .check span { flex: 1; }
.checkout h2 { font-size: 1.6rem; }
.locked-dots { display: flex; flex-wrap: wrap; gap: .4rem; }
.ws-card.locked { opacity: 1; }
.ws-card.locked h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.landing-photo { margin-bottom: 1.5rem; }
.photo-tile .ws-picto { margin-bottom: .4rem; }
.notice--info { background: #eaf4f7; border-color: var(--ws-route); }
.landing-copy { align-self: start; }

/* ---------- Dark mode (design rule 8): tokens switch, hardcoded light surfaces follow ----------
 * Contrast on bg #161d1c: ink #ece6da 14.6:1, muted #a9b4b1 8.4:1, brand #8ccbe0 9.9:1, hover amber #f2a541 9.3:1,
 * error #ff8a80 7.6:1. Buttons keep accent #a84a00 with white text (5.76:1). Dots keep ink #24302f on amber.
 */
:root { color-scheme: light dark; }
@media (prefers-color-scheme: dark) {
  :root {
    --zs-bg: #161d1c;
    --zs-surface: #1f2928;
    --zs-surface-alt: #232e2c;
    --zs-ink: #ece6da;
    --zs-muted: #a9b4b1;
    --zs-line: #3a4644;
    --zs-brand: #8ccbe0;
    --zs-brand-deep: #0f3a4a;
    --ws-route: #3b8fae;
    --ws-select: #1d3a45;
  }
  a:hover, .link-button:hover { color: var(--zs-highlight); }
  .zs-header, .zs-tile, .walk-header { background: var(--zs-brand-deep); }
  .walk-header { background: var(--theme, var(--zs-brand-deep)); }
  .zs-header .zs-btn--ghost:hover { background: rgb(255 255 255 / .12); }
  .ws-dot, .walk-number, .ws-card.locked .ws-dot { color: var(--zs-highlight-ink); }
  .ws-card.locked .ws-dot { background: #6d7a78; }
  .error { color: #ff8a80; }
  .ws-form input[type=text], .ws-form input[type=number], .ws-form input[type=email], .ws-form select,
  .ws-themes label, .suggestions, .product, .parent, .walk-nav, .ws-letter, .letter { background: var(--zs-surface); color: var(--zs-ink); }
  .ws-form input[type=text], .ws-form input[type=number], .ws-form input[type=email], .ws-form select { border-color: #6d7a78; }
  .ws-letter:empty { background: repeating-linear-gradient(135deg, var(--zs-surface) 0 6px, var(--zs-surface-alt) 6px 8px); }
  .ws-themes label:has(input:checked), .product:has(input:checked), .suggestions li:hover, .suggestions li.active { background: var(--ws-select); }
  .notice { background: #1f3320; border-color: #4f7d44; }
  .notice--info { background: var(--ws-select); border-color: var(--ws-route); }
  .ws-map figcaption { background: rgb(22 29 28 / .85); }
  body.walk { background: var(--zs-bg); }
}
