/* Gobo Studio — dark theme. Reuses KaraokeFlow's palette so the family looks consistent. */

:root {
  --bg: #0a0a1a;
  --bg-card: #1a1a2e;
  --border: #2a2a3e;
  --text: #e0e0e0;
  --muted: #8a8aa0;
  --primary: #426323;
  --primary-hover: #547d2d;
  --secondary: #bbd68f;
  --warning: #fdcb6e;
  --danger: #e74c3c;
  --radius: 10px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.5; }
a { color: var(--secondary); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
  background: rgba(10,10,26,0.92); backdrop-filter: blur(8px);
}
.topbar .brand { display: inline-flex; align-items: center; }
.topbar .brand img { height: 48px; width: auto; display: block; }
.topbar nav { display: flex; gap: 1rem; align-items: center; }
.topbar nav a { color: var(--text); font-size: 0.95rem; }

.container { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem; }
.footer { text-align: center; padding: 2rem 1rem; color: var(--muted); border-top: 1px solid var(--border); margin-top: 4rem; }
.footer .footer-links { margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer .footer-links a { color: var(--muted); }
.footer .footer-links a:hover { color: var(--text); }

article.legal { max-width: 760px; margin: 0 auto; }
article.legal h1 { margin-bottom: 0.3rem; }
article.legal h2 { margin-top: 2rem; font-size: 1.15rem; color: var(--text); }
article.legal p, article.legal li { line-height: 1.7; }
article.legal ul, article.legal ol { padding-left: 1.4rem; }

article.legal details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin: 0.6rem 0;
}
article.legal details[open] { border-color: var(--primary); }
article.legal details summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 1.4rem;
}
article.legal details summary::-webkit-details-marker { display: none; }
article.legal details summary::after {
  content: '+';
  position: absolute; right: 0; top: 0;
  color: var(--muted);
  font-weight: 400;
  font-size: 1.1rem;
}
article.legal details[open] summary::after { content: '−'; }
article.legal details > p,
article.legal details > ul { margin-top: 0.8rem; }

.hero {
  text-align: center;
  padding: 4rem 1rem 3rem;
  background: linear-gradient(135deg, #0a0a1a 0%, #1f3315 50%, #0a0a1a 100%);
  border-radius: var(--radius);
  margin-bottom: 3rem;
}
.hero .logo { margin: 0; }
.hero .logo img { height: 300px; width: auto; display: block; margin: 1.5rem auto; }
.hero h1 { font-size: 3.2rem; margin: 0 0 0.5rem; font-weight: 800; }
.hero .tagline { font-size: 1.3rem; color: var(--secondary); font-style: italic; margin: 0.4rem 0; }
.hero .lead { font-size: 1.05rem; color: var(--muted); max-width: 640px; margin: 1rem auto 1.5rem; }

.products h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.product-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  color: var(--text);
  transition: transform 0.15s, border-color 0.15s;
}
.product-card:hover { transform: translateY(-2px); border-color: var(--primary); text-decoration: none; }
.product-card h3 { margin: 0 0 0.4rem; }
.product-card.muted { opacity: 0.55; }
.product-card .badge { font-size: 0.7rem; background: var(--border); padding: 0.1rem 0.5rem; border-radius: 4px; vertical-align: middle; margin-left: 0.3rem; text-transform: uppercase; letter-spacing: 0.05em; }

.form-card {
  max-width: 420px;
  margin: 1rem auto;
  background: var(--bg-card);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.form-card h2 { margin-top: 0; }
.form-card label { display: block; margin: 0.9rem 0 0.3rem; font-size: 0.9rem; }
.form-card input[type=email],
.form-card input[type=text],
.form-card input[type=password] {
  width: 100%; padding: 0.6rem 0.7rem;
  background: #11111e; color: var(--text);
  border: 1px solid var(--border); border-radius: 6px; font-size: 0.95rem;
}
.form-card input:focus { outline: 2px solid var(--primary); outline-offset: -1px; }
.form-card .btn-block { width: 100%; margin-top: 1rem; }

.btn {
  display: inline-block;
  padding: 0.55rem 1rem;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { border-color: var(--primary); text-decoration: none; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-ghost { background: transparent; }
.btn-sm { font-size: 0.85rem; padding: 0.35rem 0.7rem; }

.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin: 1rem 0; }

.alert { padding: 0.8rem 1rem; border-radius: 6px; margin: 1rem 0; }
.alert-success { background: rgba(0,184,148,0.12); border: 1px solid rgba(0,184,148,0.4); color: var(--secondary); }
.alert-error   { background: rgba(231,76,60,0.12);  border: 1px solid rgba(231,76,60,0.4); color: var(--danger); }

/* Pricing page */
.billing-toggle { display: flex; gap: 1.5rem; margin: 1.5rem 0; align-items: center; }
.billing-toggle label { cursor: pointer; font-size: 0.95rem; }
.badge-yearly { background: var(--secondary); color: #fff; padding: 0.1rem 0.45rem; border-radius: 4px; font-size: 0.7rem; margin-left: 0.3rem; }

.card-grid.pricing { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.price-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.price-card.current { border-color: var(--secondary); }
.price-card .current-badge {
  position: absolute; top: -10px; right: 1rem;
  background: var(--secondary); color: #fff;
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem; border-radius: 4px;
}
.price-card h3 { margin: 0 0 0.4rem; }
.price-card .price { font-size: 2rem; font-weight: 800; margin: 0.8rem 0; }
.price-card .price small { font-size: 0.9rem; font-weight: 400; color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 1rem 0; }
.price-card ul li { padding: 0.3rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.price-card ul li:last-child { border-bottom: 0; }
.price-card .btn { width: 100%; margin-top: 0.6rem; }
