/* Fanfare landing (/). Same look as the admin: Jagoda on warm white, Figtree, the Zastavice logo. */
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
/* Layout: one reading column with a wide hero; the closed loop is the spine, features hang off it as a filterable ledger. */
:root {
  --paper: #F8F5F5;
  --surface: #FFFDFD;
  --ink: #191A24;
  --slate: #61626C;
  --brass: #D60B49;
  --mango: #FDBE45;
  --brass-wash: #FFEAEB;
  --line: #EAE2E3;
  --ok: #17795a;
  --ok-wash: rgb(23 121 90 / 0.12);
  --wait: #a35f00;
  --wait-wash: rgb(253 190 69 / 0.22);
  --plan: #61626c;
  --plan-wash: rgb(97 98 108 / 0.1);
  --display: "Figtree", -apple-system, "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", -apple-system, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --r: 10px;
  --r-lg: 18px;
}
:root[data-theme="dark"] {
  --paper: #100E13; --surface: #1A181E; --ink: #EFEDF3; --slate: #AFACB6;
  --brass: #F87584; --brass-wash: #472024; --line: #343238;
  --ok: #69d6aa; --ok-wash: rgb(105 214 170 / 0.14); --wait: #fdbe45; --wait-wash: rgb(253 190 69 / 0.15);
  --plan: #afacb6; --plan-wash: rgb(175 172 182 / 0.13); color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 10; background: var(--paper);
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
.wrap {
  max-width: 72rem; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-wrap: balance; margin: 0; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); line-height: 1.02; font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.1; font-weight: 500; }
h3 { font-size: 1.25rem; line-height: 1.25; }
p { margin: 0; }
.eyebrow {
  font: 600 0.78rem/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass);
}
.lede { color: var(--slate); font-size: 1.15rem; max-width: 36rem; }
.num { font-variant-numeric: tabular-nums; }

/* Header */
header.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; gap: 1.5rem; padding-block: 0.8rem; }
.mark { display: flex; align-items: center; text-decoration: none; }
.mark .logo { display: block; height: 34px; width: auto; }
nav.links { display: flex; gap: 1.25rem; margin-left: auto; font-size: 0.95rem; color: var(--slate); }
nav.links a { text-decoration: none; }
nav.links a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.7rem 1.15rem; border-radius: 999px;
  background: var(--ink); color: var(--paper); font: 600 0.95rem/1 var(--body); text-decoration: none; border: 0; white-space: nowrap; cursor: pointer;
}
.btn:hover { background: var(--brass); color: var(--surface); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--brass); color: var(--brass); background: transparent; }
/* HR | EN: the same segmented control as the admin's sign-in. */
nav.lang {
  display: inline-flex; padding: 2px; gap: 2px; border-radius: 10px;
  background: color-mix(in srgb, var(--ink) 7%, transparent); font: 600 0.8rem/1 var(--body);
}
nav.lang a {
  min-width: 2.3rem; padding: 0.4rem 0.6rem; border-radius: 8px; text-align: center;
  text-decoration: none; letter-spacing: 0.04em; color: var(--slate);
}
nav.lang a:hover { color: var(--ink); }
nav.lang a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / 0.12); }
@media (max-width: 1000px) { nav.links { display: none; } nav.lang { margin-left: auto; } }
@media (max-width: 560px) { header.top .btn:not(.login) { display: none; } }

/* Hero */
.hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero .copy { display: grid; gap: 1.4rem; min-width: 0; }
.hero h1 em { font-style: italic; color: var(--brass); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

/* The receipt: one real post traced to customers */
.receipt {
  margin: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.4rem; display: grid; gap: 1.1rem; box-shadow: 0 30px 60px -40px rgb(25 26 36 / 0.45);
  min-width: 0;
}
.receipt .head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.receipt .head strong { font: 600 1.05rem/1.3 var(--display); }
.receipt .meta { font: 500 0.75rem/1.4 var(--mono); color: var(--slate); }
.funnel { display: grid; gap: 0.55rem; }
.step { display: grid; grid-template-columns: 7.5rem 1fr auto; gap: 0.75rem; align-items: center; font-size: 0.92rem; }
.step .bar { height: 10px; border-radius: 99px; background: var(--brass-wash); overflow: hidden; }
.step .bar i { display: block; height: 100%; background: var(--brass); border-radius: 99px; }
.step b { font: 500 0.88rem/1 var(--mono); }
.step.muted { color: var(--slate); }
.receipt .foot { border-top: 1px dashed var(--line); padding-top: 0.9rem; font-size: 0.85rem; color: var(--slate); }

/* Sections */
section.block { padding-block: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--line); }
.block .intro { display: grid; gap: 0.9rem; max-width: 44rem; margin-bottom: 2.5rem; }
/* An intro with the walkthrough video beside it; the video plays only when started. */
.intro-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-bottom: 2.5rem; }
.intro-row .intro { margin-bottom: 0; }
.guide { margin: 0; display: grid; gap: 0.6rem; min-width: 0; }
.guide video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: 0 30px 60px -38px rgb(25 26 36 / 0.5); }
.guide figcaption { color: var(--slate); font-size: 0.88rem; }
.guide-frame { position: relative; }
.guide-play { position: absolute; left: 50%; top: 75%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 0.6rem; font: 600 0.95rem/1 var(--body); padding: 0.85rem 1.3rem 0.85rem 1rem; border: 0; border-radius: 999px; background: var(--brass); color: #fff; white-space: nowrap; cursor: pointer; box-shadow: 0 14px 30px -14px rgb(214 11 73 / 0.8); transition: transform 200ms; }
.guide-play:hover { transform: translate(-50%, -50%) scale(1.04); }
.guide-play:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 560px) { .guide-play { top: 75%; gap: 0.45rem; font-size: 0.82rem; padding: 0.6rem 0.95rem 0.6rem 0.8rem; } }
.guide-play::before { content: ""; border-left: 0.7rem solid currentColor; border-block: 0.45rem solid transparent; }
@media (min-width: 861px) { .guide { width: 70%; justify-self: start; } }
@media (max-width: 860px) { .intro-row { grid-template-columns: 1fr; } }

/* Loop */
.loop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.loop li { background: var(--surface); padding: 1.3rem 1.2rem 1.4rem; display: grid; gap: 0.5rem; align-content: start; min-width: 0; }
.loop .n { font: 500 0.78rem/1 var(--mono); color: var(--brass); }
.loop p { color: var(--slate); font-size: 0.95rem; }
.loop li.back { background: var(--brass-wash); }
@media (max-width: 860px) { .loop { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .loop { grid-template-columns: 1fr; } }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }
.principles div { display: grid; gap: 0.5rem; align-content: start; border-top: 2px solid var(--ink); padding-top: 0.9rem; min-width: 0; }
.principles p { color: var(--slate); font-size: 0.95rem; }
@media (max-width: 860px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .principles { grid-template-columns: 1fr; } }

/* Feature ledger */
.areas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.25rem 3rem; }
@media (max-width: 860px) { .areas { grid-template-columns: 1fr; } }
.area { display: grid; gap: 0.25rem; align-content: start; min-width: 0; }
.area h3 { padding-bottom: 0.6rem; border-bottom: 1px solid var(--ink); margin-bottom: 0.2rem; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.feat { display: grid; gap: 0.2rem; padding-block: 0.7rem; border-bottom: 1px solid var(--line); }
.feat strong { font-weight: 600; font-size: 0.98rem; }
.feat p { color: var(--slate); font-size: 0.92rem; line-height: 1.5; }

/* Networks */
.nets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.net { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem; display: grid; gap: 0.6rem; align-content: start; min-width: 0; }
.net h3 { font-size: 1.1rem; }
.net p { color: var(--slate); font-size: 0.9rem; }
@media (max-width: 860px) { .nets { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .nets { grid-template-columns: 1fr; } }

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.facts div { display: grid; gap: 0.3rem; min-width: 0; }
.facts b { font: 500 2.4rem/1 var(--display); }
.facts span { color: var(--slate); font-size: 0.92rem; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); } }

/* Security */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 2rem; }
.trust div { display: grid; gap: 0.35rem; align-content: start; min-width: 0; }
.trust p { color: var(--slate); font-size: 0.95rem; }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr; } }

/* CTA */
.cta { background: var(--ink); color: var(--paper); border-radius: var(--r-lg); padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; }
.cta h2 { color: var(--paper); }
.cta p { color: color-mix(in srgb, var(--paper) 75%, transparent); }
.cta ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; font-size: 0.95rem; }
.cta li::before { content: "→ "; color: var(--brass); }
.cta .addr { font: 500 1.05rem/1.4 var(--mono); color: var(--paper); user-select: all; text-decoration-color: var(--brass); }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }
footer { padding-block: 2.5rem 3rem; color: var(--slate); font-size: 0.88rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
@media (prefers-reduced-motion: no-preference) {
  .step .bar i { animation: grow 1.1s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes grow { from { width: 0; } }
}
.step .bar i.w100 { width: 100%; }
.step .bar i.w9 { width: 9%; }
.step .bar i.w2 { width: 2%; }
.stack { display: grid; gap: 1rem; min-width: 0; }
.top .login { margin-left: 0; }
footer nav { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; }
footer nav a { text-decoration: none; }
footer nav a:hover { color: var(--ink); }

/* Hero: offer → post */
.transform { margin: 0; display: grid; grid-template-columns: 1fr auto 1.15fr; align-items: center; gap: 0.75rem; min-width: 0; }
.transform figcaption { grid-column: 1 / -1; color: var(--slate); font-size: 0.9rem; text-align: center; }
.offer-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.1rem; display: grid; gap: 0.6rem; min-width: 0; }
.offer-card strong { font: 600 1.05rem/1.25 var(--display); }
.offer-card dl { margin: 0; display: grid; gap: 0.35rem; }
.offer-card dl div { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.88rem; border-top: 1px dashed var(--line); padding-top: 0.35rem; }
.offer-card dt { color: var(--slate); }
.offer-card dd { margin: 0; font-weight: 600; }
.arrow { width: 56px; color: var(--brass); }
.phone { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 0.6rem; box-shadow: 0 30px 60px -38px rgb(25 26 36 / 0.5); display: grid; gap: 0.5rem; min-width: 0; }
.phone img, .phone video { display: block; width: 100%; height: auto; border-radius: 14px; background: var(--brass-wash); }
.phone img { aspect-ratio: 4 / 5; object-fit: cover; }
.ig-head { display: flex; align-items: center; gap: 0.45rem; font-size: 0.82rem; padding: 0.1rem 0.2rem; }
.avatar { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brass); color: var(--surface); font: 700 0.62rem/1 var(--body); }
.caption { font-size: 0.8rem; line-height: 1.45; color: var(--slate); padding: 0 0.2rem 0.2rem; }
.caption b { color: var(--ink); margin-right: 0.25rem; }
/* The reel from the same offer, small over the post's corner; a link to the full examples. */
.transform .phone { position: relative; }
.hero { overflow-x: clip; }
.mini-reel { position: absolute; right: -1rem; top: 3rem; width: 38%; padding: 0.3rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 40px -20px rgb(25 26 36 / 0.6); display: block; color: var(--paper); text-decoration: none; transition: transform 200ms; }
.mini-reel:hover { transform: translateY(-3px); }
.mini-reel:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.mini-reel video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 11px; background: var(--brass-wash); }
.mini-reel span { position: absolute; left: 0.75rem; bottom: 0.75rem; display: inline-flex; align-items: center; gap: 0.3rem; font: 600 0.7rem/1 var(--body); letter-spacing: 0.04em; padding: 0.3rem 0.5rem; border-radius: 999px; background: rgb(16 14 19 / 0.65); }
.mini-reel span::before { content: ""; border-left: 0.42rem solid currentColor; border-block: 0.27rem solid transparent; }
/* Side by side the reel sits under the arrow, between the offer and the post; stacked on a phone
   it goes over the post's corner instead. A hidden copy never loads its video. */
.flow { display: grid; justify-items: center; align-content: center; }
@media (min-width: 561px) { .flow { align-self: stretch; position: relative; } }
/* Tilted over the post's edge, as if it hung from it, its foot level with the post's frame. */
.transform .phone { z-index: 1; }
.mini-reel.in-flow { position: absolute; z-index: 2; right: 50%; top: auto; bottom: 0; width: 6.5rem; margin-right: -3.25rem; transform-origin: top right; transform: translateX(0.6rem) rotate(7deg); transition: transform 250ms; }
.mini-reel.in-flow:hover { transform: translateX(0.6rem) rotate(3deg); }
.mini-reel.in-phone { display: none; }
@media (max-width: 560px) {
  .mini-reel.in-flow { display: none; }
  .mini-reel.in-phone { display: block; right: -0.5rem; width: 32%; }
  .flow { justify-self: center; }
  .transform { grid-template-columns: 1fr; }
  .arrow { transform: rotate(90deg); justify-self: center; width: 40px; }
  .phone { max-width: 22rem; justify-self: center; }
}

/* Reel + gallery */
.made { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 2rem; align-items: start; }
.reel { margin: 0; display: grid; gap: 0.6rem; }
.reel figcaption, .gallery span { color: var(--slate); font-size: 0.88rem; }
.phone.tall video { aspect-ratio: 9 / 16; object-fit: cover; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.gallery li { display: grid; gap: 0.4rem; min-width: 0; }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); background: var(--brass-wash); }
@media (max-width: 760px) { .made { grid-template-columns: 1fr; } .reel .phone { max-width: 20rem; justify-self: center; } }

/* Everyday screens */
.screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.screen { margin: 0; display: grid; gap: 0.9rem; align-content: start; }
.screen figcaption { display: grid; gap: 0.2rem; color: var(--slate); font-size: 0.92rem; }
.screen figcaption strong { color: var(--ink); font: 600 1.1rem/1.3 var(--display); }
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1rem; min-height: 12.5rem; display: grid; gap: 0.6rem; align-content: start; position: relative; overflow: hidden; }
.chip { justify-self: start; font: 600 0.7rem/1 var(--body); padding: 0.35rem 0.55rem; border-radius: 999px; background: var(--brass-wash); color: var(--brass); }
.swipe { place-items: center; }
.swipe .card { width: 86%; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 0.9rem; display: grid; gap: 0.6rem; transform: rotate(4deg) translateX(6%); box-shadow: 0 16px 30px -22px rgb(25 26 36 / 0.6); position: relative; }
.swipe .card.back { position: absolute; top: 1.4rem; height: 9rem; transform: rotate(-3deg); box-shadow: none; opacity: 0.6; }
.swipe .card p { font-size: 0.88rem; }
.hint { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--slate); }
.hint span:last-child { color: var(--ok); font-weight: 600; }
.inbox .msg { background: var(--paper); border-radius: 12px 12px 12px 4px; padding: 0.6rem 0.75rem; font-size: 0.86rem; max-width: 90%; }
.inbox .suggest { border: 1px dashed var(--brass); border-radius: 12px 12px 4px 12px; padding: 0.6rem 0.75rem; font-size: 0.86rem; display: grid; gap: 0.4rem; justify-self: end; max-width: 92%; }
.inbox .send { display: flex; justify-content: flex-end; gap: 0.75rem; font-size: 0.8rem; align-items: center; color: var(--slate); }
.inbox .send b { background: var(--ink); color: var(--paper); padding: 0.4rem 0.75rem; border-radius: 999px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; }
.cal-head b { font: 600 1.05rem/1 var(--display); }
.days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.days li { font: 500 0.72rem/1 var(--mono); color: var(--slate); text-align: center; padding: 0.45rem 0; border-radius: 6px; position: relative; }
.days li.p { background: var(--brass-wash); color: var(--ink); }
.days li.h::after { content: ""; position: absolute; top: 3px; right: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--brass); }
@media (max-width: 860px) { .screens { grid-template-columns: 1fr; max-width: 26rem; } }

/* Results */
.results { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2.5rem; align-items: center; }
.results .intro { margin-bottom: 0; }
.bigfunnel { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; display: grid; gap: 0.8rem; }
.bigfunnel .row { display: grid; grid-template-columns: 7.5rem 1fr 5rem; gap: 0.9rem; align-items: center; font-size: 0.95rem; }
.bigfunnel i { display: block; height: 14px; border-radius: 99px; background: var(--brass); }
.bigfunnel b { font: 500 0.95rem/1 var(--mono); text-align: right; }
.bigfunnel .total { border-top: 1px dashed var(--line); padding-top: 0.8rem; }
.bigfunnel .total b { color: var(--brass); font-size: 1.05rem; }
.bigfunnel figcaption { color: var(--slate); font-size: 0.85rem; }
.f100 { width: 100%; } .f62 { width: 62%; } .f34 { width: 34%; } .f18 { width: 18%; }
@media (max-width: 860px) { .results { grid-template-columns: 1fr; } .bigfunnel .row { grid-template-columns: 6.5rem 1fr 4.5rem; } }
.gallery li.tall img { aspect-ratio: 9 / 16; }
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gallery li.tall { grid-row: span 2; } }

/* Service / product switch */
.hero-visual { display: grid; gap: 1rem; min-width: 0; }
.cases { justify-self: center; display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 0.5rem 0.75rem; }
.cases-label { font: 600 0.78rem/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass); }
.cases-track { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 0.3rem; border: 1.5px solid var(--brass); border-radius: 999px; background: var(--surface); box-shadow: 0 10px 30px -18px rgb(214 11 73 / 0.7); }
.cases-thumb { position: absolute; top: 0.3rem; bottom: 0.3rem; left: 0.3rem; width: calc(50% - 0.3rem); border-radius: 999px; background: var(--ink); transition: transform 320ms cubic-bezier(.3,.8,.3,1); }
html[data-case="proizvod"] .cases-thumb { transform: translateX(100%); }
.cases button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; font: 600 0.92rem/1 var(--body); padding: 0.7rem 1.1rem; border: 0; border-radius: 999px; background: transparent; color: var(--slate); cursor: pointer; white-space: nowrap; transition: color 200ms; }
.cases button svg { width: 1.15rem; height: 1.15rem; flex: none; }
.cases button:hover { color: var(--ink); }
.cases button[aria-pressed="true"] { color: var(--paper); }
#primjeri .cases, #examples .cases { justify-content: flex-start; margin-bottom: 1.5rem; }
@media (prefers-reduced-motion: no-preference) {
  .cases-track { animation: cases-nudge 1.6s ease-out 0.8s 2; }
  @keyframes cases-nudge {
    0% { box-shadow: 0 0 0 0 rgb(214 11 73 / 0.45), 0 10px 30px -18px rgb(214 11 73 / 0.7); }
    70% { box-shadow: 0 0 0 12px rgb(214 11 73 / 0), 0 10px 30px -18px rgb(214 11 73 / 0.7); }
    100% { box-shadow: 0 0 0 0 rgb(214 11 73 / 0), 0 10px 30px -18px rgb(214 11 73 / 0.7); }
  }
}
@media (max-width: 420px) { .cases button { padding: 0.65rem 0.8rem; font-size: 0.86rem; } }
html:not([data-case="proizvod"]) [data-case="proizvod"],
html[data-case="proizvod"] [data-case="usluga"] { display: none; }
.avatar.olive { background: #17795a; }
.offer-card dd s { color: var(--slate); font-weight: 400; margin-left: 0.25rem; }
.gallery.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 40rem; }
img.avatar { width: 28px; height: 28px; background: none; border-radius: 50%; }

/* Phone: the eight steps as titles on the left; the chosen step's text on the right. */
.loop-detail { display: none; }
@media (max-width: 600px) {
  .loop-split { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 0.75rem; align-items: start; }
  .loop-split .loop { grid-template-columns: 1fr; gap: 0; }
  .loop-split .loop li { padding: 0.7rem 0.8rem; gap: 0.2rem; cursor: pointer; border-left: 3px solid transparent; }
  .loop-split .loop li h3 { font-size: 0.98rem; }
  .loop-split .loop li .n { font-size: 0.68rem; }
  .loop-split .loop li p { display: none; }
  .loop-split .loop li.back:not(.active) { background: var(--surface); }
  .loop-split .loop li.active { background: var(--brass-wash); border-left-color: var(--brass); }
  .loop-detail { display: grid; gap: 0.5rem; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 4.5rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1rem; min-width: 0; }
  .loop-detail .n { font: 500 0.72rem/1 var(--mono); color: var(--brass); }
  .loop-detail h3 { font-size: 1.1rem; }
  .loop-detail p { color: var(--slate); font-size: 0.95rem; }
}

/* Light sweep over the example switch until it is first used. */
.cases-track { overflow: hidden; isolation: isolate; }
.cases-track::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; background: linear-gradient(100deg, transparent 30%, rgb(255 222 230 / 0.55) 47%, rgb(255 255 255 / 0.8) 50%, rgb(255 222 230 / 0.55) 53%, transparent 70%); background-size: 250% 100%; background-position: 130% 0; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .cases:not(.seen) .cases-track::after { animation: cases-sweep 3.6s ease-in-out 1.2s infinite; }
  @keyframes cases-sweep {
    0% { background-position: 130% 0; opacity: 1; }
    45% { background-position: -30% 0; opacity: 1; }
    46%, 100% { background-position: -30% 0; opacity: 0; }
  }
}

/* Full-screen viewer: a tap on a visual opens it, like an Instagram gallery. */
.zoomable { cursor: zoom-in; }
.viewer { position: fixed; inset: 0; z-index: 50; display: grid; grid-template-rows: auto 1fr auto auto; background: rgb(16 14 19 / 0.97); color: #EFEDF3; padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(16px, env(safe-area-inset-left, 0px)); touch-action: pan-y; }
.viewer[hidden] { display: none; }
.viewer-bar { display: flex; justify-content: space-between; align-items: center; padding-block: 0.75rem; font: 500 0.85rem/1 var(--mono); }
.viewer-close { width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.12); color: inherit; font: 400 1.6rem/1 var(--body); cursor: pointer; }
.viewer-stage { display: grid; place-items: center; min-height: 0; overflow: hidden; }
.viewer-stage img, .viewer-stage video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; box-shadow: 0 30px 80px -30px rgb(0 0 0 / 0.8); }
.viewer-dots { display: flex; justify-content: center; gap: 6px; padding-top: 0.75rem; }
.viewer-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgb(255 255 255 / 0.3); }
.viewer-dots i.on { background: #EFEDF3; }
.viewer-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 0.6rem 1rem; }
.viewer-caption { font-size: 0.9rem; opacity: 0.8; min-width: 0; text-align: center; flex: 1; }
.viewer-nav { width: 2.75rem; height: 2.75rem; flex: none; border: 1px solid rgb(255 255 255 / 0.25); border-radius: 50%; background: transparent; color: inherit; font: 400 1.3rem/1 var(--body); cursor: pointer; }
.viewer-nav:disabled { opacity: 0.25; cursor: default; }
@media (prefers-reduced-motion: no-preference) {
  .viewer-stage > * { animation: viewer-in 220ms ease-out; }
  @keyframes viewer-in { from { opacity: 0; transform: scale(0.97); } }
}

/* Theme: light by default; the sun/moon button in the header switches and is remembered. */
.theme-toggle {
  display: grid; place-items: center; flex: none;
  width: 2.5rem; height: 2.5rem; padding: 0;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--ink); cursor: pointer;
}
.theme-toggle svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (max-width: 1000px) { .theme-toggle { margin-left: auto; } nav.lang { margin-left: 0; } }

/* Phones and tablets: the section links open from a menu button at the end of the bar. */
.menu-toggle {
  display: none; place-items: center; flex: none;
  width: 2.5rem; height: 2.5rem; padding: 0;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--ink); cursor: pointer;
}
.menu-toggle svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.menu-toggle[aria-expanded="true"] { border-color: var(--brass); color: var(--brass); }
nav.links .menu-only { display: none; }
@media (max-width: 1000px) {
  .menu-toggle { display: grid; order: 10; }
  header.top nav.links.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    padding: 0.25rem max(16px, env(safe-area-inset-right, 0px)) 0.75rem max(16px, env(safe-area-inset-left, 0px));
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -24px rgb(25 26 36 / 0.45);
  }
  nav.links.open a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 1.05rem; }
  nav.links.open a:last-child { border-bottom: 0; }
  nav.links.open .menu-only { display: block; }
}

/* The logo's pennants wave gently, as in the admin; still with reduced motion. */
.mark .wave-top, .mark .wave-low {
  transform-box: view-box;
  animation: wave 2.6s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}
.mark .wave-top { transform-origin: 80px 68px; }
.mark .wave-low { transform-origin: 90px 146px; animation-delay: 0.35s; }
@keyframes wave { from { transform: skewY(0deg) scaleX(1); } to { transform: skewY(-4deg) scaleX(0.97); } }
@media (prefers-reduced-motion: reduce) { .mark .wave-top, .mark .wave-low { animation: none; } }
@media (max-width: 420px) {
  header.top .wrap { gap: 0.6rem; }
  /* The language moves into the menu, so the bar fits a small phone. */
  nav.lang { display: none; }
  .menu-toggle { width: 2.25rem; height: 2.25rem; }
  .mark .logo { height: 28px; }
  .theme-toggle { width: 2.25rem; height: 2.25rem; }
}
