/* ============================================================
   Tarelium Demo Site — Shared Stylesheet
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand-dark:   #0F295E;
  --brand-teal:   #2FA6A4;
  --brand-light:  #96DCF8;
  --bg:           #F0F0F0;
  --text:         #111827;
  --text-muted:   rgba(17,24,39,0.55);
  --border:       #E2E8F0;
  --card-bg:      #fff;
  --radius:       12px;
  --radius-sm:    6px;
  --shadow:       0 4px 12px rgba(17,24,39,0.10), 0 1px 4px rgba(17,24,39,0.06);
  --shadow-hover: 0 8px 24px rgba(17,24,39,0.14), 0 2px 8px rgba(17,24,39,0.08);
  --font:         'Segoe UI', system-ui, -apple-system, sans-serif;
  --hub-color:    #2FA6A4;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Site Header ─────────────────────────────────────────── */
.site-header {
  background: #dddddd;
  padding: 0 12px;
  box-shadow: 0px 0px 10px rgba(21,13,27,0.5);
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.header-inner {
  max-width: 1800px;
  margin: 0 auto;
  padding: 20px 32px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.header-spacer { display: none; }

.header-brand { text-align: left; }
.header-brand a { display: block; }
.header-brand img { height: 40px; width: auto; display: block; }
.header-brand p { font-size: 16px; color: #002060; margin-top: 4px; }


.header-back { margin-left: 16px; }

.header-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
  width: 100px;
}
.header-back:hover { color: #fff; background: rgba(255,255,255,0.1); }
.header-back svg {
  width: 15px; height: 15px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

/* ── Site Nav (inline in header) ─────────────────────────── */
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}

.site-nav-link {
  display: inline-block;
  padding: 7px 16px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(17,24,39,0.62);
  text-decoration: none;
  border-radius: 6px;
  background: rgba(131,78,173,0.07);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.site-nav-link:hover {
  color: #834EAD;
  background: rgba(131,78,173,0.18);
}

.site-nav-link--active {
  color: #834EAD;
  font-weight: 600;
  background: rgba(131,78,173,0.13);
}

/* ── Site Footer ─────────────────────────────────────────── */
.site-footer {
  background: #dddddd;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 18px 12px;
  flex-shrink: 0;
}

.site-footer-inner {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.site-footer-label {
  font-size: 11px;
  color: rgba(17,24,39,0.45);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.site-footer-logos {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer-logos img:first-child {
  padding-right: 12px;
  border-right: 1px solid rgba(17,24,39,0.15);
}

.site-footer-logos img {
  height: 22px;
  width: auto;
  display: block;
  filter: grayscale(100%);
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb-bar { background: transparent; border-bottom: 1px solid var(--border); }

.breadcrumb {
  max-width: 1800px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.breadcrumb a { color: #834EAD; text-decoration: none; font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: #CBD5E1; font-size: 15px; }
.breadcrumb-current { color: var(--text); font-weight: 500; }

/* ── Page main ───────────────────────────────────────────── */
.page-main {
  flex: 1;
  max-width: 1800px;
  width: 100%;
  margin: 0 auto;
  padding: 0px 32px 56px;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ── Hub Hero (L2) ───────────────────────────────────────── */
.hub-hero {
  background: transparent;
  color: var(--brand-dark);
  border-radius: var(--radius);
  padding: 24px 0 20px;
  margin-bottom: 28px;
}
.hub-hero-badge { display: none; }
.hub-hero h2 { font-size: 26px; font-weight: 500; margin-bottom: 8px; color: var(--brand-dark); }
.hub-hero p { font-size: 15px; color: rgba(15,41,94,0.60); max-width: 680px; line-height: 1.65; }

.coming-soon-notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15,41,94,0.06);
  border: 1px solid rgba(15,41,94,0.15);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: rgba(15,41,94,0.65);
  margin-bottom: 16px;
}
.coming-soon-notice svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ── Persona Grid (L2) ───────────────────────────────────── */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.persona-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  outline: none;
  min-height: 220px;
}
.persona-card--tbd {
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
}

.persona-card--tbd .persona-arrow { opacity: 0.4; }

.persona-card:hover, .persona-card:focus {
  transform: translateY(-3px);
  border-color: var(--hub-color);
  box-shadow: var(--shadow-hover);
}
.persona-card:focus { box-shadow: 0 0 0 3px rgba(47,166,164,0.28), var(--shadow-hover); }

.persona-band {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pastel-bg, #e5f5f4), #fff);
}
.persona-band svg {
  width: 38px; height: 38px;
  stroke: var(--hub-color);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.persona-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.persona-name { font-size: 18px; font-weight: 500; color: #323742; }
.persona-desc { font-size: 13px; color: var(--text-muted); margin-top: 6px; line-height: 1.6; flex: 1; }

.persona-footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.persona-arrow {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--hub-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.persona-arrow svg {
  width: 13px; height: 13px;
  stroke: #fff; fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

.tbd-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
}

/* ── Demo Page (L3) ──────────────────────────────────────── */
.demo-wrapper { display: flex; flex-direction: column; flex: 1; }

.demo-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  flex-shrink: 0;
}
.demo-header-inner {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.demo-persona-info .hub-tag { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 4px; }
.demo-persona-info h2 { font-size: 20px; font-weight: 500; }

.demo-progress-wrap { flex: 1; max-width: 380px; }
.demo-progress-label { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; text-align: right; }

.step-dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 8px; }
.step-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
  padding: 0;
}
.step-dot--done { background: color-mix(in srgb, var(--hub-color) 45%, white); }
.step-dot--active { background: var(--hub-color); transform: scale(1.4); }

.demo-progress-bar { height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.demo-progress-fill { height: 100%; background: var(--hub-color); border-radius: 3px; transition: width 0.35s ease; }

/* Demo Content */
.demo-content {
  flex: 1;
  max-width: 1800px;
  width: 100%;
  margin: 0 auto;
  padding: 36px 32px 28px;
}

.step-number-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--hub-color);
  margin-bottom: 10px;
}
.step-title { font-size: 26px; font-weight: 500; color: var(--text); margin-bottom: 12px; line-height: 1.3; }
.step-description { font-size: 15px; color: var(--text-muted); line-height: 1.75; max-width: 700px; margin-bottom: 32px; }
.step-description ol { margin: 10px 0 0 20px; display: flex; flex-direction: column; gap: 6px; }

/* Screenshots */
.screenshots-row { display: flex; flex-direction: column; gap: 36px; }

.screenshots-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 20px;
  row-gap: 12px;
}

.screenshot-item {
  min-width: 0;
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 0;
}

.screenshot-description { font-size: 14px; line-height: 1.6; color: var(--text-secondary); margin: 0 0 16px 0; align-self: start; }
.screenshot-description ol { margin: 8px 0 0 20px; display: flex; flex-direction: column; gap: 5px; }

.screenshot-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #834EAD;
  box-shadow: var(--shadow);
  background: #fff;
  cursor: zoom-in;
}
.screenshot-frame img { width: 100%; display: block; }

.screenshot-placeholder {
  min-height: 320px;
  background: linear-gradient(135deg, #f8fafc, #edf2f7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: default;
}
.screenshot-placeholder svg {
  width: 52px; height: 52px;
  stroke: #CBD5E1; fill: none;
  stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.screenshot-placeholder-label { font-size: 13px; color: rgba(17,24,39,0.32); }
.screenshot-caption { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 9px; font-style: italic; }

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: zoom-out;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.lightbox-overlay.open { opacity: 1; pointer-events: all; }
.lightbox-overlay img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.15);
  border: none; border-radius: 50%;
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1;
  transition: background 0.15s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* Demo Nav */
.demo-nav {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 14px 0;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
}
.demo-nav-inner {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-step-label { font-size: 13px; color: var(--text-muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s, background 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn svg {
  width: 15px; height: 15px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-primary { background: var(--hub-color); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }

/* Demo complete */
.demo-complete { text-align: center; padding: 64px 20px; }
.demo-complete-icon {
  width: 76px; height: 76px;
  margin: 0 auto 24px;
  background: #f0fdf4;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.demo-complete-icon svg {
  width: 38px; height: 38px;
  stroke: #16a34a; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.demo-complete h2 { font-size: 26px; font-weight: 500; margin-bottom: 12px; }
.demo-complete p { font-size: 15px; color: var(--text-muted); max-width: 420px; margin: 0 auto 32px; line-height: 1.7; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .persona-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .page-main { padding: 20px 16px 40px; }
  .header-inner { padding: 8px 16px 12px; flex-wrap: wrap; }
  .site-nav { margin-left: 0; width: 100%; gap: 0; margin-top: 4px; }
  .site-nav-link { padding: 6px 10px; font-size: 13px; }
  .site-footer-inner { padding: 0 20px; gap: 10px; flex-direction: column; text-align: center; }
  .header-spacer { width: 60px; }
  .header-back { font-size: 0; width: auto; }
  .header-back svg { width: 18px; height: 18px; }
  .breadcrumb { padding: 10px 16px; }
  .hub-hero { padding: 16px 0 12px; }
  .demo-content { padding: 24px 16px; }
  .demo-nav { padding: 12px 0; }
  .demo-nav-inner { padding: 0 16px; }
  .demo-header { padding: 12px 0; }
  .demo-header-inner { padding: 0 16px; }
  .screenshots-pair { grid-template-columns: 1fr; }
  .persona-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .persona-grid { grid-template-columns: 1fr; }
  .demo-header-inner { flex-direction: column; align-items: flex-start; }
  .demo-progress-wrap { max-width: 100%; width: 100%; }
  .step-title { font-size: 21px; }
}
