@layer reset, tokens, base, frame, components, scenes, motion, states;
/* css/05-fonts.css */
/* 05-fonts.css · no layer (BUILD-PLAN-D.md 7.4). Owner: foundation.

   Six files, three families; each family has a latin rule and a latin-ext rule with the unicode-range that
   fontsource ships (fonts.md), so the latin-ext file is fetched only when a page shows č ć đ š ž.
   No file has a glyph for U+2011 or U+2060 (plan 0.2).

   The two fallback faces keep the lines where they are while a web font is still loading.
   Measured in headless Chrome 157 on this Mac, 15. 11. 2026, each text on one line, no tracking:
     h1 „Narukvica za stres koji predugo traje", 400, 72 px:  Jost 1116.16 px · Arial 1164.52 px
     first-screen lead (copy-map 1.3), 400, 21 px:            Source Sans 3 1226.94 px · Arial 1315.58 px
   size-adjust      = width in the web font / width in Arial        Jost 95.85 %   Source Sans 3 93.26 %
   ascent-override  = ascender / (1000 × size-adjust)               Jost 111.64 %  (1070)   Source Sans 3 109.80 % (1024)
   descent-override = descender / (1000 × size-adjust)              Jost 39.12 %   (375)    Source Sans 3 42.89 %  (400) */

@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/jost-latin-wght-normal.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: "Jost"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/jost-latin-ext-wght-normal.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: "Source Sans 3"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/assets/fonts/source-sans-3-latin-wght-normal.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: "Source Sans 3"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/assets/fonts/source-sans-3-latin-ext-wght-normal.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/assets/fonts/inter-latin-wght-normal.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: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/assets/fonts/inter-latin-ext-wght-normal.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: "Jost Fallback"; src: local("Arial");
  size-adjust: 95.85%; ascent-override: 111.64%; descent-override: 39.12%; line-gap-override: 0%; }
@font-face { font-family: "Source Sans 3 Fallback"; src: local("Arial");
  size-adjust: 93.26%; ascent-override: 109.80%; descent-override: 42.89%; line-gap-override: 0%; }
@layer reset {
/* css/00-reset.css */
/* 00-reset.css · layer "reset" (BUILD-PLAN-D.md 1.1, 2.1). Owner: foundation.
   Only what every later file counts on. No colour, no size, no family. */

*, *::before, *::after { box-sizing: border-box; }

/* 2.1: all headings and paragraphs have margin 0; spacing is written as margin-top on the following element */
body, h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }

/* a heading takes its type from a type class (.t-d72 … .t-lead), never from its tag */
h1, h2, h3, h4, h5, h6 { font: inherit; }

img, picture, video, canvas { display: block; }
img, svg, video, canvas { max-width: 100%; }
img, video { height: auto; }

button, input { margin: 0; font: inherit; letter-spacing: inherit; color: inherit; }
button { border-radius: 0; }
}
@layer tokens {
/* css/10-tokens.css */
/* 10-tokens.css · layer "tokens" (BUILD-PLAN-D.md 2.1, with the lead's answer 7 of section 13). Owner: foundation.
   No other colour, family or size may appear in any file. */

:root {
  /* colour */
  --ground: #000000;
  --ink-100: #FDF8FF;
  --ink-72: rgba(253, 248, 255, 0.72);
  --ink-55: rgba(253, 248, 255, 0.55);      /* dimmest text */
  --ink-40: rgba(253, 248, 255, 0.40);      /* borders of field and checkbox, dashed lines; text only for the unlit words of part 02 (answer 24) */
  --rule: rgba(253, 248, 255, 0.16);        /* rules only */
  --btn-fill: #FDF8FF;  --btn-ink: #000000;  --btn-hover: #FFFFFF;
  --field: #0B0A17;
  --surface: #2C2944;  --surface-edge: rgba(185, 170, 255, 0.28);
  --disc: #413370;
  --violet: #B8A9FF;                        /* focus ring, caret, breathing ring */
  --peach: #F9B48F;                         /* the raised stretch of the day curve only */

  /* families */
  --f-display: "Jost", "Jost Fallback", Arial, sans-serif;
  --f-text: "Source Sans 3", "Source Sans 3 Fallback", system-ui, sans-serif;
  --f-ui: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* the unit and the stage.
     Answer 7: the unit reads the window's width AND its height. 1 px below 1440 px of width or 810 px of height;
     above that the 1440 × 810 stage is the largest that fits the window, up to 1800 px wide (owner 17. 11.: the page read too large;
     the cap was 2560 px; then 2016, then 1800 at the owner's request after seeing it on their 2560 px screen).
     This first --u and --screen are for a browser without svh; the @supports block below replaces both.
     (A custom property is not checked when it is read in, so a plain second line would not fall back.) */
  --u: clamp(1px, min(calc(100vw / 1440), calc(100vh / 810)), calc(1800px / 1440));
  --stage-w: min(100vw, calc(var(--u) * 1440));           /* the stage: as wide as the window, or narrower and centred when the height sets the unit */
  --stage-x: calc((100vw - var(--stage-w)) / 2);          /* the black band at each side of the stage; 0 while the width sets the unit */
  --gutter: 24px;
  --col-x: calc(var(--stage-x) + var(--gutter));          /* left edge of the content column, from the scene's left edge */
  --screen: min(100vh, calc(var(--u) * 1400));            /* one screen, with the pixel cap of SEO P-S2 */
  --hdr-h: 56px;
  --rail: 100%;
  --stack-gap: 96px;

  /* type: size, line-height (unitless), tracking.
     17. 11. 2026, owner: „everything looks too large”. The token names keep the board sizes (d72, d56, d40) so the
     scene files stay readable; the values are now a calmer scale: hero 56 / heading 42 / statement 30 at 1440,
     body text never below 16 px. */
  --fs-d72: clamp(29px, 8.2vw, 32px);   --lh-d72: 1.125;   --ls-d72: -0.02em;
  --fs-d56: clamp(26px, 7.2vw, 28px);   --lh-d56: 1.1429;  --ls-d56: -0.015em;
  --fs-d40: 22px;                       --lh-d40: 1.2727;  --ls-d40: -0.01em;
  --fs-lead: 19px;                      --lh-lead: 1.5;
  --fs-text: 17px;                      --lh-text: 1.6;
  --fs-small: 14px;                     --lh-small: 1.4286;
  --fs-label: 17px;                     --lh-label: 1.2941;

  /* radii, timing */
  --r-ctl: 4px;  --r-check: 2px;
  --t-hover: 200ms;  --t-open: 220ms;  --t-state: 300ms;
}

@supports (height: 100svh) {
  :root {
    --u: clamp(1px, min(calc(100vw / 1440), calc(100svh / 810)), calc(1800px / 1440));
    --screen: min(100svh, calc(var(--u) * 1400));
  }
}

@media (min-width: 600px) {
  :root { --gutter: 48px; --stack-gap: 120px; --rail: min(100%, 620px);
          --fs-d72: 44px; --lh-d72: 1.0909;  --fs-d56: 36px; --lh-d56: 1.1111;  --fs-d40: 26px; --lh-d40: 1.2692;  --fs-lead: 19px; }
}

/* owner 17. 11.: „still a lot of space at the top”. On a tall window (the owner's is 2560 x 1222) every scene was one
   window high while its stage, capped at 1800 px wide, is only 810u high, so 200 px of black stood around each one.
   From 1100 px a scene is at most 900u high (stage + header); the first screen and the pinned turn keep the whole
   window (--window), so the band still stands on the window's lower edge and the turn still fills the pin. */
@media (min-width: 1100px) {
  :root { --window: min(100vh, calc(var(--u) * 1400)); --screen: min(var(--window), calc(var(--u) * 900)); }
  .s01, [data-turn] { --screen: var(--window); }
}
@supports (height: 100svh) {
  @media (min-width: 1100px) {
    :root { --window: min(100svh, calc(var(--u) * 1400)); }
  }
}

@media (min-width: 1100px) {
  :root { --gutter: clamp(48px, calc(48px + (100vw - 1100px) * 32 / 340), calc(var(--u) * 80));      /* 48 px at 1100, 80 px at 1440 (the plan writes the slope as 0.0941176) */
          --hdr-h: calc(var(--u) * 64);  --rail: calc(var(--u) * 510);
          --fs-d72: calc(var(--u) * 56); --lh-d72: 1.0714;  --fs-d56: calc(var(--u) * 42); --lh-d56: 1.0952;
          --fs-d40: calc(var(--u) * 30); --lh-d40: 1.3;     --fs-lead: max(17px, calc(var(--u) * 19));
          --fs-text: max(16px, calc(var(--u) * 16));  --fs-small: max(13px, calc(var(--u) * 13.5));  --fs-label: max(15px, calc(var(--u) * 16));
          --r-ctl: calc(var(--u) * 4); }
}
}
@layer base {
/* css/20-base.css */
/* 20-base.css · layer "base" (BUILD-PLAN-D.md 2.1, 2.3, 3.5, 4.3, 4.14). Owner: foundation.
   html, body, the type classes, links, focus, .skip, .br-d, .br-m, .vh. Base first, desktop block second. */

html {
  background: var(--ground);
  color-scheme: dark;
  scrollbar-color: #605E61 #000000;                      /* plan 4.14: the one colour pair that is no token */
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink-72);
  font: 400 var(--fs-text)/var(--lh-text) var(--f-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- type classes: the only way to set type (2.1) ---- */
.t-d72 { font: 400 var(--fs-d72)/var(--lh-d72) var(--f-display); letter-spacing: var(--ls-d72); color: var(--ink-100); }
.t-d56 { font: 400 var(--fs-d56)/var(--lh-d56) var(--f-display); letter-spacing: var(--ls-d56); color: var(--ink-100); }
.t-d40 { font: 400 var(--fs-d40)/var(--lh-d40) var(--f-display); letter-spacing: var(--ls-d40); color: var(--ink-100); }
.t-lead { font: 400 var(--fs-lead)/var(--lh-lead) var(--f-text); color: var(--ink-72); }
.t-text { font: 400 var(--fs-text)/var(--lh-text) var(--f-text); color: var(--ink-72); }
.t-small { font: 400 var(--fs-small)/var(--lh-small) var(--f-text); color: var(--ink-55); }

/* colour only; after the type classes, so that "t-small ink-100" is ink 100 */
.ink-100 { color: var(--ink-100); }
.ink-72 { color: var(--ink-72); }
.ink-55 { color: var(--ink-55); }

.tnum { font-variant-numeric: tabular-nums; }

/* ---- links (4.3) ---- */
a { color: var(--ink-100); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--btn-hover); }

/* ---- focus (4.14): links, buttons, the field, the checkbox, every <summary> ---- */
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

/* a focused control never lands under the header or the phone bar (3.5) */
a, button, input, summary, [tabindex] { scroll-margin-top: calc(var(--hdr-h) + 16px); scroll-margin-bottom: 96px; }

::selection { background: var(--disc); color: var(--ink-100); }

/* ---- skip link: off screen until focused, then at (16, 16) on black, above the header ---- */
.skip {
  position: absolute; left: 16px; top: 16px; z-index: 60;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  background: var(--ground); color: var(--ink-100);
  font: 400 var(--fs-text)/var(--lh-text) var(--f-text);
}
.skip:not(:focus):not(:active) { width: 1px; min-height: 0; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- visually hidden, still read out ---- */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- pinned line breaks (copy-map 0.2): br-d holds from 1100 px, br-m below it ---- */
.br-d { display: none; }

@media (min-width: 1100px) {
  .br-d { display: inline; }
  .br-m { display: none; }
}

/* scale pass 17. 11.: on tablets the stacked text keeps a readable measure (about 60–65 characters) */
@media (min-width: 600px) and (max-width: 1099.98px) {
  .t-lead { max-width: 30em; }
  .t-text, .rows { max-width: 34em; }
}
}
@layer frame {
/* css/30-frame.css */
/* 30-frame.css · layer "frame" (BUILD-PLAN-D.md 3.2, 3.5). Owner: foundation.
   .scene, .scene__media, .scene__pic, .scene__content, .scene__body, .rail, and where an anchor lands.
   A scene sets: --band-h (stacked), --row-top, --row-bot, --air-top, --air-bot, --scene-min (desktop). It never restates a value of this file. */

/* stacked (base) */
.scene { position: relative; padding-bottom: var(--stack-gap); }
.scene__media { position: relative; height: var(--band-h, 0px); overflow: hidden; overflow: clip; background: var(--ground); }
.scene__pic { position: absolute; top: 0; height: 100%; }
.scene__pic picture, .scene__pic img { display: block; width: 100%; height: 100%; }
.scene__content { padding-inline: var(--gutter); }
.scene__media + .scene__content { padding-top: 60px; }
.scene__body { max-width: 620px; }
.rail { width: var(--rail); max-width: 100%; }

/* 3.5: below 1100 px an anchor lands 72 px under the window's top when the section starts with words (the fixed
   wordmark stands at y 16 to 40), and at the top when it starts with a picture band. From 1100 px: at the top.
   Two rules, so that a browser without :has() keeps the first. */
@media (max-width: 1099.98px) {
  main > section { scroll-margin-top: 72px; }
  main > section:has(> .scene:first-child > .scene__media) { scroll-margin-top: 0; }
}

@media (min-width: 1100px) {
  .scene { padding-bottom: 0; }
  .scene__media { position: absolute; inset: 0; height: auto; pointer-events: none; }
  .scene__pic { top: auto; height: auto; }
  .scene__content {
    position: relative; box-sizing: border-box; display: grid;
    min-height: var(--scene-min, var(--screen));
    max-width: var(--stage-w); margin-inline: auto;
    padding: calc(var(--hdr-h) + var(--air-top, calc(var(--u) * 24))) var(--gutter) var(--air-bot, calc(var(--u) * 48));
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--row-top, 1fr) auto var(--row-bot, 1fr);
  }
  .scene__media + .scene__content { padding-top: calc(var(--hdr-h) + var(--air-top, calc(var(--u) * 24))); }
  .scene__body { grid-row: 2; min-width: 0; max-width: none; }
}
}
@layer components {
/* css/40-components.css */
/* 40-components.css · layer "components" (BUILD-PLAN-D.md 4.1 to 4.8, 4.13). Owner: foundation.
   Header and phone bar, filled button, text button and icon, lists, specification rows, steps, accordion, footer.

   Lengths. Where a board number is the same in both layouts (a 12 px gap on the phone boards, 12u on the
   desktop boards) it is written once as calc(var(--u) * 12): the unit is exactly 1 px in every window narrower
   than 1440 px, so this is 12 px in the stacked layout and 12u on the stage. Where the two layouts differ,
   the stacked value is plain px in the base and the desktop value stands in the 1100 px block. */

/* ================================================================== 4.2 filled button (first: .btn--nav below tunes it) */
.btn {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: calc(var(--u) * 48); padding: 0 calc(var(--u) * 24 - 1px);     /* 24u with the border: 205u wide with its label */
  border: 1px solid transparent;                                             /* shows in forced colours */
  border-radius: var(--r-ctl);
  background: var(--btn-fill); color: var(--btn-ink);
  font: 600 var(--fs-text)/1.25 var(--f-text); white-space: nowrap; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--btn-hover); color: var(--btn-ink); }
.btn:disabled { cursor: default; }

/* ================================================================== 4.1 header, and the phone bar */
.hdr { position: fixed; inset: 0 0 auto 0; height: var(--hdr-h); z-index: 50; pointer-events: none;
       background: linear-gradient(to bottom, var(--ground) 0, var(--ground) 62%, transparent 100%); }   /* a black ground: the wordmark never sits on text */
.hdr__nav {
  display: flex; justify-content: space-between; align-items: flex-start;
  height: 100%; max-width: var(--stage-w); margin-inline: auto; padding-inline: var(--gutter);
}
/* wordmark 49 × 24 at (gutter, 16); the link is 44 px tall around it */
.hdr__logo { display: flex; align-items: center; min-height: 44px; margin-top: 6px; pointer-events: auto; text-decoration: none; }
.hdr__logo img { width: 49px; height: 24px; }

/* the one sign-up link outside the forms (decision P7). Without script and below 1100 px: not shown */
.hdr__cta { display: none; }

@media (max-width: 1099.98px) {
  /* the bar at the foot: while no form is in view (class cta-on, js/header.js) */
  .cta-on .hdr__cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0;
    padding: 15px var(--gutter) calc(16px + env(safe-area-inset-bottom));
    background: var(--ground); border-top: 1px solid var(--rule); pointer-events: auto;
    /* it comes in over 300 ms instead of popping (opacity only; a browser without @starting-style shows it at once;
       off under reduced motion, 90-states.css). It leaves at once: a form is in view then */
    transition: opacity var(--t-state) linear;
  }
  @starting-style { .cta-on .hdr__cta { opacity: 0; } }
  .signed .hdr__cta { display: none; }
  .hdr__cta .btn--nav { display: flex; width: 100%; }

  /* the privacy page (.hdr--page): the button stands in the header at every width, there is no bar */
  .hdr--page .hdr__cta { display: block; margin-top: 6px; pointer-events: auto; }
  .hdr--page .btn--nav { display: inline-flex; width: auto; min-height: 44px; }
}
@media (max-width: 599.98px) {
  .hdr--page .btn--nav { padding-inline: 15px; }            /* 16 px with the 1 px border */
}

@media (min-width: 1100px) {
  /* wordmark 49u × 24u at (column edge, 20u), its middle on the header's 32u line; the link is 44u tall around it
     (17. 11.: was 57u × 28u, too loud beside the calmer type scale) */
  .hdr__logo { min-height: calc(var(--u) * 44); margin-top: calc(var(--u) * 10); }
  .hdr__logo img { width: calc(var(--u) * 49); height: calc(var(--u) * 24); }

  /* the filled button on the stage: 44u tall (was 48u), in step with the 44u field (45-form.css) */
  .btn { min-height: calc(var(--u) * 44); padding: 0 calc(var(--u) * 22 - 1px); }

  /* the button: its right edge on the column's right edge, y 12u, 40u tall: its middle on the wordmark's 32u line */
  /* it comes and goes over 300 ms instead of popping (opacity only; off under reduced motion, 90-states.css);
     visibility changes when the fade is over, so the hidden button is out of the tab order as before */
  .hdr__cta { display: block; margin-top: calc((var(--u) * 64 - max(44px, calc(var(--u) * 40))) / 2); pointer-events: auto; transition: opacity var(--t-state) linear, visibility 0s linear; }
  .js:not(.cta-on) .hdr__cta,                               /* board state A: a form is in view */
  .signed .hdr__cta {                                       /* after a sign-up, until the page is loaded anew */
    visibility: hidden; opacity: 0; transition: opacity var(--t-state) linear, visibility 0s linear var(--t-state);
  }
  .btn--nav { min-height: max(44px, calc(var(--u) * 40)); padding-inline: calc(var(--u) * 18 - 1px); }
}

/* ================================================================== 4.3 text button, disclosure, icon */
.textbtn {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; gap: calc(var(--u) * 8);
  min-height: calc(var(--u) * 44); padding: 0; border: 0; background: none;
  color: var(--ink-100); font: 500 var(--fs-label)/var(--lh-label) var(--f-text); cursor: pointer; list-style: none;
}
.textbtn::-webkit-details-marker { display: none; }
.textbtn > span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.textbtn:hover { color: var(--btn-hover); }

/* plus / minus: 24 px box on the phone, 20u on the stage (desktop block below), 1.5 px strokes at every stage size, in the colour of its summary */
.ico { flex: none; width: calc(var(--u) * 24); height: calc(var(--u) * 24); }
.ico path { vector-effect: non-scaling-stroke; }
details[open] > summary .ico__v { display: none; }

/* ================================================================== 4.5 lists */
.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: calc(var(--u) * 12); }
.rows > li { max-width: calc(var(--u) * 507); font: 400 var(--fs-text)/var(--lh-text) var(--f-text); color: var(--ink-72); }
.listhead + .rows { margin-top: calc(var(--u) * 16); }

/* ================================================================== 4.6 specification rows */
.specs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: calc(var(--u) * 12); }
.specs__row { font: 400 var(--fs-lead)/var(--lh-lead) var(--f-text); color: var(--ink-100); font-variant-numeric: tabular-nums; }
.specs__term { color: var(--ink-55); }
/* the six rows behind the disclosure: the same in text size, 16u under the summary */
.specs--more { margin-top: calc(var(--u) * 16); }
.specs--more .specs__row { font: 400 var(--fs-text)/var(--lh-text) var(--f-text); }

@media (min-width: 1100px) {
  .ico { width: calc(var(--u) * 20); height: calc(var(--u) * 20); }
  .qa__q .ico { margin-right: calc(var(--u) * -3); }
  .specs__row { display: flex; gap: calc(var(--u) * 32); }
  .specs__term { flex: none; width: calc(var(--u) * 168); }
  .specs__val { min-width: 0; }
}

/* ================================================================== 4.7 numbered steps */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: calc(var(--u) * 12); }
.steps > li { display: flex; gap: calc(var(--u) * 12); font: 400 var(--fs-text)/var(--lh-text) var(--f-text); color: var(--ink-72); }
.steps__n { flex: none; width: calc(var(--u) * 20); }
.steps__n + span { min-width: 0; max-width: calc(var(--u) * 507); }

/* ================================================================== 4.8 accordion */
.qa { border-bottom: 1px solid var(--rule); }
.qa__q {
  display: flex; align-items: center; justify-content: space-between; gap: calc(var(--u) * 24);
  padding: calc(var(--u) * 18) 0; color: var(--ink-100); cursor: pointer; list-style: none;
}
.qa__q::-webkit-details-marker { display: none; }
.qa__q .ico { margin-right: -4px; }
.qa__h { min-width: 0; margin: 0; }
.qa__a { margin: 0; padding: 0 0 calc(var(--u) * 22); max-width: calc(var(--u) * 507); }

@keyframes qa-in { from { opacity: 0; } }
details[open] > .qa__a { animation: qa-in var(--t-open); }

/* ================================================================== 4.13 footer */
.ftr {
  /* the gutter up to the stage's edge, with or without a classic scroll bar; the centred stage's gutter beyond it */
  margin-inline: max(var(--gutter), calc((100% - var(--stage-w)) / 2 + var(--gutter)));
  border-top: 1px solid var(--rule);
  padding: 20px 0 calc(64px + 80px + env(safe-area-inset-bottom));      /* the bar (80 px) never covers the last line */
}
.ftr__left > p { max-width: calc(var(--u) * 507); }
.ftr__left > p + p { margin-top: calc(var(--u) * 8); }
.ftr__right { margin-top: 24px; }
.ftr__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 calc(var(--u) * 24); }
.ftr__links a {
  display: inline-flex; align-items: center; min-height: calc(var(--u) * 44);
  font: 400 var(--fs-small)/var(--lh-small) var(--f-text); color: var(--ink-100); text-decoration: none;
}
.ftr__links a:hover { color: var(--btn-hover); }
.ftr__legal { margin-top: calc(var(--u) * 16); }
/* a link of the legal line never splits over two lines, and its target is 44u tall around the 20u line
   (the same way as the consent row, 45-form.css: no box moves, the focus ring stays on the words) */
.ftr__legal a { position: relative; white-space: nowrap; }
.ftr__legal a::after { content: ""; position: absolute; inset: calc(var(--u) * -12) 0; }
/* „… samo su primjer.”: no word alone on the last line where the line breaks (320 px) */
.ftr__left > p + p { text-wrap: pretty; }

@media (min-width: 1100px) {
  .ftr { display: flex; gap: calc(var(--u) * 40); padding: calc(var(--u) * 20) 0 calc(var(--u) * 64); }
  .ftr__left, .ftr__right { flex: 1 1 0; min-width: 0; }
  .ftr__left { padding-top: calc(var(--u) * 12); }
  .ftr__right { margin-top: 0; }
}
}
@layer components {
/* css/45-form.css */
/* 45-form.css · layer "components" (BUILD-PLAN-D.md 4.4; board D-Stanja). Owner: foundation.
   The form (stacked below 600 px, a row from 600 px), its states, the thank-you panel, „Na listi si.".
   Lengths as in 40-components.css: calc(var(--u) * N) is N px in the stacked layout and N u on the stage.
   No gap on the form: the empty status line must take no room. */

.wl-form { display: block; margin: 0; }

/* ---- the status line: no height while empty; 16u above the label when it speaks ---- */
.wl-status { margin: 0; }
.wl-status:not(:empty) { margin-bottom: calc(var(--u) * 16); }

/* ---- label, field, button, error line: stacked below 600 px ---- */
.wl-main {
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "label" "field" "err" "btn";
}
.wl-label {
  grid-area: label; justify-self: start; margin-bottom: 6px;
  font: 500 var(--fs-label)/var(--lh-label) var(--f-text); color: var(--ink-100);
}
.wl-input {
  grid-area: field;
  -webkit-appearance: none; appearance: none;
  width: 100%; min-width: 0; min-height: calc(var(--u) * 48); margin: 0; padding: 0 calc(var(--u) * 14);
  background: var(--field); border: 1px solid var(--ink-40); border-radius: var(--r-ctl);
  color: var(--ink-100); font: 400 max(16px, var(--fs-text))/1.4 var(--f-text);       /* never under 16 px: iOS would zoom */
  caret-color: var(--violet);
}
.wl-input:-webkit-autofill { box-shadow: inset 0 0 0 100px var(--field); -webkit-text-fill-color: var(--ink-100); caret-color: var(--violet); }
.wl-input:autofill { box-shadow: inset 0 0 0 100px var(--field); -webkit-text-fill-color: var(--ink-100); caret-color: var(--violet); }
/* a failed field: 2 px ink 100; the padding gives the pixel back, so the text does not move */
.wl-input[aria-invalid="true"] { border: 2px solid var(--ink-100); padding: 0 calc(var(--u) * 14 - 1px); }

.wl-submit { grid-area: btn; width: 100%; margin-top: 8px; }
.wl-err { margin: 0; }
.wl-main > .wl-err { grid-area: err; margin-top: calc(var(--u) * 8); }

/* ---- the row form: 600 px and wider ---- */
@media (min-width: 600px) {
  .wl-main {
    grid-template-columns: minmax(0, 1fr) auto; column-gap: calc(var(--u) * 12);
    grid-template-areas: "label label" "field btn" "err err";
  }
  .wl-label { margin-bottom: calc(var(--u) * 8); }
  .wl-submit { width: auto; margin-top: 0; }
}
/* on the stage the field is 44u tall (was 48u), as the button (40-components.css) */
@media (min-width: 1100px) {
  .wl-input { min-height: calc(var(--u) * 44); }
  .wl-label { margin-bottom: calc(var(--u) * 10); }
}

/* ---- consent, its error line, the offer line ---- */
.wl-agree { margin-top: calc(var(--u) * 12); }
.wl-consent {
  position: relative; display: flex; align-items: flex-start; gap: calc(var(--u) * 10);
  font: 400 var(--fs-small)/var(--lh-small) var(--f-text); color: var(--ink-72); cursor: pointer;
}
/* the whole row ticks the box; where the row is two lines (40u) its target is still 44u tall, and no box moves */
.wl-consent::after { content: ""; position: absolute; inset-inline: 0; inset-block: min(0px, calc((100% - var(--u) * 44) / 2)); }
.wl-check {
  -webkit-appearance: none; appearance: none; flex: none;
  width: 20px; height: 20px; margin: 0;
  border: 1.5px solid var(--ink-40); border-radius: var(--r-check); background: transparent; cursor: pointer;
}
.wl-check:checked { background: var(--ink-100) url("/img/tick.svg") center / 100% 100% no-repeat; border-color: var(--ink-100); }
@media (min-width: 1100px) {
  .wl-check { width: calc(var(--u) * 18); height: calc(var(--u) * 18); margin-top: calc(var(--u) * 1); }   /* 18u box beside the 13.5u line (was 22u) */
  .wl-agree { margin-top: calc(var(--u) * 14); }
}
.wl-consent + .wl-err { margin-top: calc(var(--u) * 8); }
.wl-offer { margin: calc(var(--u) * 8) 0 0; }
.wl-err:not([hidden]) + .wl-offer { margin-top: calc(var(--u) * 12); }
/* where the line does not fit a narrow desktop column (454 px at 1100) it breaks in two even halves, so the link
   never stands alone on the second line; one line wherever it fits, and the stacked layout breaks as on the boards */
@media (min-width: 1100px) {
  .wl-offer { text-wrap: balance; }
}

/* ---- the trap field: out of sight and out of reach, never display: none ---- */
.wl-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- states set by js/form.js (4.4, 6.9) ---- */
/* this form was used: only the status line stays, read out but not seen; the fields stay in the DOM */
.wl-form.is-done > :not(.wl-status) { display: none; }
.wl-form.is-done > .wl-status { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* another form was used: „Na listi si." stands in the slot */
.wl-form.is-listed > * { display: none; }

/* ---- the thank-you panel: its first line stands where the label stood ---- */
.thanks__lead:focus-visible { outline: none; }                /* it takes the focus for screen readers; it is no control */
.thanks__head { margin-top: calc(var(--u) * 24); }
.thanks__rows { margin-top: calc(var(--u) * 16); }
.thanks__share { margin-top: calc(var(--u) * 32); }
.thanks__share .textbtn { display: flex; }                    /* on its own line, directly under the note */
.thanks__copied { margin: 0; }

/* panel and „Na listi si." come in over 300 ms (opacity only); off under reduced motion (90-states.css) */
@keyframes wl-in { from { opacity: 0; } }
.thanks, .wl-listed { animation: wl-in var(--t-state); }
}
@layer scenes {
/* css/scenes/01-prvi-zaslon.css */
/* Part 01 · first screen (BUILD-PLAN-D.md 5.1; section 13 answers 2, 4, 7; notes/lead-scenes.md 1). Owner: scene 01. */

/* 1. base: true at every width */
.s01-body { position: relative; }
.s01-film-toggle { position: absolute; margin: 0; padding: 0; border: 0; background: none; color: var(--ink-55); cursor: pointer; }
.s01-film-toggle:hover, .s01-film-toggle:focus-visible { color: var(--ink-100); }
.s01-film-toggle__ico svg { display: block; }

/* 2. stacked: the band, the body's distances; the film and its control never show here */
@media (max-width: 1099.98px) {
  /* third term: in a window lower than 762 px and wider than it is tall (a phone held sideways, 200 % zoom on a laptop)
     the band gives way so that the h1 starts inside the first window; upright windows and 1024 x 768 keep their band */
  .s01 { --band-h: min(46.7vw, 320px, calc(var(--screen) * 0.42)); }
  .s01-pic { right: 0; aspect-ratio: 2064 / 963; }
  .s01-h { margin-left: -1px; }
  .s01-lead { margin-top: 24px; }
  .s01 .wl-slot { margin-top: 32px; }
  .s01-fact { margin-top: 36px; }
  .s01-film-toggle { display: none; }
}

/* 3. phone: nothing beyond block 2 (DM1-Hero is met by the tokens) */
@media (max-width: 599.98px) {
}

/* 4. desktop */
@media (min-width: 1100px) {
  /* owner 17. 11.: on a tall window the words sank to the floor and left a wide black field above the h1. They now sit
     in the middle of the screen below the header, a little above its centre (1 : 1.2), on every window height. */
  .s01 { --air-top: calc(var(--u) * 16); --air-bot: calc(var(--u) * 24); --row-top: 1fr; --row-bot: 1.2fr; }
  .s01-lead { margin-top: calc(var(--u) * 22); }
  .s01 .wl-slot { margin-top: calc(var(--u) * 36); }
  .s01-fact { margin-top: calc(var(--u) * 44); white-space: nowrap; width: max-content; }
  /* the band at 85 % of its first size (1224 x 765u, 1.6 : 1) so the smaller words keep their weight; it grows only in a
     window taller than it is wide-ish (84 % of the screen). Its foot always reaches the scene's lower edge. Left: 136u past
     the column (plus the short-screen step right, 40u at most), never so far that more than ~3 % of the picture leaves the
     window, never left of the column. */
  .s01-pic {
    --pic-h: max(calc(var(--u) * 765), calc(var(--screen) * 0.84));
    left: max(var(--col-x), min(calc(var(--col-x) + var(--u) * 136 + min(max(0px, (var(--u) * 860 - var(--screen)) * 0.36), var(--u) * 40)),
                                calc(100% - var(--pic-h) * 1.47)));
    top: max(calc(var(--screen) - var(--pic-h)), calc(var(--u) * -34));
    width: calc(var(--pic-h) * 1.6); height: var(--pic-h);
  }
  /* 44u box, right edge on the column's right edge, centre on the centre of the 20u fact line (the body's last 20u) */
  .s01-film-toggle { right: 0; bottom: calc(var(--u) * -12); width: calc(var(--u) * 44); height: calc(var(--u) * 44); }
  /* its own ground: invisible on black; where the box lies over the strap on a short screen the icon keeps its contrast */
  .s01-film-toggle:not([hidden]) { display: grid; place-items: center; background: var(--ground); border-radius: 50%; }
  .s01-film-toggle__ico svg { width: calc(var(--u) * 16); height: calc(var(--u) * 16); }
}
}
@layer scenes {
/* css/scenes/02-izjava.css */
/* Part 02 · statement (plan 5.2; board D2-Izjava, 1440 x 620). Type on black, no picture. */

/* 1. base: nothing is true at every width */

/* 2. stacked */
@media (max-width: 1099.98px) {
  .s02-h { font-size: var(--fs-lead); line-height: var(--lh-lead); letter-spacing: 0; }   /* a quiet title over the statement */
  .s02-text { margin-top: 16px; text-wrap: pretty; }
}

/* 3. phone: no number of its own (no phone board) */
@media (max-width: 599.98px) {
}

/* 4. desktop */
@media (min-width: 1100px) {
  .s02 { --scene-min: calc(var(--screen) * 0.6);  /* owner 17. 11.: less black around the statement (was 0.689) */ --air-top: calc(var(--u) * 48); }
  .s02-h { white-space: nowrap; font-size: calc(var(--u) * 22); line-height: 1.3; letter-spacing: 0; }
  .s02-text { margin-top: calc(var(--u) * 16); max-width: calc(var(--u) * 720); text-wrap: pretty; }
}
}
@layer scenes {
/* css/scenes/03-obavijest.css */
/* 03-obavijest.css · layer "scenes" · part 03: the notification and the mid-page form (BUILD-PLAN-D.md 4.9, 5.3).
   Boards: D3-Obavijest (1440 x 900), M3-Obavijest (390 x 844). Four blocks, in the order of plan 2.3. */

/* 1. base: true at every width (the build of the recreated notification; no size) */
.s03-notif { display: flex; flex-direction: column; font-family: var(--f-ui); font-weight: 400; color: var(--ink-100); }
.s03-notif__clock { text-align: center; color: var(--ink-72); }
.s03-notif__banner { display: flex; box-sizing: border-box; background: var(--surface); box-shadow: inset 0 0 0 1px var(--surface-edge); }
.s03-notif__icon { flex: none; align-self: center; display: block; overflow: hidden; box-shadow: 0 0 0 1px var(--rule); }
.s03-notif__icon img { display: block; width: 100%; height: 100%; }
.s03-notif__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.s03-notif__head { display: flex; justify-content: space-between; }
.s03-notif__head > span:first-child { font-weight: 600; }
.s03-notif__head > span:last-child { color: var(--ink-55); }
.s03-notif__title { font-weight: 600; }
.s03-notif__actions { display: flex; }
.s03-notif__pill { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; box-sizing: border-box; background: var(--surface); box-shadow: inset 0 0 0 1px var(--surface-edge); text-align: center; }
.s03-body.is-done .s03-prompt, .s03-body.is-listed .s03-prompt { visibility: hidden; }

/* 2. stacked: the order of M3-Obavijest, then the prompt and the form; the notification in its large set (520 wide) */
@media (max-width: 1099.98px) {
  .s03-notif { margin-top: 24px; max-width: 520px; }
  .s03-notif__clock { font-size: 16px; line-height: 22px; }
  .s03-notif__banner { margin-top: 12px; padding: 15px 17px; gap: 13px; border-radius: 24px; }
  .s03-notif__icon { width: 40px; height: 40px; border-radius: 9px; }
  .s03-notif__text { gap: 2px; }
  .s03-notif__head { font-size: 14px; line-height: 19px; }
  .s03-notif__title { font-size: 16px; line-height: 22px; }
  .s03-notif__msg { font-size: 16px; line-height: 21.5px; }
  .s03-notif__actions { margin-top: 8px; gap: 8px; }
  .s03-notif__pill { min-height: 48px; border-radius: 15px; font-size: 16px; line-height: 22px; }
  .s03-lead { margin-top: 28px; }
  .s03-rows { margin-top: 24px; }
  .s03-prompt { margin-top: 44px; }
  .s03 .wl-slot { margin-top: 24px; }
}

/* 3. phone: the notification in its small set (342 wide on the board) */
@media (max-width: 599.98px) {
  .s03-notif { max-width: 380px; }
  .s03-notif__clock { font-size: 14px; line-height: 19px; }
  .s03-notif__banner { margin-top: 10px; padding: 12px 14px 13px; gap: 10px; border-radius: 20px; }
  .s03-notif__icon { width: 36px; height: 36px; border-radius: 8px; }
  .s03-notif__text { gap: 0; }
  .s03-notif__head { font-size: 12.5px; line-height: 17px; }
  .s03-notif__title { font-size: 14.5px; line-height: 19px; }
  .s03-notif__msg { font-size: 14.5px; line-height: 19.5px; }
  .s03-notif__actions { margin-top: 8px; gap: 8px; }
  .s03-notif__pill { min-height: 44px; border-radius: 13px; font-size: 14.5px; line-height: 19px; }
}

/* 4. desktop: two columns; left h2, lead, rows, prompt; right the notification (centred on rows 1 to 3) and the form.
   Notification and form share one narrower measure (520u) so the mock sits in proportion with the smaller type. */
@media (min-width: 1100px) {
  .s03 { --row-top: 79fr; --row-bot: 59fr; --s03-w: calc(var(--u) * 520); }
  .s03-body { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); column-gap: 40px; align-items: start; }
  .s03-h { grid-column: 1; grid-row: 1; }
  .s03-lead { grid-column: 1; grid-row: 2; margin-top: calc(var(--u) * 20); }
  .s03-rows { grid-column: 1; grid-row: 3; margin-top: calc(var(--u) * 36); }
  .s03-prompt { grid-column: 1; grid-row: 4; margin-top: calc(var(--u) * 80); }
  .s03-notif { grid-column: 2; grid-row: 1 / span 3; align-self: center; justify-self: end; width: min(100%, var(--s03-w)); }
  .s03 .wl-slot { grid-column: 2; grid-row: 4; justify-self: end; width: min(100%, var(--s03-w)); margin-top: calc(var(--u) * 56); }
  .s03-notif__clock { font-size: calc(var(--u) * 15); line-height: calc(var(--u) * 20); }
  .s03-notif__banner { margin-top: calc(var(--u) * 12); padding: calc(var(--u) * 14) calc(var(--u) * 16); gap: calc(var(--u) * 13); border-radius: calc(var(--u) * 22); }
  .s03-notif__icon { width: calc(var(--u) * 38); height: calc(var(--u) * 38); border-radius: calc(var(--u) * 9); }
  .s03-notif__text { gap: calc(var(--u) * 2); }
  .s03-notif__head { font-size: calc(var(--u) * 13); line-height: calc(var(--u) * 18); }
  .s03-notif__title { font-size: calc(var(--u) * 15); line-height: calc(var(--u) * 20); }
  .s03-notif__msg { font-size: calc(var(--u) * 15); line-height: calc(var(--u) * 20.5); }
  .s03-notif__actions { margin-top: calc(var(--u) * 8); gap: calc(var(--u) * 8); }
  .s03-notif__pill { min-height: calc(var(--u) * 46); border-radius: calc(var(--u) * 14); font-size: calc(var(--u) * 15); line-height: calc(var(--u) * 20); }
}
}
@layer scenes {
/* css/scenes/04-disanje.css */
/* Part 04 · breathing (plan 5.4, circle 4.10; board D4-Predah). Four blocks of plan 2.3. */

/* 1 · base: true at every width */
.s04-fig__ring { position: relative; aspect-ratio: 1 / 1; container-type: inline-size; }
.s04-fig__ring svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.s04-fig__disc { position: absolute; inset: 7%; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--disc); }
.s04-fig__word { font: 600 8cqw/1.1667 var(--f-ui); color: var(--ink-100); }
.s04-fig__pulse { font-family: var(--f-ui); font-weight: 400; color: var(--ink-100); text-align: center; }

/* 2 · stacked */
@media (max-width: 1099.98px) {
  .s04-fig { width: min(100%, 360px); margin-inline: auto; }
  .s04-fig__pulse { margin-top: 24px; font-size: 16px; line-height: 22px; }
  .s04-text { margin-top: 52px; }
  .s04-lead { margin-top: 20px; text-wrap: pretty; }
  .s04-music { margin-top: 20px; text-wrap: pretty; }
}

/* 3 · phone */
@media (max-width: 599.98px) {
  .s04-fig { width: min(100%, 288px); }
  .s04-fig__pulse { margin-top: 20px; font-size: 14px; line-height: 19px; }
}

/* 4 · desktop */
@media (min-width: 1100px) {
  .s04 { --air-top: calc(var(--u) * 16); --air-bot: calc(var(--u) * 24); --row-top: 72fr; --row-bot: 66fr; }
  .s04-body { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); column-gap: 60px; align-items: center; }
  .s04-text { grid-column: 1; grid-row: 1; margin-bottom: calc(var(--u) * 58); }
  .s04-lead { margin-top: calc(var(--u) * 20); }
  .s04-music { margin-top: calc(var(--u) * 20); }
  .s04-fig { grid-column: 2; grid-row: 1; justify-self: end; margin-right: calc(var(--u) * 40);
             width: min(calc(var(--u) * 450), calc(100% - var(--u) * 40), calc(var(--screen) - var(--u) * 220)); }
  .s04-fig__pulse { margin-top: calc(var(--u) * 24); font-size: calc(var(--u) * 15); line-height: calc(var(--u) * 20); }
}
}
@layer scenes {
/* css/scenes/05-prosjek.css */
/* Part 05 · the day curve (plan 5.5, 4.11; board D5-Prosjek). Four blocks, plan 2.3. */

/* 1 · base: true at every width */
.s05 { overflow-x: clip; }
/* the heading stays above the motion cover of the curve (6.5: 40 px above the curve's box). With the flexed gap
   of block 4 (24u to 44u) that cover would otherwise hide the descenders of the second line until the curve draws. */
.s05-h { position: relative; z-index: 1; }
.s05-fig__curve { position: relative; }
.s05-fig__curve svg { display: block; max-width: none; }
.s05-fig__ext { position: absolute; top: 0; height: 100%; overflow: visible; }
.s05-fig__raised { position: absolute; z-index: 1; transform: translateX(-50%); white-space: nowrap; }
.s05-fig__avg { position: absolute; z-index: 1; }
.s05-fig__hours { position: relative; }
.s05-fig__hours span { position: absolute; top: 0; }

/* 2 · stacked */
@media (max-width: 1099.98px) {
  .s05-body { max-width: none; }
  .s05-h, .s05-below { max-width: 620px; }
  .s05-fig { margin-top: 56px; }
  .s05-fig__curve, .s05-fig__hours { margin-inline: calc(-1 * var(--gutter)); }
  .s05-fig__line { width: 100%; height: clamp(136px, 37vw, 216px); }
  .s05-fig__ext { left: 0; width: 100%; }
  .s05-fig__raised { left: 47.05%; bottom: calc(91.98% + 8px); }
  .s05-fig__avg { right: var(--gutter); bottom: calc(23.92% + 6px); }
  .s05-fig__hours { min-height: 20px; }
  .s05-fig__hours span:nth-child(1) { left: var(--gutter); }
  .s05-fig__hours span:nth-child(2) { left: 35.2%; }
  .s05-fig__hours span:nth-child(3) { left: 64.8%; }
  .s05-fig__hours span:nth-child(4) { right: var(--gutter); }
  .s05-below { margin-top: 40px; }
  .s05-note { margin-top: 40px; text-wrap: balance; }
}

/* 3 · phone: no phone board, nothing differs from block 2 */
@media (max-width: 599.98px) {
}

/* 4 · desktop */
@media (min-width: 1100px) {
  /* Section 13, answer 7 c: the four gaps (48 · 44 · 48 · 48 on the board) share what one screen leaves
     beside the fixed blocks: header 64u + h2 92u + hours 20u + steps 126u (302u, at the smaller type of the
     scale pass) and the curve (column width × 1.125 × 272 / 1440: the curve is 84 % of its old height, so it
     sits in proportion with the smaller words). Never under 24u. The type and the curve do not change. */
  .s05 {
    --s05-free: calc(var(--screen) - var(--u) * 302 - (var(--stage-w) - 2 * var(--gutter)) * 0.2125);
    --air-top: clamp(calc(var(--u) * 24), calc(var(--s05-free) * 0.2553), calc(var(--u) * 48));
    --air-bot: clamp(calc(var(--u) * 24), calc(var(--s05-free) * 0.2553), calc(var(--u) * 48));
    --row-top: max(0px, calc((var(--screen) - var(--u) * 810) * 0.5));   /* tall windows: split the spare height */
    --row-bot: 1fr;
  }
  .s05-h { margin-left: calc(var(--u) * -2); }
  .s05-fig { margin-top: clamp(calc(var(--u) * 24), calc(var(--s05-free) * 0.234), calc(var(--u) * 44)); }
  .s05-fig__line { width: 112.5%; margin-left: -6.25%; aspect-ratio: 1440 / 272; }
  .s05-fig__ext { left: -6.25%; width: 112.5%; }
  .s05-fig__raised { left: 46.68%; bottom: calc(91.98% + var(--u) * 10); }
  .s05-fig__avg { right: 0; bottom: calc(23.92% + var(--u) * 6); }
  .s05-fig__hours { min-height: calc(var(--u) * 20); }
  .s05-fig__hours span:nth-child(1) { left: 0; }
  .s05-fig__hours span:nth-child(2) { left: 33.36%; }
  .s05-fig__hours span:nth-child(3) { left: 66.64%; }
  .s05-fig__hours span:nth-child(4) { right: 0; }
  .s05-below {
    display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); column-gap: 40px;
    margin-top: clamp(calc(var(--u) * 24), calc(var(--s05-free) * 0.2553), calc(var(--u) * 48));
  }
  .s05-note { justify-self: end; align-self: start; width: calc(var(--u) * 360); text-wrap: balance; }
}
}
@layer scenes {
/* css/scenes/06a-narukvica.css */
/* Part 06a · band macro (plan 5.6). Boards: D6-Narukvica, DM6-Narukvica (upper part). */

/* 1. base: nothing in this part is true at every width */

/* 2. stacked */
@media (max-width: 1099.98px) {
  .s06a { --band-h: min(72.1vw, 420px); padding-bottom: 0; }   /* part 06b follows as the same screen */
  .s06a-pic { right: 0; aspect-ratio: 1560 / 1124; }
  .s06a-lead { margin-top: 24px; }
}

/* 3. phone: no phone-only numbers */

/* 4. desktop */
@media (min-width: 1100px) {
  .s06a {
    --row-top: 706fr; --row-bot: 337fr;
    /* the picture is as tall as the screen (16:10, so screen × 1.6 wide), between 90 % (1296u) and 100 % (1440u) of
       the stage: on a wide, short window (the owner's 1568 × 748) the band no longer fills half the screen, and its
       lower edge never stops above the screen's foot (no cut strap above black) */
    --makro-w: min(clamp(calc(var(--u) * 1296), calc(var(--screen) * 1.6), calc(var(--u) * 1440)),
                   calc((100vw - var(--col-x) - var(--u) * 640 - 32px) * 2.3003));
  }
  .s06a-h { margin-left: calc(var(--u) * -2); }
  .s06a-lead { margin-top: calc(var(--u) * 20); }
  .s06a-pic {
    left: calc(var(--col-x) + var(--u) * 640 - 0.15417 * var(--makro-w));
    top: 0;
    width: var(--makro-w);
    aspect-ratio: 16 / 10;
  }
}
}
@layer scenes {
/* css/scenes/06b-okret.css */
/* Part 06b · the turn (plan 5.7; board D6-Okret; below 1100 px the lower part of DM6-Narukvica).
   The pin, the canvas's opacity and the dimming of the rows belong to the motion file (plan 6.6). */

/* 1. base: true at every width */
.s06b-stage { position: relative; }
.s06b-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.s06b .specs__row { text-wrap: pretty; }   /* no single word alone on a row's last line (review) */

/* 2. stacked: no picture, the rows follow the lead of part 06a on one screen */
@media (max-width: 1099.98px) {
  .s06b .scene__media { display: none; }
  .s06b .scene__content { padding-top: 48px; }
  .s06b-more { margin-top: 8px; }
  .s06b-more > summary { margin-left: -4px; }
}

/* 3. phone: nothing of its own */
@media (max-width: 599.98px) {
}

/* 4. desktop: rows at y 467 of 900, the still centred on the screen */
@media (min-width: 1100px) {
  .s06b {
    --row-top: 758fr; --row-bot: 389fr;
    /* 17. 11.: the still at about 84 % of its old size (it filled the window's height), with black above and under it;
       its anchor moves 40 u right so the smaller band keeps the same air from the rows */
    --okret-w: min(calc(var(--u) * 1150), calc((100vw - var(--col-x) - var(--u) * 578 - 32px) * 1.7697), calc((var(--screen) - var(--u) * 128) * 1.643));
  }
  .s06b-stage { min-height: var(--screen); }
  .s06b-more { margin-top: calc(var(--u) * 24); }
  .s06b-more > summary { margin-left: calc(var(--u) * -2); }
  .s06b-pic {
    left: calc(var(--col-x) + var(--u) * 578 - 0.31747 * var(--okret-w));
    top: calc((var(--screen) - var(--okret-w) * 0.625) / 2);
    width: var(--okret-w); aspect-ratio: 16 / 10;
  }
}
}
@layer scenes {
/* css/scenes/06c-na-ruci.css */
/* Part 06c · the band on a wrist (owner 17. 11. 2026, „Da, dodaj ga”; redesign/fal/index.html). A generated picture, so
   it carries the disclosure of IMAGE-PROMPTS.md 8.2 / BUILD-CONSTRAINTS.md B7: „Umjetno generirano” burned into the
   picture, the caption below it, the alt text ending and the footer line. The generated film of the same shot waits in
   redesign/fal/web-ready until a wording for video is approved (VIDEO-SCRIPT.md 7, open question 8).
   The picture is 16:9 and fades into black on every edge, so the frame may stand narrower than the window. */

/* 1. base */
.s06c-fig { margin: 0; }
.s06c-frame { position: relative; aspect-ratio: 16 / 9; background: var(--ground); }
.s06c-frame picture, .s06c-frame img { display: block; width: 100%; height: 100%; }
.s06c-cap { color: var(--ink-55); }

/* 2. stacked: the picture across the whole window, the caption on the column */
@media (max-width: 1099.98px) {
  .s06c-content { padding-inline: 0; }
  .s06c-cap { margin: 12px 0 0; padding-inline: var(--gutter); }
}

/* 3. phone: nothing of its own */

/* 4. desktop: the picture as wide as the stage, never taller than the screen below the header; the caption on the
   column (the content box is the stage, so its gutter is the column's left edge) */
@media (min-width: 1100px) {
  .s06c { --scene-min: 0px; --row-top: 0px; --row-bot: 0px; --air-top: calc(var(--u) * 24); --air-bot: calc(var(--u) * 64); }
  .s06c-content { padding-inline: 0; }
  .s06c-body { max-width: none; }
  .s06c-frame { width: min(100%, calc((var(--screen) - var(--hdr-h) - var(--u) * 96) * 16 / 9)); margin-inline: auto; }
  .s06c-cap { margin: calc(var(--u) * 8) 0 0; padding-inline: var(--gutter); }
}
}
@layer scenes {
/* css/scenes/07a-put-podataka.css */
/* 07a-put-podataka.css · part 07a, the privacy path (BUILD-PLAN-D.md 5.8, 4.12). Board: D7-Privatnost. No phone board. */

/* 1. base: true at every width */
.s07a-h, .s07a-lead, .s07a-path__via, .s07a-path__name { margin-block: 0; }
.s07a-path { position: relative; }
.s07a-path__via { position: absolute; }
.s07a-path__ring svg, .s07a-path__line svg, .s07a-path__vline svg { display: block; width: 100%; height: 100%; }
.s07a-path__name s { text-decoration-thickness: 1px; }

/* 2. stacked: one column, the path runs downwards */
@media (max-width: 1099.98px) {
  .s07a-lead { margin-top: 24px; text-wrap: pretty; }
  .s07a-path { margin-top: 48px; }
  .s07a-path__node { position: relative; padding-left: 30px; padding-bottom: 32px; }
  .s07a-path__node--solid { padding-bottom: 64px; }
  .s07a-path__node:last-child { padding-bottom: 0; }
  .s07a-path__ring { position: absolute; left: 0; top: 6.6px; width: 14px; height: 14px; }
  .s07a-path__line { display: none; }
  .s07a-path__vline { position: absolute; left: 0; top: 24.6px; bottom: -2.6px; width: 14px; }
  .s07a-path__name { text-wrap: balance; }
  .s07a-path__via { left: 30px; top: 49px; }
}

/* 3. phone (max-width: 599.98px): nothing; no phone board for this part */

/* 4. desktop: four nodes in a row */
@media (min-width: 1100px) {
  .s07a { --scene-min: calc(var(--screen) * 0.689); --air-top: calc(var(--u) * 48); }
  .s07a-h { width: fit-content; white-space: nowrap; }
  .s07a-lead { margin-top: calc(var(--u) * 20); max-width: calc(var(--u) * 440); text-wrap: balance; }
  .s07a-path {
    display: grid; grid-template-columns: repeat(3, minmax(0, calc(var(--u) * 248))) minmax(calc(var(--u) * 80), 1fr); column-gap: calc(var(--u) * 32);
    margin-top: calc(var(--u) * 56); padding-top: calc(var(--u) * 24); min-height: calc(var(--u) * 96); box-sizing: border-box;
  }
  .s07a-path__node { display: grid; grid-template-columns: calc(var(--u) * 14) minmax(0, 1fr); align-content: start; }
  .s07a-path__ring { width: calc(var(--u) * 14); height: calc(var(--u) * 14); }
  .s07a-path__line { height: calc(var(--u) * 14); margin-right: calc(var(--u) * -32); }
  .s07a-path__vline { display: none; }
  .s07a-path__name { grid-column: 1 / -1; margin-top: calc(var(--u) * 10); white-space: nowrap; }
  .s07a-path__via { left: calc(var(--u) * 106); top: 0; }
}
}
@layer scenes {
/* css/scenes/07b-granice.css */
/* Part 07b · what Bilo does and where the limits are (plan 5.9; board D7-Granice).
   The page's one right-rail block: the knit on the left, two lists on the right. */

/* 1. base: the knit runs out into the dark at the scene's upper and lower edge instead of ending in a straight
   lit line (review finding, the same exception to plan 2.5 as part 06a). One layer over the picture, under the words. */
.s07b .scene__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(#000, rgba(0, 0, 0, 0) var(--edge-h), rgba(0, 0, 0, 0) calc(100% - var(--edge-h)), #000);
}

/* 2. stacked: the knit as a band from the left, the lists 60 px under it (frame) */
@media (max-width: 1099.98px) {
  .s07b { --band-h: min(56.4vw, 360px); --edge-h: 40px; }
  .s07b-pic { left: 0; aspect-ratio: 2400 / 1000; }
  .s07b-head2 { margin-top: 64px; }
  .s07b .rows > li { text-wrap: balance; }   /* a row that breaks never ends on one word (10.9: no orphan word) */
}

/* 3. phone: nothing of its own */
@media (max-width: 599.98px) {
}

/* 4. desktop: lists on the right rail, first head at y 276 of 900; the knit pinned to the text column
   by its right edge, above the screen's top, and never with its lit left file edge inside the window
   (third height term: plan section 13, answer 7 b) */
@media (min-width: 1100px) {
  .s07b { --row-top: 940fr; --row-bot: 637fr; --edge-h: calc(var(--u) * 96); }
  .s07b-lists { width: var(--rail); margin-left: auto; }
  .s07b-head2 { margin-top: calc(var(--u) * 56); }
  .s07b-pic {
    right: calc(var(--col-x) + var(--u) * 236);
    top: calc(var(--screen) * -0.05333);
    /* 17. 11.: the knit at about 88 % of its old size (1125 u, 1.25 screens), so the weave reads finer next to the
       smaller words, and its right edge 56 u further from the lists so the smaller curve keeps its air; the third term still keeps the lit left edge out of the window */
    height: max(calc(var(--u) * 990), calc(var(--screen) * 1.1), calc((100vw - var(--col-x) - var(--u) * 236 + 1px) * 0.625));
    aspect-ratio: 16 / 10;
  }
}
}
@layer scenes {
/* css/scenes/08-pitanja.css */
/* Part 08 · questions (plan 5.10, component 4.8). Board: S8-Pitanja. */

/* 1. base: true at every width */
.s08-list { border-top: 1px solid var(--rule); }
/* „iOS-om” never breaks at its hyphen (the string stays as the copy map has it) */
.s08-nb { white-space: nowrap; }

/* 2. stacked: the heading, then the list 48 px under it */
@media (max-width: 1099.98px) {
  .s08-list { margin-top: 48px; }
  .s08 .qa__q { padding: 16px 0; }
  /* a question that wraps never leaves one word alone on its last line */
  .s08 .qa__h { text-wrap: balance; }
}

/* 3. phone: no phone board; the list stands 40 px under the smaller heading (17. 11.) */
@media (max-width: 599.98px) {
  .s08-list { margin-top: 40px; }
}

/* 4. desktop: top-anchored, no minimum height; the heading stays while the list passes */
@media (min-width: 1100px) {
  .s08 {
    --scene-min: 0px;
    --air-top: calc(var(--u) * 48);
    --air-bot: calc(var(--u) * 121);
    --row-top: 0px;
    --row-bot: 0px;
  }
  .s08-body {
    display: grid;
    grid-template-columns: calc(var(--u) * 400) minmax(0, 1fr);
    column-gap: calc(var(--u) * 40);
    align-items: start;
  }
  .s08-h {
    position: sticky;
    width: calc(var(--u) * 400);
    top: calc(var(--hdr-h) + var(--u) * 39);
    margin: calc(var(--u) * -9) 0 0 calc(var(--u) * -4);
  }
}
}
@layer scenes {
/* css/scenes/09-prijava.css */
/* Part 09 · sign-up and maker rows (plan 5.11). Boards: D9-Prijava, DM9-Prijava, D10-Podnozje (rows). */

/* 1. base */
.s09-makers a { position: relative; }
.s09-makers a::after { content: ""; position: absolute; inset: -10px 0; }   /* the mail link's target is 44 px tall; no line and no focus ring moves (review) */

/* 2. stacked */
@media (max-width: 1099.98px) {
  .s09 { --band-h: min(65.1vw, 340px); }   /* 17. 11.: a calmer band on a tablet (was 400 px); a phone keeps 65.1vw */
  .s09-pic { left: calc(var(--gutter) - var(--band-h) * 0.0945); aspect-ratio: 1490 / 973; }   /* the lid's lit edge starts on the gutter */
  .s09-h { margin-left: -2px; }
  .s09-lead { margin-top: 24px; }
  .s09 .wl-slot { margin-top: 32px; }
  .s09-makers { padding: 0 var(--gutter) 80px; }
  .s09-makers > .rows + .rows { margin-top: 12px; }
  .s09-makers li { text-wrap: pretty; }   /* a row that breaks never ends on one word (10.9; review) */
}

/* 3. phone: no phone-only numbers */

/* 4. desktop */
@media (min-width: 1100px) {
  .s09 {
    --row-top: 1fr; --row-bot: 1fr;   /* the text block centred on the box (was 273fr / 90fr beside the larger box) */
    /* 17. 11. (owner: „too large”): the box is about four fifths of its board size and stands centred in the space right of
       the text, from 605u to the right edge of the content column. Its lit part spans 0.50069–0.969 of the picture's
       width (centre 0.7352) and 0.125–0.875 of its height (centred), so it never comes nearer than ~20 % of a screen
       to the header or to the bottom. */
    --kutija-w: min(calc(var(--u) * 1180), calc((100vw - var(--col-x) * 2 - var(--u) * 605) * 2.1365), calc((var(--screen) * 0.8 - var(--u) * 96) * 2.1365));
  }
  .s09-h { margin-left: calc(var(--u) * -4); margin-right: calc(var(--u) * 4); }   /* the board's box: (76, 361, 510 wide) */
  .s09-lead { margin-top: calc(var(--u) * 20); }
  .s09 .wl-slot { margin-top: calc(var(--u) * 40); }
  .s09-pic {
    left: calc((100vw + var(--u) * 605) / 2 - 0.7352 * var(--kutija-w));   /* the lit box centred between 605u and the column's right edge */
    top: calc((var(--screen) - var(--kutija-w) * 0.625) / 2);
    width: var(--kutija-w);
    aspect-ratio: 16 / 10;
  }
  .s09-makers {
    box-sizing: border-box;
    max-width: var(--stage-w); margin-inline: auto;
    padding: calc(var(--u) * 72) var(--gutter) calc(var(--u) * 80);   /* 17. 11.: 72u (was 112u); the centred scene already leaves black under the form */
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: calc(var(--u) * 40);
  }
}
}
@layer motion {
/* css/80-motion.css */
/* 80-motion.css · layer "motion" (BUILD-PLAN-D.md 6.4 to 6.9; section 13 answers 2, 4, 24; notes/lead-motion.md).
   Owner: motion. Every selector carries a data-* hook or a state class of plan 6.9, nothing else.
   Only opacity and transform move. With scripting off, with reduced motion and below 1100 px nothing in this
   file dims, covers or pins anything: every rule that does stands inside the motion or the pin query, so a
   paragraph, a curve or a row can never stay dim because a window was made narrower after its script armed it. */

/* ---- the film (part 01; 6.7, answer 4): it lies exactly over the still and only its opacity changes ---- */
[data-film] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 800ms linear; }
[data-film].is-on { opacity: 1; }

/* ---- the film of the band on a wrist (part 06c): it lies exactly over its first frame, the still; only its opacity
        changes, and it stays on its last frame after it has played once ---- */
[data-clip] { opacity: 0; transition: opacity 300ms linear; }
[data-clip].is-on { opacity: 1; }

/* ---- the turn's canvas (part 06b; 6.6, lead-motion.md): a frame shows at once, the way back to the sharp still
        at rest is a fade of 0.3 s ---- */
[data-turn-canvas] { opacity: 0; transition: opacity 300ms linear; }
[data-turn-stage].is-turning [data-turn-canvas] { opacity: 1; transition: none; }

/* below 1100 px the first-screen picture is another crop: a 16:10 film must never lie over it, and its control never shows */
@media (max-width: 1099.98px) {
  [data-film], [data-film-toggle] { display: none; }
}

@media (min-width: 1100px) and (prefers-reduced-motion: no-preference) {
  /* ---- the statement (part 02; 6.4, answer 24): unlit ink 40 on an ink 72 paragraph (0.40 / 0.72), lit = the paragraph's own ink ---- */
  [data-words].is-armed .w { opacity: 0.5556; }
  [data-words].is-armed .w.is-lit { opacity: 1; transition: opacity 200ms linear; }      /* the transition only on the way up: arming dims at once, unseen */

  /* ---- the day curve (part 05; 6.5): a black cover is drawn away from left to right, then the labels come ---- */
  [data-curve].is-armed::after {
    content: ""; position: absolute; inset: -40px -7%; background: var(--ground);
    transform-origin: right center; transform: scaleX(1); transition: transform 1600ms cubic-bezier(.4, 0, .2, 1);
  }
  [data-curve].is-drawn::after { transform: scaleX(0); }
  [data-curve].is-armed [data-curve-label] { z-index: 1; }
  [data-curve-label].is-armed { opacity: 0; }
  [data-curve-label].is-armed.is-drawn { opacity: 1; transition: opacity 300ms linear 1500ms; }      /* delay and fade only on the way in */
}

/* ---- the pinned turn (part 06b; 6.6): the wrapper is three screens tall from the first paint, the stage sticks ---- */
@media (min-width: 1100px) and (min-height: 660px) and (max-aspect-ratio: 11/5) and (prefers-reduced-motion: no-preference) {
  html.js:not(.lite) [data-turn].has-turn { height: calc(var(--screen) * 3); }
  html.js:not(.lite) [data-turn].has-turn [data-turn-stage] { position: sticky; top: 0; }
  [data-turn].is-armed [data-turn-row] .specs__val { opacity: 0.55; transition: opacity 200ms linear; }
  [data-turn].is-armed [data-turn-row].is-lit .specs__val { opacity: 1; }
}
}
@layer states {
/* css/90-states.css */
/* 90-states.css · layer "states", the last one: it wins over every scene and over the motion file
   (BUILD-PLAN-D.md 1.3, 4.14). Owner: foundation. [hidden], forced colours, reduced motion, print. */

[hidden] { display: none; }

/* ---- forced colours (Windows contrast themes): edges that were shadows or fills get a real border ---- */
@media (forced-colors: active) {
  .s03-notif__banner, .s03-notif__pill { border: 1px solid transparent; }
  .wl-check { -webkit-appearance: auto; appearance: auto; }
  .wl-check:checked { background: none; }
  /* drawn lines (icons, the curve, the rings and lines of the diagrams) take the theme's text colour */
  svg[stroke], svg [stroke] { stroke: CanvasText; }
  /* the wordmark is a light picture: on a light theme it keeps a black plate (a picture is never recoloured) */
  .hdr__logo { forced-color-adjust: none; background: var(--ground); }
}

/* ---- reduced motion: no transition and no animation at all; hover and focus still change colour, at once ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none; transition: none; }
}

/* ---- print: dark ink on paper, no fixed layers, no screen heights ---- */
@media print {
  :root {
    --ground: #FFFFFF; --ink-100: #000000; --ink-72: rgba(0, 0, 0, 0.80); --ink-55: rgba(0, 0, 0, 0.65);
    --ink-40: rgba(0, 0, 0, 0.45); --rule: rgba(0, 0, 0, 0.25); --field: #FFFFFF;
    --btn-fill: #FFFFFF; --btn-ink: #000000; --stack-gap: 32px;
  }
  .hdr { position: static; height: auto; }
  .hdr__cta, .skip, .scene__media { display: none; }
  .scene__content { min-height: 0; }
  .btn { border-color: var(--ink-100); }
  .ftr { padding-bottom: 0; }
  .hdr__logo { background: #000000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }      /* the wordmark is light: it keeps a black plate on paper */
}
}
