/* ─────────────────────────────────────────────
   KakoSi? — mockup aplikacije
   Dizajnerski jezik: Seed (boje, radijusi, staklo, tipografija) + Oura (prsten, tamni fokus)
   Zaslon: 393 × 852 pt
   ───────────────────────────────────────────── */

:root {
  /* Zelene */
  --green: #1C3A13;
  --green-soft: #3D5B34;
  --green-deep: #0F2409;
  /* Svijetle plohe */
  --snow: #FCFCF7;
  --cream: #F6F7EF;
  --foam: #EFF1E4;
  /* Izblijedjele zelene */
  --fade-20: #D2D8D0;
  --fade-40: #A4B0A1;
  --fade-60: #778971;
  /* Naglasci */
  --bright: #D3FA99;
  --lemongrass: #E9F0CA;
  --butter: #EAE081;
  --sage: #B7C194;
  --mint: #B0D1BE;
  /* Skala raspoloženja: 1 Teško → 5 Odlično */
  --mood-1: var(--fade-40);
  --mood-2: var(--mint);
  --mood-3: var(--sage);
  --mood-4: var(--butter);
  --mood-5: var(--bright);
  /* Tamnije plohe — prigušena kadulja (jačina zelene mijenja se ovdje) */
  --hero-a: #647459;
  --hero-b: #47573F;
  --focus-a: #47563F;
  --focus-b: #323F2D;
  --vignette: rgba(38, 50, 34, .34);
  /* Staklo */
  --glass: rgba(87, 94, 85, .35);
  --glass-strong: rgba(87, 94, 85, .52);
  --glass-light: rgba(252, 252, 247, .15);
  --glass-blur: blur(37.5px);
  --hair: rgba(252, 252, 247, .14);
  /* Radijusi */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-full: 1000px;

  --sans: "Geist", "Inter Tight", system-ui, -apple-system, "Helvetica Neue", Helvetica, sans-serif;
  --mono: "Geist Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--green);
  background: #0B0F0A;
  display: grid; place-items: center;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
svg { display: block; }

/* ── Zaslon ── */
.screen {
  position: relative; width: 393px; height: 852px; overflow: hidden;
  background: var(--foam);
  --sy: 0px; --home-y: 340px; --amp: 0;
  --y: calc(var(--home-y) - var(--sy)); --k: .68;
}
.screen[data-state="listening"] { --y: 300px; --k: 1; }
.screen[data-state="recognized"] { --y: 124px; --k: .29; }
.screen.no-anim, .screen.no-anim * { transition: none !important; animation-duration: .001s !important; }

/* ── Zajedničko ── */
.label {
  font-family: var(--mono); font-size: 10.5px; font-weight: 400;
  letter-spacing: .06em; text-transform: uppercase; line-height: 1;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
}
.label::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }
.label.bare::before { display: none; }

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: var(--r-full);
  font-size: 16px; font-weight: 400; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .25s var(--ease), background .3s, color .3s;
}
.pill svg { width: 20px; height: 20px; }
.pill-light { background: var(--snow); color: var(--green); }
.pill-dark { background: var(--green); color: var(--snow); }
.pill-glass { background: var(--glass-light); box-shadow: inset 0 0 0 1px var(--hair); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); color: var(--snow); }
.pill.is-pressed { transform: scale(.95); }
.pill.wide { width: 100%; }

.link {
  font-size: 15px; font-weight: 500; letter-spacing: -.01em;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}

.swap { display: grid; }
.swap > * { grid-area: 1 / 1; transition: opacity .5s var(--ease), transform .7s var(--ease); }
.screen:not([data-done]) .swap > .d { opacity: 0; transform: translateY(8px); pointer-events: none; }
.screen[data-done] .swap > .i { opacity: 0; transform: translateY(-8px); pointer-events: none; }

/* Dodir (za snimanje videa) */
.tapdot {
  position: absolute; z-index: 90; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  background: rgba(252, 252, 247, .38); box-shadow: 0 0 0 1px rgba(252, 252, 247, .5);
  pointer-events: none; animation: tap .55s var(--ease) forwards;
}
@keyframes tap { from { transform: scale(.4); opacity: 0; } 30% { opacity: 1; } to { transform: scale(1.25); opacity: 0; } }

/* ── Statusna traka ── */
.statusbar {
  position: absolute; z-index: 60; top: 0; left: 0; right: 0; height: 54px;
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 30px 0 38px; color: var(--snow); pointer-events: none;
  transition: color .3s;
}
.statusbar .time { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.statusbar .sys { display: flex; align-items: center; gap: 6px; }
.statusbar svg { height: 12px; width: auto; fill: currentColor; }
.screen.sb-dark .statusbar { color: var(--green); }

.homebar {
  position: absolute; z-index: 70; left: 50%; bottom: 8px; width: 138px; height: 5px; margin-left: -69px;
  border-radius: 5px; background: var(--green); opacity: .9; pointer-events: none; transition: background .4s;
}
.screen[data-state="listening"] .homebar,
.screen[data-state="recognized"] .homebar,
.screen[data-state="health"] .homebar { background: var(--snow); }

/* ── Organska pozadina (vlastita, umjesto fotografije) ── */
.organic { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.organic i {
  position: absolute; border-radius: 50%;
  width: var(--s); height: var(--s); left: var(--x); top: var(--t);
  background: var(--c); opacity: var(--o, .5); filter: blur(var(--b, 40px));
  animation: float var(--d, 20s) ease-in-out infinite alternate;
}
@keyframes float { to { transform: translate(var(--tx, 12px), var(--ty, -16px)) scale(var(--ts, 1.08)); } }
.organic::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 45%, transparent 40%, var(--vignette) 100%);
}

/* ── Danas ── */
.home {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden;
  scrollbar-width: none; padding-bottom: 124px;
}
.home::-webkit-scrollbar { display: none; }

.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(172deg, var(--hero-a), var(--hero-b)); color: var(--snow);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  padding: 62px 20px 26px;
}
.hero > :not(.organic) { position: relative; }
.hero-top { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.hero-top .label { color: rgba(252, 252, 247, .78); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--glass-light); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  font-size: 13px; font-weight: 500;
}
.hello { margin-top: 14px; font-size: 34px; font-weight: 350; letter-spacing: -.025em; line-height: 1.08; }
.hero-sub { margin-top: 8px; font-size: 15px; line-height: 1.35; letter-spacing: -.005em; color: rgba(252, 252, 247, .7); }

/* Tjedni krug */
.ring-wrap { width: 290px; height: 290px; margin: 0 auto; }
.ring { width: 100%; height: 100%; overflow: visible; }
.seg { fill: none; stroke-width: 11; stroke-linecap: round; }
.seg.m1 { stroke: var(--mood-1); } .seg.m2 { stroke: var(--mood-2); } .seg.m3 { stroke: var(--mood-3); }
.seg.m4 { stroke: var(--mood-4); } .seg.m5 { stroke: var(--mood-5); }
.seg-empty { stroke: rgba(252, 252, 247, .13); }
.seg-future { stroke: rgba(252, 252, 247, .07); }
.seg-today { stroke: rgba(252, 252, 247, .3); animation: pend 2.6s ease-in-out infinite; transition: opacity .4s; }
@keyframes pend { 50% { stroke: rgba(252, 252, 247, .12); } }
.seg-fill {
  stroke: var(--mood-4); stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0;
  transition: stroke-dashoffset 1s var(--ease), opacity .15s;
  filter: drop-shadow(0 0 8px rgba(234, 224, 129, .55));
}
.screen[data-filled] .seg-fill { stroke-dashoffset: 0; opacity: 1; }
.screen[data-filled] .seg-today { animation: none; opacity: 0; }
.ring text {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .04em;
  fill: rgba(252, 252, 247, .45); text-anchor: middle; dominant-baseline: central;
}
.ring text.is-today { fill: var(--snow); }

.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 2px; }
.hero-cta .swap { justify-items: center; align-items: center; }
.hero-cta .link { color: rgba(252, 252, 247, .86); transition: opacity .4s; }
.screen[data-done] .hero-cta .link { opacity: 0; }

/* Ispod heroja */
.below { padding: 22px 16px 0; display: grid; gap: 12px; }
.week-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 2px 6px 6px; }
.week-line .count { font-size: 24px; font-weight: 350; letter-spacing: -.025em; }
.week-line small { font-size: 12.5px; color: var(--fade-60); letter-spacing: -.005em; }

.tile { background: var(--snow); border-radius: var(--r-md); padding: 18px; }
.tile .label { color: var(--fade-60); }
.tile-insight p { margin: 14px 0 16px; font-size: 21px; font-weight: 350; letter-spacing: -.02em; line-height: 1.18; }
.tile-insight .link { font-size: 14px; }

.tile-health { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; }
.tile-health .txt { flex: 1; min-width: 0; }
.tile-health b { display: block; font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.tile-health small { display: block; margin-top: 2px; font-size: 13px; color: var(--fade-60); }
.tile-health .chev { width: 18px; height: 18px; stroke: var(--fade-60); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: var(--r-full);
  border: 1px solid var(--green); font-family: var(--mono); font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase;
}
.app-ico { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.app-ico.health { background: #fff; box-shadow: 0 0 0 1px rgba(28, 58, 19, .08), 0 6px 14px -8px rgba(28, 58, 19, .35); }
.app-ico.health svg { width: 24px; height: 24px; }
.app-ico.kakosi { background: linear-gradient(160deg, var(--hero-a), var(--hero-b)); position: relative; overflow: hidden; }
.app-ico.kakosi::after {
  content: ""; width: 54%; height: 54%; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #fff 0%, var(--lemongrass) 42%, var(--mint) 100%);
  box-shadow: 0 0 12px rgba(233, 240, 202, .6);
}
.fine { font-size: 11.5px; line-height: 1.45; color: var(--fade-60); text-align: center; padding: 10px 24px 0; }

/* Traka kartica — staklena pilula */
.tabbar {
  position: absolute; z-index: 15; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; gap: 2px; padding: 5px; border-radius: var(--r-full);
  background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  color: var(--snow);
}
.tab { display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 15px; border-radius: var(--r-full); font-size: 14px; letter-spacing: -.01em; }
.tab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tab.on { background: var(--snow); color: var(--green); }

/* ── Kugla ── */
.orb {
  position: absolute; z-index: 30; left: 50%; top: 0; width: 188px; height: 188px; margin: -94px 0 0 -94px;
  transform: translateY(var(--y)) scale(var(--k)); will-change: transform; cursor: pointer;
}
.screen.moving .orb { transition: transform 1.05s var(--ease); }
/* Svijetla kugla s mekim oblacima koji se prelijevaju; --amp (glas) ih ubrzava i širi */
.orb-body {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden; isolation: isolate;
  transform: scale(calc((1 + var(--amp) * .07) * var(--wx, 1)), calc((1 + var(--amp) * .07) * var(--wy, 1)));
  background: radial-gradient(circle at 40% 30%, #F7FBEA 0%, #DCEBCB 46%, #B2D5BD 100%);
  box-shadow: 0 18px 40px -18px rgba(38, 50, 34, .5);
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 50% { scale: 1.035; } }
.orb-glow {
  position: absolute; inset: -30%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(240, 246, 216, calc(.3 + var(--amp) * .32)) 0%, rgba(240, 246, 216, 0) 64%);
}
.orb-clouds { position: absolute; inset: 0; rotate: var(--spin, 0deg); }
.orb-clouds i {
  position: absolute; border-radius: 50%; filter: blur(17px);
  width: var(--s); height: var(--s); left: var(--x); top: var(--t);
  background: var(--c); opacity: var(--o, .9);
  transform-origin: var(--ox) var(--oy);
  scale: calc(1 + var(--amp) * var(--g, .35));
  animation: orbit var(--d) linear infinite;
}
@keyframes orbit { to { rotate: 360deg; } }
.orb-shade {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 33% 22%, rgba(255, 255, 255, .6) 0%, rgba(255, 255, 255, 0) 32%),
    radial-gradient(circle at 62% 112%, rgba(71, 87, 63, .42), rgba(71, 87, 63, 0) 56%);
  box-shadow: inset 0 0 16px rgba(255, 255, 255, .38), inset 0 -12px 26px rgba(95, 111, 88, .25), inset 0 0 0 1px rgba(255, 255, 255, .4);
}

/* ── Glasovni check-in ── */
.voice {
  position: absolute; inset: 0; z-index: 20; overflow: hidden;
  background: linear-gradient(172deg, var(--focus-a), var(--focus-b)); color: var(--snow);
  opacity: 0; pointer-events: none; transition: opacity .7s var(--ease);
}
.screen[data-state="listening"] .voice, .screen[data-state="recognized"] .voice { opacity: 1; pointer-events: auto; }
.voice > :not(.organic) { position: absolute; }

.v-close {
  left: 16px; top: 56px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--glass-light); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.v-close svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; fill: none; }
.v-label { left: 0; right: 0; top: 69px; display: flex; justify-content: center; color: rgba(252, 252, 247, .8); }
.v-timer { right: 20px; top: 69px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: rgba(252, 252, 247, .6); transition: opacity .4s; }
.screen[data-state="recognized"] .v-timer { opacity: 0; }

.aura { left: 0; top: 103.5px; width: 393px; height: 393px; transition: opacity .5s; }
.screen[data-state="recognized"] .aura { opacity: 0; }

.v-hint {
  left: 0; right: 0; top: 452px; text-align: center;
  font-size: 26px; font-weight: 350; letter-spacing: -.025em; line-height: 1.22; color: rgba(252, 252, 247, .5);
  transition: opacity .45s;
}
.v-hint.off { opacity: 0; }

.transcript {
  left: 32px; right: 32px; top: 436px; text-align: center;
  font-size: 26px; font-weight: 350; letter-spacing: -.025em; line-height: 1.24;
  transform-origin: 50% 0; transition: transform 1s var(--ease), color .8s;
}
.screen[data-state="recognized"] .transcript { transform: translateY(-268px) scale(.6); color: rgba(252, 252, 247, .72); }
.w { opacity: 0; filter: blur(5px); transition: opacity .38s ease-out, filter .5s ease-out; }
.w.on { opacity: 1; filter: none; }
.kw {
  padding-bottom: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(var(--bright), var(--bright)) 0 100% / 0% 2.5px no-repeat;
  transition: background-size .7s var(--ease), color .5s;
}
.kw.hit { background-size: 100% 2.5px; color: var(--snow); }

/* Kartica „prepoznato" — staklo */
.v-card {
  left: 16px; right: 16px; top: 262px; padding: 6px 20px;
  border-radius: 28px; background: var(--glass-light); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 0 0 1px var(--hair);
  opacity: 0; transform: translateY(26px); pointer-events: none;
  transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.v-card.in { opacity: 1; transform: none; pointer-events: auto; }
.v-row { padding: 16px 0; opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.v-row + .v-row { border-top: 1px solid var(--hair); }
.v-row.in { opacity: 1; transform: none; }
.v-row .label { color: rgba(252, 252, 247, .6); }
.v-row-head { display: flex; justify-content: space-between; align-items: center; }
.v-row-head .val { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: rgba(252, 252, 247, .8); }

.v-mood { display: flex; align-items: center; gap: 14px; }
.v-mood .name { display: block; margin-top: 7px; font-size: 24px; font-weight: 350; letter-spacing: -.025em; line-height: 1; }
.v-mood .scale { margin-left: auto; display: flex; gap: 5px; }
.v-mood .scale i { width: 7px; height: 7px; border-radius: 50%; background: rgba(252, 252, 247, .18); }
.v-mood .scale i.on { background: var(--mood-4); }

.face { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--green); background: var(--sage); }
.face svg { width: 64%; height: 64%; }
.face[data-mood="1"] { background: var(--mood-1); } .face[data-mood="2"] { background: var(--mood-2); }
.face[data-mood="3"] { background: var(--mood-3); } .face[data-mood="4"] { background: var(--mood-4); }
.face[data-mood="5"] { background: var(--mood-5); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: var(--r-full);
  border: 1px solid rgba(252, 252, 247, .32); font-size: 14px; letter-spacing: -.01em; white-space: nowrap; color: var(--snow);
}
.v-card .chip { opacity: 0; transition: opacity .25s; }
.v-card .chip.on { opacity: 1; }
.chip.add { width: 34px; padding: 0; justify-content: center; border-style: dashed; color: rgba(252, 252, 247, .6); }
.chip.fly { position: absolute; z-index: 40; pointer-events: none; background: rgba(211, 250, 153, .16); border-color: var(--bright); }

.segs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 12px; }
.segs i { height: 8px; border-radius: 8px; background: rgba(252, 252, 247, .14); transition: background .45s var(--ease); }
.segs i.on { background: var(--bright); }

.v-reply {
  left: 28px; right: 28px; top: 548px; display: flex; gap: 12px; align-items: flex-start;
  font-size: 17px; font-weight: 350; letter-spacing: -.015em; line-height: 1.3;
  opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .7s var(--ease);
}
.v-reply.in { opacity: 1; transform: none; }
.v-reply::before {
  content: ""; flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #fff 0%, var(--lemongrass) 45%, var(--mint) 100%);
  box-shadow: 0 0 12px rgba(240, 246, 216, .7);
}

.v-privacy { left: 0; right: 0; top: 654px; display: flex; justify-content: center; color: rgba(252, 252, 247, .42); font-size: 9.5px; }
.v-actions {
  left: 20px; right: 20px; top: 690px; display: flex; flex-direction: column; align-items: center; gap: 16px;
  transition: opacity .45s var(--ease), transform .6s var(--ease);
}
.v-actions .link { color: rgba(252, 252, 247, .8); }
.v-actions .stop { width: 12px; height: 12px; border-radius: 3px; background: var(--green); }
.v-actions.rec { opacity: 0; transform: translateY(10px); pointer-events: none; }
.screen[data-state="recognized"] .v-actions.listen { opacity: 0; pointer-events: none; }
.v-actions.rec.in { opacity: 1; transform: none; pointer-events: auto; }

/* ── Poveži Apple Zdravlje — stakleni list ── */
.scrim {
  position: absolute; inset: 0; z-index: 45; background: rgba(38, 50, 34, .46);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .5s var(--ease);
}
.sheet {
  position: absolute; z-index: 50; left: 8px; right: 8px; bottom: 8px; padding: 12px 22px 34px;
  border-radius: 40px; color: var(--snow);
  background: rgba(78, 92, 72, .78); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 0 0 1px var(--hair), 0 -20px 60px -20px rgba(0, 0, 0, .5);
  transform: translateY(105%); transition: transform .75s var(--ease);
}
.screen[data-state="health"] .scrim { opacity: 1; pointer-events: auto; }
.screen[data-state="health"] .sheet { transform: none; }
.grabber { width: 38px; height: 5px; border-radius: 5px; background: rgba(252, 252, 247, .35); margin: 0 auto 22px; }
.link-row { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.link-row .dots { display: flex; gap: 5px; }
.link-row .dots i { width: 4px; height: 4px; border-radius: 50%; background: rgba(252, 252, 247, .5); }
.link-row .app-ico { width: 52px; height: 52px; border-radius: 13px; }
.link-row .app-ico.kakosi { box-shadow: inset 0 0 0 1px rgba(252, 252, 247, .2); }
.link-row .app-ico.health svg { width: 28px; height: 28px; }
.sheet .label { color: var(--bright); }
.sheet h2 { margin-top: 12px; font-size: 28px; font-weight: 350; letter-spacing: -.025em; line-height: 1.1; }
.sheet .why { margin-top: 10px; font-size: 15px; line-height: 1.4; color: rgba(252, 252, 247, .76); }
.sources { margin-top: 18px; border-radius: 20px; box-shadow: inset 0 0 0 1px rgba(252, 252, 247, .22); padding: 2px 16px; }
.source { display: flex; align-items: center; gap: 12px; height: 52px; font-size: 16px; letter-spacing: -.01em; }
.source + .source { border-top: 1px solid var(--hair); }
.source svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.source span { flex: 1; }
.toggle { position: relative; width: 46px; height: 28px; border-radius: 28px; background: rgba(252, 252, 247, .2); transition: background .3s; flex: none; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--snow); transition: transform .3s var(--ease), background .3s; }
.toggle.on { background: var(--bright); }
.toggle.on::after { transform: translateX(18px); background: var(--green); }
.sheet .notes { margin-top: 14px; display: grid; gap: 8px; justify-items: center; text-align: center; }
.sheet .notes .label { color: rgba(252, 252, 247, .6); font-size: 9.5px; }
.sheet .notes p { font-size: 12.5px; line-height: 1.4; color: rgba(252, 252, 247, .62); }
.sheet .actions { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.sheet .actions .link { color: rgba(252, 252, 247, .8); }

/* ═════════ Drugi set: pogledi po karticama, zaključani zaslon, tipkani check-in, uvidi, promjena, podrška ═════════ */

/* ── Pogledi (Uvidi, Podrška) ── */
.home { transition: opacity .45s var(--ease); }
.view {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none;
  background: var(--foam); padding-bottom: 124px;
  opacity: 0; pointer-events: none; transition: opacity .45s var(--ease);
}
.view::-webkit-scrollbar { display: none; }
.screen[data-state="insights"] .home, .screen[data-state="support"] .home { opacity: 0; pointer-events: none; }
.screen[data-state="insights"] .insights, .screen[data-state="support"] .support { opacity: 1; pointer-events: auto; }
.tab { cursor: pointer; transition: background .3s, color .3s; }

/* Kugla po stanjima */
.orb { transition: opacity .35s; }
.screen.moving .orb { transition: transform 1.05s var(--ease), opacity .35s; }
.screen[data-state="insights"] .orb, .screen[data-state="typed"] .orb, .screen[data-state="lock"] .orb { opacity: 0; pointer-events: none; }
.screen[data-state="support"] { --y: calc(var(--support-y, 300px) - var(--sy)); --k: .6; }
.screen[data-state="pattern"] { --y: 124px; --k: .29; }
.screen[data-state="support"] .orb-body { animation: breathe-deep 8s ease-in-out infinite; }
@keyframes breathe-deep { 0%, 100% { scale: .9; } 50% { scale: 1.22; } }

.screen[data-state="lock"] .homebar, .screen[data-state="typed"] .homebar { background: var(--snow); }
.screen[data-state="lock"] .statusbar .time { opacity: 0; }

/* ── Zaključani zaslon s obavijesti ── */
.lock {
  position: absolute; inset: 0; z-index: 55; overflow: hidden; color: var(--snow);
  background: linear-gradient(168deg, #93A688, #5A6B52 70%, #44533D);
  opacity: 0; pointer-events: none; transform: translateY(-5%);
  transition: opacity .55s var(--ease), transform .75s var(--ease);
}
.screen[data-state="lock"] .lock { opacity: 1; pointer-events: auto; transform: none; }
.lock > :not(.organic) { position: absolute; }
.lock-date { left: 0; right: 0; top: 104px; text-align: center; font-size: 20px; font-weight: 500; letter-spacing: -.01em; color: rgba(252, 252, 247, .92); }
.lock-time { left: 0; right: 0; top: 130px; text-align: center; font-size: 104px; font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.notif {
  left: 12px; right: 12px; bottom: 130px; display: flex; gap: 12px; align-items: center; text-align: left;
  padding: 14px 16px 14px 14px; border-radius: 26px; color: var(--snow);
  background: rgba(252, 252, 247, .2); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 0 0 1px var(--hair), 0 18px 40px -22px rgba(38, 50, 34, .6);
  opacity: 0; transform: translateY(26px) scale(.96);
  transition: opacity .5s var(--ease), transform .75s var(--ease);
}
.notif.in { opacity: 1; transform: none; }
.notif .app-ico { width: 42px; height: 42px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(252, 252, 247, .2); }
.n-body { flex: 1; display: grid; gap: 2px; min-width: 0; }
.n-head { display: flex; justify-content: space-between; font-size: 13px; color: rgba(252, 252, 247, .72); }
.n-head b { font-weight: 500; }
.n-title { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.n-text { font-size: 15px; line-height: 1.3; color: rgba(252, 252, 247, .92); }
.lock-tools { left: 46px; right: 46px; bottom: 44px; display: flex; justify-content: space-between; }
.lock-tools span {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(252, 252, 247, .18); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.lock-tools svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ── Check-in tipkanjem ── */
.typed {
  position: absolute; inset: 0; z-index: 20; overflow: hidden; color: var(--snow);
  background: linear-gradient(172deg, var(--focus-a), var(--focus-b));
  opacity: 0; pointer-events: none; transition: opacity .6s var(--ease);
  padding: 112px 20px 46px; display: flex; flex-direction: column;
}
.screen[data-state="typed"] .typed { opacity: 1; pointer-events: auto; }
.typed > :not(.organic) { position: relative; }
.typed > .v-close, .typed > .v-label { position: absolute; }
.t-q { font-size: 30px; font-weight: 350; letter-spacing: -.025em; line-height: 1.1; text-align: center; }
.t-moods { display: flex; justify-content: space-between; margin-top: 26px; padding: 0 6px; }
.t-moods .face { width: 52px; height: 52px; opacity: .6; transform: scale(.9); transition: transform .4s var(--ease), opacity .3s, box-shadow .3s; }
.t-moods .face.on { opacity: 1; transform: scale(1.1); box-shadow: 0 0 0 3px var(--focus-a), 0 0 0 4.5px var(--snow); }
.t-moodname { margin-top: 14px; min-height: 22px; text-align: center; font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.t-block { margin-top: 20px; }
.t-block .label { color: rgba(252, 252, 247, .6); }
.typed .chip { cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.typed .chip.on { background: var(--snow); color: var(--green); border-color: var(--snow); }
.t-note {
  margin-top: 20px; min-height: 76px; padding: 14px 16px; border-radius: 18px;
  background: var(--glass-light); box-shadow: inset 0 0 0 1px var(--hair); font-size: 15px; line-height: 1.38;
}
.t-note .ph { color: rgba(252, 252, 247, .5); }
.t-note .tx { display: none; }
.t-note.filled .ph { display: none; }
.t-note.filled .tx { display: inline; }
.t-actions { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.t-actions .link { color: rgba(252, 252, 247, .8); }
.t-actions .pill.is-off { opacity: .45; }

/* ── Uvidi ── */
.insights { padding: 62px 16px 124px; }
.i-top { display: flex; justify-content: space-between; align-items: center; height: 34px; padding: 0 4px; }
.i-top .label { color: var(--fade-60); }
.avatar.dark { background: rgba(28, 58, 19, .08); color: var(--green); }
.i-title { margin: 14px 4px 0; font-size: 34px; font-weight: 350; letter-spacing: -.025em; line-height: 1.08; }
.i-lead { margin: 8px 4px 8px; font-size: 15px; line-height: 1.35; color: var(--fade-60); }
.insights .tile { margin-top: 12px; }
.tile h3 { margin-top: 12px; font-size: 19px; font-weight: 350; letter-spacing: -.02em; line-height: 1.2; }

.chart { display: block; width: 100%; margin-top: 16px; overflow: visible; }
.chart .grid { stroke: rgba(28, 58, 19, .09); stroke-width: 1; stroke-dasharray: 2 5; }
.chart .ln { fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; }
.chart .ln.gap { stroke-dasharray: 2 6; opacity: .45; }
.chart .ln.draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.chart .dot { stroke: var(--snow); stroke-width: 3; opacity: 0; }
.chart text { font-family: var(--mono); font-size: 9.5px; letter-spacing: .04em; fill: var(--fade-60); text-anchor: middle; }
.screen[data-state="insights"] .chart .ln.draw { animation: draw 1.1s var(--ease) var(--dl, .25s) forwards; }
.screen[data-state="insights"] .chart .dot { animation: pop .5s var(--ease) var(--dl, .4s) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
.chart .dot { transform-box: fill-box; transform-origin: center; }

.bars { display: grid; gap: 11px; margin-top: 16px; }
.bar-row { display: grid; grid-template-columns: 106px 1fr 16px; align-items: center; gap: 10px; font-size: 14px; letter-spacing: -.01em; }
.bar-row i { display: block; height: 10px; width: var(--w); border-radius: 10px; background: var(--c); transform-origin: 0 50%; }
.bar-row span { font-family: var(--mono); font-size: 11px; color: var(--fade-60); text-align: right; }
.screen[data-state="insights"] .bar-row i { animation: grow .9s var(--ease) var(--dl, .3s) both; }
@keyframes grow { from { transform: scaleX(0); } }

.insight-dark {
  margin-top: 12px; padding: 22px; border-radius: var(--r-lg); color: var(--snow);
  background: linear-gradient(172deg, var(--hero-a), var(--hero-b));
}
.insight-dark .label { color: rgba(252, 252, 247, .75); }
.insight-dark p { margin: 14px 0 18px; font-size: 21px; font-weight: 350; letter-spacing: -.02em; line-height: 1.18; }
.insight-dark .row { display: flex; align-items: center; gap: 18px; }
.insight-dark .pill { height: 44px; padding: 0 20px; font-size: 15px; }
.insight-dark .link { color: rgba(252, 252, 247, .85); font-size: 14px; }

/* ── Primijetili smo promjenu ── */
.pattern {
  position: absolute; inset: 0; z-index: 20; overflow: hidden; color: var(--green);
  background: linear-gradient(176deg, #EDF2D3, #F6F7EF 62%);
  opacity: 0; pointer-events: none; transition: opacity .6s var(--ease);
  padding: 178px 24px 0;
}
.screen[data-state="pattern"] .pattern { opacity: 1; pointer-events: auto; }
.p-close {
  position: absolute; left: 16px; top: 56px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(28, 58, 19, .07);
}
.p-close svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; fill: none; }
.p-label { position: absolute; left: 0; right: 0; top: 69px; display: flex; justify-content: center; color: var(--fade-60); }
.pattern h2 { font-size: 27px; font-weight: 350; letter-spacing: -.025em; line-height: 1.12; text-align: center; }
.p-chart { display: block; width: 100%; margin-top: 30px; overflow: visible; }
.p-chart .band { fill: var(--butter); opacity: .38; }
.p-chart .trace { fill: none; stroke: rgba(28, 58, 19, .22); stroke-width: 1.5; stroke-linejoin: round; }
.p-chart circle { stroke: var(--snow); stroke-width: 2.5; }
.p-chart text { font-family: var(--mono); font-size: 9px; letter-spacing: .05em; fill: var(--fade-60); }
.p-text { margin-top: 18px; font-size: 15px; line-height: 1.42; text-align: center; color: #4E6048; }
.p-q { margin-top: 16px; font-size: 19px; font-weight: 500; letter-spacing: -.015em; line-height: 1.25; text-align: center; }
.p-fine { margin-top: 16px; font-size: 11.5px; line-height: 1.45; text-align: center; color: var(--fade-60); }
.p-actions { position: absolute; left: 20px; right: 20px; top: 690px; display: flex; flex-direction: column; align-items: center; gap: 16px; }

/* ── Podrška ── */
.support { padding-bottom: 124px; }
.breath-slot { position: relative; height: 232px; display: grid; place-items: center; }
.breath-ring {
  position: absolute; width: 150px; height: 150px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(252, 252, 247, .34);
  animation: breathe-deep 8s ease-in-out infinite;
}
.breath-ring.r2 { width: 196px; height: 196px; box-shadow: inset 0 0 0 1px rgba(252, 252, 247, .15); animation-delay: -.5s; }
.breath-cue { text-align: center; color: rgba(252, 252, 247, .82); margin-bottom: 16px; }
.steps { padding: 18px 18px 4px; }
.step-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.steps .label + .step-row { margin-top: 6px; }
.step-row + .step-row { border-top: 1px solid rgba(28, 58, 19, .08); }
.step-row .txt { flex: 1; min-width: 0; }
.step-row b { display: block; font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.step-row small { display: block; margin-top: 2px; font-size: 13px; color: var(--fade-60); }
.step-row .chev { width: 18px; height: 18px; stroke: var(--fade-60); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tag { font-size: 10.5px; font-weight: 500; padding: 5px 9px; border-radius: var(--r-full); background: var(--lemongrass); color: var(--green); white-space: nowrap; }
.tag.neutral { background: var(--foam); color: var(--fade-60); }

/* Mirni kadrovi (?state=, izvoz): grafovi su odmah iscrtani, bez animacije ulaska */
.screen[data-still] .chart .ln.draw { animation: none; stroke-dashoffset: 0; }
.screen[data-still] .chart .dot { animation: none; opacity: 1; }
.screen[data-still] .bar-row i { animation: none; }
