/* Font License Checker — styles.css */
:root {
  --bg: #111118;
  --bg-surface: #1a1a2e;
  --bg-card: #222240;
  --bg-card-hover: #2a2a4a;
  --text: #e8e6e3;
  --text-muted: #9a9aaf;
  --text-heading: #f5f0eb;
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --accent-dim: #92400e;
  --yes: #22c55e;
  --yes-bg: rgba(34,197,94,0.12);
  --no: #ef4444;
  --no-bg: rgba(239,68,68,0.12);
  --maybe: #eab308;
  --maybe-bg: rgba(234,179,8,0.12);
  --border: #2e2e50;
  --radius: 12px;
  --radius-sm: 8px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Header */
.site-header {
  background: rgba(17,17,24,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-heading);
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; }
.logo-text { font-size: 0.95rem; letter-spacing: 0.02em; }
.logo-text strong { color: var(--accent); }

.site-nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-left: auto;
}
.site-nav a {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.site-nav a:hover { color: var(--text-heading); background: var(--bg-surface); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.3rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-left: auto;
}

/* Hero */
.hero-section { padding: 5rem 0 3.5rem; text-align: center; }
.hero-section h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text-heading);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}
.hero-cta-row { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.last-updated { font-size: 0.8rem; color: var(--text-muted); opacity: 0.7; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s, transform 0.1s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #1a1a2e; }
.btn-primary:hover { background: var(--accent-hover); color: #1a1a2e; }
.btn-ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent-dim); }
.btn-ghost:hover { background: rgba(245,158,11,0.1); }
.btn-small { padding: 0.45rem 1rem; font-size: 0.82rem; }

/* Sections */
section { padding: 3.5rem 0; }
section h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}
.section-intro { color: var(--text-muted); max-width: 680px; margin-bottom: 2rem; }

/* Checker */
.checker-section { background: var(--bg-surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.checker-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.checker-controls { display: flex; flex-direction: column; gap: 1.5rem; }
fieldset { border: none; padding: 0; }
legend { font-weight: 700; color: var(--text-heading); font-size: 1rem; margin-bottom: 0.75rem; }
.radio-group { display: flex; flex-direction: column; gap: 0.5rem; }
.radio-card {
  display: grid;
  grid-template-columns: 1.2rem auto;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  row-gap: 0.15rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.radio-card:hover { border-color: var(--accent); background: var(--bg-card-hover); }
.radio-card input[type="radio"] { grid-row: 1 / 3; align-self: center; accent-color: var(--accent); }
.radio-label { font-weight: 600; color: var(--text-heading); font-size: 0.9rem; }
.radio-desc { font-size: 0.8rem; color: var(--text-muted); }

.checker-result { align-self: start; position: sticky; top: 80px; }
.result-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.result-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.result-pass { background: var(--yes-bg); border-color: rgba(34,197,94,0.3); }
.result-pass .result-icon { color: var(--yes); }
.result-fail { background: var(--no-bg); border-color: rgba(239,68,68,0.3); }
.result-fail .result-icon { color: var(--no); }
.result-warn { background: var(--maybe-bg); border-color: rgba(234,179,8,0.3); }
.result-warn .result-icon { color: var(--maybe); }
.result-card h3 { font-size: 1.1rem; color: var(--text-heading); margin-bottom: 0.5rem; }
.result-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.result-note { font-size: 0.82rem; color: var(--text-muted); padding-top: 0.5rem; border-top: 1px solid var(--border); }
.checker-actions { display: flex; gap: 0.5rem; margin-top: 1.5rem; }

/* Comparison Table */
.comparison-section { background: var(--bg); }
.table-wrap { overflow-x: auto; margin-bottom: 1rem; }
.comparison-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; min-width: 700px; }
.comparison-table th, .comparison-table td {
  padding: 0.75rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.comparison-table th {
  background: var(--bg-surface);
  color: var(--text-heading);
  font-weight: 700;
  position: sticky;
  top: 0;
}
.comparison-table td:first-child { text-align: left; font-weight: 500; color: var(--text); white-space: normal; min-width: 200px; }
.comparison-table tbody tr:hover td { background: rgba(245,158,11,0.04); }

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.badge-yes { background: var(--yes-bg); color: var(--yes); }
.badge-no { background: var(--no-bg); color: var(--no); }
.badge-maybe { background: var(--maybe-bg); color: var(--maybe); }

.legend { display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: 0.82rem; color: var(--text-muted); }
.legend-item { display: flex; align-items: center; gap: 0.4rem; }

/* Scenarios */
.scenarios-section { background: var(--bg-surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.scenario-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.scenario-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.scenario-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }
.scenario-card h3 { color: var(--text-heading); font-size: 1.05rem; margin-bottom: 0.5rem; }
.scenario-card p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.scenario-needs { font-size: 0.85rem; padding: 0.6rem 0.8rem; background: rgba(245,158,11,0.08); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-bottom: 0.5rem; }
.scenario-tip { font-size: 0.82rem; color: var(--text-muted); padding-left: 0.8rem; border-left: 3px solid var(--border); }

/* Mistakes */
.mistake-list { display: flex; flex-direction: column; gap: 0.5rem; }
.mistake-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.mistake-item summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-heading);
  font-size: 0.92rem;
  transition: background 0.15s;
}
.mistake-item summary:hover { background: var(--bg-card-hover); }
.mistake-item p { padding: 0 1.25rem 1rem; font-size: 0.88rem; color: var(--text-muted); }

/* Foundry Sheet */
.foundry-section { background: var(--bg-surface); border-top: 1px solid var(--border); }
.foundry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.foundry-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.foundry-card h3 { color: var(--text-heading); font-size: 1rem; margin-bottom: 0.5rem; }
.foundry-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.foundry-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  background: rgba(245,158,11,0.12);
  color: var(--accent);
  border-radius: 999px;
}

/* Flowchart */
.flowchart { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.flow-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.flow-start { border-color: var(--accent); background: rgba(245,158,11,0.06); }
.flow-end { border-color: var(--yes); background: rgba(34,197,94,0.06); }
.flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #1a1a2e;
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.flow-end .flow-num { background: var(--yes); }
.flow-branch { display: flex; flex-direction: column; gap: 0.4rem; padding-left: 2rem; }
.flow-option { font-size: 0.88rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.5rem; }
.flow-arrow { color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand { color: var(--text-heading); font-weight: 700; font-size: 0.95rem; margin-bottom: 0.3rem; }
.footer-desc { font-size: 0.82rem; color: var(--text-muted); }
.footer-heading { font-weight: 700; font-size: 0.85rem; color: var(--text-heading); margin-bottom: 0.5rem; }
.footer-grid a { display: block; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-copy { font-size: 0.78rem; color: var(--text-muted); opacity: 0.6; text-align: center; }

/* Responsive */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }
  .site-nav { display: none; width: 100%; flex-direction: column; padding-top: 0.75rem; }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .hero-section { padding: 3rem 0 2rem; }
  .checker-layout { grid-template-columns: 1fr; }
  .checker-result { position: static; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .legend { gap: 0.75rem; }
}

@media print {
  .site-header, .site-footer, .nav-toggle, .checker-actions, .hero-cta-row, .last-updated { display: none; }
  body { background: #fff; color: #000; }
  .comparison-table { font-size: 0.75rem; }
  section { padding: 1rem 0; break-inside: avoid; }
  .flow-step, .scenario-card, .foundry-card, .mistake-item { break-inside: avoid; }
}



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