/* Cjenik: hero with the plan/period switches, plan cards laid over the hero edge, comparison table, FAQ. Shared blocks (gs-*) come from sections.css. */

.ce-page > .site-header { margin-bottom: 0; }

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.ce-hero { align-items: center; text-align: center; padding: 64px 0 168px; gap: 18px; }
.ce-badge { font-family: var(--mono); font-size: 12px; color: var(--gs-navy); background: var(--gs-sky); border-radius: 999px; padding: 3px 10px; }
.ce-title { max-width: 900px; }
.ce-lead { max-width: 680px; font-size: 18px; }
.ce-toggles { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.ce-seg { display: flex; gap: 4px; background: rgba(255, 255, 255, 0.1); border-radius: 10px; padding: 4px; }
.ce-seg[hidden], .ce-badge[hidden] { display: none; }
.ce-seg-btn { border: 0; font: inherit; font-size: 15px; padding: 9px 18px; border-radius: 8px; min-height: 42px; background: transparent; color: #cbd5e1; cursor: pointer; }
.ce-seg-btn.active { background: #ffffff; color: var(--gs-navy); font-weight: 600; }
.ce-seg-btn:focus-visible { outline: 3px solid var(--gs-sky); outline-offset: 2px; }

/* ── Plans ──────────────────────────────────────────────────────────────────── */
.ce-plans { position: relative; z-index: 2; margin-top: -128px; }
.ce-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.ce-card { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 18px 48px rgba(15, 32, 68, 0.14); padding: 28px; }
.ce-card-strong { border: 2px solid var(--gs-link); box-shadow: 0 24px 64px rgba(15, 32, 68, 0.22); }
.ce-flag { position: absolute; top: -13px; left: 28px; font-size: 12px; font-weight: 600; color: #ffffff; background: var(--gs-navy-2); border-radius: 999px; padding: 3px 12px; }
.ce-card-name { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 700; }
.ce-pilot { display: inline-block; margin-left: 6px; padding: 1px 8px; border: 1px solid var(--border-strong); border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: middle; color: var(--text-muted); }
.ce-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.ce-amount { font-size: 44px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.ce-period { font-size: 16px; color: var(--text-muted); }
.ce-period-free { color: var(--gs-ok-text); font-weight: 600; }
.ce-price-stack { flex-direction: column; align-items: flex-start; gap: 2px; }
.ce-price-stack .ce-period { font-size: 14px; }
.ce-amount-word { font-size: 32px; line-height: 1.3; }
.ce-annual { font-size: 13px; font-weight: 600; color: var(--gs-ok-text); }
.ce-sub { font-size: 12px; color: var(--text-small); }
.ce-card-desc { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-muted); }
.ce-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: 10px; font-size: 15px; font-weight: 600; text-decoration: none; text-align: center; }
.ce-btn-solid { background: var(--gs-navy-2); color: #ffffff; }
.ce-btn-solid:hover { filter: brightness(1.15); }
.ce-btn-outline { border-color: var(--gs-link); color: var(--gs-link); }
.ce-btn-outline:hover { background: var(--gs-pill-bg); }
.ce-btn:focus-visible { outline: 3px solid var(--gs-link); outline-offset: 2px; }
.ce-feats { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 9px; font-size: 15px; }
.ce-feats li { display: flex; gap: 10px; line-height: 1.4; }
.ce-feats li::before { content: "\2713"; flex: none; font-weight: 700; color: var(--gs-ok-text); }
.ce-feats .ce-feats-lead { color: var(--text-muted); }
.ce-feats .ce-feats-lead::before { content: none; }
.ce-note { margin: 18px 0 0; text-align: center; font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.ce-note a { color: var(--gs-link); }

/* ── Trust strip ────────────────────────────────────────────────────────────── */
.ce-trust { --gs-bg: transparent; --gs-bd: transparent; padding: 40px 0 0; gap: 10px 32px; }

/* ── Comparison ─────────────────────────────────────────────────────────────── */
.ce-compare { padding: 80px 0; gap: 22px; }
.ce-table-wrap { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 8px 20px 16px; }
.ce-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.ce-table th, .ce-table td { padding: 11px 8px; text-align: center; border-top: 1px solid var(--border); }
.ce-table tbody th { text-align: left; font-weight: 400; }
.ce-table thead th { position: sticky; top: 68px; z-index: 2; background: var(--surface); border-top: 0; padding: 12px 8px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.ce-table thead th:first-child { text-align: left; width: 28%; }
.ce-table thead .ce-th-strong { color: var(--text); }
.ce-table .ce-grp th { border-top: 0; padding: 18px 8px 6px; text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.ce-y { color: var(--gs-ok-text); }
.ce-n, .ce-soon { color: var(--text-muted); }
.ce-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ce-foot { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-muted); }

/* ── FAQ ────────────────────────────────────────────────────────────────────── */
.ce-faq { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; padding: 0 0 88px; }
.ce-faq-head { max-width: none; }
.ce-faq-more { font-weight: 600; color: var(--gs-link); }
.ce-faq-list { display: flex; flex-direction: column; gap: 10px; }
.ce-faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; }
.ce-faq-item summary { display: flex; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; font-weight: 700; }
.ce-faq-item summary::-webkit-details-marker { display: none; }
.ce-faq-item summary::after { content: "\25BE"; flex: none; transition: transform 0.18s; }
.ce-faq-item[open] summary::after { transform: rotate(180deg); }
.ce-faq-item summary:focus-visible { outline: 3px solid var(--gs-link); outline-offset: 4px; border-radius: 4px; }
.ce-faq-a { margin-top: 8px; line-height: 1.55; color: var(--text-muted); overflow-wrap: anywhere; }
.ce-faq-a a { color: var(--gs-link); }

@media (prefers-reduced-motion: reduce) { .ce-faq-item summary::after { transition: none; } }
body.reduce-motion .ce-faq-item summary::after { transition: none; }

@media (max-width: 900px) {
  .ce-grid { grid-template-columns: minmax(0, 1fr); }
  .ce-plans { margin-top: -104px; }
  .ce-hero { padding: 48px 0 140px; }
  .ce-compare { padding: 56px 0; }
  /* the table scrolls sideways inside its own frame; its header stays put while the frame scrolls vertically */
  .ce-table-wrap { max-height: 75vh; overflow: auto; padding: 0 12px 12px; }
  .ce-table { min-width: 820px; }
  .ce-table thead th { top: 0; }
  .ce-faq { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 56px; }
}
@media (max-width: 420px) {
  .ce-seg-btn { padding: 9px 12px; }
  .ce-amount { font-size: 38px; }
}

/* ── Poslovno tab: card tagline, Enterprise strip, Partner block (shared blocks and tokens only) ─────────── */
.ce-tagline { margin: -6px 0 0; font-size: 14px; color: var(--text-muted); }
.ce-ent { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px 26px; }
.ce-ent-text { flex: 1 1 460px; min-width: 0; }
.ce-ent-title { margin: 0 0 6px; font-size: 18px; line-height: 1.3; font-weight: 700; }
.ce-ent-text p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-muted); }
.ce-partner { --gs-accent: var(--gs-accent-on-dark); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; margin-top: 24px; background: var(--gs-navy); color: #ffffff; border-radius: 16px; padding: 32px; }
.ce-partner-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ce-partner-label { align-self: flex-start; font-family: var(--mono); font-size: 12px; color: var(--gs-navy); background: var(--gs-sky); border-radius: 999px; padding: 3px 10px; }
.ce-partner-title { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 700; }
.ce-partner-text p { margin: 0; max-width: 620px; font-size: 16px; line-height: 1.55; color: #dbe5f0; }
.ce-partner-offer { flex: 0 1 280px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ce-partner-offer .ce-amount { font-size: 40px; }
.ce-partner-offer .ce-period { color: #cbd5e1; }
.ce-partner-wholesale { margin: 0; font-size: 15px; color: #dbe5f0; }
.ce-table-wrap[hidden], .ce-foot[hidden] { display: none; }
.ce-table-biz thead th:first-child { width: 36%; }
@media (max-width: 900px) {
  .ce-table { min-width: 560px; }
  .ce-table-biz { min-width: 760px; }
  .ce-partner { padding: 24px; }
  .ce-ent { padding: 20px; }
}
@media (max-width: 900px) {
  .ce-partner-offer { flex-basis: 100%; }
  .ce-partner-offer .gs-btn { align-self: stretch; text-align: center; }
}

/* ── Poslovno v2: package cards, status marks, notes, comparison tables, roadmap summary (tokens and gs-* only) ───────────── */
.ce-grid-biz { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ce-vat { font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--text-muted); }
.ce-card-note { margin: 0; font-size: 13px; line-height: 1.45; color: var(--gs-link); }
.ce-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.45; }
.ce-items li { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ce-planned { margin: 0; padding-top: 10px; border-top: 1px dashed var(--border-strong); font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.ce-planned a { color: var(--gs-link); font-weight: 600; text-decoration: none; white-space: nowrap; }
.ce-card .ce-btn { margin-top: auto; }
.ce-st { flex: none; display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.ce-st-gotovo { color: var(--gs-ok-text); background: var(--gs-ok-bg, transparent); }
.ce-st-uskoro { color: var(--gs-link); background: var(--gs-pill-bg); }
.ce-st-ugovor { color: var(--text-muted); border: 1px solid var(--border-strong); }
.ce-notes { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; padding: 18px 22px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; line-height: 1.55; }
.ce-notes p { margin: 0; }
.ce-notes-muted { color: var(--text-muted); }
.ce-lead-biz { margin: 0; font-size: 15px; color: var(--text-muted); }
.ce-caption { text-align: left; font-weight: 700; font-size: 16px; padding: 14px 8px 6px; caption-side: top; }
.ce-table-pkg thead th:first-child { width: 40%; }
.ce-table-pkg tbody th span { margin-right: 6px; }
.ce-table-pkg tbody th .ce-st { margin-left: 2px; }
.ce-table-pkg .ce-val { font-weight: 600; font-size: 13px; }
.ce-table-wrap[data-table] + .ce-table-wrap[data-table], #compBusiness .ce-table-wrap + .ce-table-wrap { margin-top: 24px; }
.ce-pick { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 14px; }
.ce-pick[hidden] { display: none; }
.ce-pick-title { font-size: 14px; font-weight: 600; }
.ce-pick-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ce-pick label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-muted); }
.ce-pick select { min-height: 44px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-size: 15px; font-weight: 600; padding: 0 10px; }
.ce-after { padding: 0 0 40px; gap: 0; }
.ce-after[hidden] { display: none; }
.ce-roadmap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 20px 24px; border-radius: 12px; border: 1px dashed var(--border-strong); font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.ce-roadmap strong { color: var(--text); font-size: 15px; }
.ce-roadmap span { flex: 1 1 420px; }
.ce-roadmap a { color: var(--gs-link); font-weight: 600; text-decoration: none; }
.ce-lead[hidden], .ce-hero [hidden], [data-business-only][hidden], [data-personal-only][hidden] { display: none; }
@media (max-width: 1100px) { .ce-grid-biz { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .ce-grid-biz { grid-template-columns: minmax(0, 1fr); }
  .ce-table-pkg { min-width: 0; }
  #compBusiness .ce-table-wrap { max-height: none; overflow: visible; padding: 0 12px 12px; }
}

.ce-feats li .ce-st { align-self: flex-start; margin-left: 4px; }
.ce-faq-item[hidden] { display: none; }
