/* ==========================================================================
   BajsRoute — shared stylesheet
   Blue-forward Zagreb civic mobility. Landing page + secondary/legal pages.
   Tokens are the approved brand kit (docs/design/brand-kit.md).
   ========================================================================== */

:root {
  --br-blue: #007BFF;
  --br-blue-deep: #0B3D91;
  --br-blue-route: #1F4FDB;
  --br-blue-soft: #EAF4FF;
  --br-bg: #F7FAFC;
  --br-surface: #FFFFFF;
  --br-text: #17212B;
  --br-text-muted: #5F6B7A;
  --br-success: #2E7D32;
  --br-warning: #F59E0B;
  --br-yellow: #FFC107;
  --br-danger: #D32F2F;
  --br-border: #D8E2EE;

  --br-shadow-sm: 0 1px 3px rgba(11, 61, 145, 0.08);
  --br-shadow: 0 14px 34px rgba(11, 61, 145, 0.08);
  --br-shadow-lg: 0 18px 45px rgba(11, 61, 145, 0.12);
  --br-shadow-xl: 0 30px 70px rgba(11, 61, 145, 0.18);

  --br-container: 1180px;
  --br-radius: 24px;
  --br-radius-sm: 16px;
  --br-radius-pill: 999px;

  --br-blue-dark: #0056b3;       /* button hover */
  --br-deep-darker: #082B66;     /* footer base */
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--br-surface);
  color: var(--br-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--br-text);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: var(--br-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; }

.container {
  max-width: var(--br-container);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Buttons & pills
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--br-radius-pill);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.18s ease, color 0.18s ease,
              box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 20px; height: 20px; }

.btn-primary {
  background: var(--br-blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 123, 255, 0.28);
}
.btn-primary:hover {
  background: var(--br-blue-dark);
  box-shadow: 0 14px 30px rgba(0, 123, 255, 0.34);
  transform: translateY(-1px);
}
.btn-primary .arrow { transition: transform 0.18s ease; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-secondary {
  background: var(--br-blue-soft);
  color: var(--br-blue-deep);
  border-color: #B9D8FF;
}
.btn-secondary:hover { background: #dcecff; }

.btn-outline {
  background: #fff;
  color: var(--br-blue);
  border-color: var(--br-blue);
}
.btn-outline:hover { background: var(--br-blue-soft); }

.btn-white {
  background: #fff;
  color: var(--br-blue);
  box-shadow: var(--br-shadow-lg);
}
.btn-white:hover { background: var(--br-blue-soft); transform: translateY(-1px); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--br-radius-pill);
  background: var(--br-blue-soft);
  color: var(--br-blue);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid #d4e6ff;
}
.pill .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--br-success);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* --------------------------------------------------------------------------
   Site header (shared across all pages)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--br-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--br-blue-deep);
}
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.brand .brand-bajs { color: var(--br-blue); }
.brand .brand-route { color: var(--br-blue-deep); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-nav a {
  color: var(--br-text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--br-blue); text-decoration: none; }
.site-nav .btn { color: #fff; }
.site-nav .btn:hover { color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--br-text);
}
.nav-toggle svg { width: 26px; height: 26px; display: block; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* --------------------------------------------------------------------------
   Sections & generic helpers
   -------------------------------------------------------------------------- */
.section { padding: 96px 0; }
.section-tight { padding: 72px 0; }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}
.section-head .pill { margin-bottom: 18px; }
.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  color: var(--br-blue-deep);
  margin-bottom: 14px;
}
.section-head p {
  font-size: 1.15rem;
  color: var(--br-text-muted);
  margin: 0;
}

.bg-soft { background: linear-gradient(180deg, #fff 0%, var(--br-bg) 100%); }
.bg-soft-rev { background: linear-gradient(180deg, var(--br-bg) 0%, #fff 100%); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 104px;
  background:
    radial-gradient(circle at 82% 18%, rgba(0, 123, 255, 0.12), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, var(--br-bg) 100%);
}
.hero-wave {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  pointer-events: none;
}
.hero-texture {
  position: absolute;
  inset: 0;
  background: url('/img/hero-texture.webp') center / cover no-repeat;
  opacity: 0.14;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.7rem);
  font-weight: 800;
  color: var(--br-blue-deep);
  margin: 22px 0 20px;
}
.hero .lead {
  font-size: 1.25rem;
  color: var(--br-text-muted);
  margin-bottom: 32px;
  max-width: 540px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-stats {
  display: flex;
  gap: 44px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--br-border);
}
.hero-stats .num {
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--br-blue);
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stats .lbl { font-size: 0.9rem; color: var(--br-text-muted); }

/* Phone mockup */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .glow {
  position: absolute;
  inset: -10% 6%;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.22), rgba(46, 125, 50, 0.18));
  filter: blur(48px);
  border-radius: 40px;
  z-index: 0;
}
.phone {
  position: relative;
  z-index: 1;
  width: 300px;
  max-width: 78%;
  aspect-ratio: 9 / 18.5;
  background: #0b1b2e;
  border-radius: 38px;
  padding: 12px;
  box-shadow: var(--br-shadow-xl);
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #eef4fb;
}
.phone-notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 22px;
  background: #0b1b2e;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}
.phone-screen svg { display: block; width: 100%; height: 100%; }
.phone-screen picture { display: block; width: 100%; height: 100%; }
.phone-screen img,
.phone-screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.float-card {
  position: absolute;
  z-index: 2;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--br-shadow-lg);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.float-card .badge-num {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1.1rem;
  font-family: 'Sora', sans-serif;
}
.float-card .fc-label { font-size: 0.72rem; color: var(--br-text-muted); }
.float-card .fc-value { font-size: 0.9rem; font-weight: 600; color: var(--br-text); }
.float-rating { top: 36px; right: -6px; animation: floaty 4s ease-in-out infinite; }
.float-issue { bottom: 64px; left: -10px; animation: floaty 4s ease-in-out infinite 1.2s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* --------------------------------------------------------------------------
   Trust strip
   -------------------------------------------------------------------------- */
.trust {
  background: var(--br-blue-deep);
  color: #fff;
  padding: 28px 0;
}
.trust .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 40px;
  text-align: center;
}
.trust .trust-lead {
  font-weight: 600;
  font-size: 1.02rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.trust .trust-lead svg { width: 22px; height: 22px; color: var(--br-yellow); }
.trust .trust-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.trust .trust-pill {
  padding: 6px 14px;
  border-radius: var(--br-radius-pill);
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Feature cards
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.feature-card {
  position: relative;
  background: #fff;
  border: 1.5px solid #eef1f6;
  border-radius: var(--br-radius);
  padding: 30px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  gap: 22px;
  align-items: flex-start;
}
.feature-card:hover {
  border-color: var(--br-blue);
  box-shadow: var(--br-shadow-lg);
  transform: translateY(-2px);
}
.feature-icon {
  flex-shrink: 0;
  width: 60px; height: 60px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.feature-icon svg { width: 30px; height: 30px; }
.feature-icon.ic-blue { background: var(--br-blue); }
.feature-icon.ic-green { background: var(--br-success); }
.feature-icon.ic-amber { background: var(--br-warning); }
.feature-icon.ic-navy { background: var(--br-blue-deep); }

.feature-card .feature-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.feature-card h3 { font-size: 1.2rem; color: var(--br-blue-deep); margin: 0; }
.feature-card .tag {
  padding: 4px 12px;
  border-radius: var(--br-radius-pill);
  background: var(--br-blue-soft);
  color: var(--br-blue);
  font-size: 0.72rem;
  font-weight: 600;
}
.feature-card p { color: var(--br-text-muted); margin: 0; }
.feature-card .underbar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--br-blue), var(--br-success));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.feature-card:hover .underbar { transform: scaleX(1); }

/* --------------------------------------------------------------------------
   How it works — timeline
   -------------------------------------------------------------------------- */
.timeline { position: relative; max-width: 940px; margin: 0 auto; }
.timeline-line {
  position: absolute;
  left: 31px; top: 10px; bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--br-blue), var(--br-success));
}
.step {
  position: relative;
  display: flex;
  gap: 32px;
  align-items: center;
  margin-bottom: 36px;
}
.step:last-child { margin-bottom: 0; }
.step-num {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--br-blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  border: 4px solid #fff;
  box-shadow: var(--br-shadow);
}
.step-card {
  flex: 1;
  background: #fff;
  border: 1.5px solid #eef1f6;
  border-radius: var(--br-radius);
  padding: 26px 28px;
  box-shadow: var(--br-shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.step-card:hover { border-color: var(--br-blue); box-shadow: var(--br-shadow); }
.step-card .ghost-num {
  font-family: 'Sora', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: rgba(0, 123, 255, 0.16);
  line-height: 1;
  margin-bottom: 8px;
}
.step-card h3 { font-size: 1.3rem; color: var(--br-blue-deep); }
.step-card p { color: var(--br-text-muted); margin: 0; }

.step-shot { flex-shrink: 0; width: 220px; display: flex; justify-content: center; }
.mini-phone {
  position: relative;
  z-index: 1;
  width: 220px;
  aspect-ratio: 9 / 18.6;
  background: #0b1b2e;
  border-radius: 30px;
  padding: 9px;
  box-shadow: var(--br-shadow-lg);
  cursor: zoom-in;
  transform-origin: center right;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease;
  will-change: transform;
}
.mini-phone .ms {
  width: 100%; height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #eef4fb;
}
.mini-phone img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
.step-shot:hover .mini-phone {
  transform: scale(1.5);
  box-shadow: var(--br-shadow-xl);
  z-index: 6;
}
@media (max-width: 920px) { .step-shot { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .step-shot:hover .mini-phone { transform: none; }
}

/* --------------------------------------------------------------------------
   Screenshots carousel (dark section)
   -------------------------------------------------------------------------- */
.shots {
  background: var(--br-blue-deep);
  color: #fff;
  overflow: hidden;
}
.shots .section-head h2 { color: #fff; }
.shots .section-head p { color: #bcd4f5; }
.shots .pill { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: transparent; }

.carousel {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}
.carousel-btn {
  flex-shrink: 0;
  width: 50px; height: 50px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.18s ease;
}
.carousel-btn:hover { background: rgba(255, 255, 255, 0.24); }
.carousel-btn svg { width: 24px; height: 24px; }

.carousel-stage { width: 300px; max-width: 70vw; }
.slide { display: none; }
.slide.is-active { display: block; animation: fade 0.4s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.slide .phone {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}
.slide-caption { text-align: center; margin-top: 24px; }
.slide-caption h3 { color: #fff; font-size: 1.25rem; margin-bottom: 4px; }
.slide-caption p { color: #bcd4f5; margin: 0; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.carousel-dots button {
  height: 8px; width: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}
.carousel-dots button.is-active { width: 28px; background: #fff; }

/* --------------------------------------------------------------------------
   Open data
   -------------------------------------------------------------------------- */
.opendata-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.opendata-copy h2 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  color: var(--br-blue-deep);
  margin-bottom: 18px;
}
.opendata-copy .lead { font-size: 1.15rem; color: var(--br-text-muted); margin-bottom: 28px; }
.opendata-copy .btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
/* Decorative, near-transparent backdrop — sets atmosphere, not a focal image */
#open-data { position: relative; overflow: hidden; }
#open-data .container { position: relative; z-index: 1; }
.opendata-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.data-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.data-card {
  background: linear-gradient(160deg, var(--br-blue-soft), #fff);
  border: 1.5px solid #d4e6ff;
  border-radius: 20px;
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.data-card:hover { border-color: var(--br-blue); transform: translateY(-2px); }
.data-card svg { width: 30px; height: 30px; color: var(--br-blue); margin-bottom: 14px; }
.data-card .metric { font-family: 'Sora', sans-serif; font-size: 1.7rem; font-weight: 700; color: var(--br-blue-deep); }
.data-card .d-label { font-size: 0.9rem; color: var(--br-blue); margin: 2px 0; font-weight: 600; }
.data-card .d-desc { font-size: 0.8rem; color: var(--br-text-muted); }

.partner-band {
  margin-top: 56px;
  background: var(--br-surface);
  border: 1px solid var(--br-border);
  border-radius: var(--br-radius);
  box-shadow: var(--br-shadow-sm);
  padding: 28px 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 36px;
}
.partner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease;
}
.partner:hover { text-decoration: none; transform: translateY(-2px); }
.partner:hover .p-value { color: var(--br-blue); }
.partner + .partner { border-left: 1px solid var(--br-border); padding-left: 36px; }
.partner-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex-shrink: 0;
}
.partner-band .p-label { font-size: 0.8rem; color: var(--br-text-muted); margin-bottom: 4px; }
.partner-band .p-value { font-family: 'Sora', sans-serif; font-size: 1.05rem; font-weight: 600; color: var(--br-blue-deep); }

/* --------------------------------------------------------------------------
   Stakeholder value
   -------------------------------------------------------------------------- */
/* Per-accent tints, set on the tab + its panel. Each variant supplies a soft
   background, a stroke/accent colour, and a deep tag-text colour. */
.sv-blue  { --sv-tint: var(--br-blue-soft); --sv-accent: var(--br-blue);    --sv-tag-text: var(--br-blue); }
.sv-green { --sv-tint: #E8F5E9;             --sv-accent: var(--br-success); --sv-tag-text: var(--br-success); }
.sv-amber { --sv-tint: #FFF8E1;             --sv-accent: var(--br-warning); --sv-tag-text: #E65100; }

/* ---- Tabs ---- */
.stake-tabs {
  display: flex;
  gap: 8px;
}
.stake-tab {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--br-bg);
  border: 1.5px solid var(--br-border);
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  cursor: pointer;
  text-align: left;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.stake-tab-ic {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--sv-tint);
  color: var(--sv-accent);
}
.stake-tab-ic svg { width: 20px; height: 20px; }
.stake-tab-lbl {
  font-family: 'Sora', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--br-text-muted);
}
.stake-tab:hover { background: #fff; }
.stake-tab.is-active {
  background: #fff;
  border-color: var(--sv-accent);
  z-index: 2;
  margin-bottom: -1.5px;
}
.stake-tab.is-active .stake-tab-lbl { color: var(--br-blue-deep); }

/* ---- Panel ---- */
.stake-panel {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px;
  background: #fff;
  border: 1.5px solid var(--sv-accent);
  border-radius: 0 0 16px 16px;
  box-shadow: var(--br-shadow-sm);
}
.stake-panel[hidden] { display: none; }
.stake-panel-text { flex: 1 1 46%; min-width: 0; }
.stake-panel-text h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  color: var(--br-blue-deep);
  margin: 0 0 10px;
}
.stake-panel-text > p {
  font-size: 0.86rem;
  color: var(--br-text-muted);
  line-height: 1.6;
  margin: 0 0 18px;
}
.stake-panel-text ul { list-style: none; margin: 0; padding: 0; }
.stake-panel-text li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
  color: var(--br-text);
  font-size: 0.92rem;
}
.stake-panel-text li:last-child { margin-bottom: 0; }
.stake-panel-text .check {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--sv-tint);
  color: var(--sv-accent);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.stake-panel-text .check svg { width: 12px; height: 12px; }
.stake-note {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  padding: 7px 14px;
  border-radius: var(--br-radius-pill);
  background: var(--sv-tint);
  color: var(--sv-tag-text);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ---- Image area ---- */
.stake-figure {
  flex: 1 1 54%;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stake-figure img {
  display: block;
  width: 100%;
  height: 300px;          /* fixed landscape band; crops via cover */
  object-fit: cover;
  object-position: center;
  background: var(--br-bg);
  border: 1px solid var(--br-border);
  border-radius: 12px;
}
/* Per-image crop anchoring. B1 (admin map): keep the top header visible, crop
   from the bottom. B2 (cyclist route): keep the bottom ("B" marker) visible,
   crop from the top. */
#svpanel-grad .stake-figure img { object-position: center top; }
#svpanel-bici .stake-figure img { object-position: center bottom; }

.stake-figure figcaption {
  font-size: 0.78rem;
  color: var(--br-text-muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */
.final-cta { padding: 96px 0; background: linear-gradient(180deg, #fff 0%, var(--br-bg) 100%); }
.cta-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--br-blue), var(--br-blue-route));
  border-radius: 32px;
  padding: 64px 56px;
  color: #fff;
  box-shadow: var(--br-shadow-xl);
}
.cta-card .cta-wave { position: absolute; inset: 0; opacity: 0.12; pointer-events: none; }
.cta-card .cta-photo {
  position: absolute;
  inset: 0;
  background: url('/img/cta-bike.webp') center / cover no-repeat;
  opacity: 0.2;
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; max-width: 620px; }
.cta-card h2 { color: #fff; font-size: clamp(2rem, 4vw, 2.85rem); margin-bottom: 18px; }
.cta-card p { color: rgba(255, 255, 255, 0.88); font-size: 1.15rem; margin-bottom: 30px; }
.cta-card .btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-foot {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
}

/* --------------------------------------------------------------------------
   Footer (shared)
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--br-blue-deep);
  color: #fff;
  padding: 40px 0 22px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 44px;
  margin-bottom: 26px;
}
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand .brand .brand-bajs,
.footer-brand .brand .brand-route { color: #fff; }
.footer-brand p { color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; max-width: 280px; }
.footer-col h4 {
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-col address {
  font-style: normal;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.footer-bottom p { color: rgba(255, 255, 255, 0.6); font-size: 0.86rem; margin: 0; }
.footer-bottom .legal-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom .legal-links a { color: rgba(255, 255, 255, 0.72); font-size: 0.86rem; }
.footer-bottom .legal-links a:hover { color: #fff; text-decoration: none; }

/* --------------------------------------------------------------------------
   Secondary / legal "doc" pages
   -------------------------------------------------------------------------- */
.doc-page { background: var(--br-bg); }
.doc-main {
  max-width: 820px;
  margin: 40px auto 64px;
  padding: 44px 48px;
  background: #fff;
  border: 1px solid var(--br-border);
  border-radius: var(--br-radius);
  box-shadow: var(--br-shadow-sm);
}
.doc-main .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  color: var(--br-blue);
  font-weight: 600;
  font-size: 0.92rem;
}
.doc-main h1 {
  color: var(--br-blue-deep);
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  margin-top: 0;
}
.doc-main h2 {
  color: var(--br-blue-deep);
  font-size: 1.45rem;
  border-bottom: 1px solid var(--br-border);
  padding-bottom: 8px;
  margin-top: 2em;
}
.doc-main h3 { color: var(--br-text); font-size: 1.12rem; margin-top: 1.5em; }
.doc-main p, .doc-main li { color: var(--br-text); }
.doc-main hr { border: none; border-top: 1px solid var(--br-border); margin: 30px 0; }
.doc-main .updated { color: var(--br-text-muted); font-style: italic; }
.doc-main .note { color: var(--br-text-muted); font-style: italic; }
.doc-main address { font-style: normal; }
.doc-main ul, .doc-main ol { padding-left: 1.3em; }
.doc-main li { margin-bottom: 6px; }

.doc-main table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.94rem;
}
.doc-main th, .doc-main td {
  border: 1px solid var(--br-border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.doc-main th { background: var(--br-blue-soft); font-weight: 600; color: var(--br-blue-deep); }
.doc-main code {
  background: var(--br-blue-soft);
  color: var(--br-blue-deep);
  padding: 2px 6px;
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}

@media (max-width: 620px) {
  .doc-main table { font-size: 0.85rem; }
  .doc-main th, .doc-main td { padding: 6px 8px; }
}

.mail-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 12px 22px;
  background: var(--br-blue);
  color: #fff !important;
  border-radius: var(--br-radius-pill);
  font-weight: 600;
  font-size: 0.96rem;
  transition: background 0.16s ease, transform 0.16s ease;
}
.mail-btn:hover { background: var(--br-blue-dark); text-decoration: none; transform: translateY(-1px); }
.mail-btn::before { content: "\2709"; font-size: 1.1em; }
.hint { color: var(--br-text-muted); font-size: 0.92rem; margin-top: 8px; }
.email-line { margin-top: 6px; color: var(--br-text-muted); font-size: 0.88rem; }
.email-line a { color: var(--br-text-muted); }

/* 404 */
.error-page { min-height: 100vh; display: flex; flex-direction: column; }
.error-page main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.error-card {
  max-width: 540px;
  width: 100%;
  background: #fff;
  border: 1px solid var(--br-border);
  border-radius: var(--br-radius);
  box-shadow: var(--br-shadow);
  padding: 48px 40px;
  text-align: center;
}
.error-card .code {
  font-family: 'Sora', sans-serif;
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--br-blue);
  letter-spacing: -3px;
  line-height: 1;
  margin-bottom: 8px;
}
.error-card h1 { font-size: 1.5rem; color: var(--br-blue-deep); margin-bottom: 14px; }
.error-card p { color: var(--br-text-muted); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 24px 22px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--br-border);
    box-shadow: var(--br-shadow);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 8px; border-radius: 12px; }
  .site-nav a:hover { background: var(--br-blue-soft); }
  .site-nav .btn { margin-top: 6px; }

  .hero-grid,
  .opendata-grid { grid-template-columns: 1fr; }
  .data-cards { grid-template-columns: 1fr 1fr; }
  .hero-visual { order: 2; margin-top: 20px; }
  .hero-stats { gap: 28px; }

  .features-grid { grid-template-columns: 1fr; }
  .stake-panel { flex-direction: column; }
  .stake-figure { flex-basis: auto; width: 100%; }
  .partner-band { grid-template-columns: 1fr; gap: 22px; }
  .partner + .partner { border-left: none; padding-left: 0; }
}

@media (max-width: 620px) {
  .section { padding: 64px 0; }
  .final-cta { padding: 64px 0; }
  .container { padding: 0 18px; }

  .data-cards { grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-wrap: wrap; }

  /* Tabs stack vertically; each tab keeps its own rounded box. */
  .stake-tabs { flex-direction: column; gap: 6px; }
  .stake-tab { border: 1.5px solid var(--br-border); border-radius: 12px; }
  .stake-tab.is-active { margin-bottom: 0; border-color: var(--sv-accent); }
  .stake-panel { border-radius: 16px; margin-top: 6px; }

  .cta-card { padding: 44px 28px; }
  .timeline-line { display: none; }
  .step { gap: 16px; }
  .step-num { width: 52px; height: 52px; font-size: 1.15rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .doc-main { padding: 28px 22px; margin: 20px 14px 44px; border-radius: var(--br-radius-sm); }
  .carousel { gap: 10px; }
  .carousel-stage { max-width: 64vw; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
}
