/* LinguaPro – base styles. Layout lives inline in the generated HTML (build/*.py); this file holds
   fonts, the paper background, interactions, the consent note and small responsive rules. */

/* ---------- fonts (self-hosted, latin + latin-ext for Polish) ---------- */
@font-face{font-family:'Inter';src:url('/fonts/inter-latin.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap;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:'Inter';src:url('/fonts/inter-latin-ext.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap;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:'Bricolage Grotesque';src:url('/fonts/bricolage-grotesque-latin.woff2') format('woff2');font-weight:200 800;font-style:normal;font-display:swap;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:'Bricolage Grotesque';src:url('/fonts/bricolage-grotesque-latin-ext.woff2') format('woff2');font-weight:200 800;font-style:normal;font-display:swap;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:'Caveat';src:url('/fonts/caveat-latin.woff2') format('woff2');font-weight:400 700;font-style:normal;font-display:swap;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:'Caveat';src:url('/fonts/caveat-latin-ext.woff2') format('woff2');font-weight:400 700;font-style:normal;font-display:swap;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}

/* ---------- base ---------- */
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0}
.paper{min-height:100vh;display:flex;flex-direction:column;box-sizing:border-box;overflow-x:clip;
  font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif;font-size:17px;line-height:1.65;color:#0D2444;
  background-color:#FBF8F1;
  background-image:linear-gradient(90deg,transparent clamp(18px,4%,58px),#E9BEBB 0,#E9BEBB calc(clamp(18px,4%,58px) + 2px),transparent 0),
    repeating-linear-gradient(180deg,transparent 0,transparent 35px,#E1E6E9 35px,#E1E6E9 36px)}
a{color:#1B3D6D}
a:hover{color:#8F5300}
img{max-width:100%}
section[id]{scroll-margin-top:16px}
:focus-visible{outline:3px solid #F5A623;outline-offset:3px;border-radius:4px}
.skip{position:absolute;left:-999px;top:10px;z-index:100;padding:10px 16px;background:#0D2444;color:#fff;font-weight:700;border-radius:8px}
.skip:focus{left:10px;color:#fff}

/* ---------- interactions ---------- */
.btn{box-shadow:4px 5px 0 var(--sh,#0D2444);transition:transform .12s ease,box-shadow .12s ease}
.btn:hover{transform:translate(-1px,-2px);box-shadow:6px 8px 0 var(--sh,#0D2444)}
.btn:active{transform:translate(3px,4px);box-shadow:1px 1px 0 var(--sh,#0D2444)}
.btn[disabled]{opacity:.6;cursor:progress}
a.btn:hover{color:inherit}
.lang button{background:#fff;color:#1B3D6D}
.lang button[aria-pressed="true"]{background:#1B3D6D;color:#fff}
input:focus-visible,textarea:focus-visible{outline:3px solid #F5A623;outline-offset:1px}
#form-status[data-state="ok"]{color:#1B6B3A}
#form-status[data-state="err"]{color:#B3261E}

/* language blocks on /privacy, /terms, /support, /cookies (data-lang is set in <head>) */
html:not([data-lang="en"]) [data-l="en"]{display:none!important}
html[data-lang="en"] [data-l="pl"]{display:none!important}

/* QR is for people browsing on a computer – on a phone the store buttons are enough */
.qr{display:none}
@media (min-width:900px){.qr{display:flex}}

/* ---------- motion: sections fade in, underlines draw themselves (like the timelines in the app) ---------- */
html.js .reveal{opacity:0;transform:translateY(18px);transition:opacity .6s ease,transform .6s ease}
html.js .reveal.in{opacity:1;transform:none}
html.js .sq path{stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset .8s ease .15s}
html.js .sq.in path{stroke-dashoffset:0}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  html.js .reveal{opacity:1;transform:none;transition:none}
  html.js .sq path{stroke-dashoffset:0;transition:none}
  .btn{transition:none}
}

/* ---------- cookie consent (a strip of sticky-note paper at the bottom) ---------- */
#lp-cc{position:fixed;left:16px;right:16px;bottom:14px;z-index:90;max-width:1100px;margin:0 auto;box-sizing:border-box;padding:14px 20px;
  display:flex;flex-wrap:wrap;align-items:center;gap:10px 22px;background:#FEE9A8;color:#0D2444;border:2px solid #0D2444;
  border-radius:14px 18px 12px 16px / 16px 12px 18px 14px;box-shadow:5px 6px 0 rgba(13,36,68,.25);font-size:15px;line-height:1.45}
#lp-cc h2{flex:none;margin:0;font-family:Caveat,'Segoe Print',cursive;font-weight:700;font-size:30px;line-height:1}
#lp-cc p{flex:1 1 300px;margin:0}
#lp-cc .cc-row{display:flex;flex:0 1 auto;gap:10px}
#lp-cc button{flex:1 1 auto;min-height:46px;padding:0 18px;white-space:nowrap;font-family:'Bricolage Grotesque','Arial Black',sans-serif;font-weight:700;font-size:16px;
  color:#0D2444;background:#fff;border:2.5px solid #0D2444;border-radius:14px 18px 12px 16px / 16px 12px 18px 14px;cursor:pointer;--sh:#0D2444}
#lp-cc button[data-cc="yes"]{background:#F5A623}
@media (max-width:560px){#lp-cc{padding:12px 14px;gap:10px}#lp-cc h2{display:none}#lp-cc .cc-row{flex:1 1 100%}}
@media print{#lp-cc,.skip{display:none}}
