/* Bussola · bussola.hr
   Boje, tipografija i oblici prema Brand priručniku (studeni 2026). */

:root {
  --more: #1E6B68;
  --more-duboko: #123F3E;
  --more-svijetlo: #DCEDEA;
  --karta: #FAF6EF;
  --igla: #E8735A;
  --igla-tamna: #B04A35;
  --tinta: #1B2A2A;
  --tinta-blaga: #5B6B69;
  --crta: #E4DDD0;

  --rast: #4F8A63;
  --paznja: #D9962B;
  --podrska: #7A5C99;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 12px;
  --radius-sm: 6px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--karta);
  color: var(--tinta);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--more); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.75rem, 6vw, 4.25rem); line-height: 1.05; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

.skip { position: absolute; left: -999px; top: .5rem; background: var(--tinta); color: var(--karta); padding: .5rem 1rem; border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { left: .5rem; }

:focus-visible { outline: 2px solid var(--more); outline-offset: 3px; border-radius: 4px; }

.eyebrow, .label {
  font-size: .75rem; line-height: 1rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.eyebrow { color: var(--igla-tamna); margin-bottom: .9rem; }

/* Logotip */
.wordmark {
  display: inline-flex; align-items: baseline;
  font: 600 1.85rem/1 var(--font-display);
  letter-spacing: -.01em; color: var(--tinta); text-decoration: none; white-space: nowrap;
  font-variation-settings: 'opsz' 9; /* puniji rez kao na logotipu iz priručnika */
}
/* Krug točaka visok je točno kao mala slova (~.5em u Fraunces opsz 9) i stoji na liniji teksta, kao na logotipu iz priručnika. */
.wordmark .mark { flex: none; width: .5em; height: .5em; max-width: none; margin: 0 .07em 0 .06em; }
.mark-dots { fill: var(--more); }
.mark-tail { fill: var(--tinta); }
.mark-needle { fill: var(--igla); }
.mark-pin { fill: var(--karta); }
.wordmark.inverse { color: var(--karta); }
.wordmark.inverse .mark-dots, .wordmark.inverse .mark-tail { fill: var(--karta); }
.wordmark.inverse .mark-pin { fill: var(--more-duboko); }

/* Gumbi */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .6rem 1.15rem; border-radius: var(--radius);
  font: 600 .95rem/1.2 var(--font-body); text-decoration: none;
  border: 1.5px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn-lg { padding: .85rem 1.5rem; font-size: 1rem; }
.btn-primary { background: var(--more); color: var(--karta); }
.btn-primary:hover { background: var(--more-duboko); }
.btn-ghost { color: var(--more); border-color: var(--more); }
.btn-ghost:hover { background: var(--more-svijetlo); }
.btn-light { background: var(--karta); color: var(--more-duboko); }
.btn-light:hover { background: var(--more-svijetlo); }

/* Zaglavlje */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--karta) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--crta);
}
.header-inner { display: flex; align-items: center; gap: 2rem; min-height: 4.25rem; }
.site-nav { display: flex; gap: 1.75rem; margin-left: auto; }
.site-nav a { color: var(--tinta-blaga); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-nav a:hover { color: var(--tinta); }

/* Hero */
.hero { position: relative; overflow: hidden; display: flex; align-items: center; min-height: calc(100svh - 4.25rem); padding: clamp(1.5rem, 4svh, 3rem) 0; }
.hero > .wrap { width: 100%; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
/* Tamna morska ploha desno, kao na naslovnici priručnika */
.hero-bg::before {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 38%;
  background: var(--more-duboko); border-bottom-left-radius: 48px;
}
.hero-ring { position: absolute; right: 2.5%; bottom: 5%; width: clamp(7rem, 12vw, 10rem); fill: var(--karta); opacity: .9; animation: spin-in 1.4s cubic-bezier(.2,.8,.2,1) both .2s; }
.hero-sun {
  position: absolute; left: 50%; top: 5%; width: clamp(5rem, 9vw, 8rem); aspect-ratio: 1;
  border-radius: 50%; background: var(--igla);
  animation: pop 0.9s cubic-bezier(.3,1.5,.5,1) both .1s, bob 7s ease-in-out infinite 1s;
}
.hero-pill {
  position: absolute; left: 42%; bottom: -4.5rem; width: clamp(4.5rem, 7vw, 6.5rem); height: clamp(11rem, 18vw, 16rem);
  border-radius: 999px; background: var(--more);
  animation: rise 1s cubic-bezier(.2,.8,.2,1) both .35s;
}

.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-logo { margin: 0 0 clamp(.75rem, 2svh, 1.25rem) -.04em; }
.hero-logo .wordmark { font-size: clamp(3.5rem, 7.5vw, 6.25rem); }
.tagline { font: 600 clamp(1.75rem, 3.2vw, 2.6rem)/1.15 var(--font-display); }
.tagline .accent { color: var(--more); position: relative; }
.tagline .accent::after {
  content: ""; position: absolute; left: 0; right: .35em; bottom: -.02em; height: .09em;
  background: var(--igla); border-radius: 99px; transform-origin: left;
  animation: draw-x .8s cubic-bezier(.2,.8,.2,1) both .7s;
}
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; color: var(--tinta-blaga); margin-top: clamp(1rem, 2.5svh, 1.5rem); max-width: 32rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: clamp(1.25rem, 3svh, 2rem); }

.hero-visual { position: relative; margin: 0; padding: .5rem 0 0 1.5rem; }
.hero-card {
  position: relative; background: var(--karta); border-radius: 20px; padding: 1.1rem 1.4rem .9rem;
  box-shadow: 0 30px 60px -25px rgba(18, 63, 62, .45), 0 0 0 1px rgba(18, 63, 62, .06);
  display: grid; gap: .5rem;
  animation: rise .9s cubic-bezier(.2,.8,.2,1) both .25s;
}
.visual-head { display: grid; gap: .3rem; }
.visual-head .label { color: var(--tinta-blaga); font-size: .7rem; }
.visual-head strong { font: 600 1.4rem/1.2 var(--font-display); }
.sociogram { width: 100%; max-width: 380px; max-height: max(14rem, calc(100svh - 26rem)); margin: 0 auto; }
.edge { stroke-width: 1.6; }
.edge.mutual { stroke: var(--more); opacity: .65; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s ease-out forwards; }
.edge.one { stroke: var(--tinta-blaga); opacity: 0; stroke-dasharray: 4 4; stroke-width: 1.2; animation: fade-to .8s ease-out forwards 1.9s; }
.edge.mutual:nth-of-type(6)  { animation-delay: .9s; }
.edge.mutual:nth-of-type(7)  { animation-delay: 1.0s; }
.edge.mutual:nth-of-type(8)  { animation-delay: 1.1s; }
.edge.mutual:nth-of-type(9)  { animation-delay: 1.2s; }
.edge.mutual:nth-of-type(10) { animation-delay: 1.3s; }
.edge.mutual:nth-of-type(11) { animation-delay: 1.4s; }
.edge.mutual:nth-of-type(12) { animation-delay: 1.5s; }
.edge.mutual:nth-of-type(13) { animation-delay: 1.6s; }
.edge.mutual:nth-of-type(14) { animation-delay: 1.7s; }
.edge.mutual:nth-of-type(15) { animation-delay: 1.8s; }
.node { transform-box: fill-box; transform-origin: center; animation: pop .5s cubic-bezier(.3,1.6,.5,1) both; }
.node:nth-of-type(1) { animation-delay: .35s; } .node:nth-of-type(2) { animation-delay: .4s; }
.node:nth-of-type(3) { animation-delay: .45s; } .node:nth-of-type(4) { animation-delay: .5s; }
.node:nth-of-type(5) { animation-delay: .55s; } .node:nth-of-type(6) { animation-delay: .6s; }
.node:nth-of-type(7) { animation-delay: .65s; } .node:nth-of-type(8) { animation-delay: .7s; }
.node:nth-of-type(9) { animation-delay: .75s; } .node:nth-of-type(10) { animation-delay: .8s; }
.node:nth-of-type(11) { animation-delay: .85s; } .node:nth-of-type(12) { animation-delay: .9s; }
.node circle { fill: var(--more-svijetlo); stroke: var(--more); stroke-width: 1.6; }
.node.attn circle { fill: #FBF0DD; stroke: var(--paznja); }
.node.support circle { fill: #EFE9F5; stroke: var(--podrska); }
.node text { font: 600 9.5px var(--font-body); fill: var(--tinta); text-anchor: middle; dominant-baseline: central; }
.halo { fill: none; stroke-width: 2; transform-box: fill-box; transform-origin: center; opacity: 0; animation: halo 2.6s ease-out infinite 2.4s; }
.halo.attn { stroke: var(--paznja); }
.halo.support { stroke: var(--podrska); animation-delay: 3.7s; }
.legend { display: flex; justify-content: center; gap: 1.5rem; font-size: .75rem; color: var(--tinta-blaga); }
.legend span { display: inline-flex; align-items: center; gap: .45rem; }
.ln { display: inline-block; width: 1.4rem; border-top: 2px solid var(--more); opacity: .7; }
.ln-dash { border-top: 2px dashed var(--tinta-blaga); opacity: .6; }

.float {
  position: absolute; display: inline-flex; align-items: center; gap: .55rem;
  background: var(--karta); border-radius: var(--radius); padding: .5rem .8rem .5rem .5rem;
  font-size: .8rem; font-weight: 600; color: var(--tinta);
  box-shadow: 0 14px 30px -12px rgba(18, 63, 62, .35), 0 0 0 1px rgba(18, 63, 62, .06);
}
.float .chip { min-width: 0; }
.float-rast { top: 4.5rem; right: -1.25rem; animation: pop .6s cubic-bezier(.3,1.5,.5,1) both 2.2s, bob 6s ease-in-out infinite 3s; }
.float-paznja { top: 34%; left: -3rem; animation: pop .6s cubic-bezier(.3,1.5,.5,1) both 2.5s, bob 7s ease-in-out infinite 3.4s; }
.next-step {
  position: relative; margin: -2.25rem 1.5rem 0 -1.5rem;
  background: var(--more-duboko); color: var(--karta); border-radius: var(--radius); padding: 1rem 1.15rem;
  box-shadow: 0 20px 40px -18px rgba(18, 63, 62, .6);
  animation: rise .8s cubic-bezier(.2,.8,.2,1) both 2.8s;
}
.next-step .label { color: #F2B4A4; font-size: .7rem; }
.next-step p { font: 600 1rem/1.35 var(--font-display); margin-top: .3rem; }
.visual-note { font-size: .7rem; color: var(--tinta-blaga); text-align: center; padding-bottom: 1.25rem; }

/* Ulazne animacije */
.reveal { animation: rise .8s cubic-bezier(.2,.8,.2,1) both; }
.hero-copy .reveal:nth-child(2) { animation-delay: .08s; }
.hero-copy .reveal:nth-child(3) { animation-delay: .16s; }
.hero-copy .reveal:nth-child(4) { animation-delay: .24s; }
.hero-copy .reveal:nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-to { to { opacity: .45; } }
@keyframes draw-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes spin-in { from { opacity: 0; transform: rotate(-60deg) scale(.7); } to { opacity: .9; transform: none; } }
@keyframes halo { 0% { opacity: .8; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.7); } }

/* Sekcije */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-tint { background: var(--more-svijetlo); }
.section-line { border-top: 1px solid var(--crta); }
.two-col { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.prose { color: var(--tinta-blaga); font-size: 1.075rem; display: grid; gap: 1rem; }
.prose strong { color: var(--tinta); }
h2 + .prose { margin-top: 1.25rem; }

/* Koraci */
.steps {
  list-style: none; padding: 0; margin: 2.75rem 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--crta);
}
.steps li { padding: 1.75rem 1.5rem 0 0; }
.steps li + li { padding-left: 1.5rem; border-left: 1px solid var(--crta); }
.step-no { display: block; font: 600 2rem/1 var(--font-display); color: var(--more); margin-bottom: 1rem; }
.steps h3 { margin-bottom: .6rem; }
.steps p { color: var(--tinta-blaga); font-size: .975rem; }

/* Načela */
.rewrite { background: var(--more-svijetlo); border-radius: var(--radius); padding: .4rem 1.4rem; }
.rewrite-row { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; align-items: baseline; padding: 1rem 0; }
.rewrite-row + .rewrite-row { border-top: 1px solid rgba(30, 107, 104, .18); }
.rewrite-row .label { color: var(--tinta-blaga); }
.rewrite-no p { color: var(--tinta-blaga); font-size: 1.05rem; }
.rewrite-no s { text-decoration-color: var(--igla); text-decoration-thickness: 2px; }
.rewrite-yes .label { color: var(--more); }
.rewrite-yes p { font: 600 1.35rem/1.3 var(--font-display); color: var(--more-duboko); }
.signals-title { display: block; color: var(--tinta-blaga); margin-top: 2.25rem; }
.signals { list-style: none; padding: 0; margin: .75rem 0 0; }
.signals li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; align-items: center; padding: .7rem 0; border-top: 1px solid var(--crta); color: var(--tinta-blaga); font-size: .95rem; }
.signals li:last-child { border-bottom: 1px solid var(--crta); }
.chip { text-align: center; padding: .25rem .6rem; border-radius: var(--radius-sm); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.chip-rast { background: #E3EFE6; color: #335C41; }
.chip-paznja { background: #FBF0DD; color: #8A5C12; }
.chip-podrska { background: #EFE9F5; color: #5A4174; }
.note { margin-top: 1.25rem; font: 600 1.05rem/1.4 var(--font-display); }

/* Za koga */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); margin-top: 2.5rem; }
.audience > div { border-top: 2px solid var(--more); padding-top: 1.25rem; }
.audience h3 { margin-bottom: .5rem; }
.audience p { color: var(--tinta-blaga); }

/* Poruka */
.statement { background: var(--more-duboko); color: var(--karta); padding: clamp(4rem, 9vw, 7rem) 0; }
.statement-inner { display: flex; align-items: center; gap: clamp(1.5rem, 5vw, 4rem); }
.statement-mark { width: clamp(5rem, 12vw, 9rem); flex: none; }
.statement-mark .mark-dots, .statement-mark .mark-tail { fill: var(--karta); }
.statement-mark .mark-pin { fill: var(--more-duboko); }
.statement-text { font: 600 clamp(1.6rem, 3.6vw, 2.75rem)/1.25 var(--font-display); }
.statement-text span { color: var(--igla); }

/* Privatnost */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: 1.1rem 0 1.1rem 2.25rem; border-bottom: 1px solid var(--crta); color: var(--tinta-blaga); }
.checks li:first-child { padding-top: 0; }
.checks li:first-child::before { top: .25rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 1.35rem;
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--more-svijetlo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E6B68' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/70% no-repeat;
}
.checks strong { color: var(--tinta); }

/* CTA */
.cta { background: var(--more); color: var(--karta); padding: clamp(3.5rem, 8vw, 5.5rem) 0; text-align: center; }
.cta-inner { display: grid; justify-items: center; gap: 1rem; }
.cta p { max-width: 36rem; opacity: .9; font-size: 1.075rem; margin-bottom: .75rem; }

/* Podnožje */
.site-footer { background: var(--tinta); color: var(--karta); padding: 2.5rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.footer-inner .wordmark { font-size: 1.6rem; }
.footer-inner .wordmark .mark-pin { fill: var(--tinta); }
.footer-inner p { font-family: var(--font-display); font-weight: 600; }
.footer-inner .muted { margin-left: auto; font: 400 .875rem var(--font-body); opacity: .7; }
.footer-inner a { color: inherit; }

/* Responzivno */
@media (max-width: 900px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding: 3rem 0 3.5rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 4rem; }
  .hero-bg::before { top: auto; width: 100%; height: 46%; border-radius: 48px 48px 0 0; }
  .hero-sun { left: auto; right: 6%; top: 3%; width: 4.5rem; }
  .hero-ring { top: auto; bottom: 4%; right: 4%; width: 7rem; opacity: .5; }
  .hero-pill { display: none; }
  .hero-visual { padding-left: 0; max-width: 34rem; margin: 0 auto; width: 100%; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li { padding-bottom: 1.5rem; }
  .audience { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .float { display: none; }
  .hero { padding: 3.25rem 0 3rem; }
  .hero-sun, .hero-ring { display: none; }
  .hero-logo { margin-bottom: 1.25rem; }
  .hero-logo .wordmark { font-size: clamp(3.5rem, 17vw, 5rem); }
  .tagline { font-size: 1.85rem; }
  .lead { font-size: 1.1rem; line-height: 1.7; margin-top: 1.75rem; }
  .actions { margin-top: 2.25rem; gap: .75rem; }
  .actions { display: grid; grid-template-columns: 1fr 1fr; }
  .actions .btn { padding-inline: .75rem; text-align: center; }
  .hero-card { padding: 1.1rem 1.1rem .8rem; }
  .next-step { margin: -1.5rem .75rem 0; }
  .site-nav { display: none; }
  .header-inner { justify-content: space-between; }
  .wordmark { font-size: 1.6rem; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding-left: 0; border-left: 0; border-bottom: 1px solid var(--crta); }
  .statement-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner .muted { margin-left: 0; }
  .rewrite { padding: .2rem 1.1rem; }
  .rewrite-row { grid-template-columns: 1fr; gap: .35rem; }
  .rewrite-yes p { font-size: 1.25rem; }
  .signals li { grid-template-columns: 7rem 1fr; gap: .85rem; font-size: .9rem; }
  .chip { padding: .25rem .4rem; font-size: .75rem; }
}
@media (max-width: 400px) {
  .actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
}
