/* Lightning Finder: shared styles.
   Layout and colours are mostly inline on each element (exported from the design).
   Palette: ground #0F0E22, band #16143A, card #1E1B4B, line #2E2B5C,
   text #EDEBFF / #B8B4DC / #9D99C4, link #C9C3FF, eyebrow #F4B9D6, accent #0A6CF0. */

body { margin: 0; background: #0F0E22; }
a { color: #C9C3FF; }
a:hover { color: #FFFFFF; }
img { max-width: 100%; }

details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }

/* Header: hide section links on narrow screens, keep logo + language + Download */
/* Section links need ~920 px in one line (iPad portrait is 768-834 px), so they hide below that */
.nav-link { white-space: nowrap; }
@media (max-width: 920px) { .nav-link { display: none !important; } }
.nav-cta { white-space: nowrap; }
@media (max-width: 400px) { .nav-cta { display: none !important; } }

:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }

/* ---------- Walkthrough ---------- */
@keyframes wtprog { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.wt { display: flex; flex-direction: row-reverse; flex-wrap: wrap; align-items: stretch; justify-content: center; gap: 40px 64px; }
.wt-side { position: relative; flex: 1 1 300px; max-width: 440px; display: flex; flex-direction: column; gap: 16px; }
/* Wide screens: controls hang below the device so the device itself is exactly as tall as the step list */
@media (min-width: 861px) {
  .wt { padding-bottom: 60px; }
  .wt-side .wt-controls { position: absolute; left: 0; right: 0; top: 100%; margin-top: 16px; }
}
/* Device cut-outs on a transparent stage: on wide screens the stage stretches to the height of the step list */
.wt-stage { position: relative; flex: 1 1 auto; min-height: 380px; width: 100%; }
@media (min-width: 861px) { .wt-stage { min-height: 0; } }
.wt-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; opacity: 0; transform: scale(1.04); transition: opacity 0.6s ease, transform 0.8s ease; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45)); }
.wt-img.is-active { opacity: 1; transform: scale(1); }
.wt-device { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 860px) {
  .wt-side { max-width: 400px; }
  .wt-stage { flex: none; height: min(68vh, 560px); min-height: 0; }
}

.wt-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wt-counter { font-size: 14px; font-weight: 600; color: #B8B4DC; }
.wt-ctl { width: 44px; height: 44px; padding: 0; border-radius: 999px; border: 1px solid #4B4780; background: transparent; color: #FFFFFF; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.wt-ctl:hover { background: #2E2B5C; }
.wt .ico-play { display: none; }
.wt:not(.is-playing) .ico-play { display: inline; }
.wt:not(.is-playing) .ico-pause { display: none; }

.wt-list { flex: 999 1 400px; max-width: 620px; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wt-step { position: relative; overflow: hidden; width: 100%; min-height: 60px; box-sizing: border-box; text-align: left; font: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 8px; padding: 18px 22px; border-radius: 18px; background: transparent; border: 1px solid #2E2B5C; transition: background 0.3s ease, border-color 0.3s ease; }
.wt-step:hover { border-color: #5B56A0; }
.wt-step.is-active { background: #1E1B4B; border-color: #0A6CF0; }
.wt-row { display: flex; align-items: center; gap: 14px; width: 100%; }
.wt-num { min-width: 20px; font-size: 14px; font-weight: 700; color: #9D99C4; }
.wt-step.is-active .wt-num { color: #4C95FF; }
.wt-title { font-size: 19px; font-weight: 700; color: #C9C3FF; }
.wt-step.is-active .wt-title { color: #FFFFFF; }
.wt-dev { margin-left: auto; font-size: 12px; font-weight: 600; color: #9D99C4; }
.wt-text { display: none; padding-left: 34px; font-size: 16px; line-height: 1.6; color: #B8B4DC; }
.wt-step.is-active .wt-text { display: block; }
.wt-bar { display: none; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: #0A6CF0; transform-origin: left; }
.wt.is-playing .wt-step.is-active .wt-bar { display: block; animation: wtprog var(--wt-interval, 5s) linear forwards; }

@media (prefers-reduced-motion: reduce) {
  .wt-img, .wt-step { transition: none; }
}

/* ---------- Hero with interactive phone demo ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 16px 96px; background:
  radial-gradient(ellipse 60% 55% at 78% 30%, rgba(95, 110, 215, 0.28), transparent 70%),
  radial-gradient(ellipse 45% 40% at 70% 85%, rgba(244, 185, 214, 0.12), transparent 70%),
  radial-gradient(ellipse 50% 50% at 10% 20%, rgba(124, 92, 220, 0.14), transparent 70%); }
.hero-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 56px 48px; }
.hero-copy { flex: 1 1 480px; max-width: 660px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 24px; }
.hero-copy h1 { font-size: clamp(42px, 5.8vw, 76px) !important; }
.hero-copy #download { justify-content: flex-start !important; }
@media (max-width: 960px) {
  .hero { padding-top: 40px; }
  .hero-copy { align-items: center; text-align: center; flex-basis: 100%; }
  .hero-copy #download { justify-content: center !important; }
}

.hd { flex: 0 1 360px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hd-phone { position: relative; width: min(340px, 78vw); aspect-ratio: 660 / 1330; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6)); animation: hdfloat 7s ease-in-out infinite; transition: transform 0.4s ease; }
@keyframes hdfloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
/* The new frame fades in on top while the previous one stays fully visible underneath (no flicker) */
.hd-img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; z-index: 0; transition: opacity 0.3s ease; }
.hd-img.is-prev { opacity: 1; z-index: 1; transition: none; }
.hd-img.is-active { opacity: 1; z-index: 2; }
/* Analysis progress bar drawn over frame 2, matching the app's own bar (positions in % of 660x1330) */
.hd-prog { position: absolute; z-index: 3; left: 14.1%; top: 97.2%; height: 0.33%; width: 7.8%; border-radius: 2px; background: #4E88C4; opacity: 0; }
.hd.is-scanning .hd-prog { opacity: 1; animation: hdprog var(--hd-scan, 2s) cubic-bezier(0.3, 0.1, 0.5, 1) forwards; }
@keyframes hdprog { from { width: 7.8%; } to { width: 71.7%; } }
.hd-img.is-active { opacity: 1; }
/* Screen area of the hero frames (percentages of the 660x1330 images) */
.hd-screen { position: absolute; z-index: 3; left: 5.6%; right: 5.7%; top: 2.3%; bottom: 2.4%; border-radius: 13% / 6.4%; overflow: hidden; pointer-events: none; }
.hd-dim { position: absolute; inset: 0; background: rgba(10, 16, 48, 0.35); opacity: 0; transition: opacity 0.3s ease; }
.hd-scan { position: absolute; left: 0; right: 0; top: 0; height: 3px; opacity: 0; background: linear-gradient(90deg, transparent, #7FD3FF 20%, #FFFFFF 50%, #7FD3FF 80%, transparent); box-shadow: 0 0 18px 4px rgba(90, 180, 255, 0.75); }
.hd-scan::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 70px; background: linear-gradient(to top, rgba(90, 170, 255, 0.22), transparent); }
.hd-flash { position: absolute; inset: 0; background: radial-gradient(circle at 70% 30%, #FFFFFF, rgba(220, 210, 255, 0.85) 45%, rgba(200, 190, 255, 0.4)); opacity: 0; }
.hd-pill { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%) scale(0.92); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 9px 16px; border-radius: 999px; background: rgba(15, 14, 34, 0.82); border: 1px solid rgba(255, 255, 255, 0.16); color: #FFFFFF; font-size: 14px; font-weight: 600; opacity: 0; transition: opacity 0.25s ease, transform 0.25s ease; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.hd-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); border-top-color: #7FD3FF; animation: hdspin 0.8s linear infinite; }
@keyframes hdspin { to { transform: rotate(360deg); } }

.hd.is-scanning .hd-scan { animation: hdscan 2s ease-in-out forwards; opacity: 0; }
@keyframes hdscan { 0% { top: 0; opacity: 0; } 8% { opacity: 1; } 50% { top: 99%; } 92% { opacity: 1; } 100% { top: 0; opacity: 0; } }
.hd.is-found .hd-flash { animation: hdflash 0.9s ease-out; }
@keyframes hdflash { 0% { opacity: 0; } 12% { opacity: 0.9; } 22% { opacity: 0.15; } 32% { opacity: 0.7; } 100% { opacity: 0; } }

/* Invisible tap target over the screenshot's own Analyze button */
.hd-hot { position: absolute; z-index: 4; left: 49.8%; top: 85.9%; width: 23%; height: 5.4%; transform: translate(-50%, -50%); padding: 0; border: 0; border-radius: 999px; background: transparent; cursor: pointer; }
.hd-ring { position: absolute; inset: -3px; border-radius: inherit; border: 2px solid rgba(127, 211, 255, 0.9); animation: hdring 1.8s ease-out infinite; }
@keyframes hdring { 0% { transform: scale(0.9); opacity: 0.9; } 100% { transform: scale(1.35); opacity: 0; } }
.hd-hot::before { content: ""; position: absolute; inset: -10px -8px; }
.hd-hot:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 4px; }
.hd:not(.is-idle) .hd-hot { visibility: hidden; }

.hd-hint { margin: 0; min-height: 44px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 15px; color: #B8B4DC; }
.hd-hint strong { color: #FFFFFF; }
.hd-again { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid #4B4780; background: transparent; color: #FFFFFF; font: inherit; font-weight: 600; cursor: pointer; }
.hd-again:hover { background: #2E2B5C; }
.hd-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .hd-phone, .hd-ring, .hd-spin { animation: none; }
  .hd.is-scanning .hd-scan, .hd.is-found .hd-flash { animation: none; }
  .hd.is-scanning .hd-prog { animation: none; width: 71.7%; }
  .hd-img { transition: none; }
}

/* ---------- Pay once band (right below the hero) ---------- */
.po { padding: 0 16px 96px; }
.po-card { max-width: 1200px; margin: 0 auto; box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; gap: 32px 48px; padding: 48px; border-radius: 32px; border: 1px solid #3A3680;
  background: radial-gradient(ellipse 60% 90% at 100% 0%, rgba(10, 108, 240, 0.28), transparent 70%), radial-gradient(ellipse 50% 80% at 0% 100%, rgba(244, 185, 214, 0.12), transparent 70%), #1E1B4B; }
.po-copy { flex: 1 1 420px; display: flex; flex-direction: column; gap: 14px; }
.po-eye { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #F4B9D6; }
.po-title { margin: 0; font-size: clamp(32px, 4.5vw, 52px); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; color: #FFFFFF; }
.po-text { margin: 0; font-size: 18px; line-height: 1.6; color: #D6D2F5; max-width: 600px; }
.po-chips { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.po-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(15, 14, 34, 0.55); border: 1px solid #3A3680; font-size: 15px; font-weight: 600; color: #FFFFFF; }
.po-chips svg { color: #6FB1FF; flex: none; }
.po-prices { flex: 0 1 380px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.po-price { display: flex; flex-direction: column; gap: 4px; padding: 22px 20px; border-radius: 22px; background: #0F0E22; border: 1px solid #3A3680; text-decoration: none; color: #FFFFFF; transition: border-color 0.2s ease, transform 0.2s ease; }
.po-price:hover { border-color: #0A6CF0; color: #FFFFFF; transform: translateY(-2px); }
.po-dev { font-size: 15px; font-weight: 600; color: #C9C3FF; }
.po-amt { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.po-sub { font-size: 13px; color: #9D99C4; }
@media (max-width: 600px) {
  .po-card { padding: 32px 20px; border-radius: 26px; }
  .po-prices { flex-basis: 100%; }
  .po-amt { font-size: 34px; }
}

/* Section headings may run the full width; the intro paragraph stays at a readable length */
.sec-head p:not(:first-child) { max-width: 720px; }

/* ---------- Platforms: iPhone + iPad framed together (one purchase), Mac on its own ---------- */
.pl { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: stretch; }
.pl-group { display: flex; flex-direction: column; gap: 16px; padding: 16px; border-radius: 30px; border: 1px solid #3A3680; background: rgba(10, 108, 240, 0.06); }
.pl-pair { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pl-group .pl-card { flex: 1; }
.pl-label { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 4px 12px 2px; }
.pl-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: #F4B9D6; letter-spacing: 0.04em; text-transform: uppercase; }
.pl-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #0A6CF0; box-shadow: 0 0 0 3px rgba(10, 108, 240, 0.25); }
@media (max-width: 1180px) and (min-width: 1001px) { .pl-tag { font-size: 13px; letter-spacing: 0.02em; } }
@media (max-width: 1000px) {
  .pl { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pl-pair { grid-template-columns: 1fr; }
  .pl-group { padding: 12px; border-radius: 26px; }
}

/* Footer: centred on mobile */
@media (max-width: 700px) {
  .ft { flex-direction: column; justify-content: center !important; text-align: center; }
  .ft > div { justify-content: center; }
}

/* Sticky header: stays on top while scrolling, full-width frosted background.
   The content keeps the 1200px column through the side padding. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  max-width: none !important; width: 100% !important; box-sizing: border-box;
  padding-left: max(16px, calc((100% - 1200px) / 2 + 16px)) !important;
  padding-right: max(16px, calc((100% - 1200px) / 2 + 16px)) !important;
  background: rgba(15, 14, 34, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid #23204A;
}
html { scroll-padding-top: 88px; }

/* Shorter nav button label on phones (HR "Nabavite aplikaciju" -> "Preuzmite") */
.cta-short { display: none; }
@media (max-width: 600px) { .cta-long { display: none; } .cta-short { display: inline; } }
@media (max-width: 480px) { .site-header nav { gap: 12px !important; } .site-header { gap: 12px !important; } }

/* Launch popup (.lp): native <dialog>, opened by site.js */
.lp { width: min(520px, calc(100% - 32px)); max-height: calc(100% - 32px); box-sizing: border-box; margin: auto; padding: 36px 28px 28px; border: 1px solid #3A3680; border-radius: 28px; background: radial-gradient(120% 90% at 100% 0%, rgba(10, 108, 240, 0.28), transparent 60%), #1E1B4B; color: #EDEBFF; font-family: 'Figtree', system-ui, -apple-system, sans-serif; text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); overflow-y: auto; }
.lp::backdrop { background: rgba(8, 7, 20, 0.66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lp[open] { animation: lpIn 0.35s cubic-bezier(.2, .8, .2, 1); }
@keyframes lpIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.lp-x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.06); color: #B8B4DC; cursor: pointer; }
.lp-x:hover { background: rgba(255, 255, 255, 0.12); color: #FFFFFF; }
.lp-eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #F4B9D6; }
.lp-title { margin: 0 auto; max-width: 400px; font-size: clamp(24px, 5.4vw, 30px); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; color: #FFFFFF; }
.lp-cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 22px 0 0; }
.lp-cd span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 4px 10px; border-radius: 16px; background: #0F0E22; border: 1px solid #3A3680; font-size: 12px; font-weight: 600; color: #9D99C4; text-transform: uppercase; letter-spacing: 0.06em; }
.lp-cd b { font-size: 28px; font-weight: 800; color: #FFFFFF; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.lp-lead { margin: 22px 0 12px; font-size: 17px; color: #B8B4DC; }
.lp-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lp-price { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 8px; border-radius: 18px; background: #0F0E22; border: 1px solid #3A3680; }
.lp-dev { font-size: 13px; font-weight: 600; color: #B8B4DC; }
.lp-amt { font-size: 32px; font-weight: 800; color: #FFFFFF; letter-spacing: -0.02em; line-height: 1.15; }
.lp-old { font-size: 15px; color: #8C88B4; }
.lp-ok { display: inline-flex; align-items: center; justify-content: center; margin-top: 22px; min-height: 48px; padding: 12px 32px; border: 0; border-radius: 999px; background: #0A6CF0; color: #FFFFFF; font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; }
.lp-ok:hover { background: #2B80F5; color: #FFFFFF; }
.lp [hidden] { display: none !important; }
@media (max-width: 400px) { .lp { padding: 32px 18px 22px; } .lp-cd b { font-size: 24px; } .lp-amt { font-size: 27px; } }
@media (prefers-reduced-motion: reduce) { .lp[open] { animation: none; } }
.lp:focus { outline: none; }
.lp-store { font-size: 12px; font-weight: 600; color: #8C88B4; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }

.lp-title .lp-when { display: inline-block; white-space: nowrap; font-size: min(1em, 6vw); }
.lp-end { margin: 14px 0 0; font-size: 14px; color: #9D99C4; }
@media (max-width: 400px), (max-height: 640px) {
  .lp { padding-top: 26px; padding-bottom: 18px; }
  .lp-store { font-size: 11px; letter-spacing: 0.02em; }
  .lp-cd { margin-top: 16px; } .lp-cd span { padding: 8px 2px 6px; } .lp-cd b { font-size: 22px; }
  .lp-lead { margin: 14px 0 10px; font-size: 16px; }
  .lp-price { padding: 12px 6px; } .lp-end { margin-top: 10px; } .lp-ok { margin-top: 14px; }
}
.lp-note { margin: 16px 0 0; font-size: 12px; line-height: 1.4; color: #8C88B4; }
@media (max-width: 400px), (max-height: 640px) { .lp-note { margin-top: 10px; font-size: 11px; } .lp-eyebrow { margin-bottom: 6px; } .lp-ok { min-height: 44px; padding: 10px 28px; } .lp-title { font-size: 22px; } }

/* Mac version "Coming later" (Mac App Store approval pending). When the Mac link is ready,
   turn .store-soon back into the white store <a> and remove .is-soon from the price cards. */
.store-soon { display: inline-flex; align-items: center; gap: 12px; padding: 12px 24px; border-radius: 14px; min-height: 56px; min-width: 230px; box-sizing: border-box; background: transparent; color: #B8B4DC; border: 1.5px dashed #4A4690; cursor: default; }
.po-price.is-soon, .po-price.is-soon:hover { border-style: dashed; border-color: #4A4690; transform: none; cursor: default; }
.po-price.is-soon .po-amt { font-size: 26px; line-height: 1.25; color: #D6D2F5; padding: 6px 0 3px; }
.lp-price.is-soon { border-style: dashed; border-color: #4A4690; justify-content: center; }
.lp-price.is-soon .lp-amt { font-size: 22px; color: #D6D2F5; line-height: 1.3; }
@media (max-width: 600px) { .po-price.is-soon .po-amt { font-size: 22px; } }
@media (max-width: 400px) { .lp-price.is-soon .lp-amt { font-size: 19px; } }
