/* ============ TOKENS ============ */
:root {
  --navy: #1d2b4f;
  --navy-light: #35447a;
  --tomato: #ef4b3d;
  --tomato-dark: #c7362b;
  --cream: #fff6ea;
  --cream-dark: #f4e6cf;
  --paper: #fffdf9;
  --ink: #241c2e;
  --line: #e3d7bf;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --shadow-card: 0 18px 40px -16px rgba(29, 43, 79, .28);
  --shadow-soft: 0 10px 24px -12px rgba(29, 43, 79, .18);
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --measure: 68ch;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--tomato-dark); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); margin: 0 0 .5em; line-height: 1.12; }
p { margin: 0 0 1em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 200; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--tomato); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--tomato); color: #fff; }

/* ============ UTILITIES ============ */
.u-grid { display: grid; gap: 24px; }
.u-grid-2 { grid-template-columns: repeat(2, 1fr); }
.u-grid-3 { grid-template-columns: repeat(3, 1fr); }
.u-flex { display: flex; align-items: center; gap: 12px; }
.u-mt-lg { margin-top: 64px; }
.u-mt-md { margin-top: 32px; }
.u-center { text-align: center; }
.u-visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ============ REVEAL / MOTION ============ */
.reveal { opacity: 1; transform: none; clip-path: none; }
.reveal.js-armed { opacity: 0; transform: translateY(28px); clip-path: inset(0 0 30% 0); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.9,.3,1), clip-path .7s ease; }
.reveal.js-armed.in-view { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0); }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal.js-armed { transition: none; opacity: 1; transform: none; clip-path: none; } }

.blob-float { animation: blobFloat 14s ease-in-out infinite; }
@keyframes blobFloat { 0%,100% { transform: translate(0,0) rotate(0); } 50% { transform: translate(-10px, 14px) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .blob-float { animation: none; } }

/* ============ HEADER / NAV ============ */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,246,234,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo__mark { flex: none; }
.logo__word { font-family: var(--font-display); font-size: 1.35rem; color: var(--navy); }
.logo__word em { color: var(--tomato); font-style: normal; }
.logo__word--light { color: var(--cream); font-size: 1.5rem; }
.logo__word--light em { color: #ffb3a8; }

.main-nav__list { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-nav__list a { font-weight: 600; color: var(--navy); position: relative; padding: 6px 0; }
.main-nav__list a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--tomato); transition: right .25s ease; }
.main-nav__list a:hover::after, .main-nav__list a[aria-current="page"]::after { right: 0; }
.main-nav__list a[aria-current="page"] { color: var(--tomato-dark); }
.nav-toggle { display: none; background: none; border: none; color: var(--navy); cursor: pointer; padding: 8px; min-width: 44px; min-height: 44px; }
.nav-backdrop { position: fixed; inset: 0; background: rgba(29,43,79,.4); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; z-index: 98; }
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

.cart-link { position: relative; color: var(--navy); display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.cart-count { position: absolute; top: 2px; right: 0; background: var(--tomato); color: #fff; font-size: .68rem; font-weight: 700; border-radius: 50%; min-width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; }
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav__list { position: fixed; top: 0; right: 0; height: 100%; width: min(320px, 86vw); background: var(--navy); flex-direction: column; justify-content: center; padding: 32px; gap: 24px; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s ease; z-index: 99; }
  .main-nav.is-open .main-nav__list { transform: translateX(0); visibility: visible; }
  .main-nav__list a { color: var(--cream); }
  .nav-toggle--close { position: fixed; top: 20px; right: calc(min(320px, 86vw) - 56px); color: var(--cream); z-index: 101; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; }
  .main-nav.is-open .nav-toggle--close { opacity: 1; visibility: visible; }
}

/* ============ BUTTONS ============ */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-family: var(--font-body); border-radius: 999px; padding: 13px 26px; border: 2px solid transparent; cursor: pointer; overflow: hidden; min-height: 44px; isolation: isolate; transition: color .25s ease, border-color .25s ease, transform .2s ease; }
.btn::before { content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: currentColor; z-index: -1; transition: left .35s ease; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--tomato); color: #fff; }
.btn--primary::before { background: var(--tomato-dark); }
.btn--primary:hover::before { left: 0; }
.btn--secondary { background: var(--navy); color: var(--cream); }
.btn--secondary::before { background: var(--navy-light); }
.btn--secondary:hover::before { left: 0; }
.btn--ghost { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--ghost::before { background: var(--navy); }
.btn--ghost:hover { color: var(--cream); }
.btn--ghost:hover::before { left: 0; }
.cookie-banner .btn--ghost { border-color: var(--cream); color: var(--cream); }
.btn--sm { padding: 9px 18px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ============ CARDS ============ */
.card { background: var(--paper); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); padding: 24px; transition: transform .3s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }

/* ============ PRODUCT CARD ============ */
.product-card { background: var(--paper); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft); transition: transform .3s ease, box-shadow .3s ease; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.product-card__media { aspect-ratio: 4/3; overflow: hidden; background: var(--cream-dark); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-card__media img { transform: scale(1.08); }
.product-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card__tags { display: flex; gap: 8px; flex-wrap: wrap; font-size: .76rem; color: var(--navy-light); }
.product-card__tag { background: var(--cream-dark); border-radius: 999px; padding: 3px 10px; }
.product-card__name { font-size: 1.1rem; margin: 2px 0; }
.product-card__price { font-weight: 800; color: var(--tomato-dark); font-size: 1.15rem; margin-top: auto; }
.product-card__cta { margin-top: 10px; }

.product-strip { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.product-strip .product-card { flex: 0 0 260px; scroll-snap-align: start; }

/* ============ MAP-CANVAS HOME COMPOSITION ============ */
.map-canvas { position: relative; padding: 60px 0 40px; }
.map-canvas__field { position: relative; min-height: 420px; }
.pin-card { position: relative; z-index: 2; }
.pin-card--float { animation: pinFloat 7s ease-in-out infinite; }
@keyframes pinFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .pin-card--float { animation: none; } }

/* ============ HERO ============ */
.hero { position: relative; padding: 48px 0 70px; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero__title { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.hero__lede { font-size: 1.15rem; max-width: 46ch; color: var(--navy-light); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.hero__art { position: relative; aspect-ratio: 1/1; }
.hero__blob { position: absolute; inset: -8%; width: 116%; height: 116%; z-index: 0; }
.hero__photo { position: relative; z-index: 1; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 1/1; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge { position: absolute; z-index: 2; bottom: -18px; left: -18px; }

/* ============ DIVIDERS / DECOR ============ */
.divider { display: block; width: 100%; height: 60px; }
.divider--footer { margin-top: -1px; }
.grain-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 1; pointer-events: none; opacity: .035; mix-blend-mode: multiply; }
.pattern-dots { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .5; }

/* ============ COMPASS FEATURE ============ */
.compass { background: var(--navy); border-radius: var(--radius-lg); padding: 44px; color: var(--cream); position: relative; overflow: hidden; }
.compass h2, .compass p { color: var(--cream); }
.compass__form { display: grid; gap: 18px; margin-top: 24px; }
.compass__group { display: grid; gap: 8px; }
.compass__group legend { font-weight: 700; margin-bottom: 4px; }
.compass__options { display: flex; gap: 10px; flex-wrap: wrap; }
.compass__options label { background: rgba(255,255,255,.08); border: 2px solid transparent; border-radius: 999px; padding: 10px 18px; cursor: pointer; font-size: .92rem; transition: background .2s ease, border-color .2s ease; min-height: 44px; display: flex; align-items: center; }
.compass__options input { accent-color: var(--tomato); margin-right: 8px; }
.compass__options input:checked + * { }
.compass__options label:has(input:checked) { background: var(--tomato); border-color: var(--tomato); }
.compass__result { margin-top: 28px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.compass__result-card { background: var(--paper); color: var(--ink); border-radius: var(--radius-md); padding: 18px; display: flex; gap: 14px; align-items: center; }
.compass__result-card img { width: 72px; height: 72px; border-radius: var(--radius-sm); object-fit: cover; flex: none; }

/* ============ SECTIONS ============ */
.section { padding: 70px 0; }
.section__head { max-width: 60ch; margin: 0 auto 36px; text-align: center; }
.section__head p { color: var(--navy-light); }

/* ============ PAGE HERO (inner pages) ============ */
.page-hero { background: linear-gradient(135deg, var(--navy), var(--navy-light)); color: var(--cream); padding: 56px 0 48px; position: relative; overflow: hidden; }
.page-hero h1, .page-hero p { color: var(--cream); }
.page-hero .wrap { position: relative; z-index: 1; }

/* ============ BREADCRUMBS ============ */
.breadcrumbs { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 14px; font-size: .88rem; flex-wrap: wrap; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--navy-light); }
.breadcrumbs a { color: var(--cream); opacity: .85; }
.breadcrumbs li:last-child { color: var(--cream); opacity: .6; }

/* ============ PROSE (legal pages) ============ */
.prose { max-width: var(--measure); margin: 0 auto; }
.prose h2 { margin-top: 2em; font-size: 1.4rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.1rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.legal-toc { background: var(--paper); border-radius: var(--radius-md); padding: 22px 26px; max-width: var(--measure); margin: 0 auto 40px; box-shadow: var(--shadow-soft); }
.legal-toc h2 { font-size: 1rem; margin-bottom: .6em; }
.legal-toc ol { margin: 0; padding-left: 1.2em; }

/* ============ NOTICE ============ */
.notice { border-radius: var(--radius-sm); padding: 16px 20px; border: 2px solid var(--line); background: var(--cream-dark); margin: 20px 0; }
.notice--info { border-color: var(--navy-light); }
.notice--warn { border-color: var(--tomato); background: #fdeae7; }

/* ============ FORMS ============ */
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); max-width: 640px; }
.form-grid .field--full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: .9rem; }
.field input, .field textarea, .field select { font: inherit; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); accent-color: var(--tomato); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--tomato); }
.field-error { color: var(--tomato-dark); font-size: .82rem; min-height: 1.2em; }
.form-msg { font-weight: 700; min-height: 1.2em; }
.form-msg--ok { color: #1a7a4c; }
.form-msg--error { color: var(--tomato-dark); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.newsletter-form__row { display: flex; gap: 8px; }
.newsletter-form__row input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: var(--radius-sm); border: 2px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: var(--cream); }
.newsletter-form__row input::placeholder { color: rgba(255,246,234,.6); }

/* ============ FAQ ============ */
.faq { max-width: var(--measure); margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: var(--paper); border-radius: var(--radius-md); padding: 6px 22px; box-shadow: var(--shadow-soft); }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--tomato); flex: none; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 16px; color: var(--navy-light); }

/* ============ PRODUCT DETAIL ============ */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.product-detail__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 1/1; }
.product-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__price { font-size: 1.8rem; font-weight: 800; color: var(--tomato-dark); }
.product-detail__meta { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.product-detail__qty { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; }
.product-detail__qty button { border: none; background: var(--cream-dark); width: 40px; height: 40px; font-size: 1.1rem; cursor: pointer; }
.product-detail__qty input { width: 48px; border: none; text-align: center; font: inherit; }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }

/* ============ CART ============ */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.cart-table th, .cart-table td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; }
.cart-table img { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; }
.cart-summary { max-width: 380px; margin-left: auto; background: var(--paper); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-soft); }
.cart-summary__row { display: flex; justify-content: space-between; padding: 8px 0; }
.cart-summary__row--total { font-weight: 800; font-size: 1.2rem; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--navy-light); }

/* ============ CONTACT ============ */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-layout__info { display: grid; gap: 18px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-item svg { flex: none; color: var(--tomato); }
@media (max-width: 800px) { .contact-layout { grid-template-columns: 1fr; } }

/* ============ MISC: BADGES / STATS ============ */
.badge-seal { width: 96px; height: 96px; }
.stat-pin { background: var(--paper); border-radius: var(--radius-md); padding: 18px 22px; box-shadow: var(--shadow-soft); display: inline-flex; align-items: center; gap: 12px; }

/* ============ 404 ============ */
.error-404 { text-align: center; padding: 100px 0; }
.error-404__code { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 9rem); color: var(--tomato); margin: 0; }

/* ============ COOKIE BANNER ============ */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; background: var(--navy); color: var(--cream); border-radius: var(--radius-md); box-shadow: var(--shadow-card); z-index: 150; }
.cookie-banner__inner { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 18px 24px; }
.cookie-banner__inner p { margin: 0; color: var(--cream); flex: 1 1 260px; }
.cookie-banner a { color: #ffd9b3; text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; }

/* ============ FOOTER ============ */
.site-footer { background: var(--navy); color: var(--cream); padding: 10px 0 0; }
.footer__inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; padding: 20px 24px 40px; }
.footer__col h3 { color: var(--cream); font-size: 1rem; margin-bottom: 14px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__col a { color: rgba(255,246,234,.8); }
.footer__col a:hover { color: #fff; text-decoration: underline; }
.footer__brand p { color: rgba(255,246,234,.75); max-width: 28ch; }
.footer__mail { display: inline-flex; gap: 8px; align-items: center; color: var(--cream); margin-top: 6px; }
.footer__bottom { border-top: 1px solid rgba(255,246,234,.15); padding: 16px 24px; font-size: .85rem; color: rgba(255,246,234,.6); }
@media (max-width: 860px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer__inner { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .u-grid-3, .u-grid-2 { grid-template-columns: 1fr; }
}

/* COMPONENTS: .class - what it is
.wrap - centered max-width content wrapper
.site-header - sticky top header bar
.main-nav / .main-nav__list - primary navigation + off-canvas mobile menu
.nav-toggle - hamburger / close buttons for mobile nav
.cart-link / .cart-count - header cart icon with live item count badge
.btn, .btn--primary/--secondary/--ghost, .btn--sm, .btn--block - button variants with fill-sweep hover
.card - generic elevated content card
.product-card, .product-card__media/__body/__tags/__name/__price/__cta - catalog product card
.product-strip - horizontal scroll-snap row of product cards (mobile)
.map-canvas, .map-canvas__field, .pin-card, .pin-card--float - home page map-like pinned layout
.hero, .hero__inner/__title/__lede/__actions/__art/__blob/__photo/__badge - homepage hero composition
.divider - decorative SVG section divider
.grain-overlay - fixed full-viewport SVG noise texture
.pattern-dots - absolute decorative dot/line pattern layer
.compass, .compass__form/__group/__options/__result/__result-card - signature "Puzzle Kompas" feature
.section, .section__head - generic content section + centered heading block
.page-hero - gradient hero banner for inner pages
.breadcrumbs - inner page breadcrumb trail
.prose - readable-measure long-form text (legal pages)
.legal-toc - table of contents box for legal pages
.notice, .notice--info/--warn - callout box
.form-grid, .field, .field--full, .field-error, .form-msg - form layout and validation states
.newsletter-form__row - inline email+submit row in footer
.faq, .faq-item - details/summary FAQ accordion
.product-detail, .product-detail__media/__price/__meta/__qty - product page layout
.cart-table, .cart-summary, .cart-empty - cart/checkout page layout
.contact-layout, .contact-info-item - contact page two-column layout
.badge-seal - small circular decorative SVG badge
.stat-pin - small pill-style info chip
.error-404, .error-404__code - 404 page layout
.cookie-banner - fixed bottom cookie consent bar
.site-footer, .footer__inner/__col/__brand/__mail/__bottom - site footer layout
.reveal, .js-armed, .in-view - scroll-reveal animation hooks
.blob-float, .pin-card--float - continuous subtle floating animation
.u-grid/-2/-3, .u-flex, .u-mt-lg/md, .u-center, .u-visually-hidden - layout utilities
*/

/* ============ NEWSLETTER SIGNUP & CART ============ */
.footer__newsletter { /* Newsletter column inherits footer__col styles */ }

.newsletter-form { display: grid; gap: 12px; }

.qty-input { width: 48px; border: none; text-align: center; font: inherit; }
