/* Accent Familiarity Bias Checker styles */
:root {
  --bg: #0e1116;
  --bg-soft: #161b22;
  --bg-card: #1c2230;
  --bg-card-hover: #222a3a;
  --border: #2a3242;
  --text: #e6edf3;
  --text-muted: #9aa7b8;
  --accent: #6ea8fe;
  --accent-2: #b794f6;
  --success: #56d364;
  --warning: #e3b341;
  --danger: #f85149;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --max-width: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14,17,22,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--accent); }
.site-nav {
  display: flex;
  gap: 24px;
  font-size: 0.9rem;
}
.site-nav a { color: var(--text-muted); }
.site-nav a:hover { color: var(--text); text-decoration: none; }

/* HERO */
.hero {
  padding: 80px 0 48px;
  background: radial-gradient(ellipse at 50% 0%, rgba(110,168,254,0.08) 0%, transparent 60%);
}
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(110,168,254,0.1);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin: 0 0 16px;
  max-width: 700px;
}
.lede {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 0 24px;
}
.phrase-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.phrase-picker-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-right: 4px;
}
.phrase-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
}
.phrase-btn:hover { border-color: var(--accent); color: var(--text); }
.phrase-btn.is-active {
  background: var(--accent);
  color: #0e1116;
  border-color: var(--accent);
  font-weight: 600;
}
.phrase-preview {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
  min-height: 24px;
}

/* SECTION HEAD */
.section-head {
  margin-bottom: 32px;
}
.section-head h2 {
  font-size: 1.5rem;
  margin: 0 0 8px;
}
.section-head p {
  color: var(--text-muted);
  margin: 0;
}

/* CARDS SECTION */
.cards-section {
  padding: 48px 0;
}
.accent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.accent-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.15s, background 0.15s;
}
.accent-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}
.accent-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.accent-name {
  font-weight: 600;
  font-size: 1rem;
}
.accent-region {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.play-btn {
  background: var(--accent);
  color: #0e1116;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s;
}
.play-btn:hover { transform: scale(1.08); }
.play-btn svg { width: 18px; height: 18px; }
.accent-features {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.accent-features li {
  padding: 2px 0;
}
.accent-features li::before {
  content: "· ";
  color: var(--accent-2);
}
.rating-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rating-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  outline: none;
}
.rating-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}
.rating-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
}
.rating-value {
  font-size: 1.1rem;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
  color: var(--accent);
}
.rating-value.unrated {
  color: var(--text-muted);
  font-weight: 400;
}
.rating-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--accent);
  color: #0e1116;
}
.btn-primary:hover:not(:disabled) { background: #8ab8ff; }
.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--accent); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-muted); }

.action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.progress {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: auto;
}

/* RESULTS */
.results-section {
  padding: 48px 0;
  background: var(--bg-soft);
}
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 700px) {
  .results-grid { grid-template-columns: 1fr; }
}
.score-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.score-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.score-item:last-child { border-bottom: none; }
.score-name {
  flex: 1;
  font-weight: 500;
}
.score-bar-wrap {
  flex: 1.5;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.score-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 4px;
  transition: width 0.4s ease;
}
.score-num {
  font-weight: 700;
  min-width: 28px;
  text-align: right;
}
.result-summary h3 { margin-top: 0; }
.insight-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 12px;
}
.insight-block h4 {
  margin: 0 0 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
}
.insight-block p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.result-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* PRACTICE */
.practice-section {
  padding: 48px 0;
  background: var(--bg-card);
}
.practice-section h2 { margin-top: 0; }
.practice-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.practice-accent {
  font-weight: 600;
  color: var(--accent);
  margin: 16px 0 8px;
}
.practice-transcript {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 8px 0 24px;
}

/* HOW SECTION */
.how-section {
  padding: 64px 0;
}
.how-section h2 {
  font-size: 1.5rem;
  margin-bottom: 32px;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.how-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #0e1116;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.how-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.how-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.content-block {
  margin-bottom: 36px;
}
.content-block h3 {
  font-size: 1.15rem;
  margin: 0 0 12px;
}
.content-block p {
  color: var(--text-muted);
  margin: 0 0 12px;
}
.content-block p:last-child { margin-bottom: 0; }
.feature-list, .tips-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
}
.feature-list li, .tips-list li {
  margin-bottom: 8px;
}
.feature-list strong, .tips-list strong {
  color: var(--text);
}
.last-updated {
  margin-top: 48px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: var(--bg-soft);
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-nav {
  display: flex;
  gap: 20px;
}
.footer-nav a {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-nav a:hover { color: var(--text); text-decoration: none; }

/* TOAST */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  z-index: 100;
  animation: toast-in 0.3s ease;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .site-header .container { height: 56px; }
  .site-nav { gap: 14px; font-size: 0.8rem; }
  .hero { padding: 48px 0 32px; }
  .accent-grid { grid-template-columns: 1fr; }
  .action-row { flex-direction: column; align-items: stretch; }
  .progress { margin-left: 0; text-align: center; }
  .result-actions { flex-direction: column; }
  .btn { width: 100%; }
}

/* FOCUS */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


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