/* Skupa site styles shared by every page. Utility classes come from css/tailwind.css (built, see package.json). */
:root {
  --ink: #0B1F26;
  --ink-soft: #15323B;
  --cream: #FBF7EF;
  --cream-soft: #F4ECDC;
  --teal: #0D9488;
  --teal-deep: #0A4842;
  --tang: #F97316;
}
html { background: var(--cream); }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.font-display { font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-variation-settings: 'opsz' 96; letter-spacing: -0.035em; }
.font-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* Curtain */
html.curtain body { opacity: 0; }
body { transition: opacity 0.4s ease; opacity: 1; }
body.loaded { opacity: 1 !important; }

.lucide { stroke-width: 1.75; }

/* ── Hero road grid ── */
.road-grid {
  background-image:
    linear-gradient(to right, rgba(11,31,38,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11,31,38,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* Marker chip */
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.75rem; border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* Underline link */
.nav-link { position: relative; padding-bottom: 4px; }
.nav-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.7, 0, 0.3, 1);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* Btn primary */
.btn-ink {
  background: var(--ink); color: var(--cream);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-ink:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(11,31,38,0.4); background: #15323B; }
.btn-ink:active { transform: translateY(0); }
.btn-tang {
  background: var(--tang); color: white;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-tang:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(249,115,22,0.5); }

/* Float */
@keyframes float-y { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.float-slow { animation: float-y 6s ease-in-out infinite; }

/* Pulse */
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.6); }
  70% { box-shadow: 0 0 0 12px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.pulse-dot { animation: pulse-dot 2s infinite; }

/* Marquee */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-track { animation: marquee 40s linear infinite; }

/* Dashed lane */
.lane {
  background-image: linear-gradient(to right, var(--ink) 60%, transparent 40%);
  background-size: 18px 2px;
  background-repeat: repeat-x;
  background-position: center;
  height: 2px;
}

/* Receipt ticket */
.ticket {
  background: var(--cream);
  position: relative;
}
.ticket::before, .ticket::after {
  content: ''; position: absolute;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); top: 50%; transform: translateY(-50%);
}
.ticket::before { left: -14px; }
.ticket::after { right: -14px; }

/* Big number */
.stat-num { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; letter-spacing: -0.04em; line-height: 0.9; }

/* Range */
input[type="range"] {
  -webkit-appearance: none; background: transparent; width: 100%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; background: rgba(11,31,38,0.12); border-radius: 999px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--ink); border: 3px solid var(--cream); margin-top: -9px;
  cursor: grab; box-shadow: 0 4px 12px rgba(11,31,38,0.25);
  transition: transform 0.15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.1); }
input[type="range"]::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(0.95); }

/* Map dots */
.map-bg {
  background-image:
    radial-gradient(circle, rgba(11,31,38,0.18) 1px, transparent 1px);
  background-size: 14px 14px;
}

/* Card hover lift */
.lift { transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s; }
.lift:hover { transform: translateY(-4px); }

:focus-visible { outline: 2.5px solid var(--tang); outline-offset: 3px; border-radius: 8px; }
:focus:not(:focus-visible) { outline: none; }

/* Reveal - content visible by default; .in class is purely additive for entry animations */
.reveal { opacity: 1; transform: none; }

/* Scroll progress */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--tang));
  z-index: 60; pointer-events: none;
  transition: width 0.1s linear;
}

/* Phone screen states (animated hero) */
.screen-state { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; }
.screen-state.active { opacity: 1; }
.step-pill { transition: all 0.4s cubic-bezier(0.22,1,0.36,1); }
.step-pill.active { background: var(--ink); color: var(--cream); transform: translateX(4px); }
.step-pill.active .step-dot { background: var(--tang); }

/* Live feed item */
@keyframes feed-in {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
.feed-item { animation: feed-in 0.5s cubic-bezier(0.22,1,0.36,1); }

/* Map pulse */
@keyframes map-pulse {
  0% { r: 6; opacity: 1; }
  100% { r: 22; opacity: 0; }
}
.map-pulse-ring { transform-origin: center; animation: map-pulse 2s infinite ease-out; }
@keyframes route-dash {
  to { stroke-dashoffset: -24; }
}
.route-line { stroke-dasharray: 6 6; animation: route-dash 1.4s linear infinite; }
/* Commuter map labels (SVG units; bigger on phones where the map is scaled down) */
.map-name { font-size: 13.5px; }
.map-meta { font-size: 10px; }
.map-hub { font-size: 18px; }
@media (max-width: 639px) {
  .map-name { font-size: 21px; }
  .map-hub { font-size: 26px; }
  .map-meta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .route-line, .marquee-track, .float-slow { animation: none; }
}

/* Comparison table */
.compare-row td { padding: 14px 12px; }

/* Marquee reverse */
@keyframes marquee-r {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
.marquee-track-r { animation: marquee-r 40s linear infinite; }

/* FAQ */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform 0.3s cubic-bezier(0.22,1,0.36,1); }
details[open] .faq-body { animation: faq-down 0.35s cubic-bezier(0.22,1,0.36,1); }
@keyframes faq-down {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Press logo */
.press-logo {
  font-family: 'Bricolage Grotesque', serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: rgba(11,31,38,0.55);
  transition: color 0.2s;
}
.press-logo:hover { color: var(--ink); }

/* Stat number with shimmer */
.stat-card {
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(249,115,22,0.08), transparent);
  animation: shimmer 5s infinite;
}
@keyframes shimmer {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

/* Phone hero ambient ring */
.ambient-ring {
  position: absolute; inset: -40px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(13,148,136,0.15), transparent, rgba(249,115,22,0.15), transparent);
  animation: spin 18s linear infinite;
  filter: blur(20px);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Scroll cue */
@keyframes nudge {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}
.scroll-cue { animation: nudge 2.2s ease-in-out infinite; }

/* Grain */
.grain::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
  mix-blend-mode: multiply; opacity: 0.18;
}

/* Squiggle underline */
.squiggle {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'><path d='M0,6 Q15,0 30,6 T60,6 T90,6 T120,6' stroke='%23F97316' stroke-width='3' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 14px;
  padding-bottom: 6px;
}

/* Tilt phone */
.tilt-l { transform: rotate(-6deg); }
.tilt-r { transform: rotate(6deg); }

/* Phone shell */
.phone-shell {
  background: linear-gradient(180deg, #1a1a1a, #000);
  border-radius: 2.4rem;
  padding: 0.55rem;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.05) inset,
    0 30px 60px -20px rgba(11,31,38,0.35),
    0 14px 30px -10px rgba(11,31,38,0.2);
}
.phone-screen {
  border-radius: 1.95rem;
  overflow: hidden;
  background: white;
  aspect-ratio: 9/19;
}

/* Diagonal stripe */
.stripe-bg {
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 16px,
    rgba(11,31,38,0.04) 16px 17px
  );
}

/* Number badge */
.step-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

/* ── Legal pages ── */
/* Only the selected language is shown */
html[lang="hr"] [data-lang="en"], html[lang="en"] [data-lang="hr"] { display: none; }

/* Legal document typography */
.legal-sec + .legal-sec { margin-top: 2.25rem; padding-top: 2.25rem; border-top: 2px dashed rgba(11,31,38,0.15); }
.legal h2 { font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 700; letter-spacing: -0.03em; font-size: 1.5rem; line-height: 1.1; margin-bottom: 0.9rem; display: flex; align-items: baseline; gap: 0.75rem; }
.legal-num { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--tang); }
.legal p, .legal li { color: rgba(21,50,59,0.8); line-height: 1.75; font-size: 15px; }
.legal p + p, .legal ul + p, .legal ol + p { margin-top: 0.9rem; }
.legal ul, .legal ol { display: grid; gap: 0.6rem; }
.legal ul li { position: relative; padding-left: 1.4rem; }
.legal ul li::before { content: ''; position: absolute; left: 0; top: 0.7em; width: 8px; height: 8px; border-radius: 2px; background: var(--teal); }
.legal ol { counter-reset: step; }
.legal ol li { counter-increment: step; position: relative; padding-left: 2.4rem; }
.legal ol li::before { content: counter(step); position: absolute; left: 0; top: 0.1em; width: 1.6rem; height: 1.6rem; border-radius: 0.5rem; background: var(--ink); color: var(--cream); font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--tang); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.legal-note { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 1.5rem; padding: 0.9rem 1.1rem; border-radius: 1rem; background: var(--cream-soft); border: 1px solid rgba(11,31,38,0.1); font-size: 13.5px; color: rgba(21,50,59,0.85); }
