/* Home rework: hero text on the artwork without a colour block, level cards, product cards + detail dialog. */

/* Hero: no plate. A tight cream halo hugs the glyphs so copy stays readable on the illustration. */
.home-story .hero-copy h1,
.home-story .hero-copy .sub{background:none;padding:0;border-radius:0;box-shadow:none;color:#243026;text-shadow:0 0 2px #fbf8f1,0 0 4px #fbf8f1,0 0 6px #fbf8f1,0 0 9px #fbf8f1,0 0 12px #fbf8f1,0 0 18px rgba(251,248,241,.92),0 0 28px rgba(251,248,241,.8)}
.home-story .hero-copy .sub{font-weight:500;line-height:1.55;max-width:34em;font-size:clamp(16px,1.2vw,18px);word-break:keep-all}
.home-story .hero-copy .btn{box-shadow:0 2px 10px rgba(36,48,38,.22)}
@media(max-width:640px){
 .home-story .hero-copy{padding-top:clamp(12px,2svh,24px)}
}

/* Levels */
.welcome-trouble .lvl-h{font-size:clamp(17px,1.9vw,21px);line-height:1.35;margin:14px 0 10px;color:#405538}
.welcome-trouble .lvl-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;counter-reset:lvl}
.welcome-trouble .lvl-card{position:relative;display:flex;flex-direction:column;gap:4px;min-width:0;padding:12px 16px;border:1px solid #8fb59a66;border-radius:16px;background:#fffdf7;line-height:1.5}
.welcome-trouble .lvl-tag{align-self:flex-start;padding:1px 10px;border-radius:999px;background:#405538;color:#fbf8f1;font-size:12px;font-weight:700;letter-spacing:.02em;line-height:1.6}
.welcome-trouble .lvl-card b{display:block;color:#2f3a30;font-size:1.02em}
.welcome-trouble .lvl-d{font-size:.93em;color:#353d36}
@media(max-width:700px){.welcome-trouble .lvl-list{grid-template-columns:minmax(0,1fr);gap:9px}.welcome-trouble .lvl-card{padding:10px 14px}}

/* Products */
.products-content .prod-lead{margin:0 0 14px;color:#353d36}
.products-content .prod-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.products-content .prod-grid li{margin:0;padding:0;display:flex}
.prod-card{appearance:none;flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-height:44px;padding:16px 18px;border:1px solid #8fb59a80;border-radius:18px;background:#fffdf7;color:#2f3a30;font:inherit;text-align:start;cursor:pointer;transition:border-color .2s,box-shadow .2s,transform .2s}
.prod-card:hover,.prod-card:focus-visible{border-color:#405538;box-shadow:0 6px 18px rgba(37,52,37,.14);transform:translateY(-2px)}
.prod-card:focus-visible{outline:3px solid #405538;outline-offset:2px}
.prod-ico{flex:none;width:44px;height:44px;padding:9px;box-sizing:border-box;border-radius:14px;background:#edf3e7;color:#405538}
.prod-n{font-size:1.08em;font-weight:700;line-height:1.3}
.prod-t{font-size:.93em;line-height:1.5;color:#353d36}
.prod-more{margin-top:auto;padding-top:4px;font-size:.9em;font-weight:700;color:#405538}
.prod-more::after{content:" \203A"}
html[dir=rtl] .prod-more::after{content:" \2039"}
@media(max-width:700px){
 .products-content .prod-grid{grid-template-columns:minmax(0,1fr);gap:10px}
 .prod-card{display:grid;grid-template-columns:44px minmax(0,1fr);column-gap:12px;row-gap:2px;align-items:center;padding:12px 14px}
 .prod-ico{grid-row:1 / span 3;align-self:start}
 .prod-more{padding-top:0;margin-top:0}
}

/* Dialog */
body.prod-open .story-scroll{overflow:hidden}
.prod-dialog{width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 48px);padding:0;border:0;border-radius:22px;background:#fbf8f1;color:#2f3a30;box-shadow:0 18px 60px rgba(25,35,25,.35);overflow:auto;overscroll-behavior:contain}
.prod-dialog::backdrop{background:rgba(30,40,30,.45)}
.prod-d-inner{position:relative;padding:26px 26px 24px}
.prod-d-inner h3{margin:0 44px 10px 0;font-size:1.3em;line-height:1.3}
html[dir=rtl] .prod-d-inner h3{margin:0 0 10px 44px}
.prod-d-lead{margin:0 0 12px;line-height:1.6}
.prod-d-list{margin:0 0 16px;padding:0;list-style:none}
.prod-d-list li{position:relative;margin:8px 0;padding-inline-start:26px;line-height:1.55;font-size:.96em}
.prod-d-list li::before{content:"\2713";position:absolute;inset-inline-start:2px;top:0;color:#6e9a7c;font-weight:700}
.prod-hint{margin:0;padding:10px 14px;border-radius:12px;background:#edf3e7;line-height:1.5;font-size:.95em}
.prod-x{position:absolute;inset-block-start:12px;inset-inline-end:12px;width:44px;height:44px;border:0;border-radius:50%;background:#edf3e7;color:#405538;font-size:26px;line-height:1;cursor:pointer}
.prod-x:hover,.prod-x:focus-visible{background:#dfe9d6}
.prod-x:focus-visible{outline:3px solid #405538;outline-offset:1px}
.prod-dialog .btn{display:inline-block}
@media(prefers-reduced-motion:reduce){.prod-card{transition:none}.prod-card:hover,.prod-card:focus-visible{transform:none}}

/* Home 2026-10-24: levels and products share one screen (#screen-1). */
.welcome-trouble.wt-merged{max-width:1180px}
.wt-merged .wt-split{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:8px 28px;align-items:start}
.wt-merged .wt-levels,.wt-merged .products-content{min-width:0}
.wt-merged .lvl-h,.wt-merged .products-content>h2{font-size:clamp(17px,1.9vw,21px);line-height:1.35;margin:10px 0 10px;color:#405538}
.wt-merged .lvl-card{padding:10px 14px}
.wt-merged .wt-close{margin:10px 0 0;text-align:start}
.wt-merged .products-content .prod-lead{margin:0 0 10px;font-size:.93em}
.wt-merged .products-content .prod-grid{grid-template-columns:minmax(0,1fr);gap:10px}
.wt-merged .prod-card{display:grid;grid-template-columns:44px minmax(0,1fr);column-gap:12px;row-gap:2px;align-items:center;padding:10px 14px;border-radius:16px}
.wt-merged .prod-ico{grid-row:1 / span 3;align-self:start}
.wt-merged .prod-more{padding-top:0;margin-top:0}
@media(max-width:860px){
 .wt-merged .wt-split{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:640px){
 .story-screen .story-content.wt-merged{padding:12px 14px 14px}
 .home-story .wt-merged .wt-head h2{font-size:19px;line-height:1.25}
 .wt-merged .wt-bunny{width:30px;height:30px}
 .wt-merged .wt-lead{font-size:.9em;line-height:1.4;margin:2px 0 6px}
 .wt-merged .lvl-h,.wt-merged .products-content>h2{font-size:17px;margin:8px 0 6px}
 .wt-merged .lvl-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 .wt-merged .lvl-card{padding:7px 9px;gap:2px;border-radius:12px}
 .wt-merged .lvl-tag{font-size:11px;padding:0 8px}
 .wt-merged .lvl-card b{font-size:.92em;line-height:1.25}
 .wt-merged .lvl-d{font-size:11.5px;line-height:1.3}
 .wt-merged .wt-close{margin:6px 0 0;font-size:.88em}
 .wt-merged .products-content .prod-lead{margin:0 0 6px;font-size:.88em}
 .wt-merged .products-content .prod-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .wt-merged .prod-card{grid-template-columns:minmax(0,1fr);justify-items:center;text-align:center;padding:8px 4px;row-gap:3px}
 .wt-merged .prod-ico{grid-row:auto;align-self:center;width:34px;height:34px;padding:7px}
 .wt-merged .prod-n{font-size:.88em;line-height:1.2}
 .wt-merged .prod-t{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .wt-merged .prod-more{font-size:.8em}
}

/* Hero entrance 2026-10-24: headline, sub-line and button rise out of a soft blur in sequence. CSS-only (no JS dependency, no hidden state if scripts fail); backwards fill leaves hover styles untouched afterwards. */
@keyframes hero-rise{from{opacity:0;transform:translateY(22px);filter:blur(8px)}}
@keyframes hero-halo{from{opacity:0}}
.home-story .hero-copy{animation:hero-halo 1.1s cubic-bezier(.22,1,.36,1) backwards}
.home-story .hero-copy>h1{animation:hero-rise 1s cubic-bezier(.22,1,.36,1) .15s backwards}
.home-story .hero-copy>.sub{animation:hero-rise 1s cubic-bezier(.22,1,.36,1) .4s backwards}
.home-story .hero-copy>.btn{animation:hero-rise 1s cubic-bezier(.22,1,.36,1) .65s backwards}
@media(prefers-reduced-motion:reduce){.home-story .hero-copy,.home-story .hero-copy>h1,.home-story .hero-copy>.sub,.home-story .hero-copy>.btn{animation:none}}

.intro-video{position:relative;margin:1rem 0 1.25rem;aspect-ratio:16/9;background:#fbf8f1;border-radius:12px;overflow:hidden}.intro-video video{display:block;width:100%;height:100%;object-fit:contain}.intro-video-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border:0;border-radius:999px;padding:.8rem 1.25rem;background:#264032;color:white;font:600 1rem/1.3 system-ui;min-width:15rem;cursor:pointer;box-shadow:0 4px 20px #0003}.intro-video-play[hidden]{display:none}.prod-dialog:has(.intro-video){width:min(960px,calc(100vw - 32px));max-height:90vh;overflow:auto}
