/* haptic3D — editorial primitives for content pages (hero, sections, teasers,
   article body, FAQ, stats). Loaded via $pageCss only where needed. */

/* ---- Hero ---- */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; overflow: hidden; background: var(--night); color: #fff; width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-fallback { position: absolute; inset: 0; z-index: 0; background: radial-gradient(90% 80% at 75% 40%, #7b3cff 0%, #2b1553 60%), var(--night); }
.hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; width: 100%; }
.hero-eyebrow { display: inline-block; font-family: var(--display); font-weight: 750; font-size: .95rem; color: var(--ink); background: var(--pop-sun); border: var(--outline); border-radius: 999px; padding: 3px 14px; transform: rotate(-3deg); margin-bottom: 22px; opacity: 0; animation: fadeUp .8s .1s forwards; }
.hero-title { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 24px; max-width: 16ch; opacity: 0; animation: fadeUp .9s .2s forwards; }
.hero-title em { font-style: normal; color: var(--pop-sun); }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgba(250,247,240,.78); max-width: 52ch; line-height: 1.5; margin-bottom: 36px; opacity: 0; animation: fadeUp 1s .35s forwards; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; opacity: 0; animation: fadeUp 1s .5s forwards; }
.hero-cta .btn-ghost { background: #fff; color: var(--ink); }
.hero-cta .btn-ghost:hover { background: var(--tile-sun); }
.hero-scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2; font-family: var(--mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(250,247,240,.5); writing-mode: horizontal-tb; }
.hero-scroll::after { content: ''; display: block; width: 1px; height: 28px; margin: 10px auto 0; background: linear-gradient(var(--paper), transparent); animation: scrollHint 2s infinite; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scrollHint { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 50.01% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (prefers-reduced-motion: reduce) { .hero-eyebrow, .hero-title, .hero-sub, .hero-cta { opacity: 1; animation: none; } .hero-scroll::after { animation: none; } }

/* ---- Sections ---- */
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--night { background: var(--night); color: #fff; width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.section--night .section-sub, .section--night .muted { color: rgba(250,247,240,.65); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }
.section-title { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0; max-width: 18ch; }
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 46ch; line-height: 1.5; }
.section-num { font-family: var(--display); font-size: .95rem; font-weight: 750; color: var(--ink); margin-bottom: 16px; display: inline-block; background: var(--tile-pink); border: var(--outline); border-radius: 999px; padding: 2px 13px; transform: rotate(-2deg); }
.section--night .section-num { background: var(--pop-sun); }

/* ---- Featured / catalog rows ---- */
.featured-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 36px; }
.featured-row .card-img { box-shadow: 0 30px 60px -28px rgba(22,20,15,.4); }

/* ---- Teaser blocks (two-column editorial) ---- */
.teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.teaser + .teaser { margin-top: 88px; }
.teaser--reverse .teaser-text { order: 2; }
@media (max-width: 820px) { .teaser { grid-template-columns: 1fr; gap: 36px; } .teaser--reverse .teaser-text { order: 0; } }
.teaser-visual { aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); border: var(--outline); box-shadow: var(--pop-lg); transform: rotate(1.5deg); }
.teaser--reverse .teaser-visual { transform: rotate(-1.5deg); }
.teaser-visual img { width: 100%; height: 100%; object-fit: cover; }
.teaser-visual--canvas { background: var(--night); }
.teaser-text h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 18px; }
.teaser-text p { color: var(--ink-2); line-height: 1.7; margin: 0 0 16px; max-width: 50ch; }
.teaser-text .btn-text { margin-top: 14px; font-family: var(--display); font-size: 1.05rem; font-weight: 750; color: var(--accent-dark); }
.teaser-text .btn-text::after { content: ' →'; transition: margin .2s; display: inline-block; }
.teaser-text .btn-text:hover::after { margin-left: 6px; }

/* ---- Stats ---- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 40px; margin: 48px 0; }
.stat { background: var(--night-2); border: 2px solid var(--night-line); border-radius: var(--radius); padding: 22px; }
.section--paper .stat { border-color: var(--line); }
.stat-num { font-family: var(--display); font-size: clamp(2.4rem, 4.5vw, 3.4rem); font-weight: 800; line-height: 1; color: var(--pop-sun); }
.stat-label { font-family: var(--display); font-size: 1rem; font-weight: 600; color: var(--muted); margin-top: 10px; }
.section--night .stat-label { color: #cfc4ec; }

/* ---- Article body ---- */
.article-body { max-width: 720px; margin: 48px auto 96px; line-height: 1.8; color: var(--ink-2); }
.article-body h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 0 0 .3em; color: var(--ink); }
.article-body .article-meta { font-family: var(--display); font-size: .95rem; font-weight: 600; color: var(--muted); margin-bottom: 40px; }
.article-body p { margin: 1.4em 0; }
.article-body h2 { font-size: 1.5rem; margin: 2em 0 .5em; color: var(--ink); }
.article-body h3 { font-family: var(--sans); font-size: 1.15rem; font-weight: 600; margin: 1.8em 0 .4em; color: var(--ink); }
.article-body blockquote { border: var(--outline); border-radius: var(--radius); background: var(--tile-lilac); margin: 1.8em 0; padding: 18px 24px; font-family: var(--display); font-weight: 650; font-size: 1.3rem; color: var(--ink); box-shadow: var(--pop); }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body li { margin: .6em 0; }
.article-body figure { margin: 2em 0; }
.article-body figcaption { font-family: var(--mono); font-size: .76rem; color: var(--muted); text-align: center; margin-top: 10px; letter-spacing: .04em; }

/* ---- Journal index ---- */
.journal-list { display: grid; gap: 0; }
.journal-list { gap: 18px; }
.journal-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 32px; align-items: baseline; padding: 26px 28px; border: var(--outline); border-radius: var(--radius); background: #fff; box-shadow: var(--pop); color: var(--ink); transition: transform .3s var(--bounce), box-shadow .2s; }
.journal-item:nth-child(3n+1) { background: var(--tile-sun); }
.journal-item:nth-child(3n+2) { background: var(--tile-sky); }
.journal-item:nth-child(3n) { background: var(--tile-pink); }
.journal-item:hover { transform: rotate(-1deg) translateY(-3px); box-shadow: var(--pop-lg); }
.journal-item:hover { text-decoration: none; }
.journal-item:hover .journal-title { color: var(--accent-dark); }
.journal-date { font-family: var(--display); font-size: .95rem; font-weight: 700; color: var(--ink-2); }
.journal-title { font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 750; letter-spacing: -.02em; }
.journal-excerpt { color: var(--ink-2); font-size: .94rem; margin-top: 8px; max-width: 64ch; }
.journal-arrow { font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--ink); }
@media (max-width: 720px) { .journal-item { grid-template-columns: 1fr; gap: 10px; } .journal-arrow { display: none; } }

/* ---- FAQ accordion ---- */
.faq { max-width: 820px; margin: 40px auto 80px; }
.faq-item { border: var(--outline); border-radius: var(--radius); background: #fff; margin-bottom: 14px; padding: 0 24px; box-shadow: 0 3px 0 var(--ink); }
.faq-item[open] { background: var(--tile-sun); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 0; font-family: var(--display); font-size: 1.25rem; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; border: var(--outline); font-family: var(--display); font-size: 1.4rem; font-weight: 800; transition: transform .35s var(--bounce); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--accent-dark); }
.faq-body { padding: 0 0 22px; color: var(--ink-2); line-height: 1.7; max-width: 70ch; }

/* ---- Material spec table ---- */
.spec-table { width: 100%; border-collapse: collapse; margin: 32px 0; }
.spec-table th, .spec-table td { text-align: left; padding: 16px 12px; border-bottom: 1px solid var(--line); }
.spec-table th { font-family: var(--display); font-size: 1rem; font-weight: 700; color: var(--ink); width: 240px; vertical-align: top; }
.spec-table td { color: var(--ink-2); }

/* ---- CTA band ---- */
.cta-band { text-align: center; padding: 96px 0; }
.cta-band h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 16px; }
.cta-band p { color: #cfc4ec; margin: 0 auto 32px; max-width: 48ch; }

/* ---- Product page aurora backdrop ---- */
.product-aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55; }
.product-wrap { position: relative; }
/* ==== Playful home: hero toy box, marquee, Fidget-Finder ==== */
.play-hero {
  position: relative; overflow: hidden; width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  background:
    radial-gradient(circle at 12% 18%, var(--tile-sun) 0 90px, transparent 91px),
    radial-gradient(circle at 92% 86%, var(--tile-sky) 0 120px, transparent 121px),
    radial-gradient(var(--line) 1.5px, transparent 1.6px) 0 0 / 22px 22px,
    var(--paper);
  border-bottom: var(--outline);
}
.play-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: center; min-height: min(78vh, 720px); padding-top: 48px; padding-bottom: 48px; }
.play-hero-copy .hero-eyebrow { margin-bottom: 22px; }
.play-title { font-size: clamp(3rem, 7.4vw, 6rem); font-weight: 800; line-height: .92; letter-spacing: -.045em; margin: 0 0 24px; }
.play-title-pop {
  display: inline-block; font-size: .8em; color: #fff; background: var(--accent); padding: 0 .16em .06em; margin: .1em 0;
  border: 3px solid var(--ink); border-radius: .22em; box-shadow: 0 .08em 0 var(--ink); transform: rotate(-3deg);
  animation: wiggle 3.2s ease-in-out 1.2s infinite;
}
.play-sub { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-2); max-width: 44ch; line-height: 1.55; margin: 0 0 30px; }
.play-hero .hero-eyebrow, .play-hero .hero-cta { opacity: 1; animation: none; }
@keyframes wiggle { 0%, 86%, 100% { transform: rotate(-3deg); } 90% { transform: rotate(3deg) scale(1.04); } 94% { transform: rotate(-5deg); } 97% { transform: rotate(1deg); } }

.toybox { position: relative; aspect-ratio: 1; width: 100%; max-width: 620px; justify-self: center; touch-action: pan-y; }
.toybox-blob {
  position: absolute; inset: 7%; background: var(--grape); border: 3px solid var(--ink); box-shadow: 0 12px 0 var(--ink);
  border-radius: 58% 42% 50% 50% / 45% 55% 45% 55%; animation: blob 12s ease-in-out infinite;
}
.toybox-blob::after {
  content: ''; position: absolute; inset: 14%; border-radius: inherit;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.35), transparent 60%);
}
@keyframes blob { 0%, 100% { border-radius: 58% 42% 50% 50% / 45% 55% 45% 55%; } 50% { border-radius: 44% 56% 42% 58% / 56% 44% 56% 44%; } }
.toybox-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s; cursor: grab; }
.toybox-canvas:active { cursor: grabbing; }
.toybox.is-3d .toybox-canvas { opacity: 1; }
.toybox.is-3d .toybox-collage { opacity: 0; }
.toybox-collage { position: absolute; inset: 0; transition: opacity .5s; }
.toy { position: absolute; width: 42%; height: auto; filter: drop-shadow(0 16px 10px rgba(28,19,48,.35)); animation: floaty 5s ease-in-out infinite; }
.toy--0 { left: 8%;  top: 14%; --r: -12deg; }
.toy--1 { right: 8%; top: 10%; --r: 10deg; animation-delay: -1.2s; }
.toy--2 { left: 12%; bottom: 10%; --r: 8deg; animation-delay: -2.4s; }
.toy--3 { right: 10%; bottom: 14%; --r: -8deg; animation-delay: -3.6s; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-14px) rotate(calc(var(--r) * -1)); } }
.toybox-hint {
  position: absolute; right: 2%; bottom: 6%; z-index: 2; pointer-events: none;
  font-family: var(--display); font-weight: 800; font-size: 1.05rem; background: var(--pop-sun);
  border: var(--outline); border-radius: 999px; padding: 5px 15px; box-shadow: 0 3px 0 var(--ink); transform: rotate(-8deg);
  opacity: 0; transition: opacity .4s;
}
.toybox.is-3d .toybox-hint { opacity: 1; }
@media (max-width: 860px) {
  .play-hero-inner { grid-template-columns: 1fr; min-height: 0; padding-top: 32px; gap: 8px; }
  .toybox { max-width: 440px; }
}

.marquee-wrap { width: 100vw; margin-left: calc(50% - 50vw); overflow: hidden; padding: 22px 0 10px; }
.marquee { overflow: hidden; background: var(--ink); color: #fff; margin: 0 -24px; transform: rotate(-1.2deg); }
.marquee-track { display: flex; width: max-content; gap: 22px; padding: 13px 0; animation: marquee 32s linear infinite; font-family: var(--display); font-weight: 750; font-size: clamp(1.1rem, 2vw, 1.5rem); white-space: nowrap; }
.marquee-track .dot { color: var(--pop-sun); }
.marquee-track span:nth-child(8n+1) { color: var(--tile-pink); }
@keyframes marquee { to { transform: translateX(-50%); } }

.finder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 860px) { .finder { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.finder-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  aspect-ratio: 4 / 5; padding: 18px 12px; border: var(--outline); border-radius: var(--radius); box-shadow: var(--pop);
  color: var(--ink); overflow: hidden; transition: transform .35s var(--bounce), box-shadow .2s;
}
.finder-tile:hover { text-decoration: none; transform: translateY(-5px) rotate(-2deg); box-shadow: var(--pop-lg); }
.finder-tile img { position: absolute; top: 7%; left: 50%; width: 76%; height: 54%; object-fit: contain; transform: translateX(-50%); filter: drop-shadow(0 12px 10px rgba(28,19,48,.28)); transition: transform .5s var(--bounce); }
.finder-tile--dreht   { background: var(--tile-mint); }
.finder-tile--wackelt { background: var(--tile-lime); }
.finder-tile--klappt  { background: var(--tile-sun); }
.finder-tile--rollt   { background: var(--tile-pink); }
.finder-tile--dreht:hover img   { transform: translateX(-50%) rotate(200deg); transition-duration: .9s; }
.finder-tile--wackelt:hover img { animation: jiggle .6s ease-in-out 2; }
.finder-tile--klappt:hover img  { transform: translateX(-50%) rotateY(180deg); }
.finder-tile--rollt:hover img   { transform: translateX(-30%) rotate(40deg); }
@keyframes jiggle { 0%, 100% { transform: translateX(-50%) rotate(0); } 25% { transform: translateX(-50%) rotate(-10deg) scale(1.05); } 75% { transform: translateX(-50%) rotate(10deg) scale(.97); } }
.finder-label { position: relative; font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -.03em; line-height: 1; }
.finder-count { position: relative; margin-top: 6px; font-family: var(--display); font-weight: 650; font-size: .9rem; background: #fff; border: var(--outline); border-radius: 999px; padding: 1px 10px; }

.featured-row { gap: 30px; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .toy, .toybox-blob, .play-title-pop { animation: none; }
}
