/* Knappa design system v2 — "Toy Object / light switch".
   One idea: the room is dark until you flip the switch; then it takes the colour of the cover.
   Colours = real Bambu PLA Basic spools only (product colours). Text inks are derived per room.
   Rules: no mono caps labels, no 01/02/03 numbering, no boxed grids with borders, no gradient blobs, no emoji. */

/* fonts: <link> in each page head (Bagel Fat One + Figtree) — @import here made a serial chain */

:root {
  /* --- PLA Basic (27 shown on the site; Hot Pink, Silver, Sunflower Yellow hidden) --- */
  --pla-jade-white:#FFFFFF; --pla-beige:#F7E6DE; --pla-light-gray:#D1D3D5; --pla-yellow:#F4EE2A;
  --pla-pumpkin:#FF9016; --pla-orange:#FF6A13; --pla-gold:#E4BD68; --pla-bright-green:#BECF00;
  --pla-bambu-green:#00AE42; --pla-mistletoe:#3F8E43; --pla-pink:#F55A74; --pla-magenta:#EC008C;
  --pla-red:#C12E1F; --pla-maroon:#9D2235; --pla-purple:#5E43B7; --pla-indigo:#482960;
  --pla-turquoise:#00B1B7; --pla-cyan:#0086D6; --pla-cobalt:#0056B8; --pla-blue:#0A2989;
  --pla-brown:#9D432C; --pla-cocoa:#6F5034; --pla-bronze:#847D48; --pla-gray:#8E9089;
  --pla-blue-grey:#5B6579; --pla-dark-gray:#545454; --pla-black:#000000;

  /* --- surfaces --- */
  --night:#121016;        /* the room with the light off; every page starts here */
  --night-2:#1c1922;      /* raised surface in the dark */
  --paper:#fffaf3;        /* warm white for daylight sections */
  --ink:#16131a;          /* text on paper */
  --muted:#6d6772;        /* secondary text on paper */
  --room:var(--pla-pink); /* set per design (JS) */
  --room-ink:#2a0d14;     /* set per design: the room hue, almost black */
  --glow:#FFB547;         /* the switch indicator / lamp — the only non-PLA warm accent */

  /* --- type: one loud display face, one friendly text face --- */
  --display:"Bagel Fat One","Arial Black",system-ui,sans-serif;
  --body:"Figtree",system-ui,-apple-system,sans-serif;
  --fs-hero:clamp(44px,9vw,112px);   /* line-height .92 */
  --fs-h2:clamp(34px,5vw,56px);      /* line-height 1 */
  --fs-h3:28px;
  --fs-big:40px;                     /* facts, prices */
  --fs-lead:18px;
  --fs-body:16px;
  --fs-small:13px;

  /* --- shape: soft like a printed object, never sharp boxes --- */
  --r-s:12px; --r-m:22px; --r-l:26px; --r-pill:999px;
  --gutter:max(16px,env(safe-area-inset-left,0px));
  --max:1200px;

  /* --- depth: physical objects cast shadows on the wall --- */
  --sh-object:0 2px 0 rgba(255,255,255,.18) inset,0 -6px 0 rgba(0,0,0,.18) inset,0 40px 60px -20px rgba(0,0,0,.55),0 14px 18px -8px rgba(0,0,0,.4);
  --sh-tile:0 24px 30px -14px rgba(0,0,0,.45);
  --sh-press:0 10px 10px -4px rgba(0,0,0,.45),0 -3px 0 rgba(0,0,0,.18) inset;

  /* --- motion: the switch is the clock of the whole site --- */
  --e-click:cubic-bezier(.3,1.8,.5,1);   /* rocker snap, overshoots */
  --e-light:cubic-bezier(.16,1,.3,1);    /* light floods in, long soft tail */
  --e-dark:cubic-bezier(.2,.9,.2,1);     /* light goes out fast */
  --t-click:180ms;    /* rocker / button press */
  --t-delay:60ms;     /* the lamp warms up after the click */
  --t-light:900ms;    /* room fills with colour */
  --t-dark:350ms;     /* room goes dark */
  --t-ink:600ms;      /* text recolours */
  --t-room:500ms;     /* switching design = repainting the room */
  color-scheme:dark;
}

*,*::before,*::after{box-sizing:border-box}
html,body{height:auto}
body{margin:0;background:var(--night);color:var(--paper);font-family:var(--body);font-size:var(--fs-body);line-height:1.5;overflow-x:hidden;-webkit-font-smoothing:antialiased}
.k-wrap{max-width:var(--max);margin-inline:auto;padding-left:var(--gutter);padding-right:max(16px,env(safe-area-inset-right,0px))}

/* ---------- type ---------- */
.k-hero-t{font-family:var(--display);font-weight:400;font-size:var(--fs-hero);line-height:.92;margin:0;text-wrap:balance}
/* LT headline is ~15% wider than EN: shrink the type, never the hero, so it takes the same lines as EN */
html[lang="lt"] .k-hero-t{font-size:clamp(38px,7.7vw,96px)}
.k-h2{font-family:var(--display);font-weight:400;font-size:var(--fs-h2);line-height:1;margin:0 0 28px;text-wrap:balance}
.k-h3{font-family:var(--display);font-weight:400;font-size:var(--fs-h3);line-height:1.05;margin:0 0 10px}
.k-lead{font-size:var(--fs-lead);max-width:38ch}
.k-big{font-family:var(--display);font-size:var(--fs-big);line-height:1}
.k-small{font-size:var(--fs-small);opacity:.65}

/* ---------- the room (any section can be one) ---------- */
.k-room{position:relative;background:var(--room);color:var(--paper);transition:background var(--t-room) ease;isolation:isolate;overflow:hidden}
.k-room::after{content:"";position:absolute;inset:0;background:var(--night);opacity:.94;z-index:2;pointer-events:none;transition:opacity var(--t-dark) var(--e-dark)}
.k-room.on::after{opacity:0;transition:opacity var(--t-light) var(--e-light) var(--t-delay)}
.k-room>*{position:relative;z-index:3}
.k-room .k-ink{color:var(--paper);transition:color var(--t-ink)}
.k-room.on .k-ink{color:var(--room-ink)}

/* ---------- buttons ---------- */
/* primary: a pill with a little rocker inside; the rocker flips on hover */
.k-cta{display:inline-flex;align-items:center;gap:12px;height:58px;padding:0 28px;border-radius:var(--r-pill);border:0;cursor:pointer;
  background:var(--ink);color:var(--paper);font:800 18px/1 var(--body);text-decoration:none;transition:transform var(--t-click) var(--e-click)}
.k-cta:active{transform:scale(.97)}
.k-cta i{width:28px;height:16px;border-radius:var(--r-pill);background:var(--pla-yellow);position:relative;flex:none}
.k-cta i::after{content:"";position:absolute;left:3px;top:3px;width:10px;height:10px;border-radius:50%;background:var(--ink);transition:transform var(--t-click) var(--e-click)}
.k-cta:hover i::after,.k-cta:focus-visible i::after{transform:translateX(12px)}
.k-cta.on-dark{background:var(--paper);color:var(--ink)}
.k-cta.on-dark i::after{background:var(--paper)}
/* secondary: outline pill */
.k-btn{display:inline-flex;align-items:center;height:46px;padding:0 20px;border-radius:var(--r-pill);border:2px solid currentColor;background:none;color:inherit;font:600 16px/1 var(--body);cursor:pointer;text-decoration:none}
/* rocker toggle (on/off settings): looks like a key, not like an iOS switch */
.k-rocker{width:44px;height:58px;border-radius:12px;border:0;padding:0;cursor:pointer;background:var(--night-2);position:relative;box-shadow:var(--sh-press)}
.k-rocker::before{content:"";position:absolute;inset:6px;border-radius:8px;background:var(--paper);transform:perspective(200px) rotateX(16deg);transition:transform var(--t-click) var(--e-click)}
.k-rocker[aria-pressed="true"]::before{transform:perspective(200px) rotateX(-16deg);background:var(--pla-yellow)}
.k-cta:focus-visible,.k-btn:focus-visible,.k-rocker:focus-visible,.k-dot:focus-visible{outline:3px solid var(--glow);outline-offset:4px}

/* ---------- colour dot (design / filament picker) ---------- */
.k-dots{display:flex;flex-wrap:wrap;gap:10px}
.k-dot{width:34px;height:34px;border-radius:50%;padding:0;cursor:pointer;border:3px solid rgba(255,255,255,.3);transition:transform var(--t-click) var(--e-click)}
.k-dot[aria-pressed="true"]{border-color:currentColor;transform:scale(1.12)}

/* ---------- design card: every design lives in its own room ---------- */
.k-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.k-card{border-radius:var(--r-l);aspect-ratio:3/4;display:grid;place-items:center;position:relative;overflow:hidden;background:var(--room);color:var(--room-ink);text-decoration:none;transition:transform var(--t-click) var(--e-click)}
.k-card:hover{transform:translateY(-4px) rotate(-.6deg)}
.k-card .obj{width:58%;aspect-ratio:1;border-radius:var(--r-s);box-shadow:var(--sh-tile);object-fit:cover}
img.obj{box-shadow:none!important;width:72%}
.k-card .name{position:absolute;left:16px;bottom:14px;font-weight:800;font-size:15px}
.k-card .price{position:absolute;right:16px;bottom:14px;font-weight:600;font-size:15px}

/* ---------- bag counter ---------- */
.k-bag{display:inline-flex;align-items:center;gap:8px;font-weight:600;color:inherit;text-decoration:none}
.k-bag b{min-width:24px;height:24px;border-radius:var(--r-pill);background:var(--glow);color:var(--ink);display:grid;place-items:center;font-size:13px;font-weight:800;padding:0 6px}

/* ---------- facts: big number + plain sentence, no boxes ---------- */
.k-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
.k-facts>div{min-width:0}
.k-facts strong{display:block;font-family:var(--display);font-weight:400;font-size:var(--fs-big);line-height:1;margin-bottom:8px}

/* ---------- daylight section ---------- */
.k-day{background:var(--paper);color:var(--ink);padding-block:72px}

.k-cards.n5{grid-template-columns:repeat(5,minmax(0,1fr))}
@media (max-width:760px){.k-cards,.k-cards.n5{grid-template-columns:repeat(2,minmax(0,1fr))}.k-cards.n5>:last-child{grid-column:span 2;aspect-ratio:3/2}.k-cards.n5>:last-child .obj{width:38%}.k-facts{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition-duration:1ms!important;animation:none!important}}
