/* Encore online brochure (/brochure/). First-party only, so the site CSP stays style-src 'self'.
   Poppins is self-hosted from /assets/fonts/ (no third-party font host). */

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/poppins-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/poppins-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/poppins-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/poppins-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root{
  --ring:#5AA9E6;
  --bg:#EEF3F8; --bg-glow:rgba(140,207,245,.45); --ink:#0B1A2E; --ink-soft:#4A5D74;
  --btn:#FFFFFF; --btn-ink:#0B1A2E; --btn-line:rgba(11,26,46,.14);
  --accent:#0B1A2E; --accent-ink:#F2F7FC; --shadow:rgba(20,40,40,.28);
  box-sizing:border-box;
  padding-top:env(safe-area-inset-top,0px); padding-bottom:env(safe-area-inset-bottom,0px);
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#050D19; --bg-glow:rgba(40,140,230,.22); --ink:#F2F7FC; --ink-soft:#8FA6BF;
    --btn:#0F1E33; --btn-ink:#E8F2FB; --btn-line:rgba(140,207,245,.18);
    --accent:#8CCFF5; --accent-ink:#06121F; --ring:#8CCFF5; --shadow:rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"]{
  --bg:#050D19; --bg-glow:rgba(40,140,230,.22); --ink:#F2F7FC; --ink-soft:#8FA6BF;
  --btn:#0F1E33; --btn-ink:#E8F2FB; --btn-line:rgba(140,207,245,.18);
  --accent:#8CCFF5; --accent-ink:#06121F; --ring:#8CCFF5; --shadow:rgba(0,0,0,.6);
}
*,*::before,*::after{box-sizing:inherit}
html{height:100%;scroll-padding-top:env(safe-area-inset-top,0px)}
body{margin:0;height:100%;background:var(--bg);color:var(--ink);
  font-family:"Poppins",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-weight:400;
  background-image:radial-gradient(60% 55% at 50% 48%,var(--bg-glow),transparent 70%);
  overflow:hidden}
.app{display:flex;flex-direction:column;height:100%}
header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px clamp(16px,3vw,32px)}
.title{display:flex;flex-direction:column;line-height:1.25}
.title strong,.title h1{font-weight:500;font-size:1rem;margin:0}
.title span{font-size:.8rem;color:var(--ink-soft)}
.actions{display:flex;gap:8px;align-items:center}
.btn{font:inherit;font-size:.85rem;font-weight:500;border:1px solid var(--btn-line);background:var(--btn);color:var(--btn-ink);
  border-radius:999px;padding:9px 16px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;white-space:nowrap}
.btn:hover{border-color:var(--accent)}
.btn.primary{background:var(--accent);color:var(--accent-ink);border-color:transparent}
.btn.icon{width:40px;height:40px;padding:0;justify-content:center}
.btn:focus-visible,.thumb:focus-visible,.stage:focus-visible{outline:2px solid var(--ring,var(--accent));outline-offset:3px}
.btn[disabled]{opacity:.35;cursor:default}
.btn svg{width:18px;height:18px}

.stage{flex:1;display:flex;align-items:center;justify-content:center;min-height:0;position:relative;touch-action:pan-y}
.book{position:relative;perspective:2800px;transition:transform .7s cubic-bezier(.3,.1,.2,1)}
.shadowbase{position:absolute;top:0;height:100%;box-shadow:0 30px 60px -20px var(--shadow),0 10px 20px -10px var(--shadow);border-radius:2px;
  transition:left .7s cubic-bezier(.3,.1,.2,1),width .7s cubic-bezier(.3,.1,.2,1)}
.leaf{position:absolute;top:0;height:100%;transform-origin:left center;transform-style:preserve-3d;
  transition:transform .9s cubic-bezier(.35,.05,.2,1);cursor:pointer}
.leaf.flipped{transform:rotateY(-180deg)}
.face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;background-size:100% 100%;background-color:#EEF3F8;overflow:hidden}
.face.back{transform:rotateY(180deg)}
.face::after{content:"";position:absolute;inset:0;pointer-events:none}
.spread .face.front::after{background:linear-gradient(90deg,rgba(0,0,0,.28),rgba(0,0,0,.06) 4%,transparent 9%)}
.spread .face.back::after{background:linear-gradient(270deg,rgba(0,0,0,.28),rgba(0,0,0,.06) 4%,transparent 9%)}
.single .face.back{background:linear-gradient(135deg,#12243F,#07111F)}
.single .leaf.flipped{opacity:0;transition:transform .8s cubic-bezier(.35,.05,.2,1),opacity .25s ease .5s}
.single .leaf{transition:transform .8s cubic-bezier(.35,.05,.2,1),opacity .2s ease}
/* hint of a turnable corner */
.leaf:not(.flipped) .face.front::before{content:"";position:absolute;right:0;bottom:0;width:0;height:0;
  background:linear-gradient(315deg,transparent 50%,rgba(255,255,255,.55) 50%,rgba(210,230,245,.9));transition:width .25s,height .25s;z-index:2;
  box-shadow:-3px -3px 8px rgba(0,0,0,.25)}
.leaf.top:not(.flipped):hover .face.front::before{width:38px;height:38px}
.vid{container-type:size;position:absolute;z-index:3;background:#000;border-radius:2px;overflow:hidden;cursor:default}
.vid video{width:100%;height:100%;display:block;object-fit:cover}
.vid .play{position:absolute;inset:0;margin:auto;width:76px;height:76px;border-radius:50%;border:0;cursor:pointer;
  background:rgba(11,26,46,.9);color:#F2F7FC;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 24px rgba(0,0,0,.35);transition:transform .15s}
.vid .play:hover{transform:scale(1.06)}
.vid .play svg{width:30px;height:30px;margin-left:4px}
.vid.playing .play{display:none}
.vid .tag{position:absolute;left:10px;bottom:10px;background:rgba(16,20,24,.72);color:#F6FAF9;font-size:12px;padding:4px 10px;border-radius:999px;pointer-events:none}
.vid.playing .tag{display:none}
@container (max-width:420px){.vid .tag{display:none}.vid .play{width:44px;height:44px}.vid .play svg{width:18px;height:18px;margin-left:3px}}
.vid .tag{white-space:nowrap}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.controls{display:flex;align-items:center;justify-content:center;gap:14px;padding:10px 16px 6px}
.indicator{min-width:150px;text-align:center;font-size:.85rem;color:var(--ink-soft)}
.thumbs{display:flex;gap:8px;justify-content:safe center;padding:6px 16px 18px;overflow-x:auto}
.thumb{flex:0 0 auto;width:64px;aspect-ratio:1.7778;border:0;padding:0;border-radius:3px;background-size:cover;cursor:pointer;opacity:.5;
  outline:2px solid transparent;transition:opacity .2s,outline-color .2s}
.thumb:hover{opacity:.85}
.thumb.on{opacity:1;outline:2px solid var(--ring);outline-offset:2px}
@media (max-width:760px){
  header{padding:12px 16px}
  .title span{display:none}
  .btn.primary .long{display:none}
  .thumb{width:48px}
}
@media (prefers-reduced-motion: reduce){
  .book,.leaf,.shadowbase,.single .leaf.flipped{transition:none !important}
}

/* Home link in the header title. */
.title a{color:inherit;text-decoration:none}

/* Full screen on a phone or tablet (html.immersive, set by brochure.js): the brochure alone. */
.imm-exit,.rotate{display:none}
html.immersive,html.immersive body{background:#050D19;background-image:none}
html.immersive .app{height:100vh;height:100dvh;padding:0 env(safe-area-inset-right,0px) 0 env(safe-area-inset-left,0px)}
html.immersive header,html.immersive .controls,html.immersive .thumbs{display:none}
html.immersive .imm-exit{display:inline-flex;position:fixed;z-index:20;
  top:calc(env(safe-area-inset-top,0px) + 10px);right:calc(env(safe-area-inset-right,0px) + 10px);
  background:rgba(5,13,25,.55);color:#F2F7FC;border-color:rgba(242,247,252,.35);backdrop-filter:blur(4px)}
/* Portrait: ask the reader to turn the phone. Disappears on rotation, or on "Continue anyway". */
@media (orientation: portrait){
  html.immersive:not(.rotate-ok) .rotate{display:flex;position:fixed;inset:0;z-index:10;align-items:center;justify-content:center;
    padding:24px;background:rgba(5,13,25,.84);backdrop-filter:blur(3px)}
}
.rotate__card{max-width:300px;text-align:center;color:#F2F7FC}
.rotate__icon{width:64px;height:64px;color:#8CCFF5;margin-bottom:12px;animation:rotate-hint 2.4s ease-in-out infinite}
.rotate__title{margin:0 0 6px;font-weight:500;font-size:1.1rem}
.rotate__text{margin:0 0 18px;font-size:.9rem;line-height:1.5;color:#C9D8E8}
@keyframes rotate-hint{0%,20%{transform:rotate(0)}45%,75%{transform:rotate(-90deg)}100%{transform:rotate(0)}}
@media (prefers-reduced-motion: reduce){ .rotate .rotate__icon{animation:none} }

/* Cookie consent banner (Google Analytics, opt-in). Encore palette: Midnight, Pulse. */
.cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2000;
  max-width: 720px;
  margin: 0 auto;
  background: #071428;
  color: #F4F7FB;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 8px 30px -10px rgba(7, 20, 40, .6);
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-consent__text { flex: 1 1 280px; margin: 0; font-size: 14px; line-height: 1.5; }
.cookie-consent__accept,
.cookie-consent__decline {
  border-radius: 8px;
  padding: 9px 16px;
  cursor: pointer;
  font: inherit;
}
.cookie-consent__accept { background: #86CFF3; color: #071428; border: 0; font-weight: 600; }
.cookie-consent__decline { background: transparent; color: #F4F7FB; border: 1px solid rgba(244, 247, 251, .5); }
