:root {
    --bg: #111111;
    --surface: #1e1e1e;
    --surface-alt: #2c2c2c;
    --text: #ffffff;
    --text-dim: #a0a0a0;
    --brand: #e63946;
    --brand-hover: #fca311;
    --border: #333333;
    --radius: 8px;
    --font: system-ui, -apple-system, sans-serif;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header h1 {
    font-size: 1.25rem;
    color: var(--brand);
}

.site-header nav a {
    color: var(--text-dim);
    text-decoration: none;
    margin-left: 1rem;
    font-size: 0.95rem;
}

.site-header nav a:hover {
    color: var(--text);
}

.hero {
    margin: 3rem 0 2rem;
    text-align: center;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hero p {
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto;
}

.workspace {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .workspace {
        grid-template-columns: 1fr;
    }
}

.controls, .results {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

select {
    width: 100%;
    padding: 0.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface-alt);
    color: var(--text);
    font-size: 1rem;
}

.primary-btn, .secondary-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
    width: 100%;
}

.primary-btn {
    background: var(--brand);
    color: #fff;
}

.primary-btn:hover {
    background: var(--brand-hover);
}

.secondary-btn {
    background: var(--surface-alt);
    color: var(--text);
    border: 1px solid var(--border);
    margin-top: 1rem;
}

.secondary-btn:hover {
    background: #3a3a3a;
}

.result-card {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px dashed var(--border);
}

.result-metric {
    margin-bottom: 1rem;
}

.result-metric .label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 0.25rem;
}

.result-metric strong {
    font-size: 1.25rem;
    color: var(--brand-hover);
}

.result-notes {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-dim);
}

.feedback-text {
    font-size: 0.85rem;
    text-align: center;
    margin-top: 0.5rem;
    min-height: 1.5rem;
    color: #2a9d8f;
}

.content-guide {
    margin-bottom: 4rem;
}

.content-guide h2, .content-guide h3 {
    margin: 2rem 0 1rem;
}

.content-guide p {
    margin-bottom: 1rem;
    color: var(--text-dim);
}

.content-guide ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dim);
}

.content-guide li {
    margin-bottom: 0.5rem;
}

.site-footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.9rem;
}

.site-footer a {
    color: var(--text-dim);
    text-decoration: none;
    margin: 0 0.5rem;
}

.site-footer a:hover {
    text-decoration: underline;
}


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