body { font-family: system-ui, -apple-system, sans-serif; max-width: 800px; margin: 0 auto; padding: 20px; line-height: 1.6; }
header { border-bottom: 1px solid #ddd; padding-bottom: 20px; margin-bottom: 30px; }
.hero { text-align: center; padding: 40px 0; }
.btn { display: inline-block; padding: 12px 24px; background: #000; color: #fff; text-decoration: none; border-radius: 6px; }
.btn:hover { opacity: 0.8; }
.result { background: #f5f5f5; padding: 15px; border-radius: 6px; margin-top: 20px; }
.error { color: #d00; }
.ok { color: #080; }
input[type="file"], input[type="email"] { padding: 8px; margin: 10px 0; }
button { padding: 8px 16px; cursor: pointer; }
.csv-instructions { background: #f7f7f7; padding: 15px; border-radius: 6px; margin: 20px 0; }
.csv-instructions table { border-collapse: collapse; width: 100%; margin: 10px 0; }
.csv-instructions th, .csv-instructions td { border: 1px solid #ddd; padding: 8px; text-align: left; }
.csv-instructions th { background: #e9e9e9; }
.note { font-size: 0.9em; color: #666; }
details { margin-top: 10px; }
/* Base Layout Resets & Adjustments */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.privacy-notice {
  background: #eef2f6;
  border-left: 4px solid #0070f3;
  padding: 12px 20px;
  border-radius: 4px;
  margin-bottom: 40px;
  font-size: 14px;
}

/* The Grid System: 3 columns on desktop, 1 column on mobile */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 50px;
}

/* Individual Card Styling */
.tool-tile {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  overflow: hidden; /* Ensures video corners map to the card border radius */
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s, box-shadow 0.2s;
}

.tool-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

/* Handles padding inside the card separately from the video block */
.tile-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Pushes buttons to line up perfectly across card heights */
}

.tool-tile h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
  color: #111;
}

.tool-tile p {
  font-size: 14px;
  line-height: 1.5;
  color: #666;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Standardizing Buttons */
.btn.tile-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  background: #0070f3;
  color: white;
  padding: 10px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  width: 100%;
  box-sizing: border-box;
}

.btn.tile-btn:hover {
  background: #0051a8;
}

/* Styling for the disabled/placeholder state */
.placeholder-tile {
  opacity: 0.7;
  border-style: dashed;
}
.btn:disabled {
  background: #eaeaea;
  color: #999;
  cursor: not-allowed;
}

/* Video Containers (Structured at a crisp 16:9 aspect ratio widescreen setup) */
.video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 13px;
  font-weight: 500;
}

.empty-video {
  background: #eaeaea;
}

/* Responsive Breakpoint: Drops to single columns on tablets/smartphones */
@media (max-width: 900px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
}