/* Vinyl Grading Second Opinion - Stylesheet */
:root {
  --bg: #1a1612;
  --bg-elevated: #231e18;
  --bg-card: #2a241e;
  --bg-input: #332d24;
  --text: #e8e0d4;
  --text-muted: #a89888;
  --text-dim: #7a6e60;
  --accent: #d4943a;
  --accent-hover: #e8a84e;
  --accent-dim: #8a6020;
  --border: #3d352c;
  --border-light: #4a4036;
  --success: #6aab5c;
  --warning: #c9a23a;
  --danger: #c95a4a;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: 0.2s ease;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(26,22,18,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 16px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 700; font-size: 1.1rem;
  white-space: nowrap;
}
.logo svg { color: var(--accent); flex-shrink: 0; }
.logo-accent { color: var(--accent); font-weight: 400; }
.nav {
  display: flex; align-items: center; gap: 4px;
  overflow-x: auto; scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  padding: 8px 14px; border-radius: var(--radius);
  color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
  white-space: nowrap; transition: all var(--transition);
}
.nav a:hover { color: var(--text); background: var(--bg-elevated); }
.nav-toggle {
  display: none;
  background: var(--bg-elevated); border: 1px solid var(--border);
  color: var(--text); padding: 8px 14px; border-radius: var(--radius);
  font-size: 0.85rem; cursor: pointer;
}
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-elevated); border-bottom: 1px solid var(--border); flex-direction: column; padding: 12px 24px; gap: 4px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; }
  .nav-toggle { display: block; }
}
/* Hero */
.hero {
  padding: 80px 0 64px;
  background: radial-gradient(ellipse at 50% 0%, rgba(212,148,58,0.08) 0%, transparent 60%);
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; line-height: 1.2; margin-bottom: 16px;
  max-width: 640px;
}
.hero-sub {
  font-size: 1.15rem; color: var(--text-muted);
  max-width: 560px; margin-bottom: 32px; line-height: 1.5;
}
/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: all var(--transition);
  font-family: var(--font); line-height: 1.4;
}
.btn-primary {
  background: var(--accent); color: #1a1612;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover); border-color: var(--accent-hover);
  color: #1a1612;
}
.btn-ghost {
  background: transparent; color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-elevated); color: var(--text); }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
/* Sections */
section { padding: 64px 0; }
section:nth-child(even) { background: var(--bg-elevated); }
.section-header { margin-bottom: 36px; }
.section-header h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700; margin-bottom: 8px;
}
.section-header p { color: var(--text-muted); max-width: 640px; }
/* Grader */
.grader-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin-bottom: 32px;
}
@media (max-width: 768px) { .grader-grid { grid-template-columns: 1fr; } }
.grader-panel {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.panel-header h3 { font-size: 1.05rem; font-weight: 600; }
.step-badge {
  background: var(--accent-dim); color: var(--accent);
  padding: 3px 10px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600;
}
.panel-body { padding: 20px; }
.checklist { display: flex; flex-direction: column; gap: 20px; }
.checklist-group {
  border: none; padding: 0; display: flex; flex-direction: column; gap: 6px;
}
.checklist-group legend {
  font-weight: 600; font-size: 0.88rem;
  color: var(--accent); margin-bottom: 6px;
  padding: 0;
}
.check-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 12px; border-radius: var(--radius);
  cursor: pointer; transition: background var(--transition);
  font-size: 0.9rem; line-height: 1.4;
}
.check-item:hover { background: var(--bg-input); }
.check-item input[type="radio"] {
  margin-top: 3px; accent-color: var(--accent); flex-shrink: 0;
}
.grader-actions {
  display: flex; gap: 12px; justify-content: center; margin-bottom: 36px;
}
/* Result */
.result-area { margin-top: 0; }
.result-card {
  background: var(--bg-card); border: 1px solid var(--accent-dim);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.result-grade {
  text-align: center; padding: 36px 24px 24px;
  background: radial-gradient(ellipse at 50% 0%, rgba(212,148,58,0.12) 0%, transparent 70%);
}
.result-label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; }
.grade-display {
  display: block; font-size: 3.5rem; font-weight: 800;
  color: var(--accent); line-height: 1; margin-bottom: 8px;
}
.result-sub { font-size: 0.9rem; color: var(--text-muted); }
.result-body { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.disagreement-box {
  background: rgba(201,90,74,0.08); border: 1px solid rgba(201,90,74,0.2);
  border-radius: var(--radius); padding: 16px 20px;
}
.disagreement-box h4 {
  font-size: 0.9rem; font-weight: 600; color: var(--danger);
  margin-bottom: 6px;
}
.disagreement-box p { font-size: 0.9rem; color: var(--text-muted); }
.result-notes label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; }
.result-notes textarea {
  width: 100%; padding: 12px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg-input);
  color: var(--text); font-family: var(--font); font-size: 0.9rem;
  resize: vertical; min-height: 80px;
}
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; }
/* Comparison Table */
.table-wrap { overflow-x: auto; }
.comparison-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.9rem;
}
.comparison-table th {
  text-align: left; padding: 12px 16px;
  background: var(--bg-input); color: var(--text-muted);
  font-weight: 600; font-size: 0.82rem; text-transform: uppercase;
  letter-spacing: 0.04em; border-bottom: 1px solid var(--border);
}
.comparison-table td {
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.comparison-table tr:hover td { background: rgba(255,255,255,0.02); }
.grade-badge {
  display: inline-block; padding: 3px 10px; border-radius: 4px;
  font-weight: 700; font-size: 0.82rem;
}
.grade-badge.mint { background: rgba(80,180,120,0.15); color: #6aab5c; }
.grade-badge.nm { background: rgba(100,160,220,0.15); color: #7aace0; }
.grade-badge.vg-plus { background: rgba(212,148,58,0.15); color: var(--accent); }
.grade-badge.vg { background: rgba(201,162,58,0.15); color: #c9a23a; }
.grade-badge.g-plus { background: rgba(201,120,58,0.15); color: #d4943a; }
.grade-badge.g { background: rgba(201,90,74,0.15); color: #c95a4a; }
.grade-badge.p { background: rgba(160,70,60,0.15); color: #a0463c; }
/* Patterns */
.pattern-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.pattern-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: border-color var(--transition);
}
.pattern-card:hover { border-color: var(--accent-dim); }
.pattern-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-dim); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; margin-bottom: 14px;
}
.pattern-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.pattern-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }
/* Marketplace */
.market-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.market-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}
.market-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; color: var(--accent); }
.market-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }
/* Worksheet */
.worksheet-controls {
  display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap;
}
.worksheet-table {
  width: 100%; border-collapse: collapse; font-size: 0.88rem;
}
.worksheet-table th {
  text-align: left; padding: 10px 14px;
  background: var(--bg-input); color: var(--text-muted);
  font-weight: 600; font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.04em; border-bottom: 1px solid var(--border);
}
.worksheet-table td {
  padding: 10px 14px; border-bottom: 1px solid var(--border);
}
.worksheet-table input, .worksheet-table select {
  width: 100%; padding: 6px 10px; border-radius: 4px;
  border: 1px solid var(--border); background: var(--bg-input);
  color: var(--text); font-size: 0.85rem; font-family: var(--font);
}
.worksheet-table .delete-row {
  background: none; border: none; color: var(--danger);
  cursor: pointer; font-size: 1.1rem; padding: 4px 8px;
  border-radius: 4px; transition: background var(--transition);
}
.worksheet-table .delete-row:hover { background: rgba(201,90,74,0.1); }
.worksheet-empty {
  text-align: center; color: var(--text-dim); padding: 40px 0;
  font-style: italic;
}
/* Glossary */
.glossary-list {
  display: flex; flex-direction: column; gap: 0;
}
.glossary-item {
  padding: 20px 0; border-bottom: 1px solid var(--border);
}
.glossary-item:last-child { border-bottom: none; }
.glossary-item dt {
  font-weight: 700; font-size: 1rem; color: var(--accent);
  margin-bottom: 6px;
}
.glossary-item dd {
  font-size: 0.92rem; color: var(--text-muted); line-height: 1.55;
}
/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.faq-question {
  width: 100%; text-align: left; padding: 18px 20px;
  background: none; border: none; color: var(--text);
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  font-family: var(--font); display: flex;
  align-items: center; justify-content: space-between; gap: 16px;
}
.faq-question:hover { background: rgba(255,255,255,0.02); }
.faq-question::after {
  content: '+'; font-size: 1.3rem; color: var(--accent);
  flex-shrink: 0; transition: transform var(--transition);
}
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer {
  padding: 0 20px; max-height: 0; overflow: hidden;
  transition: all 0.3s ease; font-size: 0.9rem;
  color: var(--text-muted); line-height: 1.55;
}
.faq-item.open .faq-answer { padding: 0 20px 18px; max-height: 500px; }
/* Why Section */
.why-section { background: var(--bg-elevated); }
.why-section h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; }
.why-section p { color: var(--text-muted); margin-bottom: 16px; max-width: 720px; line-height: 1.6; }
.last-updated {
  margin-top: 24px; font-size: 0.82rem; color: var(--text-dim);
  font-style: italic;
}
/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
}
.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px; margin-bottom: 24px;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--text); font-size: 0.95rem;
}
.footer-brand svg { color: var(--accent); }
.footer-nav {
  display: flex; gap: 4px; flex-wrap: wrap;
}
.footer-nav a {
  padding: 6px 12px; color: var(--text-muted);
  font-size: 0.85rem; border-radius: var(--radius);
}
.footer-nav a:hover { color: var(--text); background: var(--bg-elevated); }
.footer-bottom {
  padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 0.82rem; color: var(--text-dim);
}
/* Print */
@media print {
  .site-header, .site-footer, .nav-toggle, .grader-actions, .result-actions, .worksheet-controls { display: none; }
  body { background: #fff; color: #000; }
  .result-card { border: 2px solid #333; }
  .grade-display { color: #000; }
  section { padding: 24px 0; }
}
/* Focus */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }



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