/* ALKALIO launch site. One stylesheet for every page: home, level pages, legal, Pro.
   Brand from the coming-soon page: phenolphthalein magenta on a pale lab white, deep ink at night.
   House rules kept here: no text-transform (Greek capitals are written, never made by CSS),
   every font at least 12px, controls keep their size in every state.
   21 Oct 2026 (George: «minimal and modern design that fits chemistry and repeat our brand to make it memorable»):
   the game's own type (Commissioner, the Chakra Petch wordmark, JetBrains Mono for formulas), served from alkalio.com,
   and the game's ink, so the site and the lab look like one thing. */
@import url("/assets/fonts.css");
:root{
  --org:#0e8a83; --bg:#f5f3f7; --panel:#ffffff; --panel2:#efebf3; --ink:#14213a; --dim:#5c6378; --line:#dcd8e3;
  --magenta:#d81b7a; --magenta-ink:#ffffff; --magenta-soft:#fbe3ef; --good:#1f7a4c; --warn:#a2481b;
  --sans:"Commissioner",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --brandf:"Chakra Petch","Commissioner",ui-sans-serif,system-ui,sans-serif;
  --mono:"JetBrains Mono",ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  --r:14px; --wrap:1180px;
  color-scheme:light;
}
@media (prefers-color-scheme: dark){:root{
  --org:#3fd6c9; --bg:#121017; --panel:#1b1722; --panel2:#231e2c; --ink:#efeaf5; --dim:#aba3b8; --line:#2f2939;
  --magenta:#ff4fa3; --magenta-ink:#1b0712; --magenta-soft:#3a1529; --good:#5fd39a; --warn:#ffab7a;
  color-scheme:dark}}

/* the language switch: every text exists twice, the other language is hidden */
[data-lang="en"] body [lang="el"],[data-lang="el"] body [lang="en"]{display:none !important}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:72px}
body{margin:0;background:var(--bg);color:var(--ink);font:17px/1.55 var(--sans);overflow-x:hidden}
a{color:inherit}
:focus-visible{outline:2px solid var(--magenta);outline-offset:3px}
img,svg{max-width:100%}
h1,h2,h3{line-height:1.15;margin:0 0 .5em}
h2{font-size:clamp(26px,4.4vw,38px);font-weight:800;letter-spacing:-.01em}
h3{font-size:19px;font-weight:700}
p{margin:0 0 .9em}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 16px}
.dim{color:var(--dim)}
.small{font-size:14px}
.tiny{font-size:13px}
.mono{font-family:var(--mono)}

/* top bar */
.top{position:sticky;top:0;z-index:20;background:color-mix(in srgb,var(--bg) 88%,transparent);
  backdrop-filter:saturate(1.4) blur(10px);-webkit-backdrop-filter:saturate(1.4) blur(10px);border-bottom:1px solid var(--line)}
.top .wrap{display:flex;align-items:center;gap:12px;height:60px;position:relative}
.brand{display:inline-flex;align-items:center;gap:8px;text-decoration:none;font:700 19px/1 var(--brandf);letter-spacing:.1em;flex:none}
.brand svg{width:22px;height:22px;flex:none}
.nav{display:flex;gap:4px;margin-left:12px;flex:1;min-width:0}
.nav a{text-decoration:none;font-size:15px;padding:8px 9px;border-radius:8px;color:var(--dim);white-space:nowrap}
/* 21 Oct: the six numbered links need 745px in Greek, so the page column is 1180px (it was 1080) and they fold below 1200px */
.nav a:hover{color:var(--ink);background:var(--panel2)}
.right{display:flex;align-items:center;gap:8px;margin-left:auto;flex:none}
/* the section links fold into one Menu button below 960px (site.js builds it from .nav); measured: the
   six home links need 538px in Greek, so at 821-920px they ran under the language switch */
.menu{display:none;flex:none}
.menu>summary{list-style:none;box-sizing:border-box;width:40px;height:38px;display:grid;place-items:center;border:1px solid var(--line);
  border-radius:10px;background:var(--panel);color:var(--ink);cursor:pointer;-webkit-tap-highlight-color:transparent}
.menu>summary::-webkit-details-marker{display:none}
.menu>summary svg{width:20px;height:20px;grid-area:1/1}
.menu>summary .x,.menu[open]>summary .bars{visibility:hidden}
.menu[open]>summary .x{visibility:visible}
.menu[open]>summary{border-color:var(--magenta)}
.menu-panel{position:absolute;top:calc(100% + 1px);right:16px;width:min(280px,calc(100% - 32px));background:var(--panel);
  border:1px solid var(--line);border-radius:12px;box-shadow:0 18px 40px -20px rgba(0,0,0,.45);padding:6px}
.menu-panel a{display:flex;align-items:center;min-height:44px;padding:0 12px;border-radius:8px;text-decoration:none;font-size:16px;color:var(--ink)}
.menu-panel a:hover{background:var(--panel2)}
@media (max-width:1199px){.nav{display:none}.menu{display:block}}

/* language switch: two fixed cells with the flag and the code, only the colours change (flags: George, 3 Nov) */
.lang{display:inline-grid;grid-template-columns:62px 62px;border:1px solid var(--line);border-radius:999px;padding:2px;background:var(--panel)}
.lang button{all:unset;box-sizing:border-box;height:30px;display:flex;align-items:center;justify-content:center;gap:6px;border-radius:999px;
  font:600 13px var(--sans);letter-spacing:.04em;color:var(--dim);cursor:pointer}
.lang .flag{width:18px;height:12px;border-radius:2px;flex:none;box-shadow:0 0 0 1px rgba(0,0,0,.18)}
.lang button[aria-pressed="true"]{background:var(--ink);color:var(--bg)}
.lang button:focus-visible{outline:2px solid var(--magenta);outline-offset:1px}

/* buttons: same box in every state (no transform, no border change, no weight change) */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:46px;padding:0 20px;border-radius:999px;
  border:2px solid transparent;background:var(--magenta);color:var(--magenta-ink);font:700 16px var(--sans);text-decoration:none;
  cursor:pointer;white-space:nowrap;-webkit-tap-highlight-color:transparent}
.btn:hover{filter:brightness(1.06)}
.btn:active{filter:brightness(.92)}
.btn.ghost{background:transparent;color:var(--ink);border-color:var(--line)}
.btn.ghost:hover{border-color:var(--magenta);color:var(--magenta);filter:none}
.btn.sm{height:38px;padding:0 14px;font-size:14px}
.top .btn.sm{width:84px;padding:0}   /* the same width in both languages, so the language switch beside it never moves */
.btn[disabled],.btn[aria-disabled="true"]{opacity:.45;cursor:not-allowed;filter:none}
.btn svg{width:18px;height:18px;flex:none}

/* hero */
.hero{padding:56px 0 40px}
.hero .wrap{display:grid;grid-template-columns:1.25fr .75fr;gap:32px;align-items:center}
.hero h1{font-size:clamp(36px,7vw,68px);font-weight:800;letter-spacing:-.02em;margin-bottom:.35em}
.hero h1 em{font-style:normal;color:var(--magenta)}
.hero .lede{font-size:clamp(18px,2.3vw,21px);color:var(--dim);max-width:34em}
.cta{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.word{font-weight:800;letter-spacing:.14em;font-size:15px;color:var(--magenta);margin-bottom:14px;display:block}
.flaskbox{display:grid;place-items:center}
.flask{width:min(240px,60vw);height:auto;color:var(--ink)}
.liquid{fill:var(--magenta);animation:turn 6s ease-in-out infinite}
.drop{fill:var(--magenta);animation:fall 6s ease-in infinite}
@keyframes turn{0%,30%{fill-opacity:.06}45%,85%{fill-opacity:1}100%{fill-opacity:.06}}
@keyframes fall{0%{transform:translateY(-30px);opacity:0}10%{opacity:1}30%{transform:translateY(46px);opacity:1}32%,100%{transform:translateY(46px);opacity:0}}
@media (prefers-reduced-motion: reduce){.liquid{animation:none;fill-opacity:1}.drop{display:none}}
@media (max-width:720px){
  .hero{padding:28px 0 24px}
  .hero .wrap{grid-template-columns:1fr}
  .flaskbox{order:-1;justify-items:start}
  .flask{width:96px}
}

/* sections */
section.band{padding:56px 0;border-top:1px solid var(--line)}
section.band.alt{background:var(--panel2)}
.lead{font-size:19px;color:var(--dim);max-width:40em}
.grid{display:grid;gap:14px}
.g3{grid-template-columns:repeat(3,minmax(0,1fr))}
.g4{grid-template-columns:repeat(4,minmax(0,1fr))}
.g2{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:980px){.g4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:820px){.g3{grid-template-columns:1fr}}
@media (max-width:640px){.g4,.g2{grid-template-columns:1fr}}
.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--r);padding:20px}
.card p:last-child{margin-bottom:0}
.card .ico{width:34px;height:34px;color:var(--magenta);margin-bottom:10px}
.note{border-left:4px solid var(--magenta);background:var(--magenta-soft);padding:14px 16px;border-radius:0 10px 10px 0;margin:22px 0 0;max-width:46em}
.stats{display:flex;flex-wrap:wrap;gap:10px 28px;margin:20px 0 0}
.stats b{font-size:30px;display:block;line-height:1.1}
.stats span{font-size:14px;color:var(--dim)}
.list{margin:0;padding:0 0 0 1.1em}
.list li{margin:.3em 0}

/* prices: Monthly / Yearly. Both periods sit in the same grid cell and only the visibility changes,
   so no card, price or button moves or resizes when the period is switched */
.billing{display:inline-grid;grid-template-columns:128px 128px;border:1px solid var(--line);border-radius:999px;padding:3px;background:var(--panel);margin-top:6px}
.billing button{all:unset;box-sizing:border-box;height:38px;display:grid;place-items:center;border-radius:999px;font:600 15px var(--sans);color:var(--dim);cursor:pointer}
.billing button[aria-pressed="true"]{background:var(--ink);color:var(--bg)}
.billing button:focus-visible{outline:2px solid var(--magenta);outline-offset:1px}
.per{display:inline-grid}
.per>[data-per]{grid-area:1/1}
p.per{display:grid}
#prices[data-per="y"] [data-per="m"],#prices[data-per="m"] [data-per="y"]{visibility:hidden}
.price .amt,.price .alt{font-variant-numeric:tabular-nums}
/* prices */
.price{display:flex;flex-direction:column;gap:6px;position:relative}
.price h3{margin:0}
.price .amt{font-size:30px;font-weight:800;line-height:1.1;margin:6px 0 0}
.price .amt small{font-size:15px;font-weight:600;color:var(--dim)}
.price .alt{font-size:14px;color:var(--dim);min-height:22px}
.price ul{margin:8px 0 14px;padding:0 0 0 1.1em;font-size:15px;flex:1}
.price ul li{margin:.25em 0}
.price .btn{width:100%;padding:0 12px;white-space:normal;line-height:1.15;text-align:center}  /* fixed 46px height: a long label takes two lines inside it */
.price.hi{border:2px solid var(--magenta);box-shadow:0 10px 30px -18px var(--magenta)}
.tag{display:inline-block;font:700 12px var(--sans);letter-spacing:.03em;padding:4px 10px;border-radius:999px;background:var(--magenta);color:var(--magenta-ink);align-self:flex-start}
.tag.soft{background:var(--magenta-soft);color:var(--ink)}
.tag.free{background:#d7f2e3;color:#0d4a2b}
.tag.full{background:var(--ink);color:var(--bg)}
@media (prefers-color-scheme: dark){.tag.free{background:#173a28;color:#a9efc9}}

/* FAQ: details open in place, nothing scrolls inside */
.faq details{border-bottom:1px solid var(--line)}
.faq summary{list-style:none;cursor:pointer;padding:16px 36px 16px 0;font-weight:700;font-size:18px;position:relative}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";position:absolute;right:6px;top:50%;width:20px;height:20px;margin-top:-10px;line-height:20px;text-align:center;font-weight:400;font-size:22px;color:var(--magenta)}
.faq details[open] summary::after{content:"−"}
.faq details>div{padding:0 0 16px;color:var(--dim);max-width:46em}

/* footer */
footer.foot{border-top:1px solid var(--line);padding:32px 0 calc(32px + env(safe-area-inset-bottom));font-size:14px;color:var(--dim)}
footer.foot .wrap{display:flex;flex-wrap:wrap;gap:12px 24px;justify-content:space-between;align-items:flex-start}
footer.foot nav{display:flex;flex-wrap:wrap;gap:6px 18px}
footer.foot a{text-decoration:none}
footer.foot a:hover{color:var(--magenta)}
footer.foot .ibnote{flex-basis:100%;font-size:13px}

/* level pages */
.crumbs{font-size:14px;color:var(--dim);margin:22px 0 8px}
.crumbs a{text-decoration:none}
.crumbs a:hover{color:var(--magenta)}
.lvhead{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0 12px}
.lvtitle{font-size:clamp(30px,5.5vw,48px);font-weight:800;letter-spacing:-.015em;margin:0 0 12px}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.chip{display:inline-flex;align-items:center;gap:6px;font-size:14px;border:1px solid var(--line);border-radius:999px;padding:5px 12px;background:var(--panel)}
.chip b{font-family:var(--mono);font-size:13px}
.eq{font-family:var(--mono);font-size:15px;background:var(--panel2);border-radius:10px;padding:12px 14px;overflow-wrap:anywhere}
.lvbody{display:grid;grid-template-columns:1.4fr .6fr;gap:28px;align-items:start;padding-bottom:48px}
@media (max-width:820px){.lvbody{grid-template-columns:1fr}}
.side{display:grid;gap:12px}
/* the teaching half of a level page (dev/level_teach.mjs, 25 Nov 2026) */
.lvbody h2.th{font-size:20px;margin:30px 0 10px}
.lvbody p,.lvbody li,.lvbody dd{max-width:46em;line-height:1.6}
.list.cols{columns:2 16em;column-gap:28px}
.list.cols li{break-inside:avoid}
.list.steps li{margin:.45em 0}
.terms{display:grid;grid-template-columns:minmax(8em,max-content) 1fr;gap:8px 18px;margin:0}
.terms dt{font-weight:700}
.terms dd{margin:0}
@media (max-width:560px){.terms{grid-template-columns:1fr;gap:2px}.terms dd{margin-bottom:10px}}
.haz{border:1px solid var(--line);border-radius:12px;padding:14px 16px;margin:10px 0;background:var(--panel)}
.haz h3{font-size:17px;margin:0 0 6px}
.haz p{margin:.35em 0}
.qa{padding-left:1.3em;margin:0}
.qa>li{margin:0 0 18px}
.qa .q{font-weight:700;margin:0 0 6px}
.qa .opts{margin:0 0 6px;padding-left:1.6em}
.qa details{border-left:3px solid var(--magenta);padding:2px 0 2px 12px}
.qa summary{cursor:pointer;color:var(--magenta);font-weight:700;min-height:28px;display:list-item}
.qa details p{margin:.4em 0}
.levels-index h2{margin-top:36px}
.lvlist{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px}
.lvlist a{display:flex;gap:10px;align-items:flex-start;justify-content:space-between;text-decoration:none;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:12px 14px;height:100%}
.lvlist a:hover{border-color:var(--magenta)}
.lvlist .id{font-family:var(--mono);font-size:13px;color:var(--dim);display:block}

/* legal */
.draft{background:#fff3cd;color:#4a3500;border:2px dashed #c79a00;border-radius:12px;padding:12px 16px;margin:22px 0;font-weight:700}
@media (prefers-color-scheme: dark){.draft{background:#3a2e07;color:#ffe08a;border-color:#b38a00}}
.legal{max-width:760px;padding-bottom:56px}
.legal h1{font-size:clamp(30px,5vw,42px);margin-top:10px}
.legal h2{font-size:22px;margin-top:30px}
.legal .ph{background:var(--panel2);border-radius:4px;padding:0 4px;font-family:var(--mono);font-size:.9em}

/* forms (Pro) */
label.f{display:grid;gap:6px;font-size:14px;font-weight:600}
input.in,select.in,textarea.in{font:16px var(--sans);color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:10px;height:46px;padding:0 12px;width:100%}
textarea.in{height:auto;min-height:96px;padding:10px 12px;resize:vertical;font-family:var(--mono);font-size:14px}
input.in:focus,select.in:focus,textarea.in:focus{outline:2px solid var(--magenta);outline-offset:0;border-color:transparent}
.row{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
.row>label.f{flex:1 1 220px}
.msg{min-height:24px;font-size:14px;margin:8px 0 0}
.msg.bad{color:var(--warn)}
.msg.ok{color:var(--good)}
pre.code{font-family:var(--mono);font-size:14px;background:var(--panel2);border-radius:10px;padding:12px 14px;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}

/* narrow phones: brand + Menu + EN|ΕΛ + Play fit in 375px (measured); after the rules they override */
@media (max-width:400px){
  .top .wrap{gap:8px}
  .right{gap:6px}
  .lang{grid-template-columns:38px 38px}
  /* the flag alone; the code stays for screen readers */
  .lang .lt{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .lang .flag{width:21px;height:14px}
  .top .btn.sm{width:72px}
}

/* beta: the sign beside the name and «Found a problem?» above the footer (site.js) */
.betaBar{display:none}
@media (max-width:559px){
  .brand .beta{display:none!important}
  .betaBar{display:flex;align-items:center;justify-content:center;gap:8px;padding:6px 16px;font-size:13px;color:var(--dim);border-bottom:1px solid var(--line)}
  .betaBar>span:first-child{padding:1px 7px;border:1.5px solid var(--magenta);border-radius:999px;color:var(--magenta);font-size:12px;font-weight:700;letter-spacing:.14em}
}
.brand .beta{margin-left:2px;padding:2px 7px;border:1.5px solid var(--magenta);border-radius:999px;color:var(--magenta);font-size:12px;letter-spacing:.14em;line-height:1.2}
.bug{margin-top:36px;margin-bottom:8px}
.bug>summary{cursor:pointer;color:var(--dim);font-size:15px;font-weight:600;text-decoration:underline;text-underline-offset:3px;width:max-content;max-width:100%}
.bug>summary:hover{color:var(--magenta)}
.bug label{display:block;margin:12px 0 4px;font-size:14px;font-weight:600}
.bug textarea,.bug input{box-sizing:border-box;width:100%;max-width:560px;padding:9px 11px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);font:16px var(--sans)}
.bug textarea{resize:vertical}
.bug .hp{position:absolute;left:-9999px;width:1px;height:1px}
.bug .bugMsg{min-height:1.5em;margin:10px 0 8px}

/* ══ HOME, 21 Oct 2026 (George: «logo animation to finish at the bottle position … tabs and text reveal with scroll …
   more provocative menu and cta … fill the voids with chemistry words … scroll animated counters … minimal and modern …
   repeat our brand»). The moving parts live in home.js; everything here reads complete without it. ══ */
/* 4 Nov 2026 (George: «the small numbers in the menus and below look very AI-ish, humanize the site»): no numbered
   menu tags, no «01 · THE LAB» lines, no spaced-out capitals. Mono stays only where it is real notation: formulas, level ids. */
.kick{font:700 17px/1.4 var(--sans);color:var(--magenta);margin:0 0 12px}
.eqLine{font:500 14px/1.4 var(--mono);color:var(--dim);margin:12px 0 0;letter-spacing:.02em}
/* the header button: one width in both languages (the language switch beside it never moves), a drop that fizzes */
.top .btn.go{width:96px;gap:7px}
.fizz{width:8px;height:8px;border-radius:50%;background:currentColor;flex:none;box-shadow:0 0 0 0 rgba(255,255,255,.7);animation:fizz 2.4s ease-out infinite}
@keyframes fizz{0%{box-shadow:0 0 0 0 rgba(255,255,255,.65)}70%,100%{box-shadow:0 0 0 7px rgba(255,255,255,0)}}
@media (max-width:400px){.top .btn.go{width:84px}}

/* hero */
.home .hero{padding:64px 0 36px;position:relative}
.home .hero .wrap{grid-template-columns:1.2fr .8fr;gap:40px}
.home .hero h1{font-size:clamp(40px,6.6vw,74px);font-weight:800;letter-spacing:-.025em;line-height:1.02;margin-bottom:.32em}
.home .hero .lede{font-size:clamp(18px,2.1vw,21px);max-width:31em}
.home .hero .lede b{color:var(--ink);font-weight:700}
.btn.big{height:54px;padding:0 26px;font-size:17px}
.ctaNote{font:500 15px var(--sans);color:var(--dim);margin:14px 0 0}
.home .flaskbox{position:relative;display:grid;justify-items:center}
.home .flask{width:min(300px,62vw);color:var(--ink);position:relative;z-index:1;overflow:visible}
.home .flask .glass{fill:none;stroke:currentColor;stroke-width:5;stroke-linejoin:round;stroke-linecap:round}
.home .flask .liquid{fill:var(--magenta);fill-opacity:.95;animation:none}
.home .flask .drop{fill:var(--magenta);animation:none}
.home .flask .bub circle{fill:none;stroke:#fff;stroke-opacity:.7;stroke-width:.6;animation:bub 4.8s linear infinite}
.home .flask .bub circle:nth-child(2){animation-delay:1.3s}.home .flask .bub circle:nth-child(3){animation-delay:2.6s}.home .flask .bub circle:nth-child(4){animation-delay:3.7s}
@keyframes bub{0%{transform:translateY(0);opacity:0}12%{opacity:1}80%{opacity:.8}100%{transform:translateY(-34px);opacity:0}}
.halo{position:absolute;width:min(380px,80vw);aspect-ratio:1;border-radius:50%;top:50%;left:50%;transform:translate(-50%,-56%);
  background:radial-gradient(closest-side,color-mix(in srgb,var(--magenta) 22%,transparent),transparent);pointer-events:none}
.home .flaskbox .eqLine{position:relative;z-index:1}
@media (max-width:720px){
  .home .hero{padding:24px 0 20px}
  .home .hero .wrap{grid-template-columns:1fr;gap:6px}
  .home .flaskbox{order:-1;justify-items:start;grid-template-columns:auto 1fr;align-items:end;gap:14px}
  .home .flask{width:92px}
  .home .flaskbox .eqLine{margin:0 0 6px;font-size:12px}
  .halo{display:none}
  .kick{font-size:16px}
  .btn.big{height:50px;padding:0 20px;font-size:16px}
}

/* the numbers: written in the page, counted up by home.js when they come into view */
.nums{border-top:0;padding-top:12px}
.numgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.num{border:1px solid var(--line);border-radius:var(--r);padding:22px 20px 20px;background:color-mix(in srgb,var(--panel) 82%,transparent)}
.num b{display:block;font:700 clamp(46px,6vw,68px)/1 var(--brandf);color:var(--magenta);font-variant-numeric:tabular-nums;letter-spacing:.01em}
.num span{display:block;margin-top:10px;font-size:15px;color:var(--dim);line-height:1.35}
@media (max-width:900px){.numgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* the game itself, in screenshots (22 Oct 2026, George: «use some game screenshots to make the website nicer overall»).
   Every shot is in the same grid cell and only its opacity changes, so the tabs and the captions never move. */
.shots{margin:30px 0 34px}
.shotsT{font:600 15px var(--sans);color:var(--dim);margin:0 0 12px}
.shotTabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin-bottom:12px}
.shotTabs button{all:unset;box-sizing:border-box;height:58px;padding:8px 12px;border-radius:12px;border:1px solid var(--line);background:color-mix(in srgb,var(--panel) 86%,transparent);
  cursor:pointer;display:flex;flex-direction:column;justify-content:center;gap:2px;font:600 14px/1.2 var(--sans);color:var(--dim);-webkit-tap-highlight-color:transparent}
.shotTabs button b{font:700 12px var(--mono);color:var(--magenta)}
.shotTabs button:hover{color:var(--ink);border-color:color-mix(in srgb,var(--magenta) 45%,var(--line))}
.shotTabs button[aria-selected="true"]{background:var(--ink);border-color:var(--ink);color:var(--bg)}
.shotTabs button[aria-selected="true"] b{color:color-mix(in srgb,var(--magenta) 70%,#fff)}
.shotTabs button:focus-visible{outline:2px solid var(--magenta);outline-offset:2px}
.shotFrame{display:grid;border-radius:18px;overflow:hidden;border:1px solid var(--line);background:var(--panel);
  box-shadow:0 40px 80px -48px color-mix(in srgb,var(--magenta) 60%,transparent),0 18px 40px -28px rgba(20,33,58,.45)}
.shot{grid-area:1/1;margin:0;opacity:0;visibility:hidden;transition:opacity .5s ease,visibility 0s .5s;display:flex;flex-direction:column}
.shot.on{opacity:1;visibility:visible;transition:opacity .5s ease}
.shot img{display:block;width:100%;height:auto;aspect-ratio:16/10;background:var(--panel2)}
.shot figcaption{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;padding:14px 18px 16px;border-top:1px solid var(--line);font-size:15px;flex:1}
.shot figcaption .sid{font:700 13px var(--mono);color:var(--magenta)}
.shot figcaption b{font-weight:700}
.shot figcaption .sg{color:var(--dim);flex-basis:100%}
.shot figcaption a{font-weight:700;color:var(--magenta);text-decoration:none;margin-left:auto}
@media (max-width:900px){.shotTabs{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:520px){.shotTabs{grid-template-columns:repeat(2,minmax(0,1fr))}.shotTabs button{height:50px;padding:6px 10px;font-size:13px;white-space:nowrap}.shot figcaption{font-size:14px;padding:12px 14px 14px}.shot figcaption a{margin-left:0}}
.cardImg{margin:-20px -20px 16px;border-radius:var(--r) var(--r) 0 0;overflow:hidden;border-bottom:1px solid var(--line)}
.cardImg img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;object-position:50% 45%}
.freeShot{margin:22px 0 18px;border-radius:18px;overflow:hidden;border:1px solid var(--line);background:var(--panel)}
.freeShot img{display:block;width:100%;height:auto;aspect-ratio:16/10}
.freeShot figcaption{padding:12px 16px 14px;font-size:15px;border-top:1px solid var(--line)}
.freeShot figcaption a{font-weight:700;color:var(--magenta);text-decoration:none;white-space:nowrap}

/* minimal sections: no tinted bands, so the chemistry words behind show through; a thin rule between */
.home main{position:relative;z-index:1}
.home section.band{background:transparent}
.home .card{background:color-mix(in srgb,var(--panel) 86%,transparent)}
.home .card:hover{border-color:color-mix(in srgb,var(--magenta) 55%,var(--line))}
.fbrand b{font:700 26px/1 var(--brandf);letter-spacing:.1em;color:var(--ink);display:block}
.fbrand .eqLine{margin-top:8px;font-size:13px}

/* the honeycomb behind every site page (lattice.js, 4 Nov 2026, George: «a chemistry background that interacts with mouse
   move or touches during scroll, electrons or honeycomb connections»). Two canvases under everything: the still grid and
   its molecules, drawn once, and the drifting electrons with the light under the pointer. */
#lattice{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden;
  /* «careful not to make it hard to read»: over the reading column the field is at half strength, full only in the
     margins. Below about 1300px wide the column is the whole screen, so it is half strength everywhere. */
  -webkit-mask-image:linear-gradient(90deg,#000 calc(50% - 680px),rgba(0,0,0,.5) calc(50% - 560px),rgba(0,0,0,.5) calc(50% + 560px),#000 calc(50% + 680px));
  mask-image:linear-gradient(90deg,#000 calc(50% - 680px),rgba(0,0,0,.5) calc(50% - 560px),rgba(0,0,0,.5) calc(50% + 560px),#000 calc(50% + 680px))}
#lattice canvas{position:absolute;left:0;top:0;display:block}

/* reveal on scroll. 🚨 Hidden only when the head script set html.rv (IntersectionObserver exists, motion allowed), the
   SAME selector is hidden and revealed, and if home.js never runs (html.rvjs missing) a CSS timer shows everything
   after 5 s, so a page can never stay blank (memory: reveal-never-hides-by-default). The timer is only for that case:
   with the script running it would reveal the whole page before anyone scrolled to it. */
html.rv [data-rv]:not(.in){opacity:0;transform:translateY(16px)}
html.rv:not(.rvjs) [data-rv]:not(.in){animation:rvSafe 0s 5s forwards}
html.rv [data-rv]{transition:opacity .7s ease calc(var(--d,0) * 90ms),transform .7s cubic-bezier(.2,.7,.2,1) calc(var(--d,0) * 90ms)}
@keyframes rvSafe{to{opacity:1;transform:none}}

/* the opening (home.js): until it runs, a plain cover the colour of the page; it lifts by itself after 4 s */
html.intro body::after{content:"";position:fixed;inset:0;z-index:95;background:var(--bg);animation:introSafe .4s 4s forwards}
html.intro.introOn body::after{display:none}
html.intro #heroFlask{opacity:0}
@keyframes introSafe{to{opacity:0;visibility:hidden}}
#alkIntro{position:fixed;inset:0;z-index:96;display:grid;place-content:center;justify-items:center;gap:14px;background:var(--bg);transition:background-color .7s ease}
#alkIntro canvas{width:240px;height:300px;transform-origin:0 0}
#alkIntro .w{font:700 44px/1 var(--brandf);letter-spacing:.08em;color:var(--ink);opacity:0;transform:translateY(6px);transition:opacity .45s ease,transform .45s ease}
#alkIntro .e{font:500 14px var(--mono);color:var(--dim)}
#alkIntro.done .w{opacity:1;transform:none}
#alkIntro.fly{background-color:transparent}
#alkIntro.fly .w,#alkIntro.fly .e,#alkIntro.fly .skip{opacity:0;transition:opacity .3s ease;pointer-events:none}
#alkIntro .skip{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom));height:38px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:var(--panel);color:var(--dim);font:600 13px var(--sans);cursor:pointer}
@media (prefers-reduced-motion: reduce){#alkIntro{display:none}.fizz,.home .flask .bub circle{animation:none}}

/* ══ CHEMISTRY EXPLAINED, 3 Nov 2026: the articles (/learn/, dev/build_learn.mjs). One readable column; the picture
   or the reel, the equation and the bench card sit inside it. Nothing in it scrolls sideways at 375px. ══ */
.article{max-width:760px;padding-bottom:56px}
.article .lvtitle{font-size:clamp(30px,5.2vw,46px);line-height:1.08;margin-top:6px}
.byline{margin:0 0 22px}
.article h2{font-size:clamp(22px,3.2vw,27px);margin:38px 0 12px}
.article h3{margin:24px 0 8px}
.article p,.article li{font-size:18px;line-height:1.65}
.article ul,.article ol{padding-left:1.25em;margin:0 0 1em}
.article li{margin:.35em 0}
.article a{color:var(--magenta);text-underline-offset:3px}
.article .btn{color:var(--magenta-ink);text-decoration:none}
.article .btn.ghost{color:var(--ink)}
.answer{font-size:20px!important;line-height:1.6;border-left:4px solid var(--magenta);padding:2px 0 2px 16px;margin:0 0 24px}
.article .eq{font-size:15px;line-height:1.7;margin:12px 0 16px}
.article .eq .ln{display:block}
.shotfig,.reel{margin:6px 0 28px;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--panel)}
.shotfig img{display:block;width:100%;height:auto;aspect-ratio:16/10;background:var(--panel2)}
.reel video{display:block;width:100%;height:auto;background:#000}
.reel.tall{max-width:420px;margin-left:auto;margin-right:auto}
.reel.tall video{max-height:78vh;object-fit:contain}
.shotfig figcaption,.reel figcaption{padding:10px 14px 12px;font-size:14px;color:var(--dim);border-top:1px solid var(--line)}
.bench{margin:32px 0;border:2px solid var(--magenta);box-shadow:0 14px 34px -24px var(--magenta)}
.benchT{font-weight:700;font-size:18px!important;margin-bottom:12px}
.benchT .mono{color:var(--dim);font-size:15px;font-weight:600}
.benchB{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 12px}
.bench p.small{font-size:15px!important;line-height:1.5}
.article table{width:100%;border-collapse:collapse;margin:8px 0 20px;font-size:16px}
.article th,.article td{text-align:left;padding:9px 8px;border-bottom:1px solid var(--line);vertical-align:top;overflow-wrap:break-word}
.article th{font-size:14px;color:var(--dim);font-weight:600}
.article td .sw{display:inline-block;width:14px;height:14px;border-radius:50%;vertical-align:-2px;margin-right:6px;box-shadow:0 0 0 1px rgba(0,0,0,.18)}
.sources{margin-top:40px;padding-top:8px;border-top:1px solid var(--line)}
.sources h2{font-size:20px!important}
.sources li,.sources p{font-size:15px!important;line-height:1.5;overflow-wrap:anywhere}
.article .chips{margin-top:28px}
.learnhub{padding-bottom:56px}
.arts{list-style:none;margin:26px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}
.arts a.card{display:flex;flex-direction:column;gap:8px;height:100%;text-decoration:none;overflow:hidden}
.arts a.card:hover{border-color:var(--magenta)}
.arts .cardImg{display:block}
.arts b{font-size:19px;line-height:1.25}
.arts .dim{font-size:15px;line-height:1.45}
.arts .mono{color:var(--magenta);font-size:13px;font-weight:600}
@media (max-width:400px){.arts{grid-template-columns:1fr}.article p,.article li{font-size:17px}.answer{font-size:18px!important}}
/* printing a page (the legal drafts go to the lawyer as PDF): the text only, no menus, no beta pieces */
@media print {
  .top, .foot, .menu, .betaBar, .bug, .lang, #lattice, #alkIntro, .bench, .reel { display: none !important; }
  [data-rv] { opacity: 1 !important; transform: none !important; }
  body { background: #fff; color: #000; }
}

/* auditors: the 📺 class-quiz button beside Play (site.js tvButton). One width in both languages, so nothing beside it
   moves; below 560px it leaves the header and is a line in the menu (.tvqm); the menu line shows only below 560px. */
.top .btn.tvq{width:118px;gap:6px;padding:0}
.menu-panel .tvqm{display:none}
@media (max-width:559px){.top .btn.tvq{display:none}.menu-panel .tvqm{display:flex}}

/* ── the home film (scrub.js, 21 Nov 2026, George's notes: «no continuous scroll, hero videos dont scroll animate, no
   animation on texts … scrubbing videos like in 360photographers»). Four chapters, each one a video from the game's own 3D
   that the scroll plays forwards and backwards, with lines that come in word by word and leave as the next ones arrive.
   🚨 Never hides by default: without scrub.js (or with reduced motion / Save-Data) every chapter is a full picture with
   every line and button showing. Only html.ch-scrub (set by scrub.js) makes the sections tall, pins the stage and hands
   the lines to the scroll. 🚨 The picture (.ch-p) lies UNDER the video: on 20 Nov it lay over it and hid the scrub. ── */
.ch{position:relative;background:#0b0910;color:#fff}
.ch-stage{position:relative;min-height:100svh;overflow:hidden;display:grid;align-items:end}
.ch-frame{position:absolute;inset:0}
.ch-p,.ch-v{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.ch-p{z-index:0}
.ch-v{z-index:1;opacity:0;transition:opacity .35s ease}
.ch.ready .ch-v{opacity:1}
.ch-shade{position:absolute;inset:0;z-index:2;background:linear-gradient(to top,rgba(9,7,14,.92) 0%,rgba(9,7,14,.6) 38%,rgba(9,7,14,.1) 70%,rgba(9,7,14,.35) 100%)}
@media (min-width:900px){.ch-shade{background:linear-gradient(90deg,rgba(9,7,14,.88) 0%,rgba(9,7,14,.55) 34%,rgba(9,7,14,0) 62%),linear-gradient(to top,rgba(9,7,14,.6),transparent 38%)}}
/* a busy picture (the class with its name tags) gets a deeper shade behind the words */
.ch[data-shade=deep] .ch-shade{background:linear-gradient(to top,rgba(9,7,14,.95) 0%,rgba(9,7,14,.78) 45%,rgba(9,7,14,.25) 75%,rgba(9,7,14,.4) 100%)}
@media (min-width:900px){.ch[data-shade=deep] .ch-shade{background:linear-gradient(90deg,rgba(9,7,14,.94) 0%,rgba(9,7,14,.8) 38%,rgba(9,7,14,.15) 66%),linear-gradient(to top,rgba(9,7,14,.7),transparent 40%)}}
.ch-num{position:absolute;z-index:4;right:max(16px,3vw);bottom:max(18px,4vh);font:800 clamp(64px,11vw,180px)/.8 var(--sans);letter-spacing:-.04em;color:transparent;-webkit-text-stroke:1.5px rgba(255,255,255,.28);pointer-events:none;user-select:none}
.ch-cues{position:relative;z-index:5;display:grid;gap:28px;padding-block:96px 10vh}
.cue{display:grid;gap:14px;justify-items:start;max-width:min(860px,100%)}
.ch .kick{display:inline-block;margin:0;padding:6px 12px;border-radius:999px;background:#d81b7a;color:#fff;font:700 14px/1.3 var(--sans)}
.ch .eyebrow{margin:0;font:700 13px/1.2 var(--sans);letter-spacing:.16em;text-transform:uppercase;color:#ff8fc4}
.kin{margin:0;color:#fff;font-weight:800;letter-spacing:-.02em;line-height:1.0;font-size:clamp(40px,6.4vw,104px);text-wrap:balance}
.kin em{font-style:normal;color:#ff5fae}
.kin.s{font-size:clamp(32px,4.6vw,76px);line-height:1.04}
.ch .sub{margin:0;max-width:40em;color:rgba(255,255,255,.9);font-size:clamp(17px,1.5vw,22px);line-height:1.5}
.ch .sub b{color:#fff}
.ch .cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:4px}
.ch .btn.ghost{background:rgba(255,255,255,.08);color:#fff;border-color:rgba(255,255,255,.6)}
.ch .btn.ghost:hover{border-color:#ff5fae;color:#fff;background:rgba(255,95,174,.16)}
.ch-cue-scroll{display:none}
/* word by word (scrub.js wraps each word of a .kin; the real text stays in the heading for readers and search) */
.kin .w{display:inline-block;white-space:nowrap}
/* ── scrub: tall sections, the stage pinned; at its end it scrolls up with its way in still showing and the next follows
   (21 Nov: a next chapter sliding OVER the last one covered the buttons, measured at 2560 × 1325) ── */
html.ch-scrub .ch{height:calc(var(--len,340) * 1vh)}
html.ch-scrub .ch-stage{position:sticky;top:0;height:100vh;height:100svh;min-height:0}
html.ch-scrub .ch-cues{position:absolute;inset:0;max-width:none;margin:0;display:block;height:100%;padding:0}
html.ch-scrub .cue{position:absolute;left:16px;right:16px;bottom:11vh;opacity:0;will-change:opacity,transform}
html.ch-scrub .cue.on{pointer-events:auto}
html.ch-scrub .cue:not(.on){pointer-events:none;visibility:hidden}
html.ch-scrub .kin .w{will-change:opacity,transform,filter}
@media (min-width:900px){html.ch-scrub .cue{left:clamp(24px,6vw,170px);right:auto;width:min(860px,52vw)}}
html.ch-scrub .ch-cue-scroll{display:flex;position:absolute;z-index:6;left:50%;bottom:22px;transform:translateX(-50%);flex-direction:column;align-items:center;gap:8px;font:700 11px/1 var(--sans);letter-spacing:.3em;text-transform:uppercase;color:rgba(255,255,255,.75);transition:opacity .4s}
.ch-cue-scroll i{display:block;width:1px;height:42px;background:linear-gradient(rgba(255,255,255,.8),rgba(255,255,255,0));animation:chCue 1.8s ease-in-out infinite;transform-origin:top}
@keyframes chCue{0%{transform:scaleY(0)}50%{transform:scaleY(1)}100%{transform:scaleY(1);opacity:0}}
html.ch-scrub .ch-cue-scroll.off{opacity:0}
/* the chapter rail: four ways in, one per chapter, beside the film on wide screens */
.ch-rail{display:none}
@media (min-width:900px){
  html.ch-scrub .ch-rail{display:grid;position:fixed;z-index:15;right:18px;top:50%;transform:translateY(-50%);gap:6px;opacity:0;pointer-events:none;transition:opacity .35s}
  html.ch-scrub .ch-rail.on{opacity:1;pointer-events:auto}
  .ch-rail a{display:grid;grid-template-columns:auto 26px;align-items:center;justify-content:end;gap:10px;height:34px;color:rgba(255,255,255,.7);text-decoration:none;font:700 13px/1 var(--sans)}
  .ch-rail a b{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;border:1.5px solid rgba(255,255,255,.45);font-size:11px;background:rgba(9,7,14,.45)}
  .ch-rail a span{opacity:0;transform:translateX(6px);transition:opacity .25s,transform .25s;background:rgba(9,7,14,.7);padding:5px 9px;border-radius:999px}
  .ch-rail a:hover span,.ch-rail a.on span{opacity:1;transform:none}
  .ch-rail a.on b{background:#d81b7a;border-color:#d81b7a;color:#fff}
  .ch-rail a:focus-visible{outline:2px solid #ff5fae;outline-offset:2px;border-radius:999px}
}
/* phones: the words a little smaller, the number out of the way */
@media (max-width:899px){
  .ch-num{top:76px;bottom:auto;right:14px;font-size:64px}
  html.ch-scrub .cue{bottom:max(28px,5vh)}
  .ch .btn.big{height:50px}
}
/* prices: the beta line, who each plan is for, the All at once line, the notes */
.betaline{display:inline-block;margin:0 0 10px;padding:6px 12px;border-radius:999px;background:var(--magenta);color:var(--magenta-ink);font:700 14px/1.3 var(--sans)}
.price .who{margin:-2px 0 0;font-size:14px;color:var(--dim)}
.price .alt s{opacity:.7}
.price .allx{margin:0 0 10px;font-size:13px;font-weight:600;color:var(--dim);min-height:2.6em}
/* each plan names what the next one adds (George, 28 Nov 2026: «keep upgrading tiers meaningful and provocative suggested through previous tiers») */
.price .nexttier{margin:0 0 12px;font-size:13.5px;font-weight:700;line-height:1.35;color:var(--magenta)}
.pnotes{display:grid;gap:8px;margin-top:18px;max-width:880px}
.pnotes p{margin:0}
/* the Contact page's form, signmak's step card in ALKALIO's colours (assets/interest.js, 25 Nov 2026) */
.interest{margin:14px 0 30px}
.qcardw{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:18px;align-items:start}
@media (max-width:760px){.qcardw{grid-template-columns:1fr}}
.qcard,.qside{background:var(--panel);border:1px solid var(--line);border-radius:var(--r);padding:20px}
.qcard .qstep{font-family:var(--mono);font-size:13px;color:var(--magenta);margin:0 0 6px}
.qcard .qh{font-size:21px;margin:0 0 14px}
.qopts{display:flex;flex-wrap:wrap;gap:10px}
.qchip{min-height:44px;padding:10px 16px;border-radius:999px;border:1.5px solid var(--line);background:var(--panel2);color:var(--ink);font:inherit;font-size:16px;cursor:pointer;text-align:start}
.qchip:hover,.qchip:focus-visible{border-color:var(--magenta);outline:none}
.qchip.on{background:var(--magenta);border-color:var(--magenta);color:var(--magenta-ink)}
.qcard label{display:block;font-weight:700;margin:14px 0 6px}
.qcard input:not(.hp),.qcard textarea{width:100%;box-sizing:border-box;font:inherit;font-size:16px;padding:11px 12px;border-radius:10px;border:1px solid var(--line);background:var(--bg);color:var(--ink)}
.qcard #iqCheck{margin-top:16px}
.qnav{display:flex;gap:10px;justify-content:space-between;margin-top:18px}
.qnav [hidden]{display:none}
.qnav #iqNext{margin-inline-start:auto}
.qmsg{min-height:1.4em;margin:10px 0 0}
.qside .eyebrow{margin:0 0 10px}
.qside dl{display:grid;gap:6px;margin:0}
.qside dt{font-size:13px;color:var(--dim);margin-top:6px}
.qside dd{margin:0;font-weight:700}
.bug .bugCheck{margin:14px 0 4px}
.qcard .hp{position:absolute;left:-9999px;width:1px;height:1px}
/* the maker's credit, as on the Λεξικό: «About the app» opens the page about ALKALIO on signmak.com (26 Nov 2026) */
.foot .credit{flex-basis:100%;display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;font-size:13px}
.foot .credit a{display:inline-flex;align-items:center;gap:6px;color:var(--dim)}
.foot .credit .sep{opacity:.5}
.foot .credit .brand span{font-weight:700;letter-spacing:.03em}
.foot .sm-mark{width:13px;height:15px;flex:0 0 auto;--mark-gap:var(--bg)}
.foot .credit a.brand:hover .sm-mark,.foot .credit a.brand:focus-visible .sm-mark{--core:#d97e2b}

/* the Stories on the home page (28 Nov 2026): a card per shelf, its picture, its stories as links */
.shelves .shelf{display:flex;flex-direction:column;gap:8px}
.shelves .shelfpic{display:block;border-radius:calc(var(--r) - 6px);overflow:hidden;margin:-6px -6px 4px;aspect-ratio:16/10;background:var(--line)}
.shelves .shelfpic img{display:block;width:100%;height:100%;object-fit:cover}
.shelves h3{margin:0}
.storylist{list-style:none;margin:6px 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 14px;font-size:15px}
.storylist a{color:inherit;text-decoration:none;border-bottom:1px solid transparent}
.storylist a:hover,.storylist a:focus-visible{color:var(--magenta);border-bottom-color:currentColor}
@media (max-width:640px){.storylist{grid-template-columns:1fr}}

/* the family: ALKALIO beside ORGANIDIO, its biology lab (29 Nov 2026, the same cards as organidio.com #family; --org is ORGANIDIO's own teal) */
.family{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:22px}
.fam{display:flex;gap:16px;align-items:center;padding:20px;border:1px solid var(--line);border-radius:var(--r);background:color-mix(in srgb,var(--panel) 86%,transparent);text-decoration:none;color:inherit}
.fam svg{width:56px;height:56px;flex:none}
.fam b{display:block;font:700 22px/1.1 var(--brandf);letter-spacing:.08em}
.fam small{display:block;font:600 12px var(--mono);letter-spacing:.1em;margin-top:4px}
.fam.alk small{color:var(--magenta)}
.fam.org small{color:var(--org)}
.fam p{margin:8px 0 0;font-size:15px;color:var(--dim)}
.fam:hover,.fam:focus-visible{border-color:currentColor}
@media (max-width:720px){.family{grid-template-columns:1fr}}
