/* Paleta preuzeta sa pozadine naslovnice */
:root {
  --sky: #8fbcc1;
  --sky-soft: #e3eeec;
  --cream: #fbf4e8;
  --peach: #ffd88b;
  --apricot: #f8c495;
  --terracotta: #bc6d4c;
  --navy: #13305a;
  --navy-deep: #0d2343;
  --green: #2b6228;
  --green-soft: #e4efdc;
  --text: #1d2b3d;
  --muted: #55657a;
  --white: #ffffff;

  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(19, 48, 90, .35);
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--green); }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 780px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  padding: .8em 1.5em;
  background: var(--green); color: var(--white);
  box-shadow: 0 8px 20px -8px rgba(43, 98, 40, .7);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); background: #24531f; }
.btn:focus-visible { outline: 3px solid var(--peach); outline-offset: 3px; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.btn--large { font-size: 1.1rem; padding: 1em 1.9em; }
.btn--small { font-size: .9rem; padding: .6em 1.2em; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--peach { background: var(--peach); color: var(--navy); box-shadow: 0 8px 20px -8px rgba(255, 216, 139, .8); }
.btn--peach:hover { background: #ffcb64; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 244, 232, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(19, 48, 90, .08);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; color: var(--navy); text-decoration: none; }
.brand__logo { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav__links a:hover { color: var(--green); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse at 85% 80%, rgba(248, 196, 149, .75), transparent 55%),
    linear-gradient(180deg, var(--sky) 0%, #c9dcd6 30%, var(--cream) 62%, var(--peach) 100%);
  padding: 64px 0 88px;
  overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.ribbon {
  display: inline-block; background: var(--green); color: var(--white);
  font-family: var(--font-head); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .45em 1.4em; margin-bottom: 20px;
  clip-path: polygon(0 0, 100% 0, 96% 50%, 100% 100%, 0 100%, 4% 50%);
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; text-transform: uppercase; margin-bottom: .2em; }
.hero__num { display: block; font-size: 2.3em; line-height: .95; letter-spacing: -.02em; }
.hero__sub { font-family: var(--font-head); font-weight: 700; color: var(--green); text-transform: uppercase; font-size: 1.1rem; letter-spacing: .03em; }
.hero__lead { font-size: 1.15rem; color: var(--text); max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .95rem; color: var(--navy); font-weight: 600; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg, .secure svg { width: 20px; height: 20px; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.hero__visual { position: relative; justify-self: center; max-width: 320px; }
.cover {
  border-radius: 6px 14px 14px 6px;
  box-shadow: -10px 0 0 -4px rgba(0,0,0,.08), 0 40px 60px -20px rgba(19, 48, 90, .55);
  transform: perspective(1200px) rotateY(-8deg) rotateZ(1deg);
  transition: transform .4s ease;
}
.hero__visual:hover .cover { transform: perspective(1200px) rotateY(0) rotateZ(0); }
.seal {
  position: absolute; left: -36px; bottom: 32px;
  width: 108px; height: 108px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--navy); color: var(--white);
  font-family: var(--font-head); font-weight: 700; font-size: .72rem; text-transform: uppercase; line-height: 1.5;
  box-shadow: 0 0 0 6px rgba(255,255,255,.6), var(--shadow);
}

/* ---------- Features ---------- */
.features { margin-top: -48px; position: relative; z-index: 2; }
.features__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: var(--cream); border-radius: var(--radius); box-shadow: var(--shadow);
}
.feature { padding: 28px 24px; border-right: 1px solid rgba(19, 48, 90, .1); }
.feature:last-child { border-right: 0; }
.feature h3 { margin: 14px 0 6px; font-size: 1.02rem; }
.feature p { font-size: .95rem; color: var(--muted); margin: 0; }
.feature__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--green); display: grid; place-items: center; }
.feature__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--sky { background: linear-gradient(180deg, var(--sky-soft), #f3f1e6); }
.section--cream { background: var(--cream); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section__head p:last-child { color: var(--muted); }
.lead { font-size: 1.15rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split--center { align-items: center; }

.checks { list-style: none; padding: 0; margin: 20px 0 0; }
.checks li { position: relative; padding-left: 34px; margin-bottom: 10px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b6228' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat;
}

.card { border-radius: var(--radius); padding: 36px; }
.card--peach { background: linear-gradient(160deg, #fff3dc, var(--apricot)); box-shadow: var(--shadow); }
.steps { list-style: none; padding: 0; margin: 20px 0 0; }
.steps li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px dashed rgba(19, 48, 90, .2); font-weight: 600; color: var(--navy); }
.steps li:last-child { border-bottom: 0; }
.steps span {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); color: var(--white);
  font-family: var(--font-head); font-weight: 800;
}

/* ---------- Topics ---------- */
.topics { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: t; }
.topics li {
  counter-increment: t;
  position: relative; background: var(--white); border-radius: 12px; padding: 16px 18px 16px 60px;
  border: 1px solid rgba(19, 48, 90, .08);
  transition: transform .15s ease, box-shadow .15s ease;
}
.topics li:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.topics li::before {
  content: counter(t, decimal-leading-zero);
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-head); font-weight: 800; color: var(--sky); font-size: 1.1rem;
}
.topics b { display: block; color: var(--navy); font-family: var(--font-head); font-size: .95rem; }
.topics span { color: var(--muted); font-size: .95rem; }
.topics li.bonus { background: var(--peach); border-color: transparent; }
.topics li.bonus::before { content: "★"; color: var(--terracotta); }

/* ---------- Page previews ---------- */
.pages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 760px; margin: 0 auto; }
.pages figure { margin: 0; }
.pages img { border-radius: 8px; box-shadow: var(--shadow); background: var(--white); transition: transform .2s ease; }
.pages figure:hover img { transform: translateY(-6px) rotate(-.5deg); }
.pages figcaption { text-align: center; margin-top: 14px; font-weight: 600; color: var(--navy); }

/* ---------- Pricing ---------- */
.price-card {
  display: grid; grid-template-columns: .85fr 1.15fr; max-width: 920px; margin: 0 auto;
  background: var(--white); border-radius: 24px; overflow: hidden; box-shadow: 0 30px 60px -25px rgba(19, 48, 90, .45);
}
.price-card__media { background: linear-gradient(180deg, var(--sky), var(--apricot)); display: grid; place-items: center; padding: 40px; }
.price-card__media img { border-radius: 6px; box-shadow: 0 24px 40px -16px rgba(19, 48, 90, .6); max-width: 300px; }
.price-card__body { padding: 44px; }
.price { display: flex; align-items: baseline; gap: 14px; margin: 4px 0 8px; }
.price__now { font-family: var(--font-head); font-weight: 800; font-size: 3rem; color: var(--green); }
.price__old { font-size: 1.3rem; color: var(--muted); text-decoration: line-through; }
.price-card .btn { margin-top: 24px; }
.secure { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: 18px 0 0; }
.checkout-error { color: #b3261e; font-weight: 600; margin-top: 12px; }

/* ---------- FAQ ---------- */
details { border-bottom: 1px solid rgba(19, 48, 90, .12); padding: 6px 0; }
summary {
  cursor: pointer; list-style: none; padding: 16px 40px 16px 0; position: relative;
  font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.05rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--green); transition: transform .2s ease; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { color: var(--muted); padding-right: 40px; }

/* ---------- Final CTA ---------- */
.final { background: linear-gradient(180deg, var(--cream), var(--peach)); padding: 88px 0; text-align: center; }
.final p { font-style: italic; color: var(--terracotta); font-size: 1.15rem; }
.final .btn--peach { background: var(--navy); color: var(--white); box-shadow: var(--shadow); }
.final .btn--peach:hover { background: var(--navy-deep); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #a9b8cc; padding: 28px 0; font-size: .92rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer a { color: #d6e0ec; text-decoration: none; }
.footer a:hover { color: var(--peach); }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { display: none; }

/* ---------- Izbor chata (Instagram / Messenger) ---------- */
.buy-dialog {
  width: min(420px, calc(100% - 32px)); border: 0; border-radius: 20px; padding: 36px 28px 28px;
  box-shadow: 0 30px 60px -20px rgba(19, 48, 90, .5); text-align: center; color: var(--navy);
}
.buy-dialog::backdrop { background: rgba(19, 48, 90, .55); }
.buy-dialog h2 { margin: 0 0 8px; }
.buy-dialog p { color: var(--muted); margin: 0 0 22px; }
.buy-dialog .btn { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; text-decoration: none; }
.buy-dialog .btn svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.buy-dialog__ig { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }
.buy-dialog__ig:hover { background: linear-gradient(45deg, #e0852a, #c71f3a 50%, #a5147a); }
.buy-dialog__fb { background: #0866ff; }
.buy-dialog__fb:hover { background: #0657d9; }
.buy-dialog__close {
  position: absolute; top: 10px; right: 14px; border: 0; background: none; cursor: pointer;
  font-size: 1.8rem; line-height: 1; color: var(--muted);
}

/* ---------- Status pages (uspjeh / otkazano) ---------- */
.status { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px;
  background: linear-gradient(180deg, var(--sky) 0%, var(--cream) 55%, var(--peach) 100%); }
.status__card { background: var(--white); border-radius: 24px; box-shadow: var(--shadow); padding: 48px 40px; max-width: 560px; text-align: center; }
.status__icon { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center; background: var(--green); color: var(--white); font-size: 2rem; }
.status__icon--warn { background: var(--terracotta); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner, .split, .price-card { grid-template-columns: 1fr; }
  .hero__visual { max-width: 260px; order: -1; }
  .seal { left: -14px; width: 88px; height: 88px; font-size: .55rem; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(2) { border-right: 0; }
  .feature:nth-child(-n+2) { border-bottom: 1px solid rgba(19, 48, 90, .1); }
  .topics { grid-template-columns: repeat(2, 1fr); }
  .price-card__media img { max-width: 220px; }
}
@media (max-width: 720px) {
  body { font-size: 17px; padding-bottom: 72px; }
  .nav__links { display: none; }
  .brand { font-size: .95rem; white-space: nowrap; }
  .brand__logo { width: 36px; height: 36px; }
  .nav__inner { height: 60px; }
  .nav__cta { font-size: .85rem; padding: .5em 1.1em; white-space: nowrap; flex-shrink: 0; }
  .nav__cta-extra { display: none; }
  .hero { padding: 40px 0 80px; }
  .hero__visual { max-width: 200px; }
  .seal { display: none; }
  .cover { transform: none; }
  .section { padding: 72px 0; }
  .features__grid, .topics, .pages { grid-template-columns: 1fr; }
  .feature { border-right: 0; border-bottom: 1px solid rgba(19, 48, 90, .1); }
  .feature:last-child { border-bottom: 0; }
  .pages { max-width: 360px; margin: 0 auto; }
  .price-card__body { padding: 32px 22px; }
  .card { padding: 28px 22px; }
  .sticky-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    justify-content: space-between; align-items: center; padding: 12px 16px;
    background: var(--cream); box-shadow: 0 -8px 24px -12px rgba(19, 48, 90, .4);
    font-family: var(--font-head); color: var(--navy);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
