* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: #111;
  background: #fff;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { font-weight: 700; letter-spacing: 0.2px; }
.nav a { color: #111; text-decoration: none; margin-left: 18px; }
.nav a:hover { text-decoration: underline; }

.hero { padding: 48px 0 24px; text-align: center; }
.hero h1 { font-size: clamp(28px, 6vw, 44px); margin: 0; }
.lede { color: #404040; margin: 12px auto 24px; max-width: 720px; }

.download-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; max-width: 720px; margin: 0 auto; }
.download-form input {
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  outline: none;
  font-size: 16px;
}
.download-form input:focus { border-color: #111; }
.download-form button {
  padding: 14px 20px;
  border: 1px solid #111;
  color: #fff;
  background: #111;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
}
.download-form button:hover { opacity: 0.92; }

/* Ad container and layout */
.ad-container {
  display: flex;
  width: 100%;
  position: relative;
}

.ad-slot { 
  display: block; 
  margin: 24px auto; 
  max-width: 720px; 
  text-align: center; 
}

.ad-slot-left, .ad-slot-right { 
  display: block;
  width: 160px;
}

.main-content {
  flex: 1;
  padding: 0 15px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .ad-container {
    flex-direction: column;
  }
  
  .ad-slot-left, .ad-slot-right {
    display: none; /* Hide side ads on mobile */
  }
  
  .main-content {
    margin: 0;
    padding: 0;
  }
  
  .download-form {
    grid-template-columns: 1fr;
  }
  
  .download-form button {
    margin-top: 10px;
  }
}

.result.hidden { display: none; }
.hidden { display: none !important; }
.card { border: 1px solid #e5e7eb; border-radius: 16px; padding: 16px; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.thumb-wrap { display: grid; place-items: center; }
.thumb-wrap img { width: 100%; max-width: 720px; border-radius: 12px; border: 1px solid #eee; background: #fafafa; }
.player-wrap { margin-top: 16px; display: grid; place-items: center; }
.player-wrap video { width: 100%; max-width: 720px; border-radius: 12px; border: 1px solid #eee; background: #000; }

.actions { display: flex; gap: 12px; margin-top: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 16px; border-radius: 12px; border: 1px solid #e5e7eb; text-decoration: none; color: #111; }
.btn:hover { background: #f5f5f5; }
.btn.primary { background: #111; border-color: #111; color: #fff; }

.meta { margin-top: 8px; }
.meta h2 { margin: 12px 0 4px; font-size: 18px; }
.hint { color: #6b7280; }

.features { padding: 32px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.feature { border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px; }
.feature h3 { margin-top: 0; }

.faq { padding: 16px 0 40px; }
.faq details { border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }

.site-footer { border-top: 1px solid #e5e7eb; background: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.footer-inner nav a { color: #111; text-decoration: none; margin-left: 12px; }
.footer-inner nav a:hover { text-decoration: underline; }

/* Accessibility helpers */
.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; }

/* Mobile responsiveness */
@media (max-width: 640px) {
  .header-inner { padding: 14px 0; }
  .brand { font-size: 18px; }
  .nav a { margin-left: 8px; font-size: 14px; }

  .hero h1 { font-size: 24px; }
  .hero .lede { font-size: 14px; }
  .download-form { flex-direction: column; }
  .download-form input { width: 100%; }
  .download-form button { width: 100%; margin-top: 10px; }

  .thumb-wrap img,
  .player-wrap video { max-width: 100%; border-radius: 10px; }
  .actions { flex-direction: column; }
  .btn { width: 100%; }

  .feature-grid { grid-template-columns: 1fr; }
  .card { padding: 12px; }
}