/* Shared base styles for beatem.ai — extracted from the original hand-built
   homepage so new pages match its look without duplicating the whole file.
   Home keeps its own full <style> block (untouched); this is for every page
   that isn't home. */

*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; margin: 0; padding: 0; background: #fff; color: #0a0a0a; }

.gradient-text {
  background: linear-gradient(135deg, #3B9FEF 0%, #6ab8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Wordmark ── */
.wordmark { display: inline-flex; align-items: baseline; line-height: 1; user-select: none; letter-spacing: -0.02em; }
.wordmark-beat { font-family: 'PT Serif', Georgia, serif; font-weight: 400; font-style: italic; color: #3B9FEF; font-size: 26px; letter-spacing: -0.01em; }
.wordmark-apos { font-family: 'PT Serif', Georgia, serif; font-weight: 700; font-style: normal; color: #3B9FEF; font-size: 14px; letter-spacing: 0.01em; align-self: flex-start; margin-top: 4px; margin-left: 1px; }
.wordmark-em   { font-family: 'PT Serif', Georgia, serif; font-weight: 700; font-style: normal; color: #3B9FEF; font-size: 26px; letter-spacing: -0.01em; }

/* ── Loops form ── */
.loops-wrap { display: flex; flex-direction: column; gap: 10px; max-width: 480px; }
.loops-input {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  border: 1.5px solid #e8e8e8; font-size: 14px; font-family: 'Inter', sans-serif;
  background: #fafafa; outline: none; transition: border-color .15s;
}
.loops-input:focus { border-color: #3B9FEF; background: #fff; }
.loops-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 32px; border-radius: 9999px; border: none; cursor: pointer;
  background: linear-gradient(135deg, #2a8de0 0%, #3B9FEF 60%, #6ab8ff 100%);
  color: #fff; font-size: 16px; font-weight: 600; font-family: 'Inter', sans-serif;
  box-shadow: 0 8px 32px rgba(59,159,239,0.5);
  transition: opacity .15s;
}
.loops-btn:hover { opacity: .9; }
.loops-btn svg { width: 16px; height: 16px; stroke: #fff; stroke-width: 2; fill: none; flex-shrink: 0; }
.loops-loading { display: none; align-items: center; justify-content: center; gap: 10px; padding: 15px 32px; border-radius: 9999px; background: linear-gradient(135deg, #2a8de0, #6ab8ff); color: #fff; font-size: 16px; font-weight: 600; font-family: 'Inter', sans-serif; }
.loops-success { display: none; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 12px; background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; font-size: 14px; font-weight: 600; }
.loops-error { display: none; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 10px; background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; font-size: 13px; }

/* ── Simple top bar (non-home pages — home keeps its own hero-embedded nav) ── */
.site-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 64px; max-width: 1280px; margin: 0 auto;
}
.site-nav-links { display: flex; align-items: center; gap: 28px; }
.site-nav-links a { font-size: 14px; font-weight: 500; color: #6b7280; text-decoration: none; }
.site-nav-links a:hover { color: #0a0a0a; }
.site-nav-cta {
  padding: 10px 20px; border-radius: 9999px; background: #3B9FEF; color: #fff !important;
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: opacity .15s;
}
.site-nav-cta:hover { opacity: .85; }

/* ── Simple page body (skeleton pages) ── */
.page-container { max-width: 720px; margin: 0 auto; padding: 80px 24px; }
.page-container h1 { font-size: 40px; font-weight: 800; letter-spacing: -.03em; margin: 0 0 16px; }
.page-container .page-subtitle { font-size: 17px; color: #6b7280; line-height: 1.7; margin: 0 0 40px; }
.page-container .coming-soon { font-size: 14px; color: #9ca3af; }

.badge-soon {
  display: inline-block; padding: 3px 10px; border-radius: 9999px;
  background: #f3f4f6; color: #6b7280; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; margin-left: 8px; vertical-align: middle;
}

.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card-grid a {
  display: block; padding: 20px; border-radius: 14px; border: 1px solid #e8e8e8;
  text-decoration: none; color: #0a0a0a; font-size: 14px; font-weight: 600;
  transition: border-color .15s;
}
.card-grid a:hover { border-color: #3B9FEF; }
.card-grid a .card-sub { display: block; margin-top: 4px; font-size: 12px; font-weight: 400; color: #9ca3af; }

/* ── Footer (shared by every page, including home) ── */
.site-footer { border-top: 1px solid #f0f0f0; background: #fafafa; }
.site-footer-inner { max-width: 1280px; margin: 0 auto; padding: 48px 64px; }
.site-footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (min-width: 640px) { .site-footer-cols { grid-template-columns: repeat(5, 1fr); } }
.site-footer-col-heading { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #9ca3af; margin-bottom: 12px; }
.site-footer-col a { display: block; font-size: 13px; color: #6b7280; text-decoration: none; margin-bottom: 8px; }
.site-footer-col a:hover { color: #0a0a0a; }
.site-footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid #f0f0f0; font-size: 12px; color: #c0c0c0; }

@media (max-width: 640px) {
  .site-nav { padding: 20px 20px; }
  .site-nav-links { display: none; }
  .page-container { padding: 56px 20px; }
  .page-container h1 { font-size: 30px; }
  .site-footer-inner { padding: 32px 20px; }
}
