/* Public interactive demo — dashboard mockup */
.demo-page.public-site {
  background: #eef6f1;
}

.demo-page .page-flow {
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--flow-light, #f4faf7) 6%,
    #fff 20%,
    var(--flow-light, #f4faf7) 55%,
    #fff 80%,
    var(--flow-mid, #eef6f1) 100%
  );
}

.demo-hero {
  position: relative;
  padding: 3.5rem 0 4rem;
  background: linear-gradient(135deg, #094a2f 0%, #0b5d3b 55%, #0e7048 100%);
  color: #fff;
  overflow: hidden;
}

.demo-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(255, 138, 0, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(255, 255, 255, 0.08), transparent 50%);
  pointer-events: none;
}

.demo-hero__inner {
  position: relative;
  z-index: 1;
}

.demo-hero h1 {
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.demo-hero__lead {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 36rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.demo-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
}

.demo-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.demo-hero__badge::before {
  content: "✓";
  color: #ffb347;
  font-weight: 700;
}

/* Browser shell */
.demo-shell {
  margin-top: 0.5rem;
  position: relative;
  z-index: 2;
}

.demo-scope-note {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.55;
  max-width: 42rem;
  margin: 0 auto 1rem;
  text-align: center;
}

.demo-scope-note a {
  color: #0b5d3b;
  font-weight: 600;
}

.demo-plan-banner {
  font-size: 0.75rem;
  color: #475569;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.625rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
}

.demo-plan-banner strong {
  color: #0b5d3b;
}

.demo-pro-callout {
  font-size: 0.75rem;
  color: #475569;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 0.625rem;
  padding: 0.625rem 0.875rem;
  margin-bottom: 0.75rem;
}

.demo-pro-callout p {
  margin: 0;
  line-height: 1.5;
}

.demo-pro-callout a {
  color: #0b5d3b;
  font-weight: 600;
}

.demo-plan-toggle__btn--pro.is-active {
  background: #111827;
  border-color: #111827;
}

.demo-browser {
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 24px 48px rgba(11, 93, 59, 0.14),
    0 0 0 1px rgba(15, 23, 42, 0.06);
  background: #fff;
}

.demo-browser__chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
}

.demo-browser__dots {
  display: flex;
  gap: 0.375rem;
}

.demo-browser__dots span {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: #cbd5e1;
}

.demo-browser__dots span:nth-child(1) { background: #f87171; }
.demo-browser__dots span:nth-child(2) { background: #fbbf24; }
.demo-browser__dots span:nth-child(3) { background: #4ade80; }

.demo-browser__url {
  flex: 1;
  font-size: 0.75rem;
  color: #64748b;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 0.35rem 0.875rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-browser__badge {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0b5d3b;
  background: #dcfce7;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
}

.demo-app {
  display: grid;
  grid-template-columns: 13.5rem 1fr;
  min-height: 32rem;
}

@media (max-width: 900px) {
  .demo-app {
    grid-template-columns: 1fr;
  }
  .demo-sidebar {
    display: none;
  }
}

.demo-sidebar {
  background: #111827;
  color: #fff;
  padding: 1.25rem 0;
}

.demo-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.75rem;
}

.demo-sidebar__logo {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: #ff8a00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 800;
}

.demo-sidebar__club {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
}

.demo-sidebar__season {
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.45);
}

.demo-sidebar__nav {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0.5rem;
}

.demo-sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
  cursor: default;
}

.demo-sidebar__link.is-active {
  background: rgba(11, 93, 59, 0.35);
  color: #fff;
  font-weight: 600;
}

.demo-sidebar__icon {
  width: 1rem;
  height: 1rem;
  opacity: 0.7;
}

.demo-main {
  background: #f8fafb;
  padding: 1.25rem;
  overflow: hidden;
}

.demo-main__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.demo-main__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
}

.demo-main__subtitle {
  font-size: 0.75rem;
  color: #64748b;
}

/* Tabs */
.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1rem;
  padding: 0.25rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
}

.demo-tab {
  flex: 1 1 auto;
  min-width: 5.5rem;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.demo-tab:hover {
  color: #0b5d3b;
  background: #f0fdf4;
}

.demo-tab.is-active {
  background: #0b5d3b;
  color: #fff;
}

.demo-panel {
  display: none;
  animation: demo-fade-in 0.25s ease;
}

.demo-panel.is-active {
  display: block;
}

@keyframes demo-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Stats */
.demo-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .demo-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.demo-stat {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
  padding: 0.875rem 1rem;
}

.demo-stat__value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0b5d3b;
  line-height: 1;
}

.demo-stat__label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.demo-stat__hint {
  font-size: 0.6875rem;
  color: #94a3b8;
  margin-top: 0.35rem;
}

/* Cards grid */
.demo-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .demo-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.demo-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
  padding: 1rem;
}

.demo-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.demo-card__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #111827;
}

.demo-card__link {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #0b5d3b;
  cursor: pointer;
}

.demo-card__link:hover {
  text-decoration: underline;
}

/* Report rows */
.demo-report-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.12s;
  border-radius: 0.375rem;
  margin: 0 -0.375rem;
  padding-left: 0.375rem;
  padding-right: 0.375rem;
}

.demo-report-row:last-child {
  border-bottom: none;
}

.demo-report-row:hover {
  background: #f8fafc;
}

.demo-report-row__name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #111827;
}

.demo-report-row__meta {
  font-size: 0.6875rem;
  color: #94a3b8;
  margin-top: 0.15rem;
}

.demo-report-row__scout {
  font-size: 0.6875rem;
  color: #64748b;
  margin-top: 0.2rem;
}

/* Player rows */
.demo-player-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.demo-player-row:last-child {
  border-bottom: none;
}

.demo-player-row__avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #0b5d3b, #0e7048);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.demo-player-row__info {
  flex: 1;
  min-width: 0;
}

.demo-player-row__name {
  font-size: 0.8125rem;
  font-weight: 600;
}

.demo-player-row__sub {
  font-size: 0.6875rem;
  color: #94a3b8;
}

.demo-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.35rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 2px solid #0b5d3b;
  font-size: 0.75rem;
  font-weight: 800;
  color: #0b5d3b;
}

/* Advice pills */
.demo-advice {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.demo-advice--positive {
  background: #dcfce7;
  color: #166534;
}

.demo-advice--follow {
  background: #fef3c7;
  color: #92400e;
}

.demo-advice--neutral {
  background: #f1f5f9;
  color: #475569;
}

/* TC queues */
.demo-tc-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .demo-tc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .demo-tc-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.demo-tc-queue {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
  padding: 0.875rem;
  border-top: 3px solid var(--queue-color, #0b5d3b);
}

.demo-tc-queue__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.demo-tc-queue__title {
  font-size: 0.75rem;
  font-weight: 700;
}

.demo-tc-queue__count {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--queue-color, #0b5d3b);
}

.demo-tc-queue__desc {
  font-size: 0.625rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.demo-tc-queue__players {
  list-style: none;
  margin: 0;
  padding: 0;
}

.demo-tc-queue__players li {
  font-size: 0.75rem;
  color: #0b5d3b;
  padding: 0.2rem 0;
}

/* Pipeline funnel */
.demo-funnel-row {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.demo-funnel-row:last-child {
  border-bottom: none;
}

.demo-funnel-row__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.demo-funnel-row__team {
  font-size: 0.8125rem;
  font-weight: 700;
}

.demo-funnel-row__meta {
  font-size: 0.6875rem;
  color: #94a3b8;
}

.demo-funnel-bars {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.demo-funnel-bar {
  display: grid;
  grid-template-columns: 5.5rem 1fr 1.5rem;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.625rem;
}

.demo-funnel-bar__label {
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-funnel-bar__track {
  height: 0.5rem;
  background: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
}

.demo-funnel-bar__fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #0b5d3b, #22c55e);
  width: 0;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.demo-funnel-bar__fill.is-animated {
  width: var(--bar-width, 0%);
}

.demo-funnel-bar__count {
  font-weight: 700;
  color: #0b5d3b;
  text-align: right;
}

/* Matches */
.demo-match-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.demo-match-row:last-child {
  border-bottom: none;
}

.demo-match-row__teams {
  font-size: 0.8125rem;
  font-weight: 600;
}

.demo-match-row__meta {
  font-size: 0.6875rem;
  color: #94a3b8;
}

.demo-match-row__scouts {
  font-size: 0.6875rem;
  color: #0b5d3b;
  background: #ecfdf5;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
}

/* Compare preview */
.demo-compare {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .demo-compare {
    grid-template-columns: 1fr 1fr;
  }

  .demo-compare--wide {
    grid-template-columns: repeat(4, 1fr);
  }
}

.demo-compare__limit {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #94a3b8;
}

.demo-compare__upgrade {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 6rem;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 0.625rem;
  padding: 0.75rem;
  text-align: center;
}

.demo-compare__upgrade p {
  margin: 0;
  font-size: 0.75rem;
  color: #64748b;
}

.demo-teamplanner__meta {
  font-size: 0.6875rem;
  color: #94a3b8;
  margin: -0.25rem 0 0.75rem;
}

.demo-teamplanner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.demo-teamplanner-row:last-child {
  border-bottom: none;
}

.demo-teamplanner-row__positie {
  font-size: 0.6875rem;
  color: #94a3b8;
}

.demo-teamplanner-row__speler {
  font-size: 0.8125rem;
  font-weight: 600;
}

.demo-teamplanner-row__status {
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.demo-teamplanner-row__status--bevestigd {
  background: #dcfce7;
  color: #166534;
}

.demo-teamplanner-row__status--reserve {
  background: #fef3c7;
  color: #92400e;
}

.demo-staff-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.demo-staff-row:last-child {
  border-bottom: none;
}

.demo-staff-row__avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #111827;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.demo-staff-row__info {
  flex: 1;
  min-width: 0;
}

.demo-staff-row__name {
  font-size: 0.8125rem;
  font-weight: 600;
}

.demo-staff-row__sub {
  font-size: 0.6875rem;
  color: #94a3b8;
}

.demo-staff-row__sinds {
  font-size: 0.625rem;
  color: #64748b;
  white-space: nowrap;
}

.demo-compare__player {
  background: #f8fafc;
  border-radius: 0.625rem;
  padding: 0.75rem;
}

.demo-compare__name {
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.demo-compare__axis {
  display: grid;
  grid-template-columns: 4.5rem 1fr 2rem;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.625rem;
  margin-bottom: 0.25rem;
}

.demo-compare__axis-label {
  color: #64748b;
}

.demo-compare__axis-track {
  height: 0.375rem;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}

.demo-compare__axis-fill {
  height: 100%;
  background: #0b5d3b;
  border-radius: 9999px;
}

.demo-compare__axis-val {
  font-weight: 700;
  color: #0b5d3b;
  text-align: right;
}

/* Toast */
.demo-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 100;
  background: #111827;
  color: #fff;
  font-size: 0.8125rem;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: calc(100% - 2rem);
  text-align: center;
}

.demo-toast.is-visible {
  transform: translateX(-50%) translateY(0);
}

/* CTA strip */
.demo-cta-strip {
  margin-top: 3rem;
  padding: 2.5rem 0 4rem;
  text-align: center;
}

.demo-cta-strip h2 {
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.demo-cta-strip p {
  color: #64748b;
  margin-bottom: 1.5rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.demo-cta-strip__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.demo-plan-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.demo-plan-toggle__btn {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.demo-plan-toggle__btn.is-active {
  background: #0b5d3b;
  border-color: #0b5d3b;
  color: #fff;
}

.demo-feature--hidden {
  display: none !important;
}

.demo-conversion {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 1rem;
  z-index: 60;
  padding: 0 1rem;
  pointer-events: none;
}

.demo-conversion__inner {
  pointer-events: auto;
  max-width: 40rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #0b5d3b 0%, #0e7048 100%);
  color: #fff;
  box-shadow: 0 16px 40px rgba(11, 93, 59, 0.28);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.demo-conversion__title {
  font-weight: 800;
  font-size: 0.9375rem;
  margin: 0;
}

.demo-conversion__text {
  flex: 1 1 12rem;
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.85);
}

.demo-conversion__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 767px) {
  .demo-main__header {
    flex-direction: column;
    align-items: stretch;
  }

  .demo-plan-toggle {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .demo-shell {
    margin-inline: -0.25rem;
  }
  .demo-browser__url {
    display: none;
  }
  .demo-app {
    min-height: 0;
  }
  .demo-main {
    padding: 0.85rem;
  }
  .demo-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .demo-hero__lead {
    font-size: 1rem;
  }
}
