/* Klopio — landing + paketi (koristi tokene iz klopio.css) */

.landing { background: var(--bg); overflow-x: hidden; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.gold { color: var(--gold-text); }
.btn-lg { min-height: 52px; padding: 0 22px; font-size: 15px; }

/* ── HEADER ── */
.site-head { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .25s, border-color .25s, backdrop-filter .25s; border-bottom: 1px solid transparent; }
.site-head.scrolled { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.head-row { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.head-nav { display: flex; gap: 34px; font-size: 14px; color: var(--muted); }
.head-nav a:hover { color: var(--text); }
.head-actions { display: flex; align-items: center; gap: 10px; }
.head-login { font-size: 14px; font-weight: 600; color: var(--muted); padding: 0 8px; }
.head-login:hover { color: var(--text); }
.head-cta { min-height: 42px; padding: 0 16px; }

.lang-drop { position: relative; }
.lang-drop summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 11px; font-size: 13px; font-weight: 700; }
.lang-drop summary::-webkit-details-marker { display: none; }
.lang-drop[open] summary { border-color: var(--gold-line); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 140px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; padding: 5px; box-shadow: var(--shadow-lg); }
.lang-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--muted); }
.lang-menu a:hover, .lang-menu a.active { background: var(--panel-3); color: var(--text); }

/* ── HERO ── */
.hero { position: relative; min-height: 780px; padding: 150px 0 190px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; isolation: isolate; }
.hero-art { position: absolute; right: 0; top: 0; width: 62%; height: 100%; object-fit: cover; object-position: 38% center; z-index: -2; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 20% 60%, rgba(120, 90, 30, .12), transparent 35%),
    linear-gradient(90deg, var(--bg) 0%, var(--bg) 38%, color-mix(in srgb, var(--bg) 55%, transparent) 62%, transparent 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 28%); }
.hero-content { max-width: 620px; }
.hero .badge { margin-bottom: 24px; }
.hero h1 { font-size: clamp(46px, 6.4vw, 84px); line-height: .98; letter-spacing: -.055em; margin: 0 0 24px; font-weight: 800; }
.hero h1 span { color: var(--gold-text); }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 520px; margin: 0 0 30px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 13px; }
.trust li { display: flex; align-items: center; gap: 7px; }
.trust .ic { color: var(--gold-text); }

.stats-wrap { position: absolute; left: 0; right: 0; bottom: 36px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); padding: 16px 8px; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--bg-2) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.stat { display: flex; align-items: center; gap: 14px; padding: 6px 22px; border-right: 1px solid var(--line); min-width: 0; }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 18px; letter-spacing: -.02em; white-space: nowrap; }
.stat small { display: block; color: var(--muted-2); font-size: 12px; line-height: 1.35; }
.stat-ic { width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center; color: var(--gold-text); background: var(--gold-soft); border: 1px solid var(--gold-line); }
.stat-ic.red { color: var(--red); background: var(--red-bg); border-color: rgba(239, 77, 109, .3); }

/* ── SEKCIJE ── */
.section { padding: 110px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-head h2, .cta h2 { font-size: clamp(32px, 4vw, 46px); line-height: 1.06; letter-spacing: -.045em; margin: 0; }
.section-head p { color: var(--muted); margin: 14px 0 0; font-size: 16px; }

.how { padding-bottom: 60px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; }
.step { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, var(--panel), var(--bg-2)); }
.step-n { position: absolute; right: 22px; top: 18px; font-size: 44px; font-weight: 800; letter-spacing: -.05em; color: var(--line-2); line-height: 1; }
.step h3, .feature h3 { font-size: 17px; margin: 20px 0 6px; letter-spacing: -.02em; }
.step p, .feature p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.6; }

.features { background: var(--bg-2); border-block: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature { padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, var(--panel), transparent); transition: border-color .2s, transform .2s var(--ease); }
.feature:hover { border-color: var(--line-2); transform: translateY(-2px); }

/* ── CENE ── */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 16px; }
.price { position: relative; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); display: flex; flex-direction: column; }
.price.pro { border-color: var(--gold-line); background: linear-gradient(150deg, color-mix(in srgb, var(--gold) 6%, var(--panel)), var(--bg-2)); box-shadow: 0 30px 80px rgba(240, 204, 85, .05); }
.price h3 { margin: 0; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.price-value { font-size: 44px; font-weight: 800; letter-spacing: -.04em; margin: 10px 0 2px; }
.price-value span { font-size: 14px; font-weight: 500; color: var(--muted-2); letter-spacing: 0; }
.price-desc { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.price ul { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.price li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.price li .ic { color: var(--gold-text); }
.price li.muted { color: var(--muted-2); }
.price li.muted .ic { color: var(--muted-2); }
.popular { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--gold-ink); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: var(--r-pill); }
.plan-current { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: var(--r-sm); border: 1px solid var(--green-line); background: var(--green-bg); color: var(--green); font-weight: 700; font-size: 14px; }
.price-note { text-align: center; color: var(--muted-2); font-size: 13px; margin: 22px 0 0; }

/* ── FAQ ── */
.faq-wrap { max-width: 780px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 700; font-size: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ic { color: var(--muted); transition: transform .2s; }
.faq-item[open] summary .ic { transform: rotate(180deg); color: var(--gold-text); }
.faq-item p { margin: 0; padding: 0 20px 20px; color: var(--muted); line-height: 1.7; font-size: 15px; }

/* ── CTA ── */
.cta { position: relative; overflow: hidden; min-height: 420px; display: flex; align-items: center; border-top: 1px solid var(--line); isolation: isolate; }
.cta-img { position: absolute; right: 0; top: 0; width: 66%; height: 100%; object-fit: cover; object-position: center 75%; z-index: -2; }
.cta::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 92%, transparent) 36%, transparent 78%); }
.cta-content { max-width: 520px; padding: 80px 0; }
.cta .eyebrow { margin-bottom: 12px; }
.cta h2 { font-size: clamp(38px, 5vw, 56px); }
.cta p { color: var(--muted); font-size: 16px; margin: 16px 0 28px; max-width: 420px; }

/* ── FOOTER ── */
.site-foot { border-top: 1px solid var(--line); }
.foot-row { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 18px 0; }
.site-foot .logo { font-size: 20px; }
.foot-copy { color: var(--muted-2); font-size: 13px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.foot-links a:hover { color: var(--text); }

/* ── Svetla tema: hero/cta slike ostaju tamne, pa tekst preko njih ── */
[data-theme="light"] .hero::before { background: radial-gradient(circle at 20% 60%, rgba(240, 204, 85, .18), transparent 35%), linear-gradient(90deg, var(--bg) 0%, var(--bg) 40%, color-mix(in srgb, var(--bg) 40%, transparent) 64%, transparent 100%), linear-gradient(0deg, var(--bg) 0%, transparent 25%); }

/* ── RESPONSIVE ── */
@media (max-width: 1020px) {
  .head-nav { display: none; }
  .stat { padding: 6px 14px; gap: 10px; }
  .stat-ic { width: 40px; height: 40px; }
}
@media (max-width: 900px) {
  .hero { min-height: 0; padding: 116px 0 0; display: block; }
  .hero-art { position: relative; width: 100%; height: 420px; object-position: 58% center; margin-top: -60px; mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%); -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%); }
  .hero picture { display: block; order: 2; }
  .hero { display: flex; flex-direction: column; }
  .hero-inner { order: 1; }
  .hero::before { background: radial-gradient(circle at 20% 20%, rgba(120, 90, 30, .12), transparent 40%); }
  .stats-wrap { position: relative; bottom: auto; order: 3; margin-top: -40px; margin-bottom: 20px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 8px; }
  .stat:nth-child(2) { border-right: 0; }
  .steps, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps .step:last-child { grid-column: 1 / -1; }
  .cta { min-height: 0; display: block; }
  .cta-img { position: relative; width: 100%; height: 300px; mask-image: linear-gradient(180deg, transparent, #000 25%, #000 70%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 70%, transparent); }
  .cta::after { display: none; }
  .cta-content { padding: 0 0 70px; margin-top: -40px; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .head-row { height: 64px; }
  .head-login { display: none; }
  .head-cta { padding: 0 12px; font-size: 13px; }
  .head-cta .ic { display: none; }
  .lang-drop summary { height: 40px; padding: 0 10px; }
  .site-head .logo { font-size: 23px; }
  .hero { padding-top: 96px; }
  .hero h1 { letter-spacing: -.05em; }
  .lead { font-size: 16px; }
  .actions .btn { flex: 1 1 100%; }
  .hero-art { height: 320px; }
  .stats { grid-template-columns: 1fr 1fr; padding: 10px 4px; }
  .stat { flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 12px; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
  .stat b { font-size: 16px; white-space: normal; }
  .stat small { font-size: 11px; }
  .section { padding: 76px 0; }
  .section-head { margin-bottom: 34px; }
  .steps, .feature-grid, .price-grid { grid-template-columns: 1fr; }
  .step, .feature, .price { padding: 24px; }
  .foot-row { flex-direction: column; align-items: flex-start; }
}

/* ═══════════ v2.1 — zajednički header/footer + VODIČ ═══════════ */
.site-head.solid { background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }

.foot-grid { display: grid; grid-template-columns: 1.4fr 1.6fr 1fr 1fr; gap: 36px; padding: 56px 0 30px; }
.foot-brand p { color: var(--muted); font-size: 14px; max-width: 280px; margin: 12px 0 0; line-height: 1.6; }
.foot-col h4 { margin: 4px 0 12px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.foot-col a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; line-height: 1.4; }
.foot-col a:hover { color: var(--text); }
.foot-col a.more { color: var(--gold-text); }
.foot-bottom { border-top: 1px solid var(--line); padding: 20px 0 28px; color: var(--muted-2); font-size: 13px; }

.center-link { text-align: center; margin: 30px 0 0; }

.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gwrap { display: contents; }
.gwrap[hidden] { display: none !important; }
.guide-card { position: relative; display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(150deg, var(--panel), var(--bg-2)); transition: border-color .2s, transform .2s var(--ease); min-height: 100%; }
.guide-card:hover { border-color: var(--gold-line); transform: translateY(-3px); }
.gc-emoji { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 28px; background: var(--gold-soft); border: 1px solid var(--gold-line); margin-bottom: 18px; }
.gc-meta { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 8px; }
.guide-card h3 { font-size: 19px; line-height: 1.25; letter-spacing: -.02em; margin: 0 0 10px; }
.guide-card p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 18px; flex: 1; }
.gc-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--gold-text); }

.guides-page { padding-top: 76px; }
.guides-hero { padding: 64px 0 10px; text-align: center; background: radial-gradient(800px 360px at 50% 0%, rgba(34, 72, 58, .35), transparent 70%); }
[data-theme="light"] .guides-hero { background: radial-gradient(800px 360px at 50% 0%, rgba(240, 204, 85, .2), transparent 70%); }
.guides-hero h1 { font-size: clamp(38px, 5.5vw, 64px); line-height: 1.02; letter-spacing: -.05em; margin: 12px auto 16px; max-width: 820px; }
.guides-hero .lead { margin: 0 auto 26px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; font-size: 13px; color: var(--muted-2); margin-bottom: 22px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.cat-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.cat { height: 38px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--panel); color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; }
.cat.active { border-color: var(--gold-line); color: var(--gold-text); background: var(--gold-soft); }
.guides-list { padding-top: 40px; }

/* Članak */
.article-head { text-align: center; max-width: 860px; padding: 56px 0 26px; }
.article-emoji { font-size: 44px; margin-bottom: 8px; }
.article-head h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.06; letter-spacing: -.045em; margin: 6px 0 18px; }
.article-head .lead { margin: 0 auto 22px; max-width: 700px; }
.article-meta { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14px; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.tag-cat { padding: 5px 11px; border-radius: var(--r-pill); border: 1px solid var(--gold-line); color: var(--gold-text); background: var(--gold-soft); font-weight: 700; font-size: 12px; }
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 720px); justify-content: center; gap: 56px; padding: 30px 0 40px; border-top: 1px solid var(--line); }
.toc-inner { position: sticky; top: 100px; display: grid; gap: 2px; }
.toc h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.toc a { font-size: 14px; color: var(--muted); padding: 7px 0 7px 14px; border-left: 2px solid var(--line); line-height: 1.35; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--gold-text); border-color: var(--gold); }

.prose { font-size: 17px; line-height: 1.8; color: color-mix(in srgb, var(--text) 86%, var(--muted)); }
.prose h2 { font-size: 26px; line-height: 1.2; letter-spacing: -.03em; color: var(--text); margin: 46px 0 14px; scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 6px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; }
.prose li { margin-bottom: 10px; padding-left: 4px; }
.prose li::marker { color: var(--gold-text); font-weight: 700; }
.prose strong { color: var(--text); }
.prose a { color: var(--gold-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose .faq-list { margin-top: 6px; }
.prose .faq-item p { font-size: 15px; }

.inline-cta { display: flex; align-items: center; gap: 16px; margin: 40px 0; padding: 20px; border-radius: 18px; border: 1px solid var(--gold-line); background: linear-gradient(120deg, color-mix(in srgb, var(--gold) 8%, var(--panel)), var(--panel)); }
.inline-cta strong { display: block; font-size: 16px; }
.inline-cta p { margin: 2px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.inline-cta div { flex: 1; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.related { padding-top: 70px; border-top: 1px solid var(--line); background: var(--bg-2); }

.guide-cta-wrap { padding: 20px 0 90px; }
.related + .guide-cta-wrap, .guides-list + .guide-cta-wrap { background: var(--bg-2); }
.guides-list + .guide-cta-wrap { background: none; }
.guide-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 40px; border-radius: 24px; border: 1px solid var(--gold-line);
  background: radial-gradient(500px 240px at 90% 0%, rgba(240, 204, 85, .14), transparent 70%), linear-gradient(135deg, var(--panel), var(--bg-2)); }
.guide-cta h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.04em; line-height: 1.1; margin: 10px 0 10px; }
.guide-cta p { color: var(--muted); margin: 0; max-width: 520px; }

@media (max-width: 1020px) {
  .article-layout { grid-template-columns: minmax(0, 720px); }
  .toc { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .guide-grid { grid-template-columns: 1fr 1fr; }
  .guide-cta { flex-direction: column; align-items: flex-start; padding: 28px; }
}
@media (max-width: 640px) {
  .guide-grid { grid-template-columns: 1fr; }
  .guides-page { padding-top: 64px; }
  .guides-hero { padding-top: 40px; }
  .article-head { padding-top: 36px; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 22px; }
  .inline-cta { flex-wrap: wrap; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
}
.prose .btn { text-decoration: none; }
.prose .btn-gold { color: var(--gold-ink); }
.prose .btn-ghost { color: var(--text); }
