/* Small Room Podcast Acoustic Audit */
:root {
  --bg: #0f1420;
  --bg-soft: #161c2c;
  --bg-card: #1c2438;
  --line: #2a3350;
  --text: #e8ecf6;
  --text-soft: #aab3cc;
  --muted: #7a85a3;
  --accent: #ffb547;
  --accent-soft: #ffd98a;
  --good: #5fd28b;
  --warn: #ff8a6b;
  --bad: #ff6b81;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  --max: 1180px;
  --pad: clamp(16px, 3vw, 32px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 80% -10%, #1a2238 0%, var(--bg) 60%) no-repeat, var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
}

a { color: var(--accent-soft); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #1a1a1a;
  padding: 10px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(15, 20, 32, 0.85);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 20;
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 700; letter-spacing: 0.2px;
}
.brand:hover { text-decoration: none; color: var(--accent-soft); }
.brand-mark { color: var(--accent); display: inline-flex; }
.brand-text { font-size: 17px; }

.nav { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.nav a { color: var(--text-soft); font-size: 14px; }
.nav a:hover { color: var(--text); text-decoration: none; }

main { padding-top: 36px; padding-bottom: 64px; }

.section-head { margin-bottom: 22px; }
.section-head h2 { margin: 0 0 8px; font-size: 24px; }
.section-head p { margin: 0; color: var(--text-soft); max-width: 720px; }

.hero {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px;
  padding: 24px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,181,71,0.08), rgba(255,181,71,0));
  border: 1px solid var(--line);
  margin-bottom: 36px;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--accent); font-size: 12px; margin: 0 0 10px;
}
.hero h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 0 0 14px; }
.lede { color: var(--text-soft); font-size: 17px; max-width: 560px; margin: 0 0 18px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-stats { list-style: none; display: flex; gap: 22px; padding: 0; margin: 0; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 22px; color: var(--accent); }
.hero-stats span { color: var(--text-soft); font-size: 13px; }

.hero-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.hero-card-title { margin: 0 0 12px; color: var(--text-soft); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.example-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 12px; }
.example-label { color: var(--text-soft); }
.example-score { color: var(--accent); font-weight: 600; }
.example-list { margin: 0 0 12px; padding-left: 20px; }
.example-list li { margin-bottom: 6px; }
.hero-card-foot { margin: 0; color: var(--text-soft); font-size: 13px; }

.audit { margin-bottom: 56px; }
.audit-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px;
  align-items: start;
}
.audit-form {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.audit-form fieldset {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px; margin: 0 0 16px;
  background: var(--bg-card);
}
.audit-form legend { padding: 0 8px; color: var(--accent-soft); font-weight: 600; font-size: 14px; }
.preset-row { display: flex; gap: 8px; flex-wrap: wrap; }
.preset {
  background: var(--bg-soft); color: var(--text);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font-size: 13px; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.preset:hover { border-color: var(--accent); color: var(--accent); }
.preset.active { background: var(--accent); color: #1a1a1a; border-color: var(--accent); }

.q-block .q { display: grid; grid-template-columns: 1fr; gap: 6px; margin-bottom: 12px; }
.q .q span { font-size: 14px; color: var(--text-soft); }
.q select, .q input {
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; font-size: 14px; width: 100%;
}
.q select:focus, .q input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.form-status { margin: 10px 0 0; color: var(--good); font-size: 13px; min-height: 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; padding: 10px 16px; font-size: 14px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.05s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #1a1a1a; }
.btn-primary:hover { background: var(--accent-soft); }
.btn-secondary { background: var(--bg-card); color: var(--text); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text-soft); border-color: var(--line); }
.btn-ghost:hover { color: var(--text); border-color: var(--accent); }
.btn-link { background: transparent; color: var(--text-soft); padding-left: 6px; padding-right: 6px; }
.btn-link:hover { color: var(--text); }

.audit-result { position: sticky; top: 80px; }
.score-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; margin-bottom: 18px;
  box-shadow: var(--shadow); text-align: center;
}
.score-label { margin: 0; color: var(--text-soft); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.score-value { font-size: 56px; margin: 4px 0 6px; font-weight: 800; color: var(--accent); line-height: 1; }
.score-band { margin: 0 0 14px; color: var(--text-soft); font-size: 14px; }
.score-meter { background: var(--bg); border-radius: 999px; height: 10px; overflow: hidden; border: 1px solid var(--line); }
.score-meter-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--bad), var(--accent) 60%, var(--good)); transition: width 0.4s ease; }

.result-block {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; margin-bottom: 16px;
}
.result-block h3 { margin: 0 0 12px; font-size: 16px; }
.result-list, .mic-tips { list-style: none; padding: 0; margin: 0; }
.result-list li, .mic-tips li {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 10px;
  font-size: 14px;
}
.result-list li.empty-state, .mic-tips li.empty-state, .snapshot-list li.empty-state {
  color: var(--text-soft); font-style: italic; background: transparent; border-style: dashed;
}
.result-list li strong { color: var(--accent-soft); display: block; margin-bottom: 4px; }

.test-steps { padding-left: 20px; margin: 0 0 10px; }
.test-steps li { margin-bottom: 6px; font-size: 14px; }
.test-note { color: var(--text-soft); font-size: 13px; margin: 0; }

.mistakes { margin-bottom: 56px; }
.mistake-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.mistake-list li {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px;
}
.mistake-list h3 { margin: 0 0 8px; font-size: 15px; color: var(--accent-soft); }
.mistake-list p { margin: 0; color: var(--text-soft); font-size: 14px; }

.guide { margin-bottom: 56px; }
.guide-article h3 { margin: 26px 0 8px; font-size: 18px; color: var(--accent-soft); }
.guide-article p { color: var(--text-soft); margin: 0 0 10px; }

.snapshots { margin-bottom: 56px; }
.snapshot-controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.snapshot-controls .q { flex: 1; min-width: 200px; margin: 0; }
.snapshot-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.snapshot-list li {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px;
}
.snapshot-list li strong { color: var(--accent-soft); display: block; margin-bottom: 4px; }
.snapshot-list li span { color: var(--text-soft); display: block; margin-bottom: 8px; }
.snapshot-list li .snap-actions { display: flex; gap: 8px; }
.snapshot-list li button {
  background: transparent; color: var(--text-soft); border: 1px solid var(--line);
  border-radius: 6px; padding: 4px 10px; font-size: 12px; cursor: pointer;
}
.snapshot-list li button:hover { color: var(--text); border-color: var(--accent); }

.assumptions { margin-bottom: 40px; }
.assumption-list { padding-left: 20px; color: var(--text-soft); }
.assumption-list li { margin-bottom: 6px; }
.meta { color: var(--muted); font-size: 12px; margin-top: 12px; }

.site-footer {
  border-top: 1px solid var(--line); padding: 24px 0; margin-top: 40px;
  background: rgba(15, 20, 32, 0.6);
}
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-row p { margin: 0; color: var(--text-soft); font-size: 13px; }
.footer-nav { list-style: none; display: flex; gap: 16px; padding: 0; margin: 0; }
.footer-nav a { color: var(--text-soft); font-size: 13px; }
.footer-nav a:hover { color: var(--text); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .audit-grid { grid-template-columns: 1fr; }
  .audit-result { position: static; }
  .nav { gap: 12px; flex-wrap: wrap; }
  .nav a { font-size: 13px; }
}

@media (max-width: 520px) {
  .hero { padding: 18px; }
  .hero h1 { font-size: 26px; }
  .score-value { font-size: 44px; }
  .form-actions { flex-direction: column; }
  .btn { width: 100%; }
  .snapshot-controls { flex-direction: column; align-items: stretch; }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
