/* MentorOS: bilježnica na kockice i školska ploča */

:root {
  --ink: #1a2e35;
  --ink-2: #223c44;
  --ink-deep: #13252b;
  --mint: #59E4A8;
  --mint-soft: #A9F1CE;
  --green: #2ea36b;
  --paper: #F6F9F7;
  --grid: rgba(26,46,53,.055);
  --line: #DCE6E3;
  --muted: #B4C6C4;
  --body: #3D5258;
  --label: #66797E;
  --wa: #25D366;
  --ease: cubic-bezier(.2,.8,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Poppins, system-ui, sans-serif; font-size: 17px; line-height: 1.6; overflow-x: hidden; }
main { overflow-x: hidden; overflow-x: clip; }
img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.025em; line-height: 1.08; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
section[id], footer[id] { scroll-margin-top: 72px; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 8px; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
.hand { font-family: Caveat, "Comic Sans MS", cursive; font-weight: 700; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sec { padding: 110px 0; }
.h2 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; letter-spacing: -.035em; }
/* sporedne sekcije imaju manji naslov, da se ne natječu s glavnima */
.h2-sm { font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -.03em; }
.sec-tight { padding: 80px 0; }
.lead { font-size: 19px; line-height: 1.65; color: var(--body); max-width: 520px; }
/* rukom pisana bilješka iznad glavnih naslova */
.kicker { display: inline-block; font-size: 30px; line-height: 1.1; color: var(--green); transform: rotate(-3deg); transform-origin: left; margin-bottom: 8px; }
.sec-head { margin-bottom: 44px; max-width: 720px; }
.sec-lead { margin-top: 12px; font-size: 17px; color: var(--body); max-width: 560px; }
.arrow { width: 72px; height: 42px; color: currentColor; flex: 0 0 auto; }

/* bilježnica na kockice */
.paper { background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px; background-position: -1px -1px; }

/* diskretna granica između sekcija: isprekidana crta u širini sadržaja, s točkicom u sredini */
.split { position: relative; }
.split::before { content: ""; position: absolute; top: 0; left: 50%; width: min(1112px, calc(100% - 48px)); transform: translateX(-50%);
  border-top: 2px dashed rgba(26,46,53,.12); }
.split::after { content: ""; position: absolute; top: -4px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 6px var(--paper); }

/* ---------- Gumbi ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 16px/1 Poppins, sans-serif; text-decoration: none; white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s, border-color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-lg { min-height: 60px; padding: 0 32px; font-size: 18px; }
.btn-mint { background: var(--mint); color: var(--ink); }
.btn-mint:hover { box-shadow: 0 14px 34px -12px var(--mint); }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.3); }
.btn-ghost:hover { border-color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--green); box-shadow: 0 14px 30px -14px var(--ink); }

/* ---------- Zaglavlje ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(26,46,53,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.06); color: #fff; }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand svg { width: 40px; height: 40px; transition: transform .6s var(--ease); }
.brand:hover svg { transform: rotate(-25deg); }
.brand-name { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.brand-name b { color: var(--mint); font-weight: 700; }
.navlinks { display: flex; gap: 30px; margin-left: auto; margin-right: 12px; }
.navlinks a { color: #D5E0DD; text-decoration: none; font-size: 15px; position: relative; padding: 6px 0; }
.navlinks a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--mint); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.navlinks a:hover { color: #fff; }
.navlinks a:hover::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; min-height: min(86vh, 800px); display: flex; align-items: center; overflow: hidden; padding: 80px 0 100px; }
.pi-field { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 80% at 20% 50%, rgba(26,46,53,.93) 20%, rgba(26,46,53,.4) 60%, transparent 85%); }
.hero-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 26px; width: 100%; pointer-events: none; }
.hero-in a { pointer-events: auto; }
.eyebrow { font-size: 15px; font-weight: 500; color: var(--mint); animation: rise .8s var(--ease) both; }
.hero-h { font-size: clamp(40px, 6.4vw, 88px); font-weight: 800; line-height: 1; letter-spacing: -.04em; max-width: 960px; animation: rise .9s .08s var(--ease) both; }
.hero-h > span:first-of-type { color: var(--mint); display: block; }
.hero-lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 500px; animation: rise .9s .18s var(--ease) both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; animation: rise .9s .28s var(--ease) both; }
/* kartica koja pluta preko ruba heroja: tko, koliko dugo, gdje */
.strip-card { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: -128px 0 64px; background: #fff; border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 2px 4px rgba(26,46,53,.04), 0 34px 60px -34px rgba(26,46,53,.55); }
.strip-card li { display: flex; align-items: center; gap: 16px; padding: 24px 28px; }
.strip-card li + li { border-left: 2px dashed rgba(26,46,53,.09); }
.strip-ico { flex: 0 0 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: rgba(89,228,168,.22); color: var(--green); transform: rotate(-6deg); transition: transform .5s var(--ease); }
.strip-card li:hover .strip-ico { transform: rotate(0) scale(1.06); }
.strip-ico svg { width: 24px; height: 24px; }
.strip-txt { display: flex; flex-direction: column; line-height: 1.25; }
.strip-txt b { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.strip-txt > span { font-size: 14px; color: var(--label); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- S čim pomažem ---------- */
.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.level { position: relative; padding-top: 8px; }
.level-n { display: block; font-size: 64px; line-height: 1; color: var(--green); margin-bottom: 10px; transform: rotate(-6deg); transform-origin: left bottom; }
.level h3 { font-size: 26px; font-weight: 700; margin-bottom: 10px; }
.level p { color: var(--body); max-width: 320px; }

/* ---------- Citat: mala ceduljica uz profesora ---------- */
.note { --lh: 1.8em; position: relative; margin: 40px 0 0; max-width: 420px; padding: 28px 26px 12px 50px; font-size: 17px; background-color: #fff; border-radius: 3px;
  background-image: linear-gradient(90deg, transparent 32px, rgba(232,106,106,.4) 32px, rgba(232,106,106,.4) 33.5px, transparent 33.5px),
    linear-gradient(transparent calc(var(--lh) - 1px), rgba(89,160,200,.2) 0);
  background-size: auto, 100% var(--lh); background-position: 0 0, 0 calc(28px - .2em);
  box-shadow: 0 1px 2px rgba(26,46,53,.06), 0 18px 34px -24px rgba(26,46,53,.35); transform: rotate(-1.5deg); }
.note .tape { position: absolute; top: -12px; left: 50%; width: 92px; height: 26px; margin-left: -46px; background: rgba(89,228,168,.55); transform: rotate(-3deg);
  clip-path: polygon(3% 8%, 97% 0, 100% 50%, 96% 100%, 2% 94%, 0 45%); }
.note blockquote { margin: 0; font-weight: 600; line-height: var(--lh); color: var(--ink); }
.note figcaption { display: flex; justify-content: flex-end; align-items: center; gap: 12px; height: var(--lh); }
.note figcaption .mono { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
.hl { background: linear-gradient(var(--mint), var(--mint)) no-repeat 0 85% / 0% .42em; transition: background-size 1.4s var(--ease) .6s; }
.in .hl, html:not(.js) .hl { background-size: 100% .42em; }
.sig { width: 118px; height: auto; transform: rotate(-4deg); opacity: .85;
  clip-path: inset(0 100% 0 0); transition: clip-path 1.4s cubic-bezier(.6,0,.2,1) 1.2s; }
.in .sig, html:not(.js) .sig { clip-path: inset(-10% -2% -10% 0); }

/* ---------- Rođendan u broju π ---------- */
.pi-sec { padding: 80px 0 100px; }
.pi-teaser { display: flex; align-items: center; gap: 18px; width: 100%; max-width: 680px; margin: 0 auto; padding: 14px 14px 14px 14px; border: 0; border-radius: 999px; cursor: pointer; text-align: left;
  background: var(--ink); color: #fff; font: inherit; box-shadow: 0 24px 50px -30px rgba(26,46,53,.7); transition: transform .3s var(--ease), box-shadow .3s; }
.pi-teaser:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -30px rgba(26,46,53,.8); }
.pi-badge { flex: 0 0 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--ink); font-size: 32px; font-weight: 800; line-height: 1; padding-bottom: 4px; transition: transform .6s var(--ease); }
.pi-teaser:hover .pi-badge { transform: rotate(-20deg); }
.pi-teaser-txt { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.pi-teaser-txt b { font-size: 17px; font-weight: 600; }
.pi-teaser-txt span { font-size: 14px; color: var(--muted); }
.pi-teaser-go { flex: 0 0 auto; padding: 12px 20px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.25); font-size: 15px; font-weight: 600; transition: border-color .2s, background .2s, color .2s; }
.pi-teaser:hover .pi-teaser-go { background: var(--mint); border-color: var(--mint); color: var(--ink); }

.pi-dialog { width: min(760px, calc(100% - 24px)); max-width: none; max-height: calc(100% - 24px); padding: 0; border: 0; background: transparent; color: #fff; overflow: visible; }
.pi-dialog::backdrop { background: rgba(10,22,26,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pi-dialog[open] { animation: pop .45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
.board { position: relative; overflow: hidden; text-align: center; color: #fff; background: var(--ink-deep); border-radius: 28px; padding: 56px 0 30px;
  box-shadow: inset 0 0 0 10px #22383f, inset 0 0 80px rgba(0,0,0,.35), 0 50px 100px -40px rgba(0,0,0,.7); }
.board .h2, .board .pi-result { padding: 0 24px; }
.board .ribbon { margin-left: 10px; margin-right: 10px; }
.pi-close { position: absolute; z-index: 2; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.08); color: #fff; font: 400 26px/1 Poppins, sans-serif; transition: background .2s, color .2s; }
.pi-close:hover { background: var(--mint); color: var(--ink); }
.board::before { content: "π"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%); font-size: min(80vw, 760px); line-height: 1; font-weight: 800; color: rgba(89,228,168,.035); pointer-events: none; }
.pi-head { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }
/* kotačić za odabir (kao na mobitelu) */
.picker { --item: 52px; position: relative; display: flex; gap: 6px; padding: 0 10px; border-radius: 24px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); }
.picker:focus-within::before { background: rgba(89,228,168,.16); }
.picker::before { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: var(--item); transform: translateY(-50%); border-radius: 14px; background: rgba(89,228,168,.1); border: 1.5px solid rgba(89,228,168,.55); pointer-events: none; }
.wheel { position: relative; width: 104px; height: calc(var(--item) * 3); overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain; outline: none; cursor: grab;
  -webkit-mask-image: linear-gradient(rgba(0,0,0,.15), #000 40%, #000 60%, rgba(0,0,0,.15)); mask-image: linear-gradient(rgba(0,0,0,.15), #000 40%, #000 60%, rgba(0,0,0,.15)); }
.wheel-month { width: 190px; }
.wheel::-webkit-scrollbar { display: none; }
.wheel-item { height: var(--item); display: flex; align-items: center; justify-content: center; scroll-snap-align: center; font-size: 26px; font-weight: 700; letter-spacing: -.02em;
  color: rgba(255,255,255,.55); user-select: none; -webkit-user-select: none; cursor: pointer; transition: color .2s, opacity .2s; }
.wheel-item.on { color: var(--mint); }
.wheel-item.off { color: rgba(255,255,255,.18); }
.wheel-pad { height: var(--item); }
.ribbon { position: relative; margin: 44px 0 24px; height: 120px; }
.ribbon canvas { width: 100%; height: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.ribbon-window { position: absolute; left: 50%; top: 50%; width: 156px; height: 92px; transform: translate(-50%, -50%); border: 2.5px solid var(--mint); border-radius: 18px;
  box-shadow: 0 0 40px -6px rgba(89,228,168,.55), inset 0 0 30px -10px rgba(89,228,168,.4); pointer-events: none; }
.pi-result { position: relative; font-size: clamp(18px, 2vw, 22px); color: var(--muted); min-height: 3.2em; }
.pi-result b { color: #fff; font-weight: 700; }
.pi-result .pos { color: var(--mint); font-variant-numeric: tabular-nums; }

/* ---------- O profesoru ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 64px; align-items: center; }
.name { font-size: clamp(42px, 6.2vw, 76px); letter-spacing: -.045em; line-height: 1.05; }
.name .mark::before { height: .26em; bottom: .16em; }
.name + .about-role { margin-top: 14px; }
.about-role { font-size: 18px; font-weight: 500; color: var(--label); margin: 8px 0 22px; }
.stats { display: flex; flex-direction: column; }
.stats li { display: flex; align-items: baseline; gap: 18px; padding: 16px 0; border-bottom: 2px dashed rgba(26,46,53,.12); }
.stats li:last-child { border-bottom: 0; }
.stats strong { flex: 0 0 3.1em; font-size: clamp(44px, 5vw, 60px); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats span { font-size: 17px; color: var(--body); }

/* ---------- Cijena ---------- */
.price { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.price-card { position: relative; background: #fff; border-radius: 36px; padding: 64px 40px 56px; border: 1px solid var(--line);
  box-shadow: 0 2px 4px rgba(26,46,53,.04), 0 50px 90px -50px rgba(26,46,53,.45); }
.price-eq { font-size: clamp(56px, 9.5vw, 132px); font-weight: 800; letter-spacing: -.05em; line-height: 1.05; display: flex; align-items: baseline; gap: .25em; flex-wrap: wrap; justify-content: center; }
.price-eq .eq { color: var(--green); font-weight: 600; }
.mark { position: relative; z-index: 0; white-space: nowrap; padding: 0 .08em; }
.mark::before { content: ""; position: absolute; left: -.04em; right: -.06em; bottom: .1em; height: .42em; background: var(--mint); border-radius: .12em .3em .16em .25em; z-index: -1;
  transform: skewX(-8deg) scaleX(0); transform-origin: left; transition: transform .9s var(--ease) .35s; }
.in .mark::before, html:not(.js) .mark::before { transform: skewX(-8deg) scaleX(1); }
.price-note { font-size: 30px; color: var(--green); display: flex; align-items: center; gap: 8px; transform: rotate(-2deg); margin: 4px 0 26px; }
.price .kicker { transform-origin: center; margin-bottom: 0; }
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; width: 100%; max-width: 820px; margin: 6px 0 36px; border-top: 2px dashed rgba(26,46,53,.1); padding-top: 22px !important; padding: 0; text-align: left; }
.steps li { counter-increment: s; position: relative; display: flex; flex-direction: column; gap: 2px; padding: 6px 16px 6px 58px; }
.steps li::before { content: counter(s); position: absolute; left: 20px; top: 50%; transform: translateY(-50%) rotate(-6deg); font: 700 40px/1 Caveat, cursive; color: var(--green); }
.steps b { font-size: 17px; font-weight: 600; line-height: 1.3; }
.steps span { font-size: 15px; color: var(--label); }
.price-note .arrow { transform: scaleX(-1) rotate(-40deg); }

/* ---------- Pitanja ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
details.faq { background: #fff; border: 1px solid var(--line); border-radius: 20px; transition: box-shadow .3s, border-color .3s; }
details.faq[open] { box-shadow: 0 18px 40px -30px rgba(26,46,53,.45); }
details.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 20px 18px 24px; border-radius: 20px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary:focus { outline: none; }
details.faq summary:focus-visible { box-shadow: inset 0 0 0 2px rgba(46,163,107,.5); }
details.faq h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.chev { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: var(--paper); position: relative; transition: transform .4s var(--ease), background .3s, color .3s; }
.chev::before, .chev::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: currentColor; transform: translate(-50%, -50%); border-radius: 2px; }
.chev::after { transform: translate(-50%, -50%) rotate(90deg); }
details.faq[open] .chev { transform: rotate(45deg); background: var(--mint); color: var(--ink); }
details.faq p { color: var(--body); padding: 0 24px 22px; animation: rise .4s ease; }

/* ---------- Kontakt i podnožje ---------- */
.end { background: var(--ink); color: #fff; padding: 110px 0 0; position: relative; overflow: hidden; }
.end-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: stretch; }
.end-copy { display: flex; flex-direction: column; align-items: flex-start; }
.end-h { font-size: clamp(64px, 10vw, 136px); font-weight: 800; letter-spacing: -.05em; line-height: .9; }
.end-lead { font-size: 20px; color: var(--muted); margin: 22px 0 32px; max-width: 420px; }
.end-phone { margin-top: 34px; font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -.02em; text-decoration: none; padding-bottom: 2px;
  background: linear-gradient(var(--mint), var(--mint)) no-repeat 0 100% / 0 3px; transition: background-size .4s var(--ease); }
.end-phone:hover { background-size: 100% 3px; }
.end-addr { font-style: normal; display: flex; flex-direction: column; align-items: flex-start; }
.end-mail { margin-top: 10px; color: var(--muted); text-decoration: none; font-size: 18px; }
.end-mail:hover { color: var(--mint); }
.map-card { position: relative; min-height: 420px; border-radius: 30px; overflow: hidden; background: var(--ink-2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.streets { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 24px; }
.map-pin { width: 56px; height: 56px; border-radius: 50% 50% 50% 0; background: var(--mint); transform: rotate(-45deg); position: relative; animation: bobpin 3s ease-in-out infinite; box-shadow: 0 0 0 10px rgba(89,228,168,.12); }
.map-pin::after { content: ""; position: absolute; inset: 19px; border-radius: 50%; background: var(--ink); }
@keyframes bobpin { 50% { transform: rotate(-45deg) translate(4px, -4px); } }
.map-addr { color: var(--muted); }
.map-addr strong { display: block; font-size: 26px; color: #fff; letter-spacing: -.02em; }
.map-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.end-bar { margin-top: 90px; padding-bottom: 22px; font-size: 14px; color: #8FA3A0; }
.end-top { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding: 34px 0 30px; border-top: 1px solid rgba(255,255,255,.08); }
.end-id { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.end-id .brand svg { width: 34px; height: 34px; }
.end-id .brand-name { font-size: 19px; }
.end-id p { color: var(--muted); font-size: 15px; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.12); }
.end-nav { display: flex; gap: 8px 26px; flex-wrap: wrap; }
.end-nav a { color: #D5E0DD; text-decoration: none; font-size: 15px; transition: color .2s; }
.end-nav a:hover { color: var(--mint); }
.end-legal { display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.06); font-size: 13px; }
.end-files a + a::before { color: var(--mint); margin: 0 10px; }
/* potpis izrade: zadnji red, kratak i lijevo, da ga indikator dolje desno ne prekrije */
.end-by { min-height: 60px; padding-top: 20px; font-size: 12px; color: #6F8582; }
.end-by a { color: #B4C6C4; text-decoration: none; transition: color .2s; }
.end-by a:hover { color: var(--mint); }
.end-files { display: flex; flex-wrap: wrap; }
.end-files a { text-decoration: none; transition: color .2s; }
.end-files a + a::before { content: "·"; display: inline-block; }
.end-files a:hover { color: var(--mint); }

/* ---------- Indikator skrolanja: kut na jediničnoj kružnici ---------- */
.meter { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 14px 0 6px; border-radius: 999px;
  background: rgba(26,46,53,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; text-decoration: none; box-shadow: 0 10px 30px -10px rgba(0,0,0,.45);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .4s, transform .4s var(--ease); }
.meter.on { opacity: 1; transform: none; pointer-events: auto; }
.meter svg { width: 40px; height: 40px; }
.m-track { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 2; }
.m-arc { fill: none; stroke: var(--mint); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.m-ray { stroke: #fff; stroke-width: 1.6; stroke-linecap: round; }
.m-dot { fill: var(--mint); }
.m-o { fill: #fff; }
.m-val { font-size: 14px; min-width: 2.6em; text-align: center; font-variant-numeric: tabular-nums; }
.meter.full .m-val { color: var(--mint); }

/* ---------- Otkrivanje pri skrolanju ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Tablet i mobitel ---------- */
@media (max-width: 960px) {
  .navlinks { display: none; }
  .sec { padding: 84px 0; }
  .levels { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .steps { grid-template-columns: minmax(0, 1fr); max-width: 420px; gap: 10px; }
  .sec-head { margin-bottom: 40px; }
  .sec-tight { padding: 64px 0; }
  .strip-card { margin: -106px 0 48px; border-radius: 20px; }
  .price-card { padding: 48px 20px 40px; border-radius: 28px; }
  .steps li { padding-top: 10px; padding-bottom: 10px; }
  .about, .faq-wrap, .end-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .map-card { min-height: 320px; }
  .end { padding-top: 84px; }
  .end-bar { margin-top: 64px; }
  .end-top, .end-legal { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  .hero { min-height: auto; padding: 64px 0 90px; }
  .hero::after { background: linear-gradient(180deg, rgba(26,46,53,.9) 0%, rgba(26,46,53,.82) 62%, rgba(26,46,53,.15) 100%); }
  .hero-actions .btn { flex: 1 1 100%; }
  .level { display: grid; grid-template-columns: 54px 1fr; column-gap: 12px; }
  .level-n { grid-row: span 2; font-size: 54px; }
  .picker { --item: 46px; }
  .wheel { width: 84px; }
  .wheel-month { width: 160px; }
  .wheel-item { font-size: 22px; }
  .ribbon { height: 96px; margin-top: 40px; }
  .ribbon-window { width: 124px; height: 74px; border-radius: 14px; }
  .btn-lg { width: 100%; }
  .end-bar { padding-bottom: 22px; }
  .strip-card li { flex-direction: column; text-align: center; gap: 8px; padding: 16px 4px 14px; }
  .strip-ico { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; }
  .strip-ico svg { width: 19px; height: 19px; }
  .strip-txt b { font-size: 13.5px; }
  .strip-txt > span { font-size: 12px; }
  .end-id { flex-direction: column; align-items: flex-start; gap: 10px; }
  .end-id p { padding-left: 0; border-left: 0; }

  .note { margin-top: 32px; font-size: 16px; padding-left: 44px; }
  .price-eq { font-size: 46px; }
  .price-note { font-size: 24px; }
  .price-note .arrow { width: 44px; height: 28px; }
  .board { border-radius: 24px; padding: 60px 0 24px; box-shadow: inset 0 0 0 7px #22383f, inset 0 0 60px rgba(0,0,0,.35); }
  .pi-close { top: 14px; right: 14px; }
  .pi-teaser { border-radius: 26px; flex-wrap: wrap; padding: 16px; }
  .pi-teaser-txt { flex: 1 1 calc(100% - 80px); }
  .pi-teaser-go { flex: 1 1 100%; text-align: center; }
  .kicker { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) *, html:not(.force-motion) *::before, html:not(.force-motion) *::after { animation: none !important; transition: none !important; }
  html:not(.force-motion) { scroll-behavior: auto; }
  html:not(.force-motion).js .reveal { opacity: 1; transform: none; }
  html:not(.force-motion) .mark::before { transform: skewX(-8deg) scaleX(1); }
  html:not(.force-motion) .hl { background-size: 100% .38em; }
  html:not(.force-motion) .sig { clip-path: none; }
}
